Fix typo in strcoll example
[jlayton/glibc.git] / ChangeLog
1 2013-09-09  Allan McRae  <allan@archlinux.org>
2
3         [BZ #15939]
4         * manual/string.texi (Collation Functions): Fix typo in
5         strcoll example.
6         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
7
8         [BZ #15893]
9         * stdlib/isomac.c (get_null_defines): Fix memory leak.
10
11         [BZ #15892]
12         * libio/memstream.c (open_memstream): Fix memory leak.
13         * libio/wmemstream.c (open_wmemstream): Likewise.
14
15         [BZ #15895]
16         * nscd/netgroupcache.c: Fix nesting of ifdefs.
17
18 2013-09-09  Will Newton  <will.newton@linaro.org>
19
20         * malloc/Makefile: Add tst-realloc to tests.
21         * malloc/tst-realloc.c: New file.
22
23 2013-09-09  Allan McRae  <allan@archlinux.org>
24
25         [BZ #15844]
26         * COPYING: Update from GNU website to fix FSF address.
27         * COPYING.LIB: Likewise.
28
29 2013-09-06  David S. Miller  <davem@davemloft.net>
30
31         * po/zh_TW.po: Update Chinese (traditional) translation from
32         translation project.
33
34 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
35             Joseph Myers  <joseph@codesourcery.com>
36
37         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
38         "localeinfo.h".
39         (obstack_chunk_alloc): New macro.
40         (obstack_chunk_free): Likewise.
41         (record_offset): New function.
42         (init_locale_data): Likewise.
43         (align_locale_data): Likewise.
44         (add_locale_empty): Likewise.
45         (add_locale_raw_data): Likewise.
46         (add_locale_raw_obstack): Likewise.
47         (add_locale_string): Likewise.
48         (add_locale_wstring): Likewise.
49         (add_locale_uint32): Likewise.
50         (add_locale_uint32_array): Likewise.
51         (add_locale_char): Likewise.
52         (start_locale_structure): Likewise.
53         (end_locale_structure): Likewise.
54         (start_locale_prelude): Likewise.
55         (end_locale_prelude): Likewise.
56         (write_locale_data): Take locale_file structure rather than an
57         iovec.
58         * locale/programs/locfile.h: Include "obstack.h".
59         (struct locale_file): Change to store locale file contents instead
60         of header.
61         (init_locale_data): New prototype.
62         (align_locale_data): Likewise.
63         (add_locale_empty): Likewise.
64         (add_locale_raw_data): Likewise.
65         (add_locale_raw_obstack): Likewise.
66         (add_locale_string): Likewise.
67         (add_locale_wstring): Likewise.
68         (add_locale_uint32): Likewise.
69         (add_locale_uint32_array): Likewise.
70         (add_locale_char): Likewise.
71         (start_locale_structure): Likewise.
72         (end_locale_structure): Likewise.
73         (start_locale_prelude): Likewise.
74         (end_locale_prelude): Likewise.
75         (write_locale_data): Update prototype.
76         * locale/programs/3level.h (struct TABLE): Remove result field.
77         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
78         Use new locale_file interface.
79         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
80         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
81         * locale/programs/ld-address.c (address_output): Use new
82         locale_file interface.
83         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
84         NO_ADD_LOCALE.
85         (collate_finish): Don't call collseq_table_finalize.
86         (collate_output): Use new locale_file interface.
87         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
88         in file.
89         (NO_FINALIZE): Change to NO_ADD_LOCALE.
90         (TABLE): Move defines earlier in file.
91         (ELEMENT): Likewise.
92         (DEFAULT): Likewise.
93         (wctrans_table_add): Move macro and inline function earlier in
94         file.
95         (struct wctype_table): Move type earlier in file.
96         (add_locale_wctype_table): New static prototype.
97         (struct locale_ctype_t): Use logical types instead of struct iovec
98         pointers for members.
99         (ctype_output): Use new locale_file interface.
100         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
101         new locale_file interface.
102         (allocate_arrays): Update for use of new locale_file interface.
103         * locale/programs/ld-identification.c (identification_output): Use
104         new locale_file interface.
105         * locale/programs/ld-measurement.c (measurement_output): Likewise.
106         * locale/programs/ld-messages.c (messages_output): Likewise.
107         * locale/programs/ld-monetary.c (monetary_output): Likewise.
108         * locale/programs/ld-name.c (name_output): Likewise.
109         * locale/programs/ld-numeric.c (numeric_output): Likewise.
110         * locale/programs/ld-paper.c (paper_output): Likewise.
111         * locale/programs/ld-telephone.c (telephone_output): Likewise.
112         * locale/programs/ld-time.c (time_output): Likewise.
113
114 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
115
116         * benchtests/Makefile: Add memrchr benchmark.
117         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
118         benchmark as memrchr.
119         * benchtests/bench-memrchr-ifunc.c: New file.
120         * benchtests/bench-memrchr.c: New file.
121
122 2013-09-06   Will Newton  <will.newton@linaro.org>
123
124         * benchtests/Makefile (string-bench): Add memcpy.
125
126 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
127             Cong Wang  <amwang@redhat.com>
128
129         * sysdeps/unix/sysv/linux/bits/in.h
130         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
131         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
132         before __USE_KERNEL_IPV6_DEFS uses.
133         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
134         IPPROTO_BEETPH.
135         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
136         sockaddr_in6, or ipv6_mreq.
137
138 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
139
140         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
141         memory access for final bytes in some large inputs.
142         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
143
144 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
145
146         * string/test-memrchr.c: New file.
147         * string/test-memrchr-ifunc.c: New file.
148         * string/Makefile: Add new memrchr testcase.
149
150 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
151
152         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
153         fanotify_init returns EPERM.
154
155 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
156
157         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
158         errors.
159         (top level): Treat second token from macro or constant entries for
160         allowed headers as allowed.
161         * include/complex.h: Condition internal declarations on
162         [!_ISOMAC].
163         * include/fenv.h: Condition include of <stdbool.h> and internal
164         declarations on [!_ISOMAC].
165
166 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
167
168      [BZ #15923]
169         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
170
171 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
172
173         * configure.in (--enable-versioning): Remove configure option.
174         (libc_cv_asm_symver_directive): Remove configure test.
175         (libc_cv_ld_version_script_option): Likewise.
176         (VERSIONING): Remove variable and AC_SUBST.
177         (DO_VERSIONING): Remove AC_DEFINE.
178         * configure: Regenerated.
179         * config.h.in (DO_VERSIONING): Remove macro.
180         * Makerules [$(versioning) = yes]: Change conditionals to
181         [$(build-shared) = yes].
182         * config.make.in (versioning): Remove variable.
183         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
184         [$(build-shared) = yes].
185         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
186         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
187         * elf/Makefile [$(versioning) = yes]: Change conditionals to
188         [$(build-shared) = yes].
189         * extra-lib.mk [$(versioning) = yes]: Likewise.
190         * hurd/Makefile [$(versioning) = yes]: Likewise.
191         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
192         [SHARED].
193         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
194         [SHARED].
195         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
196         [SHARED && !NO_HIDDEN].
197         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
198         [SHARED].
199         [SHARED && DO_VERSIONING]: Likewise..
200         * libio/Makefile [$(versioning) = yes]: Change conditionals to
201         [$(build-shared) = yes].
202         * manual/install.texi (--disable-versioning): Remove
203         documentation.
204         * INSTALL: Regenerated.
205         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
206         to [SHARED].
207         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
208         [$(build-shared) = yes].
209         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
210         * sysdeps/i386/i686/multiarch/strstr-c.c
211         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
212         [SHARED && !NO_HIDDEN].
213         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
214         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
215         * sysdeps/powerpc/powerpc32/dl-machine.c
216         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
217         * sysdeps/powerpc/powerpc32/sysdep.h
218         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
219         to [SHARED && PIC && !NO_HIDDEN].
220         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
221         conditional to [SHARED].
222
223 2013-09-04   Will Newton  <will.newton@linaro.org>
224
225         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
226         * benchtests/bench-string.h: Include bench-timing.h instead
227         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
228         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
229         call to HP_TIMING_DIFF_INIT.
230         * benchtests/bench-memccpy.c: Use bench-timing.h macros
231         instead of hp-timing.h macros.
232         * benchtests/bench-memchr.c: Likewise.
233         * benchtests/bench-memcmp.c: Likewise.
234         * benchtests/bench-memcpy.c: Likewise.
235         * benchtests/bench-memmem.c: Likewise.
236         * benchtests/bench-memmove.c: Likewise.
237         * benchtests/bench-memset.c: Likewise.
238         * benchtests/bench-rawmemchr.c: Likewise.
239         * benchtests/bench-strcasecmp.c: Likewise.
240         * benchtests/bench-strcasestr.c: Likewise.
241         * benchtests/bench-strcat.c: Likewise.
242         * benchtests/bench-strchr.c: Likewise.
243         * benchtests/bench-strcmp.c: Likewise.
244         * benchtests/bench-strcpy.c: Likewise.
245         * benchtests/bench-strcpy_chk.c: Likewise.
246         * benchtests/bench-strlen.c: Likewise.
247         * benchtests/bench-strncasecmp.c: Likewise.
248         * benchtests/bench-strncat.c: Likewise.
249         * benchtests/bench-strncmp.c: Likewise.
250         * benchtests/bench-strncpy.c: Likewise.
251         * benchtests/bench-strnlen.c: Likewise.
252         * benchtests/bench-strpbrk.c: Likewise.
253         * benchtests/bench-strrchr.c: Likewise.
254         * benchtests/bench-strspn.c: Likewise.
255         * benchtests/bench-strstr.c: Likewise.
256
257 2013-09-04  Will Newton  <will.newton@linaro.org>
258
259         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
260
261 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
262
263         [BZ #15427]
264         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
265         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
266         * math/libm-test.inc (lgamma_test_data): Add more tests.
267         * sysdeps/i386/fpu/libm-test-ulps: Update.
268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
269
270 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
271
272         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
273         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
274         Add ifunc.
275         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
276         Add strcmp-sse2-unaligned
277         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
278
279 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
280
281         * Versions.def (libc): Add GLIBC_2.19.
282
283 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
284
285         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
286         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
287
288 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
289
290         [BZ #14155]
291         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
292         intermediate calculations in recurrence.
293         (__ieee754_ynf): Likewise.
294         * math/libm-test.inc (jn_test_data): Do not allow spurious
295         underflow exception.  Add more tests.
296         (yn_test_data): Add more tests.
297         * sysdeps/i386/fpu/libm-test-ulps: Update.
298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
299
300 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
301
302         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
303
304 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
305
306         * csu/init-first.c: Fix then/than typos.
307         * locale/programs/ld-collate.c: Likewise.
308         * locale/programs/linereader.h: Likewise.
309         * manual/charset.texi: Likewise.
310         * manual/filesys.texi: Likewise.
311         * manual/stdio.texi: Likewise.
312         * manual/string.texi: Likewise.
313         * stdlib/fmtmsg.c: Likewise.
314         * sysdeps/i386/stpncpy.S: Likewise.
315         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
316         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
317         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
318         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
319
320 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
321
322         * elf/dl-open.c: Fix typos.
323         * iconvdata/gbbig5.c: Likewise.
324         * iconvdata/iso-2022-jp.c: Likewise.
325         * iconv/gconv_int.h: Likewise.
326         * iconv/loop.c: Likewise.
327         * nis/rpcsvc/nis.h: Likewise.
328         * resolv/ns_name.c: Likewise.
329         * stdio-common/vfscanf.c: Likewise.
330         * streams/stropts.h: Likewise.
331         * sunrpc/rpc_thread.c: Likewise.
332         * sysdeps/i386/strpbrk.S: Likewise.
333         * sysdeps/ieee754/k_standard.c: Likewise.
334         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
335         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
336         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
337         * sysdeps/mach/hurd/profil.c: Likewise.
338         * sysdeps/s390/dl-procinfo.h: Likewise.
339         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
340         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
341         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
342         * sysdeps/x86_64/dl-trampoline.S: Likewise.
343         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
344
345 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
346
347         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
348         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
349
350 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
351
352         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
353         aix specific files.
354         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
355         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
356         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
357         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
358         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
359         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
360         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
361         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
362
363 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
364             Roland McGrath  <roland@hack.frob.com>
365
366         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
367         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
368
369 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
370
371         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
372         __executable_start symbol instead of _start.
373
374 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
375
376         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
377         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
378         Move macros to...
379         * sysdeps/gnu/ldsodefs.h: ... this new file.
380
381         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
382         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
383         instead of ELFOSABI_LINUX.
384
385         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
386         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
387         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
388         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
389         Likewise.
390         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
391         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
392         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
393         Likewise.
394         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
395         (ibm_extended_long_double): Add ieee_nan member.
396         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
397         (do_test): New function.
398
399         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
400         TEST_TRUNC.
401         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
402         functions, renamed from truncdfsf_test, trunctfsf_test,
403         trunctfdf_test.
404         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
405         functions.
406         (do_test): Run all these.
407
408 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
409
410         * argp/argp-help.c: Fix typos.
411         * argp/argp-parse.c: Likewise.
412         * debug/backtracesyms.c: Likewise.
413         * elf/elf.h: Likewise.
414         * malloc/malloc.c: Likewise.
415         * nis/nis_print.c: Likewise.
416         * resolv/res_comp.c: Likewise.
417         * stdlib/stdlib.h: Likewise.
418         * sunrpc/clnt_tcp.c: Likewise.
419         * sunrpc/clnt_udp.c: Likewise.
420         * sunrpc/clnt_unix.c: Likewise.
421         * sysdeps/unix/bsd/ptsname.c: Likewise.
422         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
423         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
425         Likewise.
426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
427         Likewise.
428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
429         Likewise.
430         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
431
432 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
433
434         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
435         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
436
437 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
438
439         [BZ #15897]
440         * dlfcn/Makefile (tests): Add bug-dl-leaf.
441         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
442         ($(objpfx)bug-dl-leaf): New rule.
443         ($(objpfx)bug-dl-leaf.so): Likewise.
444         ($(objpfx)bug-dl-leaf.out): Likewise.
445         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
446         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
447         * dlfcn/bug-dl-leaf.c: New test.
448         * dlfcn/bug-dl-leaf-lib.c: Likewise.
449         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
450         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
451         (dlclose): Likewise.
452         (dlmopen): Likewise.
453
454 2013-08-27  Roland McGrath  <roland@hack.frob.com>
455
456         * include/netdb.h [!_ISOMAC]:
457         Don't include <tls.h>.
458         (h_errno, __libc_h_errno): Move declaration and macros out of
459         [_LIBC_REENTRANT].
460
461         * include/resolv.h [_RESOLV_H_]:
462         Don't include <tls.h>.
463         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
464         * resolv/res_libc.c: Don't include <tls.h>.
465         (_res): Use __attribute__ ((nocommon)) in place of
466         __attribute__ ((section (".bss"))).
467
468         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
469         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
470
471         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
472
473         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
474         only under [SIOCGIFCONF && SIOCGIFNETMASK].
475
476         * resolv/res_mkquery.c: Include <sys/time.h>.
477
478         * inet/ifreq.c: Moved to ...
479         * sysdeps/unix/ifreq.c: ... here.
480         * inet/ifreq.c: New file, true stub version.
481
482         * socket/sa_len.c: New file.
483         * socket/Makefile (aux): Add it.
484         * sysdeps/unix/sysv/linux/Makefile
485         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
486         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
487         and #include <socket/sa_len.c>.
488         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
489         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
490
491         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
492         * bits/socket.h: ... here.
493
494         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
495         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
496         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
497
498 2013-08-27  Andreas Schwab  <schwab@suse.de>
499
500         [BZ #15736]
501         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
502         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
503         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
504         * string/test-strcasecmp.c (test_main): Run tests in several
505         locales.
506         * string/test-strncasecmp.c (test_main): Likewise.
507
508         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
509         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
510         to __strcasecmp_nonascii and __strncasecmp_nonascii.
511         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
512         (__strncasecmp_ssse3) [PIC]: Likewise.
513
514 2013-08-26  Roland McGrath  <roland@hack.frob.com>
515
516         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
517
518         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
519         instead of explicitly declaring xdecrypt.
520         * nis/nss_nis/nis-publickey.c: Likewise.
521
522 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
523
524         [BZ #15890]
525         * nscd/aicache.c: Include res_hconf.h.
526         (addhstaiX): Initialize res_hconf.
527
528 2013-08-26  Andreas Schwab  <schwab@suse.de>
529
530         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
531         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
532
533 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
534
535         * nscd/aicache.c (addhstaiX): Fix indentation.
536
537 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
538
539         * configure.ac: Quote $build_pt_chown test.
540         * configure: Regenerated.
541
542 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
543
544         [BZ #15532]
545         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
546         * math/s_cexpf.c (__cexpf): Likewise.
547         * math/s_cexpl.c (__cexpl): Likewise.
548         * math/libm-test.inc (cexp_test_data): Correct expected return
549         value for NaN + i0.  Add another test.
550
551 2013-08-22  David S. Miller  <davem@davemloft.net>
552
553         * po/ca.po: Update Catalan translation from translation project.
554         * po/uk.po: Add Ukrainian translations from translation project.
555
556 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
557
558         [BZ #15797]
559         * math/s_fdim.c (__fdim): Check for infinite arguments if result
560         is infinite, not alongside NaN test.
561         * math/s_fdimf.c (__fdimf): Likewise.
562         * math/s_fdiml.c (__fdiml): Likewise.
563         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
564         errno is unchanged.
565
566 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
567
568         * argp/argp-help.c: Fix typos.
569         * crypt/speeds.c: Likewise.
570         * csu/check_fds.c: Likewise.
571         * elf/dl-load.c: Likewise.
572         * elf/dl-open.c: Likewise.
573         * elf/reldep3.c: Likewise.
574         * elf/reldep.c: Likewise.
575         * elf/sprof.c: Likewise.
576         * iconv/iconv_charmap.c: Likewise.
577         * iconv/skeleton.c: Likewise.
578         * iconv/strtab.c: Likewise.
579         * io/lockf64.c: Likewise.
580         * libio/libioP.h: Likewise.
581         * resolv/gai_notify.c: Likewise.
582         * resolv/ns_name.c: Likewise.
583         * resolv/ns_samedomain.c: Likewise.
584         * resolv/res_send.c: Likewise.
585         * stdlib/random.c: Likewise.
586         * sunrpc/rpc/xdr.h: Likewise.
587         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
588         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
589         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
590         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
591         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
592         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
593         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
594         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
595         * sysdeps/mach/hurd/check_fds.c: Likewise.
596         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
597         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
598         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
599         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
600         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
601         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
602         * sysdeps/pthread/aio_notify.c: Likewise.
603         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
604         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
605         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
606         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
607         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
608
609 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
610
611         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
612         version if bit_Slow_SSE4_2 is set.
613         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
614         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
615
616 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
617
618         [BZ #15867]
619         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
620         trampoline stack frame information.
621         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
622         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
623         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
624         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
625         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
626         * sysdeps/unix/sysv/linux/powerpc/init-first.c
627         (_libc_vdso_platform_setup): Initialize the signal trampolines.
628         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
629         sa_flags value.
630         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
631         interrupting a syscall and set with option SA_SIGINFO.
632
633 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
634
635         [BZ #15531]
636         * math/s_cproj.c (__cproj): Only return an infinity if one part of
637         argument is infinite.
638         * math/s_cprojf.c (__cprojf): Likewise.
639         * math/s_cprojl.c (__cprojl): Likewise.
640         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
641         * math/libm-test.inc (cproj_test_data): Add more tests.
642
643         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
644
645         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
646         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
647         size.  Use __ffs to determine corresponding shift.
648
649 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
650             Roland McGrath  <roland@hack.frob.com>
651
652         * Makefile (INSTALL): Remove trailing blank lines from output of
653         makeinfo.
654
655 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
656
657         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
658         Align 32 bit compat elf_greg to 8 bytes.
659
660 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
661
662         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
663
664 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
665
666         * string/strcoll_l.c (coll_seq): New structure.
667         (get_next_seq_cached): New function.
668         (get_next_seq): New function.
669         (do_compare): New function.
670         (STRCOLL): Use GNU style definition.  Simplify implementation
671         by using get_next_seq, get_next_seq_cached and do_compare.
672
673 2013-08-16  Florian Weimer  <fweimer@redhat.com>
674
675         [BZ #14699]
676         CVE-2013-4237
677         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
678         member.
679         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
680         member.
681         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
682         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
683         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
684         conditional.
685         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
686         GETDENTS_64BIT_ALIGNED.
687         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
688         * manual/filesys.texi (Reading/Closing Directory): Document
689         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
690         strongly.
691         * manual/conf.texi (Limits for Files): Add portability note to
692         NAME_MAX, PATH_MAX.
693         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
694
695 2013-08-13  Andreas Schwab  <schwab@suse.de>
696
697         [BZ #15749]
698         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
699         of fabs.
700         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
701         LDBL_MAX_EXP >= 16384]: Add tests for it.
702
703 2013-08-12  David S. Miller  <davem@davemloft.net>
704
705         * version.h (RELEASE): Set to "development".
706         (VERSION): Set to "2.18.90".
707         * NEWS: Add 2.19 section.
708
709 2013-08-03  David S. Miller  <davem@davemloft.net>
710
711         * po/ko.po: Update Korean translation from translation project.
712
713 2013-08-01  David S. Miller  <davem@davemloft.net>
714
715         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
716         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
717         Bilka.
718
719 2013-07-30  David S. Miller  <davem@davemloft.net>
720
721         * po/fr.po: Update French translation from translation project.
722
723 2013-07-28  David S. Miller  <davem@davemloft.net>
724
725         * po/cs.po: Update Czech translation from translation project.
726
727         * po/sv.po: Update Swedish translation from translation project.
728
729 2013-07-27  David S. Miller  <davem@davemloft.net>
730
731         * po/eo.po: Update Esperanto translation from translation project.
732
733         * po/vi.po: Update Vietnamese translation from translation project.
734
735         * po/de.po: Update German translation from translation project.
736
737 2013-07-26  David S. Miller  <davem@davemloft.net>
738
739         * po/bg.po: Update Bulgarian translation from translation project.
740
741         * po/nl.po: Update Dutch translation from translation project.
742         * po/pl.po: Update Polish translation from translation project.
743         * po/ru.po: Update Russian translation from translation project.
744
745 2013-07-24  David S. Miller  <davem@davemloft.net>
746
747         * po/libc.pot: Update.
748
749 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
750
751         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
752         variable page size.
753         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
754         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
755         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
756
757 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
758
759         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
760
761 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
762             Andreas Schwab  <schwab@suse.de>
763             Roland McGrath  <roland@hack.frob.com>
764             Joseph Myers  <joseph@codesourcery.com>
765             Carlos O'Donell  <carlos@redhat.com>
766
767         [BZ #15755]
768         * config.h.in: Define HAVE_PT_CHOWN.
769         * config.make.in (build-pt-chown): New variable.
770         * configure.in (--enable-pt_chown): New configure option.
771         * configure: Regenerate.
772         * login/Makefile: Include Makeconfig.  Build pt_chown only if
773         build-pt-chown is enabled.
774         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
775         pt_chown to fix pty ownership.
776         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
777         CLOSE_ALL_FDS.
778         * manual/install.texi (Configuring and compiling): Mention
779         --enable-pt_chown. Add @findex for grantpt.
780         * INSTALL: Regenerate.
781
782 2013-07-20  David S. Miller  <davem@davemloft.net>
783
784         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
785         difference between 32-bit and 64-bit.
786
787 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
788
789         [BZ #15711]
790         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
791         Avoid system header dependency with -ffreestanding.
792         ($(objpfx)bits/syscall%d): Likewise.
793
794 2013-07-13  David S. Miller  <davem@davemloft.net>
795
796         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
797         underflows from atanl/atan2l due to bug 15319.
798         (casinh_test_data): Likewise.
799
800 2013-07-07  David S. Miller  <davem@davemloft.net>
801
802         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
803
804 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
805
806         * sysdeps/i386/fpu/libm-test-ulps: Update.
807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
808
809 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
810
811         * configure.in (--enable-lock-elision): Fix message text.
812         * INSTALL: Regenerate.
813         * configure: Regenerate.
814
815 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
816
817         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
818
819 2013-07-03  Andreas Jaeger  <aj@suse.de>
820
821         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
822         define.
823         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
824         (ptrace_peeksiginfo_args): Add.
825         (__ptrace_peeksiginfo_flags): Add.
826         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
827         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
828         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
829
830 2013-07-03  Allan McRae  <allan@archlinux.org>
831
832         * sysdeps/i386/fpu/libm-test-ulps: Update.
833
834 2013-07-02  David S. Miller  <davem@davemloft.net>
835
836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
837
838 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
839
840         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
841
842 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
843
844         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
845         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
846
847 2013-07-02  Andi Kleen <ak@linux.intel.com>
848
849         * config.h.in (ENABLE_LOCK_ELISION): Add.
850         * configure.in (--enable-lock-elision): Add option.
851         * manual/install.texi: Document --enable lock elision.
852         * configure: Regenerate
853         * INSTALL: Regenerate.
854
855 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
856
857         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
858         SSE4.2 strcasecmp for libc.a.
859         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
860
861 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
862
863         [BZ #13304]
864         * soft-fp/op-common.h (_FP_FMA): New macro.
865         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
866         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
867         (_FP_MUL_MEAT_1_imm): ... here.
868         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
869         (_FP_MUL_MEAT_1_wide): ... here.
870         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
871         (_FP_MUL_MEAT_1_hard): ... here.
872         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
873         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
874         (_FP_MUL_MEAT_2_wide): ... here.
875         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
876         (_FP_MUL_MEAT_2_wide_3mul): ... here.
877         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
878         (_FP_MUL_MEAT_2_gmp): ... here.
879         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
880         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
881         (_FP_MUL_MEAT_4_wide): ... here.
882         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
883         (_FP_MUL_MEAT_4_gmp): ... here.
884         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
885         (_FP_WFRACBITS_DW_S): Likewise.
886         (_FP_WFRACXBITS_DW_S): Likewise.
887         (_FP_HIGHBIT_DW_S): Likewise.
888         (FP_FMA_S): Likewise.
889         (_FP_FRAC_HIGH_DW_S): Likewise.
890         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
891         (_FP_WFRACBITS_DW_D): Likewise.
892         (_FP_WFRACXBITS_DW_D): Likewise.
893         (_FP_HIGHBIT_DW_D): Likewise.
894         (FP_FMA_D): Likewise.
895         (_FP_FRAC_HIGH_DW_D): Likewise.
896         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
897         (_FP_WFRACBITS_DW_E): Likewise.
898         (_FP_WFRACXBITS_DW_E): Likewise.
899         (_FP_HIGHBIT_DW_E): Likewise.
900         (FP_FMA_E): Likewise.
901         (_FP_FRAC_HIGH_DW_E): Likewise.
902         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
903         (_FP_WFRACBITS_DW_Q): Likewise.
904         (_FP_WFRACXBITS_DW_Q): Likewise.
905         (_FP_HIGHBIT_DW_Q): Likewise.
906         (FP_FMA_Q): Likewise.
907         (_FP_FRAC_HIGH_DW_Q): Likewise.
908         * soft-fp/fmasf4.c: New file.
909         * soft-fp/fmadf4.c: Likewise.
910         * soft-fp/fmatf4.c: Likewise.
911
912 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
913
914         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
915         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
916         Silvermont.
917         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
918         macro.
919         (index_Slow_SSE4_2): Likewise.
920         (index_Prefer_PMINUB_for_stringop): Likewise.
921         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
922         bit_Slow_SSE4_2 is set.
923         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
924         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
925
926 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
927
928         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
929         rtld_global._dl_hwcap2.
930         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
931         POWER8.
932         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
933         POWER8 feature descriptions defined in _dl_hwcap2.
934         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
935         string handling for POWER8 feature bits.
936         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
937         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
938         _dl_powerpc_cap_flags.
939         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
940         * sysdeps/powerpc/rtld-global-offsets.sym
941         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
942         _dl_hwcap2 in the rtld_global_ro structure.
943
944 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
945
946         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
947         hardware capabilities in support of AT_HWCAP2.
948         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
949         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
950         GLRO(dl_hwcap2).
951         (_dl_show_auxv): Add support for calling _dl_procinfo to display
952         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
953         explicitly the unknown a_type display mechanism is used.
954         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
955         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
956         struct member.
957         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
958         to macro prototype for AT_HWCAP2 support.
959         * sysdeps/i386/dl-procinfo.h: Likewise.
960         * sysdeps/s390/dl-procinfo.h: Likewise.
961         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
962         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
963         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
964         return -1 for unknown a_type display fallback.
965         * sysdeps/sparc/dl-procinfo.h: Likewise.
966         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
967         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
968
969 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
970
971         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
972         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
973
974 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
975
976         [BZ #12492]
977         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
978         mprotect making __stack_prot writable.
979
980 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
981             Joseph Myers  <joseph@codesourcery.com>
982
983         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
984         as being properly aligned.
985
986 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
987
988         * dlfcn/modstatic5.c: New file.
989         * dlfcn/tststatic5.c: New file.
990         * dlfcn/Makefile (tests): Add tststatic5.
991         (tests-static): Likewise.
992         (modules-names): Add modstatic5.
993         (tststatic5-ENV): New variable.
994         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
995
996         [BZ #15022]
997         * elf/dl-support.c (_dl_main_map): New variable.
998         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
999         (_dl_nns, _dl_load_adds): Set to 1.
1000         (_dl_initial_searchlist): Refer to _dl_main_map.
1001         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
1002         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
1003         call to _dl_get_origin.
1004         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
1005         around call_map.
1006         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
1007         * dlfcn/modstatic3.c: New file.
1008         * dlfcn/tststatic3.c: New file.
1009         * dlfcn/tststatic4.c: New file.
1010         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
1011         (tests-static): Likewise.
1012         (modules-names): Add modstatic3.
1013         (tststatic3-ENV, tststatic4-ENV): New variables.
1014         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
1015         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
1016
1017 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
1018
1019         * configure.in (CC): Require GCC version 4.4 or later.
1020         * configure: Regenerated.
1021         * manual/install.texi (Tools for Compilation): Update GCC version
1022         requirement.
1023         * INSTALL: Regenerated.
1024
1025 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1026
1027         [BZ #15674]
1028         * string/test-memcmp.c (check2): New.
1029         (main): Call check2.
1030
1031         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
1032
1033 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
1034
1035         [BZ #15022]
1036         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
1037         over to...
1038         (dl_open_worker) [!SHARED]: ... here.
1039
1040 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1041
1042         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
1043
1044 2013-06-25  Richard Henderson  <rth@redhat.com>
1045
1046         * locale/programs/locarchive.c: Include <libc-internal.h>
1047
1048 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
1049
1050         * manual/texinfo.tex: Update to version 2013-06-21.17, with
1051         trailing whitespace removed.
1052
1053 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
1054
1055         [BZ #10283]
1056         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
1057         * locale/programs/locarchive.c: Include libc-mmap.h.
1058         (prepare_address_space): Take two new outputs (the mmap base and len).
1059         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
1060         values.
1061         (create_archive): Declare new mmap base and len values for
1062         prepare_address_space, and store the result in ah.
1063         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
1064         (enlarge_archive): If ah->mmap_base is not NULL, use that and
1065         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
1066         Declare new mmap base and len values for
1067         prepare_address_space, and store the result in new_ah.
1068         (open_archive): Declare new mmap base and len values for
1069         prepare_address_space, and store the result in ah.
1070         (close_archive): If ah->mmap_base is not NULL, use that and
1071         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
1072         * sysdeps/generic/libc-mmap.h: New file.
1073
1074 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
1075
1076         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
1077         (ALIGN_UP): Likewise.
1078         (PTR_ALIGN_DOWN): Likewise.
1079         (PTR_ALIGN_UP): Likewise.
1080
1081 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1082
1083         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
1084         entry mapped to PPC_PLATFORM_POWER8.
1085         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
1086         POWER8.
1087         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
1088         (_dl_string_platform): Add case for exporting platform position for
1089         POWER8.
1090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
1091         search path to sysdeps/powerpc/powerpc32/power8 directory.
1092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
1093         search path to sysdeps/powerpc/powerpc64/power8 directory.
1094         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
1095         power7 directories.
1096         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
1097         power7 directories.
1098
1099 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1100
1101         * INSTALL: Regenerate.
1102
1103         * nscd/connections.c (nscd_init): Fix comment.
1104
1105 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
1106
1107         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
1108
1109         [BZ #15667]
1110         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
1111         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
1112
1113 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
1114
1115         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
1116         DL_DST_REQ_STATIC.
1117         (DL_DST_REQ_STATIC): Remove macro.
1118
1119 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
1120
1121         [BZ #7006]
1122         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
1123         with a shift of 0 bits.
1124
1125 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
1126
1127         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
1128         $(tststatic-ENV).
1129
1130 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1131
1132         [BZ #15655]
1133         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
1134
1135 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1136
1137         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
1138         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
1139         accepts -fno-tree-loop-distribute-patterns.
1140         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
1141         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
1142         recursive call.
1143         * string/memset.c (memset): Likewise.
1144         * string/test-memmove.c (simple_memmove): Disable loop transformation
1145         to library calls.
1146         * string/test-memset.c (simple_memset): Likewise.
1147         * benchtests/bench-memmove.c (simple_memmove): Likewise.
1148         * benchtests/bench-memset.c (simple_memset): Likewise.
1149         * configure: Regenerated.
1150
1151 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
1152
1153         * math/test-misc.c (main): Ignore fesetround failure when failures
1154         of subsequent rounding tests would be ignored.
1155
1156         [BZ #15654]
1157         * math/fedisblxcpt.c (fedisableexcept): Return 0.
1158         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
1159         * math/fegetenv.c (__fegetenv): Return 0.
1160         * math/fegetexcept.c (fegetexcept): Return 0.
1161         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
1162         FE_TONEAREST.
1163         * math/feholdexcpt.c (feholdexcept): Return 0.
1164         * math/fesetenv.c (__fesetenv): Return 0.
1165         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
1166         argument FE_TONEAREST.
1167         * math/feupdateenv.c (__feupdateenv): Return 0.
1168         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
1169
1170 2013-06-18  Roland McGrath  <roland@hack.frob.com>
1171
1172         * elf/rtld-Rules (rtld-compile-command.S): New variable.
1173         (rtld-compile-command.s, rtld-compile-command.c): New variables.
1174         ($(objpfx)rtld-%.os rules): Use them.
1175
1176 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1177
1178         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
1179         fields.
1180
1181 2013-06-17  Roland McGrath  <roland@hack.frob.com>
1182
1183         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
1184         length of target pattern, then descending length of dependency pattern.
1185         * configure.in (AWK): Require gawk 3.1.2 or newer.
1186         * manual/install.texi (Tools for Compilation): Say that we do.
1187         * configure: Regenerated.
1188
1189         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
1190         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
1191         * scripts/sysd-rules.awk: ... this new script.
1192         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
1193         than a glob-style pattern.
1194
1195 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
1196
1197         * math/test-misc.c (main): Do not treat incorrectly rounded
1198         conversions as failure unless ROUNDING_TESTS passes.
1199
1200 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
1201
1202         [BZ #15631]
1203         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
1204         restore exception state around main square root computation, then
1205         check for inexactness explicitly.
1206
1207         * math/libm-test.inc (fma_test_data): Add another test.
1208
1209 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1210
1211         * manual/threads.texi (Non-POSIX Extensions): New document
1212         node.  Document pthread_getattr_default_np and
1213         pthread_setattr_default_np.
1214
1215         * Versions.def (libpthread): Add GLIBC_2.18.
1216         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
1217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
1218         Likewise.
1219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1220         Likewise.
1221         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1222         Likewise.
1223         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1224         Likewise.
1225         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
1226         Likewise.
1227         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1228         Likewise.
1229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1230         Likewise.
1231         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
1232         Likewise.
1233         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1234         Likewise.
1235
1236 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1237
1238         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1239         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
1240
1241 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1242             H.J. Lu  <hjl.tools@gmail.com>
1243
1244         [BZ #15627]
1245         * sysdeps/x86_64/rtld-memset.c: Remove file.
1246         * sysdeps/x86_64/rtld-memset.S: New file.
1247
1248 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
1249
1250         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
1251         (test_in_one_mode): Take arguments for whether the rounding mode
1252         is supported for each floating-point type.
1253         (do_test): Pass new arguments to test_in_one_mode using
1254         ROUNDING_TESTS.
1255
1256 2013-06-13  Roland McGrath  <roland@hack.frob.com>
1257
1258         * posix/tst-waitid.c (do_test): Distinguish different instances of
1259         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
1260         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
1261         before entering the kernel for waitpid.
1262
1263 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1264
1265         * NEWS: Fix note on clock function precision.  Text by Roland
1266         McGrath.
1267
1268 2013-06-13  Roland McGrath  <roland@hack.frob.com>
1269
1270         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
1271         it into place only when and if the sanity check passes.
1272
1273 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
1274
1275         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
1276         output for whether conversion result is exact.  Take argument
1277         indicating whether type is IBM long double.
1278         (round_for_all): Change need_exact field to ibm_ld.
1279         * stdlib/tst-strtod-round.c (struct exactness): New type.
1280         (struct test): Change bool ld_ok field to struct exactness exact.
1281         (TEST): Update all definitions for change to field.
1282         (tests): Regenerate array contents.
1283         (test_in_one_mode): Take pointer to new field instead of old ld_ok
1284         field value.  Check for IBM long double here.
1285         (do_test): Update calls to test_in_one_mode.
1286
1287 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1288
1289         [BZ #12515]
1290         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
1291         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
1292
1293 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1294
1295         [BZ #15605]
1296         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
1297         generated by the compiler on loop optimizations.
1298         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
1299         general definitions.
1300
1301 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
1302
1303         * math/bug-nextafter.c: Include <math-tests.h>.
1304         (main): Only test for exceptions if EXCEPTION_TESTS is true for
1305         the relevant type.
1306         * math/bug-nexttoward.c: Include <math-tests.h>.
1307         (main): Only test for exceptions if EXCEPTION_TESTS is true for
1308         the relevant type.
1309         * math/test-misc.c: Include <math-tests.h>.
1310         (main): Only test for exceptions if EXCEPTION_TESTS is true for
1311         the relevant type.
1312
1313 2013-06-12  Andreas Jaeger  <aj@suse.de>
1314
1315         * po/ia.po: Update Interlingua translation from translation
1316         project.
1317
1318 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1319
1320         * include/fenv.h: Include stdbool.h.
1321         (struct rm_ctx): New structure.
1322         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
1323         Define macro.
1324         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
1325         (SET_RESTORE_ROUNDF): Likewise.
1326         (SET_RESTORE_ROUNDL): Likewise.
1327         (SET_RESTORE_ROUND_NOEX): Likewise.
1328         (SET_RESTORE_ROUND_NOEXF): Likewise.
1329         (SET_RESTORE_ROUND_NOEXL): Likewise.
1330         (SET_RESTORE_ROUND_53BIT): Likewise.
1331         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
1332         (libc_feresetround_noexf_ctx): Likewise.
1333         (libc_feresetround_noexl_ctx): Likewise.
1334         (libc_feholdsetround_53bit_ctx): Likewise.
1335         (libc_feresetround_53bit_ctx): Likewise.
1336         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
1337         (libc_feholdexcept_setround_sse_ctx): New function.
1338         (libc_fesetenv_sse_ctx): Likewise.
1339         (libc_feupdateenv_sse_ctx): Likewise.
1340         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
1341         (libc_feholdexcept_setround_387_ctx): Likewise.
1342         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
1343         (libc_feholdsetround_387_prec_ctx): Likewise.
1344         (libc_feholdsetround_387_ctx): Likewise.
1345         (libc_feholdsetround_387_53bit_ctx): Likewise.
1346         (libc_feholdsetround_sse_ctx): Likewise.
1347         (libc_feresetround_sse_ctx): Likewise.
1348         (libc_feresetround_387_ctx): Likewise.
1349         (libc_feupdateenv_387_ctx): Likewise.
1350         (libc_feholdexcept_setroundf_ctx): Define macro.
1351         (libc_fesetenvf_ctx): Likewise.
1352         (libc_feupdateenvf_ctx): Likewise.
1353         (libc_feholdsetroundf_ctx): Likewise.
1354         (libc_feresetroundf_ctx): Likewise.
1355         (libc_feholdexcept_setround_ctx): Likewise.
1356         (libc_fesetenv_ctx): Likewise.
1357         (libc_feupdateenv_ctx): Likewise.
1358         (libc_feholdsetround_ctx): Likewise.
1359         (libc_feresetround_ctx): Likewise.
1360         (libc_feholdexcept_setroundl_ctx): Likewise.
1361         (libc_feupdateenvl_ctx): Likewise.
1362         (libc_feholdsetroundl_ctx): Likewise.
1363         (libc_feresetroundl_ctx): Likewise.
1364         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
1365         (libc_feresetround_53bit_ctx): Likewise.
1366
1367 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1368
1369         * locale/iso-639.def: Convert to UTF-8.
1370
1371 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
1372
1373         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
1374         (EXCEPTION_TESTS_double): Likewise.
1375         (EXCEPTION_TESTS_long_double): Likewise.
1376         (EXCEPTION_TESTS): Likewise.
1377         * math/libm-test.inc (test_exceptions): Only test exceptions if
1378         EXCEPTION_TESTS (FLOAT).
1379
1380 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1381
1382         * benchtests/Makefile (string-bench): Add strcpy_chk and
1383         stpcpy_chk.
1384         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
1385         * benchtests/bench-stpcpy_chk.c: New file.
1386         * benchtests/bench-strcpy_chk-ifunc.c: New file.
1387         * benchtests/bench-strcpy_chk.c: New file.
1388         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
1389         code.
1390         (do_test): Likewise.
1391
1392 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1393
1394         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
1395         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
1396         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
1397         with tabs where appropriate.
1398         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
1399         dl-procinfo.h.
1400         [PPC_PLATFORM_PPC440]: Likewise.
1401         [PPC_PLATFORM_PPC464]: Likewise.
1402         [PPC_PLATFORM_PPC476]: Likewise.
1403         (_dl_string_platform): Add support for detecting ppc405, ppc440,
1404         ppc464, and ppc476 platform strings merging from ports/
1405         dl-procinfo.h.
1406
1407 2013-06-11  Andreas Schwab  <schwab@suse.de>
1408
1409         [BZ #14991]
1410         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
1411         (from_ucs4_idx): Regenerate.
1412         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
1413         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
1414         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
1415         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
1416         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
1417         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
1418         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
1419         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
1420         from FROM_LOOP and TO_LOOP specific macros.
1421         (BODY): Handle combining characters.
1422         * iconvdata/BIG5HKSCS.irreversible: Update.
1423         * iconvdata/BIG5HKSCS.precomposed: New file.
1424         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
1425         characters.
1426         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
1427
1428 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1429
1430         * include/sys/time.h: Fix indentation and add copyright header.
1431
1432         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
1433         (do_test): Likewise.
1434         * string/test-memchr.c (do_one_test): Likewise.
1435         (do_test): Likewise.
1436         * string/test-memcmp.c (do_one_test): Likewise.
1437         (do_test): Likewise.
1438         * string/test-memcpy.c (do_one_test): Likewise.
1439         (do_test): Likewise.
1440         * string/test-memmem.c (do_one_test): Likewise.
1441         (do_test): Likewise.
1442         (do_random_tests): Likewise.
1443         * string/test-memmove.c (do_one_test): Likewise.
1444         (do_test): Likewise.
1445         * string/test-memset.c (do_one_test): Likewise.
1446         (do_test): Likewise.
1447         * string/test-rawmemchr.c (do_one_test): Likewise.
1448         (do_test): Likewise.
1449         * string/test-strcasecmp.c (do_one_test): Likewise.
1450         (do_test): Likewise.
1451         * string/test-strcasestr.c (do_one_test): Likewise.
1452         (do_test): Likewise.
1453         * string/test-strcat.c (do_one_test): Likewise.
1454         (do_test): Likewise.
1455         * string/test-strchr.c (do_one_test): Likewise.
1456         (do_test): Likewise.
1457         * string/test-strcmp.c (do_one_test): Likewise.
1458         (do_test): Likewise.
1459         * string/test-strcpy.c (do_one_test): Likewise.
1460         (do_test): Likewise.
1461         * string/test-string.h: Likewise.
1462         (test_init): Likewise.
1463         * string/test-strlen.c (do_one_test): Likewise.
1464         (do_test): Likewise.
1465         * string/test-strncasecmp.c (do_one_test): Likewise.
1466         (do_test): Likewise.
1467         * string/test-strncat.c (do_one_test): Likewise.
1468         (do_test): Likewise.
1469         * string/test-strncmp.c (do_one_test): Likewise.
1470         (do_test_limit): Likewise.
1471         (do_test): Likewise.
1472         * string/test-strncpy.c (do_one_test): Likewise.
1473         (do_test): Likewise.
1474         * string/test-strnlen.c (do_one_test): Likewise.
1475         (do_test): Likewise.
1476         * string/test-strpbrk.c (do_one_test): Likewise.
1477         (do_test): Likewise.
1478         * string/test-strrchr.c (do_one_test): Likewise.
1479         (do_test): Likewise.
1480         * string/test-strspn.c (do_one_test): Likewise.
1481         (do_test): Likewise.
1482         * string/test-strstr.c (do_one_test): Likewise.
1483         (do_test): Likewise.
1484
1485         * benchtests/Makefile (string-bench): Add string benchmarks.
1486         * benchtests/bench-bcopy-ifunc.c: New file.
1487         * benchtests/bench-bcopy.c: New file.
1488         * benchtests/bench-bzero-ifunc.c: New file.
1489         * benchtests/bench-bzero.c: New file.
1490         * benchtests/bench-memccpy-ifunc.c: New file.
1491         * benchtests/bench-memccpy.c: New file.
1492         * benchtests/bench-memchr-ifunc.c: New file.
1493         * benchtests/bench-memchr.c: New file.
1494         * benchtests/bench-memcmp-ifunc.c: New file.
1495         * benchtests/bench-memcmp.c: New file.
1496         * benchtests/bench-memmem-ifunc.c: New file.
1497         * benchtests/bench-memmem.c: New file.
1498         * benchtests/bench-memmove-ifunc.c: New file.
1499         * benchtests/bench-memmove.c: New file.
1500         * benchtests/bench-mempcpy-ifunc.c: New file.
1501         * benchtests/bench-mempcpy.c: New file.
1502         * benchtests/bench-memset-ifunc.c: New file.
1503         * benchtests/bench-memset.c: New file.
1504         * benchtests/bench-rawmemchr-ifunc.c: New file.
1505         * benchtests/bench-rawmemchr.c: New file.
1506         * benchtests/bench-stpcpy-ifunc.c: New file.
1507         * benchtests/bench-stpcpy.c: New file.
1508         * benchtests/bench-stpncpy-ifunc.c: New file.
1509         * benchtests/bench-stpncpy.c: New file.
1510         * benchtests/bench-strcasecmp-ifunc.c: New file.
1511         * benchtests/bench-strcasecmp.c: New file.
1512         * benchtests/bench-strcasestr-ifunc.c: New file.
1513         * benchtests/bench-strcasestr.c: New file.
1514         * benchtests/bench-strcat-ifunc.c: New file.
1515         * benchtests/bench-strcat.c: New file.
1516         * benchtests/bench-strchr-ifunc.c: New file.
1517         * benchtests/bench-strchr.c: New file.
1518         * benchtests/bench-strchrnul-ifunc.c: New file.
1519         * benchtests/bench-strchrnul.c: New file.
1520         * benchtests/bench-strcmp-ifunc.c: New file.
1521         * benchtests/bench-strcmp.c: New file.
1522         * benchtests/bench-strcpy-ifunc.c: New file.
1523         * benchtests/bench-strcpy.c: New file.
1524         * benchtests/bench-strcspn-ifunc.c: New file.
1525         * benchtests/bench-strcspn.c: New file.
1526         * benchtests/bench-strlen-ifunc.c: New file.
1527         * benchtests/bench-strlen.c: New file.
1528         * benchtests/bench-strncasecmp-ifunc.c: New file.
1529         * benchtests/bench-strncasecmp.c: New file.
1530         * benchtests/bench-strncat-ifunc.c: New file.
1531         * benchtests/bench-strncat.c: New file.
1532         * benchtests/bench-strncmp-ifunc.c: New file.
1533         * benchtests/bench-strncmp.c: New file.
1534         * benchtests/bench-strncpy-ifunc.c: New file.
1535         * benchtests/bench-strncpy.c: New file.
1536         * benchtests/bench-strnlen-ifunc.c: New file.
1537         * benchtests/bench-strnlen.c: New file.
1538         * benchtests/bench-strpbrk-ifunc.c: New file.
1539         * benchtests/bench-strpbrk.c: New file.
1540         * benchtests/bench-strrchr-ifunc.c: New file.
1541         * benchtests/bench-strrchr.c: New file.
1542         * benchtests/bench-strspn-ifunc.c: New file.
1543         * benchtests/bench-strspn.c: New file.
1544         * benchtests/bench-strstr-ifunc.c: New file.
1545         * benchtests/bench-strstr.c: New file.
1546
1547         * benchtests/Makefile: Disable parallel execution of targets.
1548         (string-bench): Add memcpy.
1549         (benchset): New variable to store a list of benchmark sets.
1550         (bench-func): Renamed from bench.
1551         (bench-set): New target.
1552         (bench): Depend on bench-func and bench-set.
1553         * benchtests/README: Add section on benchmark sets.
1554         * benchtests/bench-memcpy-ifunc.c: New file.
1555         * benchtests/bench-memcpy.c: New file.
1556         * benchtests/bench-string.h: New file.
1557
1558 2013-06-11  Andreas Schwab  <schwab@suse.de>
1559
1560         [BZ #15577]
1561         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
1562         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
1563         values in the triple.
1564         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
1565         terminator in the group key.
1566
1567 2013-06-11  Andreas Jaeger  <aj@suse.de>
1568
1569         * po/zh_TW.po: Update Chinese (traditional) translation from
1570         translation project.
1571
1572 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1573
1574         * include/time.h (__clock_gettime): Add libc_hidden_proto.
1575         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
1576         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
1577         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1578         (clock_getcpuclockid): Likewise.
1579         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
1580         Add weak_alias and libc_hidden_def.
1581         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
1582         * rt/clock_gettime.c (clock_gettime): Rename to
1583         __clock_gettime.  Add weak_alias and libc_hidden_def.
1584         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
1585         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
1586         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
1587         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
1588         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
1589         Likewise.
1590         * rt/clock_settime.c (clock_settime): Rename to
1591         __clock_settime.  Add weak_alias and libc_hidden_def.
1592         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
1593
1594 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * mach/err_boot.sub: Remove trailing whitespace.
1597         * mach/err_ipc.sub: Likewise.
1598         * mach/err_mach.sub: Likewise.
1599
1600         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
1601         (ROUNDING_TESTS_double): Likewise.
1602         (ROUNDING_TESTS_long_double): Likewise.
1603         (ROUNDING_TESTS): Likewise.
1604         * math/libm-test.inc: Include <math-tests.h>.
1605         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
1606         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
1607         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
1608         (IF_ROUND_INIT_FE_UPWARD): Likewise.
1609
1610 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1611
1612         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
1613         of assigning.
1614
1615 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
1616
1617         * sysdeps/gnu/errlist.awk: Do not generate space at end of
1618         otherwise empty TRANS lines.
1619         * sysdeps/gnu/errlist.c: Regenerated.
1620
1621         * catgets/gencat.c (error_print): Use (void) in function
1622         definition.
1623         * crypt/crypt_util.c (__init_des): Likewise.
1624         * crypt/speeds.c (Stop): Likewise.
1625         (main): Likewise.
1626         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
1627         * inet/ruserpass.c (token): Likewise.
1628         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
1629         * intl/localealias.c (extend_alias_table): Likewise.
1630         * intl/plural-exp.c (init_germanic_plural): Likewise.
1631         * libio/fcloseall.c (__fcloseall): Likewise.
1632         * libio/genops.c (_IO_flush_all): Likewise.
1633         (_IO_flush_all_linebuffered): Likewise.
1634         (_IO_cleanup): Likewise.
1635         (_IO_iter_begin): Likewise.
1636         (_IO_iter_end): Likewise.
1637         (_IO_list_lock): Likewise.
1638         (_IO_list_unlock): Likewise.
1639         (_IO_list_resetlock): Likewise.
1640         * libio/getchar.c (getchar): Likewise.
1641         * libio/getchar_u.c (getchar_unlocked): Likewise.
1642         * libio/getwchar.c (getwchar): Likewise.
1643         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1644         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
1645         * login/getpt.c (__getpt): Likewise.
1646         * login/tst-utmp.c (main): Likewise.
1647         * malloc/hooks.c (__malloc_check_init): Likewise.
1648         * malloc/malloc.c (__malloc_stats): Likewise.
1649         * malloc/mtrace.c (tr_break): Likewise.
1650         (mtrace): Likewise.
1651         (muntrace): Likewise.
1652         * misc/fstab.c (endfsent): Likewise.
1653         * misc/getclktck.c (__getclktck): Likewise.
1654         * misc/getdtsz.c (__getdtablesize): Likewise.
1655         * misc/gethostid.c (gethostid): Likewise.
1656         * misc/getpagesize.c (__getpagesize): Likewise.
1657         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
1658         (__get_nprocs): Likewise.
1659         (__get_phys_pages): Likewise.
1660         (__get_avphys_pages): Likewise.
1661         * misc/getttyent.c (getttyent): Likewise.
1662         (setttyent): Likewise.
1663         (endttyent): Likewise.
1664         * misc/getusershell.c (getusershell): Likewise.
1665         (endusershell): Likewise.
1666         (setusershell): Likewise.
1667         (initshells): Likewise.
1668         * misc/hsearch.c (__hdestroy): Likewise.
1669         * misc/sync.c (sync): Likewise.
1670         * misc/syslog.c (closelog_internal): Likewise.
1671         (closelog): Likewise.
1672         * misc/ttyslot.c (ttyslot): Likewise.
1673         * misc/vhangup.c (vhangup): Likewise.
1674         * posix/fork.c (__fork): Likewise.
1675         * posix/getegid.c (__getegid): Likewise.
1676         * posix/geteuid.c (__geteuid): Likewise.
1677         * posix/getgid.c (__getgid): Likewise.
1678         * posix/getpid.c (__getpid): Likewise.
1679         * posix/getppid.c (__getppid): Likewise.
1680         * posix/getuid.c (__getuid): Likewise.
1681         * posix/pause.c (pause): Likewise.
1682         * posix/setpgrp.c (setpgrp): Likewise.
1683         * posix/setsid.c (__setsid): Likewise.
1684         * posix/test-vfork.c (noop): Likewise.
1685         * resolv/gethnamaddr.c (_endhtent): Likewise.
1686         (_gethtent): Likewise.
1687         (ht_endhostent): Likewise.
1688         (gethostent): Likewise.
1689         (dns_service): Likewise.
1690         * stdlib/drand48.c (drand48): Likewise.
1691         * stdlib/lrand48.c (lrand48): Likewise.
1692         * stdlib/mrand48.c (mrand48): Likewise.
1693         * stdlib/rand.c (rand): Likewise.
1694         * stdlib/random.c (__random): Likewise.
1695         * stdlib/setenv.c (clearenv): Likewise.
1696         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
1697         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
1698         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1699         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
1700         (__get_nprocs): Likewise.
1701         (__get_phys_pages): Likewise.
1702         (__get_avphys_pages): Likewise.
1703         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
1704         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
1705         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
1706         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
1707         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
1708         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
1709         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
1710         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
1711         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1712         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
1713         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
1714         * sysdeps/mach/hurd/sync.c (sync): Likewise.
1715         * sysdeps/posix/clock.c (clock): Likewise.
1716         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
1717         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
1718         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
1719         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1720         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
1721         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1722         (__get_nprocs_conf): Likewise.
1723         (__get_phys_pages): Likewise.
1724         (__get_avphys_pages): Likewise.
1725         * time/clock.c (clock): Likewise.
1726         * time/tzset.c (__tzname_max): Likewise.
1727
1728 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
1729
1730         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
1731         (__bswap_32): Do not use "register".
1732         * crypt/crypt.c (_ufc_doit_r): Likewise.
1733         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
1734         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
1735         * gmon/gmon.c (__monstartup): Likewise.
1736         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
1737         * hurd/hurdmalloc.c (more_memory): Likewise.
1738         (malloc): Likewise.
1739         (free): Likewise.
1740         (realloc): Likewise.
1741         (malloc_fork_prepare): Likewise.
1742         (malloc_fork_parent): Likewise.
1743         (malloc_fork_child): Likewise.
1744         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
1745         (_svcauth_des): Likewise.
1746         * inet/inet_lnaof.c (inet_lnaof): Likewise.
1747         * inet/inet_net.c (inet_network): Likewise.
1748         * inet/inet_netof.c (inet_netof): Likewise.
1749         * inet/rcmd.c (__validuser2_sa): Likewise.
1750         * io/fts.c (fts_open): Likewise.
1751         (fts_load): Likewise.
1752         (fts_close): Likewise.
1753         (fts_read): Likewise.
1754         (fts_children): Likewise.
1755         (fts_build): Likewise.
1756         (fts_stat): Likewise.
1757         (fts_sort): Likewise.
1758         (fts_alloc): Likewise.
1759         (fts_lfree): Likewise.
1760         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
1761         (_IO_file_xsgetn): Likewise.
1762         (_IO_file_xsgetn_mmap): Likewise.
1763         * libio/iofopncook.c (_IO_cookie_read): Likewise.
1764         (_IO_cookie_write): Likewise.
1765         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
1766         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
1767         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
1768         * malloc/obstack.c (_obstack_begin): Likewise.
1769         (_obstack_begin_1): Likewise.
1770         (_obstack_newchunk): Likewise.
1771         (_obstack_allocated_p): Likewise.
1772         (obstack_free): Likewise.
1773         (_obstack_memory_used): Likewise.
1774         * misc/getttyent.c (getttynam): Likewise.
1775         (getttyent): Likewise.
1776         (skip): Likewise.
1777         (value): Likewise.
1778         * misc/getusershell.c (initshells): Likewise.
1779         * misc/syslog.c (__vsyslog_chk): Likewise.
1780         * misc/ttyslot.c (ttyslot): Likewise.
1781         * nis/nis_hash.c (__nis_hash): Likewise.
1782         * posix/fnmatch_loop.c (FCT): Likewise.
1783         * posix/getconf.c (print_all): Likewise.
1784         (main): Likewise.
1785         * posix/getopt.c (exchange): Likewise.
1786         * posix/glob.c (globfree): Likewise.
1787         (prefix_array): Likewise.
1788         (__glob_pattern_type): Likewise.
1789         * resolv/arpa/nameser.h (NS_GET16): Likewise.
1790         (NS_GET32): Likewise.
1791         (NS_PUT16): Likewise.
1792         (NS_PUT32): Likewise.
1793         * resolv/gethnamaddr.c (getanswer): Likewise.
1794         (gethostbyname2): Likewise.
1795         (gethostbyaddr): Likewise.
1796         (_gethtent): Likewise.
1797         (_gethtbyname2): Likewise.
1798         (_gethtbyaddr): Likewise.
1799         * resolv/ns_print.c (dst_s_get_int16): Likewise.
1800         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1801         * resolv/res_init.c (__res_vinit): Likewise.
1802         (net_mask): Likewise.
1803         * resolv/res_mkquery.c (outchar): Likewise.
1804         (PRINT): Likewise.
1805         * stdio-common/printf_fp.c (outchar): Likewise.
1806         (PRINT): Likewise.
1807         * stdio-common/printf_fphex.c (outchar): Likewise.
1808         (PRINT): Likewise.
1809         * stdio-common/printf_size.c (outchar): Likewise.
1810         (PRINT): Likewise.
1811         * stdio-common/test_rdwr.c (main): Likewise.
1812         * stdio-common/tfformat.c (matches): Likewise.
1813         * stdio-common/vfprintf.c (outchar): Likewise.
1814         (printf_unknown): Likewise.
1815         (buffered_vfprintf): Likewise.
1816         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
1817         * stdio-common/xbug.c (AppendToBuffer): Likewise.
1818         (ReadFile): Likewise.
1819         * stdlib/qsort.c (SWAP): Likewise.
1820         (_quicksort): Likewise.
1821         * stdlib/setenv.c (__add_to_environ): Likewise.
1822         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
1823         * stdlib/strtol_l.c (__strtol_l): Likewise.
1824         * stdlib/tst-strtod.c (main): Likewise.
1825         * stdlib/tst-strtol.c (main): Likewise.
1826         * stdlib/tst-strtoll.c (main): Likewise.
1827         * string/bits/string2.h (__strcmp_cc): Likewise.
1828         (__strcmp_cg): Likewise.
1829         (__strcspn_c1): Likewise.
1830         (__strcspn_c2): Likewise.
1831         (__strcspn_c3): Likewise.
1832         (__strspn_c1): Likewise.
1833         (__strspn_c2): Likewise.
1834         (__strspn_c3): Likewise.
1835         (__strsep_1c): Likewise.
1836         (__strsep_2c): Likewise.
1837         (__strsep_3c): Likewise.
1838         * string/memccpy.c (__memccpy): Likewise.
1839         * string/stpcpy.c (__stpcpy): Likewise.
1840         * string/strcmp.c (strcmp): Likewise.
1841         * string/strrchr.c (strrchr): Likewise.
1842         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
1843         Likewise.
1844         * sysdeps/mach/hurd/getcwd.c
1845         (_hurd_canonicalize_directory_name_internal): Likewise.
1846         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
1847         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
1848         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
1849         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
1850         Likewise, in both definitions.
1851         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
1852         definitions.
1853         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
1854         64] (__bswap_64): Likewise.
1855         * time/test_time.c (main): Likewise.
1856         * time/tzfile.c (__tzfile_read): Likewise.
1857         (__tzfile_compute): Likewise.
1858         * time/tzset.c (__tzset_parse_tz): Likewise.
1859         (tzset_internal): Likewise.
1860         (compute_change): Likewise.
1861         * wcsmbs/wcscat.c (__wcscat): Likewise.
1862         * wcsmbs/wcschr.c (wcschr): Likewise.
1863         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
1864         * wcsmbs/wcscspn.c (wcscspn): Likewise.
1865         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1866         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
1867         * wcsmbs/wcsspn.c (wcsspn): Likewise.
1868         * wcsmbs/wcsstr.c (wcsstr): Likewise.
1869         * wcsmbs/wmemchr.c (wmemchr): Likewise.
1870         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
1871         * wcsmbs/wmemset.c (wmemset): Likewise.
1872
1873 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
1874
1875         * scripts/config.guess: Update to version 2013-05-16.
1876         * scripts/config.sub: Update to version 2013-04-24.
1877         * scripts/install-sh: Update to version 2011-11-20.07.
1878         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
1879         * scripts/move-if-change: Update to version 2012-01-06 07:23.
1880
1881 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
1882
1883         * debug/fgetws_u_chk.c: Fix leading whitespaces.
1884         * elf/sln.c: Likewise.
1885         * hurd/hurd/ioctl.h: Likewise.
1886         * hurd/hurdmalloc.c: Likewise.
1887         * hurd/xattr.c: Likewise.
1888         * include/shlib-compat.h: Likewise.
1889         * inet/ruserpass.c: Likewise.
1890         * libio/iofgets_u.c: Likewise.
1891         * libio/iofgetws_u.c: Likewise.
1892         * locale/programs/ld-identification.c: Likewise.
1893         * locale/programs/ld-time.c: Likewise.
1894         * mach/msg-destroy.c: Likewise.
1895         * nss/nss_files/files-netgrp.c: Likewise.
1896         * resolv/res_data.c: Likewise.
1897         * soft-fp/op-1.h: Likewise.
1898         * soft-fp/op-2.h: Likewise.
1899         * soft-fp/op-4.h: Likewise.
1900         * soft-fp/op-common.h: Likewise.
1901         * stdio-common/printf_fphex.c: Likewise.
1902         * stdlib/strtod_l.c: Likewise.
1903         * sunrpc/rpc/clnt.h: Likewise.
1904         * sysdeps/generic/framestate.c: Likewise.
1905         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1906         * sysdeps/i386/bsd-setjmp.S: Likewise.
1907         * sysdeps/i386/__longjmp.S: Likewise.
1908         * sysdeps/i386/setjmp.S: Likewise.
1909         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1910         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
1911         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1912         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1913         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1914         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
1915         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
1916         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
1917         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
1918         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
1919         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
1920         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
1921         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
1922         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
1923         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
1924         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1925         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
1926         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
1927         * sysdeps/ieee754/support.c: Likewise.
1928         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1929         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
1930         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
1931         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
1932         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
1933         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
1934         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
1935         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
1936         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
1937         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
1938         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
1939         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
1940         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
1941         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
1942         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
1943         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
1944         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1946
1947 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
1948
1949         * posix/transbug.c: Remove executable mode.
1950
1951 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
1952
1953         * crypt/speeds.c: Remove trailing whitespace.
1954         * dlfcn/default.c: Likewise.
1955         * elf/ifuncdep2.c: Likewise.
1956         * elf/ifuncmain1.c: Likewise.
1957         * elf/ifuncmain1vis.c: Likewise.
1958         * elf/testobj.h: Likewise.
1959         * elf/tst-stackguard1.c: Likewise.
1960         * gmon/sys/gmon.h: Likewise.
1961         * hurd/hurdmsg.c: Likewise.
1962         * hurd/new-fd.c: Likewise.
1963         * hurd/ports-get.c: Likewise.
1964         * iconvdata/ibm1008_420.c: Likewise.
1965         * inet/tst-getni1.c: Likewise.
1966         * inet/tst-getni2.c: Likewise.
1967         * libio/ioungetc.c: Likewise.
1968         * libio/wfiledoalloc.c: Likewise.
1969         * manual/libm-err-tab.pl: Likewise.
1970         * math/w_dremf.c: Likewise.
1971         * misc/ftruncate.c: Likewise.
1972         * posix/bug-glob2.c: Likewise.
1973         * posix/tst-pcre.c: Likewise.
1974         * posix/wait4.c: Likewise.
1975         * resolv/README: Likewise.
1976         * resolv/res_debug.h: Likewise.
1977         * resolv/tst-inet_ntop.c: Likewise.
1978         * setjmp/bug269-setjmp.c: Likewise.
1979         * soft-fp/extended.h: Likewise.
1980         * soft-fp/op-1.h: Likewise.
1981         * soft-fp/op-2.h: Likewise.
1982         * soft-fp/op-4.h: Likewise.
1983         * soft-fp/op-8.h: Likewise.
1984         * soft-fp/testit.c: Likewise.
1985         * stdio-common/bug16.c: Likewise.
1986         * stdlib/random.c: Likewise.
1987         * sunrpc/rpcsvc/rquota.x: Likewise.
1988         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1989         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
1990         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1991         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
1992         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
1993         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
1994         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
1995         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
1996         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
1997         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
1998         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
1999         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2000         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2001         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2002         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2003         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2004         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2005         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2006         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2007         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2008         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2009         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2010         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
2011         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2012         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2013         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2014         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
2015         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
2016         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2017         * sysdeps/ieee754/s_lib_version.c: Likewise.
2018         * sysdeps/mach/hurd/check_fds.c: Likewise.
2019         * sysdeps/mach/hurd/getsockname.c: Likewise.
2020         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
2021         * sysdeps/mach/hurd/recvfrom.c: Likewise.
2022         * sysdeps/powerpc/bits/link.h: Likewise.
2023         * sysdeps/powerpc/dl-procinfo.c: Likewise.
2024         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
2025         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
2026         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
2027         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
2028         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2029         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
2030         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
2031         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
2032         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
2033         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
2034         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
2035         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
2036         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
2037         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
2038         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
2039         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
2040         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
2041         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2042         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2043         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
2044         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
2045         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2046         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
2047         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2048         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2049         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2050         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2051         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2052         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
2053         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
2054         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2055         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2056         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2057         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
2058         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
2059         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
2060         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
2061         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
2062         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
2063         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2064         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2065         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2066         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
2067         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
2068         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
2069         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
2070         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
2071         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
2072         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
2073         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2074         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2075         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2076         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2077         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2078         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
2079         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
2080         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2081         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
2082         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
2083         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
2084         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2085         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
2086         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2087         * sysdeps/powerpc/sysdep.h: Likewise.
2088         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2089         * sysdeps/s390/s390-64/sub_n.S: Likewise.
2090         * sysdeps/sh/dl-trampoline.S: Likewise.
2091         * sysdeps/sh/memset.S: Likewise.
2092         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
2093         * sysdeps/sh/strlen.S: Likewise.
2094         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
2095         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
2096         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
2097         * sysdeps/sparc/sparc32/rem.S: Likewise.
2098         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
2099         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
2100         * sysdeps/sparc/sparc32/strchr.S: Likewise.
2101         * sysdeps/sparc/sparc32/udiv.S: Likewise.
2102         * sysdeps/sparc/sparc32/urem.S: Likewise.
2103         * sysdeps/sparc/sparc64/add_n.S: Likewise.
2104         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2105         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
2106         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
2107         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
2108         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
2109         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
2110         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
2111         * sysdeps/unix/bsd/times.c: Likewise.
2112         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
2113         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2117         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
2118         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
2119         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
2120         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
2121         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
2122         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
2123         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2124         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
2125         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
2126         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2127         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2128         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2129         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2130         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
2131         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
2132         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
2133         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
2134         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
2135         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
2136         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
2137         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
2138         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
2139         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2140         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
2141         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
2142         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
2143         * sysdeps/x86_64/strcspn.S: Likewise.
2144
2145 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2146
2147         * locale/C-translit.h: Revert #include <stdint.h> because this is a
2148         generated file.  Regenerate properly from gen-translit.pl.
2149         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
2150         locale/C-translit.h.
2151
2152 2013-06-05  Andreas Schwab  <schwab@suse.de>
2153
2154         [BZ #15100]
2155         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
2156         week as 6 instead of -1.
2157         * time/tst-strptime.c (day_tests): Add test case.
2158
2159 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2160
2161         * sysdeps/generic/math_private.h
2162         (libc_feholdexcept_setround_53bit): Replace with
2163         libc_feholdsetround_53bit.
2164         (libc_feupdateenv_53bit): Replace with
2165         libc_feresetround_53bit.
2166         (SET_RESTORE_ROUND_53BIT): Adjust.
2167
2168 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2169
2170         * string/test-strchrnul.c: Add copyright header.
2171
2172         * posix/tst-getaddrinfo4.c: Increase test timeout.
2173
2174 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
2175
2176         [BZ #15536]
2177         * math/libm-test.inc (MAX_EXP): Remove
2178         (MIN_EXP): Define.
2179         (ulp): Use MIN_EXP - MANT_DIG.
2180         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
2181
2182 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
2183
2184         * po/be.po: Revert last change.
2185         * po/zh_CN.po: Likewise.
2186         * po/header.pot: Likewise.
2187
2188 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
2189
2190         * Makefile ($(common-objpfx)linkobj/libc.so): Define
2191         link-libc-deps to empty as target-specific variable.
2192         * Makerules (link-libc-args): New variable.
2193         (libc-for-link): Likewise.
2194         (link-libc-deps): Likewise.
2195         (lib%.so): Depend on $(link-libc-deps).  Link with
2196         $(link-libc-args).
2197         (build-module): Link with $(link-libc-args).
2198         (build-module-asneeded): Likewise.
2199         (build-module-helper-objlist): Filter out $(link-libc-deps) from
2200         list of objects.
2201         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
2202         target-specific variable.
2203         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
2204         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
2205         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
2206         libc.
2207         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
2208         libc and ld.so.
2209         ($(objpfx)libpcprofile.so): Likewise.
2210         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
2211         libc_nonshared.a.
2212         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
2213         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
2214         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
2215         $(link-libc-deps).
2216         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
2217         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
2218         * login/Makefile ($(objpfx)libutil.so): Likewise.
2219         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
2220         * math/Makefile ($(objpfx)libm.so): Likewise.
2221         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
2222         $(objpfx)libnsl.so): Define libc-for-link as target-specific
2223         variable instead of depending directly on libc.
2224         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
2225         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
2226         $(link-libc-deps).
2227         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
2228         libc.
2229         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
2230         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
2231         ($(objpfx)libanl.so): Likewise.
2232         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
2233         ld.so.
2234         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
2235         $(link-libc-deps).
2236         * sysdeps/i386/fpu/Makefile: Remove file.
2237         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
2238         ($(objpfx)libm.so): Remove dependency on ld.so.
2239
2240 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
2241
2242         [BZ # 15553]
2243         * nis/yp_xdr.c (XDRMAXNAME): Define.
2244         (XDRMAXRECORD): Define.
2245         (xdr_domainname): Use XDRMAXNAME.
2246         (xdr_mapname): Likewise.
2247         (xdr_peername): Likewise.
2248         (xdr_keydat): Use XDRMAXRECORD.
2249         (xdr_valdat): Likewise.
2250
2251 2013-05-30  Jeff Law  <law@redhat.com>
2252
2253         [BZ #14256]
2254         * manual/errno.texi (ESTALE): Update to account for more than
2255         just NFS file systems.
2256         * sysdeps/gnu/errlist.c: Regenerated.
2257
2258 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2259
2260         [BZ #15465]
2261         * elf/Makefile (tests): Add tst-null-argv.
2262         (modules-names):  Add tst-null-argv-lib.
2263         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
2264         (tst-null-argv-ENV): Set environment for tst-null-argv.
2265         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
2266         (RTLD_PROGNAME): New macro.
2267         * elf/tst-null-argv.c: New test case.
2268         * elf/tst-null-argv-lib.c: Library for test case.
2269         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
2270         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2271         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
2272         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
2273         * elf/dl-init.c (call_init): Likewise.
2274         (_dl_init): Likewise.
2275         * elf/dl-load.c (print_search_path): Likewise.
2276         (_dl_map_object): Likewise.
2277         * elf/dl-lookup.c (do_lookup_x): Likewise.
2278         (add_dependency): Likewise.
2279         (_dl_lookup_symbol_x): Likewise.
2280         (_dl_debug_bindings): Likewise.
2281         * elf/dl-open.c (_dl_show_scope): Likewise.
2282         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2283         * elf/dl-version.c (match_symbol): Likewise.
2284         (_dl_check_map_versions): Likewise.
2285         * elf/rtld.c (dl_main): Likewise.
2286         (print_unresolved): Use RTLD_PROGNAME.
2287         (print_missing_version): Likewise.
2288         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2289         (elf_machine_rela): Likewise.
2290         * sysdeps/powerpc/powerpc32/dl-machine.c
2291         (__process_machine_rela): Likewise.
2292         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2293         Likewise.
2294         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2295         Likewise.
2296         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
2297         Likewise.
2298         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2299         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
2300         Likewise.
2301         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
2302         Likewise.
2303         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2304
2305 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
2306
2307         * po/be.po: Add descriptive title.
2308         * po/zh_CN.po: Likewise.
2309         * po/header.pot: Likewise.
2310
2311 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
2312
2313         * locale/programs/locarchive.c (create_archive): Inlucde fname in
2314         error message.
2315         (enlarge_archive): Likewise.
2316
2317 2013-05-28  Ben North  <ben@redfrontdoor.org>
2318
2319         * manual/arith.texi (frexp): It is the magnitude of the return
2320         value which lies in [0.5, 1), not the return value itself.
2321
2322 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2323
2324         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2325
2326 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
2327
2328         * stdio-common/bug26.c (main): Correct fscanf template.
2329
2330         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
2331         declare _dl_skip_args.
2332
2333         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
2334         Don't declare.
2335
2336         * manual/platform.texi: Add missing @end deftypefun.
2337
2338 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
2339
2340         [BZ #15529]
2341         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
2342         bit of mantissa of 2^16382.
2343         * math/libm-test.inc (hypot_test_data): Add more tests.
2344
2345         * math/libm-test.inc: Add drem and pow10 to list of tested
2346         functions.
2347         (pow10_test): New function.
2348         (drem_test): Likewise.
2349         (drem_test_tonearest): Likewise.
2350         (drem_test_towardzero): Likewise.
2351         (drem_test_downward): Likewise.
2352         (drem_test_upward): Likewise.
2353         (main): Call the new functions.
2354
2355         * math/libm-test.inc (finite_test_data): Remove.
2356         (finite_test): Run tests from isfinite_test_data.
2357         (gamma_test_data): Remove.
2358         (gamma_test): Run tests from lgamma_test_data.
2359         * sysdeps/i386/fpu/libm-test-ulps: Update.
2360         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2361
2362 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2363
2364         * manual/platform.texi: Add PowerPC PPR function set documentation.
2365         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
2366         implementation.
2367
2368 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
2369
2370         * math/libm-test.inc (MAX_EXP): Define.
2371         (ULPDIFF): Define.
2372         (ulp): New function.
2373         (check_float_internal): Use ULPDIFF.
2374         (cpow_test): Disable failing test.
2375         (check_ulp): Test ulp() implemetnation.
2376         (main): Call check_ulp before starting tests.
2377
2378 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
2379
2380         * math/gen-libm-test.pl (generate_testfile): Do not handle
2381         START_DATA and END_DATA.
2382         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
2383         END_DATA.
2384         (acos_tonearest_test_data): Likewise.
2385         (acos_towardzero_test_data): Likewise.
2386         (acos_downward_test_data): Likewise.
2387         (acos_upward_test_data): Likewise.
2388         (acosh_test_data): Likewise.
2389         (asin_test_data): Likewise.
2390         (asin_tonearest_test_data): Likewise.
2391         (asin_towardzero_test_data): Likewise.
2392         (asin_downward_test_data): Likewise.
2393         (asin_upward_test_data): Likewise.
2394         (asinh_test_data): Likewise.
2395         (atan_test_data): Likewise.
2396         (atanh_test_data): Likewise.
2397         (atan2_test_data): Likewise.
2398         (cabs_test_data): Likewise.
2399         (cacos_test_data): Likewise.
2400         (cacosh_test_data): Likewise.
2401         (carg_test_data): Likewise.
2402         (casin_test_data): Likewise.
2403         (casinh_test_data): Likewise.
2404         (catan_test_data): Likewise.
2405         (catanh_test_data): Likewise.
2406         (cbrt_test_data): Likewise.
2407         (ccos_test_data): Likewise.
2408         (ccosh_test_data): Likewise.
2409         (ceil_test_data): Likewise.
2410         (cexp_test_data): Likewise.
2411         (cimag_test_data): Likewise.
2412         (clog_test_data): Likewise.
2413         (clog10_test_data): Likewise.
2414         (conj_test_data): Likewise.
2415         (copysign_test_data): Likewise.
2416         (cos_test_data): Likewise.
2417         (cos_tonearest_test_data): Likewise.
2418         (cos_towardzero_test_data): Likewise.
2419         (cos_downward_test_data): Likewise.
2420         (cos_upward_test_data): Likewise.
2421         (cosh_test_data): Likewise.
2422         (cosh_tonearest_test_data): Likewise.
2423         (cosh_towardzero_test_data): Likewise.
2424         (cosh_downward_test_data): Likewise.
2425         (cosh_upward_test_data): Likewise.
2426         (cpow_test_data): Likewise.
2427         (cproj_test_data): Likewise.
2428         (creal_test_data): Likewise.
2429         (csin_test_data): Likewise.
2430         (csinh_test_data): Likewise.
2431         (csqrt_test_data): Likewise.
2432         (ctan_test_data): Likewise.
2433         (ctan_tonearest_test_data): Likewise.
2434         (ctan_towardzero_test_data): Likewise.
2435         (ctan_downward_test_data): Likewise.
2436         (ctan_upward_test_data): Likewise.
2437         (ctanh_test_data): Likewise.
2438         (ctanh_tonearest_test_data): Likewise.
2439         (ctanh_towardzero_test_data): Likewise.
2440         (ctanh_downward_test_data): Likewise.
2441         (ctanh_upward_test_data): Likewise.
2442         (erf_test_data): Likewise.
2443         (erfc_test_data): Likewise.
2444         (exp_test_data): Likewise.
2445         (exp_tonearest_test_data): Likewise.
2446         (exp_towardzero_test_data): Likewise.
2447         (exp_downward_test_data): Likewise.
2448         (exp_upward_test_data): Likewise.
2449         (exp10_test_data): Likewise.
2450         (exp2_test_data): Likewise.
2451         (expm1_test_data): Likewise.
2452         (fabs_test_data): Likewise.
2453         (fdim_test_data): Likewise.
2454         (finite_test_data): Likewise.
2455         (floor_test_data): Likewise.
2456         (fma_test_data): Likewise.
2457         (fma_towardzero_test_data): Likewise.
2458         (fma_downward_test_data): Likewise.
2459         (fma_upward_test_data): Likewise.
2460         (fmax_test_data): Likewise.
2461         (fmin_test_data): Likewise.
2462         (fmod_test_data): Likewise.
2463         (fpclassify_test_data): Likewise.
2464         (frexp_test_data): Likewise.
2465         (gamma_test_data): Likewise.
2466         (hypot_test_data): Likewise.
2467         (ilogb_test_data): Likewise.
2468         (isfinite_test_data): Likewise.
2469         (isgreater_test_data): Likewise.
2470         (isgreaterequal_test_data): Likewise.
2471         (isinf_test_data): Likewise.
2472         (isless_test_data): Likewise.
2473         (islessequal_test_data): Likewise.
2474         (islessgreater_test_data): Likewise.
2475         (isnan_test_data): Likewise.
2476         (isnormal_test_data): Likewise.
2477         (issignaling_test_data): Likewise.
2478         (isunordered_test_data): Likewise.
2479         (j0_test_data): Likewise.
2480         (j1_test_data): Likewise.
2481         (jn_test_data): Likewise.
2482         (ldexp_test_data): Likewise.
2483         (lgamma_test_data): Likewise.
2484         (lrint_test_data): Likewise.
2485         (lrint_tonearest_test_data): Likewise.
2486         (lrint_towardzero_test_data): Likewise.
2487         (lrint_downward_test_data): Likewise.
2488         (lrint_upward_test_data): Likewise.
2489         (llrint_test_data): Likewise.
2490         (llrint_tonearest_test_data): Likewise.
2491         (llrint_towardzero_test_data): Likewise.
2492         (llrint_downward_test_data): Likewise.
2493         (llrint_upward_test_data): Likewise.
2494         (log_test_data): Likewise.
2495         (log10_test_data): Likewise.
2496         (log1p_test_data): Likewise.
2497         (log2_test_data): Likewise.
2498         (logb_test_data): Likewise.
2499         (logb_downward_test_data): Likewise.
2500         (lround_test_data): Likewise.
2501         (llround_test_data): Likewise.
2502         (modf_test_data): Likewise.
2503         (nearbyint_test_data): Likewise.
2504         (nextafter_test_data): Likewise.
2505         (nexttoward_test_data): Likewise.
2506         (pow_test_data): Likewise.
2507         (pow_tonearest_test_data): Likewise.
2508         (pow_towardzero_test_data): Likewise.
2509         (pow_downward_test_data): Likewise.
2510         (pow_upward_test_data): Likewise.
2511         (remainder_test_data): Likewise.
2512         (remainder_tonearest_test_data): Likewise.
2513         (remainder_towardzero_test_data): Likewise.
2514         (remainder_downward_test_data): Likewise.
2515         (remainder_upward_test_data): Likewise.
2516         (remquo_test_data): Likewise.
2517         (rint_test_data): Likewise.
2518         (rint_tonearest_test_data): Likewise.
2519         (rint_towardzero_test_data): Likewise.
2520         (rint_downward_test_data): Likewise.
2521         (rint_upward_test_data): Likewise.
2522         (round_test_data): Likewise.
2523         (scalb_test_data): Likewise.
2524         (scalbn_test_data): Likewise.
2525         (scalbln_test_data): Likewise.
2526         (signbit_test_data): Likewise.
2527         (sin_test_data): Likewise.
2528         (sin_tonearest_test_data): Likewise.
2529         (sin_towardzero_test_data): Likewise.
2530         (sin_downward_test_data): Likewise.
2531         (sin_upward_test_data): Likewise.
2532         (sincos_test_data): Likewise.
2533         (sinh_test_data): Likewise.
2534         (sinh_tonearest_test_data): Likewise.
2535         (sinh_towardzero_test_data): Likewise.
2536         (sinh_downward_test_data): Likewise.
2537         (sinh_upward_test_data): Likewise.
2538         (sqrt_test_data): Likewise.
2539         (tan_test_data): Likewise.
2540         (tan_tonearest_test_data): Likewise.
2541         (tan_towardzero_test_data): Likewise.
2542         (tan_downward_test_data): Likewise.
2543         (tan_upward_test_data): Likewise.
2544         (tanh_test_data): Likewise.
2545         (tgamma_test_data): Likewise.
2546         (trunc_test_data): Likewise.
2547         (y0_test_data): Likewise.
2548         (y1_test_data): Likewise.
2549         (yn_test_data): Likewise.
2550         (significand_test_data): Likewise.
2551
2552         * math/gen-libm-test.pl (@functions): Remove variable.
2553         (generate_testfile): Don't handle START and END lines.
2554         * math/libm-test.inc (START): New macro.
2555         (END): Likewise.
2556         (END_COMPLEX): Likewise.
2557         (acos_test): Use END macro without arguments.
2558         (acos_test_tonearest): Likewise.
2559         (acos_test_towardzero): Likewise.
2560         (acos_test_downward): Likewise.
2561         (acos_test_upward): Likewise.
2562         (acosh_test): Likewise.
2563         (asin_test): Likewise.
2564         (asin_test_tonearest): Likewise.
2565         (asin_test_towardzero): Likewise.
2566         (asin_test_downward): Likewise.
2567         (asin_test_upward): Likewise.
2568         (asinh_test): Likewise.
2569         (atan_test): Likewise.
2570         (atanh_test): Likewise.
2571         (atan2_test): Likewise.
2572         (cabs_test): Likewise.
2573         (cacos_test): Use END_COMPLEX macro without arguments.
2574         (cacosh_test): Likewise.
2575         (carg_test): Use END macro without arguments.
2576         (casin_test): Use END_COMPLEX macro without arguments.
2577         (casinh_test): Likewise.
2578         (catan_test): Likewise.
2579         (catanh_test): Likewise.
2580         (cbrt_test): Use END macro without arguments.
2581         (ccos_test): Use END_COMPLEX macro without arguments.
2582         (ccosh_test): Likewise.
2583         (ceil_test): Use END macro without arguments.
2584         (cexp_test): Use END_COMPLEX macro without arguments.
2585         (cimag_test): Use END macro without arguments.
2586         (clog_test): Use END_COMPLEX macro without arguments.
2587         (clog10_test): Likewise.
2588         (conj_test): Likewise.
2589         (copysign_test): Use END macro without arguments.
2590         (cos_test): Likewise.
2591         (cos_test_tonearest): Likewise.
2592         (cos_test_towardzero): Likewise.
2593         (cos_test_downward): Likewise.
2594         (cos_test_upward): Likewise.
2595         (cosh_test): Likewise.
2596         (cosh_test_tonearest): Likewise.
2597         (cosh_test_towardzero): Likewise.
2598         (cosh_test_downward): Likewise.
2599         (cosh_test_upward): Likewise.
2600         (cpow_test): Use END_COMPLEX macro without arguments.
2601         (cproj_test): Likewise.
2602         (creal_test): Use END macro without arguments.
2603         (csin_test): Use END_COMPLEX macro without arguments.
2604         (csinh_test): Likewise.
2605         (csqrt_test): Likewise.
2606         (ctan_test): Likewise.
2607         (ctan_test_tonearest): Likewise.
2608         (ctan_test_towardzero): Likewise.
2609         (ctan_test_downward): Likewise.
2610         (ctan_test_upward): Likewise.
2611         (ctanh_test): Likewise.
2612         (ctanh_test_tonearest): Likewise.
2613         (ctanh_test_towardzero): Likewise.
2614         (ctanh_test_downward): Likewise.
2615         (ctanh_test_upward): Likewise.
2616         (erf_test): Use END macro without arguments.
2617         (erfc_test): Likewise.
2618         (exp_test): Likewise.
2619         (exp_test_tonearest): Likewise.
2620         (exp_test_towardzero): Likewise.
2621         (exp_test_downward): Likewise.
2622         (exp_test_upward): Likewise.
2623         (exp10_test): Likewise.
2624         (exp2_test): Likewise.
2625         (expm1_test): Likewise.
2626         (fabs_test): Likewise.
2627         (fdim_test): Likewise.
2628         (finite_test): Likewise.
2629         (floor_test): Likewise.
2630         (fma_test): Likewise.
2631         (fma_test_towardzero): Likewise.
2632         (fma_test_downward): Likewise.
2633         (fma_test_upward): Likewise.
2634         (fmax_test): Likewise.
2635         (fmin_test): Likewise.
2636         (fmod_test): Likewise.
2637         (fpclassify_test): Likewise.
2638         (frexp_test): Likewise.
2639         (gamma_test): Likewise.
2640         (hypot_test): Likewise.
2641         (ilogb_test): Likewise.
2642         (isfinite_test): Likewise.
2643         (isgreater_test): Likewise.
2644         (isgreaterequal_test): Likewise.
2645         (isinf_test): Likewise.
2646         (isless_test): Likewise.
2647         (islessequal_test): Likewise.
2648         (islessgreater_test): Likewise.
2649         (isnan_test): Likewise.
2650         (isnormal_test): Likewise.
2651         (issignaling_test): Likewise.
2652         (isunordered_test): Likewise.
2653         (j0_test): Likewise.
2654         (j1_test): Likewise.
2655         (jn_test): Likewise.
2656         (ldexp_test): Likewise.
2657         (lgamma_test): Likewise.
2658         (lrint_test): Likewise.
2659         (lrint_test_tonearest): Likewise.
2660         (lrint_test_towardzero): Likewise.
2661         (lrint_test_downward): Likewise.
2662         (lrint_test_upward): Likewise.
2663         (llrint_test): Likewise.
2664         (llrint_test_tonearest): Likewise.
2665         (llrint_test_towardzero): Likewise.
2666         (llrint_test_downward): Likewise.
2667         (llrint_test_upward): Likewise.
2668         (log_test): Likewise.
2669         (log10_test): Likewise.
2670         (log1p_test): Likewise.
2671         (log2_test): Likewise.
2672         (logb_test): Likewise.
2673         (logb_test_downward): Likewise.
2674         (lround_test): Likewise.
2675         (llround_test): Likewise.
2676         (modf_test): Likewise.
2677         (nearbyint_test): Likewise.
2678         (nextafter_test): Likewise.
2679         (nexttoward_test): Likewise.
2680         (pow_test): Likewise.
2681         (pow_test_tonearest): Likewise.
2682         (pow_test_towardzero): Likewise.
2683         (pow_test_downward): Likewise.
2684         (pow_test_upward): Likewise.
2685         (remainder_test): Likewise.
2686         (remainder_test_tonearest): Likewise.
2687         (remainder_test_towardzero): Likewise.
2688         (remainder_test_downward): Likewise.
2689         (remainder_test_upward): Likewise.
2690         (remquo_test): Likewise.
2691         (rint_test): Likewise.
2692         (rint_test_tonearest): Likewise.
2693         (rint_test_towardzero): Likewise.
2694         (rint_test_downward): Likewise.
2695         (rint_test_upward): Likewise.
2696         (round_test): Likewise.
2697         (scalb_test): Likewise.
2698         (scalbn_test): Likewise.
2699         (scalbln_test): Likewise.
2700         (signbit_test): Likewise.
2701         (sin_test): Likewise.
2702         (sin_test_tonearest): Likewise.
2703         (sin_test_towardzero): Likewise.
2704         (sin_test_downward): Likewise.
2705         (sin_test_upward): Likewise.
2706         (sincos_test): Likewise.
2707         (sinh_test): Likewise.
2708         (sinh_test_tonearest): Likewise.
2709         (sinh_test_towardzero): Likewise.
2710         (sinh_test_downward): Likewise.
2711         (sinh_test_upward): Likewise.
2712         (sqrt_test): Likewise.
2713         (tan_test): Likewise.
2714         (tan_test_tonearest): Likewise.
2715         (tan_test_towardzero): Likewise.
2716         (tan_test_downward): Likewise.
2717         (tan_test_upward): Likewise.
2718         (tanh_test): Likewise.
2719         (tgamma_test): Likewise.
2720         (trunc_test): Likewise.
2721         (y0_test): Likewise.
2722         (y1_test): Likewise.
2723         (yn_test): Likewise.
2724         (significand_test): Likewise.
2725
2726 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
2727
2728         [BZ #15381]
2729         * libio/genops.c (_IO_no_init): Initialize wide struct info.
2730
2731 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2732
2733         [BZ #14894]
2734         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
2735         __ppc_mdoio and __ppc_mdoom.
2736         * manual/platform.texi: Document new functions __ppc_yield,
2737         __ppc_mdoio and __ppc_mdoom.
2738
2739 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
2740
2741         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
2742         (main): Mention "tls" pseudo-hwcap is legacy.
2743         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
2744
2745 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
2746
2747         * math/gen-libm-test.pl (parse_args): Output only string of
2748         arguments as text for test name, not full call or descriptions of
2749         tests for extra outputs.
2750         (generate_testfile): Do not pass function name to parse_args.
2751         Generate this_func variable from START.
2752         * math/libm-test.inc (struct test_f_f_data): Rename test_name
2753         field to arg_str.
2754         (struct test_ff_f_data): Likewise.
2755         (test_ff_f_data_nexttoward): Likewise.
2756         (struct test_fi_f_data): Likewise.
2757         (struct test_fl_f_data): Likewise.
2758         (struct test_if_f_data): Likewise.
2759         (struct test_fff_f_data): Likewise.
2760         (struct test_c_f_data): Likewise.
2761         (struct test_f_f1_data): Likewise.  Remove field extra_name.
2762         (struct test_fF_f1_data): Likewise.
2763         (struct test_ffI_f1_data): Likewise.
2764         (struct test_c_c_data): Rename test_name field to arg_str.
2765         (struct test_cc_c_data): Likewise.
2766         (struct test_f_i_data): Likewise.
2767         (struct test_ff_i_data): Likewise.
2768         (struct test_f_l_data): Likewise.
2769         (struct test_f_L_data): Likewise.
2770         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
2771         and extra2_name.
2772         (COMMON_TEST_SETUP): New macro.
2773         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
2774         (COMMON_TEST_CLEANUP): Likewise.
2775         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
2776         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
2777         macros.
2778         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
2779         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
2780         macros.
2781         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
2782         (RUN_TEST_fff_f): Take argument string.  Call new setup and
2783         cleanup macros.
2784         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
2785         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
2786         macros.
2787         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
2788         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
2789         macros.
2790         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
2791         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
2792         cleanup macros.
2793         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
2794         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
2795         cleanup macros.
2796         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
2797         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
2798         cleanup macros.
2799         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
2800         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
2801         macros.
2802         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
2803         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
2804         macros.
2805         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
2806         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
2807         macros.
2808         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
2809         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
2810         cleanup macros.
2811         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
2812         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
2813         cleanup macros.
2814         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
2815         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
2816         macros.
2817         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
2818         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
2819         cleanup macros.
2820         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
2821         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
2822         macros.
2823         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
2824         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
2825         macros.
2826         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
2827         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
2828         cleanup macros.
2829         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
2830
2831 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2832
2833         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
2834         to _sifields.sigfault.
2835         (si_addr_lsb): Define new macro.
2836         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
2837         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2838         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
2839
2840 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
2841
2842         [BZ #15441]
2843         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
2844         returns -1.
2845         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
2846         null return -1.
2847         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
2848         loading the domain.
2849
2850 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
2851
2852         * math/gen-libm-test.pl (parse_args): Do not include expected
2853         result in test name.
2854         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
2855         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2856         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2857         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
2858         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2860
2861 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2862
2863         * benchtests/Makefile: Sort function entries.
2864
2865         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
2866         tanh, asinh, acosh, atanh.
2867         * benchtests/acos-inputs: New file.
2868         * benchtests/acosh-inputs: New file.
2869         * benchtests/asin-inputs: New file.
2870         * benchtests/asinh-inputs: New file.
2871         * benchtests/atanh-inputs: New file.
2872         * benchtests/cosh-inputs: New file.
2873         * benchtests/log-inputs: New file.
2874         * benchtests/sinh-inputs: New file.
2875         * benchtests/tanh-inputs: New file.
2876
2877 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
2878
2879         [BZ #15339]
2880         * posix/tst-getaddrinfo4.c: New test.
2881         * posix/Makefile (tests): Add it.
2882
2883 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2884
2885         [BZ #15339]
2886         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
2887         when no services were used.
2888         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
2889         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
2890
2891 2013-05-21  Andreas Schwab  <schwab@suse.de>
2892
2893         [BZ #15014]
2894         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
2895         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
2896         successful.
2897         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
2898         redundant variable declarations and reallocation of buffer when
2899         parsing as IPv6 address.  Always set NSS status when called from
2900         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
2901         buffer too small.  Correct computation of needed size.
2902         * nss/Makefile (tests): Add test-digits-dots.
2903         * nss/test-digits-dots.c: New test.
2904
2905 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2906
2907         * benchtests/Makefile: Remove instructions for adding
2908         benchmark tests.
2909         * benchtests/README: New file to explain how to execute and
2910         enhance the benchmark tests.
2911
2912 2013-05-21  Andreas Schwab  <schwab@suse.de>
2913
2914         [BZ #15493]
2915         * setjmp/Makefile (tests): Add tst-sigsetjmp.
2916         * setjmp/tst-sigsetjmp.c: New test.
2917
2918 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
2919
2920         * sysdeps/x86_64/memset.S (memset): New implementation.
2921         (__bzero): Likewise.
2922         (__memset_tail): New function.
2923
2924 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
2925
2926         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
2927         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
2928         __memcpy_sse2_unaligned ifunc selection.
2929         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2930         Add memcpy-sse2-unaligned.S.
2931         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2932         Add: __memcpy_sse2_unaligned.
2933
2934 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
2935
2936         [BZ #15490]
2937         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2938         math_force_eval before restoring floating-point envrionment.
2939         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
2940         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
2941         Likewise.
2942         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
2943         <math_private.h>.
2944         (__nearbyintl): Use math_force_eval before restoring
2945         floating-point environment.
2946         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
2947
2948         * math/gen-libm-test.pl (special_functions): Remove.
2949         (parse_args): Don't handle TEST_extra.  Handle functions with no
2950         return value.
2951         * math/libm-test.inc (struct test_sincos_data): Replace with
2952         struct test_fFF_11_data.
2953         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
2954         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
2955         (sincos_test_data): Change element type to struct
2956         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
2957         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
2958         RUN_TEST_LOOP_sincos.
2959         * math/README.libm-test: Don't mention special handling of
2960         individual functions.
2961         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
2962         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2963         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2964         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
2965         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2967
2968         * math/gen-libm-test.pl (get_variable): Remove function.
2969         (parse_args): Don't show pointer parameters to call in test
2970         names.  Use "extra output N" in test names for extra outputs
2971         rather than naming variables.
2972
2973 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
2974
2975         [BZ #15488]
2976         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
2977         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
2978         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
2979         double tests.
2980         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
2981         disable.
2982         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
2983         check_long_double.
2984
2985         * math/gen-libm-test.pl (@tests): Remove variable.
2986         ($count): Likewise.
2987         (new_test): Remove function.
2988         (show_exceptions): New function.
2989         (special_functions): Use show_exceptions instead of new_test.
2990         (parse_args): Likewise.
2991         (generate_testfile): Pass only function name in generated call to
2992         print_max_error or print_complex_max_error.
2993         (get_ulps): Do not handle complex tests specially.
2994         (output_test): Rename to ...
2995         (get_all_ulps_for_test): ... this.  Return a string rather than
2996         printing to a file.  Require ulps to be present.
2997         (output_ulps): Generate arrays rather than #defines.
2998         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
2999         (struct ulp_data): New type.
3000         (BUILD_COMPLEX_ULP): Remove macro.
3001         (compare_ulp_data): New function.
3002         (find_ulps): Likewise.
3003         (find_test_ulps): Likewise.
3004         (find_function_ulps): Likewise.
3005         (find_complex_function_ulps): Likewise.
3006         (print_max_error): Determine allowed ulps using
3007         find_function_ulps.
3008         (print_complex_max_error): Determine allowed ulps using
3009         find_complex_function_ulps.
3010         (check_float_internal): Determine max ulps using find_test_ulps.
3011         (check_float): Do not take max_ulp parameter.  Update call to
3012         check_float_internal.
3013         (check_complex): Likewise.
3014         (check_int): Do not take max_ulp parameter.
3015         (check_long): Likewise.
3016         (check_bool): Likewise.
3017         (check_longlong): Likewise.
3018         (struct test_f_f_data): Remove max_ulp field.
3019         (struct test_ff_f_data): Likewise.
3020         (struct test_ff_f_data_nexttoward): Likewise.
3021         (struct test_fi_f_data): Likewise.
3022         (struct test_fl_f_data): Likewise.
3023         (struct test_if_f_data): Likewise.
3024         (struct test_fff_f_data): Likewise.
3025         (struct test_c_f_data): Likewise.
3026         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
3027         (struct test_fF_f1_data): Likewise.
3028         (struct test_ffI_f1_data): Likewise.
3029         (struct test_c_c_data): Remove max_ulp field.
3030         (struct test_cc_c_data): Likewise.
3031         (struct test_f_i_data): Likewise.
3032         (struct test_ff_i_data): Likewise.
3033         (struct test_f_l_data): Likewise.
3034         (struct test_f_L_data): Likewise.
3035         (struct test_sincos_data): Likewise.
3036         (RUN_TEST_f_f): Do not handle ulps.
3037         (RUN_TEST_LOOP_f_f): Likewise.
3038         (RUN_TEST_2_f): Likewise.
3039         (RUN_TEST_LOOP_2_f): Likewise.
3040         (RUN_TEST_fff_f): Likewise.
3041         (RUN_TEST_LOOP_fff_f): Likewise.
3042         (RUN_TEST_c_f): Likewise.
3043         (RUN_TEST_LOOP_c_f): Likewise.
3044         (RUN_TEST_f_f1): Likewise.
3045         (RUN_TEST_LOOP_f_f1): Likewise.
3046         (RUN_TEST_fF_f1): Likewise.
3047         (RUN_TEST_LOOP_fF_f1): Likewise.
3048         (RUN_TEST_fI_f1): Likewise.
3049         (RUN_TEST_LOOP_fI_f1): Likewise.
3050         (RUN_TEST_ffI_f1): Likewise.
3051         (RUN_TEST_LOOP_ffI_f1): Likewise.
3052         (RUN_TEST_c_c): Likewise.
3053         (RUN_TEST_LOOP_c_c): Likewise.
3054         (RUN_TEST_cc_c): Likewise.
3055         (RUN_TEST_LOOP_cc_c): Likewise.
3056         (RUN_TEST_f_i): Likewise.
3057         (RUN_TEST_LOOP_f_i): Likewise.
3058         (RUN_TEST_f_i_tg): Likewise.
3059         (RUN_TEST_LOOP_f_i_tg): Likewise.
3060         (RUN_TEST_ff_i_tg): Likewise.
3061         (RUN_TEST_LOOP_ff_i_tg): Likewise.
3062         (RUN_TEST_f_b): Likewise.
3063         (RUN_TEST_LOOP_f_b): Likewise.
3064         (RUN_TEST_f_b_tg): Likewise.
3065         (RUN_TEST_LOOP_f_b_tg): Likewise.
3066         (RUN_TEST_f_l): Likewise.
3067         (RUN_TEST_LOOP_f_l): Likewise.
3068         (RUN_TEST_f_L): Likewise.
3069         (RUN_TEST_LOOP_f_L): Likewise.
3070         (RUN_TEST_sincos): Likewise.
3071         (RUN_TEST_LOOP_sincos): Likewise.
3072
3073 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
3074
3075         [BZ #15480]
3076         [BZ #15485]
3077         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
3078         main case of finite arguments, set rounding mode to FE_TONEAREST
3079         and discard exceptions.
3080         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
3081         exceptions.
3082         (remainder_tonearest_test_data): New variable.
3083         (remainder_test_tonearest): New function.
3084         (remainder_towardzero_test_data): New variable.
3085         (remainder_test_towardzero): New function.
3086         (remainder_downward_test_data): New variable.
3087         (remainder_test_downward): New function.
3088         (remainder_upward_test_data): New variable.
3089         (remainder_test_upward): New function.
3090         (main): Call the new test functions.
3091
3092         * math/libm-test.inc (struct test_f_f1_data): Remove field
3093         extra_init.
3094         (struct test_fF_f1_data): Likewise.
3095         (struct test_ffI_f1_data): Likewise.
3096         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
3097         based on value of EXTRA_EXPECTED.
3098         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
3099         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
3100         EXTRA_VAR based on value of EXTRA_EXPECTED.
3101         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
3102         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
3103         EXTRA_VAR based on value of EXTRA_EXPECTED.
3104         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
3105         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
3106         EXTRA_VAR based on value of EXTRA_EXPECTED.
3107         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
3108         * math/gen-libm-test.pl (parse_args): Don't output initializers
3109         for extra output values.
3110
3111         * math/libm-test.inc (check_int): Expect result to be exactly
3112         equal to expected value and do not handle ulps.
3113         (check_long): Likewise.
3114         (check_longlong): Likewise.
3115
3116         * math/libm-test.inc (ceil_test_data): Test for "inexact"
3117         exceptions.
3118         (cimag_test_data): Likewise.
3119         (conj_test_data): Likewise.
3120         (copysign_test_data): Likewise.
3121         (cproj_test_data): Likewise.
3122         (creal_test_data): Likewise.
3123         (fabs_test_data): Likewise.
3124         (fdim_test_data): Likewise.
3125         (finite_test_data): Likewise.
3126         (floor_test_data): Likewise.
3127         (fmax_test_data): Likewise.
3128         (fmin_test_data): Likewise.
3129         (fmod_test_data): Likewise.
3130         (fpclassify_test_data): Likewise.
3131         (frexp_test_data): Likewise.
3132         (ilogb_test_data): Likewise.
3133         (isfinite_test_data): Likewise.
3134         (isgreater_test_data): Likewise.
3135         (isgreaterequal_test_data): Likewise.
3136         (isinf_test_data): Likewise.
3137         (isless_test_data): Likewise.
3138         (islessequal_test_data): Likewise.
3139         (islessgreater_test_data): Likewise.
3140         (isnan_test_data): Likewise.
3141         (isnormal_test_data): Likewise.
3142         (issignaling_test_data): Likewise.
3143         (isunordered_test_data): Likewise.
3144         (ldexp_test_data): Likewise.
3145         (lrint_test_data): Likewise.
3146         (lrint_test_data) [TEST_FLOAT]: Disable one test.
3147         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
3148         (lrint_tonearest_test_data): Test for "inexact" exceptions.
3149         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
3150         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
3151         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
3152         test input.
3153         (lrint_towardzero_test_data): Test for "inexact" exceptions.
3154         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
3155         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
3156         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
3157         that test input.
3158         (lrint_downward_test_data): Test for "inexact" exceptions.
3159         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
3160         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
3161         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
3162         test input.
3163         (lrint_upward_test_data): Test for "inexact" exceptions.
3164         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
3165         test input.
3166         (llrint_test_data): Test for "inexact" exceptions.
3167         (llrint_test_data) [TEST_FLOAT]: Disable one test.
3168         (llrint_tonearest_test_data): Test for "inexact" exceptions.
3169         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
3170         (llrint_towardzero_test_data): Test for "inexact" exceptions.
3171         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
3172         (llrint_downward_test_data): Test for "inexact" exceptions.
3173         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
3174         (llrint_upward_test_data): Test for "inexact" exceptions.
3175         (logb_test_data): Likewise.
3176         (logb_downward_test_data): Likewise.
3177         (nextafter_test_data): Likewise.
3178         (nexttoward_test_data): Likewise.
3179         (remainder_test_data): Likewise.
3180         (remquo_test_data): Likewise.
3181         (scalbn_test_data): Likewise.
3182         (scalbln_test_data): Likewise.
3183         (signbit_test_data): Likewise.
3184         (sqrt_test_data): Likewise.
3185         (significand_test_data): Likewise.
3186
3187 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3188
3189         [BZ #15424]
3190         * benchtests/bench-modf.c (struct args): Mark arg0 as
3191         volatile.
3192         * scripts/bench.pl: Mark members of struct args as volatile.
3193
3194 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3195
3196         [BZ # 15497]
3197         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
3198         negative infinity on POWER6 or lower.
3199         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
3200
3201 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
3202
3203         [BZ #15442]
3204         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
3205         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
3206         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
3207         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
3208         (_FP_SETQNAN): New macro.
3209         (_FP_SETQNAN_SEMIRAW): Likewise.
3210         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
3211         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
3212         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
3213         (FP_EXTEND): Use _FP_FRAC_SNANP.
3214         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
3215         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
3216         into account.
3217         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
3218         New macro.
3219         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
3220         Likewise.
3221
3222 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
3223
3224         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
3225         with DIVIDE_BY_ZERO_EXCEPTION.
3226         (gamma_test_data): Likewise.
3227         (lgamma_test_data): Likewise.
3228         (log_test_data): Likewise.
3229         (log10_test_data): Likewise.
3230         (log2_test_data): Likewise.
3231         (tgamma_test_data): Likewise.
3232
3233         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
3234         (acos_test_tonearest): Likewise.
3235         (acos_test_towardzero): Likewise.
3236         (acos_test_downward): Likewise.
3237         (acos_test_upward): Likewise.
3238         (acosh_test): Likewise.
3239         (asin_test): Likewise.
3240         (asin_test_tonearest): Likewise.
3241         (asin_test_towardzero): Likewise.
3242         (asin_test_downward): Likewise.
3243         (asin_test_upward): Likewise.
3244         (asinh_test): Likewise.
3245         (atan_test): Likewise.
3246         (atanh_test): Likewise.
3247         (atan2_test): Likewise.
3248         (cabs_test): Likewise.
3249         (cacos_test): Likewise.
3250         (cacosh_test): Likewise.
3251         (casin_test): Likewise.
3252         (casinh_test): Likewise.
3253         (catan_test): Likewise.
3254         (catanh_test): Likewise.
3255         (cbrt_test): Likewise.
3256         (ccos_test): Likewise.
3257         (ccosh_test): Likewise.
3258         (cexp_test): Likewise.
3259         (clog_test): Likewise.
3260         (clog10_test): Likewise.
3261         (cos_test): Likewise.
3262         (cos_test_tonearest): Likewise.
3263         (cos_test_towardzero): Likewise.
3264         (cos_test_downward): Likewise.
3265         (cos_test_upward): Likewise.
3266         (cosh_test): Likewise.
3267         (cosh_test_tonearest): Likewise.
3268         (cosh_test_towardzero): Likewise.
3269         (cosh_test_downward): Likewise.
3270         (cosh_test_upward): Likewise.
3271         (cpow_test): Likewise.
3272         (csin_test): Likewise.
3273         (csinh_test): Likewise.
3274         (csqrt_test): Likewise.
3275         (ctan_test): Likewise.
3276         (ctan_test_tonearest): Likewise.
3277         (ctan_test_towardzero): Likewise.
3278         (ctan_test_downward): Likewise.
3279         (ctan_test_upward): Likewise.
3280         (ctanh_test): Likewise.
3281         (ctanh_test_tonearest): Likewise.
3282         (ctanh_test_towardzero): Likewise.
3283         (ctanh_test_downward): Likewise.
3284         (ctanh_test_upward): Likewise.
3285         (erf_test): Likewise.
3286         (erfc_test): Likewise.
3287         (exp_test): Likewise.
3288         (exp_test_tonearest): Likewise.
3289         (exp_test_towardzero): Likewise.
3290         (exp_test_downward): Likewise.
3291         (exp_test_upward): Likewise.
3292         (exp10_test): Likewise.
3293         (exp2_test): Likewise.
3294         (expm1_test): Likewise.
3295         (fmod_test): Likewise.
3296         (gamma_test): Likewise.
3297         (hypot_test): Likewise.
3298         (j0_test): Likewise.
3299         (j1_test): Likewise.
3300         (jn_test): Likewise.
3301         (lgamma_test): Likewise.
3302         (log_test): Likewise.
3303         (log10_test): Likewise.
3304         (log1p_test): Likewise.
3305         (log2_test): Likewise.
3306         (logb_test_downward): Likewise.
3307         (pow_test): Likewise.
3308         (pow_test_tonearest): Likewise.
3309         (pow_test_towardzero): Likewise.
3310         (pow_test_downward): Likewise.
3311         (pow_test_upward): Likewise.
3312         (remainder_test): Likewise.
3313         (remquo_test): Likewise.
3314         (sin_test): Likewise.
3315         (sin_test_tonearest): Likewise.
3316         (sin_test_towardzero): Likewise.
3317         (sin_test_downward): Likewise.
3318         (sin_test_upward): Likewise.
3319         (sincos_test): Likewise.
3320         (sinh_test): Likewise.
3321         (sinh_test_tonearest): Likewise.
3322         (sinh_test_towardzero): Likewise.
3323         (sinh_test_downward): Likewise.
3324         (sinh_test_upward): Likewise.
3325         (sqrt_test): Likewise.
3326         (tan_test): Likewise.
3327         (tan_test_tonearest): Likewise.
3328         (tan_test_towardzero): Likewise.
3329         (tan_test_downward): Likewise.
3330         (tan_test_upward): Likewise.
3331         (tanh_test): Likewise.
3332         (tgamma_test): Likewise.
3333         (y0_test): Likewise.
3334         (y1_test): Likewise.
3335         (yn_test): Likewise.
3336
3337         * math/gen-libm-test.pl (adjust_arg): Remove function.
3338         (special_function): Remove argument $in_func.  Only handle
3339         generating output for tables of tests, not inside functions.
3340         (parse_args): Likewise.
3341         (generate_testfile): Remove variable $in_func.  Update call to
3342         parse_args.
3343         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
3344         (MINUS_ZERO_INIT): Rename macro to minus_zero.
3345         (PLUS_INFTY_INIT): Rename macro to plus_infty.
3346         (MINUS_INFTY_INIT): Rename macro to minus_infty.
3347         (QNAN_VALUE_INIT): Rename macro to qnan_value.
3348         (MAX_VALUE_INIT): Rename macro to max_value.
3349         (MIN_VALUE_INIT): Rename macro to min_value.
3350         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
3351         (plus_zero): Remove variable.
3352         (minus_zero): Likewise.
3353         (plus_infty): Likewise.
3354         (minus_infty): Likewise.
3355         (qnan_value): Likewise.
3356         (max_value): Likewise.
3357         (min_value): Likewise.
3358         (min_subnorm_value): Likewise.
3359
3360 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3361
3362         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
3363         uint64_t or uint32_t usage.
3364         * crypt/sha256-block.c: Likewise.
3365         * crypt/sha256-crypt.c: Likewise.
3366         * crypt/sha256.c: Likewise.
3367         * crypt/sha512-block.c: Likewise.
3368         * crypt/sha512-crypt.c: Likewise.
3369         * crypt/sha512.c: Likewise.
3370         * debug/backtrace-tst.c: Likewise.
3371         * debug/pcprofiledump.c: Likewise.
3372         * elf/cache.c: Likewise.
3373         * elf/dl-cache.c: Likewise.
3374         * elf/dl-misc.c: Likewise.
3375         * elf/dl-profile.c: Likewise.
3376         * elf/dl-support.c: Likewise.
3377         * elf/ldconfig.c: Likewise.
3378         * elf/sprof.c: Likewise.
3379         * iconv/dummy-repertoire.c: Likewise.
3380         * iconv/iconv_charmap.c: Likewise.
3381         * iconv/skeleton.c: Likewise.
3382         * iconvdata/8bit-generic.c: Likewise.
3383         * iconvdata/cp737.h: Likewise.
3384         * iconvdata/cp775.h: Likewise.
3385         * iconvdata/ibm1008.h: Likewise.
3386         * iconvdata/ibm1025.h: Likewise.
3387         * iconvdata/ibm1046.h: Likewise.
3388         * iconvdata/ibm1097.h: Likewise.
3389         * iconvdata/ibm1112.h: Likewise.
3390         * iconvdata/ibm1122.h: Likewise.
3391         * iconvdata/ibm1123.h: Likewise.
3392         * iconvdata/ibm1124.h: Likewise.
3393         * iconvdata/ibm1129.h: Likewise.
3394         * iconvdata/ibm1130.h: Likewise.
3395         * iconvdata/ibm1132.h: Likewise.
3396         * iconvdata/ibm1133.h: Likewise.
3397         * iconvdata/ibm1137.h: Likewise.
3398         * iconvdata/ibm1140.h: Likewise.
3399         * iconvdata/ibm1141.h: Likewise.
3400         * iconvdata/ibm1142.h: Likewise.
3401         * iconvdata/ibm1143.h: Likewise.
3402         * iconvdata/ibm1144.h: Likewise.
3403         * iconvdata/ibm1145.h: Likewise.
3404         * iconvdata/ibm1146.h: Likewise.
3405         * iconvdata/ibm1147.h: Likewise.
3406         * iconvdata/ibm1148.h: Likewise.
3407         * iconvdata/ibm1149.h: Likewise.
3408         * iconvdata/ibm1153.h: Likewise.
3409         * iconvdata/ibm1154.h: Likewise.
3410         * iconvdata/ibm1155.h: Likewise.
3411         * iconvdata/ibm1156.h: Likewise.
3412         * iconvdata/ibm1157.h: Likewise.
3413         * iconvdata/ibm1158.h: Likewise.
3414         * iconvdata/ibm1160.h: Likewise.
3415         * iconvdata/ibm1161.h: Likewise.
3416         * iconvdata/ibm1162.h: Likewise.
3417         * iconvdata/ibm1163.h: Likewise.
3418         * iconvdata/ibm1164.h: Likewise.
3419         * iconvdata/ibm1166.h: Likewise.
3420         * iconvdata/ibm1167.h: Likewise.
3421         * iconvdata/ibm12712.h: Likewise.
3422         * iconvdata/ibm1390.h: Likewise.
3423         * iconvdata/ibm1399.h: Likewise.
3424         * iconvdata/ibm16804.h: Likewise.
3425         * iconvdata/ibm4517.h: Likewise.
3426         * iconvdata/ibm4899.h: Likewise.
3427         * iconvdata/ibm4909.h: Likewise.
3428         * iconvdata/ibm4971.h: Likewise.
3429         * iconvdata/ibm5347.h: Likewise.
3430         * iconvdata/ibm803.h: Likewise.
3431         * iconvdata/ibm856.h: Likewise.
3432         * iconvdata/ibm901.h: Likewise.
3433         * iconvdata/ibm902.h: Likewise.
3434         * iconvdata/ibm9030.h: Likewise.
3435         * iconvdata/ibm9066.h: Likewise.
3436         * iconvdata/ibm921.h: Likewise.
3437         * iconvdata/ibm922.h: Likewise.
3438         * iconvdata/ibm9448.h: Likewise.
3439         * iconvdata/isiri-3342.h: Likewise.
3440         * iconvdata/jis0201.h: Likewise.
3441         * include/link.h: Likewise.
3442         * include/netdb.h: Likewise.
3443         * inet/check_native.c: Likewise.
3444         * inet/check_pf.c: Likewise.
3445         * inet/getipv4sourcefilter.c: Likewise.
3446         * inet/getnameinfo.c: Likewise.
3447         * inet/getsourcefilter.c: Likewise.
3448         * inet/htonl.c: Likewise.
3449         * inet/setipv4sourcefilter.c: Likewise.
3450         * inet/setsourcefilter.c: Likewise.
3451         * inet/test-inet6_opt.c: Likewise.
3452         * inet/tst-network.c: Likewise.
3453         * locale/C-collate.c: Likewise.
3454         * locale/C-ctype.c: Likewise.
3455         * locale/C-time.c: Likewise.
3456         * locale/C-translit.h: Likewise.
3457         * locale/loadarchive.c: Likewise.
3458         * locale/programs/3level.h: Likewise.
3459         * locale/programs/charmap.c: Likewise.
3460         * locale/programs/charmap.h: Likewise.
3461         * locale/programs/ld-address.c: Likewise.
3462         * locale/programs/ld-collate.c: Likewise.
3463         * locale/programs/ld-ctype.c: Likewise.
3464         * locale/programs/ld-identification.c: Likewise.
3465         * locale/programs/ld-measurement.c: Likewise.
3466         * locale/programs/ld-messages.c: Likewise.
3467         * locale/programs/ld-monetary.c: Likewise.
3468         * locale/programs/ld-name.c: Likewise.
3469         * locale/programs/ld-numeric.c: Likewise.
3470         * locale/programs/ld-paper.c: Likewise.
3471         * locale/programs/ld-telephone.c: Likewise.
3472         * locale/programs/ld-time.c: Likewise.
3473         * locale/programs/linereader.c: Likewise.
3474         * locale/programs/locale.c: Likewise.
3475         * locale/programs/locarchive.c: Likewise.
3476         * locale/programs/locfile.h: Likewise.
3477         * locale/programs/repertoire.c: Likewise.
3478         * locale/programs/simple-hash.c: Likewise.
3479         * locale/programs/simple-hash.h: Likewise.
3480         * malloc/memusage.c: Likewise.
3481         * malloc/memusagestat.c: Likewise.
3482         * nis/nis_defaults.c: Likewise.
3483         * nis/nis_hash.c: Likewise.
3484         * nis/nis_print.c: Likewise.
3485         * nis/nis_xdr.c: Likewise.
3486         * nscd/connections.c: Likewise.
3487         * nscd/hstcache.c: Likewise.
3488         * nscd/nscd_gethst_r.c: Likewise.
3489         * nscd/nscd_getserv_r.c: Likewise.
3490         * nscd/nscd_helper.c: Likewise.
3491         * nscd/servicescache.c: Likewise.
3492         * nss/makedb.c: Likewise.
3493         * nss/nss_db/db-XXX.c: Likewise.
3494         * nss/nss_db/db-initgroups.c: Likewise.
3495         * nss/nss_db/db-netgrp.c: Likewise.
3496         * nss/nss_files/files-network.c: Likewise.
3497         * nss/nss_files/files-parse.c: Likewise.
3498         * posix/bug-regex5.c: Likewise.
3499         * posix/fnmatch_loop.c: Likewise.
3500         * posix/regcomp.c: Likewise.
3501         * posix/regexec.c: Likewise.
3502         * posix/tst-rfc3484-2.c: Likewise.
3503         * posix/tst-rfc3484-3.c: Likewise.
3504         * posix/tst-rfc3484.c: Likewise.
3505         * resolv/nss_dns/dns-canon.c: Likewise.
3506         * resolv/nss_dns/dns-network.c: Likewise.
3507         * resolv/res_init.c: Likewise.
3508         * resolv/res_mkquery.c: Likewise.
3509         * resolv/tst-aton.c: Likewise.
3510         * stdlib/cxa_atexit.c: Likewise.
3511         * stdlib/cxa_finalize.c: Likewise.
3512         * stdlib/gen-fpioconst.c: Likewise.
3513         * stdlib/strtol_l.c: Likewise.
3514         * string/tst-endian.c: Likewise.
3515         * sunrpc/auth_des.c: Likewise.
3516         * sunrpc/clnt_udp.c: Likewise.
3517         * sunrpc/rtime.c: Likewise.
3518         * sunrpc/svcauth_des.c: Likewise.
3519         * sunrpc/xdr.c: Likewise.
3520         * sunrpc/xdr_intXX_t.c: Likewise.
3521         * sunrpc/xdr_rec.c: Likewise.
3522         * sysdeps/generic/ldconfig.h: Likewise.
3523         * sysdeps/generic/ldsodefs.h: Likewise.
3524         * sysdeps/generic/memusage.h: Likewise.
3525         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
3526         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
3527         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
3528         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
3529         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3530         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
3531         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
3532         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
3533         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3534         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3535         * sysdeps/posix/getaddrinfo.c: Likewise.
3536         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3537         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3538         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3539         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3540         * sysdeps/powerpc/test-gettimebase.c: Likewise.
3541         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
3542         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
3543         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
3544         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
3545         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
3546         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
3547         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3548         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
3549         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
3550         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
3551         * sysdeps/x86_64/dl-tls.h: Likewise.
3552         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
3553         * time/alt_digit.c: Likewise.
3554         * time/era.c: Likewise.
3555         * wcsmbs/tst-c16c32-1.c: Likewise.
3556
3557 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
3558
3559         * math/libm-test.inc (struct test_sincos_data): New type.
3560         (RUN_TEST_LOOP_sincos): New macro.
3561         (sincos_test_data): New variable.
3562         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
3563
3564 2013-05-16  Richard Henderson  <rth@redhat.com>
3565
3566         * math/atest-exp2.c (LIMB64): New macro.
3567         (CONSTSZ): New macro.
3568         (mp_exp1, mp_exp_m1, mp_log2): New variables.
3569         (hexdig): Move ...
3570         (print_mpn_fp): ... to function scope.
3571         (read_mpn_hex): Remove.
3572         (get_log2): Remove.
3573         (exp2_mpn): Use mp_log2.
3574         (main): Use mp_exp1.
3575
3576 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
3577
3578         * math/libm-test.inc: Remove comment about not testing "inexact"
3579         exceptions.
3580         (INEXACT_EXCEPTION): New macro.
3581         (NO_INEXACT_EXCEPTION): Likewise.
3582         (INVALID_EXCEPTION_OK): Update value.
3583         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3584         (OVERFLOW_EXCEPTION_OK): Likewise.
3585         (UNDERFLOW_EXCEPTION_OK): Likewise.
3586         (IGNORE_ZERO_INF_SIGN): Likewise.
3587         (ERRNO_UNCHANGED): Likewise.
3588         (ERRNO_EDOM): Likewise.
3589         (ERRNO_ERANGE): Likewise.
3590         (test_exceptions): Handle testing "inexact" exceptions.
3591         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
3592         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
3593         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
3594         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
3595         INEXACT_EXCEPTION.
3596         (rint_towardzero_test_data): Likewise.
3597         (rint_downward_test_data): Likewise.
3598         (rint_upward_test_data): Likewise.
3599
3600         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
3601         with OVERFLOW_EXCEPTION.
3602         (exp10_test_data): Likewise.
3603         (exp2_test_data): Likewise.
3604         (expm1_test_data): Likewise.
3605         (lgamma_test_data): Likewise.
3606         (pow_test_data): Likewise.
3607         (tgamma_test_data): Likewise.
3608         (yn_test_data): Remove duplicate test of overflow.
3609
3610         * math/libm-test.inc (struct test_cc_c_data): New type.
3611         (RUN_TEST_LOOP_cc_c): New macro.
3612         (cpow_test_data): New variable.
3613         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
3614
3615         * math/libm-test.inc (struct test_f_L_data): New type.
3616         (RUN_TEST_LOOP_f_L): New macro.
3617         (llrint_test_data): New variable.
3618         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
3619         (llrint_tonearest_test_data): New variable.
3620         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
3621         (llrint_towardzero_test_data): New variable.
3622         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
3623         (llrint_downward_test_data): New variable.
3624         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
3625         (llrint_upward_test_data): New variable.
3626         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
3627         (llround_test_data): New variable.
3628         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
3629
3630 2013-05-13  Peter Collingbourne  <pcc@google.com>
3631
3632         * math/atest-exp2.c (get_log2): Remove const attribute.
3633
3634 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
3635
3636         * math/libm-test.inc (struct test_f_l_data): New type.
3637         (RUN_TEST_LOOP_f_l): New macro.
3638         (lrint_test_data): New variable.
3639         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
3640         (lrint_tonearest_test_data): New variable.
3641         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
3642         (lrint_towardzero_test_data): New variable.
3643         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
3644         (lrint_downward_test_data): New variable.
3645         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
3646         (lrint_upward_test_data): New variable.
3647         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
3648         (lround_test_data): New variable.
3649         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
3650
3651 2013-05-15  Peter Collingbourne  <pcc@google.com>
3652
3653         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
3654         (EXTRACT_WORDS64) Use where appropriate.
3655         (INSERT_WORDS64) Likewise.
3656
3657         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
3658         constraints with x constraints.
3659         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
3660
3661         * malloc/obstack.c (_obstack_compat): Add initializer.
3662
3663 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
3664
3665         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
3666         si_trapno and add si_addr_lsb to _sifields.sigfault.
3667         (si_trapno): Remove macro.
3668         (si_addr_lsb): Define new macro.
3669         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
3670
3671 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
3672
3673         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
3674         instead of TEST_f_l.
3675         (llrint_test_tonearest): Likewise.
3676         (llrint_test_towardzero): Likewise.
3677         (llrint_test_downward): Likewise.
3678         (llrint_test_upward): Likewise.
3679         (llround_test): Likewise.
3680
3681         * math/libm-test.inc (struct test_f_i_data): Add comment.
3682         (RUN_TEST_LOOP_f_b): New macro.
3683         (RUN_TEST_LOOP_f_b_tg): Likewise.
3684         (finite_test_data): New variable.
3685         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
3686         (isfinite_test_data): New variable.
3687         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3688         (isinf_test_data): New variable.
3689         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3690         (isnan_test_data): New variable.
3691         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3692         (isnormal_test_data): New variable.
3693         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3694         (issignaling_test_data): New variable.
3695         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3696         (signbit_test_data): New variable.
3697         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3698
3699         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
3700         with INVALID_EXCEPTION.
3701         (acosh_test_data): Likewise.
3702         (asin_test_data): Likewise.
3703         (atanh_test_data): Likewise.
3704         (fmod_test_data): Likewise.
3705         (log_test_data): Likewise.
3706         (log10_test_data): Likewise.
3707         (log2_test_data): Likewise.
3708         (pow_test_data): Likewise.
3709         (sqrt_test_data): Likewise.
3710         (y0_test_data): Likewise.
3711         (y1_test_data): Likewise.
3712         (yn_test_data): Likewise.
3713
3714         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
3715         function contents.
3716
3717         * math/libm-test.inc (struct test_ff_i_data): New type.
3718         (RUN_TEST_LOOP_ff_i_tg): New macro.
3719         (isgreater_test_data): New variable.
3720         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3721         (isgreaterequal_test_data): New variable.
3722         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3723         (isless_test_data): New variable.
3724         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3725         (islessequal_test_data): New variable.
3726         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3727         (islessgreater_test_data): New variable.
3728         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3729         (isunordered_test_data): New variable.
3730         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3731
3732 2013-05-14  David S. Miller  <davem@davemloft.net>
3733
3734         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3735
3736 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
3737
3738         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
3739
3740         * math/libm-test.inc (struct test_fF_f1_data): Change type of
3741         extra_test to int.
3742         (struct test_f_i_data): Change type of max_ulp to int.
3743
3744         * math/libm-test.inc (test_ffI_f1_data): New type.
3745         (RUN_TEST_LOOP_ffI_f1): New macro.
3746         (remquo_test_data): New variable.
3747         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
3748
3749         * setjmp/tst-setjmp-fp.c: New file.
3750         * setjmp/Makefile (tests): Add tst-setjmp-fp.
3751         (link-libm): New variable.
3752         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
3753
3754         * math/libm-test.inc (struct test_f_i_data): New type.
3755         (RUN_TEST_LOOP_f_i): New macro.
3756         (RUN_TEST_LOOP_f_i_tg): Likewise.
3757         (fpclassify_test_data): New variable.
3758         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
3759         (ilogb_test_data): New variable.
3760         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
3761
3762         * math/libm-test.inc (scalbln_test): Correct function name in END
3763         call.
3764
3765         * math/libm-test.inc (struct test_f_f1_data): Add comment.
3766         (RUN_TEST_LOOP_fI_f1): New macro.
3767         (frexp_test_data): New variable.
3768         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
3769
3770         * math/libm-test.inc (struct test_fF_f1_data): New type.
3771         (RUN_TEST_LOOP_fF_f1): New macro.
3772         (modf_test_data): New variable.
3773         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
3774
3775         * math/libm-test.inc (struct test_f_f1_data): New type.
3776         (RUN_TEST_LOOP_f_f1): New macro.
3777         (gamma_test_data): New variable.
3778         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
3779         (lgamma_test_data): New variable.
3780         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
3781
3782 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
3783
3784         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
3785         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
3786         (main): Comment "tls" pseudo-hwcap.
3787
3788 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
3789
3790         * math/libm-test.inc (struct test_fl_f_data): New type.
3791         (RUN_TEST_LOOP_fl_f): New variable.
3792         (scalbln_test_data): New variable.
3793         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
3794
3795         * math/libm-test.inc (struct test_fi_f_data): New type.
3796         (RUN_TEST_LOOP_fi_f): New macro.
3797         (ldexp_test_data): New variable.
3798         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
3799         (scalbn_test_data): New variable.
3800         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
3801
3802         * math/libm-test.inc (struct test_c_f_data): New type.
3803         (RUN_TEST_LOOP_c_f): New macro.
3804         (cabs_test_data): New variable.
3805         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
3806         (carg_test_data): New variable.
3807         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
3808         (cimag_test_data): New variable.
3809         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
3810         (creal_test_data): New variable.
3811         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
3812
3813         * math/libm-test.inc (struct test_if_f_data): New type.
3814         (RUN_TEST_LOOP_if_f): New macro.
3815         (jn_test_data): New variable.
3816         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
3817         (yn_test_data): New variable.
3818         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
3819
3820         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
3821
3822 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3823
3824         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
3825         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
3826
3827 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3828
3829         * benchtests/Makefile (CPPFLAGS-nonlib): Add
3830         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
3831         (bench-deps): Add bench-timing.h.
3832         * benchtests-bench-skeleton.c: Include bench-timing.h.
3833         (main): Use TIMING_* macros instead of clock_gettime.
3834         * benchtests/bench-timing.h: New file.
3835
3836         [BZ #14582]
3837         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
3838         Renamed from _LIB_VERSION.
3839         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
3840
3841 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
3842
3843         * math/libm-test.inc (struct test_fff_f_data): New type.
3844         (RUN_TEST_LOOP_fff_f): New macro.
3845         (fma_test_data): New variable.
3846         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
3847         (fma_towardzero_test_data): New variable.
3848         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
3849         (fma_downward_test_data): New variable.
3850         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
3851         (fma_upward_test_data): New variable.
3852         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
3853
3854         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
3855         (struct test_c_c_data): New type.
3856         (RUN_TEST_LOOP_c_c): New macro.
3857         (cacos_test_data): New variable.
3858         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
3859         (cacosh_test_data): New variable.
3860         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
3861         (casin_test_data): New variable.
3862         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
3863         (casinh_test_data): New variable.
3864         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
3865         (catan_test_data): New variable.
3866         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
3867         (catanh_test_data): New variable.
3868         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
3869         (ccos_test_data): New variable.
3870         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
3871         (ccosh_test_data): New variable.
3872         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
3873         (cexp_test_data): New variable.
3874         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
3875         (clog_test_data): New variable.
3876         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
3877         (clog10_test_data): New variable.
3878         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
3879         (conj_test_data): New variable.
3880         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
3881         (cproj_test_data): New variable.
3882         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
3883         (csin_test_data): New variable.
3884         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
3885         (csinh_test_data): New variable.
3886         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
3887         (csqrt_test_data): New variable.
3888         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
3889         (ctan_test_data): New variable.
3890         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
3891         (ctan_tonearest_test_data): New variable.
3892         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
3893         (ctan_towardzero_test_data): New variable.
3894         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
3895         (ctan_downward_test_data): New variable.
3896         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
3897         (ctan_upward_test_data): New variable.
3898         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
3899         (ctanh_test_data): New variable.
3900         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
3901         (ctanh_tonearest_test_data): New variable.
3902         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
3903         (ctanh_towardzero_test_data): New variable.
3904         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
3905         (ctanh_downward_test_data): New variable.
3906         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
3907         (ctanh_upward_test_data): New variable.
3908         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
3909         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
3910         of BUILD_COMPLEX.
3911
3912         * math/libm-test.inc (struct test_ff_f_data): New type.
3913         (struct test_ff_f_data_nexttoward): Likewise.
3914         (RUN_TEST_LOOP_2_f): New macro.
3915         (RUN_TEST_LOOP_ff_f): Likewise.
3916         (atan2_test_data): New variable.
3917         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
3918         (copysign_test_data): New variable.
3919         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
3920         (fdim_test_data): New variable.
3921         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
3922         (fmax_test_data): New variable.
3923         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
3924         (fmin_test_data): New variable.
3925         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
3926         (fmod_test_data): New variable.
3927         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
3928         (hypot_test_data): New variable.
3929         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
3930         (nextafter_test_data): New variable.
3931         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
3932         (nexttoward_test_data): New variable.
3933         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
3934         (pow_test_data): New variable.
3935         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
3936         (pow_tonearest_test_data): New variable.
3937         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
3938         (pow_towardzero_test_data): New variable.
3939         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
3940         (pow_downward_test_data): New variable.
3941         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
3942         (pow_upward_test_data): New variable.
3943         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
3944         (remainder_test_data): New variable.
3945         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
3946         (scalb_test_data): New variable.
3947         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
3948         * sysdeps/i386/fpu/libm-test-ulps: Update.
3949
3950 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
3951
3952         * math/libm-test.inc (fma_test): Use max_value instead of local
3953         variable fltmax.
3954         (nextafter_test): Likewise.
3955
3956         * math/libm-test.inc (acos_towardzero_test_data): New variable.
3957         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3958         (acos_downward_test_data): New variable.
3959         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3960         (acos_upward_test_data): New variable.
3961         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3962         (acosh_test_data): New variable.
3963         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
3964         (asin_test_data): New variable.
3965         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
3966         (asin_tonearest_test_data): New variable.
3967         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3968         (asin_towardzero_test_data): New variable.
3969         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3970         (asin_downward_test_data): New variable.
3971         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3972         (asin_upward_test_data): New variable.
3973         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3974         (asinh_test_data): New variable.
3975         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
3976         (atan_test_data): New variable.
3977         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
3978         (atanh_test_data): New variable.
3979         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
3980         (cbrt_test_data): New variable.
3981         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
3982         (ceil_test_data): New variable.
3983         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
3984         (cos_test_data): New variable.
3985         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
3986         (cos_tonearest_test_data): New variable.
3987         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3988         (cos_towardzero_test_data): New variable.
3989         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3990         (cos_downward_test_data): New variable.
3991         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3992         (cos_upward_test_data): New variable.
3993         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3994         (cosh_test_data): New variable.
3995         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
3996         (cosh_tonearest_test_data): New variable.
3997         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3998         (cosh_towardzero_test_data): New variable.
3999         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4000         (cosh_downward_test_data): New variable.
4001         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4002         (cosh_upward_test_data): New variable.
4003         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4004         (erf_test_data): New variable.
4005         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
4006         (erfc_test_data): New variable.
4007         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
4008         (exp_test_data): New variable.
4009         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
4010         (exp_tonearest_test_data): New variable.
4011         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4012         (exp_towardzero_test_data): New variable.
4013         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4014         (exp_downward_test_data): New variable.
4015         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4016         (exp_upward_test_data): New variable.
4017         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4018         (exp10_test_data): New variable.
4019         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
4020         (exp2_test_data): New variable.
4021         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
4022         (expm1_test_data): New variable.
4023         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
4024         (fabs_test_data): New variable.
4025         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
4026         (floor_test_data): New variable.
4027         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
4028         (j0_test_data): New variable.
4029         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
4030         (j1_test_data): New variable.
4031         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
4032         (log_test_data): New variable.
4033         (log_test): Run tests with RUN_TEST_LOOP_f_f.
4034         (log10_test_data): New variable.
4035         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
4036         (log1p_test_data): New variable.
4037         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
4038         (log2_test_data): New variable.
4039         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
4040         (logb_test_data): New variable.
4041         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
4042         (logb_downward_test_data): New variable.
4043         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4044         (nearbyint_test_data): New variable.
4045         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
4046         (rint_test_data): New variable.
4047         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
4048         (rint_tonearest_test_data): New variable.
4049         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4050         (rint_towardzero_test_data): New variable.
4051         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4052         (rint_downward_test_data): New variable.
4053         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4054         (rint_upward_test_data): New variable.
4055         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4056         (round_test_data): New variable.
4057         (round_test): Run tests with RUN_TEST_LOOP_f_f.
4058         (sin_test_data): New variable.
4059         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
4060         (sin_tonearest_test_data): New variable.
4061         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4062         (sin_towardzero_test_data): New variable.
4063         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4064         (sin_downward_test_data): New variable.
4065         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4066         (sin_upward_test_data): New variable.
4067         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4068         (sinh_test_data): New variable.
4069         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
4070         (sinh_tonearest_test_data): New variable.
4071         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4072         (sinh_towardzero_test_data): New variable.
4073         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4074         (sinh_downward_test_data): New variable.
4075         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4076         (sinh_upward_test_data): New variable.
4077         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4078         (sqrt_test_data): New variable.
4079         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
4080         (tan_test_data): New variable.
4081         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
4082         (tan_tonearest_test_data): New variable.
4083         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4084         (tan_towardzero_test_data): New variable.
4085         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4086         (tan_downward_test_data): New variable.
4087         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4088         (tan_upward_test_data): New variable.
4089         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4090         (tanh_test_data): New variable.
4091         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
4092         (tgamma_test_data): New variable.
4093         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
4094         (trunc_test_data): New variable.
4095         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
4096         (y0_test_data): New variable.
4097         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
4098         (y1_test_data): New variable.
4099         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
4100         (significand_test_data): New variable.
4101         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
4102
4103 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
4104
4105         [BZ #12387]
4106         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
4107
4108 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4109
4110         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
4111
4112 2013-05-10  Andreas Jaeger  <aj@suse.de>
4113
4114         [BZ #15448]
4115         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
4116         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
4117
4118 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
4119
4120         * math/gen-libm-test.pl (adjust_arg): New function.
4121         (special_functions): Handle generating output in both functions
4122         and arrays.
4123         (parse_args): Likewise.
4124         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
4125         $in_func argument to parse_args.
4126         * math/libm-test.inc (struct test_f_f_data): New type.
4127         (IF_ROUND_INIT_): New macro.
4128         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4129         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4130         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4131         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4132         (ROUND_RESTORE_): Likewise.
4133         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4134         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4135         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4136         (ROUND_RESTORE_FE_UPWARD): Likewise.
4137         (RUN_TEST_LOOP_f_f): New macro.
4138         (acos_test_data): New variable.
4139         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
4140         (acos_tonearest_test_data): New variable.
4141         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4142
4143 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4144
4145         * benchtests/bench-skeleton.c (startup): Fix coding style.
4146
4147 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
4148
4149         [BZ #6809]
4150         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
4151         negative infinity argument.
4152         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
4153         negative infinity argument.
4154         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
4155         negative infinity argument.
4156         * math/libm-test.inc (tgamma_test): Expect errno to be set for
4157         domain errors.
4158
4159 2013-05-10  Florian Weimer  <fweimer@redhat.com>
4160
4161         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
4162         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
4163         * iconv/iconv_prog.c (main): Likewise.
4164         * locale/programs/charmap-dir.c (charmap_readdir)
4165         (fopen_uncompressed): Likewise.
4166         * locale/programs/locfile.c (siblings_uncached)
4167         (write_locale_data): Use lstat64 instead of lstat.
4168         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
4169         stat.
4170
4171 2013-05-10  Andreas Jaeger  <aj@suse.de>
4172
4173         [BZ #15395]
4174         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
4175         localization.
4176         Include <locale.h>.
4177
4178 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
4179
4180         * elf/dl-close.c (_dl_close_worker): Add comments.
4181
4182 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
4183
4184         [BZ #15359]
4185         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
4186         high part of pi/2.
4187         (__ieee754_rem_pio2l): Update comments.
4188
4189         [BZ #15429]
4190         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
4191         high part of pi/2.
4192         (__ieee754_rem_pio2l): Update comments.
4193
4194         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
4195         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
4196
4197         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
4198         M_PI_4l.
4199
4200         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
4201         (M_PI_34_LOG10El): Likewise.
4202         (M_PI2_LOG10El): Likewise.
4203         (M_PI4_LOG10El): Likewise.
4204         (M_PI_LOG10El): Likewise.
4205
4206 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4207
4208         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4209
4210 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
4211
4212         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
4213         (MINUS_ZERO_INIT): Likewise.
4214         (PLUS_INFTY_INIT): Likewise.
4215         (MINUS_INFTY_INIT): Likewise.
4216         (QNAN_VALUE_INIT): Likewise.
4217         (MAX_VALUE_INIT): Likewise.
4218         (MIN_VALUE_INIT): Likewise.
4219         (MIN_SUBNORM_VALUE_INIT): Likewise.
4220         (plus_zero): Initialize with PLUS_ZERO_INIT.
4221         (minus_zero): Initialize with MINUS_ZERO_INIT.
4222         (plus_infty): Initialize with PLUS_INFTY_INIT.
4223         (minus_infty): Initialize with MINUS_INFTY_INIT.
4224         (qnan_value): Initialize with QNAN_VALUE_INIT.
4225         (max_value): Initialize with MAX_VALUE_INIT.
4226         (min_value): Initialize with MIN_VALUE_INIT.
4227         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
4228
4229         * math/libm-test.inc (RUN_TEST_if_f): New macro.
4230         (jn_test): Use TEST_if_f instead of TEST_ff_f.
4231         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
4232         (yn_test): Use TEST_if_f instead of TEST_ff_f.
4233
4234         * math/libm-test.inc (RUN_TEST_f_f): New macro.
4235         (RUN_TEST_2_f): Likewise.
4236         (RUN_TEST_ff_f): Likewise.
4237         (RUN_TEST_fi_f): Likewise.
4238         (RUN_TEST_fl_f): Likewise.
4239         (RUN_TEST_fff_f): Likewise.
4240         (RUN_TEST_c_f): Likewise.
4241         (RUN_TEST_f_f1): Likewise.
4242         (RUN_TEST_fF_f1): Likewise.
4243         (RUN_TEST_fI_f1): Likewise.
4244         (RUN_TEST_ffI_f1): Likewise.
4245         (RUN_TEST_c_c): Likewise.
4246         (RUN_TEST_cc_c): Likewise.
4247         (RUN_TEST_f_i): Likewise.
4248         (RUN_TEST_f_i_tg): Likewise.
4249         (RUN_TEST_ff_i_tg): Likewise.
4250         (RUN_TEST_f_b): Likewise.
4251         (RUN_TEST_f_b_tg): Likewise.
4252         (RUN_TEST_f_l): Likewise.
4253         (RUN_TEST_f_L): Likewise.
4254         (RUN_TEST_sincos): Likewise.
4255         * math/gen-libm-test.pl (new_test): Take new argument to indicate
4256         whether to show exceptions.  Do not include ");\n" in return
4257         value.
4258         (special_functions): Output call to RUN_TEST_sincos instead of
4259         check_float calls.  Update calls to new_test.
4260         (parse_args): Output call to single RUN_TEST_* macro instead of
4261         check_* calls and other assignments.  Update calls to new_test.
4262
4263         [BZ #2546]
4264         [BZ #2560]
4265         [BZ #5159]
4266         [BZ #15426]
4267         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
4268         input to result for tgamma overflow.
4269         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
4270         (gamma_coeff): New variable.
4271         (NCOEFF): New macro.
4272         (gamma_positive): New function.
4273         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
4274         underflow here.  Use gamma_positive instead of exp (lgamma) for
4275         other arguments.
4276         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
4277         (gamma_coeff): New variable.
4278         (NCOEFF): New macro.
4279         (gammaf_positive): New function.
4280         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
4281         underflow here.  Use gamma_positive instead of exp (lgamma) for
4282         other arguments.
4283         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
4284         (gamma_coeff): New variable.
4285         (NCOEFF): New macro.
4286         (gammal_positive): New function.
4287         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
4288         underflow here.  Use gamma_positive instead of exp (lgamma) for
4289         other arguments.
4290         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
4291         (gamma_coeff): New variable.
4292         (NCOEFF): New macro.
4293         (gammal_positive): New function.
4294         (__ieee754_gammal_r): Handle positive infinity, overflow and
4295         underflow here.  Handle NaN the same as positive infinity.  Remove
4296         check x < 0xffffffff for negative integers.  Use gamma_positive
4297         instead of exp (lgamma) for other arguments.
4298         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
4299         (gamma_coeff): New variable.
4300         (NCOEFF): New macro.
4301         (gammal_positive): New function.
4302         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
4303         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
4304         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4305         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
4306         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4307         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
4308         * sysdeps/generic/math_private.h (__gamma_productf): New
4309         prototype.
4310         (__gamma_product): Likewise.
4311         (__gamma_productl): Likewise.
4312         * math/Makefile (libm-calls): Add gamma_product.
4313         * math/libm-test.inc (tgamma_test): Add more tests.
4314         * sysdeps/i386/fpu/libm-test-ulps: Update.
4315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4316
4317 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
4318
4319         * benchtests/bench-skeleton.c (main): Preheat CPU.
4320
4321 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
4322
4323         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
4324
4325 2013-05-07  Roland McGrath  <roland@hack.frob.com>
4326
4327         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
4328         and _dl_skip_args_internal.
4329
4330 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
4331
4332         * manual/message.texi (Message Translation): Talk about users.
4333         Message to key mapping impacts design.
4334
4335 2013-05-06  Roland McGrath  <roland@hack.frob.com>
4336
4337         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
4338
4339         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
4340
4341         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
4342         * sysdeps/wordsize-64/glob64.c: ... here.
4343
4344         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
4345         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
4346         New macros.
4347
4348         * debug/getlogin_r_chk.c: Moved to ...
4349         * login/getlogin_r_chk.c: ... here.
4350         * debug/Makefile (routines): Move getlogin_r_chk to ...
4351         * login/Makefile (routines): ... here.
4352         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
4353         * login/Versions (libc: GLIBC_2.4): ... here.
4354
4355         * io/poll.c (__poll): Renamed from poll.
4356         Add libc_hidden_def.
4357         (poll): Define as weak alias.
4358
4359         * debug/ptsname_r_chk.c: Moved to ...
4360         * login/ptsname_r_chk.c: ... here.
4361         * debug/Makefile (routines): Move ptsname_r_chk to ...
4362         * login/Makefile (routines): ... here.
4363         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
4364         * login/Versions (libc: GLIBC_2.4): ... here.
4365
4366         * posix/getlogin.c: Moved to ...
4367         * login/getlogin.c: ... here.
4368         * posix/getlogin_r.c: Moved to ...
4369         * login/getlogin_r.c: ... here.
4370         * posix/getlogin_r.c: Moved to ...
4371         * login/getlogin_r.c: ... here.
4372         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
4373         * login/Makefile (routines): ... here.
4374         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
4375         * login/Versions (libc: GLIBC_2.0): ... here.
4376
4377         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
4378         (setrlimit): Define as weak alias.
4379
4380         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
4381         Call __ names for open, ftruncate, and close.
4382         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
4383         (truncate): Define as weak alias.
4384
4385 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
4386
4387         * math/gen-libm-test.pl (parse_args): Initialize x before each
4388         test of frexp, modf and remquo.
4389
4390         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
4391         test signgam value.
4392
4393 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4394
4395         [BZ #15418]
4396         [BZ #15419]
4397         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
4398         internal tests.
4399         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4400
4401 2013-05-06  Roland McGrath  <roland@hack.frob.com>
4402
4403         * elf/dl-writev.h: New file.
4404         * elf/dl-misc.c: Include it.
4405         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
4406         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
4407
4408 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
4409
4410         * math/libm-test.inc (noXFails): Remove variable.
4411         (noXPasses): Likewise.
4412         (BUILD_COMPLEX_INT): Remove macro.
4413         (print_screen): Remove xfail argument.
4414         (print_screen_max_error): Likewise.
4415         (update_stats): Likewise.
4416         (print_max_error): Likewise.  Update calls to other affected
4417         functions.
4418         (print_complex_max_error): Likewise.
4419         (test_single_exception): Update calls to print_screen.
4420         (test_single_errno): Likewise.
4421         (check_float_internal): Remove xfail argument.  Update calls to
4422         other affected functions.
4423         (check_float): Likewise.
4424         (check_complex): Likewise.
4425         (check_int): Likewise.
4426         (check_long): Likewise.
4427         (check_bool): Likewise.
4428         (check_longlong): Likewise.
4429         (main): Don't print noXFails and noXPasses.
4430         * math/gen-libm-test.pl (top level): Don't mention expected
4431         failure handling in comment.
4432         (new_test): Don't handle expected failures.
4433         (parse_args): Don't mention expected failure handling in comment.
4434         (generate_testfile): Don't handle expected failures.
4435         (parse_ulps): Likewise.
4436         (print_ulps_file): Likewise.
4437         (get_failure): Remove function.
4438         (output_test): Don't handle expected failures.
4439         * make/README.libm-test: Don't mention expected failure handling.
4440
4441         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
4442         (minus_zero): Likewise.
4443         (plus_infty): Likewise.
4444         (minus_infty): Likewise.
4445         (qnan_value): Likewise.
4446         (max_value): Likewise.
4447         (min_value): Likewise.
4448         (min_subnorm_value): Likewise.
4449         (initialize): Do not initialize those variables dynamically.
4450
4451 2013-05-03  Roland McGrath  <roland@hack.frob.com>
4452
4453         * io/open.c (__open_2): Moved to ...
4454         * io/open_2.c: ... this new file.
4455         * io/open64.c (__open64_2): Moved to ...
4456         * io/open64_2.c: ... this new file.
4457         * io/openat.c (__openat_2): Moved to ...
4458         * io/openat_2.c: ... this new file.
4459         * io/openat64.c (__openat64_2): Moved to ...
4460         * io/openat64_2.c: ... this new file.
4461         * io/Makefile (routines): Add them.
4462         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
4463         * sysdeps/unix/sysv/linux/open_2.c: File removed.
4464         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
4465         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
4466         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
4467         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
4468         (__openat64): Add hidden_ver.
4469         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
4470         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
4471
4472         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
4473         Separately conditionalize setting of GLRO(dl_sysinfo) so
4474         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
4475         as well, but the actual setting is only under [NEED_DL_SYSINFO].
4476
4477 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4478
4479         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
4480         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
4481         definition.
4482         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
4483         * sysdeps/unix/sysv/linux/powerpc/init-first.c
4484         (_libc_vdso_platform_setup): Add __vdso_time initialization.
4485         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
4486         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
4487
4488 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
4489
4490         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
4491         test signgam value.
4492
4493         * math/libm-test.inc (hypot_test): Do not use
4494         IGNORE_ZERO_INF_SIGN.
4495
4496 2013-05-03  Andreas Jaeger  <aj@suse.de>
4497
4498         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
4499         Linux 3.9.
4500         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
4501         (PF_MAX): Adjust for VSOCK change.
4502
4503 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4504
4505         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4506
4507 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
4508
4509         [BZ #15264]
4510         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
4511         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
4512         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
4513
4514 2013-05-02  David S. Miller  <davem@davemloft.net>
4515
4516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4517
4518 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
4519
4520         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
4521
4522 2013-05-01  Roland McGrath  <roland@hack.frob.com>
4523
4524         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
4525
4526 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
4527
4528         [BZ #14952]
4529         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
4530         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
4531         Use __attribute__ ((__gnu_inline__)).
4532         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
4533         Don't use __attribute__ ((__gnu_inline__)).
4534
4535 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
4536
4537         [BZ #15423]
4538         * math/s_catan.c (__catan): Handle small real or imaginary part of
4539         input specially to avoid spurious underflow.
4540         * math/s_catanf.c (__catanf): Likewise.
4541         * math/s_catanh.c (__catanh): Likewise.
4542         * math/s_catanhf.c (__catanhf): Likewise.
4543         * math/s_catanhl.c (__catanhl): Likewise.
4544         * math/s_catanl.c (__catanl): Likewise.
4545         * math/libm-test.inc (catan_test): Add more tests.
4546         (catanh_test): Likewise.
4547         * sysdeps/i386/fpu/libm-test-ulps: Update.
4548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4549
4550 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4551
4552         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4553
4554 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
4555
4556         [BZ #15416]
4557         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
4558         accurately for denominator in atan2.
4559         * math/s_catanf.c (__catanf): Likewise.
4560         * math/s_catanh.c (__catanh): Likewise.
4561         * math/s_catanhf.c (__catanhf): Likewise.
4562         * math/s_catanhl.c (__catanhl): Likewise.
4563         * math/s_catanl.c (__catanl): Likewise.
4564         * math/libm-test.inc (catan_test): Add more tests.
4565         (catanh_test): Likewise.
4566         * sysdeps/i386/fpu/libm-test-ulps: Update.
4567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4568
4569 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4570
4571         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
4572
4573         * benchtests/Makefile (bench): Remove slow benchmarks.
4574         * benchtests/atan-inputs: Add slow benchmark inputs.
4575         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
4576         (BENCH_FUNC): Accept variant offset.
4577         (VARIANT): Define.
4578         * benchtests/bench-skeleton.c (main): Run benchmark for each
4579         variant.
4580         * benchtests/cos-inputs: Add slow benchmark inputs.
4581         * benchtests/exp-inputs: Likewise.
4582         * benchtests/pow-inputs: Likewise.
4583         * benchtests/sin-inputs: Likewise.
4584         * benchtests/slowatan-inputs: Remove.
4585         * benchtests/slowatan.c: Remove.
4586         * benchtests/slowcos-inputs: Remove.
4587         * benchtests/slowcos.c: Remove.
4588         * benchtests/slowexp-inputs: Remove.
4589         * benchtests/slowexp.c: Remove.
4590         * benchtests/slowpow-inputs: Remove.
4591         * benchtests/slowpow.c: Remove.
4592         * benchtests/slowsin-inputs: Remove.
4593         * benchtests/slowsin.c: Remove.
4594         * benchtests/slowtan-inputs: Remove.
4595         * benchtests/slowtan.c: Remove.
4596         * benchtests/tan-inputs: Add slow benchmark inputs.
4597         * scripts/bench.pl: Parse comments and directives.
4598
4599         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
4600         in CPPFLAGS.
4601         ($(objpfx)bench-%.c): Remove *-ITER.
4602         * benchtests/bench-modf.c: Remove definition of ITER.
4603         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
4604         (main): Loop for DURATION seconds instead of fixed number of
4605         iterations.
4606         * scripts/bench.pl: Don't expect iterations in parameters.
4607
4608 2013-04-29  Roland McGrath  <roland@hack.frob.com>
4609
4610         * io/fchdir.c (__fchdir): Renamed from fchdir.
4611         (fchdir): Define as weak alias.
4612
4613 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
4614
4615         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
4616         (ERRNO_EDOM): Likewise.
4617         (ERRNO_ERANGE): Likewise.
4618         (noErrnoTests): New variable.
4619         (init_max_error): Set errno to 0.
4620         (test_single_errno): New function.
4621         (test_errno): Likewise.
4622         (check_float_internal): Call test_errno.  Set errno to 0.
4623         (check_complex): Refer to errno tests in comment.
4624         (check_int): Call test_errno.  Set errno to 0.
4625         (check_long): Likewise.
4626         (check_bool): Likewise.
4627         (check_longlong): Likewise.
4628         (cos_test): Use ERRNO_* flags for errno tests instead of
4629         check_int.
4630         (expm1_test): Likewise.
4631         (fmod_test): Likewise.
4632         (ilogb_test): Likewise.
4633         (lgamma_test): Likewise.
4634         (pow_test): Likewise.
4635         (remainder_test): Likewise.
4636         (sin_test): Likewise.
4637         (tan_test): Likewise.
4638         (yn_test): Likewise.
4639         (initialize): Set errno to 0.
4640         (main): Print number of errno tests.
4641         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
4642
4643 2013-04-29  Andreas Jaeger  <aj@suse.de>
4644
4645         [BZ #15084]
4646         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
4647         and RES_USEVC.
4648
4649         [BZ #15085]
4650         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
4651         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
4652         unimplemented.
4653
4654         [BZ #15380]
4655         * stdlib/random.c (__initstate): Return NULL if
4656         __initstate fails.
4657
4658         [BZ #15086]
4659         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
4660         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
4661         RES_SNGLKUPREOP.
4662
4663 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4664
4665         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4666
4667 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
4668
4669         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
4670         of individual tests.
4671         (casin_test): Likewise.
4672         (casinh_test): Likewise.
4673
4674 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
4675
4676         [BZ #15409]
4677         * math/s_catan.c (__catan): Handle arguments with large real or
4678         imaginary part separately without squaring.
4679         * math/s_catanf.c (__catanf): Likewise.
4680         * math/s_catanh.c (__catanh): Likewise.
4681         * math/s_catanhf.c (__catanhf): Likewise.
4682         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
4683         and redefine.
4684         (__catanhl): Handle arguments with large real or imaginary part
4685         separately without squaring.
4686         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
4687         and redefine.
4688         (__catanl): Handle arguments with large real or imaginary part
4689         separately without squaring.
4690         * math/libm-test.inc (catan_test): Add more tests.
4691         (catanh_test): Likewise.
4692         * sysdeps/i386/fpu/libm-test-ulps: Update.
4693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4694
4695 2013-04-27  Andreas Jaeger  <aj@suse.de>
4696
4697         [BZ #15007]
4698         * stdlib/stdlib.h: Update guards for qecvt.
4699         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
4700         <stdlib.h>.
4701
4702 2013-04-27  Allan McRae  <allan@archlinux.org>
4703
4704         * sysdeps/i386/fpu/libm-test-ulps: Update.
4705
4706 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
4707
4708         [BZ #15406]
4709         * math/s_catan.c: Include <float.h>.
4710         (__catan): Ensure underflow exception occurs for underflowed
4711         result.
4712         * math/s_catanf.c: Include <float.h>.
4713         (__catanf): Ensure underflow exception occurs for underflowed
4714         result.
4715         * math/s_catanh.c: Include <float.h>.
4716         (__catanh): Ensure underflow exception occurs for underflowed
4717         result.
4718         * math/s_catanhf.c: Include <float.h>.
4719         (__catanhf): Ensure underflow exception occurs for underflowed
4720         result.
4721         * math/s_catanhl.c: Include <float.h>.
4722         (__catanhl): Ensure underflow exception occurs for underflowed
4723         result.
4724         * math/s_catanl.c: Include <float.h>.
4725         (__catanl): Ensure underflow exception occurs for underflowed
4726         result.
4727         * math/libm-test.inc (catan_test): Add more tests.
4728         (catanh_test): Likewise.
4729
4730         [BZ #15405]
4731         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
4732         underflowed result.
4733         * math/s_ccoshf.c (__ccoshf): Likewise.
4734         * math/s_ccoshl.c (__ccoshl): Likewise.
4735         * math/s_csin.c (__csin): Likewise.
4736         * math/s_csinf.c (__csinf): Likewise.
4737         * math/s_csinh.c (__csinh): Likewise.
4738         * math/s_csinhf.c (__csinhf): Likewise.
4739         * math/s_csinhl.c (__csinhl): Likewise.
4740         * math/s_csinl.c (__csinl): Likewise.
4741         * math/libm-test.inc (ccos_test): Add more tests.
4742         (ccosh_test): Likewise.
4743         (csin_test): Likewise.
4744         (csinh_test): Likewise.
4745
4746 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4747
4748         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
4749         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
4750         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
4751         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
4752         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
4753         powerpc/power5+/fpu folders.
4754         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
4755
4756
4757 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
4758
4759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4760
4761 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
4762
4763         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
4764         additions to variable.
4765         [$(config-machine) = x86_64] (modules-names): Likewise.
4766         ($(objpfx)tst-audit3): Remove dependency.
4767         ($(objpfx)tst-audit3.out): Likewise.
4768         ($(objpfx)tst-audit4): Likewise.
4769         ($(objpfx)tst-audit4.out): Likewise.
4770         ($(objpfx)tst-audit5): Likewise.
4771         ($(objpfx)tst-audit5.out): Likewise.
4772         ($(objpfx)tst-audit6): Likewise.
4773         ($(objpfx)tst-audit6.out): Likewise.
4774         ($(objpfx)tst-audit7): Likewise.
4775         ($(objpfx)tst-audit7.out): Likewise.
4776         (tst-audit3-ENV): Remove variable.
4777         (tst-audit4-ENV): Likewise.
4778         (tst-audit5-ENV): Likewise.
4779         (tst-audit6-ENV): Likewise.
4780         (tst-audit7-ENV): Likewise.
4781         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
4782         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
4783         addition to variable.
4784         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
4785         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
4786         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
4787         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
4788         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
4789         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
4790         tst-audit3, tst-audit4 and tst-audit5.
4791         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
4792         tst-audit6 and tst-audit7.
4793         [$(subdir) = elf] (modules-names): Add audit modules for those
4794         tests.
4795         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
4796         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
4797         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
4798         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
4799         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
4800         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
4801         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
4802         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
4803         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
4804         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
4805         [$(subdir) = elf] (tst-audit3-ENV): New variable.
4806         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
4807         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
4808         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
4809         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
4810         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
4811         Likewise.
4812         [$(subdir) = elf && $(config-cflags-avx) = yes]
4813         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
4814         [$(subdir) = elf && $(config-cflags-avx) = yes]
4815         (CFLAGS-tst-auditmod4a.c): Likewise.
4816         [$(subdir) = elf && $(config-cflags-avx) = yes]
4817         (CFLAGS-tst-auditmod4b.c): Likewise.
4818         [$(subdir) = elf && $(config-cflags-avx) = yes]
4819         (CFLAGS-tst-auditmod6b.c): Likewise.
4820         [$(subdir) = elf && $(config-cflags-avx) = yes]
4821         (CFLAGS-tst-auditmod6c.c): Likewise.
4822         [$(subdir) = elf && $(config-cflags-avx) = yes]
4823         (CFLAGS-tst-auditmod7b.c): Likewise.
4824         * elf/tst-audit3.c: Move to ...
4825         * sysdeps/x86_64/tst-audit3.c: ... here.
4826         * elf/tst-audit4.c: Move to ...
4827         * sysdeps/x86_64/tst-audit4.c: ... here.
4828         * elf/tst-audit5.c: Move to ...
4829         * sysdeps/x86_64/tst-audit5.c: ... here.
4830         * elf/tst-audit6.c: Move to ...
4831         * sysdeps/x86_64/tst-audit6.c: ... here.
4832         * elf/tst-audit7.c: Move to ...
4833         * sysdeps/x86_64/tst-audit7.c: ... here.
4834         * elf/tst-auditmod3a.c: Move to ...
4835         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
4836         * elf/tst-auditmod3b.c: Move to ...
4837         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
4838         * elf/tst-auditmod4a.c: Move to ...
4839         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
4840         * elf/tst-auditmod4b.c: Move to ...
4841         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
4842         * elf/tst-auditmod5a.c: Move to ...
4843         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
4844         * elf/tst-auditmod5b.c: Move to ...
4845         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
4846         * elf/tst-auditmod6a.c: Move to ...
4847         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
4848         * elf/tst-auditmod6b.c: Move to ...
4849         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
4850         * elf/tst-auditmod6c.c: Move to ...
4851         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
4852         * elf/tst-auditmod7a.c: Move to ...
4853         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
4854         * elf/tst-auditmod7b.c: Move to ...
4855         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
4856
4857 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4858
4859         [BZ #15366]
4860         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
4861         define unconditionally.
4862         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
4863         define unconditionally.
4864         (INT8_C, INT16_C, etc.): Likewise.
4865
4866 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
4867
4868         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
4869         __ehdr_start with hidden visibility.
4870
4871         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
4872
4873 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
4874
4875         * math/libm-test.inc (cos_test): Use accurate hex constants.
4876         (sincost_test): Likewise.
4877
4878 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
4879
4880         * math/libm-test.inc (catan_test): Add more tests.
4881         (catanh_test): Likewise.
4882
4883         * math/s_catanf.c (__catanf): Use suffixed floating-point
4884         constants.
4885         * math/s_catanhf.c (__catanhf): Likewise.
4886         * math/s_catanhl.c (__catanhl): Likewise.
4887         * math/s_catanl.c (__catanl): Likewise.
4888
4889         [BZ #15394]
4890         * math/s_catan.c (__catan): Calculate imaginary part of result
4891         with log1p not log unless computing log of number close to 0.
4892         * math/s_catanf.c (__catanf): Likewise.
4893         * math/s_catanl.c (__catanl): Likewise.
4894         * math/s_catanh.c (__catanh): Calculate real part of result with
4895         log1p not log unless computing log of number close to 0.
4896         * math/s_catanhf.c (__catanhf): Likewise.
4897         * math/s_catanhl.c (__catanhl): Likewise.
4898         * math/libm-test.inc (catan_test): Add more tests.
4899         (catanh_test): Likewise.
4900         * sysdeps/i386/fpu/libm-test-ulps: Update.
4901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4902
4903 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4904
4905         * benchtests/Makefile: Mention files in which fast and slow
4906         paths of math functions are implemented.
4907
4908 2013-04-23  Roland McGrath  <roland@hack.frob.com>
4909
4910         * sysdeps/posix/timespec_get.c: New file.
4911
4912 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4913
4914         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
4915         POWER.
4916         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
4917         for POWER.
4918         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
4919         powerpc/power5/fpu folders.
4920         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
4921         * benchtests/Makefile: Add modf testcase.
4922         * benchtests/bench-modf.c: New file: Benchmark test for mo
4923
4924 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4925
4926         [BZ #14888]
4927         * time/Makefile (tests): Add tst-strptime-whitespace.
4928         * time/strptime_l.c (get_number): Use ISSPACE.
4929         (__strptime_internal): Likewise.
4930         * time/tst-strptime-whitespace.c: New test case.
4931
4932 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
4933
4934         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
4935         member.
4936         (_nss_files_init): Set it here.
4937
4938 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
4939
4940         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
4941         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
4942         unsigned.
4943
4944 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
4945
4946         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
4947
4948 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4949
4950         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
4951         size just once.
4952
4953 2013-04-21  David S. Miller  <davem@davemloft.net>
4954
4955         * po/ru.po: Update Russion translation from translation project.
4956
4957 2013-04-17  Adam Conrad  <adconrad@0c3.net>
4958
4959         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
4960         and setfsgid.
4961
4962 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
4963
4964         * configure.in: Remove i386 configure warning. Remove i386 case.
4965         * configure: Regenerate.
4966         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
4967         Add example to error message.
4968         * sysdeps/i386/configure: Regenerate.
4969
4970 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4971
4972         * benchtests/Makefile (bench): Add cos, tan, slowcos and
4973         slowtan.
4974         * benchtests/cos-inputs: New file.
4975         * benchtests/slowcos-inputs: New file.
4976         * benchtests/slowcos.c: New file.
4977         * benchtests/slowtan-inputs: New file.
4978         * benchtests/slowtan.c: New file.
4979         * benchtests/tan-inputs: New file.
4980
4981 2013-04-16  Roland McGrath  <roland@hack.frob.com>
4982
4983         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
4984         considered kosher.
4985
4986 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4987
4988         * benchtests/Makefile: Include cppflags-iterator.mk to add
4989         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
4990
4991         * Makefile.in (bench-clean): New target.
4992         * benchtests/Makefile (bench-clean): Likewise.
4993
4994 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
4995
4996         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
4997
4998 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
4999
5000         * stdio-common/tstdiomisc.c: Fix coding-style violation.
5001
5002 2013-04-15  Andreas Schwab  <schwab@suse.de>
5003
5004         * nscd/grpcache.c (cache_addgr): Properly check for short write.
5005         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5006         * nscd/pwdcache.c (cache_addpw): Likewise.
5007         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
5008         more than recsize.
5009
5010 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5011
5012         * benchtests/Makefile (bench): Write all output to
5013         bench-out.tmp together.
5014
5015 2013-04-15  Andreas Schwab  <schwab@suse.de>
5016
5017         * nscd/nscd.c (main): Don't fork again after closing files.
5018
5019 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5020
5021         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
5022
5023         * benchtests/Rules (bench-deps): Collect dependencies into a
5024         single variable.  Add Makefile to dependencies.
5025         ($(objpfx)bench-%.c): Depend on bench-deps.
5026
5027 2013-04-12  Roland McGrath  <roland@hack.frob.com>
5028             Xavier Roche  <roche+kml2@exalead.com>
5029
5030         [BZ #15361]
5031         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
5032         just that it's a file descriptor.
5033         * manual/llio.texi (Synchronizing AIO Operations): Update description
5034         for EBADF error from aio_fsync.
5035
5036 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5037
5038         * Rules (bench): Move target definition...
5039         * benchtests/Makefile: ... here.
5040
5041 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
5042
5043         * math/libm-test.inc (cos_test): Fix PI/2 test.
5044         (sincos_test): Likewise.
5045         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
5046         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5047
5048 2013-04-11  Andreas Schwab  <schwab@suse.de>
5049
5050         [BZ #13988]
5051         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
5052         accept exponent character only when digits were seen.
5053         * stdio-common/Makefile (tests): Add bug26.
5054         * stdio-common/bug26.c: New file.
5055
5056         [BZ #14293]
5057         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
5058         non-freeable.
5059
5060 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5061
5062         * Makeconfig (rtld-prefix): Define built linker prefix.
5063         * Rules (run-bench): Use it.
5064         * math/Makefile (run-regen-ulps): Likewise.
5065
5066         * Rules (bench): Remove eval.
5067
5068 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5069             Roland McGrath  <roland@hack.frob.com>
5070             Ondrej Bilka  <neleai@seznam.cz>
5071
5072         [BZ #15346]
5073         * time/getdate.c: Include ctype.h and alloca.h.
5074         (__getdate_r): Trim leading and trailing spaces of input.
5075         * time/tst-getdate.c (tests): Add tests with leading and
5076         trailing spaces.
5077
5078 2013-04-08  Roland McGrath  <roland@hack.frob.com>
5079
5080         [BZ #14280]
5081         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
5082         when computing value.
5083
5084 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5085
5086         * math/README.libm-test (How can I generate "libm-test-ulps"?):
5087         Use testrun.sh to run libm tests.
5088
5089         [BZ #15309]
5090         * elf/dl-open.c (dl_open_worker): memset all of seen array.
5091
5092 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
5093
5094         [BZ #15264]
5095         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
5096
5097 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5098
5099         * Makefile.in (regen-ulps): New target.
5100         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
5101         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
5102         [ifneq (no,$(PERL)] (regen-ulps): New target.
5103         [ifeq (no,$(PERL)] (regen-ulps): New target.
5104         * math/libm-test.inc (ulps_file_name): Define.
5105         (output_dir): New variable.
5106         (options): Add "output-dir" option.
5107         (parse_opt): Handle 'o' case.
5108         (main): If output_dir is non-NULL use it as a prefix
5109         otherwise use "".
5110         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
5111
5112 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5113
5114         [BZ #10060, #10062]
5115         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
5116         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
5117         fail configure if __sync_val_compare_and_swap is not inlined.
5118         * sysdeps/i386/configure: Regenerate.
5119         * configure.in: Build for i686 when configured for i386.
5120         * configure: Regenerate.
5121         * README: Remove i386 reference.
5122
5123 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5124
5125         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
5126         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5127
5128 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5129
5130         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
5131         (lmsnanval): New variables.
5132         (F): Add conversion tests.
5133         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
5134         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
5135
5136         * stdio-common/tstdiomisc.c (F): Properly collect individual
5137         tests' results.
5138
5139         [BZ #14686, #15336]
5140         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
5141         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
5142         Instead, use input NaN values or generate a qNaN by arithmetic
5143         operation.  Also fix bugs to comply with the standard.
5144         * math/libm-test.inc (remainder_test): Add more tests.
5145
5146         [BZ #15335, #15342]
5147         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
5148         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
5149         input NaN values or generate a qNaN by arithmetic operation.
5150
5151         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
5152         unreachable code.
5153
5154         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
5155         definitions.
5156
5157 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
5158
5159         [BZ #14478]
5160         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
5161         underflowed result.
5162         * math/s_cexpf.c (__cexpf): Likewise.
5163         * math/s_cexpl.c (__cexpl): Likewise.
5164         * math/libm-test.inc (cexp_test): Add more tests.
5165
5166 2013-04-03  Andreas Schwab  <schwab@suse.de>
5167
5168         [BZ #15330]
5169         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
5170         order arrays from heap if bigger than alloca cutoff.
5171
5172 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
5173
5174         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
5175         (SNAN_TESTS_double): Refer to GCC PR56831.
5176         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
5177         GCC PR56828.
5178
5179 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
5180
5181         * Rules (bench): Move bench.out after the run is complete.
5182
5183         * Rules (bench): Echo currently running benchmark.
5184
5185         * benchtests/Makefile (bench): Add atan and slowatan.
5186         * benchtests/atan-inputs: New file.
5187         * benchtests/slowatan-inputs: New file.
5188         * benchtests/slowatan.c: New file.
5189
5190         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
5191         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
5192         its value.
5193
5194         [BZ #15305]
5195         * sysdeps/unix/sysv/linux/kernel-features.h
5196         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
5197         __ASSUME_XFS_RESTRICTED_CHOWN.
5198         * sysdeps/unix/sysv/linux/pathconf.c
5199         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
5200         Save and restore errno.
5201
5202 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
5203
5204         [BZ #15327]
5205         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
5206         arguments using __kernel_casinh.
5207         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
5208         arguments using __kernel_casinhf.
5209         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
5210         arguments using __kernel_casinhl.
5211         * math/libm-test.inc (cacosh_test): Add more tests.
5212         * sysdeps/i386/fpu/libm-test-ulps: Update.
5213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5214
5215 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5216
5217         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
5218         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
5219
5220         * bench/Makefile (bench): Add sin and slowsin.
5221         * benchtests/sin-inputs: New file.
5222         * benchtests/slowsin-inputs: New file.
5223         * benchtests/slowsin.c: New file.
5224
5225         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
5226         (bench): Add slowexp and slowpow.
5227         (exp-ITER): Increase iterations.
5228         (pow-ITER): Likewise.
5229         * benchtests/exp-inputs: Change input.
5230         * benchtests/pow-inputs: Likewise.
5231         * benchtests/slowexp-inputs: New file.
5232         * benchtests/slowexp.c: New file.
5233         * benchtests/slowpow-inputs: New file.
5234         * benchtests/slowpow.c: New file.
5235
5236 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5237
5238         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
5239         instructions.
5240         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5241         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
5242         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5243         * benchtests/Makefile: Add rint benchtest.
5244         * benchtests/rint-inputs: Input for rint benchtest.
5245
5246 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5247
5248         * Versions.def (libm): Add GLIBC_2.18.
5249         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
5250         hidden libm prototypes.
5251         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
5252         * math/Makefile (libm-calls): Add s_issignaling.
5253         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
5254         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
5255         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
5256         declaration.
5257         * math/math.h [__USE_GNU] (issignaling): New macro.
5258         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
5259         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
5260         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
5261         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
5262         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
5263         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
5264         * manual/arith.texi (issignaling): New section.
5265         * manual/libm-err-tab.pl (@all_functions): Update comment.
5266         * math/gen-libm-test.pl (parse_args): Apply special handling for
5267         issignaling.
5268         * math/libm-test.inc (print_float, issignaling_test): New
5269         functions.
5270         (check_float_internal): Add issignaling checks.
5271         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
5272         default definition.
5273         * sysdeps/powerpc/math-tests.h: New file.
5274         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
5275         tests.
5276         * math/test-snan.c (TEST_FUNC): Likewise.
5277
5278 2013-03-30  David S. Miller  <davem@davemloft.net>
5279
5280         * po/de.po: Update from translation team.
5281
5282 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
5283
5284         [BZ #10357]
5285         * math/k_casinh.c (__kernel_casinh): Handle arguments with
5286         imaginary part less than 1.0 and real part less than 0.5
5287         specially.
5288         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5289         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5290         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
5291         (cacos_test): Add more tests.
5292         (casin_test): Likewise.
5293         (casinh_test): Likewise.
5294         * sysdeps/i386/fpu/libm-test-ulps: Update.
5295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5296
5297 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5298
5299         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
5300         ONE with its value.
5301
5302         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
5303         (__pow_mp): Replace ONE and MONE with their values.
5304         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
5305         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
5306         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5307         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
5308         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
5309         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5310
5311         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
5312
5313         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
5314         (__pow_mp): Replace ZERO and MZERO with their values.
5315         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
5316         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
5317         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5318         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5319         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
5320         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
5321         (__sqr): Likewise.
5322
5323         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
5324
5325         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
5326
5327 2013-03-28  Roland McGrath  <roland@hack.frob.com>
5328
5329         * include/stdlib.h [!SHARED] (__call_tls_dtors):
5330         Declare with __attribute__ ((weak)).
5331         * stdlib/exit.c (__libc_atexit) [!SHARED]:
5332         Call __call_tls_dtors only if it's not NULL.
5333
5334 2013-03-28  Roland McGrath  <roland@hack.frob.com>
5335
5336         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
5337         didn't do it already, then set _dl_phdr and _dl_phnum based on the
5338         magic __ehdr_start linker symbol if it's defined.
5339         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
5340         them up here if it was already done.
5341
5342         * elf/dl-support.c (_dl_phdr): Make pointer to const.
5343         (_dl_aux_init): Use const in cast when setting it.
5344         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
5345         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
5346         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
5347
5348         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
5349         Declare them here.
5350         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
5351         * csu/libc-tls.c: Nor here.
5352         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
5353
5354         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
5355         (__libc_message): Never call vsyslog.
5356
5357 2013-03-28  Alan Modra  <amodra@gmail.com>
5358
5359         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
5360         Define as empty.
5361         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
5362         Likewise.
5363
5364 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5365
5366         [BZ #15214]
5367         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
5368         underflow.
5369         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5370
5371 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5372
5373         [BZ #15304]
5374         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
5375         Don't add gid passed as argument.
5376
5377         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
5378
5379 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
5380
5381         [BZ #15307]
5382         * math/k_casinh.c (__kernel_casinh): Handle arguments with
5383         imaginary part between 1.0 and 1.5 and real part less than 0.5
5384         specially.
5385         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5386         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5387         * math/libm-test.inc (cacos_test): Add more tests.
5388         (casin_test): Likewise.
5389         (casinh_test): Likewise.
5390         * sysdeps/i386/fpu/libm-test-ulps: Update.
5391         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5392
5393 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5394
5395         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
5396         constants.
5397         (norm): Likewise.
5398         (denorm): Likewise.
5399         (__dbl_mp): Likewise.
5400         (add_magnitudes): Likewise.
5401         (sub_magnitudes): Likewise.
5402         (__add): Likewise.
5403         (__sub): Likewise.
5404         (__mul): Likewise.
5405         (__sqr): Likewise.
5406         (__inv): Likewise.
5407         (__dvd): Likewise.
5408
5409         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
5410         commented code.
5411         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
5412         (__dubcos): Likewise.
5413         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
5414         (__ieee754_acos): Likewise.
5415         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
5416         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
5417         (__exp1): Likewise.
5418         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
5419         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
5420         (log1): Likewise.
5421         (my_log2): Likewise.
5422         (checkint): Likewise.
5423         * sysdeps/ieee754/dbl-64/e_remainder.c
5424         (__ieee754_remainder): Likewise.
5425         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
5426         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
5427         (bsloww): Likewise.
5428         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5429
5430         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
5431         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
5432         MANTISSA_STORE_T to store computations on mantissa.  Use
5433         macros for rounding and division.
5434         (denorm): Likewise.
5435         (__dbl_mp): Likewise.
5436         (add_magnitudes): Likewise.
5437         (sub_magnitudes): Likewise.
5438         (__mul): Likewise.
5439         (__sqr): Likewise.
5440         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
5441         powers of two in terms of TWOPOW macro.
5442         (mp_no): Make type of mantissa as MANTISSA_T.
5443         [!RADIXI]: Define RADIXI.
5444         [!TWO52]: Define TWO52.
5445         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
5446
5447 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5448
5449         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
5450         llroundl symbol when building for PPC32.
5451
5452 2013-03-24  Mark H Weaver  <mhw@netris.org>
5453
5454         * manual/arith.texi (Normalization Functions): Fix prototypes for
5455         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
5456
5457 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5458
5459         [BZ #13889]
5460         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
5461         high value to check if expl overflow.
5462         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
5463         to check for underflow and overflow.
5464         * math/libm-test.inc: Add exp test.
5465
5466 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
5467
5468         [BZ #11120]
5469         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
5470         with NOT_IN_libc.
5471
5472 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5473
5474         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
5475         symbol.
5476
5477 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5478
5479         * math/gen-libm-test.pl (parse_args, special_functions): Properly
5480         wrap blocks consisting of several statements.
5481
5482         * sysdeps/generic/math-tests.h: New file.
5483         * sysdeps/i386/fpu/math-tests.h: Likewise.
5484         * math/test-snan.c: Include it.
5485         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
5486
5487 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
5488
5489         [BZ #15285]
5490         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
5491         (__ieee754_j0l): Do not improve calculations using cos of twice
5492         input for inputs above LDBL_MAX / 2.0L.
5493         (__ieee754_y0l): Likewise.
5494         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
5495         (__ieee754_j1l): Do not improve calculations using cos of twice
5496         input for inputs above LDBL_MAX / 2.0L.
5497         (__ieee754_y1l): Likewise.
5498         * math/libm-test.inc (j0_test): Add another test.
5499         (j1_test): Likewise.
5500         (y0_test): Likewise.
5501         (y1_test): Likewise.
5502         * sysdeps/i386/fpu/libm-test-ulps: Update.
5503
5504 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5505
5506         * Rules ($(objpfx)bench-%.c): Include code from a C source
5507         file.
5508
5509 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
5510
5511         [BZ #15287]
5512         * math/k_casinh.c (__kernel_casinh): Handle arguments with
5513         imaginary part 1.0 and real part less than 0.5 specially.
5514         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5515         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5516         * math/libm-test.inc (cacos_test): Add more tests.
5517         (casin_test): Likewise.
5518         (casinh_test): Likewise.
5519         * sysdeps/i386/fpu/libm-test-ulps: Update.
5520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5521
5522 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5523
5524         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
5525         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
5526
5527 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
5528
5529         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
5530         * config.make.in (config-cflags-sse4): Remove variable.
5531         (config-cflags-avx): Likewise.
5532         (config-cflags-sse2avx): Likewise.
5533         (config-cflags-novzeroupper): Likewise.
5534         (config-asflags-i686): Likewise.
5535         (have-mfma4): Likewise.
5536         (have-as-vis3): Likewise.
5537         (MIG): Likewise.
5538         * configure.in (MIG): Do not AC_SUBST.
5539         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
5540         (libc_cv_cc_sse4): Do not AC_SUBST.
5541         (libc_cv_cc_avx): Likewise.
5542         (libc_cv_cc_sse2avx): Likewise.
5543         (libc_cv_cc_novzeroupper): Likewise.
5544         (libc_cv_cc_fma4): Likewise.
5545         (libc_cv_as_i686): Likewise.
5546         (libc_cv_sparc_as_vis3): Likewise.
5547         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
5548         LIBC_CONFIG_VAR.
5549         (config-asflags-i686): Likewise.
5550         (config-cflags-avx): Likewise.
5551         (config-cflags-sse2avx): Likewise.
5552         (have-mfma4): Likewise.
5553         (config-cflags-novzeroupper): Likewise.
5554         * sysdeps/mach/configure.in (MIG): Likewise.
5555         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
5556         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
5557         LIBC_CONFIG_VAR.
5558         (config-cflags-avx): Likewise.
5559         (config-cflags-sse2avx): Likewise.
5560         (have-mfma4): Likewise.
5561         (config-cflags-novzeroupper): Likewise.
5562         * configure: Regenerated.
5563         * sysdeps/i386/configure: Likewise.
5564         * sysdeps/mach/configure: Likewise.
5565         * sysdeps/sparc/configure: Likewise.
5566         * sysdeps/x86_64/configure: Likewise.
5567
5568 2013-03-20  Roland McGrath  <roland@hack.frob.com>
5569
5570         [BZ #14812]
5571         * locale/programs/localedef.c (options): Put N_ translation marker
5572         on argument names, not just descriptions.
5573
5574 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5575
5576         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
5577
5578 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
5579
5580         [BZ #14176]
5581         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
5582
5583 2013-03-19  Roland McGrath  <roland@hack.frob.com>
5584
5585         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
5586         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
5587         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
5588         [!BEFORE_ABORT] (before_abort): New function.
5589         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
5590         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
5591         (writev_for_fatal): New function.
5592         (WRITEV_FOR_FATAL): New macro; call that.
5593         (backtrace_and_maps): New function.
5594         (BEFORE_ABORT): New macro; call that.
5595         (struct str_list): Type removed.
5596         (__libc_message, __libc_fatal): Functions removed.
5597         Include <sysdeps/posix/libc_fatal.c> instead.
5598
5599 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
5600
5601         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
5602         constants.
5603         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
5604         double constants.
5605
5606 2013-03-19  Andreas Schwab  <schwab@suse.de>
5607
5608         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
5609         * sysdeps/gnu/configure: Regenerate.
5610
5611         * configure.in: Substitute libc_cv_rtlddir.
5612         * configure: Regenerate.
5613         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
5614         * Makeconfig (rtlddir, inst_rtlddir): New variables.
5615         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
5616         * elf/Makefile (install-others, CFLAGS-interp.c)
5617         (ldso_install, common-ldd-rewrite): Likewise.
5618         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
5619         $(inst_slibdir)/$(rtld-installed-name).
5620         * scripts/rellns-sh: Add -p option.
5621         * Makerules (make-shlib-link): Use rellns-sh to get relative name
5622         for source.
5623
5624 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5625
5626         * manual/nptl.texi: Renamed to ...
5627         * manual/threads.texi: ... this.
5628         * manual/Makefile (chapters): Update.
5629
5630 2013-03-18  Roland McGrath  <roland@hack.frob.com>
5631
5632         [BZ #14812]
5633         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
5634         on argument names, not just descriptions.
5635         * malloc/memusagestat.c (options): Likewise.
5636         * nss/getent.c (options): Likewise.
5637
5638 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
5639
5640         [BZ #14812]
5641         * iconv/iconv_prog.c (options): Put N_ translation marker
5642         on argument names, not just descriptions.
5643         * iconv/iconvconfig.c (options): Likewise.
5644
5645 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
5646
5647         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
5648         implementation which is faster on all x86_64 architectures.
5649         Tested on AMD, Intel Nehalem, SNB, IVB.
5650         * sysdeps/x86_64/strnlen.S: Likewise.
5651
5652         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5653         Remove all multiarch strlen and strnlen versions.
5654         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
5655         Remove strlen and strnlen related parts.
5656
5657         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
5658         Inline strlen part.
5659         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
5660
5661         * sysdeps/x86_64/multiarch/strlen.S: Remove.
5662         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
5663         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
5664         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
5665         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
5666         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
5667
5668 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
5669
5670         * manual/memory.texi (Malloc Tunable Parameters):
5671         Sort parameters alphabetically. Add comments for missing entries.
5672
5673 2013-03-17  David S. Miller  <davem@davemloft.net>
5674
5675         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5676
5677 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
5678
5679         [BZ #15283]
5680         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
5681         for arguments at most half maximum finite value.
5682         * math/libm-test.inc (j0_test): Add more tests.
5683         (j1_test): Likewise.
5684         (y0_test): Likewise.
5685         (y1_test): Likewise.
5686         * sysdeps/i386/fpu/libm-test-ulps: Update.
5687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5688
5689         [BZ #14155]
5690         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
5691         1 / x and functions P and Q for arguments above 0x1p256L.
5692         (__ieee754_y0l): Likewise.
5693         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5694         (__ieee754_y1l): Likewise.
5695         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
5696         (j1_test): Likewise.
5697         (y0_test): Likewise.
5698         (y1_test): Likewise.
5699
5700 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
5701
5702         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
5703         variable.
5704
5705 2013-03-15  Roland McGrath  <roland@hack.frob.com>
5706
5707         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
5708         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
5709         zero since it's initialized to EXEC_PAGESIZE.
5710
5711         * sysdeps/unix/sysv/linux/ldsodefs.h
5712         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
5713         * sysdeps/generic/ldsodefs.h: ... here.
5714
5715 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
5716
5717         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
5718
5719         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
5720         math/test-snan.c.
5721         * math/test-snan.c: Renamed from
5722         sysdeps/powerpc/fpu/test-powerpc-snan.c.
5723         * math/Makefile (tests): Add test-snan.
5724         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
5725         test-powerpc-snan.
5726
5727         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
5728         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
5729         functions.
5730         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
5731         __builtin_nan family of functions.
5732         * math/libm-test.inc (initialize): Initialize qnan_value with
5733         __builtin_nan family of functions.
5734         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
5735         Remove variables.
5736         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
5737         Remove functions.
5738         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
5739         storage class.  Initialize qNaN_var and sNaN_var with
5740         __builtin_nan and __builtin_nans families of functions,
5741         respectively.
5742
5743         * math/libm-test.inc (acosh_test): Also test with qNaN input.
5744         (sqrt_test): Remove duplicate test with qNaN input.
5745         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
5746         (round_test, signbit_test, significand_test): Note missing +/-Inf
5747         as well as qNaN tests.
5748
5749         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
5750         qNaN_var.  Fix a few strings, too.
5751         * math/libm-test.inc (nan_value): Rename to qnan_value.
5752         * math/gen-libm-test.pl (%beautify): Adjust to that.
5753         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
5754         * math/test-misc.c (main): Likewise.
5755         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
5756         to __qnan_bytes, and __qnan_union, respectively.
5757         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
5758         Likewise.
5759         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
5760         and lqnanval, respectively.
5761         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
5762         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
5763         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
5764         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
5765
5766         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
5767         * math/test-misc.c (main) [__x86_64__]: Enable test for long
5768         doubles.
5769
5770         * math/test-misc.c (main): Fix copy'n'pastos.
5771         * misc/tst-efgcvt.c (special): Likewise.
5772
5773         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
5774         Remove declarations.
5775
5776 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5777
5778         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
5779         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
5780         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
5781         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
5782
5783 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5784
5785         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
5786         macro to return vdso values correctly in IFUNC implementations.
5787         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
5788         Optimization by using IFUNC.
5789
5790 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5791             Richard Henderson  <rth@redhat.com>
5792             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5793
5794         * Makefile.in (bench): New target.
5795         * NEWS: Mention the benchmark framework.
5796         * Rules (bench): Likewise.
5797         (binaries-bench): Generate binaries for functions to
5798         benchmark.
5799         * benchtests/Makefile: New makefile for benchmark tests.
5800         * benchtests/bench-skeleton.c: New skeleton file for benchmark
5801         programs.
5802         * benchtests/exp-inputs: New input file for EXP function.
5803         * benchtests/pow-inputs: New input file for POW function.
5804         * scripts/bench.pl: New script to generate source files for
5805         benchmark programs.
5806
5807 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5808
5809         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
5810         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
5811         computations on mantissa.  Use macros for rounding and
5812         division.
5813         (denorm): Likewise.
5814         (__dbl_mp): Likewise.
5815         (add_magnitudes): Likewise.
5816         (sub_magnitudes): Likewise.
5817         (__mul): Likewise.
5818         (__sqr): Likewise.
5819         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
5820         powers of two in terms of TWOPOW macro.
5821         (mp_no): Make type of mantissa as MANTISSA_T.
5822         [!RADIXI]: Define RADIXI.
5823         [!TWO52]: Define TWO52.
5824         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
5825
5826         * manual/nptl.texi (cindex): Modify threads to pthreads.
5827
5828 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
5829
5830         * sysdeps/x86_64/preconfigure: Regenerated.
5831
5832 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
5833
5834         [BZ #14155]
5835         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
5836         0x1p28 and above.
5837         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
5838         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
5839         0x1p28 and above.
5840         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
5841         * math/libm-test.inc (j0_test): Do not allow one spurious
5842         underflow exception.
5843         (y1_test): Likewise.
5844
5845 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5846
5847         * manual/Makefile (chapters): Add nptl.
5848         * manual/debug.texi (Debugging Support): Add link to Threads
5849         chapter.
5850         * manual/nptl.texi: New file.
5851
5852         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
5853
5854 2013-03-14  Petr Baudis  <pasky@ucw.cz>
5855
5856         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
5857         for non-NULL pointer before the memory validity test. Pointed
5858         out by Holger Brunck <holger.brunck@keymile.com>.
5859
5860 2013-03-13  Andreas Schwab  <schwab@suse.de>
5861
5862         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
5863         instead of .os.
5864
5865 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
5866
5867         * timezone/zic.c: Update from tzcode 2013b.
5868
5869 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
5870
5871         * manual/install.texi (Configuring and compiling):
5872         Mention i686 and i586.
5873         * INSTALL: Regenerate.
5874
5875 2013-03-12  Roland McGrath  <roland@hack.frob.com>
5876
5877         * sysdeps/init_array/elf-init.c: New file.
5878         * csu/elf-init.c
5879         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
5880         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
5881
5882         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
5883         __gmon_start__ as global, but as static with a .preinit_array pointer.
5884         * sysdeps/init_array/gmon-start.c: New file.  Use that.
5885         * sysdeps/init_array/crti.S: New file, empty except for comments.
5886         * sysdeps/init_array/crtn.S: Likewise.
5887
5888 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
5889
5890         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
5891         definining bcopy.
5892         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5893         Remove Prefer_SSE_for_memop.
5894         * sysdeps/x86_64/multiarch/init-arch.h: Remove
5895         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
5896         HAS_PREFER_SSE_FOR_MEMOP.
5897         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
5898         memset-x86-64.
5899         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5900         Remove bzero, memset ifunc support.
5901         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
5902         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
5903         * sysdeps/x86_64/multiarch/memset.S: Likewise.
5904         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5905
5906 2013-03-11  Andreas Schwab  <schwab@suse.de>
5907
5908         [BZ #15234]
5909         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
5910         by SHLIB_COMPAT.
5911         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
5912         (GLIBC_2.16): Remove pthread_atfork.
5913
5914 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
5915
5916         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
5917         (ptestcases.h): Likewise.
5918
5919 2013-03-08  Roland McGrath  <roland@hack.frob.com>
5920
5921         * Makeconfig ($(common-objpfx)config.status): Depend on
5922         sysdeps/*/preconfigure{,.in} too.
5923
5924 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
5925
5926         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
5927         (__free_hook): Use void * instead of __malloc_ptr_t.
5928         (__malloc_hook): Likewise.
5929         (__realloc_hook): Likewise.
5930         (__memalign_hook): Likewise.
5931         (__after_morecore_hook): Likewise.
5932         * malloc/arena.c (save_malloc_hook): Likewise.
5933         (save_free_hook): Likewise.
5934         * malloc/hooks.c (malloc_hook_ini): Likewise.
5935         (realloc_hook_ini): Likewise.
5936         (memalign_hook_ini): Likewise.
5937         * malloc/malloc.c (malloc_hook_ini): Likewise.
5938         (realloc_hook_ini): Likewise.
5939         (memalign_hook_ini): Likewise.
5940         (__free_hook): Likewise.
5941         (__malloc_hook): Likewise.
5942         (__realloc_hook): Likewise.
5943         (__memalign_hook): Likewise.
5944         (__libc_malloc): Likewise.
5945         (__libc_free): Likewise.
5946         (__libc_realloc): Likewise.
5947         (__libc_memalign): Likewise.
5948         (__libc_valloc): Likewise.
5949         (__libc_pvalloc): Likewise.
5950         (__libc_calloc): Likewise.
5951         (__posix_memalign): Likewise.
5952         * malloc/morecore.c (__sbrk): Likewise.
5953         (__default_morecore): Likewise.
5954
5955         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
5956
5957         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
5958         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
5959         __malloc_ptrdiff_t.
5960
5961         * malloc/malloc.h (__malloc_size_t): Remove macro.
5962         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
5963         __malloc_size_t.
5964         (old_memalign_hook): Likewise.
5965         (old_realloc_hook): Likewise.
5966         (struct hdr): Likewise.
5967         (flood): Likewise.
5968         (mallochook): Likewise.
5969         (memalignhook): Likewise.
5970         (reallochook): Likewise.
5971         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
5972         (tr_old_realloc_hook): Likewise.
5973         (tr_old_memalign_hook): Likewise.
5974         (tr_mallochook): Likewise.
5975         (tr_reallochook): Likewise.
5976         (tr_memalignhook): Likewise.
5977
5978 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5979
5980         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
5981         default_ldbl_pack and using as default implementation.
5982         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
5983         implementation.
5984         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
5985         redundant definition.
5986         (ldbl_insert_mantissa): Likewise.
5987         (ldbl_canonicalize): Likewise.
5988         (ldbl_nearbyint): Likewise.
5989         (ldbl_pack): Rename to ldbl_pack_ppc.
5990         (ldbl_unpack): Rename to ldbl_unpack_ppc.
5991         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
5992         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
5993
5994 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5995
5996         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
5997         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
5998         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
5999         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
6000         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
6001         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
6002         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
6003         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
6004
6005 2013-03-07  Andreas Jaeger  <aj@suse.de>
6006
6007         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6008         bits/mman-linux.h.
6009
6010 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
6011
6012         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
6013         Include mpa.h and declare __MPEXP.
6014         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
6015         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
6016         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
6017         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
6018         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
6019         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
6020         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
6021
6022         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
6023         (__slowpow): Use long double EXPL and LOGL functions to
6024         compute POW.
6025         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
6026         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
6027         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
6028         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
6029         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
6030         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
6031
6032         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
6033         intermediate variable to calculate exponent.
6034         (__sqr): Likewise.
6035         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
6036         Likewise.
6037         (__sqr): Likewise.
6038
6039         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
6040         [!NO__SQR]: Define __sqr.
6041         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
6042         and NO__SQR.  Remove all code except __mul and __sqr.  Include
6043         sysdeps/ieee754/dbl-64/mpa.c.
6044         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6045
6046         [BZ #12723]
6047         * posix/Makefile (tests): Add tst-pathconf.
6048         * posix/tst-pathconf.c: New test case.
6049         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
6050         _PC_PIPE_BUF.
6051         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
6052
6053 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
6054
6055         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
6056
6057 2013-03-06  Andreas Jaeger  <aj@suse.de>
6058
6059         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
6060         definition via __MAP_ANONYMOUS.
6061
6062         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
6063         it's not part of Linux headers.
6064
6065         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
6066         (MAP_HUGE_MASK): Define.
6067
6068         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
6069         Define.
6070         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6071         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
6072         Define.
6073         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6074         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
6075         Define.
6076         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6077         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
6078         Define.
6079         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6080
6081         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
6082         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
6083         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
6084         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
6085         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
6086         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
6087
6088         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
6089         Handle f2fs.
6090
6091         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
6092         Handle f2fs and efivarfs.
6093
6094         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
6095         f2fs.
6096
6097         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
6098         (EFIVARFS_MAGIC): Add.
6099         (F2FS_LINK_MAX): Add.
6100
6101 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6102
6103         * stdio-common/vfprintf.c: Replace __builtin_expect with
6104         __glibc_unlikely.
6105
6106 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
6107
6108         [BZ #13550]
6109         * sysdeps/generic/bp-sym.h: Remove file.
6110         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
6111         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
6112         <bp-sym.h> and <bp-asm.h>.
6113         (__longjmp): Don't use BP_SYM.
6114         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
6115         and <bp-asm.h>.
6116         (memcpy): Don't use BP_SYM.
6117         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
6118         <bp-sym.h> and <bp-asm.h>.
6119         (memcpy): Don't use BP_SYM.
6120         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
6121         <bp-asm.h>.
6122         (memcpy): Don't use BP_SYM.
6123         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
6124         <bp-asm.h>.
6125         (memset): Don't use BP_SYM.
6126         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6127         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6128         (__bzero): Don't use BP_SYM.
6129         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6130         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6131         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
6132         <bp-sym.h> and <bp-asm.h>.
6133         (memcmp): Don't use BP_SYM.  Remove comment about bounded
6134         pointers.
6135         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
6136         <bp-sym.h> and <bp-asm.h>.
6137         (memcpy): Don't use BP_SYM.
6138         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
6139         <bp-sym.h> and <bp-asm.h>.
6140         (memset): Don't use BP_SYM.
6141         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6142         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6143         (__bzero): Don't use BP_SYM.
6144         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6145         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6146         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
6147         <bp-sym.h> and <bp-asm.h>.
6148         (strncmp): Don't use BP_SYM.  Remove comment about bounded
6149         pointers.
6150         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
6151         <bp-sym.h> and <bp-asm.h>.
6152         (memcpy): Don't use BP_SYM.
6153         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
6154         <bp-sym.h> and <bp-asm.h>.
6155         (memset): Don't use BP_SYM.
6156         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6157         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6158         (__bzero): Don't use BP_SYM.
6159         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6160         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6161         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
6162         <bp-sym.h> and <bp-asm.h>.
6163         (__memchr): Don't use BP_SYM.
6164         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
6165         <bp-sym.h> and <bp-asm.h>.
6166         (memcmp): Don't use BP_SYM.  Remove comment about bounded
6167         pointers.
6168         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
6169         <bp-sym.h> and <bp-asm.h>.
6170         (memcpy): Don't use BP_SYM.
6171         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
6172         <bp-sym.h> and <bp-asm.h>.
6173         (__mempcpy): Don't use BP_SYM.
6174         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
6175         <bp-sym.h> and <bp-asm.h>.
6176         (__memrchr): Don't use BP_SYM.
6177         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
6178         <bp-sym.h> and <bp-asm.h>.
6179         (memset): Don't use BP_SYM.
6180         (__bzero): Likewise.
6181         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
6182         <bp-sym.h> and <bp-asm.h>.
6183         (__rawmemchr): Don't use BP_SYM.
6184         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
6185         <bp-sym.h> and <bp-asm.h>.
6186         (__STRCMP): Don't use BP_SYM.
6187         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
6188         <bp-sym.h> and <bp-asm.h>.
6189         (strchr): Don't use BP_SYM.
6190         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
6191         <bp-sym.h> and <bp-asm.h>.
6192         (__strchrnul): Don't use BP_SYM.
6193         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
6194         <bp-sym.h> and <bp-asm.h>.
6195         (strlen): Don't use BP_SYM.
6196         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
6197         <bp-sym.h> and <bp-asm.h>.
6198         (strncmp): Don't use BP_SYM.  Remove comment about bounded
6199         pointers.
6200         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
6201         <bp-sym.h> and <bp-asm.h>.
6202         (__strnlen): Don't use BP_SYM.
6203         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
6204         <bp-sym.h> and <bp-asm.h>.
6205         (__GI__setjmp): Don't use BP_SYM.
6206         (_setjmp): Likewise.
6207         (__sigsetjmp): Likewise.
6208         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
6209         (L(start_addresses)): Don't use BP_SYM.
6210         (_start): Likewise.
6211         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
6212         <bp-asm.h>.
6213         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
6214         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
6215         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6216         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6217         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
6218         <bp-asm.h>.
6219         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
6220         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
6221         about bounded pointers.
6222         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
6223         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
6224         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
6225         <bp-asm.h>.
6226         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
6227         about bounded pointers.  Remove GKM FIXME comments.
6228         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
6229         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
6230         <bp-asm.h>.
6231         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
6232         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
6233         Remove GKM FIXME comments.
6234         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6235         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6236         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
6237         <bp-asm.h>.
6238         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
6239         about bounded pointers.  Remove GKM FIXME comment.
6240         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
6241         and <bp-asm.h>.
6242         (strncmp): Don't use BP_SYM.  Remove comment about bounded
6243         pointers.
6244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
6245         <bp-sym.h> and <bp-asm.h>.
6246         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
6247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
6248         <bp-sym.h> and <bp-asm.h>.
6249         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
6250         comment.
6251
6252 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
6253
6254         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
6255         call free(NULL).
6256
6257 2013-03-05  David S. Miller  <davem@davemloft.net>
6258
6259         * po/es.po: Update from translation team.
6260
6261 2013-03-05  Andreas Jaeger  <aj@suse.de>
6262
6263         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
6264         <bits/mman-linux.h>.
6265         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
6266         is fine.
6267         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
6268         <bits/mman-linux.h> to end of file.
6269         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
6270         is fine.
6271         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
6272         <bits/mman-linux.h> to end of file.
6273         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
6274         is fine.
6275         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
6276         <bits/mman-linux.h> to end of file.
6277
6278         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
6279         (MCL_CURRENT, MCL_FUTURE): Define here.
6280
6281 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6282
6283         [BZ #15232]
6284         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
6285         attribute_hidden.
6286         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
6287
6288 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6289
6290         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
6291         fourth parameter needed for rt_sigprocmask syscall.
6292         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
6293         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
6294         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6295         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
6296         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6297         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
6298
6299 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
6300
6301         [BZ #13550]
6302         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
6303         comment about bounded pointers.
6304         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
6305         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
6306
6307 2013-03-04  Andreas Jaeger  <aj@suse.de>
6308
6309         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
6310         common definitions.
6311
6312         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
6313         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
6314         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
6315         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6316         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
6317         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6318
6319 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6320
6321         [BZ #15055]
6322         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
6323         __ieee754_sqrl instead of __sqrl.
6324
6325 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
6326
6327         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
6328         * sysdeps/powerpc/fpu_control.h: ... here.
6329         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
6330         * sysdeps/powerpc/bits/fenvinline.h: ... here.
6331         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
6332         * sysdeps/powerpc/bits/mathinline.h: ... here.
6333
6334 2013-03-01  Roland McGrath  <roland@hack.frob.com>
6335
6336         * elf/dl-hwcaps.c (_dl_important_hwcaps):
6337         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
6338         to just [NEED_DL_SYSINFO_DSO].
6339         * elf/dl-support.c: Likewise.
6340         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
6341         * elf/rtld.c (dl_main): Likewise.
6342         * elf/setup-vdso.h (setup_vdso): Likewise.
6343         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
6344         * sysdeps/unix/sysv/linux/dl-sysdep.c
6345         (_dl_discover_osversion): Likewise.
6346
6347 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
6348
6349         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
6350         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
6351
6352 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
6353
6354         * NEWS: Mention libm performance improvements and non-x86 PI
6355         futex support.
6356
6357         * csu/libc-start.c (__pthread_initialize_minimal): Change
6358         function arguments.
6359         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
6360
6361 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
6362
6363         [BZ #13550]
6364         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
6365         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
6366         <bp-sym.h> and <bp-asm.h>.
6367         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
6368         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
6369         and <bp-asm.h>.
6370         (memcpy): Don't use BP_SYM.
6371         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
6372         <bp-asm.h>.
6373         (__mpn_add_n): Don't use BP_SYM.
6374         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
6375         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
6376         and <bp-asm.h>.
6377         (__mpn_addmul_1): Don't use BP_SYM.
6378         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6379         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
6380         <bp-sym.h>.
6381         (_setjmp): Don't use BP_SYM.
6382         (__novmx_setjmp): Likewise.
6383         (__GI__setjmp): Likewise.
6384         (__vmx_setjmp): Likewise.
6385         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
6386         <bp-sym.h>.
6387         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
6388         (__bzero): Don't use BP_SYM.
6389         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6390         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6391         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
6392         <bp-sym.h> and <bp-asm.h>.
6393         (memcpy): Don't use BP_SYM.
6394         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
6395         <bp-sym.h> and <bp-asm.h>.
6396         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
6397         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
6398         <bp-sym.h> and <bp-asm.h>.
6399         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
6400         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
6401         <bp-asm.h>.
6402         (__mpn_lshift): Don't use BP_SYM.
6403         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6404         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
6405         <bp-asm.h>.
6406         (memset): Don't use BP_SYM.
6407         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6408         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6409         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
6410         <bp-asm.h>.
6411         (__mpn_mul_1): Don't use BP_SYM.
6412         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6413         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
6414         <bp-sym.h> and <bp-asm.h>.
6415         (memcmp): Don't use BP_SYM.
6416         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
6417         <bp-sym.h> and <bp-asm.h>.
6418         (memcpy): Don't use BP_SYM.
6419         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
6420         <bp-sym.h> and <bp-asm.h>.
6421         (memset): Don't use BP_SYM.
6422         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
6423         <bp-sym.h> and <bp-asm.h>.
6424         (strncmp): Don't use BP_SYM.
6425         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
6426         <bp-sym.h> and <bp-asm.h>.
6427         (memcpy): Don't use BP_SYM.
6428         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
6429         <bp-sym.h> and <bp-asm.h>.
6430         (memset): Don't use BP_SYM.
6431         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
6432         <bp-sym.h> and <bp-asm.h>.
6433         (__memchr): Don't use BP_SYM.
6434         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
6435         <bp-sym.h> and <bp-asm.h>.
6436         (memcmp): Don't use BP_SYM.
6437         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
6438         <bp-sym.h> and <bp-asm.h>.
6439         (memcpy): Don't use BP_SYM.
6440         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
6441         <bp-sym.h> and <bp-asm.h>.
6442         (__mempcpy): Don't use BP_SYM.
6443         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
6444         <bp-sym.h> and <bp-asm.h>.
6445         (__memrchr): Don't use BP_SYM.
6446         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
6447         <bp-sym.h> and <bp-asm.h>.
6448         (memset): Don't use BP_SYM.
6449         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
6450         <bp-sym.h> and <bp-asm.h>.
6451         (__rawmemchr): Don't use BP_SYM.
6452         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
6453         <bp-sym.h> and <bp-asm.h>.
6454         (__STRCMP): Don't use BP_SYM.
6455         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
6456         <bp-sym.h> and <bp-asm.h>.
6457         (strchr): Don't use BP_SYM.
6458         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
6459         <bp-sym.h> and <bp-asm.h>.
6460         (__strchrnul): Don't use BP_SYM.
6461         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
6462         <bp-sym.h> and <bp-asm.h>.
6463         (strlen): Don't use BP_SYM.
6464         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
6465         <bp-sym.h> and <bp-asm.h>.
6466         (strncmp): Don't use BP_SYM.
6467         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
6468         <bp-sym.h> and <bp-asm.h>.
6469         (__strnlen): Don't use BP_SYM.
6470         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
6471         <bp-asm.h>.
6472         (__mpn_rshift): Don't use BP_SYM.
6473         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6474         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
6475         <bp-sym.h> and <bp-asm.h>.
6476         (__sigsetjmp): Don't use BP_SYM.
6477         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
6478         (L(start_addresses)): Don't use BP_SYM.
6479         (_start): Likewise.
6480         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
6481         <bp-asm.h>.
6482         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
6483         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6484         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6485         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
6486         <bp-asm.h>.
6487         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
6488         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
6489         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
6490         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
6491         <bp-asm.h>.
6492         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
6493         comments.
6494         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
6495         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
6496         <bp-asm.h>.
6497         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
6498         FIXME comments.
6499         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6500         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6501         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
6502         <bp-asm.h>.
6503         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
6504         comment.
6505         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
6506         and <bp-asm.h>.
6507         (strncmp): Don't use BP_SYM,
6508         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
6509         <bp-asm.h>.
6510         (__mpn_sub_n): Don't use BP_SYM.
6511         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
6512         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
6513         and <bp-asm.h>.
6514         (__mpn_submul_1): Don't use BP_SYM.
6515         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
6517         <bp-sym.h> and <bp-asm.h>.
6518         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
6519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
6520         <bp-sym.h> and <bp-asm.h>.
6521         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
6522         comment.
6523
6524 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6525
6526         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
6527         Use ZK to minimize writes to Z.
6528         (sub_magnitudes): Simplify code a bit.
6529         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
6530         Use ZK to minimize writes to Z.
6531         (sub_magnitudes): Simplify code a bit.
6532
6533 2013-02-27  Roland McGrath  <roland@hack.frob.com>
6534
6535         * csu/gmon-start.c: Add special exception to license text.
6536
6537 2013-02-27  Richard Henderson  <rth@redhat.com>
6538
6539         * scripts/config.guess: Update from config.git.
6540         * scripts/config.sub: Likewise.
6541
6542 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6543
6544         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
6545
6546         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
6547
6548         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
6549
6550         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
6551
6552         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
6553
6554 2013-02-26  Roland McGrath  <roland@hack.frob.com>
6555
6556         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
6557         [$(build-shared = yes].
6558
6559 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6560
6561         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
6562         (__mul): Reduce iterations for calculating mantissa.
6563
6564         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
6565         MPTWO.
6566         (__mpranred): Likewise.
6567
6568         [BZ #15160]
6569         * malloc/memusagestat.c (main): Draw graphs for heap and stack
6570         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
6571
6572 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6573
6574         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
6575         Define __attribute__.
6576
6577 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6578
6579         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
6580         unused.
6581         * posix/regex_internal.h (__attribute): Remove.
6582         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
6583         (re_string_context_at): Likewise.
6584         (bitset_not): Use __attribute__ and mark function as possibly
6585         unused.
6586         (bitset_merge): Likewise.
6587         (bitset_mask): Likewise.
6588         (re_string_char_size_at): Likewise.
6589         (re_string_wchar_at): Likewise.
6590         (re_string_elem_size_at): Likewise.
6591
6592 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6593
6594         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
6595         code.
6596         (cc32): Likewise.
6597
6598         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
6599         (__acr): Likewise.
6600         (__cpy): Likewise.
6601         (norm): Likewise.
6602         (denorm): Likewise.
6603         (__dbl_mp): Likewise.
6604         (add_magnitudes): Likewise.
6605         (sub_magnitudes): Likewise.
6606         (__mul): Likewise.
6607         (__inv): Likewise.
6608
6609         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
6610         style.
6611
6612         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
6613         style.
6614
6615         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
6616         code.
6617
6618         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
6619         up changes with default code.
6620         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
6621         Likewise.
6622
6623 2013-02-24  Allan McRae  <allan@archlinux.org>
6624
6625         * manual/socket.texi (The Internet Namespace): Order menu items
6626         to match that in the file.
6627
6628         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
6629         node listing of the info page menu.
6630
6631 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
6632
6633         [BZ #13550]
6634         * sysdeps/i386/bp-asm.h: Remove file.
6635         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
6636         (PARMS): Do not use macros from bp-asm.h.
6637         (S1): Likewise.
6638         (S2): Likewise.
6639         (SIZE): Likewise.
6640         (__mpn_add_n): Do not use BP_SYM
6641         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
6642         "bp-asm.h".
6643         (PARMS): Do not use macros from bp-asm.h.
6644         (S1): Likewise.
6645         (SIZE): Likewise.
6646         (__mpn_addmul_1): Do not use BP_SYM
6647         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
6648         "bp-asm.h".
6649         (PARMS): Do not use macros from bp-asm.h.
6650         (SIGMSK): Likewise.
6651         (_setjmp): Likewise.  Do not use BP_SYM.
6652         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
6653         "bp-asm.h".
6654         (PARMS): Do not use macros from bp-asm.h.
6655         (SIGMSK): Likewise.
6656         (setjmp): Likewise.  Do not use BP_SYM.
6657         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
6658         "bp-asm.h".
6659         (PARMS): Do not use macros from bp-asm.h.
6660         (__frexp): Do not use BP_SYM.
6661         (frexp): Likewise.
6662         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
6663         "bp-asm.h".
6664         (PARMS): Do not use macros from bp-asm.h.
6665         (__frexpf): Do not use BP_SYM.
6666         (frexpf): Likewise.
6667         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
6668         "bp-asm.h".
6669         (PARMS): Do not use macros from bp-asm.h.
6670         (__frexpl): Do not use BP_SYM.
6671         (frexpl): Likewise.
6672         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
6673         "bp-asm.h".
6674         (PARMS): Do not use macros from bp-asm.h.
6675         (__remquo): Do not use BP_SYM.
6676         (remquo): Likewise.
6677         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
6678         "bp-asm.h".
6679         (PARMS): Do not use macros from bp-asm.h.
6680         (__remquof): Do not use BP_SYM.
6681         (remquof): Likewise.
6682         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
6683         "bp-asm.h".
6684         (PARMS): Do not use macros from bp-asm.h.
6685         (__remquol): Do not use BP_SYM.
6686         (remquol): Likewise.
6687         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
6688         "bp-asm.h".
6689         (PARMS): Do not use macros from bp-asm.h.
6690         (DEST): Likewise.
6691         (SRC): Likewise.
6692         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
6693         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
6694         "bp-asm.h".
6695         (PARMS): Do not use macros from bp-asm.h.
6696         (strlen): Do not use BP_SYM.
6697         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
6698         "bp-asm.h".
6699         (PARMS): Do not use macros from bp-asm.h.
6700         (S1): Likewise.
6701         (S2): Likewise.
6702         (SIZE): Likewise.
6703         (__mpn_add_n): Do not use BP_SYM.
6704         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
6705         "bp-asm.h".
6706         (PARMS): Do not use macros from bp-asm.h.
6707         (S1): Likewise.
6708         (SIZE): Likewise.
6709         (__mpn_addmul_1): Do not use BP_SYM.
6710         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
6711         weak_alias.
6712         (bzero): Likewise.
6713         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
6714         "bp-asm.h".
6715         (PARMS): Do not use macros from bp-asm.h.
6716         (S): Likewise.
6717         (SIZE): Likewise.
6718         (__mpn_lshift): Do not use BP_SYM.
6719         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
6720         "bp-asm.h".
6721         (PARMS): Do not use macros from bp-asm.h.
6722         (DEST): Likewise.
6723         (SRC): Likewise.
6724         (LEN): Likewise.
6725         (memcpy): Likewise.  Do not use BP_SYM.
6726         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
6727         libc_hidden_def and weak_alias.
6728         (mempcpy): Do not use BP_SYM in weak_alias.
6729         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
6730         "bp-asm.h".
6731         (PARMS): Do not use macros from bp-asm.h.
6732         (DEST): Likewise.
6733         (LEN): Likewise.
6734         [!BZERO_P] (CHR): Likewise.
6735         (memset): Likewise.  Do not use BP_SYM.
6736         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
6737         "bp-asm.h".
6738         (PARMS): Do not use macros from bp-asm.h.
6739         (S1): Likewise.
6740         (SIZE): Likewise.
6741         (__mpn_mul_1): Do not use BP_SYM.
6742         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
6743         "bp-asm.h".
6744         (PARMS): Do not use macros from bp-asm.h.
6745         (S): Likewise.
6746         (SIZE): Likewise.
6747         (__mpn_rshift): Do not use BP_SYM.
6748         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
6749         "bp-asm.h".
6750         (PARMS): Do not use macros from bp-asm.h.
6751         (STR): Likewise.
6752         (CHR): Likewise.
6753         (strchr): Likewise.  Do not use BP_SYM.
6754         (index): Do not use BP_SYM in weak_alias.
6755         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
6756         "bp-asm.h".
6757         (PARMS): Do not use macros from bp-asm.h.
6758         (DEST): Likewise.
6759         (SRC): Likewise.
6760         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
6761         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
6762         "bp-asm.h".
6763         (PARMS): Do not use macros from bp-asm.h.
6764         (strlen): Do not use BP_SYM.
6765         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
6766         "bp-asm.h".
6767         (PARMS): Do not use macros from bp-asm.h.
6768         (S1): Likewise.
6769         (S2): Likewise.
6770         (SIZE): Likewise.
6771         (__mpn_sub_n): Do not use BP_SYM.
6772         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
6773         "bp-asm.h".
6774         (PARMS): Do not use macros from bp-asm.h.
6775         (S1): Likewise.
6776         (SIZE): Likewise.
6777         (__mpn_submul_1): Do not use BP_SYM.
6778         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
6779         "bp-asm.h".
6780         (PARMS): Do not use macros from bp-asm.h.
6781         (S1): Likewise.
6782         (S2): Likewise.
6783         (SIZE): Likewise.
6784         (__mpn_add_n): Do not use BP_SYM.
6785         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
6786         weak_alias.
6787         (bzero): Likewise.
6788         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
6789         "bp-asm.h".
6790         (PARMS): Do not use macros from bp-asm.h.
6791         (BLK2): Likewise.
6792         (LEN): Likewise.
6793         (memcmp): Do not use BP_SYM.
6794         (bcmp): Do not use BP_SYM in weak_alias.
6795         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
6796         "bp-asm.h".
6797         (PARMS): Do not use macros from bp-asm.h.
6798         (DEST): Likewise.
6799         (SRC): Likewise.
6800         (LEN): Likewise.
6801         (memcpy): Likewise.  Do not use BP_SYM.
6802         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
6803         "bp-asm.h".
6804         (PARMS): Do not use macros from bp-asm.h.
6805         (DEST): Likewise.
6806         (SRC): Likewise.
6807         (LEN): Likewise.
6808         (memmove): Likewise.  Do not use BP_SYM.
6809         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
6810         "bp-asm.h".
6811         (PARMS): Do not use macros from bp-asm.h.
6812         (DEST): Likewise.
6813         (SRC): Likewise.
6814         (LEN): Likewise.
6815         (__mempcpy): Likewise.  Do not use BP_SYM.
6816         (mempcpy): Do not use BP_SYM in weak_alias.
6817         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
6818         "bp-asm.h".
6819         (PARMS): Do not use macros from bp-asm.h.
6820         (DEST): Likewise.
6821         (LEN): Likewise.
6822         [!BZERO_P] (CHR): Likewise.
6823         (memset): Likewise.  Do not use BP_SYM.
6824         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
6825         "bp-asm.h".
6826         (PARMS): Do not use macros from bp-asm.h.
6827         (STR2): Likewise.
6828         (strcmp): Do not use BP_SYM.
6829         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
6830         "bp-asm.h".
6831         (PARMS): Do not use macros from bp-asm.h.
6832         (STR): Likewise.
6833         (DELIM): Likewise.
6834         [USE_AS_STRTOK_R] (SAVE): Likewise.
6835         (FUNCTION): Likewise.  Do not use BP_SYM.
6836         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
6837         aliases.
6838         (strtok_r): Likewise.
6839         (__GI___strtok_r): Likewise.
6840         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
6841         (PARMS): Do not use macros from bp-asm.h.
6842         (S): Likewise.
6843         (SIZE): Likewise.
6844         (__mpn_lshift): Do not use BP_SYM.
6845         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
6846         (PARMS): Do not use macros from bp-asm.h.
6847         (STR): Likewise.
6848         (CHR): Likewise.
6849         (__memchr): Do not use BP_SYM.
6850         (memchr): Do not use BP_SYM in weak_alias.
6851         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
6852         (PARMS): Do not use macros from bp-asm.h.
6853         (BLK2): Likewise.
6854         (LEN): Likewise.
6855         (memcmp): Do not use BP_SYM.
6856         (bcmp): Do not use BP_SYM in weak_alias.
6857         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
6858         (PARMS): Do not use macros from bp-asm.h.
6859         (S1): Likewise.
6860         (SIZE): Likewise.
6861         (__mpn_mul_1): Do not use BP_SYM.
6862         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
6863         "bp-asm.h".
6864         (PARMS): Do not use macros from bp-asm.h.
6865         (STR): Likewise.
6866         (CHR): Likewise.
6867         (__rawmemchr): Do not use BP_SYM.
6868         (rawmemchr): Do not use BP_SYM in weak_alias.
6869         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
6870         (PARMS): Do not use macros from bp-asm.h.
6871         (S): Likewise.
6872         (SIZE): Likewise.
6873         (__mpn_rshift): Do not use BP_SYM.
6874         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
6875         (PARMS): Do not use macros from bp-asm.h.
6876         (SIGMSK): Likewise.
6877         (__sigsetjmp): Likewise.  Do not use BP_SYM.
6878         * sysdeps/i386/start.S: Do not include "bp-sym.h".
6879         (_start): Do not use BP_SYM.
6880         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
6881         (PARMS): Do not use macros from bp-asm.h.
6882         (DEST): Likewise.
6883         (SRC): Likewise.
6884         (__stpcpy): Likewise.  Do not use BP_SYM.
6885         (stpcpy): Do not use BP_SYM in weak_alias.
6886         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
6887         "bp-asm.h".
6888         (PARMS): Do not use macros from bp-asm.h.
6889         (DEST): Likewise.
6890         (SRC): Likewise.
6891         (LEN): Likewise.
6892         (__stpncpy): Likewise.  Do not use BP_SYM.
6893         (stpncpy): Do not use BP_SYM in weak_alias.
6894         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
6895         (PARMS): Do not use macros from bp-asm.h.
6896         (STR): Likewise.
6897         (CHR): Likewise.
6898         (strchr): Likewise.  Do not use BP_SYM.
6899         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
6900         "bp-asm.h".
6901         (PARMS): Do not use macros from bp-asm.h.
6902         (STR): Likewise.
6903         (CHR): Likewise.
6904         (__strchrnul): Likewise.  Do not use BP_SYM.
6905         (strchrnul): Do not use BP_SYM in weak_alias.
6906         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
6907         "bp-asm.h".
6908         (PARMS): Do not use macros from bp-asm.h.
6909         (STOP): Likewise.
6910         (strcspn): Do not use BP_SYM.
6911         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
6912         "bp-asm.h".
6913         (PARMS): Do not use macros from bp-asm.h.
6914         (STR): Likewise.
6915         (STOP): Likewise.
6916         (strpbrk): Likewise.  Do not use BP_SYM.
6917         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
6918         "bp-asm.h".
6919         (PARMS): Do not use macros from bp-asm.h.
6920         (STR): Likewise.
6921         (CHR): Likewise.
6922         (strrchr): Likewise.  Do not use BP_SYM.
6923         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
6924         (PARMS): Do not use macros from bp-asm.h.
6925         (SKIP): Likewise.
6926         (strspn): Do not use BP_SYM.
6927         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
6928         (PARMS): Do not use macros from bp-asm.h.
6929         (STR): Likewise.
6930         (DELIM): Likewise.
6931         (SAVE): Likewise.
6932         (FUNCTION): Likewise.  Do not use BP_SYM.
6933         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
6934         aliases.
6935         (strtok_r): Likewise.
6936         (__GI___strtok_r): Likewise.
6937         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
6938         (PARMS): Do not use macros from bp-asm.h.
6939         (S1): Likewise.
6940         (S2): Likewise.
6941         (SIZE): Likewise.
6942         (__mpn_sub_n): Do not use BP_SYM.
6943         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
6944         "bp-asm.h".
6945         (PARMS): Do not use macros from bp-asm.h.
6946         (S1): Likewise.
6947         (SIZE): Likewise.
6948         (__mpn_submul_1): Do not use BP_SYM.
6949         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
6950         <bp-sym.h>.
6951         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
6952         and <bp-asm.h>.
6953         (PARMS): Do not use macros from bp-asm.h.
6954         (FLAGS): Likewise.
6955         (PTID): Likewise.
6956         (TLS): Likewise.
6957         (CTID): Likewise.
6958         (__clone): Do not use BP_SYM.
6959         (clone): Do not use BP_SYM in weak_alias.
6960         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
6961         and <bp-asm.h>.
6962         (PARMS): Do not use macros from bp-asm.h.
6963         (LEN): Likewise.
6964         (__mmap64): Do not use BP_SYM.
6965         (mmap64): Do not use BP_SYM in weak_alias.
6966         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
6967         <bp-sym.h> and <bp-asm.h>.
6968         (PARMS): Do not use macros from bp-asm.h.
6969         (__posix_fadvise64_l64): Do not use BP_SYM.
6970         * sysdeps/unix/sysv/linux/i386/semtimedop.S
6971         (PARMS): Do not use macros from bp-asm.h.
6972         (NSOPS): Likewise.
6973         (semtimedop): Do not use BP_SYM.
6974         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
6975         and <bp-asm.h>.
6976
6977 2013-02-21  Allan McRae  <allan@archlinux.org>
6978
6979         * manual/message.texi (Charset conversion in gettext):
6980         Move @end statement to beginning of line.
6981
6982 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6983
6984         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
6985         static.
6986         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
6987         Likewise.
6988
6989         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
6990         (denorm): Likewise.
6991         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
6992         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
6993
6994 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6995
6996         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
6997         tail-call to the resolved function if pltexit isn't needed.
6998
6999 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7000
7001         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
7002         or Y being zero as being unlikely.
7003         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7004         Likewise.
7005
7006 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
7007
7008         * manual/nss.texi (System Databases and Name Service Switch):
7009         Remove frobnicate @pxref.
7010
7011 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
7012
7013         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
7014         __attribute__ ((unused)) to __attribute__ ((__unused__)).
7015
7016 2013-02-20  Petr Machata  <pmachata@redhat.com>
7017
7018         * elf/elf.h (R_ARM_TARGET1): New macro.
7019         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
7020         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
7021         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
7022         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
7023         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
7024         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
7025         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
7026         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
7027         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
7028         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
7029         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
7030         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
7031         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
7032         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
7033         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
7034         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
7035         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
7036         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
7037         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
7038         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
7039         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
7040         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
7041         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
7042         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
7043         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
7044         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
7045         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
7046         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
7047         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
7048         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
7049         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
7050         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
7051         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
7052         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
7053         (R_ARM_THM_GOT_BREL12): Likewise.
7054         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
7055         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
7056         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
7057         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
7058         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
7059         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
7060         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
7061         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
7062         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
7063
7064 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
7065
7066         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
7067         __attribute_used__ to __attribute__ ((unused)).
7068
7069 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7070
7071         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
7072         powerpc mpa.c.
7073         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
7074         comment formatting.
7075         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
7076
7077 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
7078
7079         [BZ #13550]
7080         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
7081         Remove macro.
7082         (ENTER): Remove both macro definitions.
7083         (LEAVE): Likewise.
7084         (CHECK_BOUNDS_LOW): Likewise.
7085         (CHECK_BOUNDS_HIGH): Likewise.
7086         (CHECK_BOUNDS_BOTH): Likewise.
7087         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
7088         (RETURN_BOUNDED_POINTER): Likewise.
7089         (RETURN_NULL_BOUNDED_POINTER): Likewise.
7090         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
7091         (POP_ERRNO_LOCATION_RETURN): Likewise.
7092         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
7093         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7094         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
7095         macros.
7096         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7097         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
7098         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
7099         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
7100         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
7101         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
7102         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
7103         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
7104         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
7105         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
7106         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
7107         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
7108         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7109         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
7110         removed macros.
7111         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7112         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
7113         macros.
7114         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7115         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
7116         * sysdeps/i386/i586/memset.S (memset): Likewise.
7117         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
7118         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7119         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
7120         macros.
7121         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7122         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
7123         Change uses of L(2) to L(out).
7124         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
7125         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
7126         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
7127         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7128         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
7129         removed macros.
7130         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7131         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
7132         macros.
7133         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7134         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
7135         (RETURN): Do not use macro LEAVE.
7136         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
7137         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
7138         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
7139         * sysdeps/i386/i686/memset.S (memset): Likewise.
7140         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
7141         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
7142         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7143         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
7144         Likewise.
7145         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7146         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
7147         L(1_2) and L(1_3) into L(1).
7148         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
7149         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
7150         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7151         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
7152         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7153         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
7154         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
7155         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7156         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
7157         macros.
7158         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
7159         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7160         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
7161         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
7162         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
7163         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7164         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
7165         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
7166         * sysdeps/i386/strcspn.S (strcspn): Likewise.
7167         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
7168         * sysdeps/i386/strrchr.S (strrchr): Likewise.
7169         * sysdeps/i386/strspn.S (strspn): Likewise.
7170         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
7171         conditional code.
7172         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7173         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
7174         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
7175         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
7176         L(1_3) into L(1_1).
7177         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
7178         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7179         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
7180         macros.
7181         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7182
7183 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
7186         macro.
7187
7188 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7189
7190         * math/atest-exp.c (exp_mpn): Remove ROUND.
7191         * math/atest-exp2.c (exp_mpn): Likewise.
7192         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
7193
7194         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
7195         * stdlib/tst-tls-atexit-lib.c: Likewise.
7196         * stdlib/tst-tls-atexit.c: Likewise.
7197
7198 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
7199
7200         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
7201         and __attribute_alloc_size__.
7202
7203 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
7204
7205         * include/programs/xmalloc.h: Change __attribute_alloc_size to
7206         __attribute_alloc_size__.
7207         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
7208         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
7209
7210 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
7211
7212         * include/programs/xmalloc.h: New file.
7213         * catgets/gencat.c: Include it.
7214         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
7215         * elf/pldd.c: Likewise.
7216         * iconv/iconv_charmap.c: Likewise.
7217         * iconv/iconvconfig.c: Likewise.
7218         * iconv/strtab.c: Likewise.
7219         * locale/programs/locale.c: Likewise.
7220         * locale/programs/localedef.h: Likewise.
7221         * locale/programs/simple-hash.c: Likewise.
7222         * nscd/nscd.h: Likewise.
7223         * nss/makedb.c: Likewise.
7224         * sysdeps/generic/ldconfig.h: Likewise.
7225
7226 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7227
7228         * Versions.def: Add GLIBC_2.18.
7229         * include/link.h (struct link_map): New member l_tls_dtor_count.
7230         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
7231         (__call_tls_dtors): Likewise.
7232         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
7233         __cxa_thread_atexit_impl.
7234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7235         Likewise.
7236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7237         Likewise.
7238         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
7239         Likewise.
7240         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
7241         Likewise.
7242         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
7243         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
7244         Likewise.
7245         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
7246         Likewise.
7247         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
7248         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7249         Likewise.
7250         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
7251         (tests): Add test case tst-tls-atexit.
7252         (modules-names): Add shared library for tst-tls-atexit.
7253         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
7254         (GLIBC_PRIVATE): Add __call_tls_dtors.
7255         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
7256         for libstdc++.
7257         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
7258         * stdlib/tst-tls-atexit.c: New test case.
7259         * stdlib/tst-tls-atexit-lib.c: New test case.
7260
7261         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
7262
7263         * elf/Versions (ld): Add _dl_find_dso_for_object.
7264         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
7265         * elf/dl-open.c (_dl_find_dso_for_object): New function.
7266         (dl_open_worker): Use _dl_find_dso_for_object.
7267         * elf/dl-sym.c (do_sym): Likewise.
7268         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
7269
7270 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7271
7272         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
7273         Syntactic changes only.
7274         (_dl_runtime_profile): Do a tail-call to the resolved function.
7275
7276 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
7277
7278         [BZ #13550]
7279         * sysdeps/x86_64/bp-asm.h: Remove file.
7280         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
7281         <bp-sym.h> and <bp-asm.h>.
7282         (__clone): Do not use BP_SYM.
7283         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
7284         <bp-sym.h> and <bp-asm.h>.
7285         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7286         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
7287         "bp-asm.h".
7288         (_setjmp): Do not use BP_SYM.
7289         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
7290         "bp-asm.h".
7291         (setjmp): Do not use BP_SYM.
7292         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
7293         libc_hidden_def.
7294         (mempcpy): Do not use BP_SYM in weak_alias.
7295         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
7296         "bp-asm.h".
7297         (strchr): Do not use BP_SYM.
7298         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
7299         "bp-asm.h".
7300         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
7301         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
7302         (_start): Do not use BP_SYM.
7303         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
7304         "bp-asm.h".
7305         (strcat): Do not use BP_SYM.
7306         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
7307         "bp-asm.h".
7308         (STRCMP): Do not use BP_SYM.
7309         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
7310         "bp-asm.h".
7311         (STRCPY): Do not use BP_SYM.
7312         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
7313         "bp-asm.h".
7314         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
7315         "bp-asm.h".
7316         (FUNCTION): Do not use BP_SYM.
7317         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
7318         weak_alias.
7319         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
7320
7321 2013-02-17  Andreas Jaeger  <aj@suse.de>
7322
7323         * time/Versions: Sort entries.
7324         * string/Versions: Likewise.
7325         * resolv/Versions: Likewise.
7326         * posix/Versions: Likewise.
7327         * iconv/Versions: Likewise.
7328         * elf/Versions: Likewise.
7329         * wcsmbs/Versions: Likewise.
7330
7331 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7332
7333         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
7334         loop termination condition.
7335
7336         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
7337         variable to calculate EZ.
7338         (__sqr): Likewise.
7339
7340         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
7341         the lower precision input.
7342
7343 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
7344
7345         [BZ #13550]
7346         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
7347         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
7348         (run-via-rtld-prefix): Do not handle %-bp tests.
7349         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
7350         (all-object-suffixes): Remove .ob.
7351         (bppfx): Remove variable.
7352         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
7353         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
7354         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
7355         [$(build-bounded) = yes] (libtype.ob): Likewise.
7356         * Makerules (elide-routines.ob): Remove variable.
7357         (do-tests-clean): Do not handle *-bp.out.
7358         (common-mostlyclean): Do not handle *-bp and *-bp.out.
7359         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
7360         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
7361         (tests): Do not include $(tests-bp.out).
7362         (xtests): Do not include $(xtests-bp.out).
7363         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
7364         [$(build-bounded) = yes] ($(addprefix
7365         $(objpfx),$(binaries-bounded))): Remove rule.
7366         ($(objpfx)%-bp.out): Remove rule.
7367         * config.make.in (build-bounded): Remove variable.
7368         * crypt/Makefile [$(build-bounded) = yes]
7369         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
7370         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
7371         append to variable.
7372         [$(build-bounded) = yes] (install-lib): Likewise.
7373         [$(build-bounded) = yes] (generated): Likewise.
7374         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
7375         Remove rule.
7376         * intl/Makefile [$(build-bounded) = yes]
7377         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
7378         * math/Makefile [$(build-bounded) = yes]
7379         ($(tests:%=$(objpfx)%-bp): Likewise.
7380         * misc/Makefile [$(build-bounded) = yes]
7381         ($(objpfx)tst-tsearch-bp): Likewise.
7382         * nptl/Makeconfig (bounded-thread-library): Remove variable.
7383         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
7384         Remove dependency.
7385         * string/Makefile (o-objects.ob): Remove variable.
7386         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
7387         (CFLAGS-.ob): Remove variable.
7388         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
7389         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
7390         both definitions of variable.
7391         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
7392         (ASFLAGS-.ob): Remove variable.
7393
7394 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
7395
7396         [BZ #13550]
7397         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
7398         Remove __BOUNDED_POINTERS__ from condition.
7399         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
7400         * string/bits/string2.h [!__NO_STRING_INLINES &&
7401         !__BOUNDED_POINTERS__]: Likewise.
7402         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
7403         Likewise.
7404         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
7405         Remove conditional code.
7406         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
7407         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
7408         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
7409         condition.
7410
7411         [BZ #13550]
7412         * csu/libc-start.c: Do not include <bp-sym.h>.
7413         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
7414         * elf/dl-open.c: Do not include <bp-sym.h>.
7415         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
7416         * math/fegetenv.c: Do not include <bp-sym.h>.
7417         (fegetenv): Do not use BP_SYM in versioned symbols.
7418         * nptl/sysdeps/pthread/bits/libc-lockP.h
7419         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
7420         <bp-sym.h>.
7421         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7422         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
7423         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7424         (__pthread_mutex_destroy): Likewise.
7425         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7426         (__pthread_mutex_lock): Likewise.
7427         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7428         (__pthread_mutex_trylock): Likewise.
7429         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7430         (__pthread_mutex_unlock): Likewise.
7431         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7432         (__pthread_mutexattr_init): Likewise.
7433         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7434         (__pthread_mutexattr_destroy): Likewise.
7435         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7436         (__pthread_mutexattr_settype): Likewise.
7437         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7438         (__pthread_rwlock_init): Likewise.
7439         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7440         (__pthread_rwlock_destroy): Likewise.
7441         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7442         (__pthread_rwlock_rdlock): Likewise.
7443         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7444         (__pthread_rwlock_tryrdlock): Likewise.
7445         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7446         (__pthread_rwlock_wrlock): Likewise.
7447         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7448         (__pthread_rwlock_trywrlock): Likewise.
7449         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7450         (__pthread_rwlock_unlock): Likewise.
7451         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7452         (__pthread_key_create): Likewise.
7453         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7454         (__pthread_setspecific): Likewise.
7455         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7456         (__pthread_getspecific): Likewise.
7457         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
7458         Likewise.
7459         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7460         (_pthread_cleanup_push_defer): Likewise.
7461         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7462         (_pthread_cleanup_pop_restore): Likewise.
7463         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7464         (pthread_setcancelstate): Likewise.
7465         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
7466         <bp-sym.h>.
7467         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
7468         (memchr): Do not use BP_SYM in weak_alias.
7469         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
7470         (fegetenv): Do not use BP_SYM in versioned symbols.
7471         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
7472         (fesetenv): Do not use BP_SYM in versioned symbols.
7473         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
7474         (feupdateenv): Do not use BP_SYM in versioned symbols.
7475         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
7476         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
7477         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
7478         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
7479         (open64): Do not use BP_SYM in weak_alias.
7480         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
7481         (fegetenv): Do not use BP_SYM in versioned symbols.
7482         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
7483         (fesetenv): Do not use BP_SYM in versioned symbols.
7484         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
7485         (feupdateenv): Do not use BP_SYM in versioned symbols.
7486         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
7487         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
7488         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
7489         (feraiseexcept): Do not use BP_SYM in versioned symbols.
7490         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
7491         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
7492         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
7493         <bp-sym.h>.
7494         (__libc_start_main): Do not use BP_SYM.
7495
7496 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7497
7498         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
7499         redundant return line.
7500         (norm): Likewise.
7501         (denorm): Likewise.
7502         (dbl_mp): Likewise.
7503         (sub_magnitudes): Likewise.
7504         (__add): Likewise.
7505         (__sub): Likewise.
7506         (__mul): Likewise.
7507         (__inv): Likewise.
7508         (__dvd): Likewise.
7509         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
7510         (norm): Likewise.
7511         (denorm): Likewise.
7512         (dbl_mp): Likewise.
7513         (sub_magnitudes): Likewise.
7514         (__add): Likewise.
7515         (__sub): Likewise.
7516         (__mul): Likewise.
7517         (__inv): Likewise.
7518         (__dvd): Likewise.
7519
7520         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
7521         instead of __mul.
7522         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
7523         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
7524         (cc32): Likewise.
7525
7526         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
7527         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
7528         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
7529         of __mul for squares.
7530         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
7531         function
7532         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
7533         Likewise.
7534         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
7535         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7536
7537 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
7538
7539         [BZ #13550]
7540         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
7541         code.
7542         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
7543         prototype or function definition.  Rename ubp_* variables and
7544         parameters.  Remove argv definitions conditional on
7545         [__BOUNDED_POINTERS__].
7546         * debug/backtrace.c (__backtrace): Do not use __unbounded.
7547         * elf/dl-runtime.c (_dl_fixup): Likewise.
7548         * include/set-hooks.h (RUN_HOOK): Likewise.
7549         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
7550         definition.
7551         * string/strcpy.c (strcpy): Do not use __unbounded.
7552         * sysdeps/generic/frame.h (struct layout): Likewise.
7553         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
7554         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
7555         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
7556         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
7557         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
7558         (__backtrace): Likewise.
7559         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
7560         use __ptrvalue.
7561         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
7562         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
7563         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7564         Likewise.
7565         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7566         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
7567         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7568         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7569         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
7570         Do not use __unbounded.
7571         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
7572         Rename __unboundedrlimits parameter to rlimits in prototype.
7573         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
7574         Do not use __unbounded.
7575         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
7576         not use __ptrvalue.
7577         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7578         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
7579         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
7580         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
7581         __ptrvalue or __unbounded.
7582         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
7583         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
7584         use __unbounded.
7585         (__new_msgctl): Do not use __ptrvalue.
7586         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
7587         __unbounded.
7588         (__libc_msgrcv): Do not use __ptrvalue.
7589         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
7590         startup_info): Do not use __unbounded.
7591         (__libc_start_main): Likewise.  Rename ubp_* variables and
7592         parameters.  Remove argv definitions conditional on
7593         [__BOUNDED_POINTERS__].
7594         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
7595         __ptrvalue.
7596         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
7597         use __unbounded.
7598         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
7599         or __ptrvalue.
7600         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
7601         use __unbounded.
7602         (__new_shmctl): Do not use __ptrvalue.
7603         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
7604         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
7605         Likewise.
7606         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
7607         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
7608         (__libc_sigaction): Likewise.
7609         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
7610         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
7611         Likewise.
7612         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
7613
7614 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
7615
7616         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
7617
7618         * string/mempcpy.c: Implement by calling memcpy.
7619
7620 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7621
7622         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
7623
7624         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
7625         evaluation.
7626
7627         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
7628         values in the mantissa.
7629
7630         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
7631         minimize writes to Z.
7632         (sub_magnitudes): Simplify code a bit.
7633
7634 2013-02-12  Roland McGrath  <roland@hack.frob.com>
7635
7636         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
7637         from the message.  The linker prefixes all warnings with that already.
7638
7639 2013-02-12  Andreas Schwab  <schwab@suse.de>
7640
7641         [BZ #15078]
7642         * posix/regexec.c (extend_buffers): Add parameter min_len.
7643         (check_matching): Pass minimum needed length.
7644         (clean_state_log_if_needed): Likewise.
7645         (get_subexp): Likewise.
7646         * posix/Makefile (tests): Add bug-regex34.
7647         (bug-regex34-ENV): Define.
7648         * posix/bug-regex34.c: New file.
7649
7650         [BZ #11561]
7651         * posix/regcomp.c (parse_bracket_exp): When looking up collating
7652         elements compare against the byte sequence of it, not its name.
7653         * posix/Makefile (tests): Add bug-regex35.
7654         (bug-regex35-ENV): Define.
7655         * posix/bug-regex35.c: New file.
7656
7657 2013-02-11  Tom de Vries  <tom@codesourcery.com>
7658
7659         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
7660         comment.
7661         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
7662         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
7663         (CHECK_EOL): Add undef.
7664
7665 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
7666
7667         * bits/stdlib-bsearch.h: New file.
7668         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
7669         * stdlib/stdlib.h: Likewise.
7670
7671 2013-02-11  Roland McGrath  <roland@hack.frob.com>
7672
7673         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
7674         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
7675         declaration.
7676         * manual/search.texi (Array Search Function): Add missing const in
7677         lfind prototype.
7678         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
7679         declaration to use rlim_t.
7680         (Basic Scheduling Functions): Remove erroneous const from
7681         sched_getparam prototype.  Remove erroneous * from
7682         sched_get_priority_max and sched_get_priority_min prototypes.
7683         (Resource Usage): Fix summary @comment on vtimes to refer to
7684         sys/vtimes.h rather than vtimes.h.
7685         Add missing *s in vtimes prototype.
7686         (Limits on Resources): Fix ulimit prototype to return long int.
7687         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
7688         prototypes to use long int rather than double.
7689         (BSD Random): Fix initstate and setstate to use char *, not void *.
7690         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
7691         prototype to make second argument 'struct aiocb64 *const[]'.
7692         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
7693         (Status of AIO Operations): Remove erroneous const in aio_return and
7694         aio_return64 prototypes.
7695         (Synchronizing I/O): Fix sync prototype to return void.
7696         * manual/startup.texi (Suboptions): Remove an erroneous const in
7697         getsubopt prototype.
7698         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
7699         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
7700         use size_t rather than int.
7701         (Scanning All Users): Likewise for getpwent_r.
7702         (Setting Groups): Add missing const to setgroups prototype.
7703         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
7704         * manual/socket.texi (Host Names): Fix gethostbyaddr and
7705         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
7706         'const void *' rather than 'const char *'.
7707         (Host Address Functions): Likewise for inet_ntop.
7708         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
7709         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
7710         ssize_t for return value.
7711         (Sending Data): Likewise for send, sendto, sendmsg.
7712         (Socket Option Functions): Add a missing const in setsockopt prototype.
7713         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
7714         use wchar_t for the argument.
7715         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
7716         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
7717         take no arguments.
7718         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
7719         double/float/long double for second argument.
7720         Fix return types of significand, significandf, significandl.
7721         * manual/filesys.texi (Setting Permissions): Use mode_t for second
7722         argument in fchmod prototype.
7723         (File Owner): Use uid_t and gid_t in fchown prototype.
7724         (File Times): Add const to utimes, futimes, and lutimes prototypes.
7725         (Making Special Files): Use mode_t and dev_t in mknod prototype.
7726         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
7727         use 'const struct dirent **' as argument types to CMP function pointer
7728         argument.
7729         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
7730         (File Times): Fix summary magic @comment for struct utimbuf and utime
7731         to refer to utime.h, not time.h.
7732         * manual/string.texi (Argz Functions): Add missing const in
7733         argz_extract and argz_next prototypes.
7734         (Finding Tokens in a String): Likewise for basename.
7735         (String/Array Comparison): Fix typo in wcscasecmp prototype.
7736         (Copying and Concatenation): Fix typo in wmemmove prototype.
7737         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
7738         (Signal Stack): Remove erroneous const in sigstack prototype.
7739         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
7740         prototype.
7741         (Simple Calendar Time): Likewise for stime.
7742         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
7743         prototype.
7744         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
7745         say sys/sysctl.h instead.
7746         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
7747         and vsyslog prototypes.
7748
7749 2013-02-11  Tom de Vries  <tom@codesourcery.com>
7750
7751         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
7752         Remove.
7753
7754 2013-02-11  Roland McGrath  <roland@hack.frob.com>
7755
7756         * misc/sys/mman.h: Fix typo in mremap comment.
7757
7758 2013-02-08  Roland McGrath  <roland@hack.frob.com>
7759
7760         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
7761         the '\0' terminator.
7762
7763 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
7764
7765         [BZ #13550]
7766         * debug/segfault.c: Don't include <bp-checks.h>.
7767         * sysdeps/generic/bp-checks.h: Remove file.
7768         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
7769         (__GETDENTS): Don't use CHECK_N.
7770         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
7771         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
7772         (__getgroups): Don't use CHECK_N.
7773         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7774         (setgroups): Don't use CHECK_N.
7775         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
7776         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
7777         (__libc_msgrcv): Don't use CHECK_N.
7778         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
7779         (__libc_msgsnd): Don't use CHECK_N.
7780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
7781         <bp-checks.h>.
7782         (__libc_pread): Don't use CHECK_N.
7783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
7784         include <bp-checks.h>.
7785         (__libc_pread64): Don't use CHECK_N.
7786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
7787         include <bp-checks.h>.
7788         (__libc_pwrite): Don't use CHECK_N.
7789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
7790         include <bp-checks.h>.
7791         (__libc_pwrite64): Don't use CHECK_N.
7792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
7793         <bp-checks.h>.
7794         (__libc_pread): Don't use CHECK_N.
7795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
7796         include <bp-checks.h>.
7797         (__libc_pread64): Don't use CHECK_N.
7798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
7799         include <bp-checks.h>.
7800         (__libc_pwrite): Don't use CHECK_N.
7801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
7802         include <bp-checks.h>.
7803         (__libc_pwrite64): Don't use CHECK_N.
7804         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
7805         (do_pread): Don't use CHECK_N.
7806         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
7807         (do_pread64): Don't use CHECK_N.
7808         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
7809         (do_pwrite): Don't use CHECK_N.
7810         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
7811         (do_pwrite64): Don't use CHECK_N.
7812         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
7813         (__libc_readv): Don't use CHECK_N.
7814         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
7815         (semop): Don't use CHECK_N.
7816         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
7817         <bp-checks.h>.
7818         (semtimedop): Don't use CHECK_N.
7819         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
7820         (__libc_pread): Don't use CHECK_N.
7821         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
7822         <bp-checks.h>.
7823         (__libc_pread64): Don't use CHECK_N.
7824         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
7825         <bp-checks.h>.
7826         (__libc_pwrite): Don't use CHECK_N.
7827         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
7828         <bp-checks.h>.
7829         (__libc_pwrite64): Don't use CHECK_N.
7830         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
7831         <bp-checks.h>.
7832         (__libc_msgrcv): Don't use CHECK_N.
7833         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
7834         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
7835         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
7836         (__libc_writev): Don't use CHECK_N.
7837
7838 2013-02-08  Roland McGrath  <roland@hack.frob.com>
7839
7840         * string/strcpy.c: Removed unused variable.
7841
7842         * Makeconfig (+sysdep-includes): Define with := rather than =.
7843         Use an existing include/ subdir of each sysdeps dir before it.
7844
7845 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
7846
7847         * nscd/connection.c (register_traced_file): Comment function.
7848         [HAVE_INOTIFY] (union __inev): Define.
7849         [HAVE_INOTIFY] (inotify_check_files): New function.
7850         [HAVE_INOTIFY] (clear_db_cache): Likewise.
7851         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
7852         clear_db_cache.
7853         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
7854
7855 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
7856
7857         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
7858         loaded if not already and that a failure is permanent.
7859
7860 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
7861
7862         [BZ #15006]
7863         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
7864         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
7865
7866 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
7867
7868         [BZ #13550]
7869         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
7870         (CHECK_1_NULL_OK): Likewise.
7871         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
7872         (__fxstat): Do not use CHECK_1.
7873         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
7874         <bp-checks.h>.
7875         (___fxstat64): Do not use CHECK_1.
7876         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
7877         <bp-checks.h>.
7878         (__fxstatat): Do not use CHECK_1.
7879         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
7880         <bp-checks.h>.
7881         (__fxstatat64): Do not use CHECK_1.
7882         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
7883         <bp-checks.h>.
7884         (__fxstat): Do not use CHECK_1.
7885         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
7886         <bp-checks.h>.
7887         (__fxstatat): Do not use CHECK_1.
7888         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
7889         <bp-checks.h>.
7890         (__getresgid): Do not use CHECK_1.
7891         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
7892         <bp-checks.h>.
7893         (__getresuid): Do not use CHECK_1.
7894         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
7895         <bp-checks.h>.
7896         (__lxstat): Do not use CHECK_1.
7897         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
7898         <bp-checks.h>.
7899         (__old_msgctl): Do not use CHECK_1.
7900         (__new_msgctl): Likewise.
7901         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
7902         <bp-checks.h>.
7903         (__new_setrlimit): Do not use CHECK_1.
7904         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
7905         <bp-checks.h>.
7906         (__old_shmctl): Do not use CHECK_1.
7907         (__new_shmctl): Likewise.
7908         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
7909         <bp-checks.h>.
7910         (__xstat): Do not use CHECK_1.
7911         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
7912         (__lxstat): Do not use CHECK_1.
7913         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
7914         <bp-checks.h>.
7915         (___lxstat64): Do not use CHECK_1.
7916         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
7917         (__old_msgctl): Do not use CHECK_1.
7918         (__new_msgctl): Likewise.
7919         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
7920         <bp-checks.h>.
7921         (__gettimeofday): Do not use CHECK_1.
7922         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
7923         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
7924         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
7925         <bp-checks.h>.
7926         (__gettimeofday): Do not use CHECK_1.
7927         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
7928         (__old_shmctl): Do not use CHECK_1_NULL_OK.
7929         (__new_shmctl): Do not use CHECK_1.
7930         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
7931         <bp-checks.h>.
7932         (do_sigtimedwait): Do not use CHECK_1.
7933         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
7934         <bp-checks.h>.
7935         (do_sigwaitinfo): Do not use CHECK_1.
7936         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
7937         <bp-checks.h>.
7938         (msgctl): Do not use CHECK_1.
7939         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
7940         <bp-checks.h>.
7941         (shmctl): Do not use CHECK_1.
7942         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
7943         (ustat): Do not use CHECK_1.
7944         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
7945         <bp-checks.h>.
7946         (__fxstat): Do not use CHECK_1.
7947         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
7948         <bp-checks.h>.
7949         (__fxstatat): Do not use CHECK_1.
7950         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
7951         <bp-checks.h>.
7952         (__lxstat): Do not use CHECK_1.
7953         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
7954         <bp-checks.h>.
7955         (__xstat): Do not use CHECK_1.
7956         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
7957         (__xstat): Do not use CHECK_1.
7958         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
7959         (___xstat64): Do not use CHECK_1.
7960
7961         [BZ #13550]
7962         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
7963         definitions.
7964         (CHECK_BOUNDS_HIGH): Likewise.
7965         * string/strcpy.c: Do not include <bp-checks.h>.
7966         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
7967
7968 2013-02-07  Roland McGrath  <roland@hack.frob.com>
7969
7970         * nscd/nscd-client.h (__nscd_drop_map_ref):
7971         Add __attribute__ ((unused)).
7972         * nis/nss-nisplus.h (niserr2nss): Likewise.
7973
7974         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
7975         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
7976
7977         * csu/libc-tls.c (init_static_tls, init_slotinfo):
7978         Remove inline keyword.
7979         * include/rounding-mode.h (round_away): Likewise.
7980         * libio/wfileops.c (adjust_wide_data): Likewise.
7981         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
7982         (__m128i_strloadu_tolower): Likewise.
7983         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
7984         (__m128i_strloadu_tolower): Likewise.
7985         * time/mktime.c (ydhms_diff): Likewise.
7986         * locale/elem-hash.h (elem_hash): Likewise.
7987         * locale/setlocale.c (setdata): Likewise.
7988         * posix/regex_internal.h (re_string_char_size_at): Likewise.
7989         (re_string_wchar_at): Likewise.
7990         (bitset_not, bitset_merge, bitset_mask): Likewise.
7991         [!(__GNUC__ > 3)] (inline): Remove macro.
7992         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
7993         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
7994         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
7995         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
7996         * string/memcmp.c (memcmp_bytes): Likewise.
7997         * locale/programs/locarchive.c (compute_hashval): Likewise.
7998         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
7999         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8000         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
8001         * nss/getent.c (print_rpc, print_protocols): Likewise.
8002         (print_passwd, print_group, print_aliases): Likewise.
8003         * nis/nss-nisplus.h (niserr2nss): Likewise.
8004         * nscd/connections.c (restart_p): Likewise.
8005         Change return type to bool.
8006
8007 2013-02-05  Roland McGrath  <roland@hack.frob.com>
8008
8009         * Makeconfig (all-Depend-files): Add existing
8010         $(sorted-subdirs:=/Depend) files.
8011         (all-subdirs): Remove nss.
8012         * sysdeps/unix/inet/Subdirs: Add it here instead.
8013         * hesiod/Depend: New file.
8014
8015         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
8016         instead of calling alloca.
8017
8018         * io/lseek.c (__lseek): Rename to __libc_lseek.
8019         Define __lseek as an alias.
8020
8021         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
8022
8023 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
8024
8025         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
8026         else clause and remove check for non-standard endianness.
8027
8028 2013-02-04  David S. Miller  <davem@davemloft.net>
8029
8030         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8031
8032 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
8033
8034         [BZ #13550]
8035         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
8036         (__ubp_memchr): Remove prototype.
8037         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
8038         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
8039         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
8040         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
8041         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
8042         Remove alias.
8043         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
8044         (__ubp_memchr): Likewise.
8045         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
8046         (__ubp_memchr): Likewise.
8047         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
8048         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
8049         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
8050         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
8051         CHECK_STRING.
8052         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8053         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
8054         (__getcwd): Do not use CHECK_STRING.
8055         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
8056         <bp-checks.h>.
8057         (__real_chown): Do not use CHECK_STRING.
8058         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
8059         <bp-checks.h>.
8060         (fchownat): Do not use CHECK_STRING.
8061         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
8062         CHECK_STRING.
8063         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
8064         <bp-checks.h>.
8065         (__lchown): Do not use CHECK_STRING.
8066         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8067         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8068         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
8069         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
8070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
8071         include <bp-checks.h>.
8072         (truncate64): Do not use CHECK_STRING.
8073         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
8074         <bp-checks.h>.
8075         (__real_chown): Do not use CHECK_STRING.
8076         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
8077         <bp-checks.h>.
8078         (__lchown): Do not use CHECK_STRING.
8079         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
8080         <bp-checks.h>.
8081         (__chown): Do not use CHECK_STRING.
8082         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
8083         <bp-checks.h>.
8084         (truncate64): Do not use CHECK_STRING.
8085         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
8086         Likewise.
8087         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
8088         (__xmknod): Do not use CHECK_STRING.
8089         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
8090         <bp-checks.h>.
8091         (__xmknodat): Do not use CHECK_STRING.
8092         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
8093         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
8094
8095 2013-02-04  Andreas Schwab  <schwab@suse.de>
8096
8097         [BZ #14142]
8098         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
8099         * include/netdb.h: Likewise for h_errno.
8100         * elf/tst-stackguard1.c: Include <tls.h>.
8101
8102 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8103
8104         * elf/link.h (struct link_map): Extend the l_addr comment.
8105         * include/link.h (struct link_map): Likewise.
8106
8107 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
8108
8109         [BZ #13550]
8110         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
8111         (BOUNDED_1): Remove macro.
8112         * debug/backtrace.c: Don't include <bp-checks.h>.
8113         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
8114         (__backtrace): Likewise.
8115         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
8116         <bp-checks.h>.
8117         (__backtrace): Don't use BOUNDED_1.
8118         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
8119         <bp-checks.h>.
8120         (__backtrace): Don't use BOUNDED_1.
8121         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
8122         (__backtrace): Don't use BOUNDED_1.
8123         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
8124         (shmat): Don't use BOUNDED_N.
8125
8126 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
8127
8128         [BZ #13550]
8129         * sysdeps/generic/bp-start.h: Remove file.
8130         * csu/libc-start.c: Don't include <bp-start.h>.
8131         (LIBC_START_MAIN): Set up __environ directly instead of using
8132         INIT_ARGV_and_ENVIRON.
8133         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
8134         <bp-start.h>.
8135
8136         [BZ #13550]
8137         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
8138         definitions.
8139         (CHECK_FCNTL): Likewise.
8140         (CHECK_N_PAGES): Likewise.
8141
8142         [BZ #13550]
8143         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
8144         definitions.
8145         (CHECK_SIGSET_NULL_OK): Likewise.
8146         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
8147         <bp-checks.h>.
8148         (sigpending): Don't use CHECK_SIGSET.
8149         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
8150         <bp-checks.h>.
8151         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
8152         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
8153         <bp-checks.h>.
8154         (do_sigsuspend): Don't use CHECK_SIGSET.
8155         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
8156         use CHECK_SIGSET.
8157         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
8158         (do_sigwait): Don't use CHECK_SIGSET.
8159         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
8160         use CHECK_SIGSET.
8161         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
8162         include <bp-checks.h>.
8163         (sigpending): Don't use CHECK_SIGSET.
8164         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
8165         include <bp-checks.h>.
8166         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
8167         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
8168         <bp-checks.h>.
8169         (sigpending): Don't use CHECK_SIGSET.
8170         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
8171         <bp-checks.h>.
8172         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
8173
8174         [BZ #13550]
8175         * sysdeps/generic/bp-semctl.h: Remove file.
8176         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
8177         <bp-checks.h> and <bp-semctl.h>.
8178         (__old_semctl): Don't use CHECK_SEMCTL.
8179         (__new_semctl): Likewise.
8180         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
8181         and <bp-semctl.h>.
8182         (__old_semctl): Don't use CHECK_SEMCTL.
8183         (__new_semctl): Likewise.
8184         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
8185         <bp-checks.h> and <bp-semctl.h>.
8186         (__old_semctl): Don't use CHECK_SEMCTL.
8187         (__new_semctl): Likewise.
8188         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
8189         <bp-checks.h> and <bp-semctl.h>.
8190         (semctl): Don't use CHECK_SEMCTL.
8191
8192         [BZ #13550]
8193         * Makerules (elide-bp-thunks): Remove variable.
8194         (elide-routines.oS): Don't use $(elide-bp-thunks).
8195         (elide-routines.os): Likewise.
8196         (elide-routines.o): Likewise.
8197         (elide-routines.op): Likewise.
8198         (elide-routines.og): Likewise.
8199         (objects): Don't use $(bp-thunks).
8200         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
8201         include.
8202         (common-generated): Do not add s-proto-bp.d.
8203         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
8204         (int): Likewise.
8205         (typ): Likewise.
8206         Do not generate makefile rules for bounded-pointer thunks.
8207         * sysdeps/generic/bp-thunks.h: Remove file.
8208         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
8209         * sysdeps/unix/s-proto-bp.S: Likewise.
8210
8211         [BZ #15062]
8212         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
8213         parts of result separately when argument is not close to line from
8214         -i to i and one part of argument is small.
8215         * math/k_casinhf.c (__kernel_casinhf): Likewise.
8216         * math/k_casinhl.c (__kernel_casinhl): Likewise.
8217         * math/libm-test.inc (cacos_test): Add more tests.
8218         (casin_test): Likewise.
8219         (casinh_test): Likewise.
8220         * sysdeps/i386/fpu/libm-test-ulps: Update.
8221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8222
8223 2013-01-31  David S. Miller  <davem@davemloft.net>
8224
8225         * po/de.po: Update from translation team.
8226
8227 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
8228
8229         * time/tzfile.c: Include stdint.h for SIZE_MAX.
8230
8231 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
8232
8233         * configure.in (_AC_PROG_CC_C89): New definition.
8234         * configure: Regenerate.
8235
8236         * configure.in (AC_PROG_CPP): New definition.
8237         * configure: Regenerate.
8238
8239 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
8240
8241         * debug/tst-backtrace.h: New file.
8242         * debug/tst-backtrace2.c: Include tst-backtrace.h.
8243         (ret): Remove variable.
8244         (x): Likewise.
8245         (FAIL): Remove macro.
8246         (NO_INLINE): Likewise.
8247         (fn1): Use match function instead of strstr.
8248         * debug/tst-backtrace3.c: Include tst-backtrace.h.
8249         (ret): Remove variable.
8250         (x): Likewise.
8251         (FAIL): Remove macro.
8252         (NO_INLINE): Likewise.
8253         (fn): Use match function instead of strstr.
8254         * debug/tst-backtrace4.c: Include tst-backtrace.h.
8255         (ret): Remove variable.
8256         (x): Likewise.
8257         (FAIL): Remove macro.
8258         (NO_INLINE): Likewise.
8259         (handle_signal): Use match function instead of strstr.
8260         * debug/tst-backtrace5.c: Include tst-backtrace.h.
8261         (ret): Remove variable.
8262         (x): Likewise.
8263         (FAIL): Remove macro.
8264         (NO_INLINE): Likewise.
8265         (handle_signal): Use match function instead of strstr.
8266
8267 2013-01-23  Roland McGrath  <roland@hack.frob.com>
8268
8269         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
8270
8271 2013-01-23  David S. Miller  <davem@davemloft.net>
8272
8273         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
8274         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
8275         argument of CAS if possible.
8276         * sysdeps/sparc/sparc64/bits/atomic.h
8277         (__arch_compare_and_exchange_val_32_acq): Likewise.
8278         (__arch_compare_and_exchange_val_64_acq): Likewise.
8279
8280 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
8281
8282         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
8283         * sysdeps/posix/ulimit.c: ... this.
8284         Include <limits.h>.
8285         * sysdeps/unix/bsd/ulimit.c: Remove file.
8286
8287 2013-01-23  Adam Conrad  <adconrad@0c3.net>
8288
8289         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
8290         (LDFLAGS-tst-array5): Likewise.
8291
8292 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
8293
8294         [BZ #15036]
8295         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
8296         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
8297         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
8298         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
8299
8300 2013-01-21  David S. Miller  <davem@davemloft.net>
8301
8302         * sysdeps/sparc/backtrace.c: New file.
8303         * sysdeps/sparc/sparc32/backtrace.h: New file.
8304         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
8305         * sysdeps/sparc/sparc64/backtrace.h: New file.
8306         * sysdeps/sparc/sparc64/backtrace.c: Delete.
8307         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
8308         -funwind-tables.
8309
8310 2013-01-21  Andreas Schwab  <schwab@suse.de>
8311
8312         [BZ #15020]
8313         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
8314         closed its stdout.
8315
8316 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
8317
8318         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
8319         "mpa2.h".
8320         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8321
8322 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
8323             Mark Mitchell  <mark@codesourcery.com>
8324             Tom de Vries  <tom@codesourcery.com>
8325             Paul Pluzhnikov  <ppluzhnikov@google.com>
8326
8327         * debug/tst-backtrace2.c: New file.
8328         * debug/tst-backtrace3.c: Likewise.
8329         * debug/tst-backtrace4.c: Likewise.
8330         * debug/tst-backtrace5.c: Likewise.
8331         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
8332         (CFLAGS-tst-backtrace3.c): Likewise.
8333         (CFLAGS-tst-backtrace4.c): Likewise.
8334         (CFLAGS-tst-backtrace5.c): Likewise.
8335         (LDFLAGS-tst-backtrace2): Likewise.
8336         (LDFLAGS-tst-backtrace3): Likewise.
8337         (LDFLAGS-tst-backtrace4): Likewise.
8338         (LDFLAGS-tst-backtrace5): Likewise.
8339         (tests): Add new tests tst-backtrace2, tst-backtrace3,
8340         tst-backtrace4 and tst-backtrace5.
8341
8342 2013-01-18  Anton Blanchard  <anton@samba.org>
8343             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8344
8345         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
8346         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
8347         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
8348         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
8349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8350         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
8351         "+r" and remove output regs list as redundant.  Add explicit inline
8352         asm to specify register of return val to work around compiler codegen
8353         bug.  Remove (int) cast on return value.  Add return type parameter to
8354         use in macro so that this macro does not truncate return value for
8355         64-bit values.
8356         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
8357         pass to INTERNAL_VSYSCALL_NCS.
8358         (INLINE_VSYSCALL): Add 'long int' as return type to
8359         INTERNAL_VSYSCALL_NCS macro invocation.
8360         (INTERNAL_VSYSCALL): Add 'long int' as return type to
8361         INTERNAL_VSYSCALL_NCS macro invocation.
8362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8363
8364 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8365
8366         [BZ #14496]
8367         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
8368         Fix application of SIMD FP exception mask.
8369
8370         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
8371         mp_no from a power of two.
8372         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
8373         __mpexp_twomm1.  Use __pow_mp.
8374
8375         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
8376         multiplication.
8377
8378 2013-01-17  David S. Miller  <davem@davemloft.net>
8379
8380         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8381
8382 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
8383
8384         [BZ #15023]
8385         * include/complex.h: Condition contents on [!_COMPLEX_H].
8386         (__kernel_casinhf): New prototype.
8387         (__kernel_casinh): Likewise.
8388         (__kernel_casinhl): Likewise.
8389         * math/Makefile (libm_calls): Add k_casinh.
8390         * math/k_casinh.c: New file.
8391         * math/k_casinhf.c: Likewise.
8392         * math/k_casinhl.c: Likewise.
8393         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
8394         finite nonzero arguments.
8395         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
8396         finite nonzero arguments.
8397         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
8398         finite nonzero arguments.
8399         * math/s_casinh.c: Do not include <float.h>.
8400         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
8401         * math/s_casinhf.c: Do not include <float.h>.
8402         (__casinhf): Move code for finite nonzero arguments to
8403         k_casinhf.c.
8404         * math/s_casinhl.c: Do not include <float.h>.
8405         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
8406         redefine.
8407         (__casinhl): Move code for finite nonzero arguments to
8408         k_casinhl.c.
8409         * math/libm-test.inc (cacos_test): Add more tests.
8410         * sysdeps/i386/fpu/libm-test-ulps: Update.
8411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8412
8413 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
8414
8415         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
8416         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
8417         [!HAVE_MREMAP]: Remove [defined linux] case.
8418         * malloc/arena.c: Do not include <malloc-sysdep.h>.
8419
8420 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8421
8422         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
8423
8424 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
8425
8426         * elf/elf.h (R_386_SIZE32): New relocation.
8427         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
8428         R_386_SIZE32.
8429         (elf_machine_rela): Likewise.
8430         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8431         R_X86_64_SIZE64 and R_X86_64_SIZE32.
8432
8433 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
8434
8435         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
8436         (FP_FAST_FMA): Do not define.
8437         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
8438         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
8439         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
8440         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
8441         !_SOFT_FLOAT]: Likewise.
8442         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
8443         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
8444         value.
8445         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
8446         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
8447         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
8448         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
8449         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
8450         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
8451         file.
8452
8453 2013-01-16  Andreas Schwab  <schwab@suse.de>
8454
8455         [BZ #14327]
8456         * include/stdlib.h (__mktemp): Add declaration.
8457         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
8458         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
8459
8460 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8461
8462         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
8463         definitions.
8464         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
8465         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
8466         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
8467         definitions here.
8468         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
8469         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
8470         definitions.
8471         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
8472         and ONE.
8473         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
8474         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
8475         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
8476         definitions.
8477         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
8478         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
8479         definitions.
8480         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
8481
8482         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
8483
8484 2013-01-15  David S. Miller  <davem@davemloft.net>
8485
8486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
8487         trunc{,f} to libm-sysdep_routes.
8488         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
8489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
8490         file.
8491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
8492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
8493         file.
8494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
8495         file.
8496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
8497         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
8498         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
8499         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
8500         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
8501         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
8502         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
8503         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
8504
8505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
8506         nearbyint{,f} to libm-sysdep_routes.
8507         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
8508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
8509         New file.
8510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
8511         file.
8512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
8513         New file.
8514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
8515         file.
8516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
8517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
8518         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
8519         file.
8520         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
8521         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
8522         file.
8523         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
8524         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
8525         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
8526
8527         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8528         libc_feholdexcept and libc_fesetenv.
8529
8530 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
8531
8532         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
8533
8534 2013-01-14  David S. Miller  <davem@davemloft.net>
8535
8536         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
8537         (SPARC_ASM_VIS2_IFUNC): Likewise.
8538         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
8539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
8540         use of 'siam' instruction.
8541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
8542         Likewise.
8543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
8544         Likewise.
8545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
8546         Likewise.
8547         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
8548         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
8549         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
8550         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
8551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
8552         file.
8553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
8554         file.
8555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
8556         file.
8557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
8558         file.
8559         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
8560         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
8561         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
8562         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
8563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
8564         new VIS2 routines.
8565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
8568         Likewise.
8569         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
8570         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
8571         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
8572         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
8573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
8574         routines to libm-sysdep_routines.
8575         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
8576
8577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
8578         fdim/fdimf to libm-sysdep_routines.
8579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
8580         file.
8581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
8582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
8583         file.
8584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
8585         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
8586         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
8587         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
8588         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
8589         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
8590         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
8591
8592 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
8593
8594         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
8595         to optimize copies.
8596
8597         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
8598         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8599         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8600
8601         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
8602         local variable MPTWO.
8603         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8604         Likewise.
8605
8606 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
8607
8608         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
8609         GLOB_NOESCAPE.
8610
8611 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
8612
8613         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
8614
8615 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
8616
8617         * manual/pattern.texi (glob_t): Document gl_flags.
8618         (glob64_t): Likewise.
8619
8620 2013-01-11  David S. Miller  <davem@davemloft.net>
8621
8622         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
8623         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
8624         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
8625         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
8626         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
8627         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
8628         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
8629         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
8630         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
8631         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
8632         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
8633         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
8634         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
8635
8636         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
8637         sparc V9 rather than using V8 code.
8638         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
8639         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
8640
8641         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8642         Move to...
8643         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
8644         Here.
8645
8646 2013-01-11  Roland McGrath  <roland@hack.frob.com>
8647
8648         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
8649         not in the main loop.
8650         * configure: Regenerated.
8651
8652 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
8653
8654         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
8655         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
8656         to just #else.
8657         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
8658         [!__GLIBC_HAVE_LONG_LONG] case.
8659         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
8660         condition to just #else.
8661         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
8662         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
8663         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
8664         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
8665         unconditional.
8666         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
8667         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
8668         #elif condition to just #else.
8669         * sysdeps/unix/sysv/linux/sys/sysmacros.h
8670         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
8671         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
8672         #elif condition to just #else.
8673
8674 2013-01-11  Steve Ellcey  <sellcey@mips.com>
8675
8676         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
8677         (EF_MIPS_ARCH_64): Fix value.
8678         (EF_MIPS_ARCH_32R2): New.
8679         (EF_MIPS_ARCH_64R2): New.
8680
8681 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
8682
8683         * Makeconfig (+link-pie-before-libc): New.
8684         (+link-pie-after-libc): Likewise.
8685         (+link-pie-tests): Likewise.
8686         (+link-pie): Rewritten.
8687         (link-before-libc): Remove $(config-LDFLAGS).
8688         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
8689         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
8690         (config-LDFLAGS): Renamed to ...
8691         (rtld-LDFLAGS): This.
8692         (rtld-tests-LDFLAGS): New macro.
8693         (link-libc-rpath-link): Likewise.
8694         (link-libc-tests-rpath-link): Likewise.
8695         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
8696         (link-libc): Prepand $(link-libc-rpath-link).
8697         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
8698         (test-program-prefix): New macro.
8699         (test-via-rtld-prefix): Likewise.
8700         (test-program-cmd): Likewise.
8701         (host-test-program-cmd): Likewise.
8702         * Makefile ($(common-objpfx)testrun.sh): Replace
8703         $(run-program-prefix) with $(test-program-prefix).
8704         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
8705         $(rtld-LDFLAGS).
8706         ($(common-objpfx)shlib.lds): Likewise.
8707         (build-module-helper): Likewise.
8708         ($(common-objpfx)format.lds): Likewise.
8709         * Rules (binaries-pie-tests): New.
8710         (binaries-pie-notests): Likewise.
8711         (binaries-pie): Rewritten.
8712         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
8713         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
8714         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
8715         (make-test-out): Replace $(host-built-program-cmd) with
8716         $(host-test-program-cmd).
8717         * config.make.in (build-hardcoded-path-in-tests): New variable.
8718         * configure.in (--enable-hardcoded-path-in-tests): New configure
8719         option.
8720         (hardcoded_path_in_tests): New AC_SUBST.
8721         * configure: Regenerated.
8722         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
8723         $(built-program-cmd) with $(test-program-cmd).
8724         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
8725         (test_program_cmd): This.
8726         * elf/Makefile ($(objpfx)order.out): Run test with
8727         $(test-program-prefix).
8728         ($(objpfx)order2.out): Likewise.
8729         ($(objpfx)tst-initorder.out): Likewise.
8730         ($(objpfx)tst-initorder2.out): Likewise.
8731         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
8732         $(test-program-cmd).
8733         ($(objpfx)tst-array1-static.out): Likewise.
8734         ($(objpfx)tst-array2.out): Likewise.
8735         ($(objpfx)tst-array3.out): Likewise.
8736         ($(objpfx)tst-array4.out): Likewise.
8737         ($(objpfx)tst-array5.out): Likewise.
8738         ($(objpfx)tst-array5-static.out): Likewise.
8739         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
8740         $(test-program-cmd).
8741         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
8742         $(run-program-prefix) with $(test-program-prefix).
8743         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
8744         (test_program_prefix): This.
8745         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
8746         $(run-program-prefix) with $(test-program-prefix).
8747         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
8748         (test_program_prefix): This.
8749         * iconvdata/tst-tables.sh: Likewise.
8750         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
8751         $(run-program-prefix) with $(test-program-prefix).
8752         ($(objpfx)tst-translit.out): Likewise.
8753         ($(objpfx)tst-gettext2.out): Likewise.
8754         ($(objpfx)tst-gettext4.out): Likewise.
8755         ($(objpfx)tst-gettext6.out): Likewise.
8756         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
8757         (test_program_prefix): This.
8758         * intl/tst-gettext2.sh: Likewise.
8759         * intl/tst-gettext4.sh  Likewise.
8760         * intl/tst-gettext6.sh: Likewise.
8761         * intl/tst-translit.sh: Likewise.
8762         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
8763         with $(test-program-cmd).
8764         * libio/Makefile ($(objpfx)test-freopen.out): Replace
8765         $(run-program-prefix) with $(test-program-prefix).
8766         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
8767         (test_program_prefix): This.
8768         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
8769         $(run-program-prefix) with $(test-program-prefix).
8770         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
8771         (test_program_prefix): This.
8772         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
8773         * posix/Makefile ($(objpfx)globtest.out): Replace
8774         $(run-via-rtld-prefix) and $(test-wrapper) with
8775         $(test-program-prefix) and $(test-via-rtld-prefix).
8776         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
8777         $(test-program-prefix).
8778         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
8779         $(host-test-program-cmd).
8780         (tst-spawn-ARGS): Likewise.
8781         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
8782         $(test-program-prefix).
8783         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
8784         (test_via_rtld_prefix): This.
8785         (test_wrapper): Renamed to ...
8786         (test_program_prefix): This.
8787         (run_program_prefix): Replaced by test_program_prefix.
8788         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
8789         (test_program_prefix): This.
8790         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
8791         with $(host-test-program-cmd).
8792         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
8793         $(run-program-prefix) with $(test-program-prefix).
8794         ($(objpfx)tst-printf.out): Likewise.
8795         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
8796         $(test-program-cmd).
8797         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
8798         (test_program_prefix): This.
8799         * stdio-common/tst-unbputc.sh: Likewise.
8800         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
8801         $(run-program-prefix) with $(test-program-prefix).
8802         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
8803         (test_program_prefix): This.
8804         * string/Makefile ($(objpfx)tst-svc.out):  Replace
8805         $(built-program-cmd) with $(test-program-cmd).
8806
8807 2013-01-11  Andreas Jaeger  <aj@suse.de>
8808
8809         [BZ #15003]
8810         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
8811         value. Sync with Linux 3.7.
8812
8813 2013-01-10  David S. Miller  <davem@davemloft.net>
8814
8815         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
8816         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
8817         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
8818
8819 2013-01-10  Roland McGrath  <roland@hack.frob.com>
8820
8821         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
8822         never set.
8823         * configure: Regenerated.
8824
8825 2013-01-10  David S. Miller  <davem@davemloft.net>
8826
8827         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
8828         sparc V9 rather than using V8 code.
8829         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
8830         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
8831
8832 2013-01-10  Roland McGrath  <roland@hack.frob.com>
8833
8834         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
8835         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
8836         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
8837         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
8838         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
8839         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
8840         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
8841         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
8842         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
8843         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
8844         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
8845         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
8846         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
8847         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
8848         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
8849         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
8850         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
8851         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
8852         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
8853         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
8854         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
8855         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
8856         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
8857         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
8858         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
8859         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
8860         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
8861
8862 2013-01-10  David S. Miller  <davem@davemloft.net>
8863
8864         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8865
8866 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
8867
8868         * posix/Makefile (tests-static): New variable.
8869         (tests): Add $(tests-static).
8870         (tst-exec-static-ARGS): New variable.
8871         (tst-spawn-static-ARGS): Likewise.
8872         * posix/tst-exec-static.c: New file.
8873         * posix/tst-spawn-static.c: Likewise.
8874         * posix/tst-exec.c: Support run directly.
8875         * posix/tst-spawn.c: Likewise.
8876
8877 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
8878
8879         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
8880         long.
8881         * math/bits/mathcalls.h (llrint): Likewise.
8882         (llround): Likewise.
8883         * stdlib/stdlib.h (struct drand48_data): Likewise.
8884         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
8885         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
8886         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
8887         Likewise.
8888         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
8889         Likewise.
8890         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
8891         (elf_greg_t): Likewise.
8892         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
8893         (__jmp_buf): Likewise.
8894         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
8895         definitions.
8896         (llrint): Likewise, for all definitions.
8897         (llrintl): Likewise.
8898
8899         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
8900         Remove [__GNUC__] condition.
8901         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
8902         condition to just [__USE_ISOC99].
8903         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
8904
8905 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
8906
8907         [BZ #14200]
8908         * sysdeps/unix/sysv/linux/x86/bits/environments.h
8909         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
8910         defined.
8911         (_POSIX_V6_ILP32_OFF32): Likewise.
8912         (_XBS5_ILP32_OFF32): Likewise.
8913         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
8914         (__ILP32_OFFBIG_LDFLAGS): Likewise.
8915
8916 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8917
8918         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
8919
8920         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
8921         doubles __mpexp_twomm1.  Adjust usage.
8922         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
8923         Remove.
8924
8925 2013-01-10  Andreas Schwab  <schwab@suse.de>
8926
8927         [BZ #14964]
8928         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
8929         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
8930
8931 2013-01-09  David S. Miller  <davem@davemloft.net>
8932
8933         [BZ #15003]
8934         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
8935         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
8936         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
8937         TCP_FASTOPEN): Define.
8938         (tcp_repair_opt): New structure.
8939         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
8940         enum values.
8941         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
8942         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
8943         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
8944         (tcp_cookie_transactions): New structure.
8945
8946 2013-01-09  Anton Blanchard  <anton@samba.org>
8947
8948         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
8949         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
8950         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
8951         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
8952
8953 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
8954
8955         * include/features.h (__USE_ANSI): Remove.
8956
8957 2013-01-09  Roland McGrath  <roland@hack.frob.com>
8958
8959         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
8960
8961         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
8962
8963 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
8964
8965         * sysdeps/s390/fpu/libm-test-ulps: Update.
8966
8967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8968
8969         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
8970         (__acr): Likewise.
8971         (__cpy): Likewise.
8972         (norm): Likewise.
8973         (denorm): Likewise.
8974         (__mp_dbl): Likewise.
8975         (__dbl_mp): Likewise.
8976         (add_magnitudes): Likewise.
8977         (sub_magnitudes): Likewise.
8978         (__add): Likewise.
8979         (__sub): Likewise.
8980         (__mul): Likewise.
8981         (__inv): Likewise.
8982         (__dvd): Likewise.
8983         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
8984         (__acr): Likewise.
8985         (__cpy): Likewise.
8986         (norm): Likewise.
8987         (denorm): Likewise.
8988         (__mp_dbl): Likewise.
8989         (__dbl_mp): Likewise.
8990         (add_magnitudes): Likewise.
8991         (sub_magnitudes): Likewise.
8992         (__add): Likewise.
8993         (__sub): Likewise.
8994         (__mul): Likewise.
8995         (__inv): Likewise.
8996         (__dvd): Likewise.
8997         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
8998         (__acr): Likewise.
8999         (__cpy): Likewise.
9000         (norm): Likewise.
9001         (denorm): Likewise.
9002         (__mp_dbl): Likewise.
9003         (__dbl_mp): Likewise.
9004         (add_magnitudes): Likewise.
9005         (sub_magnitudes): Likewise.
9006         (__add): Likewise.
9007         (__sub): Likewise.
9008         (__mul): Likewise.
9009         (__inv): Likewise.
9010         (__dvd): Likewise.
9011
9012 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
9013
9014         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
9015         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
9016         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
9017         2 && __USE_EXTERN_INLINES]: Likewise.
9018
9019 2013-01-08  Andreas Jaeger  <aj@suse.de>
9020
9021         [BZ# 14985]
9022         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
9023         Remove.
9024         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
9025         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
9026
9027 2013-01-07  Anton Blanchard  <anton@samba.org>
9028
9029         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
9030         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
9031         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
9032         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
9033         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
9034         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9035         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
9036         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
9037         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9038         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9039         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
9040         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
9041         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9042         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
9043         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
9044         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
9045         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
9046         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9047         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
9048         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
9049         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
9050         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
9051         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9052         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
9053         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
9054         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
9055         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9056         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
9057         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
9058         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9059         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
9060         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9061         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9062         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9063         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9064         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9065         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
9066         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
9067         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
9068         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9069         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
9070         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9071         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
9072
9073 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
9074
9075         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
9076         (__MALLOC_PMT): Likewise.
9077         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
9078         [__GNUC__], only on [_LIBC].
9079         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
9080         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
9081         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
9082         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
9083         forward declaration.
9084         (realloc_hook_ini): Likewise.
9085         (memalign_hook_ini): Likewise.
9086         (__libc_memalign): Do not use __MALLOC_PMT in variable
9087         declaration.
9088         (__libc_valloc): Likewise.
9089         (__libc_pvalloc): Likewise.
9090         (__libc_calloc): Likewise.
9091         (__posix_memalign): Likewise.
9092
9093         [BZ #14996]
9094         * math/s_casinh.c: Include <float.h>.
9095         (__casinh): Do not do computation with squaring and square root
9096         for large arguments.
9097         * math/s_casinhf.c: Include <float.h>.
9098         (__casinhf): Do not do computation with squaring and square root
9099         for large arguments.
9100         * math/s_casinhl.c: Include <float.h>.
9101         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
9102         (__casinhl): Do not do computation with squaring and square root
9103         for large arguments.
9104         * math/libm-test.inc (casin_test): Add more tests.
9105         (casinh_test): Likewise.
9106         * sysdeps/i386/fpu/libm-test-ulps: Update.
9107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9108
9109 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
9110
9111         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
9112         (__x86_64_raw_data_cache_size): Likewise.
9113         (__x86_64_data_cache_size_half): Likewise.
9114         (__x86_64_raw_data_cache_size_half): Likewise.
9115         (__x86_64_shared_cache_size): Likewise.
9116         (__x86_64_raw_shared_cache_size): Likewise.
9117         (__x86_64_shared_cache_size_half): Likewise.
9118         (__x86_64_raw_shared_cache_size_half): Likewise.
9119         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
9120         to ...
9121         (__x86_data_cache_size): This.
9122         (__x86_64_raw_data_cache_size): Renamed to ...
9123         (__x86_raw_data_cache_size): This.
9124         (__x86_64_data_cache_size_half): Renamed to ...
9125         (__x86_data_cache_size_half): This.
9126         (__x86_64_raw_data_cache_size_half): Renamed to ...
9127         (__x86_raw_data_cache_size_half): This.
9128         (__x86_64_shared_cache_size): Renamed to ...
9129         (__x86_shared_cache_size): This.
9130         (__x86_64_raw_shared_cache_size): Renamed to ...
9131         (__x86_raw_shared_cache_size): This.
9132         (__x86_64_shared_cache_size_half): Renamed to ...
9133         (__x86_shared_cache_size_half): This.
9134         (__x86_64_raw_shared_cache_size_half): Renamed to ...
9135         (__x86_raw_shared_cache_size_half): This.
9136         * sysdeps/x86_64/memcpy.S: Updated.
9137         * sysdeps/x86_64/memset.S: Likewise.
9138         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
9139         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9140         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9141
9142 2013-01-04  David S. Miller  <davem@davemloft.net>
9143
9144         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9145
9146 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
9147
9148         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
9149         1 to avoid redefinition warning.
9150         (__USE_GNU): Don't define.
9151         (init_signaling_nan): Protoize.
9152
9153         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9154
9155 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9156
9157         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
9158         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
9159         (__cpymn): Likewise.
9160         (norm): Remove commented code.
9161         (denorm): Likewise.
9162         (__mp_dbl): Likewise.
9163         (__inv): Likewise.
9164         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
9165         (__cpymn): Likewise.
9166         (norm): Remove commented code.
9167         (denorm): Likewise.
9168         (__mp_dbl): Likewise.
9169         (__inv): Likewise.
9170
9171         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
9172         mp_no value for 1.0 and 2.0.
9173         (norm): Use RADIXI instead of radixi.d.
9174         (denorm): Likewise.
9175         (__mul): Use 0.0 instead of zero.d.
9176         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
9177         mp_no value for 1.0 and 2.0.
9178         (norm): Use RADIXI instead of radixi.d.
9179         (denorm): Likewise.
9180         (__mul): Use 0.0 instead of zero.d.
9181
9182 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
9183
9184         [BZ #14994]
9185         * math/s_casinh.c (__casinh): Reduce finite argument to first
9186         quadrant then set signs of results at the end.
9187         * math/s_casinhf.c (__casinhf): Likewise.
9188         * math/s_casinhl.c (__casinhl): Likewise.
9189         * math/libm-test.inc (casin_test): Add more tests.
9190         (casinh_test): Likewise.
9191         * sysdeps/i386/fpu/libm-test-ulps: Update.
9192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9193
9194 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9195
9196         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
9197
9198         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
9199
9200         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
9201         declarations.
9202         (denorm): Likewise.
9203         (__mp_dbl): Likewise.
9204         (__inv): Likewise.
9205
9206         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
9207         and adjust the header comment.
9208
9209         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
9210         variable name from declaration.
9211
9212 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
9213
9214         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9215         Initialize COMMON_CPUID_INDEX_7 element.
9216         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
9217         (CPUID_RTM): Likewise.
9218         (HAS_RTM): Likewise.
9219         (COMMON_CPUID_INDEX_7): New enum.
9220
9221 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
9222
9223         [BZ #14981]
9224         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
9225         size is zero, record memory as freed.
9226
9227 2013-01-03  Andreas Jaeger  <aj@suse.de>
9228
9229         * po/ia.po: Add new Interlingua translation.
9230
9231 2012-01-03  Allan McRae  <allan@archlinux.org>
9232
9233         * locale/programs/localedef.c: Fix description of '--posix' flag.
9234
9235 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
9236
9237         * NEWS: Update dates in second copyright notice.
9238         * README: Update copyright dates in example.
9239         * manual/libc.texinfo: Update copyright dates.
9240         * scripts/test-installation.pl: Update copyright date in --version
9241         output.
9242
9243         * hurd/ctty-input.c: Fix copyright notice formatting.
9244         * hurd/ctty-output.c: Likewise.
9245         * hurd/dtable.c: Likewise.
9246         * hurd/hurd-raise.c: Likewise.
9247         * hurd/hurdprio.c: Likewise.
9248         * hurd/msgportdemux.c: Likewise.
9249         * misc/sys/file.h: Likewise.
9250         * misc/sys/ioctl.h: Likewise.
9251         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
9252         * sysdeps/mach/hurd/chdir.c: Likewise.
9253         * sysdeps/mach/hurd/fchdir.c: Likewise.
9254         * sysdeps/mach/hurd/rename.c: Likewise.
9255         * sysdeps/mach/hurd/rmdir.c: Likewise.
9256         * sysdeps/mach/hurd/seekdir.c: Likewise.
9257         * sysdeps/mach/hurd/setsid.c: Likewise.
9258         * sysdeps/posix/wait3.c: Likewise.
9259
9260         * All files with FSF copyright notices: Update copyright dates
9261         using scripts/update-copyrights.
9262         * intl/plural.c: Regenerated.
9263         * locale/programs/charmap-kw.h: Likewise.
9264         * locale/programs/locfile-kw.h: Likewise.
9265
9266 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9267
9268         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
9269         four values.
9270
9271         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
9272         calculation loop and add branch prediction.
9273
9274         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
9275         check access beyond bounds of m1np.
9276
9277         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
9278         MPTWO.
9279         (__inv): Remove local variable MPTWO to use the global
9280         constant.
9281         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
9282         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
9283         variable MPTWO.
9284         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
9285         MP3HALFS static const.
9286
9287 2013-01-01  David S. Miller  <davem@davemloft.net>
9288
9289         * po/ca.po: Update from translation team.
9290
9291 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
9292
9293         * scripts/update-copyrights: New file.
9294         * Makeconfig: Reformat copyright notice.
9295         * ctype/ctype.h: Likewise.
9296         * debug/swprintf_chk.c: Likewise.
9297         * elf/dl-cache.c: Likewise.
9298         * elf/dl-debug.c: Likewise.
9299         * elf/dl-object.c: Likewise.
9300         * grp/initgroups.c: Likewise.
9301         * hurd/Makefile: Likewise.
9302         * hurd/hurd/signal.h: Likewise.
9303         * hurd/hurdfault.c: Likewise.
9304         * hurd/hurdioctl.c: Likewise.
9305         * hurd/hurdlookup.c: Likewise.
9306         * hurd/intr-msg.c: Likewise.
9307         * iconv/gconv_open.c: Likewise.
9308         * libio/swprintf.c: Likewise.
9309         * locale/lc-ctype.c: Likewise.
9310         * locale/nl_langinfo.c: Likewise.
9311         * mach/Machrules: Likewise.
9312         * mach/Makefile: Likewise.
9313         * malloc/obstack.h: Likewise.
9314         * manual/Makefile: Likewise.
9315         * manual/tsort.awk: Likewise.
9316         * misc/bits/stab.def: Likewise.
9317         * nis/nis_print_group_entry.c: Likewise.
9318         * nis/nis_table.c: Likewise.
9319         * nis/nss_compat/compat-pwd.c: Likewise.
9320         * nis/nss_compat/compat-spwd.c: Likewise.
9321         * po/Makefile: Likewise.
9322         * posix/fnmatch.c: Likewise.
9323         * posix/regex.h: Likewise.
9324         * resolv/Makefile: Likewise.
9325         * resolv/nss_dns/dns-network.c: Likewise.
9326         * resolv/res_hconf.c: Likewise.
9327         * scripts/gen-sorted.awk: Likewise.
9328         * soft-fp/soft-fp.h: Likewise.
9329         * stdio-common/printf.h: Likewise.
9330         * stdlib/monetary.h: Likewise.
9331         * stdlib/random.c: Likewise.
9332         * stdlib/random_r.c: Likewise.
9333         * sysdeps/generic/Makefile: Likewise.
9334         * sysdeps/gnu/Makefile: Likewise.
9335         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9336         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9337         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9338         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9339         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9340         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9341         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9342         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9343         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9344         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9345         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9346         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9347         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9348         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9349         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
9350         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9351         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9352         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9353         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9354         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9355         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9356         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9357         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9358         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
9359         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
9360         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
9361         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
9362         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
9363         * sysdeps/mach/hurd/errnos.awk: Likewise.
9364         * sysdeps/mach/hurd/fork.c: Likewise.
9365         * sysdeps/mach/hurd/getcwd.c: Likewise.
9366         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
9367         * sysdeps/mach/hurd/mmap.c: Likewise.
9368         * sysdeps/mach/hurd/utimes.c: Likewise.
9369         * sysdeps/mach/hurd/xmknod.c: Likewise.
9370         * sysdeps/posix/profil.c: Likewise.
9371         * sysdeps/posix/readdir_r.c: Likewise.
9372         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9373         * sysdeps/powerpc/bits/setjmp.h: Likewise.
9374         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
9375         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
9376         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9377         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9378         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9379         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9380         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9381         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9382         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9383         * sysdeps/pthread/lio_listio.c: Likewise.
9384         * sysdeps/sparc/dl-procinfo.h: Likewise.
9385         * sysdeps/unix/i386/sysdep.S: Likewise.
9386         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
9387         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
9388         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
9389         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
9390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9391         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9392         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9393         * sysdeps/unix/sysv/linux/speed.c: Likewise.
9394         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
9395         * sysdeps/wordsize-32/divdi3.c: Likewise.
9396         * time/sys/time.h: Likewise.
9397         * wcsmbs/Makefile: Likewise.
9398
9399 2013-01-01  David S. Miller  <davem@davemloft.net>
9400
9401         * po/fr.po: Update from translation team.
9402
9403         * catgets/gencat.c: Update copyright year.
9404         * csu/version.c: Likewise.
9405         * debug/catchsegv.sh: Likewise.
9406         * debug/pcprofiledump.c: Likewise.
9407         * debug/xtrace.sh: Likewise.
9408         * elf/ldconfig.c: Likewise.
9409         * elf/ldd.bash.in: Likewise.
9410         * elf/pldd.c: Likewise.
9411         * elf/sotruss.ksh: Likewise.
9412         * elf/sprof.c: Likewise.
9413         * iconv/iconv_prog.c: Likewise.
9414         * iconv/iconvconfig.c: Likewise.
9415         * locale/programs/locale.c: Likewise.
9416         * locale/programs/localedef.c: Likewise.
9417         * login/programs/pt_chown.c: Likewise.
9418         * malloc/memusage.sh: Likewise.
9419         * malloc/memusagestat.c: Likewise.
9420         * malloc/mtrace.pl: Likewise.
9421         * nscd/nscd.c: Likewise.
9422         * nss/getent.c: Likewise.
9423         * nss/makedb.c: Likewise.
9424         * posix/getconf.c: Likewise.
9425
9426 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9427
9428         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
9429         numbers.
9430
9431 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
9432
9433         * math/bits/mathcalls.h (modf): Use __nonnull.
9434
9435 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9436
9437         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
9438         (split): Use macro CN instead of the bare value.
9439         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
9440         could be used.
9441         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
9442         instead of the bare value.
9443         (power1): Likewise.
9444
9445 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9446
9447         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
9448         __ATAN_TWOM.
9449         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9450
9451         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
9452         their values.
9453         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
9454         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
9455         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
9456         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
9457
9458 2012-12-28  Andreas Jaeger  <aj@suse.de>
9459
9460         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
9461         values are from Linux 3.7.
9462
9463         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
9464         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
9465
9466 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9467
9468         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
9469         TRUE case.
9470
9471         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
9472         (norm): Likewise.
9473         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
9474         variables with preprocessor constants.
9475         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9476         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9477         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9478
9479 2012-12-27  Bruno Haible  <bruno@clisp.org>
9480
9481         [BZ #14317]
9482         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
9483         only if needed.
9484
9485 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9486
9487         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
9488         and use variable directly.
9489         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
9490
9491         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
9492         MPONE.
9493         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
9494         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
9495         variable MPONE.
9496         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
9497         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
9498         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
9499         include directive.  Remove local variable MPONE.
9500         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
9501         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
9502         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9503
9504 2012-12-25  David S. Miller  <davem@davemloft.net>
9505
9506         * version.h (RELEASE): Set to "development".
9507         (VERSION): Set to "2.17.90".
9508         * NEWS: Add 2.18 section.
9509
9510 2012-12-21  David S. Miller  <davem@davemloft.net>
9511
9512         * po/hr.po: Update from translation team.
9513
9514 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9515
9516         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
9517
9518 2012-12-19  Steve Ellcey  <sellcey@mips.com>
9519
9520         * NEWS:  Mention new memcpy for MIPS.
9521
9522 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9523
9524         * manual/contrib.texi (Contributors): Spelling correction.
9525
9526 2012-12-15  David S. Miller  <davem@davemloft.net>
9527
9528         * po/ru.po: Update from translation team.
9529
9530 2012-12-13  David S. Miller  <davem@davemloft.net>
9531
9532         * NEWS: Mention IFUNC testsuite enhancements.
9533
9534         * po/pl.po: Update from translation team.
9535         * po/bg.po: Likewise.
9536
9537         * manual/contrib.texi (Contributors): Update entries for Hongjiu
9538         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
9539
9540 2012-12-11  David S. Miller  <davem@davemloft.net>
9541
9542         * po/sv.po: Update from translation team.
9543
9544         * po/vi.po: Update from translation team.
9545
9546         * po/cs.po: Update from translation team.
9547
9548         * po/de.po: Update from translation team.
9549         * po/eo.po: Likewise.
9550         * po/nl.po: Likewise.
9551
9552 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9553
9554         [BZ #14246]
9555         * manual/argp.texi (Argp Helper Functions): Move node to follow
9556         Argp Parsing State.
9557
9558         [BZ #14872]
9559         * manual/conf.texi (Limits on File System Capacity): Mention if
9560         terminating null is included in the max size.
9561
9562 2012-12-10  Andreas Jaeger  <aj@suse.de>
9563
9564         * po/cs.po: Update from translation team.
9565
9566 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
9567
9568         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
9569         void pointer and cast to uintptr_t.
9570         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
9571         path.
9572         * sysdeps/s390/s390-64/memcpy.S: Likewise.
9573         * sysdeps/s390/s390-64/memset.S: Likewise.
9574
9575 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
9576
9577         [BZ #14833]
9578         * menual/message.texi (Message Translation): Fix typos.
9579         (Helper programs for gettext): Likewise.
9580
9581 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
9582
9583         [BZ #14898]
9584         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
9585         Change to -1.
9586
9587 2012-12-07  David S. Miller  <davem@davemloft.net>
9588
9589         * po/libc.pot: Update.
9590
9591 2012-12-07  Richard Henderson  <rth@redhat.com>
9592
9593         [BZ #10114]
9594         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
9595         normal/normal case to before the switch.
9596         (_FP_DIV): Likewise.
9597
9598 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
9599             Mike Frysinger  <vapier@gentoo.org>
9600
9601         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
9602         check for __NR_fadvise64_64.
9603
9604 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
9605
9606         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
9607         0, not just to plain "0" as a statement.
9608         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
9609         with cw.
9610
9611 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
9612
9613         * NEWS: Use sourceware.org in Bugzilla URL.
9614
9615 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9616
9617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9618         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
9619
9620         * stdio-common/tst-put-error.c (do_test): Add newline to the
9621         padded test to ensure flush.
9622
9623 2012-12-05  Jeff Law  <law@redhat.com>
9624
9625         * sunrpc/etc.rpc (fedfs_admin): Add entry.
9626
9627 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
9628
9629         * README: Don't refer to ports add-on as distributed separately.
9630         Mention AArch64 in list of systems supported in the ports add-on.
9631
9632         * LICENSES: Add more non-FSF copyright and license notices.
9633
9634         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
9635         ((unused)).
9636
9637         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
9638
9639         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
9640         10000 as width of padded output.
9641
9642 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
9643
9644         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
9645
9646         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
9647         variable LX with __attribute__ ((unused)).
9648         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9649         Likewise.
9650         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
9651         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9652         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
9653         with __attribute__ ((unused)).
9654
9655 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
9656
9657         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
9658
9659 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
9660
9661         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
9662         (CFLAGS-nldbl-acos.c): New variable.
9663         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
9664         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
9665         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
9666         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
9667         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
9668         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
9669         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
9670         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
9671         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
9672         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
9673         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
9674         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
9675         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
9676         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
9677         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
9678         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
9679         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
9680         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
9681         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
9682         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
9683         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
9684         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
9685         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
9686         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
9687         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
9688         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
9689         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
9690         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
9691         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
9692         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
9693         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
9694         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
9695         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
9696         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
9697         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
9698         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
9699         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
9700         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
9701         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
9702         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
9703         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
9704         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
9705         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
9706         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
9707         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
9708         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
9709         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
9710         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
9711         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
9712         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
9713         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
9714         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
9715         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
9716         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
9717         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
9718         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
9719         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
9720         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
9721         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
9722         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
9723         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
9724         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
9725         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
9726         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
9727         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
9728         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
9729         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
9730         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
9731         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
9732         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
9733         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
9734         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
9735         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
9736         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
9737         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
9738         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
9739         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
9740         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
9741         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
9742         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
9743         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
9744         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
9745         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
9746         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
9747         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
9748         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
9749         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
9750         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
9751         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
9752         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
9753         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
9754         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
9755         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
9756         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
9757         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
9758         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
9759         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
9760
9761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9762         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
9763
9764         [BZ #14914]
9765         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
9766         whole low double instead of just low 47 bits when splitting values
9767         into two parts.
9768
9769 2012-12-03  Allan McRae  <allan@archlinux.org>
9770
9771         * manual/stdio.texi (Predefined Printf Handlers): Remove
9772         @hsep and @vsep usage.
9773
9774 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
9775
9776         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
9777         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
9778
9779 2012-12-03  Jeff Law  <law@redhat.com>
9780
9781         * time/sys/time.h (settimeofday): Do not mark TV argument
9782         as __nonnull.
9783
9784 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
9785
9786         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
9787         when currently writing and seek to current position when not.
9788         * libio/Makefile (tests): Remove bug-fclose1.
9789         * libio/bug-fclose1.c: Delete.
9790
9791 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
9792
9793         * manual/arith.texi (feenableexcept): Fix typo.
9794         (fedisableexcept): Likewise.
9795
9796 2012-11-30  Roland McGrath  <roland@hack.frob.com>
9797
9798         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
9799         second, differently-typed declaration, rather than a cast.
9800
9801 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9802
9803         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
9804         * include/rpc/svc.h: ... here.
9805
9806 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
9807
9808         [BZ #13013]
9809         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
9810         depending n and resplen2 to catch cases where answer
9811         equals answerp2.
9812
9813 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
9814
9815         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
9816         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
9817
9818 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
9819
9820         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
9821
9822 2012-11-29  Roland McGrath  <roland@hack.frob.com>
9823
9824         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
9825
9826 2012-11-28  Jeff Law  <law@redhat.com>
9827
9828         [BZ #13761]
9829         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
9830         dataset_temporary.  Track alloca usage into alloca_used.
9831         If dataset is large allocate and release it via malloc/free.
9832
9833 2012-06-04  Florian Weimer  <fweimer@redhat.com>
9834
9835         [BZ #14197]
9836         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
9837
9838 2012-11-28  David S. Miller  <davem@davemloft.net>
9839
9840         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9841
9842 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
9843
9844         [BZ #14803]
9845         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
9846         of pi/2 rounded to nearest to 64 bits.
9847         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
9848         nearest to 64 bits.
9849         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
9850         bits.
9851
9852 2012-11-28  Jeff Law <law@redhat.com>
9853             Martin Osvald <mosvald@redhat.com>
9854
9855         [BZ #14889]
9856         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
9857         * sunrpc/svc.c: Include time.h.
9858         (__svc_accept_failed): New function.
9859         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
9860         any reason other than EINTR, call __svc_accept_failed.
9861         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
9862         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
9863
9864 2012-11-28  Andreas Schwab  <schwab@suse.de>
9865
9866         * scripts/abilist.awk: Also handle indirect functions in .opd
9867         section.
9868
9869 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
9870
9871         [BZ #13881]
9872         * sysdeps/x86/fpu/powl_helper.c: New file.
9873         * sysdeps/x86/fpu/Makefile: Likewise.
9874         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
9875         (p3): New object.
9876         (__ieee754_powl): Use __powl_helper for finite arguments except
9877         integer exponents below 8.
9878         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
9879         (p3): New object.
9880         (__ieee754_powl): Use __powl_helper for finite arguments except
9881         integer exponents below 8.
9882         * math/libm-test.inc (pow_test): Add more tests and enable some
9883         previously disabled tests.
9884         * sysdeps/i386/fpu/libm-test-ulps: Update.
9885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9886
9887 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9888             Carlos O'Donell  <carlos_odonell@mentor.com>
9889
9890         * nss/makedb.c (is_prime): Assert that input is odd and greater
9891         than 4.  Note that fact in a comment too.
9892         (next_prime): Add 4 to input.
9893
9894 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9895
9896         [BZ #11741]
9897         * libio/Makefile (tests): Add test case tst-fwrite-error.
9898         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
9899         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
9900         * libio/tst-fwrite-error.c: New test case.
9901
9902 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
9903
9904         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
9905         before casting to void *.
9906         * include/libc-internal.h (__pointer_type): New macro.
9907         (__integer_if_pointer_type_sub): Likewise.
9908         (__integer_if_pointer_type): Likewise.
9909         (cast_to_integer): Likewise.
9910         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
9911         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
9912         before casting to atomic64_t.
9913         (atomic_exchange_acq): Likewise.
9914         (__arch_exchange_and_add_body): Likewise.
9915         (__arch_add_body): Likewise.
9916         (atomic_add_negative): Likewise.
9917         (atomic_add_zero): Likewise.
9918
9919 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
9920
9921         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
9922         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
9923         (add_fdes): Likewise.
9924         (linear_search_fdes): Likewise.
9925         (binary_search_unencoded_fdes): Likewise.
9926
9927 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
9928
9929         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
9930
9931 2012-11-24  Adam Conrad  <adconrad@0c3.net>
9932
9933         * configure.in: Autodetect C++ header directories.
9934         * configure: Regenerated.
9935
9936 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
9937
9938         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
9939
9940 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
9941
9942         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9943
9944 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
9945
9946         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
9947         LDBL_MANT_DIG == 106]: Disable some tests.
9948         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
9949         Likewise.
9950         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
9951         Likewise.
9952
9953         [BZ #14871]
9954         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
9955         input for small inputs.  Return +/- pi/2 for large inputs.
9956         * math/libm-test.inc (atan_test): Add more tests.
9957
9958         * sysdeps/generic/unwind-dw2-fde-glibc.c
9959         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
9960         __attribute__ ((unused)).
9961
9962         [BZ #14645]
9963         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
9964         x * y if x and y are nonzero and z is zero.
9965
9966         [BZ #14811]
9967         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
9968         nonzero exponents with absolute value below 0x1p-117 to +/-
9969         0x1p-117.
9970
9971         [BZ #14869]
9972         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
9973         up arguments below 2**-450, not just those below 2**-500.
9974         * math/libm-test.inc (hypot_test): Add another test.
9975
9976         [BZ #14868]
9977         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
9978         Return a+b for ratio over 2**120, not 2**60.
9979         * math/libm-test.inc (hypot_test): Add another test.
9980
9981         * math/libm-test.inc (clog_test): Use
9982         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
9983         (clog10_test): Likewise.
9984
9985         [BZ #6778]
9986         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
9987
9988 2012-11-22  Andreas Schwab  <schwab@suse.de>
9989
9990         * sysdeps/i386/fpu/libm-test-ulps: Update.
9991
9992 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
9993
9994         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
9995         printf output with newline.
9996
9997 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
9998
9999         [BZ #14865]
10000         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
10001         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
10002         -z nodlopen, -z initfirst and -z execstack support.
10003         * configure: Regenerated.
10004
10005         * elf/elf.h (DF_1_NODIRECT): New macro.
10006         (DF_1_IGNMULDEF): Likewise.
10007         (DF_1_NOKSYMS): Likewise.
10008         (DF_1_NOHDR): Likewise.
10009         (DF_1_EDITED): Likewise.
10010         (DF_1_NORELOC): Likewise.
10011         (DF_1_SYMINTPOSE): Likewise.
10012         (DF_1_GLOBAUDIT): Likewise.
10013         (DF_1_SINGLETON): Likewise.
10014         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
10015         DT_1_SUPPORTED_MASK bits.
10016         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
10017
10018 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
10019
10020         * sysdeps/unix/make-syscalls.sh: Document prefixes.
10021
10022 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
10023
10024         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
10025         macro.
10026
10027         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
10028         (sendmmsg): Move declarations...
10029         * socket/sys/socket.h: ... here.
10030         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
10031         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
10032         include it from...
10033         * socket/recvmmsg.c: ... this new file.
10034         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
10035         (sendmmsg): Rename to __sendmmsg, create weak alias and make
10036         definition of __sendmmsg hidden.
10037         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
10038         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
10039         Move ENOSYS stub into and include it from...
10040         * socket/sendmmsg.c: ... this new file.
10041         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
10042         (sysdep_routines): Move recvmmsg and sendmmsg...
10043         * socket/Makefile (routines): ... here.
10044         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
10045         (GLIBC_PRIVATE): Add __sendmmsg.
10046         * include/sys/socket.h (__sendmmsg): Add declarations.
10047         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
10048         sendmmsg.
10049
10050 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
10051
10052         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
10053         variable I1 with __attribute__ ((unused)).
10054         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10055
10056 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
10057
10058         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
10059         DUMMY variables with __attribute__ ((unused)).
10060
10061         * bits/byteswap.h: Include <bits/types.h>.
10062         (__bswap_64): Use __uint64_t instead of unsigned long long int.
10063
10064 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
10065
10066         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
10067         string_t.  Do not manually set errno.
10068         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
10069         length with __strnlen.  Make sure to both set errno and return it on
10070         failure.
10071
10072 2012-11-19  David S. Miller  <davem@davemloft.net>
10073
10074         With help from Joseph Myers.
10075         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
10076         very large arguments properly.
10077         * math/libm-test.inc (atan_test): New tests.
10078         (atan2_test): New tests.
10079         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10080         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10081
10082 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
10083
10084         [BZ #14856]
10085         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
10086         Define to 3.
10087
10088         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
10089         [POSIX] (EADDRNOTAVAIL): Likewise.
10090         [POSIX] (EAFNOSUPPORT): Likewise.
10091         [POSIX] (EALREADY): Likewise.
10092         [POSIX] (ECONNABORTED): Likewise.
10093         [POSIX] (ECONNREFUSED): Likewise.
10094         [POSIX] (ECONNRESET): Likewise.
10095         [POSIX] (EDESTADDRREQ): Likewise.
10096         [POSIX] (EDQUOT): Likewise.
10097         [POSIX] (EHOSTUNREACH): Likewise.
10098         [POSIX] (EIDRM): Likewise.
10099         [POSIX] (EISCONN): Likewise.
10100         [POSIX] (ELOOP): Likewise.
10101         [POSIX] (EMULTIHOP): Likewise.
10102         [POSIX] (ENETDOWN): Likewise.
10103         [POSIX] (ENETUNREACH): Likewise.
10104         [POSIX] (ENOBUFS): Likewise.
10105         [POSIX] (ENODATA): Likewise.
10106         [POSIX] (ENOLINK): Likewise.
10107         [POSIX] (ENOMSG): Likewise.
10108         [POSIX] (ENOPROTOOPT): Likewise.
10109         [POSIX] (ENOSR): Likewise.
10110         [POSIX] (ENOSTR): Likewise.
10111         [POSIX] (ENOTCONN): Likewise.
10112         [POSIX] (ENOTSOCK): Likewise.
10113         [POSIX] (EOPNOTSUPP): Likewise.
10114         [POSIX] (EOVERFLOW): Likewise.
10115         [POSIX] (EPROTO): Likewise.
10116         [POSIX] (EPROTONOSUPPORT): Likewise.
10117         [POSIX] (EPROTOTYPE): Likewise.
10118         [POSIX] (ESTALE): Likewise.
10119         [POSIX] (ETIME): Likewise.
10120         [POSIX] (ETXTBSY): Likewise.
10121         [POSIX] (EWOULDBLOCK): Likewise.
10122         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
10123         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
10124         [POSIX] (SEEK_CUR): Likewise.
10125         [POSIX] (SEEK_END): Likewise.
10126         [POSIX || UNIX98] (mode_t): Do not require.
10127         [POSIX] (off_t): Likewise.
10128         [POSIX] (pid_t): Likewise.
10129         [POSIX] (sys/stat.h): Do not allow header.
10130         [POSIX] (unistd.h): Likewise.
10131         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
10132         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
10133         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
10134         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
10135         require.
10136         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
10137         sigevent): Specify elements.
10138         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
10139         entry.
10140         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
10141         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
10142
10143         * conform/data/cpio.h-data [POSIX]: Disable whole file.
10144         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
10145         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
10146         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
10147         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
10148         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
10149         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
10150         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
10151         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
10152         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
10153         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
10154         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
10155         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
10156         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
10157         Likewise.
10158         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
10159         Likewise.
10160         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
10161         Likewise.
10162         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
10163         Likewise.
10164         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
10165         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
10166         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
10167         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
10168         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
10169         Specify lower bound on value.
10170         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
10171         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
10172         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
10173         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
10174         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
10175         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
10176         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
10177         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
10178         value.
10179         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
10180         as optional.
10181         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
10182         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
10183         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
10184         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
10185         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
10186         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
10187         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
10188         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
10189         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
10190         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
10191         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
10192         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
10193         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
10194         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
10195         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
10196         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
10197         entry.
10198         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
10199         optional.
10200         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
10201         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
10202         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
10203         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
10204         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
10205         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
10206         Likewise.
10207         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
10208         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
10209         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
10210         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
10211         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
10212         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
10213         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
10214         as optional.
10215         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
10216         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
10217         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
10218         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
10219         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
10220         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
10221         specify as optional.
10222         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
10223         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
10224         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
10225         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
10226         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
10227         [XPG3] (NL_LANGMAX): Likewise.
10228         [POSIX || XPG3] (NL_MSGMAX): Likewise.
10229         [POSIX || XPG3] (NL_NMAX): Likewise.
10230         [POSIX || XPG3] (NL_SETMAX): Likewise.
10231         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
10232         [XPG3] (NZERO): Likewise.
10233         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
10234         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
10235         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
10236         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
10237         (REG_ERANGE): Expect.
10238         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
10239         optional-constant.
10240         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
10241         Use (void) in prototype.
10242         [POSIX] (*_t): Allow.
10243         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
10244         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
10245         (WRDE_BADVAL): Expect.
10246
10247         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
10248         expect.
10249         [XPG3 || XPG4] (O_RSYNC): Likewise.
10250         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
10251         Likewise.
10252         [XPG3 || XPG4] (pthread_sigmask): Likewise.
10253         [XPG3 || XPG4] (sigqueue): Likewise.
10254         [XPG3 || XPG4] (sigtimedwait): Likewise.
10255         [XPG3 || XPG4] (sigwaitinfo): Likewise.
10256         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
10257         [XPG3 || XPG4] (vsnprintf): Likewise.
10258         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
10259         Likewise.
10260         [XPG3 || XPG4] (blksize_t): Likewise.
10261         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
10262         Likewise.
10263         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
10264         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
10265         [XPG3 || XPG4] (struct itimerspec): Likewise.
10266         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
10267         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
10268         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
10269         [XPG3 || XPG4] (clockid_t): Likewise.
10270         [XPG3 || XPG4] (timer_t): Likewise.
10271         [XPG3 || XPG4] (clock_getres): Likewise.
10272         [XPG3 || XPG4] (clock_gettime): Likewise.
10273         [XPG3 || XPG4] (clock_settime): Likewise.
10274         [XPG3 || XPG4] (nanosleep): Likewise.
10275         [XPG3 || XPG4] (timer_create): Likewise.
10276         [XPG3 || XPG4] (timer_delete): Likewise.
10277         [XPG3 || XPG4] (timer_gettime): Likewise.
10278         [XPG3 || XPG4] (timer_getoverrun): Likewise.
10279         [XPG3 || XPG4] (timer_settime): Likewise.
10280         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
10281         [XPG3 || XPG4] (getlogin_r): Likewise.
10282         [XPG3 || XPG4] (pread): Likewise.
10283         [XPG3 || XPG4] (pthread_atfork): Likewise.
10284         [XPG3 || XPG4] (pwrite): Likewise.
10285
10286         [BZ #14835]
10287         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
10288         <bits/siginfo.h>.
10289
10290 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
10291
10292         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
10293         finalizing MALLSTREAM.
10294
10295         * sysdeps/mach/hurd/syncfs.c: New file.
10296
10297 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
10298
10299         [BZ #14719]
10300         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
10301         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
10302         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
10303         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
10304         (_nss_dns_gethostbyname4_r): Likewise.
10305         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
10306         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
10307
10308 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
10309
10310         [BZ #13763]
10311         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
10312
10313 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
10314
10315         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
10316         * elf/cache.c (print_entry): Print ",AArch64" for
10317         FLAG_AARCH64_LIB64
10318
10319         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
10320         * elf/cache.c (print_entry): Print ",hard-float" for
10321         FLAG_ARM_LIBHF.
10322
10323 2012-11-18  David S. Miller  <davem@davemloft.net>
10324
10325         With help from Joseph Myers.
10326         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
10327         cutoff to 2**-13.
10328         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
10329         cutoff to 2**-25.
10330         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
10331         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
10332         small.
10333         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
10334         * math/libm-test.inc (y0_test): New tests.
10335         (y1_test): New tests.
10336         * sysdeps/i386/fpu/libm-test-ulps: Update.
10337         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10338         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10339
10340 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
10341
10342         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
10343         64-bit targets.
10344         * configure: Regenerated.
10345
10346 2012-11-17  David S. Miller  <davem@davemloft.net>
10347
10348         [BZ #14811]
10349         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
10350         nonzero exponents with absolute value below 0x1p-128 to +/-
10351         0x1p-128.
10352
10353 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
10354
10355         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
10356
10357         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
10358
10359         * posix/getconf-speclist.c: New file.
10360         * posix/posix-envs.def: Likewise.
10361         * posix/confstr.c (START_ENV_GROUP): New macro.
10362         (END_ENV_GROUP): Likewise.
10363         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
10364         (KNOWN_PRESENT_ENV_STRING): Likewise.
10365         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
10366         (UNKNOWN_ENVIRONMENT): Likewise.
10367         (confstr): Include posix-envs.def instead of handling
10368         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
10369         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
10370         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
10371         (END_ENV_GROUP): Likewise.
10372         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
10373         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
10374         (UNKNOWN_ENVIRONMENT): Likewise.
10375         (__sysconf): Include posix-envs.def instead of handling associated
10376         cases directly here.
10377         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
10378         preprocessing getconf-speclist.c rather than running getconf or
10379         generating empty file.
10380
10381 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
10382
10383         * scripts/check-local-headers.sh: Ignore 'mach' headers.
10384
10385 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
10386
10387         [BZ #14672]
10388         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
10389
10390 2012-11-16  David S. Miller  <davem@davemloft.net>
10391
10392         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
10393         smaller than LDBL_EPSILON/2.0L, just return xm1.
10394
10395 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
10396
10397         * elf/tst-array1.c (init): Set constructor priority to 1000.
10398         (fini): Set destructor priority to 1000.
10399         * elf/tst-array2dep.c: Likewise.
10400
10401 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10402
10403         [BZ #11741]
10404         * libio/fileops.c (_IO_new_file_write): Correctly return error.
10405         (_IO_new_file_xsputn): Also return EOF if none of the input
10406         data was written when overflow failed.
10407         * libio/iopadn.c (_IO_padn): Likewise.
10408         * libio/iowpadn.c (_IO_wpadn): Likewise.
10409         * stdio-common/tst-put-error.c: Add copyright notice.
10410         (do_test): Add case for printing padded string.
10411         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
10412         _IO_padn returned error.
10413         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
10414         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
10415         return EOF.
10416
10417 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10418
10419         * libio/libioP.h: Add comment note that the references to C++
10420         bits are now obsolete.
10421
10422 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10423
10424         * math/libm-test.inc (check_complex): Use asprintf.
10425
10426 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
10427
10428         * debug/pcprofiledump.c (print_version): Update copyright year.
10429         * malloc/memusagestat.c (print_version): Likewise.
10430
10431 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
10432
10433         [BZ #14831]
10434         * elf/Makefile (tests): Add tst-audit8.
10435         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
10436         ($(objpfx)tst-audit8.out): New target.
10437         (tst-audit8-ENV): New variable.
10438         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
10439         audit if l_reloc_result is NULL.
10440         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
10441         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
10442         * elf/tst-audit8.c: New file.
10443
10444 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10445
10446         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
10447         * misc/Makefile (CFLAGS-select.c): Define.
10448         * posix/Makefile (CFLAGS-pause.c): Define.
10449
10450 2012-11-13  David S. Miller  <davem@davemloft.net>
10451
10452         * crypt/Makefile: Move test targets after toplevel Rules
10453         inclusion.  Grab any necessary sysdep routines when linking.
10454         * crypt/md5.c (md5_process_block): Remove define, we will always
10455         name it __md5_process_block.
10456         (md5_finish_ctx): Update md5_process_block call.
10457         (md5_stream): Likewise.
10458         (md5_process_bytes): Likewise.
10459         (md5_process_block): Rename to __md5_process_block and move to ...
10460         * crypt/md5-block.c: ... here.
10461         * crypt/sha256.c (sha256_process_block): Move to ...
10462         * crypt/sha256-block.c: ... here.
10463         * crypt/sha512.c (sha512_process_block): Move to ...
10464         * crypt/sha512-block.c: ... here.
10465         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
10466         path.
10467         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
10468         * sysdeps/sparc/sparc64/multiarch/Makefile
10469         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
10470         crypt subdir.
10471         (localedef-aux): Add md5 crypto assembler when in locale subdir.
10472         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
10473         multiarch changes.
10474         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
10475         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
10476         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
10477         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
10478         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
10479         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
10480         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
10481         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
10482         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
10483         file.
10484         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
10485         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
10486         file.
10487         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
10488
10489 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
10490
10491         * timezone/tzselect.ksh: Update from tzcode git revision
10492         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
10493         * timezone/zdump.c: Likewise.
10494         * timezone/zic.c: Likewise.
10495         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
10496         in TZVERSION setting, not $(PKGVERSION).
10497         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
10498         REPORT_BUGS_TO settings.
10499
10500         [BZ #14838]
10501         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
10502         macro.
10503
10504 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10505
10506         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
10507         detection to immediately after _FP_ROUND().
10508         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
10509         bits are 0.
10510
10511 2012-11-11  David S. Miller  <davem@davemloft.net>
10512
10513         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
10514         inttypes.h
10515         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
10516         __close rather than their public counterparts.
10517
10518 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
10519
10520         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
10521         file.
10522         [UNIX98] (sem_timedwait): Do not expect.
10523         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
10524         [XPG4 || UNIX98] (sockatmark): Do not expect.
10525         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
10526         (clock_getcpuclockid): Do not expect.
10527         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
10528         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
10529         Do not expect.
10530         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
10531         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
10532         [UNIX98] (vwscanf): Likewise.
10533         [UNIX98] (vswscanf): Likewise.
10534
10535 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
10536
10537         * timezone/version.h: Remove file.
10538         * timezone/README: Do not refer to version.h.
10539         * timezone/Makefile ($(objpfx)zic.o): New dependency on
10540         $(objpfx)version.h.
10541         ($(objpfx)zdump.o): Likewise.
10542         ($(objpfx)version.h): New target.
10543
10544         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
10545         2012i.
10546         * timezone/README: Don't mention modification to tzselect.ksh.
10547         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
10548         work on unmodified tzselect.ksh.  Substitute version numbers in
10549         tzselect.ksh.
10550
10551         * Makefile (format-me): Remove.
10552         (INSTALL): Adjust indentation.  Use commands directly instead of
10553         using $(format-me).
10554
10555         * aclocal.m4 (ACX_PKGVERSION): New macro.
10556         (ACX_BUGURL): Likewise.
10557         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
10558         (PKGVERSION): New AC_DEFINE_UNQUOTED.
10559         (REPORT_BUGS_TO): Likewise.
10560         * configure: Regenerated.
10561         * config.h.in (PKGVERSION): New macro.
10562         (REPORT_BUGS_TO): Likewise.
10563         * config.make.in (PKGVERSION): New variable.
10564         (PKGVERSION_TEXI): Likewise.
10565         (REPORT_BUGS_TO): Likewise.
10566         (REPORT_BUGS_TEXI): Likewise.
10567         * Makefile (format-me): Use -I$(common-objpfx)manual.
10568         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
10569         ($(common-objpfx)manual/%): New target.
10570         (manual/%): Remove target.
10571         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
10572         (print_version): Use PKGVERSION.
10573         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
10574         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
10575         and REPORT_BUGS_TO.
10576         ($(objpfx)xtrace): Likewise.
10577         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
10578         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
10579         (print_version): Use PKGVERSION.
10580         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
10581         (do_version): Use PKGVERSION.
10582         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
10583         REPORT_BUGS_TO.
10584         (common-ldd-rewrite): Likewise.
10585         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
10586         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
10587         (print_version): Use PKGVERSION.
10588         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
10589         * elf/pldd.c (argp_program_bug_address): Remove variable.
10590         (more_help): New function.
10591         (argp): Use more_help.
10592         (print_version): Use PKGVERSION.
10593         * elf/sln.c (main): Use PKGVERSION.
10594         (usage): Use REPORT_BUGS_TO.
10595         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
10596         (top level): Use PKGVERSION.
10597         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
10598         (print_version): Use PKGVERSION.
10599         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
10600         (print_version): Use PKGVERSION.
10601         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
10602         (print_version): Use PKGVERSION.
10603         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
10604         (print_version): Use PKGVERSION.
10605         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
10606         (print_version): Use PKGVERSION.
10607         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
10608         (print_version): Use PKGVERSION.
10609         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
10610         and BUGURL.
10611         ($(objpfx)memusage): Likewise.
10612         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
10613         (do_version): Use PKGVERSION.
10614         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
10615         (print_version): Use PKGVERSION.
10616         * malloc/mtrace.pl ($PACKAGE): Remove variable.
10617         ($PKGVERSION): New variable.
10618         ($REPORT_BUGS_TO): Likewise.
10619         (usage): Use $REPORT_BUGS_TO.
10620         (top level): Use $PKGVERSION.
10621         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
10622         ($(objpfx)pkgvers.texi): New rule.
10623         ($(objpfx)stamp-pkgvers): Likewise.
10624         * manual/install.texi: Include pkgvers.texi.
10625         (--with-pkgversion): Document new configure option.
10626         (--with-bugurl): Likewise.
10627         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
10628         than necessarily for this particular distribution.  Use
10629         REPORT_BUGS_TO for where to report bugs.
10630         * INSTALL: Regenerated.
10631         * manual/libc.texinfo: Include pkgvers.texi.
10632         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
10633         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
10634         (print_version): Use PKGVERSION.
10635         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
10636         (print_version): Use PKGVERSION.
10637         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
10638         (print_version): Use PKGVERSION.
10639         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
10640         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
10641         macro.
10642         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
10643         (print_version): Use PKGVERSION.
10644         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
10645         (print_version): Use PKGVERSION.
10646         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
10647         and PKGVERSION.
10648
10649         * timezone/checktab.awk: Update from tzcode 2012i.
10650         * timezone/ialloc.c: Likewise.
10651         * timezone/private.h: Likewise.
10652         * timezone/scheck.c: Likewise.
10653         * timezone/tzfile.h: Likewise.
10654         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
10655         (TZVERSION): Hardcode tzcode version number.
10656         * timezone/zdump.c: Update from tzcode 2012i.
10657         * timezone/zic.c: Likewise.
10658         * timezone/version.h: New file.
10659         * timezone/README: Describe version.h.  Update upstream location.
10660
10661         [BZ #14824]
10662         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
10663         (mktemp): Enable declaration.
10664         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
10665         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
10666         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
10667         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
10668         Likewise.
10669         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
10670         Likewise.
10671         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
10672         Likewise.
10673         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
10674         Likewise.
10675         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
10676         Likewise.
10677         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
10678         Likewise.
10679
10680         [BZ #14821]
10681         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
10682         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
10683         for copies of such integer values.
10684         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
10685         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
10686
10687 2012-11-09  Andreas Jaeger  <aj@suse.de>
10688
10689         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
10690         definitions and declarations that are provided by
10691         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
10692
10693 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10694
10695         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
10696         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
10697         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
10698         definition.
10699
10700 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10701
10702         * elf/elf.h: Update comment before AArch64 relocations.
10703
10704 2012-11-07  David S. Miller  <davem@davemloft.net>
10705
10706         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
10707         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10708         (__start_context): Declare.
10709         (__makecontext_ret): Delete.
10710         (__makecontext): Hook up __start_context instead of
10711         __makecontext_ret.
10712         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
10713         (sysdep_routines): Add __start_context when in stdlib.
10714
10715 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
10716
10717         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
10718         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
10719         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
10720         hardcoded "nm".
10721         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
10722         (READELF): New variable.  Use it instead of hardcoded "readelf".
10723
10724 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10725
10726         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
10727         * sysdeps/x86/Makefile: Here.
10728         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
10729         * sysdeps/x86/tst-xmmymm.sh: This.
10730
10731 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
10732
10733         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
10734         expectations.
10735         [UNIX98] (pthread_barrier_t): Do not expect.
10736         [UNIX98] (pthread_barrierattr_t): Likewise.
10737         [UNIX98] (pthread_spinlock_t): Likewise.
10738         [UNIX98] (pthread_barrier_destroy): Likewise.
10739         [UNIX98] (pthread_barrier_init): Likewise.
10740         [UNIX98] (pthread_barrier_wait): Likewise.
10741         [UNIX98] (pthread_barrierattr_destroy): Likewise.
10742         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
10743         [UNIX98] (pthread_barrierattr_init): Likewise.
10744         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
10745         [UNIX98] (pthread_getcpuclockid): Likewise.
10746         [UNIX98] (pthread_mutex_timedlock): Likewise.
10747         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
10748         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
10749         [UNIX98] (pthread_sigmask): Likewise.
10750         [UNIX98] (pthread_spin_destroy): Likewise.
10751         [UNIX98] (pthread_spin_init): Likewise.
10752         [UNIX98] (pthread_spin_lock): Likewise.
10753         [UNIX98] (pthread_spin_trylock): Likewise.
10754         [UNIX98] (pthread_spin_unlock): Likewise.
10755         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
10756         Do not expect.
10757         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
10758         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
10759         [XPG3 || XPG4] (pthread_cond_t): Likewise.
10760         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
10761         [XPG3 || XPG4] (pthread_key_t): Likewise.
10762         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
10763         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
10764         [XPG3 || XPG4] (pthread_once_t): Likewise.
10765         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
10766         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
10767         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
10768         [XPG3 || XPG4] (pthread_t): Likewise.
10769
10770         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
10771         not expect.
10772         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
10773
10774         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
10775         Change function return type to int.
10776
10777         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
10778         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
10779         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
10780         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
10781         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
10782         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
10783         [!POSIX] (posix_madvise): Likewise.
10784         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
10785         && !UNIX98].
10786         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
10787         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
10788         (mode_t): Likewise.
10789         (posix_mem_offset): Likewise.
10790         (posix_typed_mem_get_info): Likewise.
10791         (posix_typed_mem_open): Likewise.
10792
10793         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
10794         Change condition to [XOPEN2K8].
10795
10796         * conform/conformtest.pl: Preprocess allow-header data with -x c
10797         instead of from stdin.
10798         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
10799         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
10800         [C99-based standards] (cerfc): Likewise.
10801         [C99-based standards] (cexp2): Likewise.
10802         [C99-based standards] (cexpm1): Likewise.
10803         [C99-based standards] (clog10): Likewise.
10804         [C99-based standards] (clog1p): Likewise.
10805         [C99-based standards] (clog2): Likewise.
10806         [C99-based standards] (clgamma): Likewise.
10807         [C99-based standards] (ctgamma): Likewise.
10808         [C99-based standards] (cerff): Likewise.
10809         [C99-based standards] (cerfcf): Likewise.
10810         [C99-based standards] (cexp2f): Likewise.
10811         [C99-based standards] (cexpm1f): Likewise.
10812         [C99-based standards] (clog10f): Likewise.
10813         [C99-based standards] (clog1pf): Likewise.
10814         [C99-based standards] (clog2f): Likewise.
10815         [C99-based standards] (clgammaf): Likewise.
10816         [C99-based standards] (ctgammaf): Likewise.
10817         [C99-based standards] (cerfl): Likewise.
10818         [C99-based standards] (cerfcl): Likewise.
10819         [C99-based standards] (cexp2l): Likewise.
10820         [C99-based standards] (cexpm1l): Likewise.
10821         [C99-based standards] (clog10l): Likewise.
10822         [C99-based standards] (clog1pl): Likewise.
10823         [C99-based standards] (clog2l): Likewise.
10824         [C99-based standards] (clgammal): Likewise.
10825         [C99-based standards] (ctgammal): Likewise.
10826         * conform/data/inttypes.h-data [C99-based standards]: Include
10827         stdint.h-data.  Remove all expectations for stdint.h contents.
10828         [C99-based standards] (PRI*): Do not allow.
10829         [C99-based standards] (SCN*): Likewise.
10830         [C99-based standards] (*_t): Likewise.
10831         [C99-based-standards] (PRId8): Expect macro.
10832         [C99-based-standards] (PRIi8): Likewise.
10833         [C99-based-standards] (PRIo8): Likewise.
10834         [C99-based-standards] (PRIu8): Likewise.
10835         [C99-based-standards] (PRIx8): Likewise.
10836         [C99-based-standards] (PRIX8): Likewise.
10837         [C99-based-standards] (SCNd8): Likewise.
10838         [C99-based-standards] (SCNi8): Likewise.
10839         [C99-based-standards] (SCNo8): Likewise.
10840         [C99-based-standards] (SCNu8): Likewise.
10841         [C99-based-standards] (SCNx8): Likewise.
10842         [C99-based-standards] (PRIdLEAST8): Likewise.
10843         [C99-based-standards] (PRIiLEAST8): Likewise.
10844         [C99-based-standards] (PRIoLEAST8): Likewise.
10845         [C99-based-standards] (PRIuLEAST8): Likewise.
10846         [C99-based-standards] (PRIxLEAST8): Likewise.
10847         [C99-based-standards] (PRIXLEAST8): Likewise.
10848         [C99-based-standards] (SCNdLEAST8): Likewise.
10849         [C99-based-standards] (SCNiLEAST8): Likewise.
10850         [C99-based-standards] (SCNoLEAST8): Likewise.
10851         [C99-based-standards] (SCNuLEAST8): Likewise.
10852         [C99-based-standards] (SCNxLEAST8): Likewise.
10853         [C99-based-standards] (PRIdFAST8): Likewise.
10854         [C99-based-standards] (PRIiFAST8): Likewise.
10855         [C99-based-standards] (PRIoFAST8): Likewise.
10856         [C99-based-standards] (PRIuFAST8): Likewise.
10857         [C99-based-standards] (PRIxFAST8): Likewise.
10858         [C99-based-standards] (PRIXFAST8): Likewise.
10859         [C99-based-standards] (SCNdFAST8): Likewise.
10860         [C99-based-standards] (SCNiFAST8): Likewise.
10861         [C99-based-standards] (SCNoFAST8): Likewise.
10862         [C99-based-standards] (SCNuFAST8): Likewise.
10863         [C99-based-standards] (SCNxFAST8): Likewise.
10864         [C99-based-standards] (PRId16): Likewise.
10865         [C99-based-standards] (PRIi16): Likewise.
10866         [C99-based-standards] (PRIo16): Likewise.
10867         [C99-based-standards] (PRIu16): Likewise.
10868         [C99-based-standards] (PRIx16): Likewise.
10869         [C99-based-standards] (PRIX16): Likewise.
10870         [C99-based-standards] (SCNd16): Likewise.
10871         [C99-based-standards] (SCNi16): Likewise.
10872         [C99-based-standards] (SCNo16): Likewise.
10873         [C99-based-standards] (SCNu16): Likewise.
10874         [C99-based-standards] (SCNx16): Likewise.
10875         [C99-based-standards] (PRIdLEAST16): Likewise.
10876         [C99-based-standards] (PRIiLEAST16): Likewise.
10877         [C99-based-standards] (PRIoLEAST16): Likewise.
10878         [C99-based-standards] (PRIuLEAST16): Likewise.
10879         [C99-based-standards] (PRIxLEAST16): Likewise.
10880         [C99-based-standards] (PRIXLEAST16): Likewise.
10881         [C99-based-standards] (SCNdLEAST16): Likewise.
10882         [C99-based-standards] (SCNiLEAST16): Likewise.
10883         [C99-based-standards] (SCNoLEAST16): Likewise.
10884         [C99-based-standards] (SCNuLEAST16): Likewise.
10885         [C99-based-standards] (SCNxLEAST16): Likewise.
10886         [C99-based-standards] (PRIdFAST16): Likewise.
10887         [C99-based-standards] (PRIiFAST16): Likewise.
10888         [C99-based-standards] (PRIoFAST16): Likewise.
10889         [C99-based-standards] (PRIuFAST16): Likewise.
10890         [C99-based-standards] (PRIxFAST16): Likewise.
10891         [C99-based-standards] (PRIXFAST16): Likewise.
10892         [C99-based-standards] (SCNdFAST16): Likewise.
10893         [C99-based-standards] (SCNiFAST16): Likewise.
10894         [C99-based-standards] (SCNoFAST16): Likewise.
10895         [C99-based-standards] (SCNuFAST16): Likewise.
10896         [C99-based-standards] (SCNxFAST16): Likewise.
10897         [C99-based-standards] (PRId32): Likewise.
10898         [C99-based-standards] (PRIi32): Likewise.
10899         [C99-based-standards] (PRIo32): Likewise.
10900         [C99-based-standards] (PRIu32): Likewise.
10901         [C99-based-standards] (PRIx32): Likewise.
10902         [C99-based-standards] (PRIX32): Likewise.
10903         [C99-based-standards] (SCNd32): Likewise.
10904         [C99-based-standards] (SCNi32): Likewise.
10905         [C99-based-standards] (SCNo32): Likewise.
10906         [C99-based-standards] (SCNu32): Likewise.
10907         [C99-based-standards] (SCNx32): Likewise.
10908         [C99-based-standards] (PRIdLEAST32): Likewise.
10909         [C99-based-standards] (PRIiLEAST32): Likewise.
10910         [C99-based-standards] (PRIoLEAST32): Likewise.
10911         [C99-based-standards] (PRIuLEAST32): Likewise.
10912         [C99-based-standards] (PRIxLEAST32): Likewise.
10913         [C99-based-standards] (PRIXLEAST32): Likewise.
10914         [C99-based-standards] (SCNdLEAST32): Likewise.
10915         [C99-based-standards] (SCNiLEAST32): Likewise.
10916         [C99-based-standards] (SCNoLEAST32): Likewise.
10917         [C99-based-standards] (SCNuLEAST32): Likewise.
10918         [C99-based-standards] (SCNxLEAST32): Likewise.
10919         [C99-based-standards] (PRIdFAST32): Likewise.
10920         [C99-based-standards] (PRIiFAST32): Likewise.
10921         [C99-based-standards] (PRIoFAST32): Likewise.
10922         [C99-based-standards] (PRIuFAST32): Likewise.
10923         [C99-based-standards] (PRIxFAST32): Likewise.
10924         [C99-based-standards] (PRIXFAST32): Likewise.
10925         [C99-based-standards] (SCNdFAST32): Likewise.
10926         [C99-based-standards] (SCNiFAST32): Likewise.
10927         [C99-based-standards] (SCNoFAST32): Likewise.
10928         [C99-based-standards] (SCNuFAST32): Likewise.
10929         [C99-based-standards] (SCNxFAST32): Likewise.
10930         [C99-based-standards] (PRId64): Likewise.
10931         [C99-based-standards] (PRIi64): Likewise.
10932         [C99-based-standards] (PRIo64): Likewise.
10933         [C99-based-standards] (PRIu64): Likewise.
10934         [C99-based-standards] (PRIx64): Likewise.
10935         [C99-based-standards] (PRIX64): Likewise.
10936         [C99-based-standards] (SCNd64): Likewise.
10937         [C99-based-standards] (SCNi64): Likewise.
10938         [C99-based-standards] (SCNo64): Likewise.
10939         [C99-based-standards] (SCNu64): Likewise.
10940         [C99-based-standards] (SCNx64): Likewise.
10941         [C99-based-standards] (PRIdLEAST64): Likewise.
10942         [C99-based-standards] (PRIiLEAST64): Likewise.
10943         [C99-based-standards] (PRIoLEAST64): Likewise.
10944         [C99-based-standards] (PRIuLEAST64): Likewise.
10945         [C99-based-standards] (PRIxLEAST64): Likewise.
10946         [C99-based-standards] (PRIXLEAST64): Likewise.
10947         [C99-based-standards] (SCNdLEAST64): Likewise.
10948         [C99-based-standards] (SCNiLEAST64): Likewise.
10949         [C99-based-standards] (SCNoLEAST64): Likewise.
10950         [C99-based-standards] (SCNuLEAST64): Likewise.
10951         [C99-based-standards] (SCNxLEAST64): Likewise.
10952         [C99-based-standards] (PRIdFAST64): Likewise.
10953         [C99-based-standards] (PRIiFAST64): Likewise.
10954         [C99-based-standards] (PRIoFAST64): Likewise.
10955         [C99-based-standards] (PRIuFAST64): Likewise.
10956         [C99-based-standards] (PRIxFAST64): Likewise.
10957         [C99-based-standards] (PRIXFAST64): Likewise.
10958         [C99-based-standards] (SCNdFAST64): Likewise.
10959         [C99-based-standards] (SCNiFAST64): Likewise.
10960         [C99-based-standards] (SCNoFAST64): Likewise.
10961         [C99-based-standards] (SCNuFAST64): Likewise.
10962         [C99-based-standards] (SCNxFAST64): Likewise.
10963         [C99-based-standards] (PRIdMAX): Likewise.
10964         [C99-based-standards] (PRIiMAX): Likewise.
10965         [C99-based-standards] (PRIoMAX): Likewise.
10966         [C99-based-standards] (PRIuMAX): Likewise.
10967         [C99-based-standards] (PRIxMAX): Likewise.
10968         [C99-based-standards] (PRIXMAX): Likewise.
10969         [C99-based-standards] (SCNdMAX): Likewise.
10970         [C99-based-standards] (SCNiMAX): Likewise.
10971         [C99-based-standards] (SCNoMAX): Likewise.
10972         [C99-based-standards] (SCNuMAX): Likewise.
10973         [C99-based-standards] (SCNxMAX): Likewise.
10974         [C99-based-standards] (PRIdPTR): Likewise.
10975         [C99-based-standards] (PRIiPTR): Likewise.
10976         [C99-based-standards] (PRIoPTR): Likewise.
10977         [C99-based-standards] (PRIuPTR): Likewise.
10978         [C99-based-standards] (PRIxPTR): Likewise.
10979         [C99-based-standards] (PRIXPTR): Likewise.
10980         [C99-based-standards] (SCNdPTR): Likewise.
10981         [C99-based-standards] (SCNiPTR): Likewise.
10982         [C99-based-standards] (SCNoPTR): Likewise.
10983         [C99-based-standards] (SCNuPTR): Likewise.
10984         [C99-based-standards] (SCNxPTR): Likewise.
10985         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
10986         allow.
10987         * conform/data/stdint.h-data: Update comments to clarify
10988         requirements.
10989         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
10990         type.
10991         [C99-based standards] (INT8_MAX): Likewise.
10992         [C99-based standards] (INT16_MIN): Likewise.
10993         [C99-based standards] (INT16_MAX): Likewise.
10994         [C99-based standards] (INT32_MIN): Likewise.
10995         [C99-based standards] (INT32_MAX): Likewise.
10996         [C99-based standards] (INT64_MIN): Likewise.
10997         [C99-based standards] (INT64_MAX): Likewise.
10998         [C99-based standards] (UINT8_MAX): Likewise.
10999         [C99-based standards] (UINT16_MAX): Likewise.
11000         [C99-based standards] (UINT32_MAX): Likewise.
11001         [C99-based standards] (UINT64_MAX): Likewise.
11002         [C99-based standards] (INT_LEAST8_MIN): Likewise.
11003         [C99-based standards] (INT_LEAST8_MAX): Likewise.
11004         [C99-based standards] (INT_LEAST16_MIN): Likewise.
11005         [C99-based standards] (INT_LEAST16_MAX): Likewise.
11006         [C99-based standards] (INT_LEAST32_MIN): Likewise.
11007         [C99-based standards] (INT_LEAST32_MAX): Likewise.
11008         [C99-based standards] (INT_LEAST64_MIN): Likewise.
11009         [C99-based standards] (INT_LEAST64_MAX): Likewise.
11010         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
11011         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
11012         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
11013         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
11014         [C99-based standards] (INT_FAST8_MIN): Likewise.
11015         [C99-based standards] (INT_FAST8_MAX): Likewise.
11016         [C99-based standards] (INT_FAST16_MIN): Likewise.
11017         [C99-based standards] (INT_FAST16_MAX): Likewise.
11018         [C99-based standards] (INT_FAST32_MIN): Likewise.
11019         [C99-based standards] (INT_FAST32_MAX): Likewise.
11020         [C99-based standards] (INT_FAST64_MIN): Likewise.
11021         [C99-based standards] (INT_FAST64_MAX): Likewise.
11022         [C99-based standards] (UINT_FAST8_MAX): Likewise.
11023         [C99-based standards] (UINT_FAST16_MAX): Likewise.
11024         [C99-based standards] (UINT_FAST32_MAX): Likewise.
11025         [C99-based standards] (UINT_FAST64_MAX): Likewise.
11026         [C99-based standards] (INTPTR_MIN): Likewise.
11027         [C99-based standards] (INTPTR_MAX): Likewise.
11028         [C99-based standards] (UINTPTR_MAX): Likewise.
11029         [C99-based standards] (INTMAX_MIN): Likewise.
11030         [C99-based standards] (INTMAX_MAX): Likewise.
11031         [C99-based standards] (UINTMAX_MAX): Likewise.
11032         [C99-based standards] (PTRDIFF_MIN): Likewise.
11033         [C99-based standards] (PTRDIFF_MAX): Likewise.
11034         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
11035         [C99-based standards] (SIZE_MAX): Likewise.
11036         [C99-based standards] (WCHAR_MAX): Likewise.
11037         [C99-based standards] (WINT_MAX): Likewise.
11038         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
11039         constraint on value.
11040         [C99-based standards] (WCHAR_MIN): Likewise.
11041         [C99-based standards] (WINT_MIN): Likewise.
11042         [C99-based standards] (*_t): Allow.
11043         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
11044         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
11045         Include math.h-data and complex.h-data.  Remove all expectations
11046         of math.h and complex.h contents.
11047         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
11048         at end of line.
11049         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
11050         (struct tm): Expect tag.
11051         [C99-based-standards] (wcstof): Expect function.
11052         [C99-based-standards] (wcstold): Likewise.
11053         [C99-based-standards] (wcstoll): Likewise.
11054         [C99-based-standards] (wcstoull): Likewise.
11055         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
11056         macro-int-constant.  Specify type.
11057         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
11058         constraint on value.
11059         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
11060         Specify type.
11061         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
11062         Specify value.
11063         [ISO C standards]: Do not allow headers.
11064         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
11065         wcs[abcdefghijklmnopqrstuvwxyz]*.
11066         [ISO C standards] (*_t): Do not allow.
11067         * conform/data/wctype.h-data [C99-based standards] (iswblank):
11068         Expect function.
11069         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
11070         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
11071         Specify type.
11072         [ISO C standards]: Do not allow headers.
11073         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
11074         is[abcdefghijklmnopqrstuvwxyz]*.
11075         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
11076         to[abcdefghijklmnopqrstuvwxyz]*.
11077         [ISO C standards] (*_t): Do not allow.
11078         * conform/data/stdalign.h-data: New file.
11079         * conform/data/stdbool.h-data: Likewise.
11080         * conform/data/stdnoreturn.h-data: Likewise.
11081
11082 2012-11-07  Roland McGrath  <roland@hack.frob.com>
11083
11084         [BZ #14815]
11085         * manual/filesys.texi (Directory Entries): Typo fix.
11086         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
11087
11088 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11089
11090         * elf/elf.h (EM_AARCH64): New macro.
11091         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
11092         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
11093         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
11094         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
11095         (R_AARCH64_TLSDESC): Likewise.
11096         (NT_ARM_TLS): Likewise.
11097         (NT_ARM_HW_BREAK): Likewise.
11098         (NT_ARM_HW_WATCH): Likewise.
11099
11100 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11101
11102         [BZ #14811]
11103         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
11104         (__ieee754_powl): Saturate nonzero exponents with absolute value
11105         below 0x1p-79 to +/- 0x1p-79.
11106         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
11107         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
11108         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
11109         nonzero exponents with absolute value below 0x1p-32 to +/-
11110         0x1p-32.
11111         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
11112         (__ieee754_powl): Saturate nonzero exponents with absolute value
11113         below 0x1p-79 to +/- 0x1p-79.
11114         * math/libm-test.inc (pow_test): Add more tests.
11115
11116 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11117
11118         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
11119         _dl_s390_cap_flags with kernel. Increase string length.
11120         (_dl_s390_platforms): Add z196 and zEC12.
11121
11122 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11123
11124         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
11125         Change XOPEN21K to XOPEN2K.
11126
11127 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11128
11129         * string/memmove.c: Use memcpy when possible.
11130
11131 2012-11-06  Andreas Jaeger  <aj@suse.de>
11132
11133         * po/eo.po: Update from translation team.
11134
11135 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
11136
11137         [BZ #14793]
11138         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
11139         exponent and small x and y exponents, scale x or y up.  Increase
11140         by 2 the exponent used in scaling up.
11141         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11142         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11143         * math/libm-test.inc (fma_test): Add more tests.
11144         (fma_test_towardzero): Likewise.
11145         (fma_test_downward): Likewise.
11146         (fma_test_upward): Likewise.
11147
11148 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
11149
11150         [BZ #14805]
11151         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
11152         fenv_t *.
11153
11154         [BZ #14801]
11155         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
11156         namespace for names of struct fields.
11157         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
11158         fenv_t fields.
11159         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
11160         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
11161
11162 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11163
11164         [BZ #3665]
11165         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
11166
11167 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
11168
11169         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
11170         PTR_DEMANGLE.
11171
11172         [BZ #5246]
11173         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
11174         PTR_DEMANGLE.
11175
11176 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
11177
11178         [BZ #14797]
11179         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
11180         definitely overflow as x * y not x * y + z.
11181         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11182         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11183         * math/libm-test.inc (fma_test): Add more tests.
11184         (fma_test_towardzero): Likewise.
11185         (fma_test_downward): Likewise.
11186         (fma_test_upward): Likewise.
11187
11188 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
11189
11190         [BZ #157]
11191
11192         * include/stub-tag.h: Remove file.
11193         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
11194         '#include' of it.
11195         * manual/maint.texi (Porting): Don't reference it.
11196         * Makerules ($(objpfx)stubs): Likewise.
11197         * dirent/closedir.c: Don't include <stub-tag.h>.
11198         * dirent/dirfd.c: Likewise.
11199         * dirent/fdopendir.c: Likewise.
11200         * dirent/getdents.c: Likewise.
11201         * dirent/getdents64.c: Likewise.
11202         * dirent/opendir.c: Likewise.
11203         * dirent/readdir.c: Likewise.
11204         * dirent/readdir64.c: Likewise.
11205         * dirent/readdir64_r.c: Likewise.
11206         * dirent/readdir_r.c: Likewise.
11207         * dirent/rewinddir.c: Likewise.
11208         * dirent/seekdir.c: Likewise.
11209         * dirent/telldir.c: Likewise.
11210         * gmon/profil.c: Likewise.
11211         * grp/setgroups.c: Likewise.
11212         * inet/if_index.c: Likewise.
11213         * io/access.c: Likewise.
11214         * io/chdir.c: Likewise.
11215         * io/chmod.c: Likewise.
11216         * io/chown.c: Likewise.
11217         * io/close.c: Likewise.
11218         * io/dup.c: Likewise.
11219         * io/dup2.c: Likewise.
11220         * io/dup3.c: Likewise.
11221         * io/euidaccess.c: Likewise.
11222         * io/faccessat.c: Likewise.
11223         * io/fchdir.c: Likewise.
11224         * io/fchmod.c: Likewise.
11225         * io/fchmodat.c: Likewise.
11226         * io/fchown.c: Likewise.
11227         * io/fchownat.c: Likewise.
11228         * io/fcntl.c: Likewise.
11229         * io/flock.c: Likewise.
11230         * io/fstatfs.c: Likewise.
11231         * io/fstatfs64.c: Likewise.
11232         * io/fstatvfs.c: Likewise.
11233         * io/fstatvfs64.c: Likewise.
11234         * io/futimens.c: Likewise.
11235         * io/fxstat.c: Likewise.
11236         * io/fxstat64.c: Likewise.
11237         * io/fxstatat.c: Likewise.
11238         * io/fxstatat64.c: Likewise.
11239         * io/getcwd.c: Likewise.
11240         * io/isatty.c: Likewise.
11241         * io/lchmod.c: Likewise.
11242         * io/lchown.c: Likewise.
11243         * io/link.c: Likewise.
11244         * io/linkat.c: Likewise.
11245         * io/lseek.c: Likewise.
11246         * io/lseek64.c: Likewise.
11247         * io/lxstat64.c: Likewise.
11248         * io/mkdir.c: Likewise.
11249         * io/mkdirat.c: Likewise.
11250         * io/mkfifo.c: Likewise.
11251         * io/mkfifoat.c: Likewise.
11252         * io/open.c: Likewise.
11253         * io/open64.c: Likewise.
11254         * io/openat.c: Likewise.
11255         * io/openat64.c: Likewise.
11256         * io/pipe.c: Likewise.
11257         * io/pipe2.c: Likewise.
11258         * io/poll.c: Likewise.
11259         * io/posix_fadvise.c: Likewise.
11260         * io/posix_fadvise64.c: Likewise.
11261         * io/posix_fallocate.c: Likewise.
11262         * io/posix_fallocate64.c: Likewise.
11263         * io/read.c: Likewise.
11264         * io/readlink.c: Likewise.
11265         * io/readlinkat.c: Likewise.
11266         * io/rmdir.c: Likewise.
11267         * io/sendfile.c: Likewise.
11268         * io/sendfile64.c: Likewise.
11269         * io/statfs.c: Likewise.
11270         * io/statfs64.c: Likewise.
11271         * io/statvfs.c: Likewise.
11272         * io/statvfs64.c: Likewise.
11273         * io/symlink.c: Likewise.
11274         * io/symlinkat.c: Likewise.
11275         * io/ttyname.c: Likewise.
11276         * io/ttyname_r.c: Likewise.
11277         * io/umask.c: Likewise.
11278         * io/unlink.c: Likewise.
11279         * io/unlinkat.c: Likewise.
11280         * io/utime.c: Likewise.
11281         * io/utimensat.c: Likewise.
11282         * io/write.c: Likewise.
11283         * io/xmknod.c: Likewise.
11284         * io/xmknodat.c: Likewise.
11285         * io/xstat.c: Likewise.
11286         * io/xstat64.c: Likewise.
11287         * login/getpt.c: Likewise.
11288         * login/grantpt.c: Likewise.
11289         * login/unlockpt.c: Likewise.
11290         * math/e_acoshl.c: Likewise.
11291         * math/e_acosl.c: Likewise.
11292         * math/e_asinl.c: Likewise.
11293         * math/e_atan2l.c: Likewise.
11294         * math/e_atanhl.c: Likewise.
11295         * math/e_coshl.c: Likewise.
11296         * math/e_expl.c: Likewise.
11297         * math/e_fmodl.c: Likewise.
11298         * math/e_gammal_r.c: Likewise.
11299         * math/e_hypotl.c: Likewise.
11300         * math/e_j0l.c: Likewise.
11301         * math/e_j1l.c: Likewise.
11302         * math/e_jnl.c: Likewise.
11303         * math/e_lgammal_r.c: Likewise.
11304         * math/e_log10l.c: Likewise.
11305         * math/e_log2l.c: Likewise.
11306         * math/e_logl.c: Likewise.
11307         * math/e_powl.c: Likewise.
11308         * math/e_rem_pio2l.c: Likewise.
11309         * math/e_sinhl.c: Likewise.
11310         * math/e_sqrtl.c: Likewise.
11311         * math/fclrexcpt.c: Likewise.
11312         * math/fedisblxcpt.c: Likewise.
11313         * math/feenablxcpt.c: Likewise.
11314         * math/fegetenv.c: Likewise.
11315         * math/fegetexcept.c: Likewise.
11316         * math/fegetround.c: Likewise.
11317         * math/feholdexcpt.c: Likewise.
11318         * math/fesetenv.c: Likewise.
11319         * math/fesetround.c: Likewise.
11320         * math/feupdateenv.c: Likewise.
11321         * math/fgetexcptflg.c: Likewise.
11322         * math/fraiseexcpt.c: Likewise.
11323         * math/fsetexcptflg.c: Likewise.
11324         * math/ftestexcept.c: Likewise.
11325         * math/k_cosl.c: Likewise.
11326         * math/k_rem_pio2l.c: Likewise.
11327         * math/k_sinl.c: Likewise.
11328         * math/k_tanl.c: Likewise.
11329         * math/s_asinhl.c: Likewise.
11330         * math/s_atanl.c: Likewise.
11331         * math/s_cbrtl.c: Likewise.
11332         * math/s_erfl.c: Likewise.
11333         * math/s_expm1l.c: Likewise.
11334         * math/s_log1pl.c: Likewise.
11335         * math/s_tanhl.c: Likewise.
11336         * misc/acct.c: Likewise.
11337         * misc/brk.c: Likewise.
11338         * misc/chflags.c: Likewise.
11339         * misc/chroot.c: Likewise.
11340         * misc/fchflags.c: Likewise.
11341         * misc/fgetxattr.c: Likewise.
11342         * misc/flistxattr.c: Likewise.
11343         * misc/fremovexattr.c: Likewise.
11344         * misc/fsetxattr.c: Likewise.
11345         * misc/fsync.c: Likewise.
11346         * misc/ftruncate.c: Likewise.
11347         * misc/futimes.c: Likewise.
11348         * misc/futimesat.c: Likewise.
11349         * misc/getdomain.c: Likewise.
11350         * misc/getdtsz.c: Likewise.
11351         * misc/gethostid.c: Likewise.
11352         * misc/gethostname.c: Likewise.
11353         * misc/getloadavg.c: Likewise.
11354         * misc/getpagesize.c: Likewise.
11355         * misc/getsysstats.c: Likewise.
11356         * misc/getxattr.c: Likewise.
11357         * misc/gtty.c: Likewise.
11358         * misc/ioctl.c: Likewise.
11359         * misc/lgetxattr.c: Likewise.
11360         * misc/listxattr.c: Likewise.
11361         * misc/llistxattr.c: Likewise.
11362         * misc/lremovexattr.c: Likewise.
11363         * misc/lsetxattr.c: Likewise.
11364         * misc/lutimes.c: Likewise.
11365         * misc/madvise.c: Likewise.
11366         * misc/mincore.c: Likewise.
11367         * misc/mlock.c: Likewise.
11368         * misc/mlockall.c: Likewise.
11369         * misc/mmap.c: Likewise.
11370         * misc/mprotect.c: Likewise.
11371         * misc/msync.c: Likewise.
11372         * misc/munlock.c: Likewise.
11373         * misc/munlockall.c: Likewise.
11374         * misc/munmap.c: Likewise.
11375         * misc/preadv.c: Likewise.
11376         * misc/preadv64.c: Likewise.
11377         * misc/ptrace.c: Likewise.
11378         * misc/pwritev.c: Likewise.
11379         * misc/pwritev64.c: Likewise.
11380         * misc/readv.c: Likewise.
11381         * misc/reboot.c: Likewise.
11382         * misc/remap_file_pages.c: Likewise.
11383         * misc/removexattr.c: Likewise.
11384         * misc/revoke.c: Likewise.
11385         * misc/select.c: Likewise.
11386         * misc/setdomain.c: Likewise.
11387         * misc/setegid.c: Likewise.
11388         * misc/seteuid.c: Likewise.
11389         * misc/sethostid.c: Likewise.
11390         * misc/sethostname.c: Likewise.
11391         * misc/setregid.c: Likewise.
11392         * misc/setreuid.c: Likewise.
11393         * misc/setxattr.c: Likewise.
11394         * misc/sstk.c: Likewise.
11395         * misc/stty.c: Likewise.
11396         * misc/swapoff.c: Likewise.
11397         * misc/swapon.c: Likewise.
11398         * misc/sync.c: Likewise.
11399         * misc/syncfs.c: Likewise.
11400         * misc/syscall.c: Likewise.
11401         * misc/truncate.c: Likewise.
11402         * misc/ualarm.c: Likewise.
11403         * misc/usleep.c: Likewise.
11404         * misc/ustat.c: Likewise.
11405         * misc/utimes.c: Likewise.
11406         * misc/vhangup.c: Likewise.
11407         * misc/writev.c: Likewise.
11408         * posix/_exit.c: Likewise.
11409         * posix/alarm.c: Likewise.
11410         * posix/execve.c: Likewise.
11411         * posix/fexecve.c: Likewise.
11412         * posix/fork.c: Likewise.
11413         * posix/fpathconf.c: Likewise.
11414         * posix/getaddrinfo.c: Likewise.
11415         * posix/getegid.c: Likewise.
11416         * posix/geteuid.c: Likewise.
11417         * posix/getgid.c: Likewise.
11418         * posix/getgroups.c: Likewise.
11419         * posix/getlogin.c: Likewise.
11420         * posix/getlogin_r.c: Likewise.
11421         * posix/getpgid.c: Likewise.
11422         * posix/getpid.c: Likewise.
11423         * posix/getppid.c: Likewise.
11424         * posix/getresgid.c: Likewise.
11425         * posix/getresuid.c: Likewise.
11426         * posix/getsid.c: Likewise.
11427         * posix/getuid.c: Likewise.
11428         * posix/glob64.c: Likewise.
11429         * posix/nanosleep.c: Likewise.
11430         * posix/pathconf.c: Likewise.
11431         * posix/pause.c: Likewise.
11432         * posix/posix_madvise.c: Likewise.
11433         * posix/pread.c: Likewise.
11434         * posix/pread64.c: Likewise.
11435         * posix/pwrite.c: Likewise.
11436         * posix/pwrite64.c: Likewise.
11437         * posix/sched_getaffinity.c: Likewise.
11438         * posix/sched_getp.c: Likewise.
11439         * posix/sched_gets.c: Likewise.
11440         * posix/sched_primax.c: Likewise.
11441         * posix/sched_primin.c: Likewise.
11442         * posix/sched_rr_gi.c: Likewise.
11443         * posix/sched_setaffinity.c: Likewise.
11444         * posix/sched_setp.c: Likewise.
11445         * posix/sched_sets.c: Likewise.
11446         * posix/sched_yield.c: Likewise.
11447         * posix/setgid.c: Likewise.
11448         * posix/setlogin.c: Likewise.
11449         * posix/setpgid.c: Likewise.
11450         * posix/setresgid.c: Likewise.
11451         * posix/setresuid.c: Likewise.
11452         * posix/setsid.c: Likewise.
11453         * posix/setuid.c: Likewise.
11454         * posix/sleep.c: Likewise.
11455         * posix/spawni.c: Likewise.
11456         * posix/sysconf.c: Likewise.
11457         * posix/times.c: Likewise.
11458         * posix/wait.c: Likewise.
11459         * posix/wait3.c: Likewise.
11460         * posix/wait4.c: Likewise.
11461         * posix/waitpid.c: Likewise.
11462         * resolv/gai_sigqueue.c: Likewise.
11463         * resource/getpriority.c: Likewise.
11464         * resource/getrlimit.c: Likewise.
11465         * resource/getrusage.c: Likewise.
11466         * resource/nice.c: Likewise.
11467         * resource/setpriority.c: Likewise.
11468         * resource/setrlimit.c: Likewise.
11469         * resource/ulimit.c: Likewise.
11470         * rt/aio_cancel.c: Likewise.
11471         * rt/aio_fsync.c: Likewise.
11472         * rt/aio_read.c: Likewise.
11473         * rt/aio_sigqueue.c: Likewise.
11474         * rt/aio_suspend.c: Likewise.
11475         * rt/aio_write.c: Likewise.
11476         * rt/clock_getres.c: Likewise.
11477         * rt/clock_gettime.c: Likewise.
11478         * rt/clock_nanosleep.c: Likewise.
11479         * rt/clock_settime.c: Likewise.
11480         * rt/lio_listio.c: Likewise.
11481         * rt/mq_close.c: Likewise.
11482         * rt/mq_getattr.c: Likewise.
11483         * rt/mq_notify.c: Likewise.
11484         * rt/mq_open.c: Likewise.
11485         * rt/mq_receive.c: Likewise.
11486         * rt/mq_send.c: Likewise.
11487         * rt/mq_setattr.c: Likewise.
11488         * rt/mq_timedreceive.c: Likewise.
11489         * rt/mq_timedsend.c: Likewise.
11490         * rt/mq_unlink.c: Likewise.
11491         * rt/shm_open.c: Likewise.
11492         * rt/shm_unlink.c: Likewise.
11493         * rt/timer_create.c: Likewise.
11494         * rt/timer_delete.c: Likewise.
11495         * rt/timer_getoverr.c: Likewise.
11496         * rt/timer_gettime.c: Likewise.
11497         * rt/timer_settime.c: Likewise.
11498         * setjmp/__longjmp.c: Likewise.
11499         * setjmp/setjmp.c: Likewise.
11500         * signal/kill.c: Likewise.
11501         * signal/killpg.c: Likewise.
11502         * signal/raise.c: Likewise.
11503         * signal/sigaction.c: Likewise.
11504         * signal/sigaltstack.c: Likewise.
11505         * signal/sigblock.c: Likewise.
11506         * signal/sigignore.c: Likewise.
11507         * signal/sigintr.c: Likewise.
11508         * signal/signal.c: Likewise.
11509         * signal/sigpause.c: Likewise.
11510         * signal/sigpending.c: Likewise.
11511         * signal/sigqueue.c: Likewise.
11512         * signal/sigreturn.c: Likewise.
11513         * signal/sigset.c: Likewise.
11514         * signal/sigsetmask.c: Likewise.
11515         * signal/sigstack.c: Likewise.
11516         * signal/sigsuspend.c: Likewise.
11517         * signal/sigtimedwait.c: Likewise.
11518         * signal/sigvec.c: Likewise.
11519         * signal/sigwait.c: Likewise.
11520         * signal/sigwaitinfo.c: Likewise.
11521         * signal/sysv_signal.c: Likewise.
11522         * socket/accept.c: Likewise.
11523         * socket/accept4.c: Likewise.
11524         * socket/bind.c: Likewise.
11525         * socket/connect.c: Likewise.
11526         * socket/getpeername.c: Likewise.
11527         * socket/getsockname.c: Likewise.
11528         * socket/getsockopt.c: Likewise.
11529         * socket/isfdtype.c: Likewise.
11530         * socket/listen.c: Likewise.
11531         * socket/recv.c: Likewise.
11532         * socket/recvfrom.c: Likewise.
11533         * socket/recvmsg.c: Likewise.
11534         * socket/send.c: Likewise.
11535         * socket/sendmsg.c: Likewise.
11536         * socket/sendto.c: Likewise.
11537         * socket/setsockopt.c: Likewise.
11538         * socket/shutdown.c: Likewise.
11539         * socket/sockatmark.c: Likewise.
11540         * socket/socket.c: Likewise.
11541         * socket/socketpair.c: Likewise.
11542         * stdio-common/ctermid.c: Likewise.
11543         * stdio-common/cuserid.c: Likewise.
11544         * stdio-common/remove.c: Likewise.
11545         * stdio-common/rename.c: Likewise.
11546         * stdio-common/renameat.c: Likewise.
11547         * stdio-common/tempname.c: Likewise.
11548         * stdlib/getcontext.c: Likewise.
11549         * stdlib/makecontext.c: Likewise.
11550         * stdlib/setcontext.c: Likewise.
11551         * stdlib/swapcontext.c: Likewise.
11552         * stdlib/system.c: Likewise.
11553         * streams/fattach.c: Likewise.
11554         * streams/fdetach.c: Likewise.
11555         * streams/getmsg.c: Likewise.
11556         * streams/getpmsg.c: Likewise.
11557         * streams/putmsg.c: Likewise.
11558         * streams/putpmsg.c: Likewise.
11559         * sysdeps/unix/bsd/getpt.c: Likewise.
11560         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
11561         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
11562         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
11563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11564         Likewise.
11565         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
11566         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11567         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
11568         * sysvipc/msgctl.c: Likewise.
11569         * sysvipc/msgget.c: Likewise.
11570         * sysvipc/msgrcv.c: Likewise.
11571         * sysvipc/msgsnd.c: Likewise.
11572         * sysvipc/semctl.c: Likewise.
11573         * sysvipc/semget.c: Likewise.
11574         * sysvipc/semop.c: Likewise.
11575         * sysvipc/semtimedop.c: Likewise.
11576         * sysvipc/shmat.c: Likewise.
11577         * sysvipc/shmctl.c: Likewise.
11578         * sysvipc/shmdt.c: Likewise.
11579         * sysvipc/shmget.c: Likewise.
11580         * termios/tcdrain.c: Likewise.
11581         * termios/tcflow.c: Likewise.
11582         * termios/tcflush.c: Likewise.
11583         * termios/tcgetattr.c: Likewise.
11584         * termios/tcgetpgrp.c: Likewise.
11585         * termios/tcsendbrk.c: Likewise.
11586         * termios/tcsetattr.c: Likewise.
11587         * termios/tcsetpgrp.c: Likewise.
11588         * time/adjtime.c: Likewise.
11589         * time/clock.c: Likewise.
11590         * time/getitimer.c: Likewise.
11591         * time/gettimeofday.c: Likewise.
11592         * time/setitimer.c: Likewise.
11593         * time/settimeofday.c: Likewise.
11594         * time/stime.c: Likewise.
11595         * time/time.c: Likewise.
11596
11597 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
11598
11599         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
11600         /usr/old/bin.
11601
11602         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
11603         instead of spaces.
11604         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
11605
11606 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
11607
11608         [BZ #14796]
11609         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
11610         FE_TONEAREST before applying Dekker multiplication and Knuth
11611         addition.  Clear inexact exceptions and check for exact zero
11612         results afterwards.
11613         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11614         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
11615         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11616         * math/libm-test.inc (fma_test): Add more tests.
11617         (fma_test_towardzero): Likewise.
11618         (fma_test_downward): Likewise.
11619         (fma_test_upward): Likewise.
11620         * sysdeps/generic/math_private.h (default_libc_fesetround): New
11621         function.
11622         (libc_fesetround): New macro.
11623         (libc_fesetroundf): Likewise.
11624         (libc_fesetroundl): Likewise.
11625         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
11626         function.
11627         (libc_fesetround_387): Likewise.
11628         (libc_fesetroundf): New macro.
11629         (libc_fesetround): Likewise.
11630         (libc_fesetroundl): Likewise.
11631         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
11632         function.
11633         (libc_fesetroundf): New macro.
11634         (libc_fesetround): Likewise.
11635         (libc_fesetroundl): Likewise.
11636         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
11637         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
11638         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
11639         libm_hidden_ver.
11640         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
11641         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
11642         libm_hidden_def.
11643         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
11644         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
11645         libm_hidden_ver.
11646         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
11647         libm_hidden_def.
11648
11649         [BZ #3439]
11650         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
11651         integer constant usable in #if and use that to give value to enum
11652         constant.
11653         (FE_DIVBYZERO): Likewise.
11654         (FE_UNDERFLOW): Likewise.
11655         (FE_OVERFLOW): Likewise.
11656         (FE_INVALID): Likewise.
11657         (FE_INVALID_SNAN): Likewise.
11658         (FE_INVALID_ISI): Likewise.
11659         (FE_INVALID_IDI): Likewise.
11660         (FE_INVALID_ZDZ): Likewise.
11661         (FE_INVALID_IMZ): Likewise.
11662         (FE_INVALID_COMPARE): Likewise.
11663         (FE_INVALID_SOFTWARE): Likewise.
11664         (FE_INVALID_SQRT): Likewise.
11665         (FE_INVALID_INTEGER_CONVERSION): Likewise.
11666         (FE_TONEAREST): Likewise.
11667         (FE_TOWARDZERO): Likewise.
11668         (FE_UPWARD): Likewise.
11669         (FE_DOWNWARD): Likewise.
11670         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
11671         (FE_DIVBYZERO): Likewise.
11672         (FE_OVERFLOW): Likewise.
11673         (FE_UNDERFLOW): Likewise.
11674         (FE_INEXACT): Likewise.
11675         (FE_TONEAREST): Likewise.
11676         (FE_DOWNWARD): Likewise.
11677         (FE_UPWARD): Likewise.
11678         (FE_TOWARDZERO): Likewise.
11679         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
11680         (FE_UNDERFLOW): Likewise.
11681         (FE_OVERFLOW): Likewise.
11682         (FE_DIVBYZERO): Likewise.
11683         (FE_INVALID): Likewise.
11684         (FE_TONEAREST): Likewise.
11685         (FE_TOWARDZERO): Likewise.
11686         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
11687         (FE_OVERFLOW): Likewise.
11688         (FE_UNDERFLOW): Likewise.
11689         (FE_DIVBYZERO): Likewise.
11690         (FE_INEXACT): Likewise.
11691         (FE_TONEAREST): Likewise.
11692         (FE_TOWARDZERO): Likewise.
11693         (FE_UPWARD): Likewise.
11694         (FE_DOWNWARD): Likewise.
11695         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
11696         (FE_DIVBYZERO): Likewise.
11697         (FE_OVERFLOW): Likewise.
11698         (FE_UNDERFLOW): Likewise.
11699         (FE_INEXACT): Likewise.
11700         (FE_TONEAREST): Likewise.
11701         (FE_DOWNWARD): Likewise.
11702         (FE_UPWARD): Likewise.
11703         (FE_TOWARDZERO): Likewise.
11704
11705 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
11706
11707         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
11708
11709 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
11710
11711         * scripts/cross-test-ssh.sh (command): Use newlines to separate
11712         commands.  Quote $PWD.
11713         (blacklist_exports): Don't use remove_newlines.  Replace "declare
11714         -x" by "export".
11715         (remove_newlines): Remove.
11716
11717 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
11718
11719         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
11720         * stdlib/stdlib.h (atof): Moved to ...
11721         * include/bits/stdlib-float.h: Here.  New file.
11722         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
11723         * stdlib/bits/stdlib-float.h: New file.
11724         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
11725         -mno-sse -mno-mmx.
11726         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
11727         <xmmintrin.h>.
11728
11729 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
11730
11731         * conform/conformtest.pl (@headers): Add fenv.h.
11732         * conform/data/fenv.h-data: New file.
11733         * include/fenv.h [_ISOMAC]: Disable all contents of file except
11734         include of <math/fenv.h>.
11735
11736         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
11737         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
11738         && !UNIX98].  Enables tests for XOPEN2K8.
11739         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
11740         POSIX2008]: Likewise.
11741
11742         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
11743         (struct rusage): Do not expect type or its members.
11744
11745         [BZ #3439]
11746         * math/math.h (FP_NAN): Define macro to integer constant usable in
11747         #if and use that to give value to enum constant.
11748         (FP_INFINITE): Likewise.
11749         (FP_ZERO): Likewise.
11750         (FP_SUBNORMAL): Likewise.
11751         (FP_NORMAL): Likewise.
11752
11753 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
11754
11755         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
11756         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
11757         arguments.
11758
11759 2012-11-02  Roland McGrath  <roland@hack.frob.com>
11760
11761         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
11762         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
11763         autoconf-time if not.
11764         * configure.in: Remove AC_PREREQ.
11765
11766 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11767
11768         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
11769         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
11770         of the internal implementation.
11771
11772 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
11773
11774         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
11775         except include of <misc/sys/syslog.h>.
11776
11777 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11778
11779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
11780         function returns with a NULL context exit with zero.
11781
11782 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11783
11784         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
11785
11786 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
11787
11788         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
11789         (run_program_cmd): This.
11790         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
11791         (tst_langinfo): New variable.  Use it.
11792
11793 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
11794
11795         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
11796         floating point opcodes.
11797
11798 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
11799
11800         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
11801         variable.
11802
11803         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
11804
11805         * sysdeps/mach/hurd/powerpc: Remove directory.
11806         * sysdeps/mach/powerpc: Likewise.
11807
11808 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11809
11810         * scripts/check-local-headers.sh: Ignore c++ headers.
11811
11812 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
11813
11814         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
11815         __libc_cleanup_region_start argument.
11816
11817 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
11818
11819         [BZ #14784]
11820         [BZ #14785]
11821         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
11822         x * y using scaling, not as x * y + z.
11823         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11824         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11825         * math/libm-test.inc (fma_test): Add more tests.
11826         (fma_test_towardzero): Likewise.
11827         (fma_test_downward): Likewise.
11828         (fma_test_upward): Likewise.
11829
11830 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
11831
11832         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
11833
11834 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
11835
11836         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
11837         New variable.
11838
11839 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
11840
11841         * rt/tst-shm.c (worker): Correct checking for mmap failure.
11842
11843 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
11844
11845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11846         Fix sort order.
11847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11848         Likewise.
11849
11850 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11851
11852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11853         Fix the order of the list for glibc 2.17.
11854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11855         Likewise.
11856
11857 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
11858
11859         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11860
11861 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
11862
11863         [BZ #14610]
11864         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
11865         for low part of x being zero before using __atanl (y).
11866         * math/libm-test.inc (atan2_test): Add another test.
11867
11868         * manual/install.texi (Configuring and compiling): Document
11869         general use of test-wrapper and test-wrapper-env.
11870         * INSTALL: Regenerated.
11871
11872         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
11873         (__fma): Do not extract and scale down low bits on after-rounding
11874         systems when result rounded to normal precision would have normal
11875         exponent.
11876         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
11877         (__fmal): Do not extract and scale down low bits on after-rounding
11878         systems when result rounded to normal precision would have normal
11879         exponent.
11880         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
11881         (__fmal): Do not extract and scale down low bits on after-rounding
11882         systems when result rounded to normal precision would have normal
11883         exponent.
11884         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
11885         macro.
11886         (fma_test): Add more tests.
11887         (fma_test_towardzero): Likewise.
11888         (fma_test_downward): Likewise.
11889         (fma_test_upward): Likewise.
11890
11891 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
11892
11893         * sysdeps/i386/tininess.h: Renamed to ...
11894         * sysdeps/x86/tininess.h: This.
11895         * sysdeps/x86_64/tininess.h: Removed.
11896
11897 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
11898
11899         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
11900         input.  Use $(build-program-cmd).
11901         ($(objpfx)tst-array1-static.out): Likewise.
11902         ($(objpfx)tst-array2.out): Likewise.
11903         ($(objpfx)tst-array3.out): Likewise.
11904         ($(objpfx)tst-array4.out): Likewise.
11905         ($(objpfx)tst-array5.out): Likewise.
11906         ($(objpfx)tst-array5-static.out): Likewise.
11907
11908 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
11909
11910         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
11911         if defined.
11912
11913         * nss/nsswitch.h (nss_interface_function): Provide new
11914         macro for use with NSS functions.
11915         * grp/initgroups.c: Use new macro.
11916         * nss/getXXbyYY.c: Likewise.
11917         * nss/getXXbyYY_r.c: Likewise.
11918         * nss/getXXent.c: Likewise.
11919         * nss/getXXent_r.c: Likewise.
11920         * sysdeps/posix/getaddrinfo.c: Likewise.
11921
11922 2012-10-30  Andreas Jaeger  <aj@suse.de>
11923
11924         * po/ru.po: Update Russion translation from translation project.
11925
11926 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
11927
11928         [BZ #14152]
11929         [BZ #14783]
11930         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
11931         result and shift together with sticky bit instead of replicating
11932         round-to-nearest rounding.
11933         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11934         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11935         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
11936         missing underflow exceptions.
11937         (fma_test_towardzero): Add more tests.
11938         (fma_test_downward): Likewise.
11939         (fma_test_upward): Likewise.
11940
11941         [BZ #14047]
11942         * sysdeps/generic/tininess.h: New file.
11943         * sysdeps/i386/tininess.h: Likewise.
11944         * sysdeps/sh/tininess.h: Likewise.
11945         * sysdeps/x86_64/tininess.h: Likewise.
11946         * stdlib/tst-strtod-underflow.c: Likewise.
11947         * stdlib/tst-tininess.c: Likewise.
11948         * stdlib/strtod_l.c: Include <tininess.h>.
11949         (round_and_return): Do not set errno for exact underflow cases.
11950         Force an underflow exception when setting errno for underflow.
11951         Determine underflow based on rounding to normal precision if
11952         TININESS_AFTER_ROUNDING.
11953         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
11954         ERANGE for exact underflow cases.
11955         * stdlib/Makefile (tests): Add tst-tininess and
11956         tst-strtod-underflow.
11957         ($(objpfx)tst-tininess): Use $(link-libm).
11958         ($(objpfx)tst-strtod-underflow): Likewise.
11959
11960 2012-10-30  Andreas Jaeger  <aj@suse.de>
11961
11962         [BZ#14767]
11963         * elf/Makefile (tests): Remove conditional for have-initfini-array
11964         since this is now always required and the variable does not exist
11965         anymore.
11966         (tests-static): Likewise.
11967         (modules-names): Likewise.
11968
11969         * po/eo.po: Add Esperanto translation from translation project.
11970
11971         * elf/tst-array1.c (fini_array): Make writeable so that it can be
11972         merged with constructor/destructor.
11973         (init_array): Likewise.
11974         * elf/tst-array2dep.c (fini_array): Likewise.
11975         (init_array): Likewise.
11976
11977 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
11978
11979         * manual/message.texi: Delete @cartouche tags.
11980
11981 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
11982
11983         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
11984         EOPNOTSUPP.
11985         * sysdeps/mach/hurd/fsync.c: Likewise.
11986
11987         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
11988         [_POSIX_REALTIME_SIGNALS]: Change condition to
11989         [_POSIX_REALTIME_SIGNALS > 0].
11990
11991 2012-10-27  Andreas Jaeger  <aj@suse.de>
11992
11993         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
11994         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
11995         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
11996         [__WORDSIZE != 64]: Likewise.
11997
11998 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
11999
12000         *  iconvdata/tst-table.sh: Remove ${SHELL}.
12001         *  iconvdata/tst-tables.sh: Likewise.
12002
12003 2012-10-25  David S. Miller  <davem@davemloft.net>
12004
12005         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12006         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
12007         of strtoull.
12008
12009         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
12010         ifunc-impl-list.c
12011         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12012         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
12013         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
12014         file.
12015
12016 2012-10-25  Roland McGrath  <roland@hack.frob.com>
12017
12018         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12019         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
12020         __getdirentries.
12021
12022 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
12023             Jim Blandy  <jimb@codesourcery.com>
12024
12025         * scripts/cross-test-ssh.sh: New file.
12026         * manual/install.texi (Configuring and compiling): Document use of
12027         cross-test-ssh.sh.
12028         * INSTALL: Regenerated.
12029
12030 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
12031
12032         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
12033         EOPNOTSUPP.
12034
12035 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
12036
12037         * Makeconfig (run-program-prefix): Fix comment.
12038
12039 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
12040             Jim Blandy  <jimb@codesourcery.com>
12041
12042         * Makeconfig (test-wrapper): New variable,
12043         (test-wrapper-env): Likewise.
12044         [$(cross-compiling) = yes && $(test-wrapper) != ""]
12045         (run-built-tests): Define to yes.
12046         (run-program-prefix): Use $(test-wrapper).
12047         (built-program-cmd): Likewise.
12048         * Rules (make-test-out): Use $(test-wrapper-env) and
12049         $(host-built-program-cmd).
12050         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
12051         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
12052         tst-pathopt.sh.
12053         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
12054         $(test-wrapper-env) to tst-rtld-load-self.sh.
12055         ($(objpfx)order2.out): Use $(test-wrapper).
12056         ($(objpfx)tst-initorder.out): Likewise.
12057         ($(objpfx)tst-initorder2.out): Likewise.
12058         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
12059         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
12060         (test_wrapper_env): New variable.  Use it to run ld.so.
12061         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
12062         Use it to run ld.so.
12063         (test_wrapper_env): Likewise.
12064         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
12065         $(test-wrapper) to run-iconv-test.sh.
12066         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
12067         (ICONV): Use $test_wrapper.
12068         * posix/Makefile ($(objpfx)globtest.out): Pass
12069         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
12070         globtest.sh, not $(run-program-prefix).
12071         * posix/globtest.sh (run_via_rtld_prefix): New variable.
12072         (test_wrapper): Likewise.
12073         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
12074         set together with run_via_rtld_prefix.
12075         (run_program_prefix): Define in terms of test_wrapper and
12076         run_via_rtld_prefix.
12077
12078 2012-10-24  Roland McGrath  <roland@hack.frob.com>
12079
12080         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
12081         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
12082         Targets removed.
12083
12084         [BZ #14743]
12085         * include/time.h: Remove librt_hidden_proto (clock_gettime).
12086         Declare __clock_getres, __clock_gettime, __clock_settime,
12087         __clock_nanosleep, and __clock_getcpuclockid.
12088         * rt/clock_gettime.c: Define __clock_gettime as an alias.
12089         Remove librt_hidden_def (clock_gettime).
12090         * sysdeps/unix/clock_gettime.c: Likewise.
12091         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
12092         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
12093         * rt/clock_getres.c: Define __clock_getres as an alias.
12094         * sysdeps/posix/clock_getres.c: Likewise.
12095         * rt/clock_settime.c: Define __clock_settime as an alias.
12096         * sysdeps/unix/clock_settime.c: Likewise.
12097         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
12098         * sysdeps/unix/clock_nanosleep.c: Likewise.
12099         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
12100         * rt/clock-compat.c: New file.
12101         * rt/Makefile (librt-routines): Add clock-compat and move
12102         $(clock-routines) to ...
12103         (routines): ... here, new variable.
12104         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
12105         Don't add get_clockfreq here.
12106         * rt/Versions (libc: GLIBC_2.17): New version set.
12107         Add clock_* symbols here.
12108         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
12109         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
12110         (GLIBC_2.17): Add clock_* symbols.
12111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
12112         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
12113         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12115         Likewise.
12116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12117         Likewise.
12118         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12119         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
12120         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
12121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
12122         * NEWS: Mention the move.
12123
12124         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
12125         Use __open, __read, __close rather than their public counterparts.
12126         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12127         (__get_clockfreq_via_cpuinfo): Likewise.
12128         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
12129         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
12130
12131         * config.h.in (HAVE_IFUNC): New #undef.
12132         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
12133         was successful.
12134         * configure: Regenerated.
12135
12136 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
12137
12138         * configure.in: Move READELF check to start of file.
12139         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
12140         libc_cv_asm_gnu_indirect_function in the process.
12141         * configure: Regenerated.
12142
12143 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
12144
12145         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
12146         send the output to /dev/null.
12147         (libc_cv_cc_with_libunwind): Likewise.
12148         (libc_cv_as_noexecstack): Likewise.
12149         * configure: Regenerate.
12150
12151 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
12152
12153         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
12154
12155         * posix/globtest.sh (TMPDIR): Do not set.
12156         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
12157         (testout): Likewise.
12158
12159 2012-10-24  Andreas Jaeger  <aj@suse.de>
12160
12161         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
12162         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
12163         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
12164         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
12165         posix_fadvise64, posix_fallocate64.
12166
12167         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
12168         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
12169         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
12170         Likewise.
12171         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
12172         Likewise.
12173         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
12174
12175         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
12176         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
12177         <bits/fcntl-linux.h>.
12178         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
12179
12180         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
12181         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
12182         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
12183         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
12184         [__WORDSIZE != 64]: Likewise.
12185
12186 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
12187
12188         * Makeconfig (run-built-tests): New variable.
12189         * Rules [$(cross-compiling) = yes]: Change condition to
12190         [$(run-built-tests) = no].
12191         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
12192         to [$(run-built-tests) = yes].
12193         * elf/Makefile [$(cross-compiling) = no]: Likewise
12194         * grp/Makefile [$(cross-compiling) = no]: Likewise.
12195         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
12196         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
12197         * intl/Makefile [$(cross-compiling) = no]: Likewise.
12198         * io/Makefile [$(cross-compiling) = no]: Likewise.
12199         * libio/Makefile [$(cross-compiling) = no]: Likewise.
12200         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
12201         * misc/Makefile [$(cross-compiling) = no]: Likewise.
12202         * posix/Makefile [$(cross-compiling) = no]: Likewise.
12203         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
12204         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
12205         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
12206         * string/Makefile [$(cross-compiling) = no]: Likewise.
12207
12208         * posix/Makefile ($(objpfx)globtest.out): Pass
12209         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
12210         $(rtld-installed-name).
12211         * posix/globtest.sh (elf_objpfx): Remove variable.
12212         (rtld_installed_name): Likewise.
12213         (library_path): Likewise.
12214         (run_program_prefix): New variable.  Use for running globtest
12215         binary.
12216
12217 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
12218             Joseph Myers  <joseph@codesourcery.com>
12219
12220         * Makeconfig (host-built-program-cmd): New variable.
12221         * elf/Makefile (tst-stackguard1-ARGS): Use
12222         $(host-built-program-cmd).
12223         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
12224         (tst-spawn-ARGS): Likewise.
12225         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
12226
12227 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
12228             Jim Blandy  <jimb@codesourcery.com>
12229
12230         * Makeconfig (run-via-rtld-prefix): New variable.
12231         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
12232         (built-program-cmd): Likewise.
12233
12234 2012-10-22  Andreas Jaeger  <aj@suse.de>
12235
12236         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
12237         __O_RSYNC if it exists, otherwise to O_SYNC.
12238
12239 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
12240             Joseph Myers  <joseph@codesourcery.com>
12241
12242         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
12243         /dev/null.
12244         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
12245         from /dev/null
12246         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
12247         /dev/null.
12248
12249 2012-10-22  Andreas Jaeger  <aj@suse.de>
12250
12251         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
12252         Define always.
12253         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
12254
12255         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12256         bits/fcntl-linux.h.
12257
12258         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
12259         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
12260
12261         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
12262         to __O_LARGEFILE.
12263         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
12264         to __O_LARGEFILE.
12265
12266 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
12267             Joseph Myers  <joseph@codesourcery.com>
12268
12269         * config.make.in (NM): New variable.
12270
12271 2012-10-21  Andreas Jaeger  <aj@suse.de>
12272
12273         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
12274         definitions and declarations that are provided by
12275         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
12276
12277 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
12278
12279         [BZ #14683]
12280         * elf/Makefile (tests-static): Add tst-leaks1-static.
12281         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
12282         ($(objpfx)tst-leaks1-static): New rule.
12283         ($(objpfx)tst-leaks1-static-mem): Likewise.
12284         (tst-leaks1-static-ENV): New macro.
12285         * elf/dl-open.c (dl_open_worker): Check the main application
12286         only if SHARED is defined.
12287         * elf/tst-leaks1-static.c: New file.
12288
12289 2012-10-20  Andreas Jaeger  <aj@suse.de>
12290
12291         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
12292         generic values for Linux.
12293         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
12294         and declarations that are provided by <bits/fcntl-linux.h> and
12295         include <bits/fcntl-linux.h>.
12296         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12297         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12298
12299 2012-10-20  Roland McGrath  <roland@hack.frob.com>
12300
12301         * io/fcntl.h: Move include of <bits/types.h> to the top and
12302         include it unconditionally.
12303
12304 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
12305
12306         * wcsmbs/Makefile (tests-ifunc): New variable.
12307         (tests): Add $(tests-ifunc).
12308         * wcsmbs/test-wcschr-ifunc.c: New file.
12309         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
12310         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
12311         * wcsmbs/test-wcslen-ifunc.c: Likewise.
12312         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
12313         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
12314
12315         * string/Makefile (tests-ifunc): New variable.
12316         (tests): Add $(tests-ifunc).
12317         * string/test-memccpy.c (TEST_NAME): New macro.
12318         * string/test-memchr.c (TEST_NAME): Likewise.
12319         * string/test-memcmp.c (TEST_NAME): Likewise.
12320         * string/test-memcpy.c (TEST_NAME): Likewise.
12321         * string/test-memmem.c (TEST_NAME): Likewise.
12322         * string/test-memmove.c (TEST_NAME): Likewise.
12323         * string/test-memset.c (TEST_NAME): Likewise.
12324         * string/test-rawmemchr.c (TEST_NAME): Likewise.
12325         * string/test-stpcpy.c (TEST_NAME): Likewise.
12326         * string/test-stpncpy.c (TEST_NAME): Likewise.
12327         * string/test-strcasecmp.c (TEST_NAME): Likewise.
12328         * string/test-strcasestr.c (TEST_NAME): Likewise.
12329         * string/test-strcat.c (TEST_NAME): Likewise.
12330         * string/test-strchr.c (TEST_NAME): Likewise.
12331         * string/test-strcmp.c(TEST_NAME): Likewise.
12332         * string/test-strcpy.c (TEST_NAME): Likewise.
12333         * string/test-strcspn.c (TEST_NAME): Likewise.
12334         * string/test-strlen.c (TEST_NAME): Likewise.
12335         * string/test-strncasecmp.c (TEST_NAME): Likewise.
12336         * string/test-strncmp.c (TEST_NAME): Likewise.
12337         * string/test-strncpy.c (TEST_NAME): Likewise.
12338         * string/test-strnlen.c (TEST_NAME): Likewise.
12339         * string/test-strpbrk.c (TEST_NAME): Likewise.
12340         * string/test-strrchr.c (TEST_NAME): Likewise.
12341         * string/test-strspn.c (TEST_NAME): Likewise.
12342         * string/test-strstr.c (TEST_NAME): Likewise.
12343         * string/test-bcopy-ifunc.c: New file.
12344         * string/test-bzero-ifunc.c: Likewise.
12345         * string/test-memccpy-ifunc.c: Likewise.
12346         * string/test-memchr-ifunc.c: Likewise.
12347         * string/test-memcmp-ifunc.c: Likewise.
12348         * string/test-memcpy-ifunc.c: Likewise.
12349         * string/test-memmem-ifunc.c: Likewise.
12350         * string/test-memmove-ifunc.c: Likewise.
12351         * string/test-mempcpy-ifunc.c: Likewise.
12352         * string/test-memset-ifunc.c: Likewise.
12353         * string/test-rawmemchr-ifunc.c: Likewise.
12354         * string/test-stpcpy-ifunc.c: Likewise.
12355         * string/test-stpncpy-ifunc.c: Likewise.
12356         * string/test-strcasecmp-ifunc.c: Likewise.
12357         * string/test-strcasestr-ifunc.c: Likewise.
12358         * string/test-strcat-ifunc.c: Likewise.
12359         * string/test-strchr-ifunc.c: Likewise.
12360         * string/test-strchrnul-ifunc.c: Likewise.
12361         * string/test-strcmp-ifunc.c: Likewise.
12362         * string/test-strcpy-ifunc.c: Likewise.
12363         * string/test-strcspn-ifunc.c: Likewise.
12364         * string/test-strlen-ifunc.c: Likewise.
12365         * string/test-strncasecmp-ifunc.c: Likewise.
12366         * string/test-strncat-ifunc.c: Likewise.
12367         * string/test-strncmp-ifunc.c: Likewise.
12368         * string/test-strncpy-ifunc.c: Likewise.
12369         * string/test-strnlen-ifunc.c: Likewise.
12370         * string/test-strpbrk-ifunc.c: Likewise.
12371         * string/test-strrchr-ifunc.c: Likewise.
12372         * string/test-strspn-ifunc.c: Likewise.
12373         * string/test-strstr-ifunc.c: Likewise.
12374
12375         * debug/Makefile (tests-ifunc): New variable.
12376         (tests): Add $(tests-ifunc).
12377         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
12378         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
12379         * debug/test-stpcpy_chk-ifunc.c: New file.
12380         * debug/test-strcpy_chk-ifunc.c: Likewise.
12381
12382 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12383
12384         [BZ #13601]
12385         * elf/dl-load.c (open_verify): Retry read if the entire ELF
12386         header is not read in.
12387
12388 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
12389
12390         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
12391         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
12392         directly.  Pass built executable to script as
12393         $(built-program-cmd).
12394         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
12395         $testprogram without using LD_LIBRARY_PATH and $ldso.
12396
12397         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
12398         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
12399         $(rtld-installed-name).
12400         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
12401         (rtld_installed_name): Likewise.
12402         (library_path): Likewise.
12403         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
12404         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
12405         $(run-program-prefix) to tst-tables.sh.
12406         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
12407         it to run tst-table-from and tst-table-to.
12408         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
12409         Pass it to tst-table.sh.
12410         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
12411         $(run-program-prefix) to tst-gettext.sh.
12412         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
12413         tst-translit.sh.
12414         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
12415         tst-gettext2.sh.
12416         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
12417         to run tst-gettext.
12418         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
12419         to run tst-gettext2.
12420         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
12421         to run tst-translit.
12422         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
12423         $(run-program-prefix) to tst-mtrace.sh.
12424         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
12425         to run tst-mtrace.
12426         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
12427         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
12428         $(rtld-installed-name).
12429         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
12430         (rtld_installed_name): Likewise.
12431         (run_program_prefix): New variable.  Use it to run wordexp-test.
12432
12433         * Makeconfig (ARCH): Remove all definitions.
12434         (machine): Likewise.
12435         [ARCH]: Remove conditional code.
12436         [!objdir]: Give error.
12437         [!objdir] (objpfx): Remove.
12438         [!objdir] (common-objpfx): Likewise.
12439         [!objdir] (common-objdir): Likewise.
12440         * configure.in (config_makefile): Remove.  Hardcode Makefile in
12441         AC_CONFIG_FILES call.
12442         * configure: Regenerated.
12443
12444         [BZ #13888]
12445         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
12446         or TMPDIR.
12447         (testout): Likewise.
12448
12449         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
12450         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
12451         $(rtld-installed-name).
12452         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
12453         (rtld_installed_name): Likwise.
12454         (runit): Remove function.
12455         (run_getconf): New variable,  Use it for running getconf binary.
12456
12457 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
12458
12459         [BZ #14716]
12460         * string/test-memmem.c (check_result): New function.
12461         (do_one_test): Use it.
12462         (check1): New function.
12463         (test_main): Use it.
12464
12465 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
12466
12467         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
12468
12469 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
12470
12471         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
12472         (_G_LSEEK64): Likewise.
12473         (_G_MMAP64): Likewise.
12474         (_G_FSTAT64): Likewise.
12475         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
12476         (_G_LSEEK64): Likewise.
12477         (_G_MMAP64): Likewise.
12478         (_G_FSTAT64): Likewise.
12479         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
12480         unconditional.  Call __mmap64 directly.
12481         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
12482         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
12483         __lseek64 directly.
12484         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
12485         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
12486         __mmap64 directly.
12487         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
12488         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
12489         __lseek64 directly.
12490         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
12491         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
12492         __lseek64 directly.
12493         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
12494         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
12495         __lseek64 directly.
12496         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
12497         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
12498         __fxstat64 directly.
12499         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
12500         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
12501         unconditional.
12502         (freopen64) [!_G_OPEN64]: Remove conditional code.
12503         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
12504         unconditional.
12505         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
12506         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
12507         unconditional.
12508         (ftello64) [!_G_LSEEK64]: Remove conditional code.
12509         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
12510         unconditional.
12511         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
12512         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
12513         unconditional.
12514         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
12515         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
12516         unconditional.
12517         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
12518         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
12519         unconditional.
12520         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
12521         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
12522         unconditional.
12523         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
12524
12525 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12526
12527         [BZ #12140]
12528         * manual/memory.texi (Malloc Tunable Parameters): Add note
12529         about free list pointers overwriting some perturb bytes.
12530         Wording suggested by Roland McGrath.
12531
12532 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
12533
12534         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
12535         (lgamma_test): Likewise.
12536         (tgamma_test): Likewise.
12537
12538 2012-10-16  Florian Weimer  <fweimer@redhat.com>
12539
12540         [BZ #14700]
12541         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
12542         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
12543
12544 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
12545
12546         * NEWS: Mention BZ #14716.
12547         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
12548         when removing AVAILABLE1_USES_J macro.
12549
12550 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
12551
12552         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
12553         (__bswap_64): __uint64_t for unsigned 64-bit int.
12554
12555 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
12556
12557         * include/string.h (memmem): Declare libc hidden alias.
12558         * string/memmem.c (memmem): Define libc hidden alias.
12559         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
12560         __read, __close instead of open, read, close.
12561
12562 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
12563
12564         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
12565         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
12566         global and hidden.
12567         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
12568         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
12569         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
12570         Likewise.
12571         (__rawmemchr_sse2): Likewise.
12572         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
12573         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
12574         (__strchr_sse2): Likewise.
12575         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
12576         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
12577         (__strcasecmp_sse2): Likewise.
12578         (__strncasecmp_sse2): Likewise.
12579         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
12580         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
12581         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
12582         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
12583         (__strrchr_sse2): Likewise.
12584         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
12585         ifunc-impl-list.c.
12586         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
12587         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
12588         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
12589         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12590         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
12591         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
12592         * sysdeps/x86_64/multiarch/memset.S: Likewise.
12593         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12594         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
12595         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
12596         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
12597         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
12598         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
12599         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
12600         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
12601         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
12602         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
12603         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
12604         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
12605         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
12606         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
12607         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
12608         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
12609         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
12610         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
12611         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12612         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
12613         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
12614         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
12615         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
12616
12617         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
12618         global and hidden.
12619         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
12620         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
12621         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
12622         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
12623         Likewise.
12624         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
12625         Likewise.
12626         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
12627         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
12628         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
12629         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
12630         ifunc-impl-list.c.
12631         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12632         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12633         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12634         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12635         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12636         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12637         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12638         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12639         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12640         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12641         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12642         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12643         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12644         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
12645         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
12646         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12647         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
12648         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
12649         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12650         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12651         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12652         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12653         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12654         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12655         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12656         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
12657         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
12658         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
12659         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
12660         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12661         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
12662         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12663         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12664         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
12665         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12666         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12667         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12668         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12669         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12670         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12671         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
12672
12673         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
12674         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
12675         * include/ifunc-impl-list.h: New file.
12676         * misc/ifunc-impl-list.c: Likewise.
12677         * misc/Makefile (routines): Add ifunc-impl-list.
12678         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
12679         * string/test-string.h: Include <ifunc-impl-list.h>.
12680         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
12681         impl_array): New variables.
12682         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
12683         are defined.
12684         (test_init): Call __libc_ifunc_impl_list to initialize
12685         func_list if TEST_IFUNC and TEST_NAME are defined.
12686
12687         * string/Makefile (strop-tests): Add bcopy and bzero.
12688         * string/test-bcopy.c: New file.
12689         * string/test-bzero.c: Likewise.
12690         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
12691         defined.
12692         * string/test-memset.c: Support bzero test if TEST_BZERO is
12693         defined.
12694         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
12695         __libc_memmove.
12696         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
12697         __libc_memset.
12698         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
12699         of memset.
12700
12701 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
12702
12703         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
12704         * configure: Regenerated.
12705
12706         * Makeconfig (+link-static-before-libc): Don't include
12707         $(link-static-libc).
12708
12709         * libio/libio.h (_IO_pos_t): Remove.
12710
12711 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
12712
12713         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
12714         McGrath.
12715
12716 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
12717
12718         * crypt/crypt-entry.c: Include fips-private.h.
12719         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
12720         * crypt/md5c-test.c (main): Tolerate disabled MD5.
12721         * sysdeps/unix/sysv/linux/fips-private.h: New file.
12722         * sysdeps/generic/fips-private.h: New file, dummy fallback.
12723
12724 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
12725
12726         * crypt/crypt-private.h: Include stdbool.h.
12727         (_ufc_setup_salt_r): Return bool.
12728         * crypt/crypt-entry.c: Include errno.h.
12729         (__crypt_r): Return NULL with EINVAL for bad salt.
12730         * crypt/crypt_util.c (bad_for_salt): New.
12731         (_ufc_setup_salt_r): Check that salt is long enough and within
12732         the specified alphabet.
12733         * crypt/badsalttest.c: New file.
12734         * crypt/Makefile (tests): Add it.
12735         ($(objpfx)badsalttest): New.
12736
12737 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12738
12739         * NEWS: Add entry for BZ #14602.
12740
12741 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
12742
12743         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
12744         type-generic.
12745         * math/libm-test.inc: Update comment listing what functions and
12746         macros are tested.
12747         (isgreater_test): New function.
12748         (isgreaterequal_test): Likewise.
12749         (isless_test): Likewise.
12750         (islessequal_test): Likewise.
12751         (islessgreater_test): Likewise.
12752         (isunordered_test): Likewise.
12753         (main): Call the new functions.
12754
12755 2012-10-09  Roland McGrath  <roland@hack.frob.com>
12756
12757         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
12758         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
12759         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
12760         * sysdeps/i386/configure: Regenerated.
12761         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
12762         * sysdeps/mach/configure: Regenerated.
12763         * sysdeps/mach/hurd/configure: Regenerated.
12764         * sysdeps/powerpc/configure: Regenerated.
12765         * sysdeps/powerpc/powerpc32/configure: Regenerated.
12766         * sysdeps/powerpc/powerpc64/configure: Regenerated.
12767         * sysdeps/s390/s390-32/configure: Regenerated.
12768         * sysdeps/s390/s390-64/configure: Regenerated.
12769         * sysdeps/sh/configure: Regenerated.
12770         * sysdeps/sparc/configure: Regenerated.
12771         * sysdeps/unix/sysv/linux/configure: Regenerated.
12772         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
12773         * sysdeps/x86_64/configure: Regenerated.
12774
12775         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
12776         defined.  Don't check if MAP is NULL.
12777
12778 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
12779
12780         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
12781         (_G_stat64): Likewise.
12782         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
12783         (_G_stat64): Likewise.
12784         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
12785         instead of struct _G_stat64.
12786         * libio/fileops.c (mmap_remap_check): Likewise.
12787         (decide_maybe_mmap): Likewise.
12788         (_IO_new_file_seekoff): Likewise.
12789         (_IO_file_stat): Likewise.
12790         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
12791         _G_off64_t.
12792         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
12793         instead of struct _G_stat64.
12794         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
12795
12796 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
12797
12798         [BZ #14602]
12799         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
12800         Replace with ...
12801         (CHECK_EOL): New macro.
12802         (two_way_short_needle): Check beginning of haystack for EOL.  Use
12803         CHECK_EOL.
12804         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
12805         Replace with CHECK_EOL.
12806         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
12807         Replace with CHECK_EOL.
12808
12809 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
12810
12811         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
12812         type-generic.
12813         * math/libm-test.inc: Update comment listing what functions and
12814         macros are tested.
12815         (finite_test): New function.
12816         (isinf_test): Likewise.
12817         (isnan_test): Likewise.
12818         (fpclassify_test): Test subnormal input.
12819         (isfinite_test): Likewise.
12820         (isnormal_test): Likewise.
12821         (main): Call the new functions.
12822
12823 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
12824
12825         [BZ #14660]
12826         * Makerules (%.dynsym): Force C locale when running
12827         $(OBJDUMP) --dynamic-syms.
12828
12829 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
12830
12831         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
12832         <stdint.h>.
12833
12834 2012-10-06  David S. Miller  <davem@davemloft.net>
12835
12836         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
12837         upper 32-bits of the length value in %o2 since we use branch-on-register
12838         tests which consider the entire 64-bit register.
12839
12840 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
12841
12842         * string/test-strstr.c (check2): Add a test for page boundary.
12843
12844 2012-10-05  David S. Miller  <davem@davemloft.net>
12845
12846         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
12847         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
12848         file.
12849         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
12850         sysdep_routines.
12851         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
12852         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
12853         and bzero when HWCAP_SPARC_CRYPTO is present.
12854
12855 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
12856
12857         [BZ #14602]
12858         * string/test-strstr.c (check2): New function.
12859         (test_main): Call check2.
12860
12861         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
12862         and bug-strchr1.
12863         * string/bug-strcasestr1.c (do_test): Moved to ...
12864         * string/test-strcasestr.c (check1): Here.  New function.
12865         (do_one_test): Break out result checking code into ...
12866         (check_result): This.  New function.
12867         (do_one_test): Call check_result.
12868         (test_main): Call check1.
12869         * string/bug-strchr1.c (do_test): Moved to ...
12870         * string/test-strchr.c (check1): Here.  New function.
12871         (do_one_test): Break out result checking code into ...
12872         (check_result): This.  New function.
12873         (do_one_test): Call check_result.
12874         (test_main): Call check1.
12875         * string/bug-strstr1.c (main): Moved to ...
12876         * string/test-strstr.c (check1): Here.  New function.
12877         (do_one_test): Break out result checking code into ...
12878         (check_result): This.  New function.
12879         (do_one_test): Call check_result.
12880         (test_main): Call check1.
12881         * string/bug-strcasestr1.c: Removed.
12882         * string/bug-strchr1.c: Likewise.
12883         * string/bug-strstr1.c: Likewise.
12884
12885         * elf/Makefile (dl-routines): Add hwcaps.
12886         * elf/dl-support.c (_dl_important_hwcaps): Removed.
12887         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
12888         (_dl_important_hwcaps): Moved to ...
12889         * elf/dl-hwcaps.c: Here.  New file.
12890         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
12891
12892         [BZ #14557]
12893         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
12894         if IS_IN_rtld isn't defined.
12895
12896         * elf/dl-support.c (_dl_sysinfo_map): New.
12897         Include "get-dynamic-info.h" and "setup-vdso.h".
12898         (_dl_non_dynamic_init): Call setup_vdso.
12899         * elf/dynamic-link.h: Don't include <assert.h>.
12900         (elf_get_dynamic_info): Moved to ...
12901         * elf/get-dynamic-info.h: Here.  New file.
12902         * elf/dynamic-link.h: Include "get-dynamic-info.h".
12903         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
12904         * elf/setup-vdso.h: Here.  New file.
12905         * elf/rtld.c: Include "setup-vdso.h".
12906         (dl_main): Call setup_vdso.
12907
12908 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
12909
12910         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
12911         creal in comment listing functions tested.  List finite, isinf,
12912         isnan, isless, islessequal, isgreater, isgreaterequal,
12913         islessgreater, isunordered, lgamma_r and pow10 as functions and
12914         macros not tested.  Mention which functions not tested are aliases
12915         for other functions.  Fix typo.  Note that signs of NaNs are not
12916         tested.
12917
12918         * scripts/config.guess: Update from config.git.
12919         * scripts/config.sub: Likewise.
12920
12921 2012-10-04  Roland McGrath  <roland@hack.frob.com>
12922
12923         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
12924         * misc/madvise.c (madvise): Renamed to __madvise.
12925         Make madvise a weak alias.
12926         * include/sys/mman.h: Declare __madvise.
12927         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
12928         * sysdeps/unix/syscalls.list
12929         (madvise): Make __madvise the strong name, and madvise a weak alias.
12930         * sysdeps/unix/sysv/linux/syscalls.list
12931         (madvise, mmap): Remove redundant entries.
12932         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
12933         * malloc/malloc.c (mtrim): Likewise.
12934         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
12935
12936 2012-10-03  Roland McGrath  <roland@hack.frob.com>
12937
12938         * sysdeps/mach/hurd/dl-cache.c: File removed.
12939         * config.h.in (USE_LDCONFIG): New #undef.
12940         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
12941         * configure: Regenerated.
12942         * elf/Makefile (dl-routines): Add dl-cache only under
12943         [$(use-ldconfig) = yes].
12944         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
12945         cache on [USE_LDCONFIG].
12946         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
12947         [USE_LDCONFIG].
12948         * elf/rtld.c (dl_main): Likewise.
12949
12950 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
12951
12952         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
12953         _SC_LEVEL4_CACHE_LINESIZE.
12954
12955 2012-10-03  Roland McGrath  <roland@hack.frob.com>
12956
12957         * sysdeps/unix/bsd/confstr.h: File removed.
12958
12959 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
12960
12961         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
12962         sys/sdt-config.h.
12963
12964 2012-10-02  Roland McGrath  <roland@hack.frob.com>
12965
12966         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
12967         Make 'mapoff' field ElfW(Off) rather than off_t.
12968
12969 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12970
12971         * nscd/Makefile: Remove nscd-cflags and all its users.
12972         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
12973         (CFLAGS-nonlib): Add compiler flags for nscd modules.
12974
12975         [BZ #10631]
12976         * malloc.c (malloc_printerr): Clarify error message.
12977
12978 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
12979
12980         [BZ #14648]
12981         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12982         Set bit_FMA_Usable if FMA is supported.
12983         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
12984         macro.
12985         (bit_FMA4_Usable): Updated.
12986         (index_FMA_Usable): New macro.
12987         (CPUID_FMA): Likewise
12988         (HAS_FMA): Defined with bit_FMA_Usable.
12989
12990 2012-10-01  Roland McGrath  <roland@hack.frob.com>
12991
12992         * bits/types.h (__swblk_t): Type removed.
12993         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
12994         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
12995         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12996         (__SWBLK_T_TYPE): Likewise.
12997         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
12998         (__SWBLK_T_TYPE): Likewise.
12999         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13000         (__SWBLK_T_TYPE): Likewise.
13001         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13002         (__SWBLK_T_TYPE): Likewise.
13003
13004 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
13005             Honza Horak <hhorak@redhat.com>
13006
13007         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
13008         (xdr_mapname): Use YPMAXMAP as maxsize.
13009         (xdr_peername): Use YPMAXPEER as maxsize.
13010         (xdr_keydat): Use YPAXRECORD as maxsize.
13011         (xdr_valdat): Use YPMAXRECORD as maxsize.
13012
13013 2012-10-01  Roland McGrath  <roland@hack.frob.com>
13014
13015         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
13016
13017         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
13018         * csu/init-first.c: ... here.
13019         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
13020         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
13021         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
13022         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
13023         * sysdeps/i386/init-first.c: File removed.
13024         * sysdeps/sh/init-first.c: File removed.
13025
13026 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
13027
13028         [BZ #14645]
13029         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
13030         if x * y might underflow to zero and z is zero.
13031         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13032         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13033         * math/libm-test.inc (min_subnorm_value): New variable.
13034         (fma_test): Add more tests.
13035         (fma_test_towardzero): Likewise.
13036         (fma_test_downward): Likewise
13037         (fma_test_upward): Likewise.
13038         (initialize): Set min_subnorm_value.
13039
13040 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
13041
13042         [BZ #14638]
13043         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
13044         0 + 0.
13045         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
13046         mode for addition resulting in exact zero.
13047         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
13048         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
13049         exact 0 + 0.
13050         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
13051         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13052         * math/libm-test.inc (fma_test): Add more tests.
13053         (fma_test_towardzero): New function.
13054         (fma_test_downward): Likewise.
13055         (fma_test_upward): Likewise.
13056         (main): Call the new functions.
13057
13058 2012-09-28  David S. Miller  <davem@davemloft.net>
13059
13060         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
13061
13062 2012-09-28  Roland McGrath  <roland@hack.frob.com>
13063
13064         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
13065         instead of SIGALRM.
13066
13067         * sysdeps/gnu/_G_config.h: Moved to ...
13068         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
13069         * sysdeps/mach/hurd/_G_config.h: Moved to ...
13070         * sysdeps/generic/_G_config.h: ... here.
13071
13072         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
13073
13074         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
13075
13076         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
13077         Conditionalize target on [libnss_test1.so-version].
13078
13079         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
13080
13081         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
13082         (elfobjdir): Move out of conditionals.
13083
13084         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
13085         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
13086         (__nss_lookup_function): Conditionalize label remove_from_tree on
13087         [!DO_STATIC_NSS || SHARED], matching its only use.
13088
13089 2012-09-28  David S. Miller  <davem@davemloft.net>
13090
13091         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
13092         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
13093         file.
13094         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
13095         sysdep_routines.
13096         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
13097         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
13098         when HWCAP_SPARC_CRYPTO is present.
13099
13100 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
13101
13102         * io/tst-mknodat.c: Create a FIFO instead of a socket.
13103
13104 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
13105
13106         [BZ #6530]
13107         * stdio-common/vfprintf.c (process_string_arg): Revert
13108         2000-07-22 change.
13109
13110 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
13111
13112         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
13113         for testcase.
13114         * stdio-common/tst-sprintf.c: Include <locale.h>
13115         (main): Test sprintf's handling of incomplete multibyte
13116         characters.
13117
13118 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
13119
13120         * elf/dl-runtime.c (VERSYMIDX): Removed.
13121         * elf/dl-version.c (VERSYMIDX): Likewise.
13122         * elf/do-rel.h (VERSYMIDX): Likewise.
13123         (VALIDX): Likewise.
13124         * elf/dynamic-link.h (VERSYMIDX): Likewise.
13125         * elf/rtld.c (VALIDX): Likewise.
13126         (ADDRIDX): Likewise.
13127         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
13128         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
13129         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
13130         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
13131         (VALIDX): Likewise.
13132         (ADDRIDX): Likewise.
13133
13134 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
13135
13136         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
13137
13138 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
13139
13140         [BZ #11438]
13141         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
13142         to global scope.
13143         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
13144         addresses are in the same scope as 192.0.2/24.
13145         * posix/gai.conf: Document new scope table defaults.
13146
13147 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13148
13149         [BZ #5298]
13150         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
13151         for ftell.  Compute offsets from write pointers instead.
13152         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
13153
13154 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13155
13156         [BZ #14543]
13157         * libio/Makefile (tests): New test case tst-fseek.
13158         * libio/tst-fseek.c: New test case to verify that fseek/ftell
13159         combination works in wide mode.
13160         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
13161         state when the external buffer state changes.
13162
13163 2012-09-27  David S. Miller  <davem@davemloft.net>
13164
13165         [BZ #14376]
13166         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
13167         pass reloc->r_addend in as the 'high' argument to
13168         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
13169
13170         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13171
13172 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
13173
13174         * rt/tst-aio2.c: Include <pthread.h>.
13175         * rt/tst-aio3.c: Likewise.
13176
13177 2012-09-27  Steve Ellcey  <sellcey@mips.com>
13178
13179         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
13180
13181 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
13182
13183         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
13184         contents on [SHARED].
13185
13186 2012-09-26  Marek Polacek  <polacek@redhat.com>
13187
13188         [BZ #14530]
13189         [BZ #13741]
13190         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
13191         for C++ and GCC <4.3 as well as for non GCC compilers.
13192
13193 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
13194
13195         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13196
13197 2012-09-25  Roland McGrath  <roland@hack.frob.com>
13198
13199         * Makefile.in (all, install): Declare with .PHONY.
13200         Reported by Michael Hope <michael.hope@linaro.org>.
13201
13202 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13203
13204         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
13205         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
13206         system header.
13207         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
13208         Likewise.
13209         (sydep_routines): Add the new and the internal functions.
13210         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
13211         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
13212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
13213         (GLIBC_2.17): Add the new function.
13214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
13215         (GLIBC_2.17): Likewise.
13216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
13217         (GLIBC_2.17): Likewise.
13218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
13219         (GLIBC_2.17): Likewise.
13220         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
13221
13222 2012-09-25  Alan Modra  <amodra@gmail.com>
13223
13224         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
13225         Add release barrier before setting once_control to say
13226         initialisation is done.  Add hints on lwarx.  Use macro in
13227         place of isync.
13228         (clear_once_control): Add release barrier.
13229
13230 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
13231
13232         [BZ #13629]
13233         * math/s_clog.c (__clog): Handle more values close to |z| = 1
13234         specially.
13235         * math/s_clog10.c (__clog10): Likewise.
13236         * math/s_clog10f.c (__clog10f): Likewise.
13237         * math/s_clog10l.c (__clog10l): Likewise.
13238         * math/s_clogf.c (__clogf): Likewise.
13239         * math/s_clogl.c (__clogl): Likewise.
13240         * math/Makefile (libm-calls): Add x2y2m1.
13241         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
13242         (__x2y2m1): Likewise.
13243         (__x2y2m1l): Likewise.
13244         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
13245         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
13246         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13247         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13248         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
13249         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13250         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
13251         * sysdeps/i386/fpu/libm-test-ulps: Update.
13252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13253
13254         [BZ #14621]
13255         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
13256         int as type of variable DEPTH.
13257         (glob): Use size_t instead of int as type of variables NEWCOUNT
13258         and OLD_PATHC.
13259
13260 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13261
13262         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
13263         Add s_sincosf-sse2.
13264         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
13265         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
13266         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
13267         macros for using routine as __sincosf_ia32.
13268         Use macro for function declaration and weak_alias.
13269         * sysdeps/i386/fpu/libm-test-ulps: Update.
13270
13271         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
13272         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13273
13274         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
13275         subnormal argument.
13276         * math/s_cexpf.c (__cexpf): Likewise.
13277         * math/s_csinf.c (__csinf): Likewise.
13278         * math/s_csinhf.c (__csinhf): Likewise.
13279         * math/s_ctanf.c (__ctanf): Likewise.
13280         * math/s_ctanhf.c (__ctanhf): Likewise.
13281         * math/s_ccosh.c (__ccoshf): Likewise.
13282         * math/s_cexp.c (__cexpl): Likewise.
13283         * math/s_csin.c (__csin): Likewise.
13284         * math/s_csinh.c (__csinh): Likewise.
13285         * math/s_ctan.c (__ctan): Likewise.
13286         * math/s_ctanh.c (ctanh): Likewise.
13287         * math/s_ccoshl.c (__ccoshl): Likewise.
13288         * math/s_cexpl.c (__cexpl): Likewise.
13289         * math/s_csinl.c (__csinl): Likewise.
13290         * math/s_csinhl.c (__csinhl): Likewise.
13291         * math/s_ctanl.c (__ctanl): Likewise.
13292         * math/s_ctanhl.c (__ctanhl): Likewise.
13293
13294 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
13295
13296         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
13297         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
13298         (_IO_off_t): Define to __off_t, not _G_off_t.
13299         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
13300         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
13301         (_IO_wint_t): Define to wint_t, not _G_wint_t.
13302         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
13303         type of __dummy and __dummy2 fields.
13304         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
13305         (_G_ssize_t): Likewise.
13306         (_G_off_t): Likewise.
13307         (_G_pid_t): Likewise.
13308         (_G_uid_t): Likewise.
13309         (_G_wchar_t): Likewise.
13310         (_G_wint_t): Likewise.
13311         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
13312         (_G_ssize_t): Likewise.
13313         (_G_off_t): Likewise.
13314         (_G_pid_t): Likewise.
13315         (_G_uid_t): Likewise.
13316         (_G_wchar_t): Likewise.
13317         (_G_wint_t): Likewise.
13318         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
13319         (_G_ssize_t): Likewise.
13320         (_G_off_t): Likewise.
13321         (_G_pid_t): Likewise.
13322         (_G_uid_t): Likewise.
13323         (_G_wchar_t): Likewise.
13324         (_G_wint_t): Likewise.
13325
13326 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13327
13328         * malloc/arena.c: Include malloc-sysdep.h.
13329         (shrink_heap): Use check_may_shrink_heap to decide if madvise
13330         is sufficient to shrink the heap or an unmap is needed.
13331         * sysdeps/generic/malloc-sysdep.h: New file.  Define
13332         new function check_may_shrink_heap.
13333         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
13334         new function check_may_shrink_heap.
13335
13336 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13337
13338         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
13339         comments.
13340
13341 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
13342
13343         * catgets/test-gencat.sh: Add "set -e".
13344         * elf/tst-pathopt.sh: Likewise.
13345         * grp/tst_fgetgrent.sh: Likewise.
13346         * iconvdata/run-iconv-test.sh: Likewise.
13347         * intl/tst-gettext.sh: Likewise.
13348         * intl/tst-gettext2.sh: Likewise.
13349         * intl/tst-gettext4.sh: Likewise.
13350         * intl/tst-gettext6.sh: Likewise.
13351         * intl/tst-translit.sh: Likewise.
13352         * io/ftwtest-sh: Likewise.
13353         * libio/test-freopen.sh: Likewise.
13354         * malloc/tst-mtrace.sh: Likewise.
13355         * posix/globtest.sh: Likewise.
13356         * posix/tst-getconf.sh: Likewise.
13357         * posix/wordexp-tst.sh: Likewise.
13358         * stdio-common/tst-printf.sh: Likewise.
13359         * stdio-common/tst-unbputc.sh: Likewise.
13360         * stdlib/tst-fmtmsg.sh: Likewise.
13361         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
13362         * catgets/Makefile: Do not specify -e option when running
13363         testsuite shell scripts.
13364         * elf/Makefile: Likewise.
13365         * grp/Makefile: Likewise.
13366         * iconvdata/Makefile: Likewise.
13367         * intl/Makefile: Likewise.
13368         * io/Makefile: Likewise.
13369         * libio/Makefile: Likewise.
13370         * malloc/Makefile: Likewise.
13371         * posix/Makefile: Likewise.
13372         * stdio-common/Makefile: Likewise.
13373         * stdlib/Makefile: Likewise.
13374         * sysdeps/x86_64/Makefile: Likewise.
13375
13376         * io/ftwtest-sh: Add copyright header.
13377         * posix/globtest.sh: Likewise.
13378         * posix/tst-getconf.sh: Likewise.
13379         * posix/wordexp-tst.sh: Likewise.
13380         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
13381
13382 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
13383
13384         [BZ #13679]
13385         * Makeconfig (+link): Defined as $(+link-static) if
13386         $(build-shared) isn't yes.
13387         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
13388         isn't yes.
13389         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
13390
13391         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
13392
13393         [BZ #14562]
13394         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
13395         new chunk size with MALLOC_ALIGN_MASK.
13396
13397 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
13398
13399         [BZ #5044]
13400         * stdio-common/printf_fphex.c: Include <stdbool.h> and
13401         <rounding-mode.h>.
13402         (__printf_fphex): Determine rounding using get_rounding_mode and
13403         round_away.
13404         * stdio-common/tst-printf-round.c (struct hex_test): New
13405         structure.
13406         (hex_tests): New variable.
13407         (test_hex_in_one_mode): New function.
13408         (do_test): Also run tests for hex float output.
13409
13410 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
13411
13412         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
13413         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
13414         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
13415         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
13416         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
13417         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
13418         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
13419         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
13420
13421 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
13422
13423         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
13424         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
13425         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
13426         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
13427
13428 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
13429
13430         [BZ #14579]
13431         * elf/rtld.c (dl_main): Limit the check for self loading to normal
13432         mode only.
13433         * elf/tst-rtld-load-self.sh: New test.
13434         * elf/Makefile: Run it.
13435
13436 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
13437
13438         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
13439         (tst-writev-ENV): Remove.
13440         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
13441
13442 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
13443
13444         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
13445
13446 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
13447
13448         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
13449         unconditional.
13450         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
13451         Likewise.
13452         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
13453         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
13454         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
13455         Likewise.
13456
13457 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
13458
13459         [BZ #14587]
13460         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
13461         * config.make.in (have-cpp-asm-debuginfo): Removed.
13462         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
13463         * configure: Regenerated.
13464
13465 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
13466
13467         [BZ #5044]
13468         * stdio-common/printf_fp.c: Include <stdbool.h> and
13469         <rounding-mode.h>.
13470         (___printf_fp): Determine rounding using get_rounding_mode and
13471         round_away.
13472         * stdio-common/tst-printf-round.c: New file.
13473         * stdio-common/Makefile (tests): Add tst-printf-round.
13474         (link-libm): New variable.
13475         ($(objpfx)tst-printf-round): Depend in $(link-libm).
13476
13477 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
13478
13479         [BZ #14576]
13480         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
13481         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
13482         Likewise.
13483         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
13484         Likewise.
13485
13486 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
13487
13488         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
13489         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
13490         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
13491         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
13492
13493 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
13494
13495         [BZ #14518]
13496         * include/rounding-mode.h: New file.
13497         * sysdeps/generic/get-rounding-mode.h: Likewise.
13498         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
13499         * stdlib/strtod_l.c: Include <rounding-mode.h>.
13500         (MAX_VALUE): New macro.
13501         (MIN_VALUE): Likewise.
13502         (overflow_value): New function.
13503         (underflow_value): Likewise.
13504         (round_and_return): Use overflow_value and underflow_value to
13505         determine return values in overflow and underflow cases.  Use
13506         round_away to determine rounding depending on rounding mode.
13507         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
13508         determine return values in overflow and underflow cases.
13509         * stdlib/tst-strtod-round.c: Include <fenv.h>.
13510         (struct test_results): New structure.
13511         (struct test): Use struct test_results to store expected results
13512         for all rounding modes.
13513         (TEST): Include expected results for all rounding modes.
13514         (test_in_one_mode): New function.
13515         (do_test): Use test_in_one_mode to compute and check results.
13516         Check results for all rounding modes.
13517         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
13518         $(link-libm).
13519
13520 2012-12-09  Allan McRae  <allan@archlinux.org>
13521
13522         * sysdeps/i386/fpu/libm-test-ulps: Update
13523
13524 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
13525
13526         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
13527         (_G_int32_t): Likewise.
13528         (_G_uint16_t): Likewise.
13529         (_G_uint32_t): Likewise.
13530         (_G_HAVE_BOOL): Likewise.
13531         (_G_HAVE_ATEXIT): Likewise.
13532         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
13533         (_G_HAVE_IO_FILE_OPEN): Likewise.
13534         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
13535         (_G_int32_t): Likewise.
13536         (_G_uint16_t): Likewise.
13537         (_G_uint32_t): Likewise.
13538         (_G_HAVE_BOOL): Likewise.
13539         (_G_HAVE_ATEXIT): Likewise.
13540         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
13541         (_G_HAVE_IO_FILE_OPEN): Likewise.
13542         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
13543         (_G_int32_t): Likewise.
13544         (_G_uint16_t): Likewise.
13545         (_G_uint32_t): Likewise.
13546         (_G_HAVE_BOOL): Likewise.
13547         (_G_HAVE_ATEXIT): Likewise.
13548         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
13549         (_G_HAVE_IO_FILE_OPEN): Likewise.
13550
13551 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
13552
13553         * csu/libc-tls.c: Update copyright years.
13554
13555 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
13556
13557         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
13558         [!_G_USING_THUNKS]: Remove conditional code.
13559         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
13560         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
13561
13562         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
13563         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
13564         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
13565         (_G_VTABLE_LABEL_PREFIX): Likewise.
13566         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
13567         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
13568         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
13569         (_G_VTABLE_LABEL_PREFIX): Likewise.
13570         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
13571         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
13572         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
13573         (_G_VTABLE_LABEL_PREFIX): Likewise.
13574         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
13575
13576 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
13577
13578         * libio/Makefile: Include ../Makeconfig before tests.
13579         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
13580         only if $(build-shared) is yes.
13581
13582         * iconv/gconv_db.c: Update copyright years.
13583
13584 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13585
13586         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
13587         unwind info if defined PIC. Fix special cases description.
13588         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
13589
13590         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
13591         DP_HI_MASK entry.
13592         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
13593
13594 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13595
13596         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
13597
13598         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
13599         is NULL.
13600
13601         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
13602         (LDLIBS-tst-chk4): This.
13603         (LDFLAGS-tst-chk5): Renamed to ...
13604         (LDLIBS-tst-chk5): This.
13605         (LDFLAGS-tst-chk6): Renamed to ...
13606         (LDLIBS-tst-chk6): This.
13607         (LDFLAGS-tst-lfschk4): Renamed to ...
13608         (LDLIBS-tst-lfschk4): This.
13609         (LDFLAGS-tst-lfschk5): Renamed to ...
13610         (LDLIBS-tst-lfschk5): This.
13611         (LDFLAGS-tst-lfschk6): Renamed to ...
13612         (LDLIBS-tst-lfschk6): This.
13613
13614         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
13615         on $(common-objpfx)soversions.mk.
13616
13617 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
13618
13619         [BZ #10014]
13620         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
13621         example host name.
13622
13623 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13624
13625         * malloc/arena.c (arena_get_retry): New function that gets
13626         another arena for the caller to try its request on.
13627         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
13628         current arena cannot fulfill the request.
13629         (__libc_memalign): Likewise.
13630         (__libc_memalign): Likewise.
13631         (__libc_pvalloc): Likewise.
13632         (__libc_calloc): Likewise.
13633
13634 2012-09-05  John Tobey  <john.tobey@gmail.com>
13635
13636         [BZ #13542]
13637         * manual/arith.texi (Operations on Complex): Fix description
13638         of carg branch cut.
13639
13640 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
13641
13642         [BZ #10014]
13643         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
13644         host name.
13645
13646         [BZ #10038]
13647         * manual/memory.texi (Memory): Make order of menu items match
13648         order of sections.
13649
13650 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13651
13652         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
13653         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
13654         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
13655
13656 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13657
13658         * csu/libc-tls.c (static_dtv): Renamed to ...
13659         (_dl_static_dtv): This.  Make it global.
13660         (_dl_initial_dtv): Removed.
13661         (__libc_setup_tls): Updated.
13662         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
13663         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
13664         DL_INITIAL_DTV.
13665
13666 2012-09-06  Petr Machata  <pmachata@redhat.com>
13667
13668         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
13669         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
13670         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
13671         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
13672
13673 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13674
13675         [BZ #14545]
13676         * csu/libc-tls.c (_dl_initial_dtv): New variable.
13677         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
13678         freeing dtv[-1].
13679
13680 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13681
13682         [BZ #14544]
13683         * Makeconfig (link-static-before-libc): Replace $(+prector)
13684         with $(+prectorT).
13685         (link-static-after-libc): Replace $(+postctor) with
13686         $(+postctorT).
13687         (link-bounded): Replace $(+prector)/$(+postctor) with
13688         $(+prectorT)/$(+postctorT).
13689         (+prectorT): New macro.
13690         (+postctorT): Likewise.
13691
13692 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
13693
13694         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
13695         (round_str): Handle values above the maximum for IBM long double
13696         as inexact.
13697         * stdlib/tst-strtod-round.c (tests): Regenerated.
13698
13699 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13700
13701         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
13702         assembler flag.
13703         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
13704         zarch_nohighgprs around the zarch optimized routines.
13705         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
13706         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
13707         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
13708         for zarch.
13709
13710 2012-09-05  David S. Miller  <davem@davemloft.net>
13711
13712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13713
13714         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
13715         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
13716         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
13717         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
13718         entries.
13719
13720 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13721
13722         * malloc/arena.c: Fold copyright years.
13723         * malloc/mcheck.c, malloc/memusage.c: Likewise.
13724
13725 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13726
13727         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
13728
13729 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13730
13731         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
13732
13733 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13734
13735         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
13736         change internal state upon failure.
13737
13738 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13739
13740         * malloc/mcheck.c (mcheck_check_all): Fix typo.
13741         * malloc/memusage.c (mmap): Likewise.
13742         (mmap64, mremap): Likewise.  Adjust name in comment.
13743
13744 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
13745
13746         * libio/fileops.c: Fix typos in comments.
13747         * libio/oldfileops.c: Likewise.
13748         * libio/wfileops.c: Likewise.
13749
13750 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
13751
13752         [BZ #1349]
13753         * malloc/Makefile (tests): Add tst-malloc-usable test case.
13754         (tst-malloc-usable-ENV): Set environment for test case.
13755         * malloc/hooks.c (malloc_check_get_size): New function to get
13756         requested size.
13757         * malloc/malloc.c (musable): Use malloc_check_get_size.
13758         * malloc/tst-malloc-usable.c: New test case.
13759
13760 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
13761
13762         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
13763
13764 2012-09-05  Allan McRae  <allan@archlinux.org>
13765
13766         [BZ #13966]
13767         * configure.in (CXX_SYSINCLUDES): Use compiler output to
13768         determine header location.
13769         * configure: Regenerated.
13770
13771 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
13772
13773         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
13774         float format.
13775         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
13776         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
13777         format.
13778         (test): Regenerate.
13779
13780 2012-09-04  David S. Miller  <davem@davemloft.net>
13781
13782         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
13783         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
13784         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
13785
13786 2012-09-04  Florian Weimer  <fweimer@redhat.com>
13787
13788         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
13789         failures.
13790
13791         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
13792
13793 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
13794
13795         [BZ #9914]
13796         * libio/iogetdelim.c: Include <limits.h>.
13797         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
13798         + len + 1 would overflow.
13799
13800 2012-09-03  Andreas Jaeger  <aj@suse.de>
13801
13802         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13803         * sysdeps/i386/fpu/libm-test-ulps: Update.
13804
13805 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13806
13807         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
13808         Add s_sinf-sse2, s_conf-sse2.
13809
13810         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
13811         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
13812         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
13813         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
13814
13815         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
13816         for using routine as __sinf_ia32.
13817         Use macro for function declaration and weak_alias.
13818         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
13819         for using routine as __cosf_ia32.
13820         Use macro for function declaration and weak_alias.
13821
13822         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
13823         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
13824
13825         * sysdeps/x86_64/fpu/s_sinf.S: New file.
13826         * sysdeps/x86_64/fpu/s_cosf.S: New file.
13827         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13828
13829         * math/libm-test.inc (cos_test): Add more test cases.
13830         (sin_test): Likewise.
13831         (sincos_test): Likewise.
13832
13833 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13834
13835         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
13836         (IFUNC_RESOLVE): Make pointers to the specialized implementations
13837         hidden.
13838         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
13839
13840 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
13841
13842         [BZ #14538]
13843         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
13844         first element of the GOT.
13845         (elf_machine_load_address): Return the difference between
13846         the runtime address of _DYNAMIC and elf_machine_dynamic ().
13847
13848 2012-09-01  Allan McRae  <allan@archlinux.org>
13849
13850         [BZ #13412]
13851         * configure.in (AWK): Require gawk version 3.0 or later.
13852         * configure: Regenerated.
13853
13854 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
13855
13856         * sysdeps/unix/sysv/linux/kernel-features.h
13857         (__ASSUME_POSIX_CPU_TIMERS): Remove.
13858         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
13859         [__NR_clock_getres]: Make code unconditional.
13860         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
13861         (clock_getcpuclockid): Remove code left unreachable by removal of
13862         conditionals.
13863         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
13864         code unconditional.
13865         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
13866         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
13867         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
13868         Make code unconditional.
13869         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
13870         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
13871         * sysdeps/unix/sysv/linux/clock_settime.c
13872         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
13873         conditional code.
13874         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
13875         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
13876
13877 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
13878
13879         [BZ #14476]
13880         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
13881         scripts/test-installation.pl.
13882
13883         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
13884         and $ld_so_version if it is set.
13885
13886 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
13887
13888         [BZ #14516]
13889         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
13890         failure if reading from procfs failed.
13891         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
13892
13893 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
13894
13895         * sysdeps/unix/sysv/linux/kernel-features.h
13896         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
13897         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
13898         Remove conditional code.
13899         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13900         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
13901         Remove conditional code.
13902         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13903         * sysdeps/unix/sysv/linux/i386/fxstat.c
13904         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
13905         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13906         * sysdeps/unix/sysv/linux/i386/fxstatat.c
13907         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
13908         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13909         * sysdeps/unix/sysv/linux/i386/lxstat.c
13910         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
13911         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13912         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
13913         Remove conditional code.
13914         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13915         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
13916         Remove conditional code.
13917         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13918         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
13919         <kernel-features.h>.
13920         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
13921         Remove.
13922         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
13923         Remove conditional code.
13924         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13925         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
13926         Remove conditional.
13927
13928 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
13929
13930         [BZ #5400]
13931         * NEWS: Add fixed bug number.
13932
13933 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
13934
13935         [BZ #14519]
13936         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
13937         underflowing exponent in case of negative sign.
13938         * stdlib/tst-strtod-round-data: Add more tests.
13939         * stdlib/tst-strtod-round.c (tests): Regenerated.
13940
13941         [BZ #3479]
13942         * stdlib/strtod_l.c (NDIG): Remove.
13943         (HEXNDIG): Likewise.
13944         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
13945         smallest representable value.
13946         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
13947         lie within an exact representation of 1/2 ulp of the result.
13948         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
13949         unconditionally.
13950         (TENS_P9_IDX): Define unconditionally.
13951         (TENS_P9_SIZE): Likewise.
13952         (TENS_P10_IDX): Likewise.
13953         (TENS_P10_SIZE): Likewise.
13954         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
13955         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
13956         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
13957         entries for 10^2^13 and 10^2^14.
13958         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
13959         (TENS_P13_IDX): Define.
13960         (TENS_P13_SIZE): Likewise.
13961         (TENS_P14_IDX): Likewise.
13962         (TENS_P14_SIZE): Likewise.
13963         (_fpioconst_pow10): Change array size to
13964         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
13965         unconditional.
13966         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
13967         1024]: Add entries for 10^2^13 and 10^2^14.
13968         [LAST_POW10 > _LAST_POW10]: Remove #error.
13969         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
13970         (_fpioconst_pow10): Change array size to
13971         FPIOCONST_POW10_ARRAY_SIZE.
13972         * stdlib/gen-fpioconst.c: New file.
13973         * stdlib/gen-tst-strtod-round.c: Likewise.
13974         * stdlib/tst-strtod-round-data: Likewise.
13975         * stdlib/tst-strtod-round.c: Likewise.
13976         * stdlib/Makefile (tests): Add tst-strtod-round.
13977
13978         [BZ #14459]
13979         * stdlib/strtod_l.c: Include <stdint.h>.
13980         (NDEBUG): Do not define.
13981         (round_and_return): Change EXPONENT parameter to type intmax_t.
13982         Rearrange calculations to avoid internal overflow possibilities.
13983         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
13984         Rearrange calculations to avoid internal overflow possibilities.
13985         Assert that number fits inside MPNSIZE limbs.
13986         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
13987         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
13988         calculations and add assertions to avoid internal overflow
13989         possibilities.  Add casts to avoid signed/unsigned operations.
13990         * stdlib/tst-strtod-overflow.c: New file.
13991         * stdlib/Makefile (tests): Add tst-strtod-overflow.
13992
13993 2012-08-25  Marek Polacek  <polacek@redhat.com>
13994
13995         * time/time.h: Fix some typos in comments.
13996
13997 2012-08-23  Roland McGrath  <roland@hack.frob.com>
13998
13999         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
14000         * posix/tst-rfc3484-2.c: Likewise.
14001         * posix/tst-rfc3484-3.c: Likewise.
14002
14003 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
14004
14005         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
14006         (EF_ARM_ABI_FLOAT_HARD): Likewise.
14007
14008 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
14009
14010         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
14011         #include of fxstatat64.c.
14012
14013 2012-08-22  Roland McGrath  <roland@hack.frob.com>
14014
14015         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
14016         * shadow/getspent_r.c: Likewise.
14017         * shadow/getspnam.c: Likewise.
14018         * shadow/getspnam_r.c: Likewise.
14019         * gshadow/getsgent.c: Likewise.
14020         * gshadow/getsgent_r.c: Likewise.
14021         * gshadow/getsgnam.c: Likewise.
14022         * gshadow/getsgnam_r.c: Likewise.
14023         * inet/getnetbyad.c: Likewise.
14024         * inet/getnetbyad_r.c: Likewise.
14025         * inet/getnetbynm.c: Likewise.
14026         * inet/getnetbynm_r.c: Likewise.
14027         * inet/getnetent.c: Likewise.
14028         * inet/getnetent_r.c: Likewise.
14029         * inet/getproto.c: Likewise.
14030         * inet/getproto_r.c: Likewise.
14031         * inet/getprtent.c: Likewise.
14032         * inet/getprtent_r.c: Likewise.
14033         * inet/getprtname.c: Likewise.
14034         * inet/getprtname_r.c: Likewise.
14035         * inet/getrpcbyname.c: Likewise.
14036         * inet/getrpcbyname_r.c: Likewise.
14037         * inet/getrpcbynumber.c: Likewise.
14038         * inet/getrpcbynumber_r.c: Likewise.
14039         * inet/getrpcent.c: Likewise.
14040         * inet/getrpcent_r.c: Likewise.
14041         * inet/getaliasent.c: Likewise.
14042         * inet/getaliasent_r.c: Likewise.
14043         * inet/getaliasname.c: Likewise.
14044         * inet/getaliasname_r.c: Likewise.
14045         * nscd/getgrgid_r.c: Likewise.
14046         * nscd/getgrnam_r.c: Likewise.
14047         * nscd/gethstbyad_r.c: Likewise.
14048         * nscd/gethstbynm3_r.c: Likewise.
14049         * nscd/getpwnam_r.c: Likewise.
14050         * nscd/getpwuid_r.c: Likewise.
14051         * nscd/getsrvbynm_r.c: Likewise.
14052         * nscd/getsrvbypt_r.c: Likewise.
14053         * nscd/gai.c: Likewise.
14054
14055         * configure.in (build_nscd): New substituted variable, set
14056         by --disable-build-nscd and defaults to $use_nscd.
14057         * configure: Regenerated.
14058         * config.make.in (build-nscd): New substituted variable.
14059         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
14060         Change conditional to require [$(build-nscd) = yes] as well.
14061         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
14062
14063         [BZ# 13696]
14064         * configure.in (use_nscd): New substituted variable, set by
14065         --disable-nscd.  If enabled, define USE_NSCD.
14066         * configure: Regenerated.
14067         * config.h.in: Add USE_NSCD.
14068         * config.make.in (use-nscd): New substituted variable.
14069         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
14070         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
14071         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
14072         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
14073         (CFLAGS-getgrnam_r.c): Likewise.
14074         (CFLAGS-initgroups.c): Likewise.
14075         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
14076         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
14077         Variables removed.
14078         * inet/getnetgrent_r.c
14079         (nscd_setnetgrent): New function, broken out of ...
14080         (setnetgrent): ... here.  Call it.
14081         (innetgr): Conditionalize nscd bits on [USE_NSCD].
14082         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
14083         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
14084         * nscd/Makefile (routines, aux): Move definitions after include of
14085         Makeconfig.  Conditionalize on [$(use-nscd) != no].
14086         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
14087         Conditionalize on [USE_NSCD].
14088         (is_nscd, nscd_init_cb): Likewise.
14089         (nss_load_library): Conditionalize init callback on [USE_NSCD].
14090         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
14091         * nss/nss_db/db-init.c: Likewise.
14092         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
14093         [USE_NSCD].
14094         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
14095         (make_request): Use it.
14096         (cache_valid_p): New function.
14097         (__check_pf): Use it.
14098         * NEWS: Add item for --disable-nscd.
14099
14100 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
14101
14102         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
14103         to support sed >= 4.2.1-20-ga9bf076.
14104         * configure: Regenerated.
14105
14106 2012-08-22  Roland McGrath  <roland@hack.frob.com>
14107
14108         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
14109         Conditionalize whole body on [IREL].
14110
14111 2012-08-22  Jeff Law <law@redhat.com>
14112
14113         [BZ #14505]
14114         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
14115         if the family is PF_UNSPEC.
14116
14117 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
14118
14119         * Makerules (lib-version): Rename from V.
14120         (install-lib-nosubdir): Change V to lib-version.
14121
14122 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
14123
14124         [BZ #14252]
14125         * powerpc32/power6/wcschr.c: New file.
14126         * powerpc32/power6/wcscpy.c: New file.
14127         * powerpc32/power6/wcsrchr.c: New file.
14128         * powerpc64/power6/wcschr.c: New file.
14129         * powerpc64/power6/wcscpy.c: New file.
14130         * powerpc64/power6/wcsrchr.c: New file.
14131
14132 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
14133
14134         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
14135         (two_way_short_needle): Use it.
14136         * string/strstr.c (AVAILABLE1_USES_J): Define.
14137         * string/strcasestr.c: Likewise.
14138
14139         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
14140         array references.
14141         * string/strcasestr.c (TOLOWER): Make side-effect safe.
14142
14143         [BZ #11607]
14144         * NEWS: Add an entry.
14145         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
14146         define their defaults.
14147         (two_way_short_needle): Detect end-of-string on-the-fly.
14148         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
14149         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
14150         * string/bug-strcasestr1.c: New test.
14151         * string/Makefile: Run it.
14152
14153 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
14154
14155         [BZ #11607]
14156         * string/str-two-way.h (two_way_short_needle): Optimize matching of
14157         the first character.
14158
14159 2012-08-21  Roland McGrath  <roland@hack.frob.com>
14160
14161         * csu/elf-init.c (__libc_csu_irel): Function removed.
14162         * csu/libc-start.c (apply_irel): New function.
14163         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
14164
14165 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
14166
14167         * sysdeps/unix/sysv/linux/kernel-features.h
14168         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
14169         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
14170         <kernel-features.h>.
14171         [__NR_fadvise64_64]: Make code unconditional.
14172         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
14173         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
14174         !__NR_fadvise64_64)]: Likewise.
14175         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
14176         !__NR_fadvise64_64))]: Likewise.
14177         [__NR_fadvise64]: Make code unconditional.
14178         [!__NR_fadvise64]: Remove conditional code.
14179         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
14180         <kernel-features.h>.
14181         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
14182         unconditional.
14183         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
14184         conditional code.
14185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
14186         not include <kernel-features.h>.
14187         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
14188         unconditional.
14189         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
14190         conditional code.
14191         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
14192         include <kernel-features.h>.
14193         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
14194         unconditional.
14195         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
14196         conditional code.
14197
14198 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14199
14200         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
14201         slight instruction rearrangements per scrollpipe analysis.
14202         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14203
14204 2012-08-20  Roland McGrath  <roland@hack.frob.com>
14205
14206         * manual/syslog.texi (syslog; vsyslog, closelog):
14207         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
14208         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
14209
14210         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
14211         DSOCAPS to match condition on defining it.
14212
14213 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
14214
14215         * sysdeps/unix/sysv/linux/kernel-features.h
14216         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
14217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
14218         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
14219         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
14220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
14221         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
14222         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
14223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
14224         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
14225         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
14226
14227         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
14228         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
14229
14230         * sysdeps/unix/sysv/linux/kernel-features.h
14231         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
14232         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
14233         unconditional.
14234         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14235         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
14236         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
14237         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14238         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
14239         Make code unconditional.
14240         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14241         (__mmap64) [!__NR_mmap2]: Likewise.
14242         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
14243         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
14244         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14245         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
14246         [__NR_mmap2]: Make code unconditional.
14247         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14248         (__mmap64) [!__NR_mmap2]: Likewise.
14249
14250 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14251
14252         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
14253
14254 2012-08-18  Andreas Jaeger  <aj@suse.de>
14255
14256         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
14257
14258 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
14259
14260         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
14261         * include/unistd.h (__have_sock_cloexec): Likewise.
14262         (__have_pipe2): Likewise.
14263         (__have_dup3): Likewise.
14264
14265 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
14266
14267         [BZ #9685]
14268         * include/unistd.h (__have_pipe2): Change define into an extern int.
14269         (__have_dup3): Likewise.
14270         * socket/have_sock_cloexec.c: Include fcntl.h.
14271         (__have_pipe2): New variable.
14272         (__have_dup3): Likewise.
14273
14274 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
14275
14276         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
14277
14278 2012-08-17  Marek Polacek  <polacek@redhat.com>
14279
14280         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
14281         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
14282
14283 2012-08-17  Roland McGrath  <roland@hack.frob.com>
14284
14285         * configure.in: Add AC_SUBST for sysheaders.
14286         * configure: Regenerated.
14287         * config.make.in (sysheaders): New substituted variable.
14288
14289         * sysdeps/unix/mkfifo.c: Moved ...
14290         * sysdeps/posix/mkfifo.c: ... here.
14291         * sysdeps/unix/mkfifoat.c: Moved ...
14292         * sysdeps/posix/mkfifoat.c: ... here.
14293
14294         * sysdeps/unix/utime.c: Moved ...
14295         * sysdeps/posix/utime.c: ... here.
14296
14297         * sysdeps/unix/time.c: Moved ...
14298         * sysdeps/posix/time.c: ... here.
14299         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
14300         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
14301
14302         * sysdeps/unix/nice.c: Moved ...
14303         * sysdeps/posix/nice.c: ... here.
14304
14305         * sysdeps/unix/alarm.c: Moved ...
14306         * sysdeps/posix/alarm.c: ... here.
14307
14308         * intl/Makefile ($(codeset_mo)): Depend on the input file.
14309
14310 2012-08-17  Jeff Law <law@redhat.com>
14311
14312         * intl/Makefile (codeset_mo): New variable.
14313         ($(codeset_mo)): New target.
14314         (tst-codeset.out): Depend on that.  Remove explicit rule.
14315         (tst-gettext3.out, tst-gettext5.out): Likewise.
14316         (LOCPATH-ENV, tst-codeset-ENV): New variables.
14317         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
14318         * intl/tst-codeset.sh: Remove.
14319         * intl/tst-gettext3.sh: Likewise.
14320         * intl/tst-gettext5.sh: Likewise.
14321
14322 2012-08-17  Roland McGrath  <roland@hack.frob.com>
14323
14324         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
14325         * sysdeps/unix/syscalls.list: ... here.
14326
14327         * sysdeps/posix/getaddrinfo.c
14328         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
14329         (gaiconf_init, gaiconf_reload): Use them.
14330         [!_STATBUF_ST_NSEC]
14331         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
14332         Define using time_t rather than struct timespec.
14333
14334         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
14335         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
14336         Macros removed.
14337         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
14338         [!NO_THREADS].
14339         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
14340         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
14341         Likewise.
14342
14343         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
14344         __libc_cleanup_push argument.
14345
14346         * bits/param.h: New file.
14347         * misc/sys/param.h: New file.
14348         * include/sys/param.h: New file.
14349         * misc/Makefile (headers): Add bits/param.h.
14350         * sysdeps/generic/sys/param.h: File removed.
14351         * sysdeps/unix/sysv/linux/bits/param.h: New file.
14352         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
14353         * sysdeps/mach/hurd/bits/param.h: New file.
14354         * sysdeps/mach/hurd/sys/param.h: File removed.
14355
14356         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
14357         last change.
14358
14359         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
14360         [_IO_MTSAFE_IO].
14361         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
14362         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
14363         New macros.
14364
14365         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
14366         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
14367         rather than -D_IO_MTSAFE_IO conditionally.
14368         * stdio-common/Makefile (CPPFLAGS): Likewise.
14369         * wcsmbs/Makefile (CPPFLAGS): Likewise.
14370         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
14371         Use $(libio-mtsafe).
14372         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
14373         of -D_IO_MTSAFE_IO.
14374         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
14375         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
14376         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
14377         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
14378         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
14379         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
14380         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
14381         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
14382         (CFLAGS-fread_u_chk.c): Likewise.
14383         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
14384         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
14385         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
14386         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
14387         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
14388         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
14389         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
14390         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
14391         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
14392
14393         * libio/Makefile: Test [$(libc-reentrant) = yes]
14394         instead of [$(filter %REENTRANT, $(defines)) nonempty].
14395
14396         * Makeconfig
14397         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
14398         * sysdeps/pthread/configure: File removed.
14399         * sysdeps/pthread/Makeconfig: New file.
14400         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
14401         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
14402
14403 2012-08-16  Gary Benson  <gbenson@redhat.com>
14404
14405         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
14406         unmapping the first object in a namespace.
14407
14408 2012-08-16  Roland McGrath  <roland@hack.frob.com>
14409
14410         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
14411         (__internal_setnetgrent): ... this.  Add internal_function to
14412         definition.  Add libc_hidden_def.
14413         (setnetgrent): Update caller.
14414         (internal_endnetgrent): Renamed to ...
14415         (__internal_endnetgrent): ... this.  Add internal_function to
14416         definition.  Add libc_hidden_def.
14417         (endnetgrent): Update caller.
14418         (internal_getnetgrent_r): Renamed to ...
14419         (__internal_getnetgrent_r): ... this.  Add internal_function to
14420         definition.  Add libc_hidden_def.
14421         (__getnetgrent_r): Update caller.
14422         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
14423
14424 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
14425
14426         * stdlib/longlong.h: Update from GCC.
14427
14428 2012-08-16  Roland McGrath  <roland@hack.frob.com>
14429
14430         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
14431         on _QL, which is set by umul_ppmm but never used.
14432         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
14433         variables, which are set by GMP macros but never used.
14434         * stdio-common/_itowa.c (_itowa): Likewise.
14435         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
14436         * stdlib/mod_1.c (mpn_mod_1): Likewise.
14437
14438 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
14439
14440         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
14441         struct La_sh_regs is not constant.
14442         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
14443         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
14444         and struct La_sparc64_regs are not constant.
14445
14446 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
14447
14448         * sysdeps/unix/sysv/linux/kernel-features.h
14449         (__ASSUME_POSIX_TIMERS): Remove.
14450         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
14451         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14452         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
14453         Make code unconditional.
14454         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14455         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
14456         Make code unconditional.
14457         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14458         * sysdeps/unix/sysv/linux/clock_nanosleep.c
14459         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
14460         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14461         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
14462         Make code unconditional.
14463         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14464         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
14465         (__libc_missing_posix_timers): Remove.
14466
14467 2012-08-15  Roland McGrath  <roland@hack.frob.com>
14468
14469         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
14470         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
14471
14472         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
14473
14474         * elf/dl-sym.c: Include <stdlib.h>.
14475
14476         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
14477         constants, which avoids warnings in 32-bit builds.
14478
14479         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
14480         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
14481
14482         * misc/lseek.c: File moved to ...
14483         * io/lseek.c: ... here.
14484
14485         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
14486
14487         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
14488         shifting LEN more than 31 bits at once.
14489
14490 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14491
14492         [BZ #14195]
14493         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
14494         segmentation fault for a case of two empty input strings.
14495         * string/test-strncasecmp.c (check1): Renamed to...
14496         (bz12205): ...this.
14497         (bz14195): Add new testcase for two empty input strings and N > 0.
14498         (test_main): Call new testcase, adapt for renamed function.
14499
14500 2012-08-15  Andreas Jaeger  <aj@suse.de>
14501
14502         [BZ #14090]
14503         * crypt/md5test2.c: New test, based on test supplied by Serge
14504         Belyshev <belyshev@depni.sinp.msu.ru>.
14505         * crypt/Makefile (xtests): Add md5test-giant..
14506         * crypt/Makefile ($(objpfx)md5test-giant): Add.
14507
14508 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14509
14510         [BZ #14090]
14511         * crypt/md5.c (md5_process_block): Don't assume the buffer
14512         length is less than 2**32.
14513         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
14514         length is less than 2**64.
14515
14516 2012-08-15  Roland McGrath  <roland@hack.frob.com>
14517
14518         * string/str-two-way.h: Include <sys/param.h>.
14519         (MAX): Macro removed.
14520
14521         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
14522         Move #define and #undef of memmove to just before and after
14523         including <string.h>.
14524
14525         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
14526         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
14527         and after including <string.h>.  Move declarations of
14528         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
14529         to before #include "string/memmove.c".
14530
14531         * include/dirent.h: Declare __getdirentries.
14532
14533         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
14534         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
14535
14536 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
14537
14538         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
14539         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
14540         * sysdeps/i386/configure: Regenerated.
14541         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
14542         STABS_CURRENT_FILE, and STABS_FUN.
14543         (END): Remove call to STABS_FUN_END.
14544         (STABS_CURRENT_FILE1): Delete.
14545         (STABS_CURRENT_FILE): Likewise.
14546         (STABS_FUN): Likewise.
14547         (STABS_FUN_END): Likewise.
14548         (STABS_FUN2): Likewise.
14549         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
14550         * sysdeps/x86_64/configure: Regenerated.
14551
14552 2012-08-14  Roland McGrath  <roland@hack.frob.com>
14553
14554         * elf/dl-open.c: Include <atomic.h>.
14555         * elf/dl-lookup.c: Likewise.
14556
14557 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
14558
14559         * sysdeps/unix/sysv/linux/kernel-features.h
14560         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
14561         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
14562         unconditionally.
14563         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
14564         unconditionally.
14565         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
14566         condition on __ASSUME_CLONE_THREAD_FLAGS.
14567
14568 2012-08-14  Andreas Jaeger  <aj@suse.de>
14569
14570         * sysdeps/i386/fpu/libm-test-ulps: Update.
14571
14572 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
14573
14574         * include/atomic.h (atomic_exchange_and_add): Split into ...
14575         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
14576         New atomic macros.
14577
14578 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
14579
14580         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14581
14582 2012-08-13  Jeff Law <law@redhat.com>
14583
14584         * manual/stdio.texi (snprintf): Clarify handling of the trailing
14585         null byte in the output string.
14586
14587 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
14588
14589         * sysdeps/unix/sysv/linux/kernel-features.h
14590         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
14591         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
14592         (__ASSUME_ARG_MAX_STACK_BASED): Define.
14593         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
14594         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
14595         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
14596         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
14597
14598 2012-08-09  Jeff Law <law@redhat.com>
14599
14600         [BZ #13939]
14601         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
14602         When avoid_arena is set, don't retry in the that arena.  Pick the
14603         next one, whatever it might be.
14604         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
14605         (arena_lock): Pass in new parameter to arena_get2.
14606         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
14607         arena_get2.
14608         (__libc_malloc): Unify retrying after main arena failure with
14609         __libc_memalign version.
14610         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
14611
14612 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14613
14614         [BZ #14166]
14615         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
14616         to __redirect_strstr.
14617         (__strstr_sse42): Use typeof __redirect_strstr.
14618         (__strstr_ia32): Likewise.
14619         (__libc_strstr): New prototype.
14620         (strstr): Renamed to ...
14621         (__libc_strstr): This.
14622         (strstr): New strong alias of __libc_strstr.
14623         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
14624         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
14625         __redirect_time.
14626         Include <time.h>.
14627         (__libc_time): New prototype.
14628         (time_ifunc): Replace time with __libc_time.
14629         (time): New strong alias and hidden definition of __libc_time.
14630         (__GI_time): Remove strong alias.
14631         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
14632         Include <stddef.h>.
14633         (memmove): Redefined to __redirect_memmove.
14634         (__memmove_sse2): Use typeof __redirect_memmove.
14635         (__memmove_ssse3): Likewise.
14636         (__memmove_ssse3_back): Likewise.
14637         (__libc_memmove): New prototype.
14638         (memmove): Renamed to ...
14639         (__libc_memmove): This.
14640         (memmove): New strong alias of __libc_memmove.
14641
14642 2012-08-08  Mark Salter  <msalter@redhat.com>
14643
14644         * elf/elf.h
14645         (R_MN10300_TLS_GD): Define.
14646         (R_MN10300_TLS_LD): Likewise.
14647         (R_MN10300_TLS_LDO): Likewise.
14648         (R_MN10300_TLS_GOTIE): Likewise.
14649         (R_MN10300_TLS_IE): Likewise.
14650         (R_MN10300_TLS_LE): Likewise.
14651         (R_MN10300_TLS_DTPMOD): Likewise.
14652         (R_MN10300_TLS_DTPOFF): Likewise.
14653         (R_MN10300_TLS_TPOFF): Likewise.
14654         (R_MN10300_SYM_DIFF): Likewise.
14655         (R_MN10300_ALIGN): Likewise.
14656         (R_MN10300_NUM): Update.
14657
14658 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
14659
14660         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
14661         Remove.
14662
14663 2012-08-08  Roland McGrath  <roland@hack.frob.com>
14664
14665         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
14666
14667         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
14668         sysdeps/unix -> sysdeps/posix move.
14669         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14670
14671 2012-08-07      Allan McRae     <allan@archlinux.org>
14672
14673         [BZ #14303]
14674         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
14675         (SUNOS_CPP): Likewise.
14676         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
14677         not found.
14678         (open_input): Call CPP using execvp.
14679
14680 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
14681
14682         * sysdeps/unix/sysv/linux/kernel-features.h
14683         (__ASSUME_PROT_GROWSUPDOWN): Remove.
14684         (__ASSUME_NO_CLONE_DETACHED): Likewise.
14685         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
14686         (__ASSUME_WAITID_SYSCALL): Likewise.
14687         * sysdeps/unix/sysv/linux/dl-execstack.c
14688         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
14689         code unconditional.
14690         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
14691         conditional code.
14692         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
14693         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
14694         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
14695         code.
14696         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
14697         unconditional.
14698         [__ASSUME_WAITID_SYSCALL]: Likewise.
14699         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
14700
14701 2012-08-07  Roland McGrath  <roland@hack.frob.com>
14702
14703         * sysdeps/unix/closedir.c: Renamed to ...
14704         * sysdeps/posix/closedir.c: ... here.
14705         * sysdeps/unix/dirfd.c: Renamed to ...
14706         * sysdeps/posix/dirfd.c: ... here.
14707         * sysdeps/unix/dirstream.h: Renamed to ...
14708         * sysdeps/posix/dirstream.h: ... here.
14709         * sysdeps/unix/fdopendir.c: Renamed to ...
14710         * sysdeps/posix/fdopendir.c: ... here.
14711         * sysdeps/unix/opendir.c: Renamed to ...
14712         * sysdeps/posix/opendir.c: ... here.
14713         * sysdeps/unix/readdir.c: Renamed to ...
14714         * sysdeps/posix/readdir.c: ... here.
14715         * sysdeps/unix/readdir_r.c: Renamed to ...
14716         * sysdeps/posix/readdir_r.c: ... here.
14717         * sysdeps/unix/rewinddir.c: Renamed to ...
14718         * sysdeps/posix/rewinddir.c: ... here.
14719         * sysdeps/unix/seekdir.c: Renamed to ...
14720         * sysdeps/posix/seekdir.c: ... here.
14721         * sysdeps/unix/telldir.c: Renamed to ...
14722         * sysdeps/posix/telldir.c: ... here.
14723         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
14724         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
14725         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14726         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14727
14728         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
14729         * bits/fcntl.h: ... here.
14730
14731         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
14732         not 0.
14733         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
14734         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
14735         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
14736         (struct flock): Move l_start, l_len to the beginning.
14737         Use __pid_t for l_pid.
14738         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
14739         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
14740         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
14741         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
14742         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
14743         [__USE_LARGEFILE64] (struct flock64): New type.
14744         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
14745
14746         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
14747         * bits/dirent.h: ... here.
14748
14749         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
14750         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
14751
14752 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
14753
14754         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
14755         Change from 2.6.0 to 2.6.16.
14756         * sysdeps/unix/sysv/linux/configure: Regenerated.
14757         * sysdeps/unix/sysv/linux/kernel-features.h
14758         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
14759         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
14760         version.
14761         (__ASSUME_UTIMES): Likewise.
14762         (__ASSUME_CLONE_STOPPED): Remove.
14763         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
14764         architectures, not kernel version.
14765         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
14766         (__ASSUME_NO_CLONE_DETACHED): Likewise.
14767         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
14768         (__ASSUME_WAITID_SYSCALL): Likewise.
14769         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
14770         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
14771         * README: State 2.6.16 as minimum Linux kernel version.  Do not
14772         refer to older versions.
14773
14774 2012-08-06  Roland McGrath  <roland@hack.frob.com>
14775
14776         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
14777         Define alphasort64 as an alias.
14778         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
14779         Define versionsort64 as an alias.
14780         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
14781         Define scandir64 as an alias.
14782         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
14783         Define scandirat64 as an alias.
14784         * dirent/alphasort64.c (alphasort64):
14785         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
14786         * dirent/versionsort64.c: Likewise.
14787         * dirent/scandir64.c: Likewise.
14788         * dirent/scandirat64.c: Likewise.
14789         * sysdeps/wordsize-64/alphasort.c: File removed.
14790         * sysdeps/wordsize-64/alphasort64.c: File removed.
14791         * sysdeps/wordsize-64/scandir.c: File removed.
14792         * sysdeps/wordsize-64/scandir64.c: File removed.
14793         * sysdeps/wordsize-64/scandirat.c: File removed.
14794         * sysdeps/wordsize-64/scandirat64.c: File removed.
14795         * sysdeps/wordsize-64/versionsort.c: File removed.
14796         * sysdeps/wordsize-64/versionsort64.c: File removed.
14797         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
14798         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
14799         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
14800         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
14801         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
14802         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
14803         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
14804         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
14805
14806         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
14807         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
14808         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
14809         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14810         [defined __arch64__ || defined __sparcv9]
14811         (__INO_T_MATCHES_INO64_T): New macro.
14812         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14813         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
14814         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
14815         * sysdeps/unix/sysv/linux/bits/dirent.h
14816         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
14817         (_DIRENT_MATCHES_DIRENT64): New macro.
14818
14819         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
14820         Define lockf64 as an alias.
14821         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
14822         Define fseeko64 as an alias.
14823         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
14824         Define ftello64 as an alias.
14825         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
14826         Define _IO_fgetpos64 and fgetpos64 as aliases.
14827         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
14828         Define _IO_fsetpos64 and fsetpos64 as aliases.
14829         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
14830         Conditionalize body on this.
14831         * libio/fseeko64.c: Likewise.
14832         * libio/ftello64.c: Likewise.
14833         * libio/iofgetpos64.c: Likewise.
14834         * libio/iofsetpos64.c: Likewise.
14835         * sysdeps/wordsize-64/lockf.c: File removed.
14836         * sysdeps/wordsize-64/lockf64.c: File removed.
14837         * sysdeps/wordsize-64/fseeko.c: File removed.
14838         * sysdeps/wordsize-64/fseeko64.c: File removed.
14839         * sysdeps/wordsize-64/ftello.c: File removed.
14840         * sysdeps/wordsize-64/ftello64.c: File removed.
14841         * sysdeps/wordsize-64/iofgetpos.c: File removed.
14842         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
14843         * sysdeps/wordsize-64/iofsetpos.c: File removed.
14844         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
14845         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
14846         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
14847         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
14848         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
14849         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
14850         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
14851         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
14852         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
14853         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
14854         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
14855
14856         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
14857         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
14858         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
14859         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14860         [defined __arch64__ || defined __sparcv9]
14861         (__OFF_T_MATCHES_OFF64_T): New macro.
14862         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14863         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
14864         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14865         (__OFF_T_MATCHES_OFF64_T): New macro.
14866
14867 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
14868
14869         * stdlib/secure-getenv.c (__secure_getenv): Replace
14870         GLIBC_2_16 with GLIBC_2_17.
14871
14872 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
14873
14874         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
14875         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14876
14877 2012-08-03  David S. Miller  <davem@davemloft.net>
14878
14879         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14880
14881 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
14882
14883         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
14884         Remove.
14885         (__ASSUME_CORRECT_SI_PID): Likewise.
14886         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
14887         (__ASSUME_TMPFS_NAME): Likewise.
14888         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
14889         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
14890         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
14891         (HAVE_AUX_SECURE): Make definition unconditional.
14892         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
14893         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
14894
14895 2012-08-03  Roland McGrath  <roland@hack.frob.com>
14896
14897         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
14898         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
14899         * sysdeps/mach/hurd/eloop-threshold.h: New file.
14900         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
14901         __eloop_threshold instead of SYMLOOP_MAX.
14902
14903         * sysdeps/generic/eloop-threshold.h: New file.
14904         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
14905         of MAXSYMLINKS.
14906         * elf/chroot_canon.c (chroot_canon): Likewise.
14907
14908 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
14909
14910         [BZ #13717]
14911         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
14912         Change to 2.6.0 everywhere.
14913         * sysdeps/unix/sysv/linux/configure: Regenerated.
14914         * sysdeps/unix/sysv/linux/kernel-features.h
14915         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
14916         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
14917         kernel versions.
14918         (__ASSUME_POSIX_TIMERS): Define unconditionally.
14919         (__ASSUME_FUTEX_REQUEUE): Remove.
14920         (__ASSUME_STATFS64): Define unconditionally.
14921         (__ASSUME_AT_SECURE): Likewise.
14922         (__ASSUME_CORRECT_SI_PID): Likewise.
14923         (__ASSUME_TGKILL): Define without depending on kernel version for
14924         i386.
14925         (__ASSUME_UTIMES): Likewise.
14926         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
14927         kernel version.
14928         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
14929         (__ASSUME_TMPFS_NAME): Likewise.
14930         * README: Update reference to Linux kernel versions.
14931
14932 2012-08-02  Marek Polacek  <polacek@redhat.com>
14933
14934         [BZ# 14150]
14935         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
14936         libc_cv_asm_type_prefix with %.
14937         * configure: Regenerated.
14938         * include/libc-symbols.h: Remove comment about
14939         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
14940         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
14941         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
14942         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
14943         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
14944         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
14945         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
14946         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
14947         * elf/tst-unique2mod1.c: Likewise.
14948         * elf/tst-unique1mod2.c: Likewise.
14949         * elf/tst-unique1mod1.c: Likewise.
14950         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
14951         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
14952         Replace ASM_TYPE_DIRECTIVE with .type.
14953         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14954         * sysdeps/i386/sysdep.h: Likewise.
14955         * sysdeps/x86_64/sysdep.h: Likewise.
14956         * sysdeps/sh/sysdep.h: Likewise.
14957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
14958         Do not define ASM_TYPE_DIRECTIVE.
14959         * sysdeps/powerpc/sysdep.h: Likewise.
14960         * sysdeps/powerpc/powerpc32/sysdep.h:
14961         Replace ASM_TYPE_DIRECTIVE with .type.
14962         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
14963         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
14964         * sysdeps/i386/fpu/e_powf.S: Likewise.
14965         * sysdeps/i386/fpu/e_expl.S: Likewise.
14966         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14967         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14968         * sysdeps/i386/fpu/e_pow.S: Likewise.
14969         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14970         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14971         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14972         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14973         * sysdeps/i386/fpu/e_log2.S: Likewise.
14974         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14975         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14976         * sysdeps/i386/fpu/e_powl.S: Likewise.
14977         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14978         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14979         * sysdeps/i386/fpu/e_logl.S: Likewise.
14980         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14981         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14982         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14983         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14984         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14985         * sysdeps/i386/fpu/e_log.S: Likewise.
14986         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14987         * sysdeps/i386/fpu/e_logf.S: Likewise.
14988         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14989         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14990         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14991         * sysdeps/i386/fpu/e_log10.S: Likewise.
14992         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14993         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14994         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14995         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14996         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14997         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
14998         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14999         * sysdeps/i386/i686/strtok.S: Likewise.
15000         * sysdeps/i386/i386-mcount.S: Likewise.
15001         * sysdeps/i386/strtok.S: Likewise.
15002         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
15003         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15004         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15005         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15006         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
15007         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15008         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
15009         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
15010         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15011         * sysdeps/x86_64/_mcount.S: Likewise.
15012         * sysdeps/x86_64/strtok.S: Likewise.
15013         * sysdeps/sh/_mcount.S: Likewise.
15014
15015 2012-08-01  Roland McGrath  <roland@hack.frob.com>
15016
15017         * libio/iofopen.c: Include <fcntl.h>.
15018         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
15019         (_IO_fopen64, fopen64): Define as aliases.
15020         * libio/iofopen64.c: Include <fcntl.h>.
15021         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
15022         Conditionalize body on this.
15023         * sysdeps/wordsize-64/iofopen.c: File removed.
15024         * sysdeps/wordsize-64/iofopen64.c: File removed.
15025
15026 2012-08-01  Marek Polacek  <polacek@redhat.com>
15027
15028         * libc/Makeconfig: Use elf in place of binfmt-subdir.
15029         Use dlfcn directly instead of a variable.
15030         (binfmt-subdir): Do not define.
15031         (dlfcn): Likewise.
15032
15033 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
15034
15035         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
15036         Remove all definitions.
15037         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
15038         <kernel-features.h>.
15039         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
15040         (miss_F_GETOWN_EX): Remove all definitions.
15041         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
15042         macro definition.
15043         [!__ASSUME_FCNTL64]: Remove conditional code.
15044         [__ASSUME_FCNTL64]: Make code unconditional.
15045         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
15046         <kernel-features.h>.
15047         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
15048         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
15049         (lockf64) [__NR_fcntl64]: Make code unconditional.
15050         (lockf64) [__ASSUME_FCNTL64]: Likewise.
15051
15052         * sysdeps/unix/sysv/linux/kernel-features.h
15053         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
15054         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
15055         Make code unconditional.
15056         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
15057         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
15058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
15059         [__NR_vfork]: Make code unconditional.
15060         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
15061         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
15062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
15063         [__NR_vfork]: Make code unconditional.
15064         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
15065         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
15066
15067 2012-08-01  Roland McGrath  <roland@hack.frob.com>
15068
15069         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
15070         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
15071
15072         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15073         Define mkstemp64 as an alias.
15074         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15075         Define mkstemps64 as an alias.
15076         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15077         Define mkostemp64 as an alias.
15078         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15079         Define mkostemps64 as an alias.
15080         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
15081         Conditionalize body on this.
15082         * misc/mkostemp64.c: Likewise.
15083         * misc/mkostemps64.c: Likewise.
15084         * misc/mkstemps64.c: Likewise.
15085         * sysdeps/wordsize-64/mkstemp64.c: File removed.
15086         * sysdeps/wordsize-64/mkostemp64.c: File removed.
15087         * sysdeps/wordsize-64/mkostemp.c: File removed.
15088         * sysdeps/wordsize-64/mkstemp.c: File removed.
15089         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
15090         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
15091         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
15092         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
15093
15094         [BZ #14138]
15095         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
15096         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
15097         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
15098         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
15099
15100         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
15101         compat_symbol macros from <shlib-compat.h> rather than the underlying
15102         default_symbol_version and symbol_version macros, so that DEFAULT
15103         lines in shlib-versions are respected.
15104         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
15105
15106 2012-08-01  Florian Weimer  <fweimer@redhat.com>
15107
15108         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
15109         Declare with warn_unused_result.
15110         (setgid, setregid, setegid, setresgid): Likewise.
15111         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
15112         Likewise.
15113         * WUR-REPORT: Remove set*id functions.
15114
15115 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
15116
15117         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
15118
15119 2012-07-31  Roland McGrath  <roland@hack.frob.com>
15120
15121         [BZ #10191]
15122         * include/sys/socket.h (__libc_accept, __libc_accept4):
15123         Add attribute_hidden.
15124         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
15125
15126         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
15127         use of PTR_MANGLE.
15128         * inet/getnetgrent_r.c (setup): Likewise.
15129
15130         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
15131
15132 2012-07-31  David S. Miller  <davem@davemloft.net>
15133
15134         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15135
15136 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
15137
15138         [BZ #13629]
15139         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
15140         value between 1.0 and 2.0 and smaller part has absolute value less
15141         than 1.0.
15142         * math/s_clog10.c (__clog10): Likewise.
15143         * math/s_clog10f.c (__clog10f): Likewise.
15144         * math/s_clog10l.c (__clog10l): Likewise.
15145         * math/s_clogf.c (__clogf): Likewise.
15146         * math/s_clogl.c (__clogl): Likewise.
15147         * math/libm-test.inc (clog_test): Add more tests.
15148         (clog10_test): Likewise.
15149         * sysdeps/i386/fpu/libm-test-ulps: Update.
15150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15151
15152 2012-07-31  Florian Weimer  <fweimer@redhat.com>
15153
15154         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
15155         Exit with zero in case no suitable GID is found, and write a
15156         message to standard error.
15157
15158 2012-07-30  Roland McGrath  <roland@hack.frob.com>
15159
15160         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
15161         rather than to 1.
15162         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
15163         (MAXPATHLEN): Removed.
15164         (NOGROUP, NODEV): New macros.
15165         (setbit, clrbit, isset, isclr): New macros.
15166         (howmany, roundup, powerof2): New macros.
15167         (DEV_BSIZE): New macro.
15168
15169         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
15170         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
15171
15172         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
15173         definition on [!__NO_LONG_DOUBLE_MATH].
15174
15175         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
15176         PTR_MANGLE and PTR_DEMANGLE.
15177
15178         * socket/accept4.c (accept4): Rename to __libc_accept4.
15179         Define accept4 as a weak alias.
15180
15181         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
15182         on [_DIRENT_HAVE_D_TYPE].
15183         * io/ftw.c (ftw_dir): Likewise.
15184
15185         * io/xmknod.c (__xmknod): Don't check PATH for being null.
15186
15187         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
15188
15189         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
15190         Use the BSD numbers rather than the arbitrary ones we had.
15191         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
15192         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
15193         (SIGXCPU, SIGXFSZ): New macros.
15194         (_NSIG): Now 32.
15195
15196         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
15197         initializer on [_LIBC_REENTRANT].
15198
15199         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
15200         definitions inside [_POSIX_MAPPED_FILES].
15201
15202         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
15203
15204         * dirent/opendir.c: Include <fcntl.h>.
15205
15206         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
15207         (__libc_getspecific): Likewise.
15208         (__libc_key_create): Likewise.
15209
15210         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
15211         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
15212         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
15213         (tmpfile64): Define as alias.
15214         * sysdeps/wordsize-64/tmpfile.c: File removed.
15215         * sysdeps/wordsize-64/tmpfile64.c: File removed.
15216         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
15217         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
15218
15219         * stdio-common/vfscanf.c: Include <stdbool.h>.
15220         * nss/makedb.c: Likewise.
15221         * stdio-common/_i18n_number.h: Likewise.
15222         * argp/argp-help.c: Likewise.
15223         * posix/wordexp.c: Likewise.
15224         * sysdeps/posix/spawni.c: Likewise.
15225         * nss/nss_files/files-initgroups.c: Likewise.
15226         * stdio-common/reg-modifier.c: Include <stdlib.h>.
15227         * nss/nss_files/files-initgroups.c: Likewise.
15228         * nss/nss_db/db-netgrp.c: Likewise.
15229         * nss/nss_db/db-initgroups.c: Likewise.
15230         * io/fchmodat.c: Include <sys/stat.h>.
15231
15232         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
15233         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
15234
15235         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
15236         [HAVE_MMAP].
15237
15238         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
15239         Add multiple inclusion protection.
15240
15241 2012-07-27  David S. Miller  <davem@davemloft.net>
15242
15243         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15244
15245 2012-07-27  Gary Benson  <gbenson@redhat.com>
15246
15247         [BZ #14298]
15248         * elf/rtld.c: Include <stap-probe.h>.
15249         (dl_main): Added static probes "init_start" and "init_complete".
15250         * elf/dl-load.c: Include <stap-probe.h>.
15251         (lose): Take new parameter "nsid".
15252         Added static probe "map_failed".
15253         (_dl_map_object_from_fd): Pass namespace id to lose.
15254         Added static probe "map_start".
15255         (open_verify): Pass namespace id to lose.
15256         * elf/dl-open.c: Include <stap-probe.h>.
15257         (dl_open_worker) Added static probes "map_complete", "reloc_start"
15258         and "reloc_complete".
15259         * elf/dl-close.c: Include <stap-probe.h>.
15260         (_dl_close_worker): Added static probes "unmap_start" and
15261         "unmap_complete".
15262         * elf/rtld-debugger-interface.txt: New file documenting the above.
15263
15264 2012-07-26  Roland McGrath  <roland@hack.frob.com>
15265
15266         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
15267         rather than a string variable.
15268         * sunrpc/rpc_main.c (h_output): Likewise.
15269         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
15270
15271 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
15272
15273         * inet/check_native.c: New file.
15274
15275 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
15276
15277         [BZ #13629]
15278         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
15279         if larger part has absolute value 1.0.
15280         * math/s_clog10.c (__clog10): Likewise.
15281         * math/s_clog10f.c (__clog10f): Likewise.
15282         * math/s_clog10l.c (__clog10l): Likewise.
15283         * math/s_clogf.c (__clogf): Likewise.
15284         * math/s_clogl.c (__clogl): Likewise.
15285         * math/libm-test.inc (clog_test): Add more tests.
15286         (clog10_test): Likewise.
15287         * sysdeps/i386/fpu/libm-test-ulps: Update.
15288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15289
15290         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
15291         (pltexit): Likewise.
15292         (La_regs): Likewise.
15293         (La_retval): Likewise.
15294         (int_retval): Likewise.
15295         Update #error for removed macros to refer only to definitions in
15296         tst-audit.h.
15297         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
15298         macro.
15299         (pltexit): Likewise.
15300         (La_regs): Likewise.
15301         (La_retval): Likewise.
15302         (int_retval): Likewise.
15303         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
15304         macro.
15305         (pltexit): Likewise.
15306         (La_regs): Likewise.
15307         (La_retval): Likewise.
15308         (int_retval): Likewise.
15309         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
15310         macro.
15311         (pltexit): Likewise.
15312         (La_regs): Likewise.
15313         (La_retval): Likewise.
15314         (int_retval): Likewise.
15315         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
15316         macro.
15317         (pltexit): Likewise.
15318         (La_regs): Likewise.
15319         (La_retval): Likewise.
15320         (int_retval): Likewise.
15321         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
15322         macro.
15323         (pltexit): Likewise.
15324         (La_regs): Likewise.
15325         (La_retval): Likewise.
15326         (int_retval): Likewise.
15327         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
15328         macro.
15329         (pltexit): Likewise.
15330         (La_regs): Likewise.
15331         (La_retval): Likewise.
15332         (int_retval): Likewise.
15333         * sysdeps/generic/tst-audit.h: Update comment to refer only to
15334         macro definitions in tst-audit.h.
15335         * sysdeps/i386/tst-audit.h: New file.
15336         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
15337         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
15338         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
15339         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
15340         * sysdeps/sh/tst-audit.h: Likewise.
15341         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
15342         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
15343         * sysdeps/x86_64/tst-audit.h: Likewise.
15344
15345 2012-07-26  Andreas Jaeger  <aj@suse.de>
15346
15347         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
15348         ptrace.
15349
15350         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
15351         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
15352         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
15353         PTRACE_O_MASK.
15354         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
15355         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
15356         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
15357
15358         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
15359         value.
15360
15361         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
15362         _sigsys.
15363         (si_call_addr, si_syscall, si_arch): Define new macro.
15364         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
15365         _sigsys.
15366         (si_call_addr, si_syscall, si_arch): Define new marcro.
15367         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
15368         _sigsys.
15369         (si_call_addr, si_syscall, si_arch): Define new macro.
15370         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
15371         _sigsys.
15372         (si_call_addr, si_syscall, si_arch): Define new macro.
15373
15374 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
15375
15376         [BZ #13717]
15377         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15378         Change to 2.4.21 where previously 2.4.1.
15379         * sysdeps/unix/sysv/linux/configure: Regenerated.
15380         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
15381         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
15382         Linux kernel version.
15383         (__ASSUME_STD_AUXV): Remove.
15384         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
15385         kernel version.
15386         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
15387         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
15388         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
15389         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
15390         (__ASSUME_NETLINK_SUPPORT): Likewise.
15391         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
15392         (__no_netlink_support): Remove conditional definition.
15393         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
15394         Remove.
15395         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
15396         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
15397         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
15398         (if_nameindex_ioctl): Remove.
15399         (if_nameindex_netlink): Do not handle __no_netlink_support.
15400         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
15401         code.
15402         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
15403         Remove conditional code.
15404         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
15405         code.
15406         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
15407         unconditional.
15408         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
15409         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
15410         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
15411         Remove.
15412         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
15413         [!__ASSUME_STD_AUXV]: Remove conditional code.
15414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
15415         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
15416         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
15417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
15418         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
15419         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
15420         code.
15421         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
15422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
15423         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
15424         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
15425         conditional code.
15426         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
15427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
15428         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
15429         code.
15430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
15431         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
15432         conditional code.
15433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
15434         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
15435         code unconditional.
15436         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15437         conditional code.
15438         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15439         unconditional.
15440         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15441         conditional code.
15442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
15443         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15444         unconditional.
15445         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15446         conditional code.
15447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
15448         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
15449         code unconditional.
15450         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15451         conditional code.
15452         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15453         unconditional.
15454         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15455         conditional code.
15456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
15457         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
15458         code unconditional.
15459         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15460         conditional code.
15461         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15462         unconditional.
15463         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15464         conditional code.
15465
15466 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
15467
15468         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
15469         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
15470         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
15471         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
15472         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
15473         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
15474         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
15475         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
15476         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
15477         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
15478         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
15479         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
15480         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
15481         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
15482         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
15483         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
15484         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
15485         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
15486         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
15487         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
15488         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
15489         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
15490         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
15491
15492 2012-07-25  Florian Weimer  <fweimer@redhat.com>
15493
15494         * Versions.def: Add GLIBC_2.17.
15495         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
15496         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
15497         Introduce __libc_secure_getenv.
15498         * stdlib/Versions (2.17): Add secure_getenv
15499         (GLIBC_PRIVATE): Add __libc_secure_getenv.
15500         * stdlib/secure-getenv.c: Rename __secure_getenv to
15501         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
15502         symbol __secure_getenv for GLIBC_2.0.
15503         * stdlib/tst-secure-getenv.c: New.
15504         * stdlib/Makefile (tests): Add testcase.
15505         * manual/startup.texi (Environment Access): Document
15506         secure_getenv.
15507         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
15508         __libc_secure_getenv.
15509         * inet/ruserpass.c (ruserpass): Likewise.
15510         * malloc/mtrace.c (mtrace): Likewise.
15511         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
15512         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
15513         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
15514         * sysdeps/posix/tempname.c: Likewise.  Evaluate
15515         HAVE_SECURE_GETENV.
15516         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
15517         __secure_getenv to __libc_secure_getenv.
15518         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
15519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15520         Likewise.
15521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
15522         Likewise.
15523         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
15524         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
15525         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
15526         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
15527         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
15528         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
15529         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
15530
15531 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
15532
15533         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
15534         (struct La_i86_retval): Likewise.
15535         (struct La_x86_64_regs): Likewise.
15536         (struct La_x86_64_retval): Likewise.
15537         (struct La_x32_regs): Likewise.
15538         (struct La_x32_retval): Likewise.
15539         (struct La_ppc32_regs): Likewise.
15540         (struct La_ppc32_retval): Likewise.
15541         (struct La_ppc64_regs): Likewise.
15542         (struct La_ppc64_retval): Likewise.
15543         (struct La_sh_regs): Likewise.
15544         (struct La_sh_retval): Likewise.
15545         (struct La_s390_32_regs): Likewise.
15546         (struct La_s390_32_retval): Likewise.
15547         (struct La_s390_64_regs): Likewise.
15548         (struct La_s390_64_retval): Likewise.
15549         (struct La_sparc32_regs): Likewise.
15550         (struct La_sparc32_retval): Likewise.
15551         (struct La_sparc64_regs): Likewise.
15552         (struct La_sparc64_retval): Likewise.
15553         (struct audit_ifaces): Remove architecture-specific pltenter and
15554         pltexit members.
15555         * sysdeps/i386/ldsodefs.h: New file.
15556         * sysdeps/powerpc/ldsodefs.h: Likewise.
15557         * sysdeps/s390/ldsodefs.h: Likewise.
15558         * sysdeps/sh/ldsodefs.h: Likewise.
15559         * sysdeps/sparc/ldsodefs.h: Likewise.
15560         * sysdeps/x86_64/ldsodefs.h: Likewise.
15561
15562 2012-07-25  Marek Polacek  <polacek@redhat.com>
15563
15564         [BZ #6808]
15565         * math/libm-test.inc (yn_test): Add another test.
15566         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
15567         to ERANGE when the result is +-Inf.
15568         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
15569         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
15570         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
15571         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
15572
15573 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
15574
15575         * conform/data/time.h-data (NULL): Use macro-constant.  Require
15576         equal to 0.
15577         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
15578         clock_t.
15579         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
15580
15581 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
15582
15583         * configure.in <sysdeps resolving>: Correct printing
15584         Implies_before.
15585         * configure: Regenerate.
15586
15587 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
15588
15589         * math/w_ilogb.c: Include <limits.h>.
15590         * math/w_ilogbl.c: Likewise.
15591
15592 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
15593
15594         * manual/lang.texi (__va_copy): Document primarily as ISO C99
15595         va_copy.  Document allowing for unavailable va_copy only as
15596         pre-C99 compatibility.
15597         * manual/string.texi (Copying and Concatenation): Use va_copy
15598         instead of __va_copy in concat example.
15599
15600 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
15601
15602         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
15603         (__sendto): Use create_address_port.  Initialize APORT and deallocate
15604         it if not null.
15605
15606         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
15607         with O_NOLINK passed to __file_name_lookup.
15608
15609         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
15610         with O_NOLINK passed to __file_name_lookup.
15611
15612         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
15613         negative N or less than NGIDS.
15614
15615         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
15616         type to string_t.  Set ERANGE as errno and return it if NAME is not big
15617         enough.  Use memcpy instead of strncpy.
15618
15619 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
15620
15621         * elf/Makefile (check-data): Remove.
15622         (localplt.data): New vpath directive.
15623         ($(objpfx)check-localplt.out): Use localplt.data from vpath
15624         instead of $(check-data).
15625         * scripts/data/localplt-generic.data: Move to ...
15626         * sysdeps/generic/localplt.data: ... here.
15627         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
15628         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
15629         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
15630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
15631         ... here.
15632         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
15633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
15634         ... here.
15635         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
15636         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
15637         ... here.
15638         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
15639         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
15640         ... here.
15641         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
15642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
15643         ... here.
15644         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
15645         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
15646         ... here.
15647
15648 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15649
15650         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
15651         PPC32 and PPC64 files.
15652         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
15653         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
15654
15655 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15656
15657         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
15658         __makecontext_ret to ...
15659         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15660         ... here and call exit if uc_link is NULL.  New file.
15661         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
15662         __makecontext_ret.S.
15663         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
15664         __makecontext_ret to ...
15665         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15666         ... here and call exit if uc_link is NULL.  New file.
15667         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
15668         __makecontext_ret.S.
15669
15670 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15671
15672         * elf/elf.h (R_390_IRELATIVE): New definition.
15673         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
15674         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
15675         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
15676         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15677         (elf_machine_lazy_rel): Likewise.
15678         * sysdeps/s390/dl-irel.h: New file.
15679         * sysdeps/s390/s390-64/memcpy.S: New asm code.
15680         * sysdeps/s390/s390-64/memset.S: New asm code.
15681         * sysdeps/s390/s390-64/memcmp.S: New asm code.
15682         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
15683         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
15684         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
15685         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
15686         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
15687         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
15688         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
15689         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
15690         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
15691         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
15692         * sysdeps/s390/s390-32/memcpy.S: New asm code.
15693         * sysdeps/s390/s390-32/memset.S: New asm code.
15694         * sysdeps/s390/s390-32/memcmp.S: New asm code.
15695
15696 2012-07-17  Marek Polacek  <polacek@redhat.com>
15697
15698         [BZ #14349]
15699         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
15700         * sysdeps/s390/s390-64/configure.in: Likewise.
15701         * sysdeps/sparc/configure.in: Likewise.
15702         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
15703         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
15704         * sysdeps/i386/configure.in: Likewise.
15705         * sysdeps/x86_64/configure.in: Likewise.
15706         * sysdeps/sh/configure.in: Likewise.
15707         * sysdeps/s390/s390-32/configure: Regenerated.
15708         * sysdeps/s390/s390-64/configure: Likewise.
15709         * sysdeps/x86_64/configure: Likewise.
15710         * sysdeps/sh/configure: Likewise.
15711         * sysdeps/powerpc/powerpc64/configure: Likewise.
15712         * sysdeps/powerpc/powerpc32/configure: Likewise.
15713         * sysdeps/sparc/configure: Likwise.
15714         * sysdeps/i386/configure: Likewise.
15715
15716         * elf/dl-open.c: Comment fixes.
15717
15718 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
15719
15720         * Makefile [CXX] (check-data): Remove.
15721         [CXX] (c++-types.data): New vpath directive.
15722         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
15723         vpath.  Do not allow for C++ type data being missing.
15724         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
15725         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
15726         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
15727         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
15728         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
15729         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
15730         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
15731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
15732         ... here.
15733         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
15734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
15735         ... here.
15736         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
15737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
15738         ... here.
15739         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
15740         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
15741         ... here.
15742         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
15743         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
15744         ... here.
15745         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
15746         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
15747         ... here.
15748         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
15749         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
15750         ... here.
15751         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
15752         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
15753
15754         * elf/tls-macros.h (TLS_LE): Move architecture-specific
15755         definitions to architecture-specific files.
15756         (TLS_IE): Likewise.
15757         (TLS_LD): Likewise.
15758         (TLS_GD): Likewise.
15759         * sysdeps/i386/tls-macros.h: New file.
15760         * sysdeps/powerpc/tls-macros.h: Likewise.
15761         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
15762         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
15763         * sysdeps/sh/tls-macros.h: Likewise.
15764         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
15765         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
15766         * sysdeps/x86_64/tls-macros.h: Likewise.
15767
15768 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
15769
15770         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
15771         zero value for regular exit case.
15772
15773         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
15774         (__start_context): Preserve zero value for regular exit case.
15775
15776 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
15777             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15778
15779         * manual/setjmp.texi (setcontext): Clarify normal process
15780         termination when uc_link is the null pointer.
15781         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
15782         exit call.
15783
15784 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
15785
15786         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
15787         preprocessor.  Test for each exception mask separately.
15788
15789 2012-07-16  Andreas Jaeger  <aj@suse.de>
15790
15791         * po/ru.po: Update from translation team.
15792
15793 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
15794
15795         * conform/data/string.h-data (NULL): Use macro-constant.  Require
15796         equal to 0.
15797         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
15798         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
15799         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
15800         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
15801         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15802
15803 2012-07-13  Andreas Jaeger  <aj@suse.de>
15804
15805         * po/fr.po: Update from translation team.
15806
15807 2012-07-12  Marek Polacek  <polacek@redhat.com>
15808
15809         [BZ #14173]
15810         * math/libm-test.inc (yn_test): Add test for BZ #14173.
15811         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
15812         loop condition.
15813
15814 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
15815
15816         [BZ #13717]
15817         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15818         Change to 2.4.1 where previously 2.4.0.
15819         * sysdeps/unix/sysv/linux/configure: Regenerated.
15820         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
15821         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
15822         version.
15823         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
15824         (__ASSUME_AT_CLKTCK): Remove.
15825         (__ASSUME_AT_PAGESIZE): Likewise.
15826         (__ASSUME_AT_XID): Likewise.
15827         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
15828         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
15829         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
15830         unconditionally.
15831         (HAVE_AUX_PAGESIZE): Likewise.
15832         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
15833         [__ASSUME_AT_CLKTCK]: Make code unconditional.
15834         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
15835
15836 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
15837
15838         [BZ #14307]
15839         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
15840         the temporary buffer used to invoke __gethostbyname2_r,
15841         __gethostbyaddr_r and gethostbyname4_r to make room for struct
15842         host_data / struct gaih_addrtuple.
15843         * resolv/nss_dns/dns-host.c (global scope): Move definition of
15844         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
15845         header file nss/nsswitch.h.
15846         * nss/nsswitch.h (global scope): Add definition of implementation
15847         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
15848         resolv/nss_dns/dns-host.c).
15849
15850 2012-07-11  Andreas Jaeger  <aj@suse.de>
15851
15852         * po/fr.po: Update from translation team.
15853
15854         * po/sv.po: Update from translation team
15855         * po/fr.po: Another update from translation team.
15856
15857 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15858
15859         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
15860         for subnormals or multiply small sinh result by itself.
15861         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15863
15864 2012-07-11  David S. Miller  <davem@davemloft.net>
15865
15866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15867
15868 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
15869
15870         [BZ #14347]
15871         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
15872         (INTERNAL_MARK): Shift it here.
15873
15874 2012-07-10  Marek Polacek  <polacek@redhat.com>
15875
15876         [BZ #14151]
15877         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
15878         libc_cv_asm_global_directive with .globl.
15879         * configure: Regenerated.
15880         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
15881         with .globl.
15882         * sysdeps/i386/configure: Regenerated.
15883         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
15884         with .globl.
15885         * sysdeps/x86_64/configure: Regenerated.
15886         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
15887         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
15888         * elf/tst-unique2mod2.c: Likewise.
15889         * elf/tst-unique2mod1.c: Likewise.
15890         * elf/tst-unique1mod2.c: Likewise.
15891         * elf/tst-unique1mod1.c: Likewise.
15892         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15893         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
15894         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15895         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
15896         * sysdeps/mach/sysdep.h: Likewise.
15897         * sysdeps/i386/sysdep.h: Likewise.
15898         * sysdeps/i386/i386-mcount.S: Likewise.
15899         * sysdeps/x86_64/_mcount.S: Likewise.
15900         * sysdeps/x86_64/sysdep.h: Likewise.
15901         * sysdeps/sh/_mcount.S: Likewise.
15902         * sysdeps/sh/sysdep.h: Likewise.
15903         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
15904         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
15905         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
15906         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15907         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
15908         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
15909         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
15910         * locale/localeinfo.h: Likewise.
15911         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
15912         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
15913
15914 2012-07-09  Roland McGrath  <roland@hack.frob.com>
15915
15916         [BZ #14336]
15917         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
15918         system".
15919         * manual/message.texi (The Uniforum approach): Likewise.
15920         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
15921         (glibc iconv Implementation): Likewise.
15922
15923 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
15924
15925         [BZ #14337]
15926         * math/s_clog.c (__clog): Avoid scaling a value down where that
15927         could result in underflow.
15928         * math/s_clog10.c (__clog10): Likewise.
15929         * math/s_clog10f.c (__clog10f): Likewise.
15930         * math/s_clog10l.c (__clog10l): Likewise.
15931         * math/s_clogf.c (__clogf): Likewise.
15932         * math/s_clogl.c (__clogl): Likewise.
15933         * math/libm-test.inc (clog_test): Add more tests.
15934         (clog10_test): Likewise.
15935         * sysdeps/i386/fpu/libm-test-ulps: Update.
15936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15937
15938 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
15939
15940         [BZ #14283]
15941         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
15942         by 7 not 8 to examine high bit of fractional part.
15943
15944         [BZ #14042]
15945         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
15946         for call to __mcount_internal.
15947         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
15948         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
15949         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
15950
15951 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
15952
15953         [BZ #14154]
15954         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
15955         approximation for values within 0x1p-13f of an odd multiple of
15956         pi/4.
15957         * math/libm-test.inc (tan_test): Do not allow spurious underflow
15958         exception.  Add more tests.
15959         * sysdeps/i386/fpu/libm-test-ulps: Update.
15960
15961         [BZ #6778]
15962         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
15963         inputs and return -1 for them.  Do not check for +Inf in case not
15964         reachable for +Inf.
15965         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
15966         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
15967         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
15968         and return -1 for them.  Do not check for +Inf in case not
15969         reachable for +Inf.
15970         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
15971         define.
15972         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
15973         and return -1 for them.  Do not check for +Inf in case not
15974         reachable for +Inf.
15975         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
15976         spurious underflow.
15977         * sysdeps/i386/fpu/libm-test-ulps: Update.
15978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15979
15980 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
15981
15982         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
15983
15984 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
15985
15986         [BZ #14157]
15987         [BZ #14331]
15988         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
15989         could result in spurious underflow.  Scale down values above
15990         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
15991         * math/s_csqrtf.c (__csqrtf): Likewise.
15992         * math/s_csqrtl.c (__csqrtl): Likewise.
15993         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
15994         spurious underflow.
15995         * sysdeps/i386/fpu/libm-test-ulps: Update.
15996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15997
15998 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
15999
16000         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
16001         xopen-msg.sed.
16002         * catgets/xopen-msg.awk: New file.
16003         * catgets/xopen-msg.sed: Removed.
16004
16005         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
16006         po2text.sed.
16007         * intl/po2test.awk: New file.
16008         * intl/po2test.sed: Removed.
16009
16010 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
16011
16012         [BZ #14328]
16013         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
16014         or multiply small sinh result by itself.
16015         * math/s_ctanf.c (__ctanf): Likewise.
16016         * math/s_ctanh.c (__ctanh): Likewise.
16017         * math/s_ctanhf.c (__ctanhf): Likewise.
16018         * math/s_ctanhl.c (__ctanhl): Likewise.
16019         * math/s_ctanl.c (__ctanl): Likewise.
16020         * math/libm-test.inc (ctan_test_tonearest): New function.
16021         (ctan_test_towardzero): Likewise.
16022         (ctan_test_downward): Likewise.
16023         (ctan_test_upward): Likewise.
16024         (ctanh_test_tonearest): Likewise.
16025         (ctanh_test_towardzero): Likewise.
16026         (ctanh_test_downward): Likewise.
16027         (ctanh_test_upward): Likewise.
16028         (main): Call these new functions.
16029         * sysdeps/i386/fpu/libm-test-ulps: Update.
16030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16031
16032 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
16033
16034         * .gitignore: Delete /ports entry.
16035
16036 2012-07-03  Andreas Jaeger  <aj@suse.de>
16037
16038         * po/bg.po: Update from translation team.
16039         * po/cs.po: Likewise.
16040         * po/de.po: Likewise.
16041         * po/hr.po: Likewise.
16042         * po/nl.pl: Likewise.
16043         * po/pl.po: Likewise.
16044         * po/vi.po: Likewise.
16045
16046 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
16047
16048         * Makeconfig [!+link] (+link-before-libc): New variable.
16049         [!+link] (+link-after-libc): Likewise.
16050         [!+link] (+link-tests): Likewise.
16051         [!+link] (+link): Define in terms of $(+link-before-libc) and
16052         $(+link-after-libc).
16053         [!+link-static] (+link-static-before-libc): New variable.
16054         [!+link-static] (+link-static-after-libc): Likewise.
16055         [!+link-static] (+link-static-tests): Likewise.
16056         [!+link-static] (+link-static): Define in terms of
16057         $(+link-static-before-libc) and $(+link-static-after-libc).
16058         [build-shared] (link-libc-before-gnulib): New variable.
16059         [build-shared] (link-libc-tests): Likewise.
16060         [build-shared] (link-libc): Define in terms of
16061         $(link-libc-before-gnulib).
16062         [!build-shared] (link-libc-tests): New variable.
16063         (link-libc-static-tests): New variable.
16064         [!gnulib] (gnulib-arch): New variable.
16065         [!gnulib] (gnulib-tests): Likewise.
16066         [!gnulib] (static-gnulib-arch): Likewise.
16067         [!gnulib] (static-gnulib-tests): Likewise.
16068         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
16069         Define with "=" instead of ":=".
16070         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
16071         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
16072         * Rules (binaries-all-notests): New variable.
16073         (binaries-all-tests): Likewise.
16074         (binaries-static-notests): Likewise.
16075         (binaries-static-tests): Likewise.
16076         (binaries-all): Define using $(binaries-all-notests) and
16077         $(binaries-all-tests).
16078         (binaries-static): Define using $(binaries-static-notests) and
16079         $(binaries-static-tests).
16080         (binaries-shared-tests): New variable.
16081         (binaries-shared-notests): Likewise.
16082         (binaries-shared): Remove variable.
16083         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
16084         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
16085         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
16086         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
16087         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
16088         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
16089         * elf/Makefile (sln-modules): New variable.
16090         (extra-objs): Add $(sln-modules:=.o).
16091         (ldconfig-modules): Add static-stubs.
16092         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
16093         * elf/static-stubs.c: New file.
16094
16095         [BZ #14283]
16096         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
16097         by 7 not 8 to examine high bit of fractional part.  Use volatile
16098         variables when splitting into final array of floats if
16099         __FLT_EVAL_METHOD__ != 0.
16100         * math/libm-test.inc (cos_test): Add another test.
16101         (sin_test): Likewise.
16102         * sysdeps/i386/fpu/libm-test-ulps: Update.
16103
16104         [BZ #14273]
16105         * math/libm-test.inc (cosh_test): Add more tests.
16106
16107         * version.h (RELEASE): Set to "development".
16108         (VERSION): Set to "2.16.90".
16109
16110 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
16111
16112         * NEWS: Update copyright. Remove last-updated date.
16113         Mention math library bug fixes and timezone data changes.
16114         * README: Mention GNU/Hurd, x32, and HPPA support status.
16115
16116 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
16117
16118         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
16119
16120 2012-06-27  Andreas Jaeger  <aj@suse.de>
16121
16122         * manual/contrib.texi (Contributors): Add Samuel Thibault.
16123
16124 2012-06-25  Andreas Jaeger  <aj@suse.de>
16125
16126         * sysdeps/s390/fpu/libm-test-ulps: Update.
16127
16128 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
16129             Thomas Schwinge  <thomas@codesourcery.com>
16130
16131         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
16132         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
16133         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
16134         fanotify_mark.
16135
16136 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
16137
16138         * sysdeps/mach/start.c: Remove file.
16139         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
16140         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
16141         * sysdeps/sh/init-first.c: Likewise.
16142
16143         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
16144         registers for frame unwinding purposes, add CFI directives.
16145         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
16146         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
16147         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
16148         Likewise.
16149
16150         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
16151         __fortify_fail returning.
16152         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
16153
16154         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
16155         sysdeps/sh/____longjmp_chk.S.
16156         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
16157         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
16158         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
16159         (gen-as-const-headers): Append sigaltstack-offsets.sym.
16160
16161         * sysdeps/sh/abort-instr.h: New file.
16162         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
16163         process in case exit returns.
16164
16165         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
16166         initialize the GOT register before use.
16167
16168         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
16169         calculation of ARGC > 4.
16170
16171         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
16172         meaningful names to some local labels.
16173
16174 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16175             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16176
16177         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
16178         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
16179         (__arch_compare_and_exchange_val_16_acq): Likewise.
16180         (__arch_compare_and_exchange_val_32_acq): Likewise.
16181         (atomic_exchange_and_add): Fix gUSA sequence.
16182         (atomic_add): Likewise.
16183         (atomic_add_negative): Likewise.
16184         (atomic_add_zero): Likewise.
16185         (atomic_bit_test_set): Likewise.
16186
16187 2012-06-22  Andreas Schwab  <schwab@redhat.com>
16188
16189         [BZ #13579]
16190         * include/link.h (struct link_map): Add l_free_initfini.
16191         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
16192         l_initfini.
16193         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
16194         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
16195         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
16196         set.
16197
16198 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
16199
16200         * configure.in: Use AC_LANG_SOURCE.
16201         * configure: Regenerate.
16202
16203 2012-06-22  Roland McGrath  <roland@hack.frob.com>
16204
16205         * configure.in (libc_cv_localstatedir): New substituted variable.
16206         * configure: Regenerated.
16207         * config.make.in (localstatedir): New variable, substituted from
16208         libc_cv_localstatedir.
16209         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
16210         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
16211         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
16212         * sysdeps/gnu/configure: Regenerated.
16213
16214 2012-06-21  Jeff Law  <law@redhat.com>
16215
16216         [BZ #14277]
16217         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
16218         free.  Simplify list management for _LIBC case.
16219
16220 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
16221
16222         [BZ #14273]
16223         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16224         Clear sign bit of 64-bit integer value before comparing against
16225         overflow value.
16226
16227         * sysdeps/mach/configure: Regenerated.
16228
16229 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
16230
16231         [BZ #14278]
16232         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
16233
16234 2012-06-21  Jeff Law  <law@redhat.com>
16235
16236         [BZ #13882]
16237         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
16238         uint16_t for elements in the "seen" array to avoid char overflows.
16239         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16240         * elf/dl-open.c (dl_open_worker): Likewise.
16241
16242 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
16243
16244         * scripts/list-sources.sh: Scan PORTS for translations.
16245         * po/libc.pot: Regenerated.
16246
16247 2012-06-21  Andreas Jaeger  <aj@suse.de>
16248
16249         [BZ #12194]
16250         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
16251         warning.
16252         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
16253         * bits/byteswap-16.h (__bswap_16): Likewise.
16254         * bits/byteswap.h (__bswap_constant_16): Likewise.
16255
16256 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16257
16258         [BZ #14117]
16259         * sysdeps/i386/fpu_control.h: Removed.
16260         * sysdeps/x86_64/fpu_control.h: Moved to ...
16261         * sysdeps/x86/fpu_control.h: Here.
16262
16263         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
16264         (_FPU_SETCW): Likewise.
16265
16266 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
16267
16268         [BZ #14117]
16269         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
16270         * sysdeps/x86/fpu/bits/mathinline.h: This.
16271         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
16272
16273         [BZ #14050]
16274         [BZ #14117]
16275         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
16276         functions if __x86_64__ is defined.
16277
16278 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
16279
16280         * string/endian.h: Add !__ASSEMBLER__ condition for including
16281         conversion interfaces.
16282
16283 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
16284
16285         [BZ #14241]
16286         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
16287         of ABS(x) in calculating zero to negative powers other than odd
16288         integers.
16289         * math/libm-test.inc (pow_test): Add more tests.
16290
16291 2012-06-15  Andreas Jaeger  <aj@suse.de>
16292
16293         * manual/contrib.texi (Contributors): Update entry of Liubov
16294         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
16295         Machado Filho.
16296
16297 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
16298
16299         * string/string.h: Add __wur to GNU version of strerror_r.
16300
16301 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
16302
16303         [BZ #14229]
16304         * string/Makefile (tests): Add tst-strtok_r.
16305         * string/tst-strtok_r.c: New file.
16306         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
16307         RAX_LP/RDX_LP on SAVE_PTR.
16308
16309 2012-06-14  Roland McGrath  <roland@hack.frob.com>
16310
16311         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
16312
16313 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
16314
16315         * libm_test.inc (csqrt_test): Allow more spurious underflow
16316         exceptions.
16317         (j0_test): Likewise.
16318         (j1_test): Likewise.
16319         (y0_test): Likewise.
16320         (y1_test): Likewise.
16321
16322 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
16323
16324         * po/Makefile (libc.pot): Use UTF-8 charset.
16325
16326 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
16327
16328         [BZ #14210]
16329         Suppress sign-conversion warning from FD_SET.
16330         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
16331         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
16332         not unsigned long int.
16333         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
16334
16335 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
16336
16337         [BZ #14050]
16338         [BZ #14117]
16339         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
16340         __extern_always_inline instead of __extern_inline.
16341         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
16342         (__signbit): Likewise.
16343         (__signbitl): Support C++ namespace.
16344         (lrintf): New inline function.
16345         (lrint): Likewise.
16346         (llrintf): Likewise.
16347         (llrint): Likewise.
16348         (fmaxf): Likewise.
16349         (fmax): Likewise.
16350         (fminf): Likewise.
16351         (fmin): Likewise.
16352         (rint): Likewise.
16353         (rintf): Likewise.
16354         (ceil): Likewise.
16355         (ceilf): Likewise.
16356         (floor): Likewise.
16357         (floorf): Likewise.
16358         (nearbyint): Likewise.
16359         (nearbyintf): Likewise.
16360
16361 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
16362
16363         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
16364         non-default versions.
16365
16366 2012-06-11  Roland McGrath  <roland@hack.frob.com>
16367
16368         [BZ #14218]
16369         * manual/argp.texi (Argp): Reword argp_parse description slightly.
16370
16371 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
16372
16373         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
16374         (FE_UPWARD, FE_DOWNWARD): Don't define.
16375         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
16376         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
16377
16378         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
16379         reading it.
16380         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
16381         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16382
16383 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16384
16385         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16386         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
16387         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
16388         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
16389
16390 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
16391
16392         [BZ #14117]
16393         * sysdeps/i386/fpu/bits/fenv.h: Removed.
16394         * sysdeps/i386/fpu/Implies: New file.
16395         * sysdeps/x86_64/fpu/Implies: Likewise.
16396         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
16397         * sysdeps/x86/fpu/bits/fenv.h: This.
16398
16399         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
16400         __SSE_MATH__.
16401
16402 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
16403
16404         [BZ #14134]
16405         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
16406         character 0xffff that matches the last element of the
16407         conversion table.
16408
16409 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16410
16411         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
16412         fmodl commit.
16413
16414 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16415
16416         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
16417         values higher than 25.6283.
16418
16419 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16420
16421         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
16422         subnormal exponent extraction and add some __builtin_expect.
16423         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
16424         Fix for subnormal mantissa calculation.
16425
16426 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
16427
16428         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
16429         cpu2 is -1 and errno is not ENOSYS.
16430
16431 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16432
16433         [BZ #14117]
16434         * sysdeps/i386/i486/bits/string.h: Renamed to ...
16435         * sysdeps/x86/bits/string.h: This.
16436         * sysdeps/x86_64/bits/string.h: Removed.
16437
16438         * sysdeps/i386/i486/bits/string.h: Define inline functions only
16439         if not compiling for x86-64, but compiling for >= i486.
16440
16441         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
16442         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
16443
16444         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
16445         New macro from Linux kernel 3.4.0.
16446         (FP_XSTATE_MAGIC2): Likewise.
16447         (FP_XSTATE_MAGIC2_SIZE): Likewise.
16448         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
16449         (struct _fpx_sw_bytes): New struct.
16450         (struct _xsave_hdr): Likewise.
16451         (struct _ymmh_state): Likewise.
16452         (struct _xstate): Likewise.
16453
16454         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
16455         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
16456         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
16457         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
16458         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
16459         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
16460
16461         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
16462         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
16463         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
16464         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
16465         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
16466         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
16467
16468 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16469
16470         [BZ #13743]
16471         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
16472         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
16473         (sysdep_headers): Include sys/platform/ppc.h.
16474         * sysdeps/powerpc/test-gettimebase.c: Test for
16475         __ppc_get_timebase() to catch future ISA opcode/insn changes.
16476         * manual/Makefile (appendices): Include platform.texi.
16477         * manual/contrib.texi (Contributors): Update @node pointers.
16478         * manual/maint.texi (Maintenance): Likewise.
16479         (Platform): New node.
16480         * manual/platform.texi: New file.  Document the new features.
16481
16482 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
16483             Jakub Jelinek  <jakub@redhat.com>
16484
16485         [BZ #14188]
16486         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
16487         where __builtin_expect is unavailable.
16488
16489 2012-06-03  David S. Miller  <davem@davemloft.net>
16490
16491         * stdlib/longlong.h: Updated from GCC.
16492
16493 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
16494
16495         [BZ #14042]
16496         * sysdeps/powerpc/powerpc32/mcount.c: New file.
16497         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
16498         __mcount_internal.
16499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
16500         (GLIBC_2.16): Likewise.
16501
16502 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
16503
16504         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
16505
16506 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
16507
16508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
16509         (default-abi): New variable.
16510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
16511         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
16512         variable.
16513         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
16514         Likewise.
16515         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
16516         Likewise.
16517         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
16518         Likewise.
16519
16520         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
16521         definition.  Document in comment.
16522
16523 2012-06-01  David S. Miller  <davem@davemloft.net>
16524
16525         * stdlib/longlong.h: Updated from GCC.
16526
16527 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
16528
16529         [BZ #14117]
16530         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
16531         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
16532         sys/debugreg.h sys/io.h here.
16533         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
16534         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
16535         sys/io.h.
16536         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
16537         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
16538         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
16539         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
16540         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
16541         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
16542
16543         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
16544         Define only if __x86_64__ is defined.
16545
16546 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
16547
16548         [BZ #14048]
16549         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
16550         Use int64_t for variable i.
16551         * math/libm-test.inc (fmod_test): Add more tests.
16552
16553         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
16554         z computation is not scheduled after fetestexcept.
16555         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
16556         Use math_force_eval instead of asm to ensure calculation scheduled
16557         before exception test.
16558         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
16559         Ensure a1 + u.d computation is not scheduled after fetestexcept.
16560
16561 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
16562
16563         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
16564         computation is not scheduled after fetestexcept.
16565
16566 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
16567
16568         [BZ #14117]
16569         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
16570         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
16571
16572 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16573
16574         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
16575         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
16576
16577 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16578
16579         [BZ #14117]
16580         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
16581         <bits/wordsize.h>.
16582         (__WCHAR_MIN): Support __WORDSIZE == 64.
16583         (__WCHAR_MAX): Likewise.
16584
16585         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
16586         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
16587
16588         [BZ #14183]
16589         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
16590         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
16591
16592         [BZ #14117]
16593         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
16594         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
16595
16596         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
16597         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
16598
16599         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
16600         Defined to 1 if __x86_64__ isn't defined.
16601         (_STAT_VER_LINUX_OLD): New.
16602         (st_atime): Remove duplicate.
16603         (st_mtime): Likewise.
16604         (st_ctime): Likewise.
16605
16606 2012-05-31  David S. Miller  <davem@davemloft.net>
16607
16608         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
16609         entries.
16610
16611 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
16612
16613         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
16614         gen-libm-test.pl.
16615
16616         [BZ #14132]
16617         * elf/dl-reloc.c: Include <_itoa.h>.
16618         (_dl_reloc_bad_type): Remove use of INTUSE.
16619         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
16620         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
16621         * stdio-common/psiginfo.c (psiginfo): Likewise.
16622         * stdio-common/psignal.c (psignal): Likewise.
16623         * string/strsignal.c (strsignal): Likewise.
16624         * include/signal.h (_sys_siglist): Declare hidden proto.
16625         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
16626         INTVARDEF with libc_hidden_data_def.
16627         * stdio-common/itoa-udigits.c: Likewise.
16628         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
16629         (_itoa_lower_digits_internal): Remove declaration.
16630         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
16631         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
16632         (_sys_sigabbrev_internal): Remove aliases.
16633         (_sys_siglist): Define hidden alias.
16634
16635 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
16636
16637         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16638         bits/sysctl.h.
16639
16640 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16641
16642         [BZ #14117]
16643         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
16644         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
16645
16646         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
16647         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
16648         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
16649         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
16650         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
16651         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
16652
16653         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
16654         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
16655         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
16656
16657         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
16658         with __addr.
16659         (insw): Likewise.
16660         (insl): Likewise.
16661         (outsb): Likewise.
16662         (outsw): Likewise.
16663         (outsl): Likewise.
16664
16665         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
16666         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
16667         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
16668
16669         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
16670         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
16671         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
16672         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
16673         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
16674         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
16675
16676         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
16677         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
16678
16679         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
16680         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
16681
16682         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
16683         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
16684         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
16685
16686         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
16687         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
16688         to ...
16689         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
16690
16691         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
16692         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
16693         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
16694
16695         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
16696         for x86-64.
16697         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
16698
16699 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
16700
16701         * math/math.h (M_El): Use two more decimal places.
16702         (M_LOG2El): Likewise.
16703         (M_LOG10El): Likewise.
16704         (M_LN2l): Likewise.
16705         (M_LN10l): Likewise.
16706         (M_PIl): Likewise.
16707         (M_PI_2l): Likewise.
16708         (M_PI_4l): Likewise.
16709         (M_1_PIl): Likewise.
16710         (M_2_PIl): Likewise.
16711         (M_2_SQRTPIl): Likewise.
16712         (M_SQRT2l): Likewise.
16713         (M_SQRT1_2l): Likewise.
16714
16715 2012-05-31  David S. Miller  <davem@davemloft.net>
16716
16717         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
16718         values between float registers.
16719         * sysdeps/sparc/sparc64/memset.S: Likewise.
16720         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
16721
16722 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
16723
16724         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
16725         -D_FORTIFY_SOURCE=1.
16726         (CPPFLAGS-tst-longjmp_chk.c): Define.
16727         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
16728         (CPPFLAGS-tst-longjmp_chk2.c): Define.
16729         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
16730         CFLAGS-tst-wchar-h.c.
16731
16732 2012-05-31  Marek Polacek  <polacek@redhat.com>
16733
16734         [BZ #14132]
16735         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
16736         __endmntent_internal): Remove declaration.
16737         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
16738         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
16739         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
16740
16741 2012-05-30  David S. Miller  <davem@davemloft.net>
16742
16743         * sysdeps/sparc/sparc32/soft-fp/q_util.c
16744         (___Q_simulate_exceptions): Use real FP ops rather than writing
16745         into the %fsr.
16746         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
16747         Likewise.
16748
16749 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16750
16751         [BZ #14117]
16752         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
16753         * sysdeps/x86/bits/xtitypes.h: This.
16754
16755         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
16756         * sysdeps/x86/bits/wordsize.h: This.
16757
16758         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
16759         * sysdeps/x86/bits/huge_vall.h: This.
16760
16761         * sysdeps/i386/bits/select.h: Removed.
16762         * sysdeps/x86_64/bits/select.h: Renamed to ...
16763         * sysdeps/x86/bits/select.h: This.
16764
16765         * sysdeps/i386/bits/setjmp.h: Removed.
16766         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
16767         * sysdeps/x86/bits/setjmp.h: This.
16768
16769         * sysdeps/i386/bits/mathdef.h: Removed.
16770         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
16771         * sysdeps/x86/bits/mathdef.h: This.
16772
16773 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
16774
16775         [BZ #14132]
16776         * include/sys/socket.h (__connect_internal)
16777         (__libc_sa_len_internal): Remove declaration.
16778         (__connect, __libc_sa_len): Declare hidden_proto.
16779         (SA_LEN): Remove use of INTUSE.
16780         * socket/connect.c: Add libc_hidden_def.
16781         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
16782         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
16783         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
16784         alias.
16785         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
16786         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
16787         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
16788         of adding _internal alias.
16789
16790 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16791
16792         [BZ #14117]
16793         * sysdeps/i386/bits/link.h: Removed.
16794         * sysdeps/i386/bits/linkmap.h: Likewise.
16795         * sysdeps/x86_64/bits/link.h: Renamed to ...
16796         * sysdeps/x86/bits/link.h: This.
16797         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
16798         * sysdeps/x86/bits/linkmap.h: This.
16799
16800         * sysdeps/i386/bits/endian.h: Removed.
16801         * sysdeps/x86_64/bits/endian.h: Renamed to ...
16802         * sysdeps/x86/bits/endian.h: This.
16803
16804         * sysdeps/i386/bits/byteswap.h: Removed.
16805         * sysdeps/i386/bits/byteswap-16.h: Likewise.
16806         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
16807         * sysdeps/x86/bits/byteswap.h: This.
16808         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
16809         * sysdeps/x86/bits/byteswap-16.h: This.
16810         * sysdeps/i386/Implies: Add x86.
16811         * sysdeps/x86_64/Implies: Likewise.
16812
16813 2012-05-30  David S. Miller  <davem@davemloft.net>
16814
16815         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
16816         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
16817         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
16818         (FP_TRAPPING_EXCEPTIONS): Define.
16819         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
16820         (FP_TRAPPING_EXCEPTIONS): Define.
16821         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
16822         subnormals only when inexact has been signalled or underflow
16823         exceptions are enabled.
16824         (_FP_PACK_CANONICAL): Likewise.
16825
16826 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16827
16828         [BZ #14183]
16829         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
16830         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
16831
16832 2012-05-30  Richard Henderson  <rth@twiddle.net>
16833
16834         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
16835         with #ifndef NOT_IN_libc.
16836
16837         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
16838         marked to avoid plt entry.
16839
16840 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16841
16842         [BZ #14112]
16843         * Makeconfig (default-abi): New macro.
16844         (abi-includes): Likewise.
16845         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
16846         $(abi-$(default-abi)-lib-soname) for soname if defined.
16847         ($(common-objpfx)gnu/lib-names.stmp): Generate from
16848         abi-variants.
16849         * Makefile (installed-stubs): Likewise.
16850         * include/stubs-biarch.h: Removed.
16851         * scripts/lib-names.awk: Only handle one library at a time.
16852         * scripts/soversions.awk: Remove WORDSIZE support.
16853         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
16854         entries.
16855         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
16856         Removed.
16857         (syscall-list-default-condition): Likewise.
16858         (syscall-list-default-condition): Likewise.
16859         (syscall-list-includes): Likewise.
16860         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
16861         syscall-list-* with abi-*.  Handle undefined abi-variants.
16862         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
16863         * sysdeps/unix/sysv/linux/i386/Implies: New file.
16864         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
16865         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
16866         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
16867         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
16868         Removed.
16869         (syscall-list-32-options): Likewise.
16870         (syscall-list-32-condition): Likewise.
16871         (syscall-list-64-options): Likewise.
16872         (syscall-list-64-condition): Likewise.
16873         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
16874         macro.
16875         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
16876         Renamed to ...
16877         (abi-*): This.
16878         (abi-64-ld-soname): New macro.
16879         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
16880         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
16881         Renamed to ...
16882         (abi-*): This.
16883         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
16884         * sysdeps/x86_64/x32/shlib-versions: Likewise.
16885
16886 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
16887
16888         * sysdeps/unix/sysv/linux/kernel-features.h
16889         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
16890         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
16891         include <kernel-features.h>.
16892         [!__NR_ftruncate64]: Remove conditional code.
16893         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16894         [__NR_ftruncate64]: Make code unconditional.
16895         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16896         * sysdeps/unix/sysv/linux/truncate64.c: Do not
16897         include <kernel-features.h>.
16898         [!__NR_ftruncate64]: Remove conditional code.
16899         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16900         [__NR_ftruncate64]: Make code unconditional.
16901         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
16903         include <kernel-features.h>.
16904         [!__NR_ftruncate64]: Remove conditional code.
16905         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16906         [__NR_ftruncate64]: Make code unconditional.
16907         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
16909         include <kernel-features.h>.
16910         [!__NR_ftruncate64]: Remove conditional code.
16911         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16912         [__NR_ftruncate64]: Make code unconditional.
16913         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16914
16915         * configure.in (libc_cv_fpie): Weaken to a compile test using
16916         LIBC_TRY_CC_OPTION.
16917         * configure: Regenerated.
16918
16919 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16920
16921         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
16922         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
16923         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
16924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16925         Refreshed.
16926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
16927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
16928         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
16929         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
16930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
16931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16932         Refreshed.
16933
16934 2012-05-27  David S. Miller  <davem@davemloft.net>
16935
16936         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
16937         (___Q_zero): New.
16938         (__Q_simulate_exceptions): Return void.  Change to simulate
16939         exceptions by writing into the %fsr.
16940         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
16941         (__Qp_handle_exceptions): Likewise.
16942         (numbers): Delete.
16943         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
16944         __Qp_handle_exceptions.
16945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
16946         __Qp_handle_exceptions.
16947         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
16948         as unused and give dummy FP_RND_NEAREST initializer.
16949         (FP_INHIBIT_RESULTS): Define.
16950         (___Q_simulate_exceptions): Update declaration.
16951         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
16952         formatting.
16953         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
16954         as unused and give dummy FP_RND_NEAREST initializer.
16955         (__Qp_handle_exceptions): Update declaration.
16956         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
16957         formatting.
16958
16959 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
16960
16961         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
16962         the temporary FPU control word.
16963         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
16964         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
16965         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
16966         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
16967         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
16968         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
16969         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
16970         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
16971         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
16972         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
16973         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16974
16975 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16976
16977         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
16978         fields.
16979
16980 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
16981
16982         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
16983         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
16984         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
16985         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
16986         Likewise.
16987         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
16988         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
16989         Likewise.
16990
16991 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
16992
16993         * po/h.po: Update from translation team.
16994
16995 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
16996
16997         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
16998
16999         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
17000         handling of denormals.
17001         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
17002         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
17003         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
17004         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
17005         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
17006         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
17007         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
17008         Likewise.
17009
17010 2012-05-26  Marek Polacek  <polacek@redhat.com>
17011
17012         [BZ #14152]
17013         * math/libm-test.inc (fma_test): Don't always expect underflow
17014         exception.
17015
17016 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17017
17018         [BZ #12416]
17019         * elf/tst-execstack.c: Include stackinfo.h.
17020         (do_test): Adjust test case to ensure that pthread_getattr_np
17021         behaviour remains the same after marking stack executable.
17022
17023 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
17024
17025         * sysdeps/unix/sysv/linux/kernel-features.h
17026         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
17027         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
17028         kernel-features.h.
17029         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
17030         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
17031         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
17032         kernel-features.h.
17033         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
17034         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
17035
17036 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
17037
17038         * configure.in: Define the default includes to being none.
17039         * configure: Regenerated.
17040
17041 2012-05-25  Roland McGrath  <roland@hack.frob.com>
17042
17043         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
17044         * sysdeps/x86_64/setjmp.S: Likewise.
17045         * sysdeps/i386/bsd-setjmp.S: Likewise.
17046         * sysdeps/i386/bsd-_setjmp.S: Likewise.
17047         * sysdeps/i386/setjmp.S: Likewise.
17048         * sysdeps/i386/__longjmp.S: Likewise.
17049         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
17050         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
17051
17052         * include/stap-probe.h: New file.
17053         * configure.in: Handle --enable-systemtap.
17054         * configure: Regenerated.
17055         * config.h.in (USE_STAP_PROBE): New #undef.
17056         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
17057         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
17058         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
17059
17060 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
17061
17062         [BZ #13717]
17063         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
17064         to 2.4.0 where earlier.
17065         * sysdeps/unix/sysv/linux/configure: Regenerated.
17066         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
17067         <kernel-features.h>.
17068         [__ASSUME_32BITUIDS]: Make code unconditional.
17069         [!__ASSUME_32BITUIDS]: Remove conditional code.
17070         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
17071         <kernel-features.h>.
17072         [__ASSUME_32BITUIDS]: Make code unconditional.
17073         [!__ASSUME_32BITUIDS]: Remove conditional code.
17074         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
17075         [__ASSUME_32BITUIDS]: Make code unconditional.
17076         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
17077         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
17078         <kernel-features.h>.
17079         [__ASSUME_32BITUIDS]: Make code unconditional.
17080         [!__ASSUME_32BITUIDS]: Remove conditional code.
17081         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
17082         <kernel-features.h>.
17083         [__ASSUME_32BITUIDS]: Make code unconditional.
17084         [!__ASSUME_32BITUIDS]: Remove conditional code.
17085         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
17086         <kernel-features.h>.
17087         [__ASSUME_32BITUIDS]: Make code unconditional.
17088         [!__ASSUME_32BITUIDS]: Remove conditional code.
17089         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
17090         <kernel-features.h>.
17091         [__ASSUME_32BITUIDS]: Make code unconditional.
17092         [!__ASSUME_32BITUIDS]: Remove conditional code.
17093         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
17094         <kernel-features.h>.
17095         [__ASSUME_32BITUIDS]: Make code unconditional.
17096         [!__ASSUME_32BITUIDS]: Remove conditional code.
17097         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
17098         <kernel-features.h>.
17099         [__ASSUME_32BITUIDS]: Make code unconditional.
17100         [!__ASSUME_32BITUIDS]: Remove conditional code.
17101         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
17102         <kernel-features.h>.
17103         [__ASSUME_32BITUIDS]: Make code unconditional.
17104         [!__ASSUME_32BITUIDS]: Remove conditional code.
17105         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
17106         <kernel-features.h>.
17107         [__ASSUME_32BITUIDS]: Make code unconditional.
17108         [!__ASSUME_32BITUIDS]: Remove conditional code.
17109         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
17110         <kernel-features.h>.
17111         [__ASSUME_32BITUIDS]: Make code unconditional.
17112         [!__ASSUME_32BITUIDS]: Remove conditional code.
17113         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
17114         <kernel-features.h>.
17115         [__ASSUME_32BITUIDS]: Make code unconditional.
17116         [!__ASSUME_32BITUIDS]: Remove conditional code.
17117         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
17118         <kernel-features.h>.
17119         [__NR_setresgid] (__setresgid): Do not declare.
17120         [__ASSUME_32BITUIDS]: Make code unconditional.
17121         [!__ASSUME_32BITUIDS]: Remove conditional code.
17122         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
17123         <kernel-features.h>.
17124         [__NR_setresuid] (__setresuid): Do not declare.
17125         [__ASSUME_32BITUIDS]: Make code unconditional.
17126         [!__ASSUME_32BITUIDS]: Remove conditional code.
17127         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
17128         <kernel-features.h>.
17129         [__ASSUME_32BITUIDS]: Make code unconditional.
17130         [!__ASSUME_32BITUIDS]: Remove conditional code.
17131         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
17132         <kernel-features.h>.
17133         [__ASSUME_32BITUIDS]: Make code unconditional.
17134         [!__ASSUME_32BITUIDS]: Remove conditional code.
17135         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
17136         <kernel-features.h>.
17137         [__ASSUME_32BITUIDS]: Make code unconditional.
17138         [!__ASSUME_32BITUIDS]: Remove conditional code.
17139         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
17140         <kernel-features.h>.
17141         [__ASSUME_32BITUIDS]: Make code unconditional.
17142         [!__ASSUME_32BITUIDS]: Remove conditional code.
17143         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
17144         <kernel-features.h>.
17145         [__ASSUME_32BITUIDS]: Make code unconditional.
17146         [!__ASSUME_32BITUIDS]: Remove conditional code.
17147         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
17148         <kernel-features.h>.
17149         [__ASSUME_32BITUIDS]: Make code unconditional.
17150         [!__ASSUME_32BITUIDS]: Remove conditional code.
17151         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
17152         <kernel-features.h>.
17153         [__ASSUME_32BITUIDS]: Make code unconditional.
17154         [!__ASSUME_32BITUIDS]: Remove conditional code.
17155         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
17156         <kernel-features.h>.
17157         [__ASSUME_32BITUIDS]: Make code unconditional.
17158         [!__ASSUME_32BITUIDS]: Remove conditional code.
17159         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
17160         <kernel-features.h>.
17161         [__ASSUME_32BITUIDS]: Make code unconditional.
17162         [!__ASSUME_32BITUIDS]: Remove conditional code.
17163         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
17164         <kernel-features.h>.
17165         [__ASSUME_32BITUIDS]: Make code unconditional.
17166         [!__ASSUME_32BITUIDS]: Remove conditional code.
17167         * sysdeps/unix/sysv/linux/kernel-features.h
17168         (__ASSUME_SETRESUID_SYSCALL): Remove.
17169         (__ASSUME_SETRESGID_SYSCALL): Likewise.
17170         (__ASSUME_32BITUIDS): Likewise.
17171         (__ASSUME_LDT_WORKS): Likewise.
17172         (__ASSUME_O_DIRECTORY): Likewise.
17173         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
17174         architecture but not kernel version.
17175         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
17176         (__ASSUME_MMAP2_SYSCALL): Likewise.
17177         (__ASSUME_STAT64_SYSCALL): Likewise.
17178         (__ASSUME_IPC64): Likewise.
17179         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
17180         <kernel-features.h>.
17181         [__ASSUME_32BITUIDS]: Make code unconditional.
17182         [!__ASSUME_32BITUIDS]: Remove conditional code.
17183         * sysdeps/unix/sysv/linux/opendir.c: Do not include
17184         <kernel-features.h>.
17185         [__ASSUME_O_DIRECTORY]: Make code unconditional.
17186         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
17187         132096]: Remove conditional code.
17188         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
17189         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
17190         <kernel-features.h>.
17191         [__ASSUME_32BITUIDS]: Make code unconditional.
17192         [!__ASSUME_32BITUIDS]: Remove conditional code.
17193         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
17194         <kernel-features.h>.
17195         [__ASSUME_32BITUIDS]: Make code unconditional.
17196         [!__ASSUME_32BITUIDS]: Remove conditional code.
17197         * sysdeps/unix/sysv/linux/setegid.c: Do not include
17198         <kernel-features.h>.
17199         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
17200         unconditional.
17201         (__setresgid): Do not declare.
17202         [__ASSUME_32BITUIDS]: Make code unconditional.
17203         [!__ASSUME_32BITUIDS]: Remove conditional code.
17204         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
17205         <kernel-features.h>.
17206         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
17207         unconditional.
17208         (__setresuid): Do not declare.
17209         [__ASSUME_32BITUIDS]: Make code unconditional.
17210         [!__ASSUME_32BITUIDS]: Remove conditional code.
17211         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
17212         <kernel-features.h>.
17213         [__ASSUME_32BITUIDS]: Make code unconditional.
17214         [!__ASSUME_32BITUIDS]: Remove conditional code.
17215         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
17216         <kernel-features.h>.
17217         [__ASSUME_32BITUIDS]: Make code unconditional.
17218         [!__ASSUME_32BITUIDS]: Remove conditional code.
17219
17220 2012-05-25  Richard Henderson  <rth@twiddle.net>
17221
17222         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
17223         dl_hwcap to ifunc resolver.
17224         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
17225         elf_ifunc_invoke.
17226         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
17227         dl_hwcap to ifunc resolver.
17228         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
17229
17230 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
17231
17232         [BZ #14153]
17233         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
17234         for |x| <= 2**-26, not 2**-57.
17235         * math/libm-test.inc (acos_test): Do not allow spurious underflow
17236         exception.
17237
17238 2012-05-24  Jeff Law  <law@redhat.com>
17239
17240         * stdio-common/Makefile (tests): Add bug25.
17241         * stdio-common/bug25.c: New test.
17242
17243 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17244
17245         [BZ #13576]
17246         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
17247         multiple of MALLOC_ALIGNMENT in size.
17248         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
17249
17250 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
17251
17252         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
17253         Require >= 256.
17254         (FILENAME_MAX): Use macro-int-constant.
17255         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
17256         (_IOFBF): Use macro-int-constant.
17257         (_IOLBF): Likewise.
17258         (_IONBF): Likewise.
17259         (SEEK_CUR): Likewise.
17260         (SEEK_END): Likewise.
17261         (SEEK_SET): Likewise.
17262         (TMP_MAX): Likewise.
17263         (EOF): Use macro-int-constant.  Require < 0.
17264         (NULL): Use macro-constant.  Require == 0.
17265         (stdin): Require type to be FILE *.
17266         (stdout): Likewise.
17267         (stderr): Likewise.
17268         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
17269         macro-int-constant.
17270         (EXIT_SUCCESS): Likewise.
17271         (NULL): Use macro-constant.  Require == 0.
17272         (RAND_MAX): Use macro-int-constant.
17273         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
17274         [C99-based standards] (strtof): Require function.
17275         [C99-based standards] (strtold): Likewise.
17276         [C99-based standards] (strtoll): Likewise.
17277         [C99-based standards] (strtoull): Likewise.
17278         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
17279         [ISO || ISO99 || ISO11] (limits.h): Likewise.
17280         [ISO || ISO99 || ISO11] (math.h): Likewise.
17281         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
17282         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
17283         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17284
17285 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
17286
17287         [BZ #14132]
17288         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
17289         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
17290         * intl/dgettext.c (DCGETTEXT): Likewise.
17291         * intl/gettext.c (DCGETTEXT): Likewise.
17292         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
17293         * posix/regex_internal.h (gettext): Likewise.
17294         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
17295         Remove declaration.
17296         * include/argz.h (__argz_count_internal)
17297         (__argz_stringify_internal): Remove declaration.
17298         (__argz_count, __argz_stringify): Declare hidden proto.
17299         * intl/dcgettext.c: Remove use of INTDEF.
17300         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
17301         * string/argz-stringify.c: Likewise.
17302         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
17303         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
17304         Declare hidden proto.
17305         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
17306         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
17307         Declare hidden proto.
17308         * include/stdio.h (__asprintf_internal): Don't declare.
17309         (__asprintf): Don't define as macro.  Declare hidden proto.
17310         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
17311         (__fsetlocking): Declare hidden proto.
17312         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
17313         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
17314         hidden proto.
17315         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
17316         (_IO_setlinebuf): Remove use of INTUSE.
17317         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
17318         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
17319         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
17320         Remove declaration.
17321         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
17322         (_IO_do_flush): Remove use of INTUSE.
17323         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
17324         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
17325         (_IO_adjust_column, _IO_least_wmarker)
17326         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
17327         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
17328         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
17329         (_IO_default_doallocate, _IO_wdefault_doallocate)
17330         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
17331         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
17332         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
17333         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
17334         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
17335         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
17336         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
17337         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
17338         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
17339         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
17340         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
17341         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
17342         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
17343         proto.
17344         (_IO_flush_all_internal, _IO_adjust_column_internal)
17345         (_IO_default_uflow_internal, _IO_default_finish_internal)
17346         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
17347         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
17348         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
17349         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
17350         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
17351         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
17352         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
17353         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
17354         (_IO_file_close_internal, _IO_file_close_it_internal)
17355         (_IO_file_underflow_internal, _IO_file_overflow_internal)
17356         (_IO_file_init_internal, _IO_file_attach_internal)
17357         (_IO_file_fopen_internal, _IO_file_read_internal)
17358         (_IO_file_sync_internal, _IO_file_seek_internal)
17359         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
17360         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
17361         (_IO_str_underflow_internal, _IO_str_overflow_internal)
17362         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
17363         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
17364         (_IO_list_all_internal, _IO_link_in_internal)
17365         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
17366         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
17367         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
17368         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
17369         (_IO_do_write_internal, _IO_padn_internal)
17370         (_IO_getline_info_internal, _IO_getline_internal)
17371         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
17372         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
17373         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
17374         (_IO_vfscanf_internal, _IO_vfprintf_internal)
17375         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
17376         (_IO_init_internal, _IO_un_link_internal): Don't declare.
17377         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
17378         with libc_hidden_ver, remove use of INTUSE.
17379         * libio/genops.c: Likewise.
17380         * libio/freopen.c: Likewise.
17381         * libio/freopen64.c: Likewise.
17382         * libio/iofclose.c: Likewise.
17383         * libio/iofdopen.c: Likewise.
17384         * libio/iofflush.c: Likewise.
17385         * libio/iofflush_u.c: Likewise.
17386         * libio/iofgets.c: Likewise.
17387         * libio/iofgets_u.c: Likewise.
17388         * libio/iofopen.c: Likewise.
17389         * libio/iofopncook.c: Likewise.
17390         * libio/iofread.c: Likewise.
17391         * libio/iofread_u.c: Likewise.
17392         * libio/ioftell.c: Likewise.
17393         * libio/iofwrite.c: Likewise.
17394         * libio/iogetline.c: Likewise.
17395         * libio/iogets.c: Likewise.
17396         * libio/iogetwline.c: Likewise.
17397         * libio/iopadn.c: Likewise.
17398         * libio/iopopen.c: Likewise.
17399         * libio/ioseekoff.c: Likewise.
17400         * libio/ioseekpos.c: Likewise.
17401         * libio/iosetbuffer.c: Likewise.
17402         * libio/iosetvbuf.c: Likewise.
17403         * libio/ioungetc.c: Likewise.
17404         * libio/ioungetwc.c: Likewise.
17405         * libio/iovdprintf.c: Likewise.
17406         * libio/iovsprintf.c: Likewise.
17407         * libio/iovsscanf.c: Likewise.
17408         * libio/memstream.c: Likewise.
17409         * libio/obprintf.c: Likewise.
17410         * libio/oldfileops.c: Likewise.
17411         * libio/oldiofclose.c: Likewise.
17412         * libio/oldiofdopen.c: Likewise.
17413         * libio/oldiofopen.c: Likewise.
17414         * libio/oldiopopen.c: Likewise.
17415         * libio/oldstdfiles.c: Likewise.
17416         * libio/putc.c: Likewise.
17417         * libio/setbuf.c: Likewise.
17418         * libio/setlinebuf.c: Likewise.
17419         * libio/stdfiles.c: Likewise.
17420         * libio/strops.c: Likewise.
17421         * libio/vasprintf.c: Likewise.
17422         * libio/vscanf.c: Likewise.
17423         * libio/vsnprintf.c: Likewise.
17424         * libio/vswprintf.c: Likewise.
17425         * libio/wfiledoalloc.c: Likewise.
17426         * libio/wfileops.c: Likewise.
17427         * libio/wgenops.c: Likewise.
17428         * libio/wmemstream.c: Likewise.
17429         * libio/wstrops.c: Likewise.
17430         * libio/__fpurge.c: Likewise.
17431         * libio/__fsetlocking.c: Likewise.
17432         * assert/assert.c: Likewise.
17433         * debug/fgets_chk.c: Likewise.
17434         * debug/fgets_u_chk.c: Likewise.
17435         * debug/fread_chk.c: Likewise.
17436         * debug/fread_u_chk.c: Likewise.
17437         * debug/gets_chk.c: Likewise.
17438         * debug/obprintf_chk.c: Likewise.
17439         * debug/vasprintf_chk.c: Likewise.
17440         * debug/vdprintf_chk.c: Likewise.
17441         * debug/vsnprintf_chk.c: Likewise.
17442         * debug/vsprintf_chk.c: Likewise.
17443         * malloc/mtrace.c: Likewise.
17444         * misc/error.c: Likewise.
17445         * misc/syslog.c: Likewise.
17446         * stdio-common/asprintf.c: Likewise.
17447         * stdio-common/fxprintf.c: Likewise.
17448         * stdio-common/getw.c: Likewise.
17449         * stdio-common/isoc99_fscanf.c: Likewise.
17450         * stdio-common/isoc99_scanf.c: Likewise.
17451         * stdio-common/isoc99_vfscanf.c: Likewise.
17452         * stdio-common/isoc99_vscanf.c: Likewise.
17453         * stdio-common/isoc99_vsscanf.c: Likewise.
17454         * stdio-common/printf-prs.c: Likewise.
17455         * stdio-common/printf_fp.c: Likewise.
17456         * stdio-common/printf_fphex.c: Likewise.
17457         * stdio-common/printf_size.c: Likewise.
17458         * stdio-common/putw.c: Likewise.
17459         * stdio-common/scanf.c: Likewise.
17460         * stdio-common/sprintf.c: Likewise.
17461         * stdio-common/tmpfile.c: Likewise.
17462         * stdio-common/vfprintf.c: Likewise.
17463         * stdio-common/vfscanf.c: Likewise.
17464         * stdlib/strfmon_l.c: Likewise.
17465         * sunrpc/openchild.c: Likewise.
17466         * sunrpc/xdr_stdio.c: Likewise.
17467         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
17468         * sysdeps/mach/hurd/tmpfile.c: Likewise.
17469
17470 2012-05-24  Roland McGrath  <roland@hack.frob.com>
17471
17472         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
17473
17474         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
17475         in the third column, to generate for the shared library an IFUNC
17476         that uses _dl_vdso_vsym.
17477         * Makerules (COMPILE.c, compile-stdin.c): New variables.
17478         * Makeconfig (object-suffixes-noshared): New variable.
17479
17480         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
17481         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
17482         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
17483         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
17484
17485         [BZ #14132]
17486         * include/sys/time.h (__gettimeofday): Remove macro.
17487         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
17488         * time/gettimeofday.c (__gettimeofday): Remove #undef.
17489         Remove INTDEF.
17490         (__gettimeofday): Add libc_hidden_def.
17491         (gettimeofday): Add libc_hidden_weak.
17492         * sysdeps/mach/gettimeofday.c: Likewise.
17493         * sysdeps/posix/gettimeofday.c: Likewise.
17494         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
17495         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17496         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
17497         (__gettimeofday_internal): Remove strong_alias.
17498         (__gettimeofday): Add libc_hidden_def.
17499         (gettimeofday): Add libc_hidden_weak.
17500         * sysdeps/unix/syscalls.list (gettimeofday):
17501         Remove __gettimeofday_internal alias.
17502
17503 2012-05-24  Daniel Jacobowitz  <drow@false.org>
17504             H.J. Lu  <hongjiu.lu@intel.com>
17505
17506         [BZ #12495]
17507         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
17508         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
17509         (largebin_index_32_big): New.
17510         (largebin_index): Use it for 16-byte alignment.
17511         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
17512         correction with front_misalign.
17513
17514 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17515
17516         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
17517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
17518         Likewise.
17519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
17520         Likewise.
17521         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
17522         Likewise.
17523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
17524         Likewise.
17525         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
17526         Likewise.
17527         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
17528         Likewise.
17529         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
17530         Likewise.
17531         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
17532         Likewise.
17533         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
17534         Likewise.
17535         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
17536         Likewise.
17537         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
17538         Likewise.
17539         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
17540         Likewise.
17541
17542         * scripts/data/c++-types-x32-linux-gnu.data: New file.
17543         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
17544
17545 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
17546
17547         [BZ #10846]
17548         [BZ #14036]
17549         * math/libm-test.inc (exp_test): Add test from bug 14036.
17550         (pow_test): Add test from bug 10846.
17551
17552         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
17553         and other flags.
17554         (special_function): Do not include flags in test name.
17555         (parse_args): Likewise.
17556         * sysdeps/i386/fpu/libm-test-ulps: Update.
17557         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17558         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17559         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17561
17562         * math/gen-libm-test.pl (%beautify): Add entries for underflow
17563         exceptions.
17564         * math/libm-test.inc ("Philosophy"): Update comment about
17565         exception testing.
17566         (UNDERFLOW_EXCEPTION): New macro.
17567         (UNDERFLOW_EXCEPTION_OK): Likewise.
17568         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
17569         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
17570         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
17571         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
17572         (INVALID_EXCEPTION_OK): Update value.
17573         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17574         (OVERFLOW_EXCEPTION_OK): Likewise.
17575         (IGNORE_ZERO_INF_SIGN): Likewise.
17576         (test_exceptions): Handle underflow exceptions.
17577         (acos_test): Update for underflow exception expectations.
17578         (cexp_test): Likewise.
17579         (clog_test): Likewise.
17580         (clog10_test): Likewise.
17581         (csqrt_test): Likewise.
17582         (ctan_test): Likewise.
17583         (ctanh_test): Likewise.
17584         (exp_test): Likewise.
17585         (exp10_test): Likewise.
17586         (exp2_test): Likewise.
17587         (expm1_test): Likewise.
17588         (fma_test): Likewise.
17589         (j0_test): Likewise.
17590         (jn_test): Likewise.
17591         (nexttoward_test): Likewise.
17592         (pow_test): Likewise.
17593         (scalbn_test): Likewise.
17594         (scalbln_test): Likewise.
17595         (tan_test): Likewise.
17596         (y1_test): Likewise.
17597         * sysdeps/i386/fpu/libm-test-ulps: Update.
17598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17599
17600 2012-05-23  David S. Miller  <davem@davemloft.net>
17601
17602         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
17603         (__libc_sigaction): Remove unused local variables.
17604
17605 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17606
17607         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
17608
17609 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17610
17611         mktime: avoid signed integer overflow
17612         * time/mktime.c (__mktime_internal): Do not mishandle the case
17613         where diff == INT_MIN.
17614
17615         mktime: simplify computation of average
17616         * time/mktime.c (ranged_convert): Use new time_t_avg function
17617         instead of rolling our own (probably-slower) code.
17618
17619         mktime: do not assume signed right shift propagates sign bit
17620         * time/mktime.c (isdst_differ): New static function.
17621         (__mktime_internal): No need to normalize tm_isdst now.
17622         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
17623         tm_isdst values.
17624
17625         mktime: merge another wrapv change from gnulib
17626         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
17627         from some compilers.
17628
17629         mktime: remove incorrect attempt at unusual arithmetics
17630         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
17631         The code didn't really work on such machines anyway.
17632         (TYPE_MINIMUM): Assume two's complement.
17633         (twos_complement_arithmetic): Verify that long_int and time_t
17634         are two's complement (or unsigned, in the latter case).
17635
17636         mktime: check signed shifts on long_int and time_t, too
17637         * time/mktime.c (SHR): Check that shifts work as desired
17638         on the types long_int and time_t too, as SHR is used on
17639         such types.
17640
17641         mktime: do not assume 'long' is wide enough
17642         * time/mktime.c (verify): Move decl up.
17643         (long_int): New type.
17644         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
17645         to remove assumption in the code that 'long' is wide enough to
17646         store year values.  This assumption is not true on x32 and on
17647         some non-glibc platforms.
17648
17649         mktime: merge wrapv change from gnulib
17650         * time/mktime.c (WRAPV): New macro.
17651         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
17652         (guess_time_tm, __mktime_internal): Do not assume that signed
17653         integer overflow wraps around; modern compilers generate code
17654         where this assumption is no longer valid.
17655
17656 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17657
17658         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
17659         Replace "jmp L(pseudo_end)" with "ret".
17660         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
17661         Likewise.
17662
17663 2012-05-23  Andreas Jaeger  <aj@suse.de>
17664
17665         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
17666         * sysdeps/unix/sysv/linux/poll.c: Remove file.
17667
17668 2012-05-23  Andreas Jaeger  <aj@suse.de>
17669             Maximilian Attems  <max@stro.at>
17670
17671         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
17672         New macros.
17673
17674 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17675
17676         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
17677         code so that pseudo_end is just ret and the stack pointer is
17678         correct also for static library in error case.
17679
17680 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
17681
17682         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
17683         move to syscalls.list.
17684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
17685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
17686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
17687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
17688
17689         * manual/install.texi (Running make install): Do not mention Linux
17690         kernel version for which pt_chown is not needed.
17691         (Linux): Do not mention problems with nscd with 2.0 kernels.
17692         * INSTALL: Regenerated.
17693
17694 2012-05-23  Andreas Jaeger  <aj@suse.de>
17695
17696         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
17697         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
17698         macro.
17699         * sysdeps/unix/sysv/linux/s390/bits/mman.h
17700         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17701         * sysdeps/unix/sysv/linux/sh/bits/mman.h
17702         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17703         * sysdeps/unix/sysv/linux/i386/bits/mman.h
17704         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17705         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
17706         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17707         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
17708         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17709         * sysdeps/unix/sysv/linux/bits/in.h
17710         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
17711
17712 2012-05-22  Roland McGrath  <roland@hack.frob.com>
17713
17714         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
17715         (PREPARE_VERSION): Just use assert instead, it will be elided
17716         under [NDEBUG] anyway.
17717
17718 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17719
17720         * sysdeps/unix/sysv/linux/Makefile: Include
17721         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
17722         (sysdep_routines): Remove sysctl.
17723         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
17724         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
17725         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
17726         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
17727         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
17728
17729 2012-05-22  Andreas Jaeger  <aj@suse.de>
17730
17731         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
17732         that pseudo_end is just ret and the stack pointer is correct also
17733         for static library in error case.
17734
17735 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
17736
17737         [BZ #14122]
17738         * nss/nsswitch.c (defconfig_entries): New variable.
17739         (__nss_database_lookup): Don't leak defconfig entries.
17740         (nss_parse_service_list): Don't leak on error paths.
17741         (free_database_entries): New function.
17742         (free_defconfig): New function.
17743         (free_mem): Move common code to free_database_entries.
17744
17745 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17746
17747         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
17748         Add arch_prctl.
17749         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
17750
17751         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
17752         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
17753         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
17754         New macro.
17755         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
17756         (INTERNAL_SYSCALL_TYPES): Likewise.
17757         (LOAD_ARGS_TYPES_[1-6]): Likewise.
17758         (LOAD_REGS_TYPES_[1-6]): Likewise.
17759         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
17760         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
17761
17762 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17763
17764         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
17765         copysignl for GLIBC_2_0.
17766         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
17767         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
17768         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
17769         logbl for GLIBC_2_0.
17770         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
17771         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
17772
17773 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17774
17775         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
17776         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
17777
17778         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
17779         Use "neg %eax".
17780
17781         * time/mktime.c: Update copyright years.
17782
17783 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17784
17785         mktime: merge comment-quoting-style change from gnulib
17786         * time/mktime.c: Quote 'like this' in comments.
17787         The GNU coding standards suggest that we no longer quote `like this',
17788         as "`" and "'" are typically rendered asymmetrically nowadays.
17789         The typical gnulib style is to quote 'like this' when quoting
17790         code, and "like this" when quoting English.
17791
17792         * time/mktime.c (compile-command): Add "-I.".
17793
17794         mktime: merge mktime-internal.h change from gnulib
17795         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
17796
17797         mktime: merge time_r change from gnulib
17798         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
17799
17800         mktime: merge DEBUG change from gnulib
17801         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
17802         case system <time.h> has a #define.
17803
17804         mktime: merge <sys/types.h> change from gnulib
17805         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
17806         since <time.t> is now guaranteed to define time_t.
17807
17808         mktime: merge HAVE_CONFIG_H change from gnulib
17809         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
17810
17811 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17812
17813         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
17814         Use "neg %eax".
17815
17816         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
17817         __rlim_t cast.
17818         (struct rusage): Use anonymous union to pad each field to
17819         __syscall_slong_t.
17820
17821 2012-05-21  David S. Miller  <davem@davemloft.net>
17822
17823         * Makefules (o-iterator): Remove .s cases.
17824         (compile-command.s): Delete.
17825         (COMPILE.s): Delete.
17826         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
17827
17828 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
17829
17830         * configure.in (libc_cv_predef_stack_protector): Only consider
17831         "foobar" and "__stack_chk_fail" lines in libc_undefs.
17832         * configure: Regenerated.
17833
17834 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17835
17836         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
17837         New macro.  Use R*LP on int and pointer.
17838         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
17839         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
17840         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
17841         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
17842
17843         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
17844         [__WORDSIZE_TIME64_COMPAT32] instead of
17845         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
17846         (struct utmp): Likewise.
17847         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
17848         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
17849         Renamed to ...
17850         (__WORDSIZE_TIME64_COMPAT32): This.
17851         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
17852         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
17853         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
17854         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
17855         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
17856         (__WORDSIZE_TIME64_COMPAT32): New macro.
17857
17858 2012-05-21  Andreas Jaeger  <aj@suse.de>
17859
17860         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
17861         only if [SHARED]. Add prototype for __wcschr_ia32.
17862
17863 2012-05-21  Roland McGrath  <roland@hack.frob.com>
17864
17865         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
17866         of %rbp unmolested in the jmp_buf while mangling the low bits.
17867         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
17868         unmolested high bits of %rbp while demangling the low bits.
17869         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
17870
17871 2012-05-21  Andreas Jaeger  <aj@suse.de>
17872
17873         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
17874         * sunrpc/svc_simple.c: Use it for registerrpc.
17875         * sunrpc/xcrypt.c: Use it for passwd2des.
17876
17877         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
17878
17879 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17880
17881         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
17882         Don't define if [__SYSCALL_WORDSIZE != 32].
17883         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
17884         New macro.
17885
17886 2012-05-21  Bruno Haible  <bruno@clisp.org>
17887             Andreas Jaeger  <aj@suse.de>
17888
17889         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
17890         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
17891         inptr and inend for must_buffer_ch.
17892         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
17893         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
17894         * stdio-common/Makefile (tests): Remove bug15.
17895         (bug15-ENV): Remove macro.
17896         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
17897         anymore.
17898
17899 2012-05-19  Andreas Jaeger  <aj@suse.de>
17900             Roland McGrath  <roland@hack.frob.com>
17901
17902         * manual/contrib.texi: Completely rewritten. It contains now an
17903         alphabetical list of contributors and their contributions.
17904
17905 2012-05-21  Richard Henderson  <rth@twiddle.net>
17906
17907         * misc/getauxval.c (__getauxval): Use unsigned long int.
17908         * misc/sys/auxv.h: Include <sys/cdefs.h>.
17909         (getauxval): Use unsigned long int.
17910
17911 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17912
17913         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
17914
17915 2012-05-21  Roland McGrath  <roland@hack.frob.com>
17916
17917         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
17918         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
17919         __alignof__ (long double).
17920
17921 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17922
17923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17924
17925 2012-05-20  Richard Henderson  <rth@twiddle.net>
17926
17927         * misc/getauxval.c: New file.
17928         * misc/sys/auxv.h: New file.
17929         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
17930         (routines): Add getauxval.
17931         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
17932         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
17933         * elf/dl-sysdep.c (_dl_auxv): Remove.
17934         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
17935         * elf/dl-support.c (_dl_auxv): New variable.
17936         (_dl_aux_init): Initialize it.
17937         * manual/startup.texi (Auxiliary Vector): New node.
17938         * sysdeps/generic/bits/hwcap.h: New file.
17939         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
17940         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
17941         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
17942         * sysdeps/sparc/sysdep.h: ... here.  Include it.
17943         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
17944         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
17945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17946         Update.
17947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
17948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
17949         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
17950         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
17951         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
17952         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
17953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
17954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
17955
17956 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17957
17958         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17959
17960 2012-05-19  David S. Miller  <davem@davemloft.net>
17961
17962         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17963
17964 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
17965
17966         [BZ #14123]
17967         * math/s_ccosh.c: Include <float.h>
17968         (__ccosh): Avoid internal overflow calculating sinh and cosh
17969         values before multiplying by sin and cos values.
17970         * math/s_ccoshf.c: Likewise.
17971         * math/s_ccoshl.c: Likewise.
17972         * math/s_csin.c: Likewise.
17973         * math/s_csinf.c: Likewise.
17974         * math/s_csinl.c: Likewise.
17975         * math/s_csinh.c: Likewise.
17976         * math/s_csinhf.c: Likewise.
17977         * math/s_csinhl.c: Likewise.
17978         * math/libm-test.inc (ccos_test): Add more tests.
17979         (ccosh_test): Likewise.
17980         (csin_test): Likewise.
17981         (csinh_test): Likewise.
17982         * sysdeps/i386/fpu/libm-test-ulps: Update.
17983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17984
17985 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
17986
17987         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
17988         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
17989
17990         * sysdeps/x86_64/x32/_itoa.h: Add comment.
17991
17992 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
17993
17994         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
17995         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
17996         * sysdeps/powerpc/soft-fp/Versions: Likewise.
17997         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
17998         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
17999         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
18000         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
18001         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
18002         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
18003         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
18004         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
18005         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
18006         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
18007         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
18008         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
18009         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
18010         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
18011         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
18012         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
18013         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
18014         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
18015         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
18016         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
18017         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
18018         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
18019         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
18020         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
18021         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
18022         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
18023         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
18024         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
18025
18026 2012-05-18  Andreas Jaeger  <aj@suse.de>
18027
18028         * csu/.gitignore: Delete.
18029
18030 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18031
18032         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
18033         (timex): Use __syscall_slong_t.
18034
18035 2012-05-18  Andreas Jaeger  <aj@suse.de>
18036             Carlos O'Donell  <carlos_odonell@mentor.com>
18037
18038         * manual/install.texi (Configuring and compiling): Update
18039         description about files modified in the source directory.
18040         * INSTALL: Regenerated.
18041
18042 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18043
18044         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
18045         value.  Use "or" to set return value to -1.
18046         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
18047         negate return value.
18048
18049 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18050
18051         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
18052         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
18053         failure if the compiler has Graphite support disabled.
18054         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
18055         Likewise.
18056         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
18057         CFLAGS-memmove.c): Likewise.
18058         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
18059         Likewise.
18060
18061 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18062
18063         * sysdeps/x86_64/x32/_itoa.h: New file.
18064
18065         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
18066         getdents system call only if kernel and user dirents have the
18067         same d_ino and d_off.
18068
18069         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18070         LLONG_MAX != LONG_MAX.
18071         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18072         (_fitoa_word): Likewise.
18073
18074         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
18075         years.
18076         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
18077         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
18078         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
18079
18080         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
18081         include <bits/wordsize.h>.  Check __x86_64__ instead of
18082         __WORDSIZE.
18083         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
18084         if __x86_64__ is defined.  Use anonymous union on fpstate.
18085
18086         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
18087         anonymous union.
18088
18089 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
18090
18091         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
18092         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
18093         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
18094         Refer to _rtld_local_ro instead of _rtld_global_ro.
18095         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
18096         Likewise.
18097         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
18098         Likewise.
18099         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
18100         Likewise.
18101         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
18102         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
18103         of _rtld_global, and rtld_progname instead of _dl_argv[0].
18104
18105         * sysdeps/powerpc/powerpc32/dl-machine.c
18106         (__elf_machine_runtime_setup) [PROF]: Don't reference
18107         _dl_prof_resolve.
18108
18109 2012-05-18  Andreas Jaeger  <aj@suse.de>
18110
18111         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
18112         function only available for GCCs before 3.4 since GCC 3.4
18113         introduced a builtin.
18114         (lrint): Likewise.
18115         (llrintf): Likewise.
18116         (llrint): Likewise.
18117         (fmaxf): Likewise.
18118         (fmax): Likewise.
18119         (fminf): Likewise.
18120         (fmin): Likewise.
18121         (rint): Likewise.
18122         (rintf): Likewise.
18123         (nearbyint): Likewise.
18124         (nearbyintf): Likewise.
18125         (ceil): Likewise.
18126         (ceilf): Likewise.
18127         (floor): Likewise.
18128         (floorf): Likewise.
18129
18130 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18131
18132         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
18133         on both fields and cast pointer to __syscall_ulong_t.
18134
18135         * bits/types.h (__fsword_t): New type.
18136         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
18137         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
18138         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18139         (__FSWORD_T_TYPE): Likewise.
18140         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18141         (__FSWORD_T_TYPE): Likewise.
18142         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18143         (__FSWORD_T_TYPE): Likewise.
18144         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
18145         (__FSWORD_T_TYPE): Likewise.
18146         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
18147         __SWORD_TYPE with __fsword_t.
18148         (statfs64): Likewise.
18149
18150 2012-05-17  David S. Miller  <davem@davemloft.net>
18151
18152         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
18153
18154 2012-05-17  Andreas Jaeger  <aj@suse.de>
18155
18156         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
18157         warning.
18158
18159 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18160
18161         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
18162
18163 2012-05-17  Andreas Jaeger  <aj@suse.de>
18164
18165         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
18166         when it is used.
18167
18168 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
18169
18170         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
18171
18172 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18173
18174         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
18175         * sysdeps/x86_64/tst-mallocalign1.c: New file.
18176
18177 2012-05-17  Andreas Jaeger  <aj@suse.de>
18178             Carlos O'Donell  <carlos_odonell@mentor.com>
18179
18180         [BZ #14059]
18181         * sysdeps/x86_64/multiarch/init-arch.h
18182         (bit_YMM_Usable): Rename to...
18183         (bit_AVX_Usable): ... this.
18184         (bit_FMA4_Usable): New macro.
18185         (bit_XMM_state): New macro.
18186         (bit_YMM_state): New macro.
18187         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
18188         [__ASSEMBLER__] (index_AVX_Usable): ... this.
18189         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
18190         (CPUID_OSXSAVE): New macro.
18191         (CPUID_AVX): New macro.
18192         (CPUID_FMA4): New macro.
18193         (index_YMM_Usable): Rename to...
18194         (index_AVX_Usable): ... this.
18195         (HAS_AVX): Use HAS_ARCH_FEATURE.
18196         (HAS_FMA4): Likewise.
18197         (HAS_YMM_USABLE): Remove.
18198         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18199         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
18200         are present.
18201         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
18202         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
18203         * sysdeps/x86_64/multiarch/Makefile: Likewise.
18204         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
18205         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
18206
18207 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
18208
18209         * math/libm-test.c: Support platforms without multiple rounding modes.
18210         * math/bug-nextafter.c: Support platforms without FP exceptions.
18211         * math/bug-nexttoward.c: Likewise.
18212         * math/test-fenv.c: Likewise.
18213         * math/test-misc.c: Likewise.
18214         * stdlib/bug-getcontext.c: Likewise.
18215
18216 2012-05-17  Andreas Jaeger  <aj@suse.de>
18217
18218         * manual/examples/search.c (critter_cmp): Change signature to
18219         avoid warnings.
18220         * manual/string.texi (Collation Functions): Likewise.
18221
18222 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18223
18224         * bits/types.h: Fold copyright years.
18225         * bits/typesizes.h: Likewise.
18226         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
18227         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
18228         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
18229         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
18230         * time/time.h: Likewise.
18231
18232 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
18233
18234         [BZ #208]
18235         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
18236         in instead of returning them.  Return void.
18237         (__libc_mallinfo): Accumulate over all arenas.
18238         (__malloc_stats): Adjust for change in int_mallinfo interface.
18239
18240 2012-05-16  Roland McGrath  <roland@hack.frob.com>
18241
18242         [BZ #10375]
18243         * configure.in (NM): Add AC_CHECK_TOOL for it.
18244         (libc_extra_cflags): New substituted variable.
18245         Check for -fstack-protector being used implicitly.
18246         * configure: Regenerated.
18247         * config.make.in (config-extra-cflags): New variable,
18248         gets @libc_extra_cflags@.
18249         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
18250
18251         [BZ #10375]
18252         * configure.in: Check for _FORTIFY_SOURCE being predefined.
18253         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
18254         * configure: Regenerated.
18255         * config.make.in (CPPUNDEFS): New substituted variable.
18256         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
18257         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
18258         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
18259
18260 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18261
18262         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
18263         (mq_attr): Use __syscall_slong_t.
18264
18265 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18266
18267         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
18268         Check __x86_64__ instead of __WORDSIZE.
18269         (_STAT_VER_LINUX): Likewise.
18270         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
18271         __syscall_ulong_t and __syscall_slong_t.
18272         (stat64): Likewise.
18273
18274 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18275
18276         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
18277
18278 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18279
18280         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
18281
18282 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18283
18284         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
18285         __syscall_ulong_t.
18286
18287         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
18288         include <bits/wordsize.h>.  Check __x86_64__ instead of
18289         __WORDSIZE.
18290         (greg_t): Use "__extension__ long long int" if __x86_64__ is
18291         defined.
18292         (mcontext_t): Replace "unsigned long" with "unsigned long long".
18293
18294         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
18295         include <bits/wordsize.h>.  Check __x86_64__ instead of
18296         __WORDSIZE.
18297         (user_regs_struct): Use "__extension__ unsigned long long"
18298         instead of "unsigned long" if __x86_64__ is defined.
18299         (user): Likewise.  Pad after pointer field if __ILP32__ is
18300         defined.
18301
18302 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
18303
18304         * configure.in (makeinfo): Require version 4.5 or later.  Allow
18305         versions 5 to 9.
18306         * configure: Regenerated.
18307         * manual/install.texi (texinfo): Increase version requirement to
18308         4.5 or later.
18309         * INSTALL: Regenerated.
18310
18311         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
18312
18313 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18314
18315         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
18316
18317         * sysdeps/x86_64/x32/ffs.c: New file.
18318
18319         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
18320         __syscall_ulong_t.
18321         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
18322         defined.  Use __syscall_ulong_t.
18323         (shminfo): Use __syscall_ulong_t.
18324         (shm_info): Likewise.
18325
18326         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
18327         __syscall_ulong_t.
18328
18329         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
18330         <bits/wordsize.h>.
18331         (msgqnum_t): Use __syscall_ulong_t.
18332         (msglen_t): Likewise.
18333         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
18334         __syscall_ulong_t.
18335
18336         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
18337         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
18338
18339         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
18340
18341         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
18342         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
18343
18344         * sysvipc/sys/msg.h (msgbuf): Replace long int with
18345         __syscall_slong_t.
18346
18347         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
18348         include <bits/wordsize.h>.  Check __x86_64__ instead of
18349         __WORDSIZE.
18350
18351         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
18352         "unsigned long long int" if __x86_64__ is defined.
18353         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
18354
18355         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
18356         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
18357         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
18358
18359         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
18360         <stdint.h>.
18361         (GET_PC): Cast to uintptr_t first.
18362         (GET_FRAME): Likewise.
18363         (GET_STACK): Likewise.
18364
18365         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
18366         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
18367         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
18368         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
18369         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
18370         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
18371         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
18372         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
18373         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
18374         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
18375         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
18376         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
18377         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
18378         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
18379         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
18380         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
18381         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
18382         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
18383         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
18384         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
18385         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
18386         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
18387         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
18388         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
18389         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
18390         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
18391         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
18392         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
18393         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
18394
18395 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
18396
18397         * Makerules (+depfiles): Also collect depfiles from .oS in
18398         $(extra-objs).
18399         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
18400         .oS, $(libnldbl-routines)).
18401
18402         * Makerules (native-compile-mkdep-flags): Define.
18403         * sunrpc/Makefile (extra-objs): Add $(addprefix
18404         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
18405         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
18406         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
18407         calling $(make-target-directory).
18408
18409 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18410
18411         * bits/types.h (__snseconds_t): Removed.
18412         * time/time.h (struct timespec): Replace __snseconds_t with
18413         __syscall_slong_t.
18414         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
18415         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
18416         Likewise.
18417         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18418         (__SNSECONDS_T_TYPE): Likewise.
18419         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18420         (__SNSECONDS_T_TYPE): Likewise.
18421         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18422         (__SNSECONDS_T_TYPE): Likewise.
18423
18424 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18425
18426         * sysdeps/mach/hurd/bits/typesizes.h
18427         (__SYSCALL_SLONG_TYPE): New macro.
18428         (__SYSCALL_ULONG_TYPE): Likewise.
18429
18430 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18431
18432         * bits/types.h (__syscall_slong_t): New type.
18433         (__syscall_ulong_t): Likewise.
18434
18435         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
18436         (__SYSCALL_ULONG_TYPE): Likewise.
18437         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18438         (__SYSCALL_SLONG_TYPE): Likewise.
18439         (__SYSCALL_ULONG_TYPE): Likewise.
18440         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18441         (__SYSCALL_SLONG_TYPE): Likewise.
18442         (__SYSCALL_ULONG_TYPE): Likewise.
18443         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18444         (__SYSCALL_SLONG_TYPE): Likewise.
18445         (__SYSCALL_ULONG_TYPE): Likewise.
18446
18447 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18448
18449         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
18450         Add sigaltstack-offsets.sym.
18451         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
18452         <sigaltstack-offsets.h>.
18453         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
18454         longjmp_msg pointer.
18455         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
18456         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
18457         signal stack.
18458         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
18459
18460 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
18461
18462         * elf/stackguard-macros.h: Remove file.
18463         * sysdeps/generic/stackguard-macros.h: New file.
18464         * sysdeps/i386/stackguard-macros.h: Likewise.
18465         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
18466         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
18467         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
18468         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
18469         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
18470         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
18471         * sysdeps/x86_64/stackguard-macros.h: Likewise.
18472         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
18473         <elf/stackguard-macros.h>.
18474
18475         [BZ #14109]
18476         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
18477         __aligned__ in attribute.
18478         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
18479         (gregset_t): Likewise.
18480
18481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18482
18483         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
18484         * sysdeps/x86_64/64/Implies-after: Here.  New file.
18485         * sysdeps/x86_64/x32/Implies-after: New file.
18486
18487 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18488
18489         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
18490         and access return value for _dl_profile_fixup.  Use R10_LP to
18491         load frame size.
18492
18493 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18494
18495         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
18496
18497 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18498
18499         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
18500         * sysdeps/x86_64/x32/sysdep.h: New file.
18501
18502 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18503
18504         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
18505         * sysdeps/x86_64/setjmp.S: Likewise.
18506
18507 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18508
18509         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
18510         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
18511         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
18512         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
18513         remove unused global constant.
18514
18515 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
18516
18517         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
18518         include of <not-cancel.h>.
18519
18520 2012-05-15  Roland McGrath  <roland@hack.frob.com>
18521
18522         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
18523
18524 2012-05-15  Jeff Law  <law@redhat.com>
18525             Andreas Jaeger  <aj@suse.de>
18526
18527         [BZ #13594]
18528         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
18529         out from...
18530         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
18531         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
18532         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
18533         code changing __hst_map_handle.map.
18534
18535 2012-05-15  Roland McGrath  <roland@hack.frob.com>
18536
18537         * configure.in (sysnames): Look for Implies-before and Implies-after
18538         files.
18539         * configure: Regenerated.
18540
18541 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18542
18543         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
18544         8-byte data alignment with LP_SIZE alignment.
18545
18546 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18547
18548         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
18549         into R10_LP.
18550
18551 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18552
18553         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
18554
18555 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18556
18557         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
18558         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
18559         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
18560         Likewise.
18561         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
18562
18563 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18564
18565         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
18566         (stackinfo_sub_sp): Likewise.
18567
18568 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18569
18570         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
18571         RAX_LP.
18572
18573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18574
18575         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
18576         into R*_LP.
18577
18578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18579
18580         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
18581         sizes into R*_LP.
18582
18583 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18584
18585         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
18586
18587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18588
18589         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
18590         into R11_LP and load __x86_64_shared_cache_size_half into
18591         R8_LP.
18592
18593 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18594
18595         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
18596         R8_LP.
18597
18598 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18599
18600         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
18601         logb for POWER7.
18602         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
18603         logbf for POWER7.
18604         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
18605         logbl for POWER7.
18606         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
18607         powerpc32/power7/fpu/s_logb.c via #include.
18608         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
18609         powerpc32/power7/fpu/s_logbf.c via #include.
18610         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
18611         powerpc32/power7/fpu/s_logbl.c via #include.
18612
18613 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
18614
18615         * README.libm: Remove file.
18616
18617 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18618
18619         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
18620         count for x32.  Use R*_LP and omit operand-size suffix.
18621
18622 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18623
18624         * shlib-versions: Move x86_64-.*-linux.* entries to ...
18625         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
18626         * sysdeps/x86_64/x32/shlib-versions: New file.
18627
18628 2012-05-14  Roland McGrath  <roland@hack.frob.com>
18629
18630         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
18631         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
18632         Use _dl_fatal_printf instead.
18633
18634 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
18635
18636         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
18637         set if not set by the user.  Do not allow for being unset.
18638         * sysdeps/unix/sysv/linux/configure: Regenerated.
18639
18640 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18641
18642         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
18643         the `q' suffix from lea and replace .quad with ASM_ADDR.
18644
18645 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18646
18647         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
18648         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
18649         instead of $17.
18650         (PTR_DEMANGLE): Likewise.
18651
18652 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18653
18654         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
18655         (LP_OP): Likewise.
18656         (ASM_ADDR): Likewise.
18657         (RAX_LP): Likewise.
18658         (RBP_LP): Likewise.
18659         (RBX_LP): Likewise.
18660         (RCX_LP): Likewise.
18661         (RDI_LP): Likewise.
18662         (RSI_LP): Likewise.
18663         (RSP_LP): Likewise.
18664         (R8_LP): Likewise.
18665         (R9_LP): Likewise.
18666         (R10_LP): Likewise.
18667         (R10_LP): Likewise.
18668         (R11_LP): Likewise.
18669         (R12_LP): Likewise.
18670         (R13_LP): Likewise.
18671         (R14_LP): Likewise.
18672         (R15_LP): Likewise.
18673
18674 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18675
18676         * sysdeps/x86_64/x32/dl-machine.h: New file.
18677
18678 2012-05-14  Andreas Jaeger  <aj@suse.de>
18679
18680         * manual/Makefile (subdir): Remove export of subdir.
18681         (all): Remove target.
18682         (.PHONY): Remove all from list.
18683         (mkinstalldirs): Remove.
18684         (.PHONY): Remove installdirs from list.
18685         ($(inst_infodir)/libc.info): Use make-target-directory.
18686         (installdirs): Remove.
18687         (subdir_%): Remove.
18688         (glibc-targets): Remove.
18689         (lib): Remove.
18690         (stubs): Remove.
18691         ($(objpfx)stubs ../po/manual.pot): Remove.
18692         ($(objpfx)stamp%): Remove.
18693         (make-target-directory): Remove.
18694         (subdir_install): Remove.
18695         (routines): Remove.
18696         (aux): Remove.
18697         (sources): Remove.
18698         (objects): Remove.
18699         (headers): Remove.
18700
18701         [BZ #13750]
18702         * manual/.gitignore: Remove, it's not needed anymore.
18703         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
18704         all files in it.
18705         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
18706         directory.
18707         (texis): Renamed to $(objpfx)texis.
18708         (texis-path): New, contains path to generated files.
18709         (chapters.%): Use texis-path for complete path, add extra argument
18710         libc-texinfo.sh.
18711         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
18712         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
18713         (summary,texi, stamp-summary): Use complete path of
18714         files. Generate files in build dir.
18715         (dir-add.texi): Build in build dir.
18716         (libm-err.texi,stamp-libm-err): Likewise.
18717         (version.texi, stamp-version): Likewise.
18718         (.%c.texi): Likewise.
18719         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
18720         (mostlyclean): Remove target.
18721         (realclean): Remove target.
18722         (generated): Add new variable with contents from mostlyclean and
18723         realclean, remove entries duplicated in common-mostlyclean, add
18724         stamp-libm-err and stamp-version.
18725         (generated-dirs): Add libc directory.
18726         ($(inst_infodir)/libc.info): Install files from build dir.
18727
18728         * manual/install.texi (Configuring and compiling): Adjust since
18729         the info files are not part of the tar ball anymore.
18730
18731 2012-05-14  Andreas Jaeger  <aj@suse.de>
18732
18733         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
18734         variable.
18735
18736 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
18737
18738         [BZ #13717]
18739         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18740         to 2.2.0 where earlier.
18741         * sysdeps/unix/sysv/linux/configure: Regenerated.
18742         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
18743         Remove conditional code.
18744         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
18745         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
18746         Remove conditional code.
18747         [!__NR_lchown]: Likewise.
18748         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
18749         [__NR_lchown]: Likewise.
18750         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
18751         comment referencing __ASSUME_LCHOWN_SYSCALL.
18752         * sysdeps/unix/sysv/linux/i386/sigaction.c
18753         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18754         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18755         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
18756         Remove conditional code.
18757         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
18758         (__protocol_available): Remove #if 0 code.
18759         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
18760         conditional code.
18761         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
18762         * sysdeps/unix/sysv/linux/kernel-features.h
18763         (__ASSUME_GETCWD_SYSCALL): Don't define.
18764         (__ASSUME_REALTIME_SIGNALS): Likewise.
18765         (__ASSUME_PREAD_SYSCALL): Likewise.
18766         (__ASSUME_PWRITE_SYSCALL): Likewise.
18767         (__ASSUME_POLL_SYSCALL): Likewise.
18768         (__ASSUME_LCHOWN_SYSCALL): Likewise.
18769         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
18770         non-SPARC.
18771         (__ASSUME_SIOCGIFNAME): Don't define.
18772         (__ASSUME_MSG_NOSIGNAL): Likewise.
18773         (__ASSUME_SENDFILE): Define unconditionally.
18774         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
18775         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
18776         conditional code.
18777         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
18778         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
18779         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
18780         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
18781         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
18782         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
18783         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
18784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
18785         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18786         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
18788         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18789         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
18791         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18792         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
18794         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18795         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
18797         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18798         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
18800         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18801         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
18803         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18804         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
18806         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18807         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18808         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
18809         Remove conditional code.
18810         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18811         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
18812         Remove conditional code.
18813         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18814         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
18815         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
18816         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
18817         Remove conditional code.
18818         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18819         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
18820         Remove conditional code.
18821         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18822         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
18823         Remove conditional code.
18824         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18825         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
18826         Remove conditional code.
18827         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18828         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
18829         Remove conditional code.
18830         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18831         * sysdeps/unix/sysv/linux/sh/pwrite64.c
18832         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18833         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18834         * sysdeps/unix/sysv/linux/sigaction.c
18835         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18836         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18837         * sysdeps/unix/sysv/linux/sigpending.c
18838         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18839         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18840         * sysdeps/unix/sysv/linux/sigprocmask.c
18841         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18842         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18843         * sysdeps/unix/sysv/linux/sigsuspend.c
18844         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18845         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18846         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
18847         (__libc_missing_rt_sigs): Remove.
18848         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
18849         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
18850         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
18851         Remove conditional code.
18852         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
18853         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
18854         return 1.
18855         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
18856         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
18857         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
18858         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
18859
18860 2012-05-14  Andreas Jaeger  <aj@suse.de>
18861
18862         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
18863         it's not used in glibc.
18864         (__coshm1): Likewise.
18865         (__acosh1p): Likewise.
18866         (__sgn): Likewise.
18867
18868         * manual/string.texi (Copying and Concatenation): Add missing
18869         variable in concat example.
18870         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
18871
18872 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18873
18874         [BZ #14103]
18875         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
18876         __builtin_clzl with __builtin_clzll.
18877
18878 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18879
18880         [BZ #14104]
18881         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
18882         libc_freeres_ptr.
18883
18884 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18885
18886         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
18887         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
18888         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
18889         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
18890
18891 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
18892
18893         * NEWS: Update ia64 info.
18894
18895 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
18896
18897         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
18898         used as bcopy.
18899
18900 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
18901
18902         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
18903         * sysdeps/unix/syscalls.list (dup3): Likewise.
18904         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
18905         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
18906
18907 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
18908
18909         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
18910         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
18911
18912 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
18913
18914         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
18915         thread pointer.
18916         (TLS_IE): Use mov/add instead of movq/addq to load thread
18917         pointer.
18918         (TLS_GD_PREFIX): New.
18919         (TLS_GD): Use it.
18920
18921 2012-05-11  David S. Miller  <davem@davemloft.net>
18922
18923         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
18924         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
18925         (_FPU_SETCW): Likewise.
18926
18927 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18928
18929         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
18930         is 32-byte aligned.
18931
18932 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
18933
18934         [BZ #11837]
18935         * iconvdata/gb18030.c: Update tables.
18936         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
18937         characters specially.
18938         (BODY for TO_LOOP): Add encoding of missing ranges.
18939
18940 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
18941
18942         [BZ #13673]
18943         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
18944         * sysdeps/mach/hurd/dup3.c: Likewise.
18945         * sysdeps/mach/hurd/readlinkat.c: Likewise.
18946         * sysdeps/powerpc/memmove.c:: Likewise.
18947
18948 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18949
18950         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
18951         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
18952
18953 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18954
18955         * elf/elf.h (R_X86_64_RELATIVE64): New.
18956         (R_X86_64_NUM): Updated.
18957         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
18958         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
18959         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
18960         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
18961         tst-quad1pie tst-quad2pie
18962         (modules-names): Add tst-quadmod1 tst-quadmod2.
18963         ($(objpfx)tst-quad1): New dependency.
18964         ($(objpfx)tst-quad2): Likewise.
18965         ($(objpfx)tst-quad1pie): Likewise.
18966         ($(objpfx)tst-quad2pie): Likewise.
18967         * sysdeps/x86_64/tst-quad1.c: New file.
18968         * sysdeps/x86_64/tst-quad1pie.c: New file.
18969         * sysdeps/x86_64/tst-quad2.c: Likewise.
18970         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
18971         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
18972         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
18973         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
18974         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
18975
18976 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18977
18978         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
18979         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
18980         * streams/stropts.h (t_scalar_t): Define type.
18981
18982         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
18983         (_PATH_PRESERVE): Set to "/var/lib".
18984         (_PATH_RWHODIR): Set to "/var/spool/rwho".
18985
18986         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
18987         instead of int.
18988
18989         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
18990         if __dir_mkfile succeeded.
18991
18992         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
18993         checking for _hurd_dtablesize.  Unlock it right after having
18994         finished _hurd_dtable allocation.
18995
18996 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18997
18998         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
18999         * sysdeps/mach/hurd/configure: Regenerated.
19000         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
19001         special-casing to...
19002         * sysdeps/gnu/configure.in: ... this new file.
19003         * sysdeps/unix/sysv/linux/configure: Regenerated.
19004         * sysdeps/gnu/configure: New generated file.
19005
19006         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
19007         for Linux: use nsec instead of usec, as well as:
19008         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
19009         members of type struct timespec.
19010         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
19011         New macros.
19012         (struct stat64): Likewise.
19013         (_STATBUF_ST_NSEC): New macro.
19014         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
19015
19016         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
19017         __strtoul_internal rather than strtoul.
19018
19019 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19020
19021         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
19022         and reject them.
19023
19024 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19025
19026         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
19027         which preserves existing values.
19028         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
19029
19030 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19031
19032         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
19033         TIMEOUT values.  Return EINVAL for NFDS values either negative or
19034         greater than FD_SETSIZE.
19035
19036 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19037
19038         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
19039         allocated, call __vm_protect to finish enabling the existing space, and
19040         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
19041         allocate the remainder.
19042
19043 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19044
19045         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
19046         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
19047
19048 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19049
19050         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
19051         sysdeps/mach/hurd/readlink.c.
19052
19053         * posix/tst-sysconf.c (posix_options): Only use
19054         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
19055         _POSIX_SYNCHRONIZED_IO when they are defined
19056         * sysdeps/mach/hurd/bits/posix_opt.h:
19057         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
19058         (_XOPEN_REALTIME): Undefine macro.
19059         (_XOPEN_REALTIME_THREADS): Undefine macro.
19060         (_XOPEN_SHM): Undefine macro.
19061         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
19062         macro to -1.
19063         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
19064         macro to -1.
19065         (_POSIX_ASYNC_IO): Undefine macro.
19066         (_POSIX_PRIORITIZED_IO): Undefine macro.
19067         (_POSIX_SPIN_LOCKS): Define macro to -1.
19068
19069         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
19070         SA_NODEFER, SA_RESETHAND.
19071         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
19072         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
19073         F_DUPFD_CLOEXEC.
19074
19075 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19076
19077         * elf/Makefile (pldd-modules): Define unconditionally.
19078
19079 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19080
19081         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
19082
19083 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19084
19085         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
19086         Return ENOENT when name is empty.
19087         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
19088
19089 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19090
19091         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
19092
19093         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
19094
19095 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19096
19097         Fix mlock in all cases except non-readable pages.
19098         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
19099         instead of VM_PROT_ALL as parameter to __vm_wire function.
19100
19101         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
19102         (__mkdir): When path is `/', just fail with EEXIST.
19103         * sysdeps/mach/hurd/mkdirat.c: Likewise.
19104
19105 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19106
19107         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
19108         <sys/uio.h> (for writev).
19109         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
19110         and <sys/param.h> (for MIN).
19111
19112 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19113
19114         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
19115         REQUESTED_TIME.  Properly set the remaining time and return EINTR
19116         if interrupted.
19117
19118 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19119
19120         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
19121         Depend on against $(link-rpcuserlibs).
19122
19123 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19124
19125         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
19126         (__libc_stack_end): Do not use attribute_relro.
19127         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
19128         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
19129         to libthread-provided value.
19130         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
19131         attribute_relro.
19132
19133 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19134
19135         [BZ #3748]
19136         * bits/libc-lock.h (__libc_once_get): New macro.
19137         * sysdeps/mach/bits/libc-lock.h: Likewise.
19138         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
19139         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
19140         instead of using implementation details.
19141
19142         * libio/fileops.c: Unconditionally include <kernel-features.h>.
19143         * libio/freopen.c: Likewise.
19144         * libio/freopen64.c: Likewise.
19145         * misc/syslog.c: Likewise.
19146         * nscd/connections.c: Likewise.
19147         * nscd/netgroupcache.c: Likewise.
19148         * sysdeps/posix/getcwd.c: Likewise.
19149
19150 2012-05-10  Roland McGrath  <roland@hack.frob.com>
19151
19152         * math/w_ilogbf.c: Add #include <limits.h>.
19153
19154 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19155
19156         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
19157         path instead of returning without unlocking.
19158
19159         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
19160         immediate-write ioctls.
19161         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
19162
19163 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19164
19165         * sysdeps/mach/hurd/i386/init-first.c (init): Use
19166         __builtin_frame_address instead of making assumptions about the
19167         location of the return address relative to DATA.  Force early load of
19168         the return address.
19169         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
19170         __builtin_frame_address.
19171
19172         dup3 for GNU Hurd.
19173         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
19174         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
19175         implement dup3 and do some further code clean-ups.
19176         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
19177         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
19178
19179 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19180
19181         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
19182
19183         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
19184         HURD_CRITICAL_END around holding _hurd_dtable_lock.
19185         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
19186         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
19187         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
19188         d->port.lock.
19189
19190         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
19191         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
19192         when handler == SIG_ERR, not when handler != SIG_ERR.
19193
19194 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19195
19196         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
19197         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
19198         definitions.
19199
19200         accept4 for GNU Hurd.
19201         * include/sys/socket.h (__libc_accept4): New prototype.
19202         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
19203         to implement __libc_accept4.
19204         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
19205         __libc_accept4.
19206         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
19207
19208         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
19209         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
19210         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
19211         signal-defines.sym.
19212
19213 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19214
19215         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
19216
19217 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19218
19219         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
19220         assertion on O_CLOEXEC flag.
19221         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
19222         * hurd/intern-fd.c: Likewise.
19223         * hurd/port2fd.c: Likewise.
19224
19225 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19226
19227         [BZ #3906]
19228         * bits/in.h (IPV6_PKTINFO): Define new macro.
19229         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
19230
19231 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19232
19233         [BZ #13954]
19234         [BZ #13955]
19235         [BZ #13956]
19236         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
19237         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
19238         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
19239         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
19240         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
19241         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
19242         * math/libm-test.inc (logb_test) : Additional logb tests.
19243
19244 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
19245             Andreas Jaeger  <aj@suse.de>
19246
19247         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
19248         * configure: Regenerated.
19249         * config.h.in (LINK_OBSOLETE_RPC): New macro.
19250         * config.make.in (link-obsolete-rpc): New substituted variable.
19251         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
19252         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
19253         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
19254         (shared-only-routines): Don't set it under [link-obsolete-rpc],
19255         so that libc.a contains the symbols.
19256         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
19257         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
19258         * sunrpc/auth_none.c: Likewise.
19259         * sunrpc/auth_unix.c: Likewise.
19260         * sunrpc/authdes_prot.c: Likewise.
19261         * sunrpc/authuxprot.c: Likewise.
19262         * sunrpc/clnt_gen.c: Likewise.
19263         * sunrpc/clnt_perr.c: Likewise.
19264         * sunrpc/clnt_raw.c: Likewise.
19265         * sunrpc/clnt_simp.c: Likewise.
19266         * sunrpc/clnt_tcp.c: Likewise.
19267         * sunrpc/clnt_udp.c: Likewise.
19268         * sunrpc/clnt_unix.c: Likewise.
19269         * sunrpc/des_crypt.c: Likewise.
19270         * sunrpc/des_soft.c: Likewise.
19271         * sunrpc/get_myaddr.c: Likewise.
19272         * sunrpc/key_call.c: Likewise.
19273         * sunrpc/key_prot.c: Likewise.
19274         * sunrpc/netname.c: Likewise.
19275         * sunrpc/pm_getmaps.c: Likewise.
19276         * sunrpc/pm_getport.c: Likewise.
19277         * sunrpc/pmap_clnt.c: Likewise.
19278         * sunrpc/pmap_prot.c: Likewise.
19279         * sunrpc/pmap_prot2.c: Likewise.
19280         * sunrpc/pmap_rmt.c: Likewise.
19281         * sunrpc/publickey.c: Likewise.
19282         * sunrpc/rpc_cmsg.c: Likewise.
19283         * sunrpc/rpc_common.c: Likewise.
19284         * sunrpc/rpc_dtable.c: Likewise.
19285         * sunrpc/rpc_prot.c: Likewise.
19286         * sunrpc/rpc_thread.c: Likewise.
19287         * sunrpc/rtime.c: Likewise.
19288         * sunrpc/svc.c: Likewise.
19289         * sunrpc/svc_auth.c: Likewise.
19290         * sunrpc/svc_raw.c: Likewise.
19291         * sunrpc/svc_run.c: Likewise.
19292         * sunrpc/svc_tcp.c: Likewise.
19293         * sunrpc/svc_udp.c: Likewise.
19294         * sunrpc/svc_unix.c: Likewise.
19295         * sunrpc/svcauth_des.c: Likewise.
19296         * sunrpc/xcrypt.c: Likewise.
19297         * sunrpc/xdr.c: Likewise.
19298         * sunrpc/xdr_array.c: Likewise.
19299         * sunrpc/xdr_float.c: Likewise.
19300         * sunrpc/xdr_intXX_t.c: Likewise.
19301         * sunrpc/xdr_mem.c: Likewise.
19302         * sunrpc/xdr_rec.c: Likewise.
19303         * sunrpc/xdr_ref.c: Likewise.
19304         * sunrpc/xdr_sizeof.c: Likewise.
19305         * sunrpc/xdr_stdio.c: Likewise.
19306
19307 2012-05-10  Roland McGrath  <roland@hack.frob.com>
19308
19309         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
19310         change.  Update copyright years.
19311
19312 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
19313
19314         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
19315
19316 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
19317             Joseph Myers  <joseph@codesourcery.com>
19318             Paul Pluzhnikov  <ppluzhnikov@google.com>
19319
19320         [BZ #14012]
19321         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
19322         requiring rpcgen.
19323         [cross-compiling] (extra-libs): Likewise.
19324         [cross-compiling] (extra-libs-others): Likewise.
19325         [cross-compiling] (librpcsvc-routines): Likewise.
19326         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
19327         [cross-compiling] (omit-deps): Likewise.
19328         (sunrpc-CPPFLAGS): New variable.
19329         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
19330         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
19331         (cross-rpcgen-objs): New variable.
19332         (extra-objs): Append $(cross-rpcgen-objs).
19333         ($(cross-rpcgen-objs)): New rule.
19334         ($(objpfx)cross-rpcgen): Likewise.
19335         (rpcgen-cmd): Define to use $(built-program-file).  Expand
19336         comment.
19337         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
19338         ($(objpfx)x%.stmp): Likewise.
19339         * sunrpc/proto.h [IS_IN_build] (_): Define.
19340         [IS_IN_build] (_libc_intl_domainname): Likewise.
19341
19342 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
19343
19344         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
19345         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
19346         and R_X86_64_TPOFF64.
19347
19348 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
19349
19350         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
19351         sysdeps/unix/sysv/syscalls.list.
19352         (stime): Likewise.
19353         (utime): Likewise.
19354         * sysdeps/unix/sysv/syscalls.list: Remove file.
19355
19356 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         [BZ #3440]
19359         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
19360         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
19361         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
19362         (__LC_IDENTIFICATION): Make these macros useful in #if
19363         expressions, as required by C99.
19364
19365 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
19366
19367         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
19368         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
19369         after this.
19370
19371 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
19372
19373         * stdlib/longlong.h: Updated from GCC.
19374
19375 2012-05-09  Andreas Jaeger  <aj@suse.de>
19376
19377         * nscd/nscd.c (run_modes): Make named enum, reorder so that
19378         default is first entry.
19379         (run_mode): Set type.
19380         (main): Remove informal message about syslog.
19381         (options): Fix typo.
19382
19383         [BZ #14053]
19384         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
19385         to asm.
19386         (lrint): Likewise.
19387         (llrintf): Likewise.
19388         (llrint): Likewise.
19389         (rint): Likewise.
19390         (rintf): Likewise.
19391         (nearbyint): Likewise.
19392         (nearbyintf): Likewise.
19393
19394 2012-05-09  Andreas Jaeger  <aj@suse.de>
19395             Pedro Alves  <palves@redhat.com>
19396
19397         * nscd/nscd.c (run_mode): Use enum.
19398         (main): Cleanup coding style issue.
19399
19400 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
19401             Andreas Jaeger  <aj@suse.de>
19402
19403         * nscd/nscd.c (go_background): Replaced with...
19404         (run_mode): ... this.
19405         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
19406         (options): Add -F --foreground.
19407         (main): Implement it.
19408         (parse_opt): Parse it.
19409
19410 2012-05-09  Andreas Jaeger  <aj@suse.de>
19411
19412         [BZ #14083]
19413         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
19414         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
19415         -Wconversion warning.
19416         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
19417         Likewise.
19418
19419 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
19420
19421         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
19422         == 0.
19423         (LC_ALL): Use macro-int-constant.
19424         (LC_COLLATE): Likewise.
19425         (LC_CTYPE): Likewise.
19426         (LC_MESSAGES): Likewise.
19427         (LC_MONETARY): Likewise.
19428         (LC_NUMERIC): Likewise.
19429         (LC_TIME): Likewise.
19430         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
19431         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
19432         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19433         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
19434         Specify type.
19435         [C99-based standards] (float_t): Expect type.
19436         [C99-based standards] (double_t): Expect type.
19437         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
19438         type.
19439         [C99-based standards] (HUGE_VALL): Likewise.
19440         [C99-based standards] (INFINITY): Likewise.
19441         [C99-based standards] (NAN): Likewise.
19442         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
19443         [C99-based standards] (FP_NAN): Likewise.
19444         [C99-based standards] (FP_NORMAL): Likewise.
19445         [C99-based standards] (FP_SUBNORMAL): Likewise.
19446         [C99-based standards] (FP_ZERO): Likewise.
19447         [C99-based standards] (FP_FAST_FMA): Use
19448         optional-macro-int-constant.  Specify type.  Require == 1.
19449         [C99-based standards] (FP_FAST_FMAF): Likewise.
19450         [C99-based standards] (FP_FAST_FMAL): Likewise.
19451         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
19452         [C99-based standards] (FP_ILOGBNAN): Likewise.
19453         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
19454         Specify type.
19455         [C99-based standards] (MATH_ERREXCEPT): Likewise.
19456         [C99-based standards] (math_errhandling): Specify type.
19457         [ISO99 || ISO11] (signgam): Do not allow.
19458         [non-C99-based standards] (copysignf): Do not allow.
19459         [non-C99-based standards] (exp2f): Likewise.
19460         [non-C99-based standards] (log2f): Likewise.
19461         [non-C99-based standards] (modff): Allow.
19462         [non-C99-based standards] (erff): Do not allow.
19463         [non-C99-based standards] (erfcf): Likewise.
19464         [non-C99-based standards] (gammaf): Likewise.
19465         [non-C99-based standards] (hypotf): Likewise.
19466         [non-C99-based standards] (j0f): Likewise.
19467         [non-C99-based standards] (j1f): Likewise.
19468         [non-C99-based standards] (jnf): Likewise.
19469         [non-C99-based standards] (lgammaf): Likewise.
19470         [non-C99-based standards] (tgammaf): Likewise.
19471         [non-C99-based standards] (y0f): Likewise.
19472         [non-C99-based standards] (y1f): Likewise.
19473         [non-C99-based standards] (ynf): Likewise.
19474         [non-C99-based standards] (isnanf): Likewise.
19475         [non-C99-based standards] (acoshf): Likewise.
19476         [non-C99-based standards] (asinhf): Likewise.
19477         [non-C99-based standards] (atanhf): Likewise.
19478         [non-C99-based standards] (cbrtf): Likewise.
19479         [non-C99-based standards] (expm1f): Likewise.
19480         [non-C99-based standards] (ilogbf): Likewise.
19481         [non-C99-based standards] (log1pf): Likewise.
19482         [non-C99-based standards] (logbf): Likewise.
19483         [non-C99-based standards] (nextafterf): Likewise.
19484         [non-C99-based standards] (remainderf): Likewise.
19485         [non-C99-based standards] (rintf): Likewise.
19486         [non-C99-based standards] (scalbf): Likewise.
19487         [non-C99-based standards] (copysignl): Likewise.
19488         [non-C99-based standards] (exp2l): Likewise.
19489         [non-C99-based standards] (log2l): Likewise.
19490         [non-C99-based standards] (modfl): Allow.
19491         [non-C99-based standards] (erfl): Do not allow.
19492         [non-C99-based standards] (erfcl): Likewise.
19493         [non-C99-based standards] (gammal): Likewise.
19494         [non-C99-based standards] (hypotl): Likewise.
19495         [non-C99-based standards] (j0l): Likewise.
19496         [non-C99-based standards] (j1l): Likewise.
19497         [non-C99-based standards] (jnl): Likewise.
19498         [non-C99-based standards] (lgammal): Likewise.
19499         [non-C99-based standards] (tgammal): Likewise.
19500         [non-C99-based standards] (y0l): Likewise.
19501         [non-C99-based standards] (y1l): Likewise.
19502         [non-C99-based standards] (ynl): Likewise.
19503         [non-C99-based standards] (isnanl): Likewise.
19504         [non-C99-based standards] (acoshl): Likewise.
19505         [non-C99-based standards] (asinhl): Likewise.
19506         [non-C99-based standards] (atanhl): Likewise.
19507         [non-C99-based standards] (cbrtl): Likewise.
19508         [non-C99-based standards] (expm1l): Likewise.
19509         [non-C99-based standards] (ilogbl): Likewise.
19510         [non-C99-based standards] (log1pl): Likewise.
19511         [non-C99-based standards] (logbl): Likewise.
19512         [non-C99-based standards] (nextafterl): Likewise.
19513         [non-C99-based standards] (remainderl): Likewise.
19514         [non-C99-based standards] (rintl): Likewise.
19515         [non-C99-based standards] (scalbl): Likewise.
19516         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19517         [non-C99-based standards] (FP_*): Do not allow.
19518         [C99-based standards] (FP_*): Change to
19519         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
19520         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
19521         allow.
19522         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
19523         (SIG_ERR): Likewise.
19524         [X/Open-based standards] (SIG_HOLD): Likewise.
19525         (SIG_IGN): Likewise.
19526         (SIGABRT): Use macro-int-constant.  Specify type.  Require
19527         positive value.
19528         (SIGFPE): Likewise.
19529         (SIGILL): Likewise.
19530         (SIGINT): Likewise.
19531         (SIGSEGV): Likewise.
19532         (SIGTER): Likewise.
19533         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
19534         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
19535         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
19536         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
19537         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
19538         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
19539         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
19540         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
19541         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
19542         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
19543         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
19544         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
19545         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
19546         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
19547         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
19548         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
19549         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
19550         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
19551         [X/Open-based standards] (SIGTRAP): Likewise.
19552         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
19553         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
19554         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
19555         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
19556         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
19557         allow.
19558
19559 2012-05-08  Ian Wienand  <ianw@vmware.com>
19560
19561         [BZ #14080]
19562         * time/tzset.c (__tzset_parse_tz): Update default rules for
19563         daylight time changes in the Energy Policy Act of 2005.
19564
19565 2012-05-09  Andreas Jaeger  <aj@suse.de>
19566
19567         [BZ #13983]
19568         * elf/ldconfig.c (parse_conf): Change string to make clear that
19569         ldconfig only issued a warning if ld.so.conf does not exist.
19570
19571 2012-05-08  David S. Miller  <davem@davemloft.net>
19572
19573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
19574         movxtod instead of popping the value on the stack.
19575
19576         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19577
19578 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
19579
19580         * config.h.in: Add HAVE_ARM_PCS_VFP.
19581
19582 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
19583
19584         [BZ #13979]
19585         * include/features.h: Warn if user requests __FORTIFY_SOURCE
19586         checking but the checks are disabled for any reason.
19587
19588 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
19589
19590         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
19591         and ELF64_R_TYPE with ELFW(R_TYPE).
19592
19593 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
19594
19595         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
19596         (ulimit): Likewise.
19597
19598         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
19599         (settimeofday): Likewise.
19600
19601 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
19602
19603         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
19604         a struct th_u2 inside the union, and move tu_block/tu_code into
19605         a new th_u3 union of tu_block/tu_code inside of that.  Move
19606         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
19607         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
19608         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
19609         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
19610         (th_stuff): Change to th_u1.tu_stuff.
19611         (th_data): Define.
19612         (th_msg): Change to th_u1.th_u2.tu_data.
19613
19614 2012-05-07  David S. Miller  <davem@davemloft.net>
19615
19616         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19617
19618         [BZ #14074]
19619         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
19620         (SETUP_PIC_REG): Use it.
19621         (SETUP_PIC_REG_LEAF): Use it.
19622
19623 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
19624
19625         [BZ #13885]
19626         [BZ #13923]
19627         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19628         USE_AS_EXPM1L.
19629         (EXPL_FINITE): Likewise.
19630         (FLDLOG): Likewise.
19631         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
19632         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
19633         e_expl.S.
19634         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19635         USE_AS_EXPM1L.
19636         (EXPL_FINITE): Likewise.
19637         (FLDLOG): Likewise.
19638         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
19639         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
19640         e_expl.S.
19641         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
19642         test of -max_value argument for long double.
19643         * sysdeps/i386/fpu/libm-test-ulps: Update.
19644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19645
19646 2012-05-06  David S. Miller  <davem@davemloft.net>
19647
19648         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
19649         quad soft-float symbols whose references which are compiler
19650         generated.
19651         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
19652
19653 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
19654
19655         [BZ #13884]
19656         [BZ #13914]
19657         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19658         USE_AS_EXP10L.
19659         (EXPL_FINITE): Likewise.
19660         (FLDLOG): Likewise.
19661         (c0): Likewise.
19662         (c1): Likewise.
19663         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
19664         Adjust comments for base varying.
19665         (__expl_finite): Change alias to EXPL_FINITE.
19666         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
19667         e_expl.S.
19668         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
19669         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
19670         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
19671         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
19672         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19673         USE_AS_EXP10L.
19674         (EXPL_FINITE): Likewise.
19675         (FLDLOG): Likewise.
19676         (c0): Likewise.
19677         (c1): Likewise.
19678         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
19679         Adjust comments for base varying.
19680         (__expl_finite): Change alias to EXPL_FINITE.
19681         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
19682         tests for bugs.
19683         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19684
19685         [BZ #14064]
19686         * math/libm-test.inc (check_float_internal): Correct ulp
19687         calculation for subnormal expected results.
19688
19689 2012-05-06  Andreas Jaeger  <aj@suse.de>
19690
19691         * Makeconfig (+math-flags): New, set to -frounding-math.
19692         (+cflags): Add +math-flags so that all of glibc gets compiled with
19693         it.
19694
19695         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
19696
19697 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
19698
19699         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
19700         Disable one test.
19701
19702         [BZ #13787]
19703         [BZ #13922]
19704         [BZ #14036]
19705         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
19706         (__ieee754_expl): Allow for and saturate large arguments.
19707         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
19708         (u_threshold): Likewise.
19709         (__exp): Call __ieee754_exp before checking for overflow and
19710         underflow.
19711         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
19712         (u_threshold): Likewise.
19713         (__expf): Call __ieee754_expf before checking for overflow and
19714         underflow.
19715         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
19716         (u_threshold): Likewise.
19717         (__expl): Call __ieee754_expl before checking for overflow and
19718         underflow.
19719         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
19720         (__ieee754_expl): Allow for and saturate large arguments.
19721         * math/libm-test.inc (exp_test): Add another test.  Do not allow
19722         missing overflow exception on overflow.
19723         (expm1_test): Do not allow missing overflow exception on overflow.
19724
19725         * sysdeps/i386/fpu/e_expl.c: Move to ...
19726         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
19727         rather than using inline asm.
19728         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
19729         * sysdeps/x86_64/fpu/e_expl.S: Copy from
19730         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
19731
19732         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
19733         (nice): Likewise.
19734         (poll): Likewise.
19735         (signal): Likewise.
19736         (time): Likewise.
19737         (times): Likewise.
19738
19739 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
19740
19741         * sysdeps/unix/syscalls.list (adjtime): Add entry from
19742         sysdeps/unix/common/syscalls.list.
19743         (fchmod): Likewise.
19744         (fchown): Likewise.
19745         (ftruncate): Likewise.
19746         (getrusage): Likewise.
19747         (gettimeofday): Likewise.
19748         (setpgid): Likewise.
19749         (setregid): Likewise.
19750         (setreuid): Likewise.
19751         (sigaction): Likewise.
19752         (truncate): Likewise.
19753         (vhangup): Likewise.
19754         * sysdeps/unix/common/syscalls.list: Remove file.
19755         * sysdeps/unix/bsd/Implies: Don't include unix/common.
19756         * sysdeps/unix/sysv/linux/Implies: Likewise.
19757
19758 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
19759
19760         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
19761         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
19762         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
19763         Moved to ...
19764         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
19765         Here.
19766         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
19767         to ...
19768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
19769         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
19770         to ...
19771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
19772         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
19773         to ...
19774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
19775         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
19776         to ...
19777         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
19778         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
19779         to ...
19780         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
19781         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
19782         to ...
19783         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
19784         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
19785         to ...
19786         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
19787         Here.
19788         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
19789         to ...
19790         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
19791         Here.
19792         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
19793         to ...
19794         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
19795         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
19796         Moved to ...
19797         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
19798         Here.
19799         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
19800         to ...
19801         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
19802
19803 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
19804
19805         * sysdeps/unix/common/bits/dirent.h: Remove file.
19806         * sysdeps/unix/common/bits/fcntl.h: Likewise.
19807
19808         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
19809         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
19810         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
19811         * sysdeps/unix/bsd/isatty.c: Likewise.
19812         * sysdeps/unix/bsd/tcdrain.c: Likewise.
19813         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
19814         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
19815
19816 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19817
19818         [BZ #13563]
19819         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
19820         long double comparison inaccuracies.
19821         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19822         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19823
19824 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
19825
19826         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
19827         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
19828
19829 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
19830
19831         [BZ #14049]
19832         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
19833         nonzero digits before rounding a hex value.
19834         * stdlib/tst-strtod.c (tests): Add another test.
19835
19836 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19837
19838         * sysdeps/s390/fpu/libm-test-ulps: Update.
19839
19840 2012-05-03  Andreas Jaeger  <aj@suse.de>
19841
19842         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
19843         does not get optimized out.
19844         (malloc_opt_barrier): New.
19845
19846 2012-05-03  Andreas Jaeger  <aj@suse.de>
19847             Roland McGrath  <roland@hack.frob.com>
19848
19849         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
19850         intermediate file deletion.
19851         (generated): Add .symlist files.
19852
19853 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
19854
19855         [BZ #13775]
19856         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
19857         Redirect under this condition.
19858         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
19859         [__USE_GNU] (__dprintf_chk): Not under this condition.
19860         [__USE_GNU] (__vdprintf_chk): Likewise.
19861         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
19862         under this condition.
19863         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
19864         [__USE_XOPEN2K8] (dprintf): Define under this condition.
19865         [__USE_XOPEN2K8] (vdprintf): Likewise.
19866         [__USE_GNU] (__dprintf_chk): Not under this condition.
19867         [__USE_GNU] (__vdprintf_chk): Likewise.
19868         [__USE_GNU] (dprintf): Likewise.
19869         [__USE_GNU] (vdprintf): Likewise.
19870
19871 2012-05-03  Roland McGrath  <roland@hack.frob.com>
19872
19873         * elf/Makefile (common-generated): Set this instead of generated for
19874         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
19875         $(all-built-dso)-derived lists.
19876
19877 2012-05-03  Andreas Jaeger  <aj@suse.de>
19878
19879         * sysdeps/i386/fpu/libm-test-ulps: Update.
19880
19881         * FAQ: Removed.
19882         * FAQ.in: Likewise.
19883         * scripts/gen-FAQ.pl: Likewise.
19884         * manual/install.texi (Installation): Point to online location of
19885         FAQ.
19886         * Makefile (files-for-dist): Remove FAQ.
19887         (FAQ): Remove.
19888
19889 2012-05-02  Allan McRae  <allan@archlinux.org>
19890
19891         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
19892         (LDFLAGS-reldepmod5.so): Likewise.
19893         (LDFLAGS-reldep6mod1.so): Likewise.
19894         (LDFLAGS-reldep6mod4.so): Likewise.
19895         (LDFLAGS-reldep8mod3.so): Likewise.
19896         (LDFLAGS-unload4mod1.so): Likewise.
19897         (LDFLAGS-unload4mod2.so): Likewise.
19898         (LDFLAGS-tst-initorder): Likewise.
19899         (LDFLAGS-tst-initordera2.so): Likewise.
19900         (LDFLAGS-tst-initordera3.so): Likewise.
19901         (LDFLAGS-tst-initordera4.so): Likewise.
19902         (LDFLAGS-tst-initorderb2.so): Likewise.
19903         (LDFLAGS-noload): Likewise.
19904         (LDFLAGS-next): Likewise.
19905         (LDFLAGS-order2mod1.so): Likewise.
19906         (LDFLAGS-order2mod2.so): Likewise.
19907         (LDFLAGS-tst-initorder2): Likewise.
19908         (LDFLAGS-tst-initorder2a.so): Likewise.
19909         (LDFLAGS-tst-initorder2b.so): Likewise.
19910         (LDFLAGS-tst-initorder2c.so): Likewise.
19911         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
19912
19913 2012-05-02  David S. Miller  <davem@davemloft.net>
19914
19915         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19916
19917 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19918
19919         [BZ #14055]
19920         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
19921
19922 2012-05-02  Andreas Jaeger  <aj@suse.de>
19923
19924         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
19925         since we manipulate rounding mode.
19926         (CPPFLAGS-test-idouble.c): Likewise.
19927         (CPPFLAGS-test-ifloat.c): Likewise.
19928         (CFLAGS-test-ldouble.c): Likewise.
19929         (CFLAGS-test-double.c): Likewise.
19930         (CFLAGS-test-float.c): Likewise.
19931         (CFLAGS-test-misc.c): Likewise.
19932         (CFLAGS-test-test-fenv.c): Likewise.
19933
19934 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19935
19936         [BZ #2550]
19937         [BZ #2570]
19938         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
19939         comparisons to determine direction to adjust input.
19940
19941 2012-05-01  Roland McGrath  <roland@hack.frob.com>
19942
19943         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
19944         output to the target.
19945
19946         * scripts/localplt.awk: New file.
19947         * elf/Makefile ($(objpfx)check-localplt): Target removed.
19948         (check-localplt-CFLAGS): Variable removed.
19949         ($(all-built-dso:=.jmprel)): New static pattern rule.
19950         (generated): Add those targets.
19951         (localplt-built-dso): New variable.
19952         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
19953
19954         * elf/check-localplt.c: File removed.
19955
19956         * scripts/check-execstack.awk: New file.
19957         * elf/Makefile ($(objpfx)check-execstack): Target removed.
19958         (check-execstack-CFLAGS): Variable removed.
19959         ($(objpfx)check-execstack.h): Target removed.
19960         ($(objpfx)execstack-default): New target.
19961         (generated): Add that instead of check-execstack.h.
19962         ($(all-built-dso:=.phdr)): New static pattern rule.
19963         (generated): Add those targets.
19964         * elf/check-execstack.c: File removed.
19965
19966         * scripts/check-textrel.awk: New file.
19967         * elf/Makefile ($(objpfx)check-textrel): Target removed.
19968         (check-textrel-CFLAGS): Variable removed.
19969         (all-built-dso): Use := to define.o
19970         ($(all-built-dso:=.dyn)): New static pattern rule.
19971         (generated): Add those targets.
19972         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
19973         * config.make.in (READELF): New substituted variable.
19974         * elf/check-textrel.c: File removed.
19975
19976 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
19977
19978         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
19979         allow.
19980         * conform/data/ctype.h-data [C99-based standards] (isblank):
19981         Expect function.
19982         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
19983         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
19984         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19985         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
19986         Specify type.  Require positive value.
19987         (EILSEQ): Likewise.
19988         (ERANGE): Likewise.
19989         [ISO || POSIX] (EILSEQ): Do not expect.
19990         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
19991         Specify type.  Require positive value.
19992         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
19993         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
19994         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
19995         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
19996         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
19997         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
19998         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
19999         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
20000         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
20001         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
20002         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
20003         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
20004         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
20005         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
20006         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
20007         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
20008         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
20009         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
20010         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
20011         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
20012         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
20013         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
20014         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
20015         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
20016         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
20017         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
20018         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
20019         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
20020         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
20021         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
20022         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
20023         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
20024         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
20025         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
20026         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
20027         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
20028         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
20029         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
20030         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
20031         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
20032         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
20033         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
20034         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
20035         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
20036         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
20037         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
20038         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
20039         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
20040         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
20041         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
20042         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
20043         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
20044         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
20045         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
20046         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
20047         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
20048         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
20049         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
20050         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
20051         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
20052         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
20053         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
20054         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
20055         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
20056         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
20057         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
20058         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
20059         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
20060         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
20061         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
20062         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
20063         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
20064         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
20065         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
20066         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
20067         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
20068         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
20069         Require >= 2.
20070         (FLT_ROUNDS): Expect as macro, not constant.
20071         (FLT_MANT_DIG): Use macro-int-constant.
20072         (DBL_MANT_DIG): Likewise.
20073         (LDBL_MANT_DIG): Likewise.
20074         (FLT_DIG): Likewise.
20075         (DBL_DIG): Likewise.
20076         (LDBL_DIG): Likewise.
20077         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
20078         (DBL_MIN_EXP): Likewise.
20079         (LDBL_MIN_EXP): Likewise.
20080         (FLT_MAX_EXP): Use macro-int-constant.
20081         (DBL_MAX_EXP): Likewise.
20082         (LDBL_MAX_EXP): Likewise.
20083         (FLT_MAX_10_EXP): Likewise.
20084         (DBL_MAX_10_EXP): Likewise.
20085         (LDBL_MAX_10_EXP): Likewise.
20086         (FLT_MAX): Use macro-constant.
20087         (DBL_MAX): Likewise.
20088         (LDBL_MAX): Likewise.
20089         (FLT_EPSILON): Use macro-constant.  Give upper bound.
20090         (DBL_EPSILON): Likewise.
20091         (LDBL_EPSILON): Likewise.
20092         (FLT_MIN): Likewise.
20093         (DBL_MIN): Likewise.
20094         (LDBL_MIN): Likewise.
20095         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
20096         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
20097         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
20098         [ISO11] (FLT_HAS_SUBNORM): Likewise.
20099         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
20100         [ISO11] (DBL_DECIMAL_DIG): Likewise.
20101         [ISO11] (FLT_DECIMAL_DIG): Likewise.
20102         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
20103         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
20104         [ISO11] (FLT_TRUE_MIN): Likewise.
20105         [ISO11] (LDBL_TRUE_MIN): Likewise.
20106         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20107         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
20108         (SCHAR_MIN): Use macro-int-constant.  Specify type.
20109         (SCHAR_MAX): Likewise.
20110         (UCHAR_MAX): Likewise.
20111         (CHAR_MIN): Likewise.
20112         (CHAR_MAX): Likewise.
20113         (MB_LEN_MAX): Use macro-int-constant.
20114         (SHRT_MIN): Use macro-int-constant.  Specify type.
20115         (SHRT_MAX): Likewise.
20116         (USHRT_MAX): Likewise.
20117         (INT_MAX): Likewise.
20118         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
20119         bound negative.
20120         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
20121         bound with "U".
20122         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
20123         bound with "L".
20124         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
20125         bound negative.  Suffix upper bound with "L".
20126         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
20127         bound with "UL".
20128         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
20129         Specify type.
20130         [C99-based standards] (LLONG_MAX): Likewise.
20131         [C99-based standards] (ULLONG_MAX): Likewise.
20132         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
20133         == 0.
20134         [ISO11] (max_align_t): Require type.
20135         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20136
20137         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
20138         from $CFLAGS, without defining away __attribute__ calls.
20139         (checknamespace): Use $CFLAGS_namespace.
20140
20141         * conform/conformtest.pl (@keywords): Only include C99 keywords
20142         for standards based on C99 or C11.
20143
20144         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
20145         Disable tests.
20146         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
20147         UNIX98]: Likewise.
20148
20149         * conform/conformtest.pl: Handle "macro-int-constant" and test for
20150         usability of symbols in #if.
20151
20152         * conform/conformtest.pl: If macro or constant types start
20153         "promoted:", expect the symbol to be of the following type
20154         promoted by the integer promotions.
20155
20156         * conform/conformtest.pl: Parse all "constant" and "macro" lines
20157         in one place.  Also handle "macro-constant".
20158
20159         * conform/conformtest.pl: Only accept expected macro values with
20160         "==".  Parse all "macro" lines in one place.
20161         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
20162
20163         * conform/conformtest.pl: Handle braced types on "constant" lines
20164         instead of handling "typed-constant".
20165         * conform/data/signal.h-data: Use "constant" instead of
20166         "typed-constant".
20167
20168         * conform/conformtest.pl: Handle "optional-" at start of lines in
20169         one place rather than duplicating several cases.  Handle each
20170         format of "macro" line with initial "optional-".
20171
20172         * conform/conformtest.pl: Only accept expected constant or
20173         optional-constant values with "==".  Parse all "constant" lines in
20174         one place.  Parse all "optional-constant" lines in one place.
20175         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
20176         * conform/data/fmtmsg.h-data: Likewise.
20177         * conform/data/netinet/in.h-data: Likewise.
20178         * conform/data/tar.h-data: Likewise.
20179         * conform/data/limits.h-data: Use "==" form on "constant" and
20180         "optional-constant" lines.
20181
20182         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
20183         Use -std=c99 for XOPEN2K.
20184         (@knownproblems): Remove.
20185         (newtoken): Don't check %isknown.
20186
20187         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
20188         Do not expect macro.
20189         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
20190         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
20191         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
20192         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
20193         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
20194         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
20195         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
20196         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
20197         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
20198         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
20199         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
20200         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
20201         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
20202         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
20203         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
20204         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
20205         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
20206         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
20207         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
20208         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
20209         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
20210         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
20211         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
20212         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
20213         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
20214         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
20215         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
20216         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
20217         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
20218         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
20219         [XPG3] (acosh): Likewise.
20220         [XPG3] (asinh): Likewise.
20221         [XPG3] (atanh): Likewise.
20222         [XPG3] (cbrt): Likewise.
20223         [XPG3] (expm1): Likewise.
20224         [XPG3] (ilogb): Likewise.
20225         [XPG3] (log1p): Likewise.
20226         [XPG3] (logb): Likewise.
20227         [XPG3] (nextafter): Likewise.
20228         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
20229         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
20230         [XPG3] (remainder): Likewise.
20231         [XPG3] (rint): Likewise.
20232         [XPG3 || XPG4 || UNIX98] (round): Likewise.
20233         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
20234         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
20235         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
20236         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
20237         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
20238         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
20239         [UNIX98 || XOPEN2K] (scalb): Expect.
20240         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
20241         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
20242         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
20243         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
20244         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
20245         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
20246         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
20247         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
20248         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
20249         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
20250         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
20251         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
20252         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
20253         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
20254         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
20255         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
20256         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
20257         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
20258         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
20259         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
20260         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
20261         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
20262         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
20263         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
20264         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
20265         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
20266         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
20267         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
20268         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
20269         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
20270         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
20271         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
20272         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
20273         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
20274         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
20275         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
20276         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
20277         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
20278         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
20279         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
20280         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
20281         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
20282         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
20283         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
20284         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
20285         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
20286         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
20287         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
20288         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
20289         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
20290         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
20291         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
20292         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
20293         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
20294         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
20295         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
20296         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
20297         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
20298         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
20299         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
20300         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
20301         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
20302         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
20303         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
20304         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
20305         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
20306         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
20307         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
20308         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
20309         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
20310         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
20311         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
20312         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
20313         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
20314         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
20315         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
20316         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
20317         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
20318         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
20319         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
20320         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
20321         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
20322         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
20323         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
20324         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
20325         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
20326         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
20327         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
20328         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
20329         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
20330         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
20331         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
20332         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
20333         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
20334         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
20335         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
20336         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
20337         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
20338         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
20339         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
20340         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
20341         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
20342         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
20343         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
20344         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
20345         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
20346         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
20347         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
20348         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
20349         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
20350         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
20351         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
20352         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
20353         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
20354         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
20355         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
20356         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
20357         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
20358         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
20359         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
20360         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
20361         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
20362         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
20363         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
20364         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
20365         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
20366         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
20367         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
20368         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
20369         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
20370         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
20371         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
20372         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
20373         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
20374         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
20375         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
20376         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
20377
20378         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
20379         _XOPEN_SOURCE_EXTENDED for XPG4.
20380
20381         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
20382
20383         * Makeconfig (localtime): Remove variable.
20384         (inst_localtime-file): Likewise.
20385
20386 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
20387
20388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
20389         Update.
20390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20391         Update.
20392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
20393         Update.
20394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
20395         Update.
20396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
20397         Update.
20398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
20399         Update.
20400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20401         Update.
20402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
20403         Update.
20404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
20405         Update.
20406
20407 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
20408
20409         [BZ #2550]
20410         [BZ #2570]
20411         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
20412         comparisons to determine direction to adjust input.
20413         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
20414         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
20415         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
20416         Likewise.
20417         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
20418         Likewise.
20419         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
20420         Likewise.
20421         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
20422         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
20423         Likewise.
20424         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
20425         Likewise.
20426         * math/libm-test.inc (nexttoward_test): Add more tests.
20427
20428 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
20429
20430         [BZ #14040]
20431         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
20432         in version GLIBC_2.1, not GLIBC_2.0.
20433         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
20434         Likewise.
20435
20436 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
20437
20438         [BZ #13942]
20439         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
20440         (1 - x) * (1 + x).
20441         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
20442         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
20443         * math/libm-test.inc (acos_test): Add more tests.
20444         (asin_test): Likewise.
20445         * sysdeps/i386/fpu/libm-test-ulps: Update.
20446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20447
20448         [BZ #14034]
20449         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
20450         of square root.
20451         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
20452         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
20453         * math/libm-test.inc (acos_test_tonearest): New function.
20454         (acos_test_towardzero): Likewise.
20455         (acos_test_downward): Likewise.
20456         (acos_test_upward): Likewise.
20457         (asin_test_tonearest): Likewise.
20458         (asin_test_towardzero): Likewise.
20459         (asin_test_downward): Likewise.
20460         (asin_test_upward): Likewise.
20461         (main): Call the new functions.
20462         * sysdeps/i386/fpu/libm-test-ulps: Update.
20463         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20464
20465         [BZ #13884]
20466         [BZ #13924]
20467         * math/e_exp10.c: Include <float.h>.
20468         (__ieee754_exp10): Handle underflow here rather than multiplying
20469         large negative argument by M_LN10.
20470         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
20471         of __ieee754_expf.
20472         * math/e_exp10l.c: Include <float.h>.
20473         (__ieee754_exp10l): Handle underflow here rather than multiplying
20474         large negative argument by M_LN10l.
20475         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
20476         spurious overflow exception on underflow.
20477
20478 2012-04-29  Marek Polacek  <polacek@redhat.com>
20479
20480         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
20481         (__fortify_function): New macro.
20482         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
20483         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
20484         __extern_always_inline.
20485         * libio/bits/stdio2.h: Likewise.
20486         * libio/bits/stdio.h: Likewise.
20487         * string/string.h: Likewise.
20488         * string/bits/string3.h: Likewise.
20489         * include/stdio.h: Likewise.
20490         * stdlib/bits/stdlib.h: Likewise.
20491         * stdlib/stdlib.h: Likewise.
20492         * rt/bits/mqueue2.h: Likewise.
20493         * rt/mqueue.h: Likewise.
20494         * posix/bits/unistd.h: Likewise.
20495         * posix/unistd.h: Likewise.
20496         * io/bits/poll2.h: Likewise.
20497         * io/bits/fcntl2.h: Likewise.
20498         * io/fcntl.h: Likewise.
20499         * io/sys/poll.h: Likewise.
20500         * misc/bits/syslog.h: Likewise.
20501         * misc/bits/syslog-ldbl.h: Likewise.
20502         * misc/sys/syslog.h: Likewise.
20503         * socket/bits/socket2.h: Likewise.
20504         * socket/sys/socket.h: Likewise.
20505         * debug/tst-chk1.c: Likewise.
20506         * wcsmbs/bits/wchar2.h: Likewise.
20507         * wcsmbs/bits/wchar-ldbl.h: Likewise.
20508         * wcsmbs/wchar.h: Likewise.
20509
20510 2012-04-29  Andreas Jaeger  <aj@suse.de>
20511
20512         * Makerules (tests): Remove enable-check-abi protection.
20513         (check-abi-warn): Remove.
20514         (check-abi-%): Remove check-abi-warn usage.
20515
20516         * configure.in: Remove check-abi configure option.
20517         * configure: Regenerated.
20518         * config.make.in (enable-check-abi): Remove.
20519
20520 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
20521
20522         [BZ #14033]
20523         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
20524         double functions to double *_finite functions.
20525
20526         [BZ #13941]
20527         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
20528         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
20529         LDBL_MIN_EXP.
20530         * stdio-common/Makefile (tests): Add tst-sprintf3.
20531         * stdio-common/tst-sprintf3.c: New file.
20532
20533         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
20534         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
20535
20536 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
20537
20538         * conform/conformtest.pl: Remove duplicate typed-constant
20539         handling.
20540
20541 2012-04-28  David S. Miller  <davem@davemloft.net>
20542
20543         * Makerules (%.abilist): Add vpath on sysdep_dirs.
20544         (check-abi-%): Remove AWK script prerequisite and explicit
20545         abilist directory.
20546         (check-abi): Rewrite to just diff the symlist with the abilist.
20547         (config-tls, config-abi-config): Delete, no longer used.
20548         (update-abi-%): Remove AWK script and explicit abilist directory.
20549         (update-abi): Rewrite to simply compare and conditionally copy the
20550         symlist and the sysdep abilist file.  Remove update-abi-config
20551         checks.
20552         * abilist/ld.abilist: Remove.
20553         * abilist/libBrokenLocale.abilist: Remove.
20554         * abilist/libanl.abilist: Remove.
20555         * abilist/libcrypt.abilist: Remove.
20556         * abilist/libdl.abilist: Remove.
20557         * abilist/librt.abilist: Remove.
20558         * abilist/libthread_db.abilist: Remove.
20559         * abilist/libutil.abilist: Remove.
20560         * scripts/extract-abilist.awk: Remove.
20561         * scripts/merge-abilist.awk: Remove.
20562         * sysdeps/generic/libcidn.abilist: New file.
20563         * sysdeps/generic/libnss_compat.abilist: New file.
20564         * sysdeps/generic/libnss_db.abilist: New file.
20565         * sysdeps/generic/libnss_dns.abilist: New file.
20566         * sysdeps/generic/libnss_files.abilist: New file.
20567         * sysdeps/generic/libnss_hesiod.abilist: New file.
20568         * sysdeps/generic/libnss_nis.abilist: New file.
20569         * sysdeps/generic/libnss_nisplus.abilist: New file.
20570         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
20571         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
20572         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
20573         file.
20574         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
20575         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
20576         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
20577         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
20578         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
20579         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
20580         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
20581         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
20582         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
20583         file.
20584         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
20585         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
20586         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
20587         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
20588         file.
20589         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
20590         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
20591         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
20592         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
20593         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
20594         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
20595         file.
20596         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
20597         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
20598         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
20599         file.
20600         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
20601         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
20602         New file.
20603         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
20604         New file.
20605         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
20606         New file.
20607         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
20608         New file.
20609         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
20610         New file.
20611         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
20612         New file.
20613         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
20614         New file.
20615         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
20616         New file.
20617         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
20618         New file.
20619         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
20620         New file.
20621         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
20622         New file.
20623         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
20624         New file.
20625         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
20626         New file.
20627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
20628         file.
20629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
20630         New file.
20631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
20632         New file.
20633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
20634         file.
20635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
20636         New file.
20637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
20638         New file.
20639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
20640         file.
20641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
20642         New file.
20643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
20644         New file.
20645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
20646         New file.
20647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
20648         New file.
20649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
20650         New file.
20651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
20652         New file.
20653         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
20654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
20655         file.
20656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
20657         New file.
20658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
20659         file.
20660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
20661         file.
20662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
20663         file.
20664         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
20665         file.
20666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
20667         file.
20668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
20669         New file.
20670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
20671         file.
20672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
20673         file.
20674         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
20675         New file.
20676         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
20677         file.
20678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
20679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
20680         file.
20681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
20682         New file.
20683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
20684         file.
20685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
20686         file.
20687         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
20688         file.
20689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
20690         file.
20691         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
20692         file.
20693         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
20694         New file.
20695         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
20696         file.
20697         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
20698         file.
20699         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
20700         New file.
20701         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
20702         file.
20703         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
20704         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
20705         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
20706         file.
20707         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
20708         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
20709         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
20710         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
20711         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
20712         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
20713         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
20714         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
20715         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
20716         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
20717         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
20718         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
20719         file.
20720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
20721         New file.
20722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
20723         file.
20724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
20725         file.
20726         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
20727         file.
20728         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
20729         file.
20730         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
20731         file.
20732         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
20733         New file.
20734         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
20735         New file.
20736         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
20737         file.
20738         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
20739         New file.
20740         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
20741         file.
20742         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
20743         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
20744         file.
20745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
20746         New file.
20747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
20748         file.
20749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
20750         file.
20751         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
20752         file.
20753         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
20754         file.
20755         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
20756         file.
20757         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
20758         New file.
20759         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
20760         New file.
20761         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
20762         file.
20763         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
20764         New file.
20765         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
20766         file.
20767
20768 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
20769
20770         * conform/conformtest.pl: Fix typo in handling typed-constant from
20771         allow-header.
20772
20773 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
20774
20775         * README: Cut down references to pre-2.6 Linux kernels and
20776         Linuxthreads.  Update lists of configurations in libc and ports
20777         and sort alphabetically.  Say "or newer" with Linux kernel version
20778         requirements.
20779
20780         * config.h.in [IS_IN_build]: Allow compiling without optimization.
20781
20782 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
20783
20784         [BZ #887]
20785         * math/libm-test.inc (logb_test_downward): New test to expose
20786         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
20787         rounding mode.
20788
20789 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
20790
20791         [BZ #14027]
20792         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
20793         to be done.
20794         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
20795         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
20796
20797 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
20798
20799         * sysdeps/unix/i386/brk.S: Remove file.
20800         * sysdeps/unix/i386/dl-brk.S: Likewise.
20801         * sysdeps/unix/i386/pipe.S: Likewise.
20802         * sysdeps/unix/i386/sigreturn.S: Likewise.
20803         * sysdeps/unix/i386/syscall.S: Likewise.
20804         * sysdeps/unix/i386/vfork.S: Likewise.
20805         * sysdeps/unix/i386/wait.S: Likewise.
20806
20807         * sysdeps/unix/common/tcsendbrk.c: Move to ...
20808         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
20809
20810         * configure.in (arm*-none*): Do not allow without
20811         --enable-hacker-mode.
20812         (netbsd*): Remove case setting base_os.
20813         (386bsd*): Likewise.
20814         (freebsd*): Likewise.
20815         (bsdi*): Likewise.
20816         (osf*): Likewise.
20817         (sunos*): Likewise.
20818         (ultrix*): Likewise.
20819         (newsos*): Likewise.
20820         (dynix*): Likewise.
20821         (*bsd*): Likewise.
20822         (sysv*): Likewise.
20823         (isc*): Likewise.
20824         (esix*): Likewise.
20825         (sco*): Likewise.
20826         (minix*): Likewise.
20827         (irix4*): Likewise.
20828         (irix6*): Likewise.
20829         (solaris[2-9]*): Likewise.
20830         (none): Likewise.
20831         * configure: Regenerated.
20832
20833 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20834
20835         [BZ #11521]
20836         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
20837         overflow or cancellation in calculating denominator.
20838         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
20839         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
20840         down expression to avoid unexpected rounding in newer GCCs.
20841         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
20842
20843 2012-04-26  David S. Miller  <davem@davemloft.net>
20844
20845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
20846         long-double compat symbols.
20847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
20848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
20849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
20850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
20851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
20852         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
20853         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
20854         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
20855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
20856         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
20857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
20858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
20859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20860
20861 2012-04-25  David S. Miller  <davem@davemloft.net>
20862
20863         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
20864         HWCAP_* values only after the memory barriers have been defined.
20865         (atomic_full_barrier): Define.
20866         (atomic_read_barrier): Define.
20867         (atomic_write_barrier): Define.
20868
20869 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20870
20871         * shlib-versions: Add libgcc_s version information.
20872         * sysdeps/generic/libgcc_s.h: Remove.
20873         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
20874         libgcc_s.h.
20875         * sysdeps/gnu/unwind-resume.c: Likewise.
20876         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
20877
20878 2012-04-25  David S. Miller  <davem@davemloft.net>
20879
20880         * sysdeps/unix/sparc/brk.S: Delete.
20881         * sysdeps/unix/sparc/dl-brk.S: Delete.
20882         * sysdeps/unix/sparc/pipe.S: Delete.
20883         * sysdeps/unix/sparc/sysdep.S: Delete.
20884         * sysdeps/unix/sparc/sysdep.h: Delete.
20885         * sysdeps/unix/sparc/vfork.S: Delete.
20886         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
20887         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
20888         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
20889         ret_ERRVAL, r0, r1, MOVE): Define.
20890         (JUMPTARGET): Remove.
20891         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
20892         sysdeps/unix/sparc/sysdep.h
20893         (ENTRY, END): Remove.
20894         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20895
20896 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
20897
20898         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
20899         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
20900         -DIS_IN_build.
20901
20902         * timezone/README: Update upstream location and email address for
20903         tzcode and tzdata.
20904         * timezone/zdump.c: Update from tzcode 2012b.
20905         * timezone/zic.c: Likewise.
20906
20907         * configure.in (libc_cv_as_needed): Remove test.
20908         * configure: Regenerated.
20909         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
20910         conditional definition.
20911         [$(have-as-needed) != yes] (no-as-needed): Likewise.
20912         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
20913         * config.make.in (have-as-needed): Remove variable.
20914
20915 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20916             Paul Pluzhnikov  <ppluzhnikov@google.com>
20917
20918         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
20919         strings correctly.
20920
20921 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
20922
20923         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
20924         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
20925         * sysdeps/sh/strlen.S: Likewise.
20926
20927 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
20928
20929         * sysdeps/unix/fork.S: Remove file.
20930         * sysdeps/unix/i386/fork.S: Likewise.
20931         * sysdeps/unix/sparc/fork.S: Likewise.
20932
20933         * sysdeps/unix/system.c: Remove file.
20934         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
20935
20936         * sysdeps/unix/getegid.S: Remove file.
20937         * sysdeps/unix/geteuid.S: Likewise.
20938
20939 2012-04-24  Roland McGrath  <roland@hack.frob.com>
20940
20941         * scripts/check-localplt.awk: New file.
20942         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
20943         of diff.
20944         * scripts/data/localplt-generic.data: Add a comment.
20945
20946         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
20947         NODE when __dir_mkfile failed.
20948         * sysdeps/mach/hurd/symlinkat.c: Likewise.
20949         Reported by Ludovic Courtès <ludo@gnu.org>.
20950
20951 2012-04-24  Andreas Jaeger  <aj@suse.de>
20952
20953         * Makerules (common-clean): Also remove gen-as-const-headers
20954         files.
20955
20956 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
20957
20958         * Makerules (native-compile): Do not change working directory for
20959         build.  Use $(OUTPUT_OPTION) in command.
20960         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
20961
20962 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20963
20964         [BZ #13886]
20965         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
20966         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
20967         * math/libm-test.inc (floor_test): Add more tests.
20968         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
20969
20970 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
20971
20972         * sysdeps/unix/getdents.c: Remove file.
20973         * sysdeps/unix/sysv/getdents.c: Likewise.
20974         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
20975
20976         * sysdeps/unix/syscalls.list (madvise): Add syscall from
20977         sysdeps/unix/mman/syscalls.list.
20978         (mmap): Likewise.
20979         (mprotect): Likewise.
20980         (msync): Likewise.
20981         (munmap): Likewise.
20982         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
20983         * sysdeps/unix/mman/syscalls.list: Remove.
20984         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
20985
20986         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
20987         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
20988         * configure: Regenerated.
20989         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
20990         $(libgcc_s_suffix).
20991         * config.make.in (libgcc_s_suffix): Remove variable.
20992
20993 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
20994
20995         * sysdeps/unix/sysv/gethostname.c: Move to ...
20996         * sysdeps/posix/gethostname.c: ... here.
20997
20998         * sysdeps/unix/execve.S: Remove file.
20999
21000         * sysdeps/unix/_exit.S: Remove file.
21001
21002 2012-04-23  Andreas Jaeger  <aj@suse.de>
21003
21004         [BZ #13739]
21005         * manual/Makefile: Remove make dist support, there's no
21006         need for a stand-alone documentation tar ball.
21007         (TEXI2DVI): Define always, it's not in Makeconfig.
21008         (dist): Removed.
21009         (tar-it): Removed.
21010         (edition): Removed.
21011         (glibc-doc-$(edition).tar): Removed
21012         (%.Z): Removed.
21013         (%.gz): Removed.
21014         (%.uu): Removed.
21015         (ETAGS): Remove, it's in Makeconfig.
21016         (move-if-change): Remove, it's in Makeconfig.
21017
21018 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
21019
21020         [BZ #13970]
21021         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
21022         (strtod, strtof, strtold, strtol, strtoul, strtoq)
21023         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
21024         (strtod_l, strtof_l, strtold_l): Remove __wur.
21025         It is not necessarily an error to ignore strtol's return value.
21026         One can reliably look at the stored endptr to decide whether
21027         the number had valid syntax.
21028
21029 2012-04-21  Andreas Jaeger  <aj@suse.de>
21030
21031         [BZ #13739]
21032         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
21033
21034 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
21035
21036         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
21037         * sysdeps/unix/sysv/Versions: Remove file.
21038
21039 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
21040
21041         [BZ #13927]
21042         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21043
21044 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
21045
21046         [BZ #7064]
21047         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
21048         version from __vm86.
21049
21050 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
21051
21052         * sysdeps/unix/common/lxstat.c: Remove file.
21053         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
21054
21055         * sysdeps/unix/sysv/Makefile: Remove file.
21056
21057         * sysdeps/unix/sysv/direct.h: Remove file.
21058
21059         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
21060         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
21061         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
21062         * sysdeps/unix/sysv/bits/signum.h: Likewise.
21063         * sysdeps/unix/sysv/bits/stat.h: Likewise.
21064         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
21065         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
21066
21067         * sysdeps/unix/sysv/setrlimit.c: Remove file.
21068
21069         * sysdeps/unix/xmknod.c: Remove file.
21070         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
21071
21072         * sysdeps/unix/sysv/settimeofday.c: Remove file.
21073
21074         * sysdeps/unix/sysv/i386/time.S: Remove file.
21075
21076         * sysdeps/unix/fxstat.c: Remove file.
21077         * sysdeps/unix/xstat.c: Likewise.
21078         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
21079
21080         * sysdeps/unix/sysv/sigaction.c: Remove file.
21081
21082         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
21083         (sysdep_headers): Remove variable.
21084         [termio.h not in sysdep_headers] (generated): Likewise.
21085         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
21086         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
21087         * sysdeps/unix/sysv/tcdrain.c: Likewise.
21088         * sysdeps/unix/sysv/tcflow.c: Likewise.
21089         * sysdeps/unix/sysv/tcflush.c: Likewise.
21090         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
21091         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
21092         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
21093         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
21094         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
21095
21096         * sysdeps/unix/siglist.c: Remove file.
21097
21098         * sysdeps/unix/getppid.S: Remove file.
21099
21100         * sysdeps/unix/mkdir.c: Remove file.
21101         * sysdeps/unix/rmdir.c: Likewise.
21102
21103 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
21104
21105         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
21106         ERR_MAX value.
21107         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
21108         errlist-compat value.
21109
21110 2012-04-18  David S. Miller  <davem@davemloft.net>
21111
21112         * sysdeps/generic/memcopy.h (reg_char): Delete.
21113         * debug/strcat_chk.c: Use char, not reg_char.
21114         * debug/strcpy_chk.c: Likewise.
21115         * debug/strncat_chk.c: Likewise.
21116         * debug/strncpy_chk.c: Likewise.
21117         * string/memchr.c: Likewise.
21118         * string/memrchr.c: Likewise.
21119         * string/rawmemchr.c: Likewise.
21120         * string/strcat.c: Likewise.
21121         * string/strchr.c: Likewise.
21122         * string/strchrnul.c: Likewise.
21123         * string/strcmp.c: Likewise.
21124         * string/strcpy.c: Likewise.
21125         * string/strncat.c: Likewise.
21126         * string/strncmp.c: Likewise.
21127         * string/strncpy.c: Likewise.
21128
21129 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
21130
21131         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
21132         __builtin_memcopy is called when src and dest ranges are known to not
21133         overlap.
21134
21135 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
21136
21137         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
21138         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
21139         fwd_align_merge macro call.
21140         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
21141         bwd_align_merge macro call.
21142         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
21143
21144 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
21145
21146         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
21147         bwd_align_merge macros.
21148         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
21149         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
21150         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
21151
21152 2012-04-18  David S. Miller  <davem@davemloft.net>
21153
21154         * sysdeps/sparc/sparc64/memcopy.h: Delete.
21155
21156 2012-04-18  Andreas Jaeger  <aj@suse.de>
21157
21158         [BZ# 6794]
21159         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
21160         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
21161         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
21162
21163         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
21164         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
21165         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
21166
21167         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
21168         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
21169         Adjust for changed ldbl-128 files.
21170
21171         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
21172         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
21173         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
21174
21175 2012-04-17  David S. Miller  <davem@davemloft.net>
21176
21177         * sysdeps/sparc/sparc32/memcopy.h: Delete.
21178
21179 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
21180
21181         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
21182         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
21183         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
21184         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
21185         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
21186         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
21187
21188 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21189
21190         [BZ #6794]
21191         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
21192         * math/libm-test.inc: Add ilogb errno and exception tests.
21193         * math/w_ilogb.c: New file: ilogb wrapper.
21194         * math/w_ilogbf.c: New file: ilogbf wrapper.
21195         * math/w_ilogbl.c: New file: ilogbl wrapper.
21196         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
21197         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
21198         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
21199         exception being thrown with 0.0 as argument.
21200         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
21201         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
21202         exception being thrown with 0.0 as argument.
21203         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
21204         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
21205         exception being thrown with 0.0 as argument.
21206         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
21207         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
21208         exception being thrown with 0.0 as argument.
21209         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
21210         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
21211         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
21212         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
21213         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
21214         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
21215         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
21216         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
21217         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
21218
21219 2012-04-17  Petr Baudis  <pasky@ucw.cz>
21220
21221         * include/sys/uio.h: Change __vector to __iovec to avoid clash
21222         with altivec.
21223
21224 2012-04-16  Marek Polacek  <polacek@redhat.com>
21225
21226         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
21227
21228 2012-04-16  Marek Polacek  <polacek@redhat.com>
21229
21230         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
21231         operands of fdivp instruction.
21232
21233 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
21234
21235         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
21236         * elf/tst-auditmod3b.c: Likewise.
21237         * elf/tst-auditmod4b.c: Likewise.
21238         * elf/tst-auditmod5b.c: Likewise.
21239         * elf/tst-auditmod6b.c: Likewise.
21240         * elf/tst-auditmod6c.c: Likewise.
21241         * elf/tst-auditmod7b.c: Likewise.
21242         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
21243         * sysdeps/x86_64/preconfigure.in: Likewise.
21244         * sysdeps/x86_64/preconfigure: Regenerated.
21245
21246 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
21247
21248         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
21249         __ILP32__.
21250
21251 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
21252
21253         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
21254         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
21255
21256 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
21257
21258         [BZ #13973]
21259         * locale/iso-639.def: Fix gl language name. Spotted by
21260         Yaron Shahrabani.
21261
21262 2012-04-12  Roland McGrath  <roland@hack.frob.com>
21263
21264         [BZ #2074]
21265         * libio/libio.h (__io_write_fn): Update comment.
21266
21267 2012-04-12  Petr Baudis  <pasky@ucw.cz>
21268
21269         [BZ #2074]
21270         * stdio.texi (Hook Functions): The user provided writer function
21271         is not allowed to return -1.
21272
21273 2012-04-11  David S. Miller  <davem@davemloft.net>
21274
21275         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21276
21277 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
21278
21279         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
21280         Add a leading slash to rtkaio.
21281
21282 2012-04-11  Jim Meyering  <meyering@redhat.com>
21283
21284         [BZ #11959]
21285         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
21286         It is not necessarily an error to ignore fwrite's return
21287         value.  One can reliably use ferror to test for errors after
21288         the fact.
21289
21290 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21291
21292         * bits/types.h (__snseconds_t): New type.
21293         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
21294
21295         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
21296         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
21297         (__SNSECONDS_T_TYPE): Likewise.
21298         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
21299         (__SNSECONDS_T_TYPE): Likewise.
21300         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
21301         (__SNSECONDS_T_TYPE): Likewise.
21302
21303 2012-04-10  Andreas Jaeger  <aj@suse.de>
21304
21305         [BZ #2636]
21306         * manual/time.texi (Processor Time): Return type of times is
21307         elapsed real time since an arbitrary point in the past.
21308         (CPU Time): Move CLK_TCK from here...
21309         (Processor Time): ...to here.  Correct description.
21310         * manual/conf.texi (Constants for Sysconf): Correct description of
21311         _SC_CLK_TCK.
21312
21313 2012-04-10  David S. Miller  <davem@davemloft.net>
21314
21315         [BZ #13967]
21316         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
21317         where the is a gap between DT_REL(A) and DT_JMPREL.
21318
21319 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21320
21321         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
21322         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
21323         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
21324
21325 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21326
21327         * elf/dl-support.c (_dl_inhibit_cache): New variable.
21328         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
21329         (dl_main): Handle --inhibit-cache.
21330         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
21331         _dl_inhibit_cache.
21332         * elf/dl-load.c (_dl_map_object): Use it.
21333         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
21334
21335 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
21336
21337         [BZ #13872]
21338         * sysdeps/i386/fpu/e_powl.S (p78): New object.
21339         (__ieee754_powl): Saturate large exponents rather than testing for
21340         overflow of y*log2(x).
21341         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21342         * math/libm-test.inc (pow_test): Do not permit spurious overflow
21343         exceptions.
21344
21345         [BZ #11521]
21346         * math/s_ctan.c: Include <float.h>.
21347         (__ctan): Avoid internal overflow or cancellation in calculating
21348         denominator.
21349         * math/s_ctanf.c: Likewise.
21350         * math/s_ctanl.c: Likewise.
21351         * math/s_ctanh.c: Likewise.
21352         * math/s_ctanhf.c: Likewise.
21353         * math/s_ctanhl.c: Likewise.
21354         * math/libm-test.inc (ctan_test): Add more tests.
21355         (ctanh_test): Likewise.
21356         * sysdeps/i386/fpu/libm-test-ulps: Update.
21357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21358
21359 2012-04-09  Andreas Jaeger  <aj@suse.de>
21360
21361         [BZ #6894]
21362         * manual/filesys.texi (Directory Entries): Mention that d_namlen
21363         is an optional BSD extension.
21364
21365         [BZ #10254]
21366         * manual/stdio.texi (Opening Streams): Document additional fopen
21367         parameters.
21368
21369 2012-04-09  Roland McGrath  <roland@hack.frob.com>
21370
21371         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
21372         %eax without telling the compiler.
21373
21374 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
21375
21376         [BZ # 13963]
21377         * manual/install.texi: Use sourceware.org.
21378
21379 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
21380
21381         [BZ #13873]
21382         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
21383         (__ieee754_pow): Generate overflow and underflow using huge*huge
21384         and tiny*tiny rather than just returning constant infinity or zero
21385         for large exponents.
21386         * math/libm-test.inc (pow_test): Require overflow exceptions for
21387         applicable cases of large exponents.
21388
21389         [BZ #706]
21390         * sysdeps/i386/fpu/e_pow.S (p10): New object.
21391         (__ieee754_pow): Use iterative multiplication algorithm only for
21392         integer exponents with absolute value below 1024.  Check for odd
21393         integer exponents when using algorithm for real exponents.
21394         * math/libm-test.inc (pow_test): Add more tests.
21395         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21396
21397 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
21398
21399         [BZ #13705]
21400         * math/libm-test.inc (exp_test): Do not allow overflow exception
21401         on underflow test.
21402
21403 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
21404
21405         [BZ #13705]
21406         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
21407         instead of __kernel_standard_f.
21408
21409 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
21410
21411         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
21412         * sysdeps/x86_64/memset_chk.S: Likewise.
21413
21414 2012-04-08  Andreas Jaeger  <aj@suse.de>
21415
21416         [BZ #10153]
21417         * manual/startup.texi (Environment Access): Describe return value
21418         for putenv and setenv.
21419
21420         [BZ #6895]
21421         * manual/filesys.texi (Directory Entries): Add description for
21422         DT_LNK.
21423
21424         [BZ #6890]
21425         * manual/filesys.texi (Directory Entries): Clarify that it's file
21426         system not operating system in the description of DT_UNKNOWN.
21427
21428         [BZ #6578]
21429         * manual/syslog.texi (closelog): Fix reference, it's openlog.
21430
21431 2012-04-08  Stephen Compall  <s11@member.fsf.org>
21432
21433         [BZ #6649]
21434         * manual/llio.texi (Opening and Closing Files): Add cross
21435         reference to explain mode argument.
21436
21437 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
21438
21439         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
21440         * sysdeps/x86_64/memset_chk.S: Likewise.
21441
21442 2012-04-07  David S. Miller  <davem@davemloft.net>
21443
21444         * elf/elf.h (R_SPARC_WDISP10): Define.
21445         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
21446         R_SPARC_SIZE32.
21447         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
21448         R_SPARC_SIZE64 and R_SPARC_H34.
21449
21450 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
21451
21452         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
21453         conditions and remove no longer applicable assertion.
21454
21455 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
21456
21457         * bits/byteswap.h: Include <features.h>.
21458         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
21459         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
21460
21461 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
21462
21463         * bits/byteswap.h (__bswap_16): Removed.
21464         Include <bits/byteswap-16.h> to get __bswap_16.
21465         * sysdeps/i386/bits/byteswap.h: Likewise.
21466         * sysdeps/s390/bits/byteswap.h: Likewise.
21467         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21468         * bits/byteswap-16.h: New file.
21469         * sysdeps/i386/bits/byteswap-16.h: Likewise.
21470         * sysdeps/s390/bits/byteswap-16.h: Likewise.
21471         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
21472         * string/Makefile (headers): Add bits/byteswap-16.h.
21473
21474 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
21475
21476         [BZ #13895]
21477         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
21478         extra indirection.
21479         * nss/Makefile (tests-static, tests): Add tst-nss-static.
21480         * nss/tst-nss-static.c: New.
21481
21482 2012-04-06  Robert Millan  <rmh@gnu.org>
21483
21484         [BZ #6486]
21485         * manual/llio.texi (File Position Primitive): lseek
21486         refers to WHENCE when it really means OFFSET.
21487
21488 2012-04-06  Andreas Jaeger  <aj@suse.de>
21489
21490         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
21491         strncmp declarations.
21492
21493         * abilist/libc.abilist: Add __poll and __ppoll.
21494
21495 2012-04-05  David S. Miller  <davem@davemloft.net>
21496
21497         * scripts/check-local-headers.sh: Accept a host triplet in the
21498         path matched by the exclude regexp.
21499
21500         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
21501         definition.
21502         * sysdeps/powerpc/powerpc32/dl-machine.h
21503         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
21504         * sysdeps/s390/s390-32/dl-machine.h
21505         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
21506         * sysdeps/sparc/sparc32/dl-machine.h
21507         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
21508         * sysdeps/sparc/sparc64/dl-machine.h
21509         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
21510
21511         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
21512         lazy binding.
21513         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
21514         undefined symbol errors.
21515
21516         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
21517         DT_NEEDED entries.
21518
21519 2012-04-05  Michael Matz  <matz@suse.de>
21520
21521         [BZ #13592]
21522         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
21523
21524 2012-04-05  Andreas Jaeger  <aj@suse.de>
21525
21526         [BZ #13908]
21527         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
21528         comment.
21529
21530 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21531
21532         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
21533         which ROUND is no valid rounding mode.
21534
21535 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21536
21537         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
21538         read again.
21539         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
21540
21541 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21542
21543         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
21544         an exception using FPU order intentionally.
21545
21546 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21547
21548         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
21549         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
21550         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
21551         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
21552
21553 2012-04-05  Simon Josefsson  <simon@josefsson.org>
21554
21555         [BZ #12340]
21556         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
21557         EINVAL when BUFLEN is too smal.
21558
21559 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
21560
21561         [BZ #13553]
21562         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
21563         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
21564
21565 2012-04-03  Andreas Jaeger  <aj@suse.de>
21566
21567         [BZ #13938]
21568         * manual/setjmp.texi (System V contexts): Fix sentence.
21569
21570         [BZ #13926]
21571         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
21572         New macro for this case.
21573         [!__GNUC__] (__bswap_64): New inline function for this case.
21574         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21575         * bits/byteswap.h: Likewise.
21576         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
21577         ull, guard with __GLIBC_HAVE_LONG_LONG.
21578
21579         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
21580         __GLIBC_HAVE_LONG_LONG.
21581
21582         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
21583         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
21584
21585 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21586
21587         [BZ #13691]
21588         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
21589         inptr and inend, rather than using last_ch.
21590
21591 2012-04-02  David S. Miller  <davem@davemloft.net>
21592
21593         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
21594         * stdio-common/printf-parse.h (read_int): Change return type to
21595         'int', return -1 on INT_MAX overflow.
21596         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
21597         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
21598         overflows INT_MAX.  Check for overflow of in-format-string precision
21599         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
21600         SIZE_MAX not INT_MAX for integer overflow test.
21601         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
21602         skip the construct in the format string but do not record anything.
21603         * stdio-common/bug22.c: Adjust to test both width/prevision
21604         INT_MAX overflow as well as total length INT_MAX overflow.  Check
21605         explicitly for proper errno values.
21606
21607 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
21608
21609         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
21610         CHAR_MAX.
21611         * string/test-strcmp.c [! WIDE]: Likewise.
21612         * time/tst-mktime2.c: Likewise for INT_MAX.
21613         * string/test-string.h: #include <sys/param.h> for MIN.
21614
21615         * csu/init-first.c (__libc_init_first): Call __ctype_init.
21616         * sysdeps/i386/init-first.c (init): Likewise.
21617         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
21618         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
21619         * sysdeps/sh/init-first.c (init): Likewise.
21620
21621 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
21622
21623         * po/ru.po: Update from translation team.
21624         * po/vi.po: Likewise.
21625
21626 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21627
21628         * resolv/nss_dns/dns-host.c: Merge copyright years.
21629
21630 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21631
21632         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
21633         Optimize memcpy with prefetch if
21634         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
21635         src, dst pointers have unequal 16 byte alignments.
21636
21637 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
21638
21639         [BZ #13928]
21640         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
21641         from a CNAME entry and return the minimum ttl for the query.
21642         (gaih_getanswer_slice): Likewise.
21643
21644 2012-03-30  Jeff Law  <law@redhat.com>
21645
21646         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
21647         due to long keys.
21648         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21649         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21650
21651         * resolv/nss_dns/dns-host.c: Update copyright year.
21652
21653 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
21654
21655         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
21656         requests to save a system call.  Fix check that all bytes are sent.
21657
21658         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
21659         comments for sendmmsg.
21660
21661 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21662
21663         [BZ #13691]
21664         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
21665         with only 1 character between 0x0041 and 0x01b0.
21666         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
21667         * wcsmbs/tst-mbsnrtowcs.c: New file.
21668
21669 2012-03-29  David S. Miller  <davem@davemloft.net>
21670
21671         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
21672         small copies by hand.
21673
21674 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21675
21676         [BZ #13761]
21677         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
21678         _nss_compat_initgroups_dyn): Fall back to malloc/free
21679         for large group memberships.
21680
21681 2012-03-28  David S. Miller  <davem@davemloft.net>
21682
21683         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
21684         that branches into memcpy.
21685         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
21686         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
21687         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
21688         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
21689         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
21690         bits.
21691         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
21692         implementation too.
21693         * sysdeps/sparc/mempcpy.S: New file.
21694
21695         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
21696         the IFUNC routine in the libc case.
21697         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
21698
21699         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
21700         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
21701         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
21702         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
21703         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
21704         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
21705         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
21706         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
21707
21708         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
21709         loop to 256 bytes instead of 64 bytes and fix test signedness.
21710
21711         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
21712         * sysdeps/sparc/sparc32/Makefile: rather than here...
21713         * sysdeps/sparc/sparc64/Makefile: and here.
21714
21715 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
21716
21717         * malloc/mallocbug.c: Avoid warnings about unused variables.
21718
21719 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
21720
21721         [BZ #13760]
21722         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
21723         in the right place. Discard and retry query if response is
21724         larger than input buffer size.
21725
21726 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
21727
21728         [BZ #369]
21729         [BZ #2678]
21730         [BZ #3866]
21731         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
21732         x for large integer exponent.
21733         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
21734         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
21735         sign of result as needed afterwards.
21736         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
21737         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
21738         result for underflowing pow the same as for overflow.
21739         (__kernel_standard_l): Handle powl overflow and underflow here
21740         rather than calling __kernel_standard.
21741         * math/libm-test.inc (pow_test): Add more tests.
21742
21743         [BZ #3868]
21744         [BZ #13879]
21745         [BZ #13910]
21746         [BZ #13911]
21747         [BZ #13912]
21748         [BZ #13913]
21749         [BZ #13915]
21750         [BZ #13916]
21751         [BZ #13917]
21752         [BZ #13918]
21753         [BZ #13919]
21754         [BZ #13920]
21755         [BZ #13921]
21756         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
21757         * sysdeps/ieee754/k_standard.c: Include <float.h>.
21758         (__kernel_standard_l): New function.
21759         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
21760         __kernel_standard.
21761         * math/w_acosl.c (__acosl): Likewise.
21762         * math/w_asinl.c (__asinl): Likewise.
21763         * math/w_atan2l.c (__atan2l): Likewise.
21764         * math/w_atanhl.c (__atanhl): Likewise.
21765         * math/w_coshl.c (__coshl): Likewise.
21766         * math/w_exp10l.c (__exp10l): Likewise.
21767         * math/w_exp2l.c (__exp2l): Likewise.
21768         * math/w_fmodl.c (__fmodl): Likewise.
21769         * math/w_hypotl.c (__hypotl): Likewise.
21770         * math/w_j0l.c (__j0l, __y0l): Likewise.
21771         * math/w_j1l.c (__j1l, __y1l): Likewise.
21772         * math/w_jnl.c (__jnl, __ynl): Likewise.
21773         * math/w_lgammal.c (__lgammal): Likewise.
21774         * math/w_log10l.c (__log10l): Likewise.
21775         * math/w_log2l.c (__log2l): Likewise.
21776         * math/w_logl.c (__logl): Likewise.
21777         * math/w_powl.c (__powl): Likewise.
21778         * math/w_remainderl.c (__remainderl): Likewise.
21779         * math/w_scalbl.c (sysv_scalbl): Likewise.
21780         * math/w_sinhl.c (__sinhl): Likewise.
21781         * math/w_sqrtl.c (__sqrtl): Likewise.
21782         * math/w_tgammal.c (__tgammal): Likewise.
21783         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
21784         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
21785         * math/libm-test.inc (acos_test): Add more tests.
21786         (acosh_test): Likewise.
21787         (asin_test): Likewise.
21788         (atanh_test): Likewise.
21789         (exp_test): Likewise.
21790         (exp10_test): Likewise.
21791         (exp2_test): Likewise.
21792         (expm1_test): Likewise.
21793         (lgamma_test): Likewise.
21794         (log_test): Likewise.
21795         (log10_test): Likewise.
21796         (log1p_test): Likewise.
21797         (log2_test): Likewise.
21798         (pow_test): Do not allow some spurious overflow exceptions.
21799         (sqrt_test): Add more tests.
21800         (tgamma_test): Likewise.
21801         (y0_test): Likewise.
21802         (y1_test): Likewise.
21803         (yn_test): Likewise.
21804
21805 2012-03-27  Anton Blanchard  <anton@samba.org>
21806
21807         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
21808         MAP_HUGETLB.
21809         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
21810         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
21811         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21812
21813 2012-03-27  David S. Miller  <davem@davemloft.net>
21814
21815         * conform/Makefile: Run run-conformtest.sh using $(BASH).
21816
21817         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
21818         have-as-vis3 check.
21819
21820 2012-03-27  Andreas Jaeger  <aj@suse.de>
21821
21822         * sysdeps/x86_64/elf/configure.in: Moved to ...
21823         * sysdeps/x86_64/configure.in: ... here.
21824         * sysdeps/x86_64/elf/start.S: Moved to ...
21825         * sysdeps/x86_64/start.S: ... here.
21826         * sysdeps/x86_64/elf/configure: Delete.
21827
21828         * sysdeps/x86_64/configure.in: Merge contents from
21829         sysdeps/i386/configure.in (without i686 check).
21830
21831         * sysdeps/i386/elf/Versions: Merge into ...
21832         * sysdeps/i386/Versions: ... this.
21833         * sysdeps/i386/elf/Versions: Delete file.
21834         * sysdeps/i386/elf/start.S: Moved to ...
21835         * sysdeps/i386/start.S: ...here.
21836         * sysdeps/i386/elf/configure.in: Merge into...
21837         * sysdeps/i386/configure.in: ...here.
21838         * sysdeps/i386/elf/configure.in: Delete file.
21839         * sysdeps/i386/elf/configure: Delete file.
21840
21841         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
21842         * debug/backtracesyms.c: ... here.
21843         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
21844         * debug/backtracesymsfd.c: ... here.
21845         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
21846         * sysdeps/generic/ifunc-sel.h: ... here.
21847
21848         * sysdeps/unix/i386/start.c: Delete file.
21849         * sysdeps/unix/sparc/start.c: Delete file.
21850         * sysdeps/unix/start.c: Delete file.
21851
21852         * sysdeps/sh/elf/configure.in: Moved to ...
21853         * sysdeps/sh/configure.in: ... here.
21854         * sysdeps/sh/elf/start.S: Moved to ...
21855         * sysdeps/sh/start.S: ... here.
21856         * sysdeps/sh/elf/configure: Delete file.
21857
21858         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
21859         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
21860         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
21861         * sysdeps/powerpc/powerpc64/entry.h: ... here.
21862         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
21863         * sysdeps/powerpc/powerpc64/start.S: here.
21864         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
21865         * sysdeps/powerpc/powerpc64/Makefile: ... this.
21866         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
21867         * sysdeps/powerpc/powerpc64/configure.in: ... this.
21868         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
21869
21870         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
21871         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
21872         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
21873         * sysdeps/powerpc/powerpc32/start.S: ... here.
21874         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
21875         * sysdeps/powerpc/powerpc32/configure.in: ... this.
21876         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
21877
21878         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
21879         * sysdeps/powerpc/ifunc-sel.h: ... here.
21880         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
21881         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
21882
21883         * sysdeps/sparc/elf/configure.in: Moved to ...
21884         * sysdeps/sparc/configure.in: ... here.
21885         * sysdeps/sparc/elf/configure: Delete file.
21886         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
21887         * sysdeps/sparc/sparc32/start.S: ... here.
21888         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
21889         * sysdeps/sparc/sparc64/start.S: ... here.
21890         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
21891         * sysdeps/sparc/sparc32/Makefile: ... this.
21892         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
21893         * sysdeps/sparc/sparc64/Makefile: ... this.
21894
21895         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
21896         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
21897         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
21898         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
21899         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
21900         * sysdeps/s390/s390-32/setjmp.S: ... here.
21901         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
21902         * sysdeps/s390/s390-32/configure.in: ... here.
21903         * sysdeps/s390/s390-32/elf/configure: Delete file.
21904         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
21905         * sysdeps/s390/s390-32/start.S: ... here.
21906
21907         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
21908         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
21909         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
21910         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
21911         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
21912         * sysdeps/s390/s390-64/setjmp.S: ... here.
21913         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
21914         * sysdeps/s390/s390-64/configure.in: ... here
21915         * sysdeps/s390/s390-64/elf/configure: Delete file.
21916         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
21917         * sysdeps/s390/s390-64/start.S: ... here.
21918         * sysdeps/s390/s390-64/elf/configure: Delete.
21919
21920         * configure.in: Remove support for elf directories in sysdeps.
21921
21922         * configure: Regenerated.
21923         * sysdeps/i386/configure: Regenerated.
21924         * sysdeps/powerpc/powerpc32/configure: Regenerated.
21925         * sysdeps/powerpc/powerpc64/configure: Regenerated.
21926         * sysdeps/s390/s390-32/configure: Regenerated.
21927         * sysdeps/s390/s390-64/configure: Regenerated.
21928         * sysdeps/sh/configure: Regenerated.
21929         * sysdeps/sparc/configure: Regenerated.
21930         * sysdeps/x86_64/configure: Regenerated.
21931
21932 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
21933
21934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21935
21936         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
21937         denormal result into account.
21938
21939 2012-03-25  Roland McGrath  <roland@hack.frob.com>
21940
21941         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
21942         Reported by Allan McRae <allan@archlinux.org>.
21943
21944 2012-03-23  Jeff Law  <law@redhat.com>
21945
21946         * nss/getnssent.c (__nss_getent): Fix typo.
21947
21948 2012-03-23  David S. Miller  <davem@davemloft.net>
21949
21950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21951
21952 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
21953
21954         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
21955         to pad to uint64_t for each field.
21956         (dl_tls_index): Replace unsigned long with uint64_t.
21957
21958 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
21959         Paul Pluzhnikov  <ppluzhnikov@google.com>
21960
21961         [BZ #6528]
21962         * grp/Makefile (otherlibs): Don't set it.
21963         * inet/Makefile (otherlibs): Likewise.
21964         * login/Makefile (otherlibs): Likewise.
21965         * nscd/Makefile (otherlibs): Likewise.
21966         * posix/Makefile (otherlibs): Likewise.
21967         * pwd/Makefile (otherlibs): Likewise.
21968         * rt/Makefile (otherlibs): Likewise.
21969         * sunrpc/Makefile (otherlibs): Likewise.
21970         * nss/Makefile (otherlibs): Likewise.
21971         Add libnss_files to routines and static-only-routines.
21972         ($(objpfx)getent): Remove rule.
21973         * resolv/Makefile: Add libnss_dns and libresolv to routines and
21974         static-only-routines.
21975
21976 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
21977
21978         [BZ #13892]
21979         * math/s_cexp.c: Include <float.h>.
21980         (__cexp): Handle exp result overflowing not necessarily
21981         overflowing both real and imaginary parts of result.
21982         * math/s_cexpf.c: Likewise.
21983         * math/s_cexpl.c: Likewise.
21984         * math/libm-test.inc (cexp_test): Add more tests.
21985         * sysdeps/i386/fpu/libm-test-ulps: Update.
21986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21987
21988 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21989
21990         * include/link.h (ELFW): New macro.
21991         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
21992         Replace ELF64_R_TYPE with ELFW(R_TYPE).
21993
21994 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21995
21996         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
21997         with uint64_t.
21998
21999 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22000
22001         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
22002         declaration.
22003         (struct La_x32_retval): Likewise.
22004
22005 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22006
22007         * sysdeps/x86_64/preconfigure.in: New file.
22008         * sysdeps/x86_64/preconfigure: New generated file.
22009
22010 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
22011
22012         [BZ #13824]
22013         * math/e_exp2l.c: Include <float.h>.
22014         (__ieee754_exp2l): Handle overflow and underflow cases
22015         separately.  Only pass fractional part of argument to
22016         __ieee754_expl.
22017         * math/libm-test.inc (exp2_test): Add more tests.
22018
22019         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
22020         negating x to take absolute value.
22021         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
22022         Likewise.
22023         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
22024         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
22025         Likewise.
22026         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
22027         computing low part if x was negated.
22028         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
22029
22030 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
22031
22032         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
22033         la_x32_gnu_pltexit.
22034         (pltexit): Cast int_retval to ptrdiff_t.
22035         * elf/tst-auditmod3b.c: Likewise.
22036         * elf/tst-auditmod4b.c: Likewise.
22037         * elf/tst-auditmod5b.c: Likewise.
22038         * elf/tst-auditmod6b.c: Likewise.
22039         * elf/tst-auditmod6c.c: Likewise.
22040         * elf/tst-auditmod7b.c: Likewise.
22041
22042         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
22043         and x32_gnu_pltexit.
22044
22045         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
22046         __ELF_NATIVE_CLASS.
22047         (La_x32_regs): New macro.
22048         (La_x32_retval): Likewise.
22049         (la_x32_gnu_pltenter): New function prototype.
22050         (la_x32_gnu_pltexit): Likewise.
22051
22052 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
22053
22054         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
22055         exponent.
22056
22057         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22058
22059         * configure.in (libc_cv_cc_nofma): Check for option to disable
22060         generation of FMA instructions.
22061         * configure: Regenerate.
22062         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
22063         * sysdeps/ieee754/dbl-64/Makefile: New file.
22064         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22065         Remove brandred-fma4.
22066         (CFLAGS-brandred-fma4.c): Remove.
22067         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
22068         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
22069         define.
22070         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
22071         define.
22072
22073 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
22074
22075         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
22076         LLONG_MAX != LONG_MAX.
22077         (_itoa_word): Use _ITOA_WORD_TYPE on value.
22078         (_fitoa_word): Likewise.
22079         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
22080         LLONG_MAX != LONG_MAX.
22081         * stdio-common/_itowa.h: Include <_itoa.h>.
22082         (_itowa_word): Use _ITOA_WORD_TYPE on value.
22083         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
22084         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
22085         only if not defined.
22086         (_ITOA_WORD_TYPE): Likewise.
22087         (_itoa_word): Use _ITOA_WORD_TYPE on value.
22088         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
22089
22090 2012-03-21  David S. Miller  <davem@davemloft.net>
22091
22092         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22093
22094 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
22095
22096         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
22097         of x86_64 when setting libc_cv_slibdir, libdir and
22098         libc_cv_localedir.
22099         * sysdeps/unix/sysv/linux/configure: Regenerated.
22100
22101 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
22102
22103         * manual/lang.texi (Old Varargs): Remove section.
22104         (How Variadic): Update menu.
22105         (va_start): Do not mention varargs.h.
22106
22107 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
22108             Joseph Myers  <joseph@codesourcery.com>
22109
22110         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
22111         link test.
22112         * configure: Regenerated.
22113
22114 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
22115
22116         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
22117         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
22118         conformtest.pl
22119
22120 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
22121
22122         * NOTES: Remove.
22123         * Makefile (files-for-dist): Remove NOTES.
22124         (NOTES): Remove rule.
22125         * README: Don't refer to NOTES.
22126         * manual/creature.texi: Don't include macros.texi.
22127         * manual/intro.texi (creature.texi): Remove comment referring to
22128         NOTES.
22129
22130         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
22131         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
22132         * configure: Regenerated.
22133         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
22134         LIBC_TRY_CC_OPTION.
22135         (libc_cv_as_i686): Likewise.
22136         (libc_cv_cc_avx): Likewise.
22137         (libc_cv_cc_sse2avx): Likewise.
22138         (libc_cv_cc_fma4): Likewise.
22139         (libc_cv_cc_novzeroupper): Likewise.
22140         * sysdeps/i386/configure: Regenerated.
22141
22142         [BZ #13883]
22143         * sysdeps/i386/fpu/s_cexp.S: Remove.
22144         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
22145         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
22146         * math/libm-test.inc (cexp_test): Add more tests.
22147         * sysdeps/i386/fpu/libm-test-ulps: Update.
22148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22149
22150 2012-03-21  Allan McRae  <allan@archlinux.org>
22151
22152         * timezone/Makefile: Do not install iso3166.tab and zone.tab
22153
22154 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
22155
22156         [BZ #13871]
22157         * math/w_exp2.c: Do not include <float.h>.
22158         (o_threshold, u_threshold): Remove.
22159         (__exp2): Calculate result before checking finiteness and calling
22160         __kernel_standard.
22161         * math/w_exp2f.c: Likewise.
22162         * math/w_exp2l.c: Likewise.
22163         * math/libm-test.inc (exp2_test): Require overflow exception for
22164         1e6 input.
22165
22166         [BZ #3866]
22167         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
22168         range of signed 64-bit integers before using fistpll.  Remove
22169         checks for whether integers fit in mantissa bits.
22170         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
22171         the range of signed 32-bit integers before using fistpl.  Remove
22172         checks for whether integers fit in mantissa bits.
22173         * sysdeps/i386/fpu/e_powl.S (p64): New object.
22174         (__ieee754_powl): Test for y outside the range of signed 64-bit
22175         integers before using fistpll.  Reduce 64-bit values to 63-bit
22176         ones as needed.
22177         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
22178         divide-by-zero is raised for zero to large negative powers.
22179         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
22180         (__ieee754_powl): Test for y outside the range of signed 64-bit
22181         integers before using fistpll.  Reduce 64-bit values to 63-bit
22182         ones as needed.
22183         * math/libm-test.inc (pow_test): Add more tests.
22184
22185 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22186
22187         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
22188         <stdio-common/_itoa.h>.
22189         * debug/segfault.c: Likewise.
22190         * elf/dl-cache.c: Likewise.
22191         * elf/dl-minimal.c: Likewise.
22192         * elf/dl-misc.c: Likewise.
22193         * elf/dl-sysdep.c: Likewise.
22194         * elf/dl-version.c: Likewise.
22195         * elf/rtld.c: Likewise.
22196         * hurd/hurdsock.c: Likewise.
22197         * hurd/lookup-retry.c: Likewise.
22198         * malloc/malloc.c: Likewise.
22199         * malloc/mtrace.c: Likewise.
22200         * nscd/nscd_getgr_r.c: Likewise.
22201         * nscd/nscd_getpw_r.c: Likewise.
22202         * nscd/nscd_getserv_r.c: Likewise.
22203         * posix/getopt_init.c: Likewise.
22204         * posix/wordexp.c: Likewise.
22205         * stdio-common/_itoa.c: Likewise.
22206         * stdio-common/printf_fphex.c: Likewise.
22207         * stdio-common/vfprintf.c: Likewise.
22208         * string/_strerror.c: Likewise.
22209         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
22210         * sysdeps/i386/i686/hp-timing.h: Likewise.
22211         * sysdeps/mach/_strerror.c: Likewise.
22212         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
22213         * sysdeps/mach/hurd/sethostid.c: Likewise.
22214         * sysdeps/mach/hurd/xmknodat.c: Likewise.
22215         * sysdeps/mach/xpg-strerror.c: Likewise.
22216         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
22217         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
22218         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
22219         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
22220         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
22221         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
22222         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
22223         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
22224         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
22225         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
22226         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
22227         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
22228         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
22229         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
22230         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
22231         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
22232         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
22233         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
22234         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
22235         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
22236         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
22237
22238         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
22239
22240         * stdio-common/_itoa.h: Moved to ...
22241         * sysdeps/generic/_itoa.h: Here.
22242
22243         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
22244
22245         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
22246         instead of "_itoa.h" and "_itowa.h".
22247         * stdio-common/vfprintf.: Likewise.
22248
22249 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22250
22251         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
22252         <bits/wordsize.h>.
22253         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
22254         (__signbit): Likwise.
22255         (llrintf): Likwise.
22256         (llrint): Likwise.
22257
22258 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22259
22260         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
22261         __WORDSIZE != 64.
22262
22263 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
22264
22265         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
22266         OVERFLOW_EXCEPTION_OK.
22267         * math/libm-test.inc ("Philosophy"): Update comment about
22268         exception testing.
22269         (OVERFLOW_EXCEPTION): Define.
22270         (OVERFLOW_EXCEPTION_OK): Likewise.
22271         (INVALID_EXCEPTION_OK): Renumber.
22272         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
22273         (IGNORE_ZERO_INF_SIGN): Likewise.
22274         (test_exceptions): Handle FE_OVERFLOW.
22275         (exp10_test): Expect overflow exceptions.
22276         (exp2_test): Likewise.
22277         (expm1_test): Likewise.
22278         (nextafter_test): Likewise.
22279         (pow_test): Likewise.
22280         (scalbn_test): Likewise.
22281         (scalbln_test): Likewise.
22282
22283 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22284
22285         * sysdeps/x86_64/bits/atomic.h
22286         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
22287         64bit integer.
22288         (atomic_exchange_acq): Likewise.
22289         (__arch_exchange_and_add_body): Likewise.
22290         (__arch_add_body): Likewise.
22291         (atomic_add_negative): Likewise.
22292         (atomic_add_zero): Likewise.
22293
22294 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22295
22296         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
22297         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
22298
22299 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22300
22301         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
22302         Check __x86_64__ instead of __WORDSIZE.
22303
22304 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22305
22306         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
22307
22308 2012-03-19  David S. Miller  <davem@davemloft.net>
22309
22310         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22311
22312         * sysdeps/sparc/fpu/fenv_private.h: New file.
22313         * sysdeps/sparc/fpu/math_private.h: Use it.
22314         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
22315         Remove.
22316         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
22317         (libc_feholdexcept_setroundl): Remove.
22318         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
22319         Remove.
22320         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
22321         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
22322
22323 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22324
22325         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
22326         int64_t instead of long int.
22327         (INSERT_WORDS64): Likwise.
22328
22329 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22330
22331         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
22332         _Unwind_GetCFA return to _Unwind_Ptr first.
22333
22334 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
22335
22336         [BZ #13629]
22337         * math/s_clog.c: Include <float.h>.
22338         (__clog): Scale large or subnormal inputs.
22339         * math/s_clogf.c: Likewise.
22340         * math/s_clogl.c: Likewise.
22341         * math/s_clog10.c: Include <float.h>.
22342         (M_LOG10_2): Define.
22343         (__clog10): Scale large or subnormal inputs.
22344         * math/s_clog10f.c: Likewise.
22345         * math/s_clog10l.c: Likewise.
22346         * math/libm-test.inc (clog_test): Add more tests.
22347         (clog10_test): Likewise.
22348         * sysdeps/i386/fpu/libm-test-ulps: Update.
22349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22350
22351         [BZ #11451]
22352         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
22353         x and y.
22354         * math/libm-test.inc (atan2_test): Add another test.
22355
22356         * Makerules (common-objdir-compile): Remove.
22357         * sysdeps/unix/Makefile (config-generated): Do not add
22358         $(unix-generated) to variable.
22359         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
22360         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
22361         Remove rule.
22362         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
22363         Likewise.
22364         [generic bits/local_lim.h] (before-compile): Do not append to
22365         variable.
22366         [generic bits/local_lim.h] (common-generated): Likewise.
22367         [generic sys/param.h] (before-compile): Do not append to variable.
22368         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
22369         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
22370         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
22371         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
22372         include.
22373         [generic sys/param.h] (sys/param.h-includes): Remove variable.
22374         [generic sys/param.h] (sys/param.h-includes): Remove rule.
22375         [generic sys/param.h] ($(addprefix
22376         $(common-objpfx),$(sys/param.h-includes))): Likewise.
22377         [generic sys/param.h] (common-generated): Do not append to
22378         variable.
22379         [generic sys/param.h] (sysdep_headers): Likewise.
22380         [generic bits/errno.h] (before-compile): Do not append to
22381         variable.
22382         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
22383         rule.
22384         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
22385         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
22386         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
22387         [generic bits/errno.h] (common-generated): Do not append to
22388         variable.
22389         [generic bits/ioctls.h] (before-compile): Do not append to
22390         variable.
22391         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
22392         rule.
22393         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
22394         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
22395         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
22396         rule.
22397         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
22398         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
22399         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
22400         [generic bits/ioctls.h] (common-generated): Do not append to
22401         variable.
22402         [generic sys/syscall.h] (syscall.h): Remove variable.
22403         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
22404         rule.
22405         [generic sys/syscall.h] (before-compile): Do not append to
22406         variable.
22407         [generic sys/syscall.h] (common-generated): Likewise.
22408         * sysdeps/unix/errnos-tmpl.c: Remove file.
22409         * sysdeps/unix/errnos.awk: Likewise.
22410         * sysdeps/unix/ioctls-tmpl.c: Likewise.
22411         * sysdeps/unix/ioctls.awk: Likewise.
22412         * sysdeps/unix/mk-local_lim.c: Likewise.
22413         * sysdeps/unix/snarf-ioctls: Likewise.
22414
22415 2012-03-19  Richard Henderson  <rth@twiddle.net>
22416
22417         * sysdeps/i386/fpu/fenv_private.h: New file.
22418         * sysdeps/i386/fpu/math_private.h: Use it.
22419         (math_opt_barrier, math_force_eval): Remove.
22420         (libc_feholdexcept_setround_53bit): Remove.
22421         (libc_feupdateenv_53bit): Remove.
22422         * sysdeps/x86_64/fpu/math_private.h: Likewise.
22423         (math_opt_barrier, math_force_eval): Remove.
22424         (libc_feholdexcept): Remove.
22425         (libc_feholdexcept_setround): Remove.
22426         (libc_fetestexcept, libc_fesetenv): Remove.
22427         (libc_feupdateenv_test): Remove.
22428         (libc_feupdateenv, libc_feholdsetround): Remove.
22429         (libc_feresetround): Remove.
22430
22431         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
22432         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22433
22434         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
22435         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
22436         (libc_feupdateenv_testl): New.
22437         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
22438         (libc_feupdateenv_testf): New.
22439         (libc_feupdateenv): Use libc_feupdateenv_test.
22440         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
22441         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
22442
22443         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
22444         (libc_feholdsetroundf, libc_feholdsetroundl): New.
22445         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
22446         (libc_feresetround_noex): New.
22447         (libc_feresetround_noexf): New.
22448         (libc_feresetround_noexl): New.
22449         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
22450         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
22451         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
22452         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
22453         SET_RESTORE_ROUND.
22454         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
22455         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
22456         (__cos): Likewise.
22457         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
22458         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
22459         SET_RESTORE_ROUND_NOEX.
22460         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
22461         SET_RESTORE_ROUND_NOEXF.
22462         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
22463         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
22464         (libc_feholdsetroundf): New.
22465         (libc_feresetround, libc_feresetroundf): New.
22466
22467         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
22468         (libc_feholdexcept_setround_53bit): Convert from macro to function.
22469         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
22470
22471         * sysdeps/generic/math_private.h: Include <fenv.h>.
22472         (default_libc_feholdexcept): New.
22473         (default_libc_feholdexcept_setround): New.
22474         (default_libc_fesetenv, default_libc_feupdateenv): New.
22475         (libc_feholdexcept): Only define if undefined.
22476         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
22477         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
22478         (libc_feholdexcept_setroundl): Likewise.
22479         (libc_feholdexcept_setround_53bit): Likewise.
22480         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
22481         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
22482         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
22483         (libc_feupdateenv_53bit): Likewise.
22484         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
22485         (libc_feholdexcept): Convert from macro to inline function.
22486         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
22487         (libc_fesetenv, libc_feupdateenv): Likewise.
22488
22489         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
22490         not previously defined.
22491         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
22492         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
22493         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
22494         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
22495         * sysdeps/ieee754/flt-32/math_private.h: New file.
22496         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
22497         math_private.h below SET_FLOAT_WORD.
22498         (__isnan, __isinf_ns, __finite): Remove.
22499         (__isnanf, __isinf_nsf, __finitef): Remove.
22500
22501 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
22502
22503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22504
22505 2012-03-17  David S. Miller  <davem@davemloft.net>
22506
22507         [BZ #6471]
22508         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
22509         for 2.16.
22510
22511 2012-03-16  David S. Miller  <davem@davemloft.net>
22512
22513         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
22514         warnings.
22515
22516         [BZ #6471]
22517         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
22518         properly.
22519         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
22520         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
22521         sysdep_routines when subdir is sysvipc.
22522         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
22523         __getshmlba helper.
22524
22525         * sysdeps/sparc/fpu/libm-test/ulps: Update.
22526
22527 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22528
22529         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
22530         [__LP64__].
22531
22532 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22533
22534         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
22535         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
22536         (__lround): Renamed to ...
22537         (__llround): This.  Replace long int with long long int.
22538         Define lround functions as aliases of llround functions.
22539         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
22540
22541 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22542
22543         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
22544         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
22545         adresses to uintptr_t.  Replace "long int" and "unsigned long
22546         int" with "greg_t" on va_arg.
22547
22548 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22549
22550         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
22551         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
22552
22553         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
22554         Move e_machine check before EI_CLASS check.  Handle x32
22555         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
22556         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
22557         SKIP_EM_IA_64 and include
22558         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
22559
22560         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
22561         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
22562         (add_system_dir): New macro.
22563
22564         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
22565         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
22566
22567 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
22568
22569         [BZ #2551]
22570         [BZ #2552]
22571         [BZ #2553]
22572         [BZ #2554]
22573         [BZ #2562]
22574         [BZ #2563]
22575         [BZ #2565]
22576         [BZ #2566]
22577         [BZ #2576]
22578         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
22579         (y0): Likewise.
22580         * math/w_j0f.c (j0f): Likewise.
22581         (y0f): Likewise.
22582         * math/w_j0l.c (__j0l): Likewise.
22583         (__y0l): Likewise.
22584         * math/w_j1.c (j1): Likewise.
22585         (y1): Likewise.
22586         * math/w_j1f.c (j1f): Likewise.
22587         (y1f): Likewise.
22588         * math/w_j1l.c (__j1l): Likewise.
22589         (__y1l): Likewise.
22590         * math/w_jn.c (jn): Likewise.
22591         (yn): Likewise.
22592         * math/w_jnf.c (jnf): Likewise.
22593         (ynf): Likewise.
22594         * math/w_jnl.c (__jnl): Likewise.
22595         (__ynl): Likewise.
22596         * math/libm-test.inc (j0_test): Add more tests.
22597         (j1_test): Likewise.
22598         (jn_test): Likewise.  Add trailing semicolon to existing test.
22599         (y0_test): Likewise.
22600         (y1_test): Likewise.
22601         * sysdeps/i386/fpu/libm-test-ulps: Update.
22602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22603
22604         [BZ #13851]
22605         [BZ #13854]
22606         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
22607         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
22608         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
22609         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
22610         (__tanl): Set errno for infinite argument.
22611         * sysdeps/i386/fpu/mptan.c: Remove.
22612         * sysdeps/i386/fpu/s_tan.S: Likewise.
22613         * sysdeps/i386/fpu/s_tanl.S: Likewise.
22614         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
22615         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
22616         * math/libm-test.inc (tan_test): Add more tests and enable more
22617         tests for double and long double.
22618         * sysdeps/i386/fpu/libm-test-ulps: Update.
22619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22620
22621 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
22622
22623         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
22624         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
22625
22626 2012-03-16  Roland McGrath  <roland@hack.frob.com>
22627
22628         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
22629         * configure.in: Use it for both main tree and add-ons.
22630         * configure: Regenerated.
22631
22632 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22633
22634         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
22635
22636 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
22637
22638         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
22639         in comment.
22640
22641         [BZ #13851]
22642         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
22643         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
22644         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
22645         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
22646         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
22647         infinite argument.
22648         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
22649         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
22650         != 0 for prec == 2.
22651         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
22652         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
22653         * sysdeps/i386/fpu/s_cosl.S: Likewise.
22654         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
22655         * sysdeps/i386/fpu/s_sinl.S: Likewise.
22656         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
22657         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
22658         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
22659         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
22660         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
22661         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
22662         * math/libm-test.inc (cos_test): Add more tests and enable more
22663         tests for long double.
22664         (sin_test): Likewise.
22665         (sincos_test): Likewise.
22666         * sysdeps/i386/fpu/libm-test-ulps: Update.
22667         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22668
22669 2012-03-16  David S. Miller  <davem@davemloft.net>
22670
22671         * sysdeps/sparc/fpu/math_private.h: New file.
22672
22673 2012-03-15  David S. Miller  <davem@davemloft.net>
22674
22675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
22676         file.
22677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
22678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
22679         file.
22680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
22681         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
22682         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
22683         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
22684         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
22685         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
22686         sysdep routines.
22687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
22688
22689         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
22690         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
22691
22692         * sysdeps/sparc/sparc-ifunc.h: New file.
22693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
22694         sparc-ifunc.h
22695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22697         Likewise.
22698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22699         Likewise.
22700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
22701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22704         Likewise.
22705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
22707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
22709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
22710         Likewise.
22711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
22712         Likewise.
22713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
22716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
22717         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22718         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22719         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
22720         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
22721         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22722         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22723         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
22724         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
22725         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
22726         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
22727         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
22728         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22729         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
22730         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22731         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
22732         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22733         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
22734         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22735         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
22736         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22737
22738 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
22739
22740         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
22741         scaling.
22742         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22743
22744 2012-03-15  Andreas Jaeger  <aj@suse.de>
22745
22746         [BZ #13852]
22747         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
22748         ieee754/flt-32 implementation for sin, cos and sincos.
22749         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
22750         * sysdeps/i386/fpu/s_cosf.S: Likewise.
22751         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
22752         * sysdeps/i386/fpu/s_sinf.S: Likewise.
22753         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
22754         ieee754/flt-32 implementation for tan.
22755
22756         * math/libm-test.inc (cos_test): Enable some large input tests for
22757         float as well
22758         (sin_test): Likewise.
22759         (sincos_test): Likewise.
22760         (tan_test): Add tests for large input.
22761
22762         * sysdeps/i386/fpu/libm-test-ulps: Update.
22763
22764 2012-03-15  Andreas Jaeger  <aj@suse.de>
22765
22766         [BZ #13658]
22767         * math/libm-test.inc (cos_test): Add more test cases.
22768         (sin_test): Likewise.
22769         (sincos_test): Likewise.
22770
22771 2012-03-15  Andreas Jaeger  <aj@suse.de>
22772
22773         [BZ #13837]
22774         * math/libm-test.inc (cos_test): Add a test case for large input
22775         value.
22776         (sin_test): Likewise.
22777         (sincos_test): Likewise.
22778
22779 2012-03-15  Andreas Jaeger  <aj@suse.de>,
22780         Joseph Myers  <joseph@codesourcery.com>
22781
22782         [BZ #13658]
22783         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
22784         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
22785         * sysdeps/i386/fpu/branred.c: Likewise.
22786         * sysdeps/i386/fpu/dosincos.c: Likewise.
22787         * sysdeps/i386/fpu/mpa.c: Likewise.
22788         * sysdeps/i386/fpu/s_cos.S: Likewise.
22789         * sysdeps/i386/fpu/s_sin.S: Likewise.
22790         * sysdeps/i386/fpu/s_sincos.S: Likewise.
22791         * sysdeps/i386/fpu/sincos32.c: Likewise.
22792
22793         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
22794         Define.
22795         (libc_feupdateenv_53bit): Define.
22796         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
22797         Define.
22798         (libc_feupdateenv_53bit): Define.
22799
22800         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
22801         53 bit (without extend i386 double precision).
22802
22803         * math/libm-test.inc (sincos_test): Add tests for large input.
22804         (sin): Likewise.
22805         (cos): Likewise.
22806
22807         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
22808
22809 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
22810
22811         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22812
22813 2012-03-15  David S. Miller  <davem@davemloft.net>
22814
22815         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
22816         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
22817         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
22818         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
22819         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
22820         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
22821         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
22822         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
22823         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
22824         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
22825         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
22826         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
22827         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
22828         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
22829         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
22830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
22831         file.
22832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
22833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
22834         file.
22835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
22836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
22837         file.
22838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
22839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
22840         file.
22841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
22842         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
22843         fmin/fmax sysdep routines.
22844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
22845
22846 2012-03-14  David S. Miller  <davem@davemloft.net>
22847
22848         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
22849         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
22850         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
22851         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
22852         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
22853         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
22854         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
22855         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
22856         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
22857         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
22858         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
22859         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
22860         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
22861         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
22862         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
22863         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
22864         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
22865         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
22866         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
22867         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
22868         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
22869         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
22870         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
22871         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
22872         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
22873         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
22874         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
22875         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
22876         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
22877         routines.
22878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
22879         file.
22880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
22881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
22882         file.
22883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
22884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
22885         file.
22886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
22887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
22888         file.
22889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
22890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
22891         file.
22892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
22893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
22894         file.
22895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
22896         file.
22897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
22898         file.
22899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
22900         file.
22901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
22902         New file.
22903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
22904         file.
22905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
22906         file.
22907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
22908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
22909         file.
22910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
22911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
22912         file.
22913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
22914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
22915         file.
22916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
22917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
22918         VIS3 routines.
22919
22920         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
22921         New file.
22922
22923         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22924
22925         * sysdeps/sparc/configure.in: New file.
22926         * sysdeps/sparc/configure: Generate.
22927         * configure.in (libc_cv_sparc_as_vis3): Substitute.
22928         * configure: Regenerate.
22929         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
22930         * config.make.in (have-as-vis3): New.
22931         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
22932         available use -Av9d instead of -Av9a.
22933         * sysdeps/sparc/sparc64/Makefile: Likewise.
22934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
22935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
22936         New file.
22937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
22938         file.
22939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
22940         New file.
22941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
22942         file.
22943         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
22944         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
22945         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
22946         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
22947         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
22948
22949         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
22950         fzeros/fnegs to load 0x80000000 into a float register instead of
22951         using the stack.
22952         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
22953
22954 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
22955
22956         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22957         bits/syscall.h.
22958         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
22959         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
22960         ($(inst_includedir)/bits/syscall.h): Remove rule.
22961         ($(objpfx)bits/syscall.d): Include instead of
22962         $(objpfx)syscall-list.d.
22963         (generated): Change syscall-list.h and syscall-list.d to
22964         bits/syscall.h and bits/syscall.d.
22965
22966 2012-03-14  Roland McGrath  <roland@hack.frob.com>
22967
22968         [BZ #13846]
22969         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
22970
22971 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
22972
22973         [BZ #13841]
22974         * math/s_csqrt.c: Include <float.h>.
22975         (__csqrt): Scale large or subnormal inputs.
22976         * math/s_csqrtf.c: Likewise.
22977         * math/s_csqrtl.c: Likewise.
22978         * math/libm-test.inc (csqrt_test): Add more tests.
22979         * sysdeps/i386/fpu/libm-test-ulps: Update.
22980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22981
22982         [BZ #13840]
22983         * math/libm-test.inc (hypot_test): Add more tests.
22984
22985 2012-03-13  David S. Miller  <davem@davemloft.net>
22986
22987         [BZ #13840]
22988         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
22989         double-precision for the calculation instead of scaling.
22990
22991 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
22992
22993         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
22994         manipulate bits before adding and subtracting TWO52[sx].
22995         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
22996         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
22997         Likewise.
22998         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
22999
23000 2012-03-13  David S. Miller  <davem@davemloft.net>
23001
23002         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
23003         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
23004         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
23005         rtld-global-offsets.h
23006         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23007
23008         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
23009         large parameters.
23010
23011         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
23012
23013         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
23014         'err' in the ifdef scope in which it is actually used.
23015
23016         * nss/nss_db/db-init.c: Include string.h
23017
23018 2012-03-12  David S. Miller  <davem@davemloft.net>
23019
23020         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
23021         masking out of the most significant byte of random value used.
23022         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23023         Fix coding style in previous change.
23024
23025         * sysdeps/unix/sysv/linux/kernel-features.h
23026         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
23027         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
23028         expression.
23029         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
23030         later.
23031
23032 2012-03-11  David S. Miller  <davem@davemloft.net>
23033
23034         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
23035         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
23036         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
23037         for 'resultvar' otherwise things get truncated on 64-bit.
23038
23039         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23040         Fix masking out of the most significant byte of random value used.
23041
23042         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23043
23044 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
23045
23046         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23047
23048 2012-03-09  David S. Miller  <davem@davemloft.net>
23049
23050         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
23051         variables with appropriate CPP guards.
23052         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
23053         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
23054         on resulting framesize and the management of the outregs buffer for pltexit.
23055         Preserve floating point return values across _dl_call_pltexit call.
23056         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
23057         framesize and the management of the outregs buffer for pltexit.
23058         Preserve floating point return values across _dl_call_pltexit
23059         call.
23060         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
23061         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
23062         (print_exit): Fix format string for return register value.
23063
23064 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
23065
23066         * sunrpc/Makefile (others): Add rpcgen.
23067         ($(objpfx)rpcgen): Remove special build rule and dependency on
23068         libc.
23069         * sunrpc/rpcgen.c: New file.
23070
23071 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
23072
23073         [BZ #13673]
23074         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
23075         * stdio-common/bug-vfprintf-nargs.c: Likewise.
23076         * sysdeps/i386/crti.S: Likewise.
23077         * sysdeps/i386/crtn.S: Likewise.
23078         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
23079         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
23080         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
23081         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
23082         * sysdeps/sh/crti.S: Likewise.
23083         * sysdeps/sh/crtn.S: Likewise.
23084         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
23085
23086         [BZ #13673]
23087         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
23088         with URL.
23089         * locale/programs/locfile-kw.gperf: Likewise.
23090         * locale/programs/charmap-kw.h: Regenerated.
23091         * locale/programs/locfile-kw.h: Likewise.
23092
23093         [BZ #13673]
23094         * intl/plural.y: Replace FSF snail mail address with URL.
23095         * intl/plural.c: Regenerated.
23096
23097 2012-03-09  Richard Henderson  <rth@twiddle.net>
23098
23099         * include/math_private.h: Remove file.
23100         * math/math_private.h: Move file ...
23101         * sysdeps/generic/math_private.h: ... here.
23102
23103         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
23104         * sysdeps/powerpc/fpu/math_private.h: Likewise.
23105         * sysdeps/x86_64/fpu/math_private.h: Likewise.
23106
23107         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
23108         and <math_private.h>.
23109         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
23110         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
23111         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
23112         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
23113         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
23114         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
23115         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23116         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23117         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23118         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23119         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23120         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23121         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23122         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23123         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23124         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23125         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23126         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23127         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23128         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23129         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23130         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23131         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23132         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23133         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
23134         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23135         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23136         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23137         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23138         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
23139         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23140         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23141         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
23142         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23143         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
23144         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
23145         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23146         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
23147         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
23148         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23149         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
23150         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
23151         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
23152         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
23153         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
23154         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
23155         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
23156         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
23157         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23158         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
23159         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
23160         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
23161         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
23162         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
23163         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
23164         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23165         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23166         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
23167         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
23168         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
23169         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23170         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
23171         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23172         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
23173         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
23174         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23175         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23176         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23177         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
23178         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
23179         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
23180         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23181         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
23182         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23183         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
23184         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
23185         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
23186         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
23187         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
23188         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
23189         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
23190         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
23191         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
23192         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23193         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23194         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
23195         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
23196         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
23197         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23198         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23199         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23200         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23201         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23202         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23203         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23204         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23205         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23206         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23207         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23208         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23209         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23210         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23211         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23212         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23213         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
23214         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23215         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23216         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23217         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
23218         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
23219         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
23220         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
23221         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23222         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
23223         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
23224         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23225         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
23226         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
23227         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
23228         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23229         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
23230         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
23231         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23232         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
23233         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
23234         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
23235         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
23236         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
23237         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
23238         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
23239         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
23240         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23241         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
23242         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
23243         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
23244         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
23245         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23246         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
23247         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
23248         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23249         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23250         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
23251         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
23252         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
23253         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
23254         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23255         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
23256         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
23257         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
23258         * sysdeps/ieee754/k_standard.c: Likewise.
23259         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23260         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23261         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23262         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23263         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23264         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23265         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23266         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23267         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23268         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23269         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23270         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23271         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23272         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23273         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23274         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23275         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
23276         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23277         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23278         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
23279         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
23280         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
23281         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
23282         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
23283         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
23284         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23285         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
23286         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
23287         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
23288         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
23289         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
23290         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
23291         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
23292         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
23293         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
23294         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
23295         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
23296         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
23297         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
23298         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
23299         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
23300         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
23301         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
23302         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
23303         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
23304         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
23305         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
23306         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
23307         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
23308         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
23309         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
23310         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
23311         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
23312         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
23313         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
23314         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
23315         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
23316         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
23317         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
23318         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
23319         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
23320         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
23321         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23322         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23323         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23324         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23325         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23326         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23327         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23328         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23329         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23330         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23331         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23332         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23333         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23334         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23335         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
23336         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23337         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23338         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
23339         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
23340         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
23341         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
23342         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
23343         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
23344         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23345         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
23346         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23347         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23348         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
23349         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
23350         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
23351         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23352         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
23353         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23354         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
23355         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
23356         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23357         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23358         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
23359         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
23360         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23361         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
23362         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
23363         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
23364         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
23365         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23366         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23367         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
23368         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
23369         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
23370         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
23371         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23372         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23373         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23374         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23375         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23376         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23377         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23378         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23379         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23380         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23381         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23382         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23383         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23384         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
23385         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
23386         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
23387         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
23388         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
23389         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
23390         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
23391         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
23392         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
23393         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
23394         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
23395         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
23396         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
23397         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
23398         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
23399         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
23400         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
23401         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
23402         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
23403         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
23404         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
23405         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
23406         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
23407         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
23408         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
23409         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
23410         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23411         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
23412         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
23413         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
23414         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
23415         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
23416         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
23417         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
23418         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
23419         * sysdeps/ieee754/s_lib_version.c: Likewise.
23420         * sysdeps/ieee754/s_matherr.c: Likewise.
23421         * sysdeps/ieee754/s_signgam.c: Likewise.
23422         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23423         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23424         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
23425         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
23426         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
23427         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
23428         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
23429         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
23430         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
23431         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
23432         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
23433         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
23434         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
23435         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
23436         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
23437         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23438         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23439         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23440         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23441         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
23442         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
23443
23444 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
23445
23446         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
23447         * sunrpc/rpc_main.c: Likewise.
23448         * sunrpc/rpc_svcout.c: Likewise.
23449
23450 2012-03-09  David S. Miller  <davem@davemloft.net>
23451
23452         * include/math_private.h: New file.
23453
23454 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
23455
23456         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
23457         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
23458         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
23459         from <bits/socket_type.h>.
23460         (enum __socket_type): Don't define here.
23461         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
23462         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23463         bits/socket_type.h.
23464
23465         [BZ #13566]
23466         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
23467         checking __USE_GNU.
23468
23469         * Makerules ($(inst_includedir)/%.h): New rule.
23470         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
23471         (install-others): Remove variable setting.
23472         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
23473
23474 2012-03-08  Richard Henderson  <rth@twiddle.net>
23475
23476         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
23477         from macro to inline function; merge with the
23478         !__LIBC_INTERNAL_MATH_INLINES version.
23479         (__ieee754_sqrtf): Likewise.
23480
23481         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
23482         to inline function.
23483         (__rintf, __floor, __floorf): Likewise.
23484
23485         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
23486         macro to inline function.
23487         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
23488
23489         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
23490         not <math/math_private.h>.
23491
23492 2012-03-08  David S. Miller  <davem@davemloft.net>
23493
23494         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
23495         copyright year.
23496         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
23497
23498 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
23499
23500         * resolv/gai_misc.c (handle_requests): Fix struct timespec
23501         normalization.
23502         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
23503         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23504
23505 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
23506
23507         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
23508         be defined individually, they must be defined as a block.  Define
23509         S for printing a string instead of hidint the different by using a
23510         macro for adding the 'l'.
23511         * stdio-common/tst-fphex-wide.c: Adjust.
23512
23513 2012-03-07  Marek Polacek  <polacek@redhat.com>
23514
23515         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
23516
23517 2012-03-08  Marek Polacek  <polacek@redhat.com>
23518
23519         [BZ #13806]
23520         * stdio-common/Makefile (tests): Add tst-fphex-wide.
23521         * stdio-common/tst-fphex.c: Define a few macros to make the
23522         test reusable.  Use them.
23523         * stdio-common/tst-fphex-wide.c: New file.
23524
23525 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
23526
23527         [BZ #6911]
23528         * manual/macros.texi (gnusystems): New macro.
23529         (nongnusystems): Likewise.
23530         (gnulinuxhurdsystems): Likewise.
23531         (gnuhurdsystems): Likewise..
23532         (gnulinuxsystems): Likewise.
23533         * manual/charset.texi: Use new macros or @theglibc{} to refer to
23534         variants of the GNU system, not "GNU system".
23535         * manual/conf.texi: Likewise.
23536         * manual/errno.texi: Likewise.  Update example of errno macro
23537         expansion.
23538         * manual/filesys.texi: Likewise.
23539         (getumask): Document as specific to GNU/Hurd.
23540         * manual/install.texi: Likewise.  Reword some references to
23541         GNU/Linux.
23542         * manual/intro.texi: Likewise.
23543         * manual/io.texi: Likewise.
23544         (File Name Portability): Detail which constraints are inapplicable
23545         to all GNU systems and which are only inapplicable to GNU/Hurd.
23546         * manual/job.texi: Likewise.
23547         * manual/llio.texi: Likewise.
23548         (O_NOCTTY): Document as present on GNU/Linux.
23549         * manual/maint.texi: Likewise.
23550         * manual/memory.texi: Likewise.
23551         * manual/pattern.texi: Likewise.
23552         * manual/pipe.texi: Likewise.
23553         * manual/process.texi: Likewise.
23554         * manual/resource.texi: Likewise.
23555         (RUSAGE_CHILDREN): Remove statement about specifying a particular
23556         child on GNU/Hurd.
23557         * manual/setjmp.texi: Likewise.
23558         * manual/signal.texi: Likewise.
23559         * manual/startup.texi: Likewise.
23560         * manual/stdio.texi: Likewise.
23561         * manual/terminal.texi: Likewise.
23562         (ONLCR): Document as POSIX.
23563         (OXTABS): Document availability on GNU/Linux as XTABS.
23564         (ONOEOT): Document availability separately from other bits.
23565         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
23566         * manual/time.texi: Likewise.
23567         * manual/users.texi: Likewise.
23568         * INSTALL: Regenerated.
23569         * sysdeps/gnu/errlist.c: Regenerated.
23570
23571         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
23572         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
23573         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
23574         puts.
23575         * configure: Regenerated.
23576
23577 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
23578
23579         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
23580         default includes instead of AC_HEADER_CHECK.
23581         * sysdeps/i386/configure: Regenerated.
23582
23583         [BZ #10716]
23584         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
23585         * math/s_cacoshf.c (__cacoshf): Likewise.
23586         * math/s_cacoshl.c (__cacoshl): Likewise.
23587         * math/s_casinh.c (__casinh): Set signs of result from argument.
23588         * math/s_casinhf.c (__casinhf): Likewise.
23589         * math/s_casinhl.c (__casinhl): Likewise.
23590         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
23591         (casinh_test): Add more tests.
23592         * sysdeps/i386/fpu/libm-test-ulps: Update.
23593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23594
23595 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
23596
23597         * po/zh_TW.po: Update from translation team.
23598
23599         * login/Makefile (distribute): Remove variable.
23600         * catgets/Makefile: Likewise.
23601         * mach/Makefile: Likewise.
23602         * malloc/Makefile: Likewise.
23603         * misc/Makefile: Likewise.
23604         * iconv/Makefile: Likewise.
23605         * nscd/Makefile: Likewise.
23606         * hurd/Makefile: Likewise.
23607         * manual/Makefile: Likewise.
23608         * locale/Makefile: Likewise.
23609         * intl/Makefile: Likewise.
23610         * conform/Makefile: Likewise.
23611         * nss/Makefile: Likewise.
23612         * time/Makefile: Likewise.
23613         * soft-fp/Makefile: Likewise.
23614         * dirent/Makefile: Likewise.
23615         * gmon/Makefile: Likewise.
23616         * po/Makefile: Likewise.
23617         * rt/Makefile: Likewise.
23618         * socket/Makefile: Likewise.
23619         * math/Makefile: Likewise.
23620         * signal/Makefile: Likewise.
23621         * debug/Makefile: Likewise.
23622         * elf/Makefile: Likewise.
23623         * timezone/Makefile: Likewise.
23624         * stdlib/Makefile: Likewise.
23625         * iconvdata/Makefile: Likewise.
23626         * sunrpc/Makefile: Likewise.
23627         * io/Makefile: Likewise.
23628         * argp/Makefile: Likewise.
23629         * inet/Makefile: Likewise.
23630         * hesiod/Makefile: Likewise.
23631         * grp/Makefile: Likewise.
23632         * csu/Makefile: Likewise.
23633         * wctype/Makefile: Likewise.
23634         * crypt/Makefile: Likewise.
23635         * libio/Makefile: Likewise.
23636         * string/Makefile: Likewise.
23637         * nis/Makefile: Likewise.
23638         * resolv/Makefile: Likewise.
23639         * stdio-common/Makefile: Likewise.
23640         * wcsmbs/Makefile: Likewise.
23641         * dlfcn/Makefile: Likewise.
23642         * posix/Makefile: Likewise.
23643
23644         [BZ #6959]
23645         * timezone/Makefile: Don't install timezone files, just the programs
23646         and scripts.
23647
23648 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
23649
23650         * nss/databases.def: Add missing gshadow entry.
23651
23652         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
23653
23654 2012-03-06  Marek Polacek  <polacek@redhat.com>
23655
23656         [BZ #13726]
23657         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
23658         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
23659         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
23660         * stdio-common/tst-long-dbl-fphex.c: New file.
23661
23662 2012-03-06  David S. Miller  <davem@davemloft.net>
23663
23664         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23665         (set_obp_int): New function.
23666         (get_obp_int): New function.
23667         (__get_clockfreq_via_dev_openprom): Likewise.
23668         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
23669         Avoid unused variable warnings on 'val' and use builtin_expect.
23670         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
23671         __builtin_expect.
23672         (INLINE_CLONE_SYSCALL): Likewise.
23673
23674 2012-03-05  David S. Miller  <davem@davemloft.net>
23675
23676         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23677
23678 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
23679
23680         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23681
23682         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
23683         only for |x| >= 40.
23684         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23685
23686 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
23687
23688         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
23689         Replace gettimeofday with __vdso_gettimeofday.
23690
23691         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23692         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
23693         __vdso_clock_gettime and __vdso_getcpu.
23694
23695         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
23696         time with __vdso_time.
23697
23698 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
23699
23700         * manual/lang.texi (size_t): Note types to which size_t may be
23701         equivalent with the GNU C Library, but do not describe when
23702         differences between them are significant.
23703
23704 2012-03-05  Andreas Jaeger  <aj@suse.de>
23705
23706         * sysdeps/i386/fpu/libm-test-ulps: Update.
23707
23708 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
23709
23710         [BZ #3976]
23711         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
23712         (__ieee754_pow): Save and restore rounding mode and use
23713         round-to-nearest for main computations.
23714         * math/libm-test.inc (pow_test_tonearest): New function.
23715         (pow_test_towardzero): Likewise.
23716         (pow_test_downward): Likewise.
23717         (pow_test_upward): Likewise.
23718         (main): Call the new functions.
23719         * sysdeps/i386/fpu/libm-test-ulps: Update.
23720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23721
23722         [BZ #3976]
23723         * math/libm-test.inc (cosh_test_tonearest): New function.
23724         (cosh_test_towardzero): Likewise.
23725         (cosh_test_downward): Likewise.
23726         (cosh_test_upward): Likewise.
23727         (sinh_test_tonearest): Likewise.
23728         (sinh_test_towardzero): Likewise.
23729         (sinh_test_downward): Likewise.
23730         (sinh_test_upward): Likewise.
23731         (main): Call the new functions.
23732         * sysdeps/i386/fpu/libm-test-ulps: Update.
23733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23734
23735 2012-03-05  Tom de Vries  <tom@codesourcery.com>
23736
23737         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
23738         default stack guard is set in last bytes.
23739         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
23740
23741 2012-03-05  Kees Cook  <keescook@chromium.org>
23742
23743         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
23744
23745         [BZ #13656]
23746         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
23747         possibly allocate from heap instead of stack.
23748         * stdio-common/bug-vfprintf-nargs.c: New file.
23749         * stdio-common/Makefile (tests): Add nargs overflow test.
23750
23751 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
23752
23753         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23754
23755 2012-03-03  Marek Polacek  <polacek@redhat.com>
23756
23757         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
23758         * math/math_private.h: Likewise.
23759         * stdlib/tst-strtod.c: Likewise.
23760         * sysdeps/i386/i486/bits/atomic.h: Likewise.
23761         * sysdeps/x86_64/bits/atomic.h: Likewise.
23762
23763 2012-03-02  David S. Miller  <davem@davemloft.net>
23764
23765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
23766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
23767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
23768         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
23769         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
23770         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
23771         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
23772         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
23773
23774 2012-03-02  Roland McGrath  <roland@hack.frob.com>
23775
23776         [BZ #13792]
23777         * manual/examples/README: New file, says the example source files
23778         can be used under GPL>=2.
23779         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
23780         line containing just "*/".
23781         * manual/examples/add.c: Add copyright header (GPL>=2).
23782         * manual/examples/argp-ex1.c: Likewise.
23783         * manual/examples/argp-ex2.c: Likewise.
23784         * manual/examples/argp-ex3.c: Likewise.
23785         * manual/examples/argp-ex4.c: Likewise.
23786         * manual/examples/atexit.c: Likewise.
23787         * manual/examples/db.c: Likewise.
23788         * manual/examples/dir.c: Likewise.
23789         * manual/examples/dir2.c: Likewise.
23790         * manual/examples/execinfo.c: Likewise.
23791         * manual/examples/filecli.c: Likewise.
23792         * manual/examples/filesrv.c: Likewise.
23793         * manual/examples/fmtmsgexpl.c: Likewise.
23794         * manual/examples/genpass.c: Likewise.
23795         * manual/examples/inetcli.c: Likewise.
23796         * manual/examples/inetsrv.c: Likewise.
23797         * manual/examples/isockad.c: Likewise.
23798         * manual/examples/longopt.c: Likewise.
23799         * manual/examples/memopen.c: Likewise.
23800         * manual/examples/memstrm.c: Likewise.
23801         * manual/examples/mkfsock.c: Likewise.
23802         * manual/examples/mkisock.c: Likewise.
23803         * manual/examples/mygetpass.c: Likewise.
23804         * manual/examples/pipe.c: Likewise.
23805         * manual/examples/popen.c: Likewise.
23806         * manual/examples/rprintf.c: Likewise.
23807         * manual/examples/search.c: Likewise.
23808         * manual/examples/select.c: Likewise.
23809         * manual/examples/setjmp.c: Likewise.
23810         * manual/examples/sigh1.c: Likewise.
23811         * manual/examples/sigusr.c: Likewise.
23812         * manual/examples/stpcpy.c: Likewise.
23813         * manual/examples/strdupa.c: Likewise.
23814         * manual/examples/strftim.c: Likewise.
23815         * manual/examples/strncat.c: Likewise.
23816         * manual/examples/subopt.c: Likewise.
23817         * manual/examples/swapcontext.c: Likewise.
23818         * manual/examples/termios.c: Likewise.
23819         * manual/examples/testopt.c: Likewise.
23820         * manual/examples/testpass.c: Likewise.
23821         * manual/examples/timeval_subtract.c: Likewise.
23822
23823         [BZ #13792]
23824         * manual/time.texi (Elapsed Time): Move timeval_subtract example
23825         function to ...
23826         * manual/timeval_subtract.c.texi: ... here, new file.
23827
23828 2012-03-02  David S. Miller  <davem@davemloft.net>
23829
23830         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
23831
23832 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
23833
23834         [BZ #3976]
23835         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
23836         (__sin): Save and restore rounding mode and use round-to-nearest
23837         for all computations.
23838         (__cos): Save and restore rounding mode and use round-to-nearest
23839         for all computations.
23840         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
23841         <fenv.h>.
23842         (tan): Save and restore rounding mode and use round-to-nearest for
23843         all computations.
23844         * math/libm-test.inc (cos_test_tonearest): New function.
23845         (cos_test_towardzero): Likewise.
23846         (cos_test_downward): Likewise.
23847         (cos_test_upward): Likewise.
23848         (sin_test_tonearest): Likewise.
23849         (sin_test_towardzero): Likewise.
23850         (sin_test_downward): Likewise.
23851         (sin_test_upward): Likewise.
23852         (tan_test_tonearest): Likewise.
23853         (tan_test_towardzero): Likewise.
23854         (tan_test_downward): Likewise.
23855         (tan_test_upward): Likewise.
23856         (main): Call the new functions.
23857         * sysdeps/i386/fpu/libm-test-ulps: Update.
23858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23859
23860         [BZ #10135]
23861         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
23862         small n, then large n, before computing and testing k+n.
23863         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
23864         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
23865         Likewise.
23866         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
23867         Likewise.
23868         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
23869         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
23870         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
23871         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
23872         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
23873         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
23874         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
23875         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
23876         * math/libm-test.inc (scalbn_test): Add more tests.
23877         (scalbln_test): Likewise.
23878
23879         * manual/filesys.texi (mode_t): Describe constraints on size and
23880         signedness, not exact equivalence to a particular type.
23881         (ino_t): Likewise.
23882         (ino64_t): Likewise.
23883         (dev_t): Likewise.
23884         (nlink_t): Likewise.
23885         (blkcnt_t): Likewise.
23886         (blkcnt64_t): Likewise.
23887         * manual/llio.texi (off_t): Likewise.
23888
23889         [BZ #3976]
23890         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
23891         (__ieee754_exp): Save and restore rounding mode and use
23892         round-to-nearest for all computations.
23893         * math/libm-test.inc (exp_test_tonearest): New function.
23894         (exp_test_towardzero): Likewise.
23895         (exp_test_downward): Likewise.
23896         (exp_test_upward): Likewise.
23897         (main): Call the new functions.
23898         * sysdeps/i386/fpu/libm-test-ulps: Update.
23899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23900
23901 2012-03-01  Chris Demetriou  <cgd@google.com>
23902
23903         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
23904         have predictable order.
23905
23906 2012-03-01  David S. Miller  <davem@davemloft.net>
23907
23908         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
23909
23910         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
23911         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
23912         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
23913         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
23914
23915         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
23916         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
23917         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
23918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
23919         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
23920         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
23921         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
23922         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
23923         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
23924
23925         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23926
23927         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
23928         * sysdeps/sparc/fpu/libm-test-ulps: to here.
23929         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
23930
23931         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
23932         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
23933         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
23934         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
23935         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
23936         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
23937         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
23938         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
23939         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
23940         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
23941         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
23942         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
23943         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23944         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
23945         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23946         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23947         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
23948         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
23949         * sysdeps/sparc/elf/configure: Regenerated.
23950
23951 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
23952
23953         * configure.in (AS, LD): Require binutils 2.20 or later.
23954         * configure: Regenerated.
23955         * manual/install.texi (Tools for Compilation): Give binutils 2.20
23956         as required minimum version.
23957         * INSTALL: Regenerated.
23958
23959         [BZ #2541]
23960         [BZ #4108]
23961         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
23962         before squaring exponent.
23963         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
23964         bottom long double and 27 bits of top long double before squaring
23965         exponent.
23966         * math/libm-test.inc (erfc_test): Add more tests.
23967         * sysdeps/i386/fpu/libm-test-ulps: Update.
23968         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23970
23971 2012-03-01  Kai Tietz  <ktietz@redhat.com>
23972
23973         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
23974         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
23975         containing bit-fields.
23976         * soft-fp/extended.h (_FP_UNION_E): Likewise.
23977         * soft-fp/single.h (_FP_UNION_S): Likewise.
23978         * soft-fp/double.h (_FP_UNION_D): Likewise.
23979
23980 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
23981
23982         [BZ #13786]
23983         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
23984         not include ../strcmp.S.
23985         [USE_AS_STRNCASECMP_L]: Likewise.
23986         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
23987         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
23988         * sysdeps/i386/i686/multiarch/strncase_l-c.c
23989         (__strncasecmp_l_ia32): Define as alias to
23990         __strncasecmp_l_nonascii.
23991
23992         [BZ #5794]
23993         * math/libm-test.inc (expm1_test): Add test for bug 5794.
23994         * sysdeps/i386/fpu/libm-test-ulps: Update.
23995         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23996
23997         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
23998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23999
24000 2012-02-29  Jeff Law  <law@redhat.com>
24001
24002         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
24003         out of bounds read.
24004
24005 2012-02-29  Marek Polacek  <polacek@redhat.com>
24006
24007         [BZ #13706]
24008         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
24009         * elf/Makefile: Add rules to run tst-unused-dep.out.
24010
24011 2012-02-28  David S. Miller  <davem@davemloft.net>
24012
24013         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
24014         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
24015         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
24016         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
24017         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
24018         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
24019
24020 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
24021
24022         * math/libm-test.inc (llround_test): Move one test from
24023         lround_test.  Use TEST_f_L in moved test.
24024         (lround_test): Move misplaced test to llround_test.  Add testcase
24025         from bug 2561.
24026
24027 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
24028
24029         * sysdeps/x86_64/fpu/e_expf.S: New file.
24030         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
24031
24032 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
24033
24034         [BZ #13637]
24035         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
24036         of remain_len that may cause incomplete multi-byte character and
24037         false match.
24038         * posix/bug-regex33.c: New file.
24039         * posix/Makefile (tests): Add bug-regex33.
24040
24041 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
24042
24043         * manual/macros.texi: New file.
24044         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
24045         * manual/libc.texinfo: Include macros.texi.
24046         * manual/creatute.texi: Likewise.
24047         * manual/install.texi: Likewise.
24048         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
24049         @glibcadj{} in references to the GNU C Library.
24050         * manual/charset.texi: Likewise.
24051         * manual/conf.texi: Likewise.
24052         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
24053         when not using those macros.
24054         * manual/creature.texi: Likewise.
24055         * manual/crypt.texi: Likewise.
24056         * manual/errno.texi: Likewise.
24057         * manual/filesys.texi: Likewise.
24058         * manual/header.texi: Likewise.
24059         * manual/install.texi: Likewise.
24060         * manual/intro.texi: Likewise.
24061         * manual/io.texi: Likewise.
24062         * manual/job.texi: Likewise.
24063         * manual/lang.texi: Likewise.
24064         * manual/libc.texiinfo: Likewise.
24065         * manual/llio.texi: Likewise.
24066         * manual/locale.texi: Likewise.
24067         * manual/maint.texi: Likewise.
24068         * manual/math.texi: Likewise.
24069         * manual/memory.texi: Likewise.
24070         * manual/message.texi: Likewise.
24071         * manual/nss.texi: Likewise.
24072         * manual/pattern.texi: Likewise.
24073         * manual/process.texi: Likewise.
24074         * manual/resource.texi: Likewise.
24075         * manual/search.texi: Likewise.
24076         * manual/setjmp.texi: Likewise.
24077         * manual/signal.texi: Likewise.
24078         * manual/socket.texi: Likewise.
24079         * manual/startup.texi: Likewise.
24080         * manual/stdio.texi: Likewise.
24081         * manual/string.texi: Likewise.
24082         * manual/sysinfo.texi: Likewise.
24083         * manual/syslog.texi: Likewise.
24084         * manual/terminal.texi: Likewise.
24085         * manual/time.texi: Likewise.
24086         * manual/users.texi: Likewise.
24087         * INSTALL: Regenerated.
24088         * NOTES: Regenerated.
24089         * sysdeps/gnu/errlist.c: Regenerated.
24090
24091 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
24092
24093         * include/dirent.h: Include <dirstream.h> before
24094         <dirent/dirent.h>.
24095
24096 2012-02-28  David S. Miller  <davem@davemloft.net>
24097
24098         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
24099         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
24100         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
24101         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
24102
24103 2012-02-27  David S. Miller  <davem@davemloft.net>
24104
24105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
24106         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
24107         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
24108         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
24109
24110         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
24111         frame pointer instead of stack pointer relative arg slot.
24112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
24113         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
24114         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
24115
24116 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
24117
24118         [BZ #3992]
24119         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
24120
24121 2012-02-27  David S. Miller  <davem@davemloft.net>
24122
24123         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
24124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
24125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
24126         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
24127         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
24128         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
24129         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
24130         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
24131
24132 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
24133
24134         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
24135         later.  Allow versions 5-9.
24136         * configure: Regenerated.
24137         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
24138         required minimum version and 4.6 as recommended version.  Do not
24139         mention bugs in GCC 2.7 and 2.8.
24140         * INSTALL: Regenerated.
24141
24142 2012-02-27  David S. Miller  <davem@davemloft.net>
24143
24144         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
24145         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
24146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
24147         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
24148         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
24149         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
24150         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
24151         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
24152
24153         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
24154         manipulate bits before adding and subtracting TWO112[sx].
24155         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24156
24157 2012-02-27  Roland McGrath  <roland@hack.frob.com>
24158
24159         [BZ #13775]
24160         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
24161         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
24162         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
24163         being in POSIX, because they are in 1003.1-2008.
24164
24165         * rt/tst-aio.c: Include <fcntl.h>.
24166         * rt/tst-aio7.c: Likewise.
24167         * rt/tst-aio64.c: Likewise.
24168
24169         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
24170
24171 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
24172
24173         * manual/install.texi (--with-headers): Describe headers as
24174         interface headers, not private headers.
24175         (Specific advice for GNU/Linux systems): Describe use of headers
24176         from "make headers_install", not private headers from older
24177         kernels.
24178         * INSTALL: Regenerated.
24179         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
24180         Change to 2.6.19.
24181         * sysdeps/unix/sysv/linux/configure: Regenerated.
24182
24183         * manual/llio.texi (fclean): Remove documentation.
24184
24185         * manual/Makefile (libc-texi-generated): New variable.  Include
24186         version.texi.
24187         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
24188         $(libc-texi-generated), not duplicated list of files.
24189         (version.texi, stamp-version): New rules.
24190         (realclean): Remove $(libc-texi-generated), not individual files
24191         from that list.  Do not remove dir-add.texinfo.
24192         * manual/libc.texinfo: Comment out uses of edition numbers and
24193         references to printed manual.  Remove last-updated dates.
24194         (EDITION): Comment out.
24195         (ISBN): Likewise.
24196         (VERSION, UPDATED): Remove.
24197         (version.texi): Include.
24198
24199 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
24200
24201         * sysdeps/posix/spawni.c: Include <signal.h>.
24202         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
24203         * sysdeps/pthread/aio_fsync.c: Likewise.
24204
24205 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
24206
24207         * conform/Makefile (tests): Run only when not cross-compiling and
24208         when fast-check is not defined.
24209
24210         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
24211         * conform/data/limits.h-data: Fixes for POSIX2008.
24212         * conform/run-conformtest.sh: Run all tests.
24213         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
24214         headers.
24215         * include/bits/dlfcn.h: Likewise.
24216         * include/langinfo.h: Likewise.
24217         * include/monetary.h: Likewise.
24218         * include/sys/poll.h: Likewise.
24219
24220         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
24221         for __USE_GNU.
24222         * posix/spawn.h: Define __need_sigset_t.
24223         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
24224         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
24225         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
24226         to get sigevent_t only.
24227         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
24228         only for __USE_GNU.
24229         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24230         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
24231         process_vm_writev only for __USE_GNU.
24232         * termios/termios.h: Declare tcgetsid also for POSIX2008.
24233
24234         * conform/Makefile: For now ignore errors from run-conformtest.
24235         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
24236         POSIX to avoid namespace pollution.  Don't prepend headers.
24237         * conform/data/aio.h-data: Fixes for POSIX testing.
24238         * conform/data/fcntl.h-data: Likewise.
24239         * conform/data/glob.h-data: Likewise.
24240         * conform/data/grp.h-data: Likewise.
24241         * conform/data/pthread.h-data: Likewise.
24242         * conform/data/pwd.h-data: Likewise.
24243         * conform/data/signal.h-data: Likewise.
24244         * conform/data/spawn.h-data: Likewise.
24245         * conform/data/stdio.h-data: Likewise.
24246         * conform/data/stdlib.h-data: Likewise.
24247         * conform/data/stropts.h-data: Likewise.
24248         * conform/data/sys/mman.h-data: Likewise.
24249         * conform/data/sys/stat.h-data: Likewise.
24250         * conform/data/sys/types.h-data: Likewise.
24251         * conform/data/sys/wait.h-data: Likewise.
24252         * conform/data/time.h-data: Likewise.
24253         * conform/data/unistd.h-data: Likewise.
24254         * conform/data/utime.h-data: Likewise.
24255
24256         * io/sys/stat.h: fchmod was always in POSIX.
24257         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
24258         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
24259         * rt/aio.h: Define __need_timespec before including <time.h>.
24260         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
24261         struct.  Add forward declaration of pthread_attr_t and use it in
24262         sigevent.
24263         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
24264         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
24265         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
24266         always remove CLK_TCK definition.
24267
24268 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
24269
24270         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
24271
24272 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
24273
24274         * conform/run-conformtest.sh: New file.
24275         * conform/Makefile: Run run-conformtest for tests.
24276         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
24277         support.
24278
24279         * conform/data/uchar.h-data: New file.
24280         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
24281         * conform/data/arpa/inet.h-data: Likewise.
24282         * conform/data/assert.h-data: Likewise.
24283         * conform/data/complex.h-data: Likewise.
24284         * conform/data/cpio.h-data: Likewise.
24285         * conform/data/ctype.h-data: Likewise.
24286         * conform/data/dirent.h-data: Likewise.
24287         * conform/data/dlfcn.h-data: Likewise.
24288         * conform/data/errno.h-data: Likewise.
24289         * conform/data/fcntl.h-data: Likewise.
24290         * conform/data/float.h-data: Likewise.
24291         * conform/data/fmtmsg.h-data: Likewise.
24292         * conform/data/fnmatch.h-data: Likewise.
24293         * conform/data/ftw.h-data: Likewise.
24294         * conform/data/glob.h-data: Likewise.
24295         * conform/data/grp.h-data: Likewise.
24296         * conform/data/iconv.h-data: Likewise.
24297         * conform/data/inttypes.h-data: Likewise.
24298         * conform/data/langinfo.h-data: Likewise.
24299         * conform/data/libgen.h-data: Likewise.
24300         * conform/data/limits.h-data: Likewise.
24301         * conform/data/locale.h-data: Likewise.
24302         * conform/data/math.h-data: Likewise.
24303         * conform/data/monetary.h-data: Likewise.
24304         * conform/data/mqueue.h-data: Likewise.
24305         * conform/data/ndbm.h-data: Likewise.
24306         * conform/data/net/if.h-data: Likewise.
24307         * conform/data/netdb.h-data: Likewise.
24308         * conform/data/netinet/in.h-data: Likewise.
24309         * conform/data/nl_types.h-data: Likewise.
24310         * conform/data/poll.h-data: Likewise.
24311         * conform/data/pthread.h-data: Likewise.
24312         * conform/data/pwd.h-data: Likewise.
24313         * conform/data/regex.h-data: Likewise.
24314         * conform/data/sched.h-data: Likewise.
24315         * conform/data/search.h-data: Likewise.
24316         * conform/data/semaphore.h-data: Likewise.
24317         * conform/data/setjmp.h-data: Likewise.
24318         * conform/data/signal.h-data: Likewise.
24319         * conform/data/spawn.h-data: Likewise.
24320         * conform/data/stdarg.h-data: Likewise.
24321         * conform/data/stdio.h-data: Likewise.
24322         * conform/data/stdlib.h-data: Likewise.
24323         * conform/data/string.h-data: Likewise.
24324         * conform/data/strings.h-data: Likewise.
24325         * conform/data/stropts.h-data: Likewise.
24326         * conform/data/sys/ipc.h-data: Likewise.
24327         * conform/data/sys/mman.h-data: Likewise.
24328         * conform/data/sys/msg.h-data: Likewise.
24329         * conform/data/sys/resource.h-data: Likewise.
24330         * conform/data/sys/select.h-data: Likewise.
24331         * conform/data/sys/sem.h-data: Likewise.
24332         * conform/data/sys/shm.h-data: Likewise.
24333         * conform/data/sys/socket.h-data: Likewise.
24334         * conform/data/sys/stat.h-data: Likewise.
24335         * conform/data/sys/statvfs.h-data: Likewise.
24336         * conform/data/sys/time.h-data: Likewise.
24337         * conform/data/sys/timeb.h-data: Likewise.
24338         * conform/data/sys/times.h-data: Likewise.
24339         * conform/data/sys/types.h-data: Likewise.
24340         * conform/data/sys/uio.h-data: Likewise.
24341         * conform/data/sys/un.h-data: Likewise.
24342         * conform/data/sys/utsname.h-data: Likewise.
24343         * conform/data/sys/wait.h-data: Likewise.
24344         * conform/data/syslog.h-data: Likewise.
24345         * conform/data/tar.h-data: Likewise.
24346         * conform/data/termios.h-data: Likewise.
24347         * conform/data/utime.h-data: Likewise.
24348         * conform/data/utmpx.h-data: Likewise.
24349         * conform/data/varargs.h-data: Likewise.
24350         * conform/data/wchar.h-data: Likewise.
24351         * conform/data/wctype.h-data: Likewise.
24352         * conform/data/wordexp.h-data: Likewise.
24353
24354         * include/stropts.h: New file.
24355         * include/uchar.h: New file.
24356         * include/aio.h: Changes to allow conformtest.pl to use the headers.
24357         * include/assert.h: Likewise.
24358         * include/ctype.h: Likewise.
24359         * include/dirent.h: Likewise.
24360         * include/dlfcn.h: Likewise.
24361         * include/fcntl.h: Likewise.
24362         * include/fnmatch.h: Likewise.
24363         * include/glob.h: Likewise.
24364         * include/grp.h: Likewise.
24365         * include/libio.h: Likewise.
24366         * include/locale.h: Likewise.
24367         * include/math.h: Likewise.
24368         * include/net/if.h: Likewise.
24369         * include/netdb.h: Likewise.
24370         * include/netinet/in.h: Likewise.
24371         * include/pthread.h: Likewise.
24372         * include/pwd.h: Likewise.
24373         * include/regex.h: Likewise.
24374         * include/sched.h: Likewise.
24375         * include/search.h: Likewise.
24376         * include/setjmp.h: Likewise.
24377         * include/signal.h: Likewise.
24378         * include/stdio.h: Likewise.
24379         * include/stdlib.h: Likewise.
24380         * include/string.h: Likewise.
24381         * include/sys/cdefs.h: Likewise.
24382         * include/sys/mman.h: Likewise.
24383         * include/sys/msg.h: Likewise.
24384         * include/sys/resource.h: Likewise.
24385         * include/sys/select.h: Likewise.
24386         * include/sys/socket.h: Likewise.
24387         * include/sys/stat.h: Likewise.
24388         * include/sys/statvfs.h: Likewise.
24389         * include/sys/time.h: Likewise.
24390         * include/sys/times.h: Likewise.
24391         * include/sys/uio.h: Likewise.
24392         * include/sys/utsname.h: Likewise.
24393         * include/sys/wait.h: Likewise.
24394         * include/termios.h: Likewise.
24395         * include/time.h: Likewise.
24396         * include/ulimit.h: Likewise.
24397         * include/unistd.h: Likewise.
24398         * include/utime.h: Likewise.
24399         * include/wchar.h: Likewise.
24400         * include/wctype.h: Likewise.
24401         * include/wordexp.h: Likewise.
24402
24403         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
24404
24405         * time/time.h: TIME_UTC must be a macro.
24406         Make timespec_get available for ISO C11 only as well.
24407
24408 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
24409
24410         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
24411         Reported by Peng Haitao <penght@cn.fujitsu.com>.
24412
24413 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
24414
24415         * configure.in: Use -o not -a in test for unsupported multi-arch.
24416
24417 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
24418
24419         * manual/texinfo.tex: Update to version 2012-01-19.16.
24420
24421 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
24422
24423         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
24424
24425 2012-02-24  Roland McGrath  <roland@hack.frob.com>
24426
24427         [BZ #13738]
24428         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
24429         * manual/fdl-1.3.texi: New file.
24430         * manual/fdl-1.1.texi: File removed.
24431
24432         [BZ #13738]
24433         * manual/libc.texinfo (FDL_VERSION): New @set.
24434         Use it for mention of FDL in cover text.
24435         (Documentation License): Use it in @include file name.
24436
24437 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24438             Roland McGrath  <roland@hack.frob.com>
24439
24440         [BZ #5461]
24441         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
24442         not LONG_LONG_MAX and LONG_LONG_MIN.
24443         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
24444         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
24445         name.
24446         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
24447
24448 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24449
24450         [BZ #2547]
24451         [BZ #11365]
24452         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
24453         manipulate bits before adding and subtracting TWO23[sx].
24454         * math/libm-test.inc (nearbyint_test): Add more tests.
24455
24456 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24457
24458         [BZ #2548]
24459         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
24460         bits before adding and subtracting TWO23[sx].
24461         * math/libm-test.inc (rint_test): Add more tests.
24462         (rint_test_tonearest): Likewise.
24463         (rint_test_towardzero): Likewise.
24464         (rint_test_downward): Likewise.
24465         (rint_test_upward: Likewise.
24466
24467 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24468
24469         [BZ #10110]
24470         * include/stdc-predef.h: New file.  Extracted from features.h.
24471         * include/features.h: Include stdc-predef.h.
24472         * Makefile (headers): Add stdc-predef.h.
24473         * CONFORMANCE (Compiler limitations): Update.
24474
24475 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24476
24477         * manual/libc.texinfo (VERSION, UPDATED): Revert.
24478
24479 2012-02-21  David S. Miller  <davem@davemloft.net>
24480
24481         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
24482         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
24483
24484 2012-02-20  David S. Miller  <davem@davemloft.net>
24485
24486         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
24487         using a normal save/restore sequence, rather than allocating a
24488         dummy stack frame just to store a frame pointer and restore.
24489         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
24490
24491 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
24492
24493         * manual/install.texi: Fix stray word in line-wrapped comment.
24494
24495 2012-02-20  David S. Miller  <davem@davemloft.net>
24496
24497         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
24498         both binutils and gcc support GOTDATA.
24499
24500         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
24501         "rd %pc" in the PIC register setup sequences.
24502
24503         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
24504         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
24505         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
24506         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
24507         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
24508         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24509         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24510         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
24511         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
24512         (SYSCALL_ERROR_HANDLER): Likewise.
24513         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
24514         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24515         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
24516         (SYSCALL_ERROR_HANDLER): Likewise.
24517
24518         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
24519         (HAVE_GCC_GOTDATA): New.
24520         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
24521         relocation support in both binutils and gcc.
24522         * sysdeps/sparc/elf/configure: Regenerate.
24523
24524         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
24525         * sysdeps/sparc/sparc32/elf/configure: Delete.
24526         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
24527         * sysdeps/sparc/sparc64/elf/configure: Delete.
24528         * sysdeps/sparc/elf/configure.in: New file.
24529         * sysdeps/sparc/elf/configure: Generate.
24530
24531         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
24532         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
24533         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24534         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
24535         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
24536
24537 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
24538
24539         * manual/install.texi: Do not mention specific glibc version
24540         numbers.
24541         * manual/libc.texinfo (VERSION, UPDATED): Update.
24542         (@copying): Use @copyright{} and range of years.
24543
24544 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
24545
24546         [BZ #13695]
24547         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
24548         [crti.S not in sysdirs] (generated): Do not append.
24549         [crti.S not in sysdirs] (omit-deps): Likewise.
24550         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
24551         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
24552         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
24553         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
24554         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
24555         Likewise.
24556         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
24557         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
24558         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
24559         * csu/defs.awk: Remove file.
24560         * sysdeps/generic/initfini.c: Likewise.
24561         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
24562         variable.
24563         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
24564         Likewise.
24565
24566 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
24567
24568         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
24569         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
24570         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
24571         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
24572         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
24573         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
24574         <bits/epoll.h>.
24575         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
24576         (__EPOLL_PACKED): Define to empty if not defined by
24577         <bits/epoll.h>.
24578         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
24579         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24580         bits/epoll.h.
24581
24582 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
24583
24584         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
24585         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
24586         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
24587         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
24588         <bits/timerfd.h>.
24589         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
24590         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24591         bits/timerfd.h.
24592
24593 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
24594
24595         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
24596         in C locale.
24597         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
24598         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
24599         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
24600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24601
24602 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
24603
24604         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24605         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
24606
24607 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
24608
24609         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
24610         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
24611         defined.
24612         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
24613         Likewise.
24614         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
24615         entry for 2.16.
24616
24617 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
24618
24619         * math/w_acos.c: Use non-signaling floating-point comparisons.
24620         * math/w_acosf.c: Likewise.
24621         * math/w_acosh.c: Likewise.
24622         * math/w_acoshf.c: Likewise.
24623         * math/w_acoshl.c: Likewise.
24624         * math/w_acosl.c: Likewise.
24625         * math/w_asin.c: Likewise.
24626         * math/w_asinf.c: Likewise.
24627         * math/w_asinl.c: Likewise.
24628         * math/w_atanh.c: Likewise.
24629         * math/w_atanhf.c: Likewise.
24630         * math/w_atanhl.c: Likewise.
24631         * math/w_exp2.c: Likewise.
24632         * math/w_exp2f.c: Likewise.
24633         * math/w_exp2l.c: Likewise.
24634         * math/w_j0.c: Likewise.
24635         * math/w_j0f.c: Likewise.
24636         * math/w_j0l.c: Likewise.
24637         * math/w_j1.c: Likewise.
24638         * math/w_j1f.c: Likewise.
24639         * math/w_j1l.c: Likewise.
24640         * math/w_jn.c: Likewise.
24641         * math/w_jnf.c: Likewise.
24642         * math/w_log.c: Likewise.
24643         * math/w_log10.c: Likewise.
24644         * math/w_log10f.c: Likewise.
24645         * math/w_log10l.c: Likewise.
24646         * math/w_log2.c: Likewise.
24647         * math/w_log2f.c: Likewise.
24648         * math/w_log2l.c: Likewise.
24649         * math/w_logf.c: Likewise.
24650         * math/w_logl.c: Likewise.
24651         * math/w_sqrt.c: Likewise.
24652         * math/w_sqrtf.c: Likewise.
24653         * math/w_sqrtl.c: Likewise.
24654         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24655         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
24656         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24657         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24658         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24659
24660 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24661
24662         [BZ #9739]
24663         * manual/string.texi (strnlen): Use correct parameter name in
24664         equivalent expression.
24665
24666 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24667
24668         [BZ #11174]
24669         * manual/users.texi (seteuid): Consistently use neweuid for
24670         argument name.
24671
24672 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24673
24674         [BZ #13704]
24675         * manual/nss.texi (Services in the NSS configuration): Correct
24676         list of services in example configuration file.
24677
24678 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
24679
24680         [BZ #11322]
24681         * manual/arith.texi: Remove statements about negative zero
24682         behaving identically to zero.
24683
24684 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
24685
24686         [BZ #5993]
24687         * manual/install.texi: Do not document upgrading from libc5.
24688
24689 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
24690
24691         [BZ #4596]
24692         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
24693
24694 2012-02-18  David S. Miller  <davem@davemloft.net>
24695
24696         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
24697         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
24698         %o7 across the call.
24699         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
24700         instead.
24701         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
24702         SETUP_PIC_REG_LEAF.
24703         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24704         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
24705         * sysdeps/sparc/crtn.S: Likewise.
24706
24707 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
24708
24709         * aout/Makefile: Remove.
24710
24711 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
24712
24713         [BZ #13058]
24714         * manual/examples/argp-ex1.c (main): Format definition in GNU
24715         style.
24716         * manual/examples/argp-ex2.c (main): Likewise.
24717         * manual/examples/argp-ex3.c (main): Likewise.
24718         * manual/examples/argp-ex4.c (main): Likewise.
24719         * manual/examples/longopt.c (main): Use new-style prototype
24720         definition.
24721         * manual/examples/strncat.c (main): Specify return type and use
24722         (void) for arguments.
24723         * manual/examples/subopt.c (main): Use char **argv argument.
24724
24725 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24726
24727         [BZ #5077]
24728         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
24729         rounding modes.
24730
24731 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
24732
24733         [BZ #6907]
24734         * manual/string.texi (strchr): Change when strchrnul is
24735         recommended.
24736
24737 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
24738
24739         [BZ #174]
24740         * manual/locale.texi (setlocale): Document LOCPATH.
24741
24742 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24743
24744         [BZ #10210]
24745         * manual/process.texi (execle): Move @dots{} before last argument.
24746
24747 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
24748
24749         [BZ #12047]
24750         * manual/charset.texi (Generic Charset Conversion): Fix typo
24751         (LC_TYPE -> LC_CTYPE).
24752
24753 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
24754
24755         [BZ #5805]
24756         * manual/arith.texi (scalbn): Use @var{} on parameter names.
24757         (scalbnf): Likewise.
24758         (scalbnl): Likewise.
24759         (scalbln): Likewise.
24760         (scalblnf): Likewise.
24761         (scalblnl): Likewise.
24762         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
24763         (vwarnx): Likewise.
24764         (verr): Likewise.
24765         (verrx): Likewise.
24766         * manual/filesys.texi (telldir): Use braces around return type.
24767         * manual/llio.texi (mmap): Add space after comma.
24768         (mmap64): Likewise.
24769         * manual/math.texi (jn): Use @var{} on parameter names.
24770         (jnf): Likewise.
24771         (jnl): Likewise.
24772         (yn): Likewise.
24773         (ynf): Likewise.
24774         (ynl): Likewise.
24775         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
24776         line.
24777         * manual/resource.texi (ulimit): Use @dots{} instead of literal
24778         "...".
24779         (sched_get_priority_min): Remove semicolon on @deftypefun line.
24780         (sched_get_priority_max): Likewise.
24781         * manual/signal.texi (sigvec): Add space after comma.
24782         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
24783         names.
24784         (if_indextoname): Likewise.
24785         (if_freenameindex): Likewise.
24786         (sendto): Use ',' instead of '.' in prototype.
24787         * manual/startup.texi (syscall): Use @dots{} instead of literal
24788         "...".
24789         * manual/stdio.texi (__fpending): Separate initial words of
24790         paragraph from @deftypefun line.
24791         * manual/syslog.texi (syslog): Use @dots{} instead of literal
24792         "...".
24793         (vsyslog): Use @var{} on parameter names.
24794         * manual/terminal.texi (stty): Use @var{} on parameter names.
24795         * manual/users.texi (getutmp): Use @var{} on parameter names.
24796         (getutmpx): Likewise.
24797
24798 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24799
24800         [BZ #6884]
24801         * manual/stdio.texi (fopen): Fix typos in description of
24802         ",ccs=STRING".
24803
24804 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
24805
24806         [BZ #4026]
24807         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
24808         get clock_id definition.
24809
24810 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
24811
24812         [BZ #4822]
24813         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
24814         (madvise): Cast every argument to void on its own.
24815
24816 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24817
24818         [BZ #9902]
24819         * manual/startup.texi (Exit Status): Fix typo.
24820
24821 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24822
24823         [BZ #10140]
24824         * manual/examples/argp-ex1.c: Include <stdlib.h>.
24825         * manual/examples/argp-ex2.c: Likewise.
24826         * manual/examples/argp-ex3.c: Likewise.
24827
24828 2012-02-16  Richard Henderson  <rth@redhat.com>
24829
24830         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
24831         * sysdeps/s390/s390-32/initfini.c: Remove.
24832         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
24833         * sysdeps/s390/s390-64/initfini.c: Remove.
24834
24835 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
24836
24837         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
24838         compiler output for sysdeps/generic/initfini.c.
24839         * sysdeps/sh/elf/initfini.c: Remove file.
24840
24841 2012-02-16  David S. Miller  <davem@davemloft.net>
24842
24843         [BZ #11494]
24844         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
24845
24846         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
24847         * sysdeps/sparc/crti.S: New file.
24848         * sysdeps/sparc/crtn.S: New file.
24849         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
24850         * sysdeps/sparc/sparc64/Makefile: Likewise.
24851
24852 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
24853
24854         [BZ #3335]
24855         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
24856
24857 2012-02-15  Roland McGrath  <roland@hack.frob.com>
24858
24859         [BZ #4822]
24860         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
24861
24862         * mach/devstream.c (cookie_io_functions_t): Macro removed.
24863         (write, read, close): Likewise.
24864         Patch by Aurelien Jarno <aurelien@aurel32.net>.
24865
24866 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
24867
24868         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
24869         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
24870         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
24871         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
24872         <bits/signalfd.h>.
24873         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
24874         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24875         bits/signalfd.h.
24876
24877 2012-02-14  Marek Polacek  <polacek@redhat.com>
24878
24879         * sysdeps/x86_64/crti.S: New file.
24880         * sysdeps/x86_64/crtn.S: New file.
24881         * sysdeps/x86_64/elf/initfini.c: Remove file.
24882
24883 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
24884
24885         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
24886         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
24887         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
24888         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
24889         <bits/inotify.h>.
24890         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
24891         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24892         bits/inotify.h.
24893
24894 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
24895
24896         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
24897         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
24898         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
24899         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
24900         <bits/eventfd.h>.
24901         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
24902         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24903         bits/eventfd.h.
24904
24905 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
24906
24907         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
24908         __feraiseexcept instead of feraiseexcept.
24909
24910         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
24911         nanosleep invocations.
24912         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
24913         strings, and add error checking for a nanosleep invocations.
24914
24915 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24916
24917         Replace FSF snail mail address with URLs, as per GNU coding standards.
24918         Most of the snail mail addresses were wrong anyway, and omitting
24919         them makes the source code easier to maintain.  Almost all of the
24920         changes are to license notices and to locale LC_IDENTIFICATION
24921         addresses, except for this one:
24922         * manual/libc.texinfo: In "Published by", give the FSF's URL,
24923         not its snail mail address.
24924
24925 2012-02-09  Richard Henderson  <rth@twiddle.net>
24926
24927         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
24928         of kernel-features.h.
24929
24930         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
24931
24932 2012-02-08  Marek Polacek  <polacek@redhat.com>
24933
24934         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
24935         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
24936         * sysdeps/gnu/_G_config.h: Likewise.
24937         * sysdeps/generic/_G_config.h: Likewise.
24938
24939 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
24940
24941         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
24942         tests.
24943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24944
24945         * sysdeps/powerpc/powerpc32/crti.S: New file.
24946         * sysdeps/powerpc/powerpc32/crtn.S: New file.
24947         * sysdeps/powerpc/powerpc64/crti.S: New file.
24948         * sysdeps/powerpc/powerpc64/crtn.S: New file.
24949
24950         * Makeconfig (have-initfini): Don't set.
24951         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
24952         * configure.in (nopic_initfini): Don't substitute.
24953         * config.h.in (HAVE_INITFINI): Don't #undef.
24954         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
24955         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
24956
24957 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
24958
24959         Support crti.S and crtn.S provided directly by architectures.
24960         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
24961         [crti.S in sysdirs] (omit-deps): Likewise.
24962         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
24963         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
24964         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
24965         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
24966         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
24967         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
24968         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
24969         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
24970         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
24971         compiler output for sysdeps/generic/initfini.c.
24972         * sysdeps/i386/elf/Makefile: Remove file.
24973         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
24974
24975 2012-02-07  Marek Polacek  <polacek@redhat.com>
24976
24977         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
24978         * sysdeps/gnu/_G_config.h: Likewise.
24979         * sysdeps/mach/hurd/_G_config.h: Likewise.
24980
24981 2012-02-07  Marek Polacek  <polacek@redhat.com>
24982
24983         * math/Makefile (tests): Add tst-CMPLX2.
24984         * math/tst-CMPLX2.c: New file.
24985
24986 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
24987
24988         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24989
24990         * math/libm-test.inc (jn_test): Add missing L suffix.
24991
24992 2012-02-06  Marek Polacek  <polacek@redhat.com>
24993
24994         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
24995         * sysdeps/i386/fpu/e_powf.S: Likewise.
24996         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
24997         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
24998         * sysdeps/i386/fpu/e_acosh.S: Likewise.
24999         * sysdeps/i386/fpu/e_pow.S: Likewise.
25000         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
25001         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
25002         * sysdeps/i386/fpu/s_expm1.S: Likewise.
25003         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
25004         * sysdeps/i386/fpu/e_log2.S: Likewise.
25005         * sysdeps/i386/fpu/e_log2l.S: Likewise.
25006         * sysdeps/i386/fpu/e_scalb.S: Likewise.
25007         * sysdeps/i386/fpu/e_powl.S: Likewise.
25008         * sysdeps/i386/fpu/s_log1p.S: Likewise.
25009         * sysdeps/i386/fpu/e_log10f.S: Likewise.
25010         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
25011         * sysdeps/i386/fpu/e_logl.S: Likewise.
25012         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
25013         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
25014         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
25015         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
25016         * sysdeps/i386/fpu/e_log2f.S: Likewise.
25017         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
25018         * sysdeps/i386/fpu/e_log.S: Likewise.
25019         * sysdeps/i386/fpu/s_cexp.S: Likewise.
25020         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
25021         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
25022         * sysdeps/i386/fpu/e_logf.S: Likewise.
25023         * sysdeps/i386/fpu/e_log10l.S: Likewise.
25024         * sysdeps/i386/fpu/e_atanh.S: Likewise.
25025         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
25026         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
25027         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
25028         * sysdeps/i386/fpu/e_log10.S: Likewise.
25029         * sysdeps/i386/fpu/s_frexp.S: Likewise.
25030         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
25031         * sysdeps/i386/fpu/s_asinh.S: Likewise.
25032         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
25033         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
25034         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
25035         * sysdeps/i386/asm-syntax.h: Likewise.
25036         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
25037         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
25038         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
25039         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
25040         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
25041         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
25042         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
25043         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
25044         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
25045         * sysdeps/powerpc/sysdep.h: Likewise.
25046         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25047         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
25048
25049 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
25050
25051         [BZ #411]
25052         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
25053
25054 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
25055
25056         * sysdeps/i386/sysdep.h: Include <features.h>.
25057         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
25058         version.
25059
25060 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
25061
25062         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
25063         Define.
25064         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
25065         LOAD_PIC_REG_STR.
25066
25067 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
25068
25069         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
25070         (SETUP_PIC_REG): Use GET_PC_THUNK.
25071         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
25072         macro.
25073
25074 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
25075
25076         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
25077         for non-PIC compilation.
25078         (SETUP_PIC_REG): Add .p2align directive.
25079         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
25080         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
25081         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
25082         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
25083         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
25084         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
25085         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
25086         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
25087         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
25088         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
25089         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
25090         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
25091         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
25092         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
25093         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
25094         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
25095         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
25096         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
25097         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
25098         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
25099         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
25100         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
25101         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
25102         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
25103         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
25104         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
25105         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
25106         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
25107         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
25108         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
25109         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
25110         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
25111         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
25112         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
25113         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
25114         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
25115         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
25116         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
25117         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
25118         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
25119         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
25120
25121 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
25122
25123         * math/tst-CMPLX.c: Include <stdio.h>.
25124
25125 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
25126
25127         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
25128         float.
25129         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
25130         * sysdeps/sparc/bits/mathdef.h: Likewise.
25131
25132 2012-01-31  Marek Polacek  <polacek@redhat.com>
25133
25134         * libio/libio.h: Don't define _PARAMS.
25135         * locale/programs/config.h: Don't define PARAMS.
25136         * stdlib/strtol_l.c: Likewise.
25137         (__strtol_l): Remove PARAMS from the prototype.
25138
25139 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
25140
25141         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
25142         names.  Just use the correct names.  Remove unnecessary wrapper
25143         functions.
25144         * malloc/arena.c: Likewise.
25145         * malloc/hooks.c: Likewise.
25146
25147         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
25148         ARENA_TEST says not to.  Simplify test for creation of a new arena.
25149         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
25150
25151 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
25152
25153         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
25154         into tail calls.
25155         (update_get_addr): New function.
25156         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
25157         GET_ADDR_MODULE parameter.
25158
25159 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
25160
25161         * crypt/cert.c: Remove __STDC__ conditionals.
25162         * crypt/crypt-entry.c: Likewise.
25163         * crypt/crypt_util.c: Likewise.
25164         * libio/filedoalloc.c: Likewise.
25165         * libio/fileops.c: Likewise.
25166         * libio/genops.c: Likewise.
25167         * libio/iofclose.c: Likewise.
25168         * libio/iofdopen.c: Likewise.
25169         * libio/iofopen.c: Likewise.
25170         * libio/iofopen64.c: Likewise.
25171         * libio/iogetdelim.c: Likewise.
25172         * libio/iopopen.c: Likewise.
25173         * libio/obprintf.c: Likewise.
25174         * libio/oldfileops.c: Likewise.
25175         * libio/oldiofclose.c: Likewise.
25176         * libio/oldiofdopen.c: Likewise.
25177         * libio/oldiofopen.c: Likewise.
25178         * libio/oldiopopen.c: Likewise.
25179         * libio/wfiledoalloc.c: Likewise.
25180         * libio/wgenops.c: Likewise.
25181         * locale/programs/xmalloc.c: Likewise.
25182         * misc/syslog.c: Likewise.
25183         * stdio-common/xbug.c: Likewise.
25184         * string/memchr.c: Likewise.
25185         * string/memcmp.c: Likewise.
25186         * string/memrchr.c: Likewise.
25187         * string/rawmemchr.c: Likewise.
25188         * sysdeps/posix/getcwd.c: Likewise.
25189         * time/strftime_l.c: Likewise.
25190
25191 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
25192
25193         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
25194         * config.make.in (config-cflags-sse2avx): Define.
25195         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
25196         Fix typo.
25197
25198 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
25199
25200         * scripts/config.guess: Update from upstream config git repository.
25201         * scripts/config.sub: Likewise.
25202
25203 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
25204
25205         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
25206         (EM_NUM): Update.
25207         (R_TILEPRO_*, R_TILEGX_*): New macros.
25208
25209         * scripts/firstversions.awk: Fix bug in version range handling.
25210
25211         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
25212
25213         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
25214
25215         * include/sys/epoll.h: New file.
25216         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
25217         libc_hidden_def.
25218
25219 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
25220
25221         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
25222         Avoid unnecessary __WORDSIZE == 64 test.
25223         (fmaxf): Use VEX format if possible.
25224         (fmax): Likewise.
25225         (fminf): Likewise.
25226         (fmin): Likewise.
25227
25228         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
25229         * math/math_private.h: Remove libc_fegetround* and
25230         libc_fesetround*.
25231         * sysdeps/i386/configure.in: Check for -msse2avx.
25232         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
25233         also if SSE2AVX is defined.
25234         Remove libc_fegetround* and libc_fesetround*.
25235         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
25236         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
25237         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
25238         of HAS_YMM_USABLE.
25239         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
25240         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
25241         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
25242         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
25243         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
25244
25245         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
25246
25247 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25248
25249         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
25250         size is not set.
25251         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
25252
25253 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
25254
25255         [BZ #13618]
25256         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
25257         relocation.
25258         * Makeconfig (libm): Define.
25259         * elf/Makefile: Add rules to build and run tst-relsort1.
25260         * elf/tst-relsort1.c: New file.
25261         * elf/tst-relsort1mod1.c: New file.
25262         * elf/tst-relsort1mod2.c: New file.
25263
25264 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
25265
25266         * math/s_ldexp.c: Remove __STDC__ conditionals.
25267         * math/s_ldexpf.c: Likewise.
25268         * math/s_ldexpl.c: Likewise.
25269         * math/s_nextafter.c: Likewise.
25270         * math/s_nexttowardf.c: Likewise.
25271         * math/s_significand.c: Likewise.
25272         * math/s_significandf.c: Likewise.
25273         * math/s_significandl.c: Likewise.
25274         * math/w_jnl.c: Likewise.
25275         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
25276         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
25277         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
25278         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
25279         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
25280         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
25281         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
25282         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
25283         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
25284         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
25285         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
25286         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
25287         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
25288         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
25289         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
25290         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
25291         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
25292         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
25293         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
25294         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
25295         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
25296         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
25297         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
25298         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
25299         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
25300         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
25301         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
25302         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
25303         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
25304         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
25305         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
25306         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
25307         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
25308         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
25309         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
25310         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
25311         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
25312         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
25313         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
25314         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
25315         * sysdeps/ieee754/k_standard.c: Likewise.
25316         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
25317         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
25318         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
25319         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
25320         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
25321         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
25322         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
25323         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
25324         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
25325         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
25326         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
25327         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
25328         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
25329         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
25330         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
25331         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
25332         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
25333         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
25334         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
25335         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
25336         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
25337         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
25338         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
25339         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
25340         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
25341         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
25342         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
25343         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
25344         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25345         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
25346         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
25347         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
25348         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
25349         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
25350         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
25351         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
25352         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
25353         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
25354         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
25355         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
25356         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
25357         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
25358         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
25359         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
25360         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
25361         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
25362         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
25363         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
25364         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
25365         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
25366         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
25367         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
25368         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
25369         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
25370         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
25371         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
25372         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
25373         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
25374         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
25375         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
25376         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
25377         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
25378         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
25379         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
25380         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
25381         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
25382         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
25383         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
25384         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
25385         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
25386         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
25387         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
25388         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
25389         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
25390         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
25391         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
25392         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
25393         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
25394         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
25395         * sysdeps/ieee754/s_matherr.c: Likewise.
25396         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
25397         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
25398         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
25399         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
25400
25401 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
25402
25403         * crypt/md5.h: Remove __STDC__ conditionals.
25404         * libio/libioP.h: Likewise.
25405         * locale/programs/config.h: Likewise.
25406         * sysdeps/generic/sysdep.h: Likewise.
25407         * sysdeps/i386/asm-syntax.h: Likewise.
25408         * sysdeps/s390/asm-syntax.h: Likewise.
25409         * sysdeps/unix/sysdep.h: Likewise.
25410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
25411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
25412
25413 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
25414
25415         * libio/libio.h: Remove __STDC__ conditionals.
25416         * malloc/obstack.h: Likewise.
25417         * math/complex.h: Likewise.
25418         * math/math.h: Likewise.
25419         * sysdeps/generic/_G_config.h: Likewise.
25420         * sysdeps/gnu/_G_config.h: Likewise.
25421         * sysdeps/mach/hurd/_G_config.h: Likewise.
25422         * sysdeps/powerpc/bits/mathdef.h: Likewise.
25423         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
25424         * sysdeps/sparc/bits/mathdef.h: Likewise.
25425
25426 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
25427
25428         [BZ #13583]
25429         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
25430         Clean up HAS_* macros.
25431         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
25432         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
25433         possible.
25434         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
25435         HAS_AVX.
25436         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
25437         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
25438         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
25439         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
25440         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
25441
25442 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
25443
25444         * elf/tst-unique3.cc (gets): Remove declaration.
25445         * elf/tst-unique3lib.cc (gets): Likewise.
25446         * elf/tst-unique3lib2.cc (gets): Likewise.
25447         * elf/tst-unique4.cc (gets): Likewise.
25448
25449 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
25450
25451         * include/stdio.h: Add C++ protection.  Add gets declarations and
25452         definitions.
25453         * debug/tst-chk1.c: Don't declare gets here.
25454         * stdio-common/tst-gets.c: Likewise.
25455
25456 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
25457
25458         * posix/glob: Remove directory.
25459
25460 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
25461
25462         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
25463
25464 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
25465
25466         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
25467         of the non-standard EPFNOSUPPORT.
25468
25469 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25470
25471         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
25472         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
25473         ANYWHERE set to 1 only on KERN_NO_SPACE error.
25474
25475 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
25476
25477         * wcsmbs/uchar.h: Test __STDC_VERSION__.
25478
25479 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
25480
25481         * nscd/aicache.c (addhstaiX): Do not cache negative results of
25482         transient errors.
25483         * nscd/grpcache.c (cache_addgr): Likewise.
25484         * nscd/hstcache.c (cache_addhst): Likewise.
25485         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25486         * nscd/pwdcache.c (cache_addpw): Likewise.
25487         * nscd/servicescache.c (cache_addserv): Likewise.
25488
25489 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
25490
25491         * malloc/malloc.c: Various cleanups.
25492         * malloc/hooks.c: Likewise.
25493
25494         * stdlib/Makefile (tests): Add bug-fmtmsg1.
25495         * stdlib/bug-fmtmsg1.c: New file.
25496
25497         * stdlib/fmtmsg.c (init): Add missing unlock.
25498         Patch by Peng Haitao <penght@cn.fujitsu.com>.
25499
25500 2012-01-12  Marek Polacek  <polacek@redhat.com>
25501
25502         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
25503         and _GNU_SOURCE.
25504
25505 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
25506
25507         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
25508         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
25509         macro to ensure uniqueness of label name.
25510         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
25511         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
25512
25513 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
25514
25515         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
25516
25517         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
25518         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
25519         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
25520         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
25521
25522 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
25523
25524         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
25525
25526         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
25527         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
25528         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
25529
25530         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
25531
25532         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
25533         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
25534         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
25535         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
25536
25537         * math/bits/math-finite.h: Add ldexp support.
25538
25539 2012-01-10  Marek Polacek  <polacek@redhat.com>
25540
25541         * locale/programs/localedef.h (show_archive_content): Add noreturn
25542         attribute.
25543
25544 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
25545
25546         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
25547
25548 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
25549
25550         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
25551
25552         * io/Makefile (headers): Add bits/poll2.h.
25553
25554 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
25555
25556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
25557         typo #include statement.
25558
25559 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
25560
25561         * include/sys/cdefs.h: Define __attribute_alloc_size.
25562         * catgets/gencat.c: Add alloc_size attribute and apply consistently
25563         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
25564         * elf/pldd.c: Likewise.
25565         * iconv/iconv_charmap.c: Likewise.
25566         * iconv/iconvconfig.c: Likewise.
25567         * iconv/strtab.c: Likewise.
25568         * locale/programs/locale.c: Likewise.
25569         * locale/programs/localedef.h: Likewise.
25570         * locale/programs/simple-hash.c: Likewise.
25571         * nscd/nscd.h: Likewise.
25572         * nss/makedb.c: Likewise.
25573         * sysdeps/generic/ldconfig.h: Likewise.
25574         * locale/programs/localedef.c: Remove xmalloc prototype.
25575         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
25576
25577 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
25578
25579         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
25580         appropriate.
25581
25582 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
25583
25584         * math/Makefile (tests): Add tst-CMPLX.
25585         * math/tst-CMPLX.c: New file.
25586
25587         * math/complex.h (CMPLXL): Fix typo.
25588
25589         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
25590         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
25591         GLIBC_2.16.
25592         * debug/tst-chk1.c: Add poll and ppoll tests.
25593         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
25594         * include/sys/poll.h: Add hidden proto for ppoll.
25595         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
25596         * sysdeps/mach/hurd/ppoll.c: Likewise.
25597         * io/ppoll.c: Likewise.
25598         * debug/poll_chk.c: New file.
25599         * debug/ppoll_chk.c: New file.
25600         * include/bits/poll2.h: New file.
25601         * io/bits/poll2.h: New file.
25602
25603         [BZ #1350]
25604         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
25605
25606         * configure.in: static is always set to yes.  Remove.
25607         * config.make.in: Don't set build-static.
25608         * Makeconfig: Remove use of build-static.
25609         * dlfcn/Makefile: Likewise.
25610         * elf/Makefile: Likewise.
25611         * math/Makefile: Likewise.
25612         * misc/Makefile: Likewise.
25613         * nptl/Makefile: Likewise.
25614         * sysdeps/mach/hurd/Makefile: Likewise.
25615
25616         * configure.in: PWD_P is not used anymore.
25617         * config.make.in: Remove PWD_P entry.
25618
25619         * configure.in: Remove last remnants of RANLIB.
25620         No need to check for signed size_t anymore.
25621         Don't set libc_commonpagesize and libc_relro_required here for Alpha
25622         and IA-64.
25623         Remove __builtin_expect test because we require at least gcc 3.4.
25624         * aclocal.m4: Likewise.
25625
25626         * wcsmbs/mbrtoc16.c: Implement using towc function.
25627         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
25628         * wcsmbs/wcsmbsload.c: Likewise.
25629         * iconv/gconv_simple.c: Likewise.
25630         * iconv/gconv_int.h: Likewise.
25631         * iconv/gconv_builtin.h: Likewise.
25632         * iconv/iconv_prog.c: Remove CHAR16 handling.
25633
25634         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
25635
25636         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
25637
25638         * configure.in: Remove --with-elf and --enable-bounded options.
25639         Dont set base_machine for ia64.  More non-ELF conditions removed.
25640         Remove testing and setting of leading underscore information.
25641         * config.make.in (build-bounded): Set to no.
25642         * config.h.in: Remove NO_UNDERSCORES entry.
25643         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
25644         them.
25645         * csu/start.c: Remove !NO_UNDERSCORE code.
25646         * locale/localeinfo.h: Likewise.
25647         * sysdeps/generic/machine-gmon.h: Likewise.
25648         * sysdeps/generic/sysdep.h: Likewise.
25649         * sysdeps/i386/sysdep.h: Likewise.
25650         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
25651         * sysdeps/mach/sysdep.h: Likewise.
25652         * sysdeps/s390/s390-32/sysdep.h: Likewise.
25653         * sysdeps/s390/s390-64/sysdep.h: Likewise.
25654         * sysdeps/sh/sysdep.h: Likewise.
25655         * sysdeps/sparc/sparc32/alloca.S: Likewise.
25656         * sysdeps/unix/i386/sysdep.S: Likewise.
25657         * sysdeps/unix/sparc/start.c: Likewise.
25658         * sysdeps/unix/sparc/sysdep.S: Likewise.
25659         * sysdeps/unix/sparc/sysdep.h: Likewise.
25660         * sysdeps/unix/start.c: Likewise.
25661         * sysdeps/unix/x86_64/sysdep.S: Likewise.
25662         * sysdeps/x86_64/sysdep.h: Likewise.
25663
25664 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
25665
25666         [BZ #13553]
25667         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
25668         for non-gcc.
25669         * argp/argp-fmtstream.h: Use const instead __const.
25670         * argp/argp.h: Likewise.
25671         * assert/assert.h: Likewise.
25672         * bits/fenv.h: Likewise.
25673         * bits/sched.h: Likewise.
25674         * bits/sigset.h: Likewise.
25675         * bits/sigthread.h: Likewise.
25676         * catgets/nl_types.h: Likewise.
25677         * conform/data/pthread.h-data: Likewise.
25678         * crypt/crypt-private.h: Likewise.
25679         * crypt/crypt.h: Likewise.
25680         * crypt/crypt_util.c: Likewise.
25681         * ctype/ctype.h: Likewise.
25682         * debug/execinfo.h: Likewise.
25683         * debug/mbsnrtowcs_chk.c: Likewise.
25684         * debug/mbsrtowcs_chk.c: Likewise.
25685         * debug/wcsnrtombs_chk.c: Likewise.
25686         * debug/wcsrtombs_chk.c: Likewise.
25687         * debug/wcstombs_chk.c: Likewise.
25688         * dirent/dirent.h: Likewise.
25689         * dlfcn/dlfcn.h: Likewise.
25690         * elf/neededtest4.c: Likewise.
25691         * grp/grp.h: Likewise.
25692         * gshadow/gshadow.h: Likewise.
25693         * iconv/gconv.h: Likewise.
25694         * iconv/gconv_int.h: Likewise.
25695         * iconv/gconv_simple.c: Likewise.
25696         * iconv/iconv.h: Likewise.
25697         * iconv/loop.c: Likewise.
25698         * iconv/skeleton.c: Likewise.
25699         * include/aio.h: Likewise.
25700         * include/aliases.h: Likewise.
25701         * include/argz.h: Likewise.
25702         * include/arpa/inet.h: Likewise.
25703         * include/assert.h: Likewise.
25704         * include/dirent.h: Likewise.
25705         * include/dlfcn.h: Likewise.
25706         * include/execinfo.h: Likewise.
25707         * include/fcntl.h: Likewise.
25708         * include/fenv.h: Likewise.
25709         * include/glob.h: Likewise.
25710         * include/grp.h: Likewise.
25711         * include/libintl.h: Likewise.
25712         * include/mntent.h: Likewise.
25713         * include/netdb.h: Likewise.
25714         * include/pwd.h: Likewise.
25715         * include/rpc/netdb.h: Likewise.
25716         * include/sched.h: Likewise.
25717         * include/search.h: Likewise.
25718         * include/shadow.h: Likewise.
25719         * include/signal.h: Likewise.
25720         * include/stdio.h: Likewise.
25721         * include/stdlib.h: Likewise.
25722         * include/string.h: Likewise.
25723         * include/sys/socket.h: Likewise.
25724         * include/sys/stat.h: Likewise.
25725         * include/sys/statfs.h: Likewise.
25726         * include/sys/statvfs.h: Likewise.
25727         * include/sys/syslog.h: Likewise.
25728         * include/sys/time.h: Likewise.
25729         * include/sys/uio.h: Likewise.
25730         * include/time.h: Likewise.
25731         * include/unistd.h: Likewise.
25732         * include/utmp.h: Likewise.
25733         * include/wchar.h: Likewise.
25734         * include/wctype.h: Likewise.
25735         * inet/aliases.h: Likewise.
25736         * inet/arpa/inet.h: Likewise.
25737         * inet/netinet/ether.h: Likewise.
25738         * inet/netinet/in.h: Likewise.
25739         * intl/libintl.h: Likewise.
25740         * io/bits/fcntl2.h: Likewise.
25741         * io/fcntl.h: Likewise.
25742         * io/ftw.h: Likewise.
25743         * io/sys/poll.h: Likewise.
25744         * io/sys/stat.h: Likewise.
25745         * io/sys/statfs.h: Likewise.
25746         * io/sys/statvfs.h: Likewise.
25747         * io/utime.h: Likewise.
25748         * libio/bits/stdio.h: Likewise.
25749         * libio/bits/stdio2.h: Likewise.
25750         * libio/libio.h: Likewise.
25751         * libio/libioP.h: Likewise.
25752         * libio/stdio.h: Likewise.
25753         * locale/lc-ctype.c: Likewise.
25754         * locale/locale.h: Likewise.
25755         * login/utmp.h: Likewise.
25756         * malloc/arena.c: Likewise.
25757         * malloc/malloc.c: Likewise.
25758         * malloc/malloc.h: Likewise.
25759         * malloc/mcheck.c: Likewise.
25760         * malloc/mtrace.c: Likewise.
25761         * math/bits/mathcalls.h: Likewise.
25762         * math/fenv.h: Likewise.
25763         * math/math_private.h: Likewise.
25764         * misc/bits/error.h: Likewise.
25765         * misc/bits/syslog.h: Likewise.
25766         * misc/err.h: Likewise.
25767         * misc/error.h: Likewise.
25768         * misc/fstab.h: Likewise.
25769         * misc/mntent.h: Likewise.
25770         * misc/regexp.h: Likewise.
25771         * misc/search.h: Likewise.
25772         * misc/sgtty.h: Likewise.
25773         * misc/sys/mman.h: Likewise.
25774         * misc/sys/syslog.h: Likewise.
25775         * misc/sys/uio.h: Likewise.
25776         * misc/sys/xattr.h: Likewise.
25777         * misc/ttyent.h: Likewise.
25778         * nis/rpcsvc/ypclnt.h: Likewise.
25779         * nss/nss.h: Likewise.
25780         * posix/bits/unistd.h: Likewise.
25781         * posix/fnmatch.h: Likewise.
25782         * posix/glob.h: Likewise.
25783         * posix/sched.h: Likewise.
25784         * posix/spawn.h: Likewise.
25785         * posix/sys/wait.h: Likewise.
25786         * posix/unistd.h: Likewise.
25787         * posix/wordexp.h: Likewise.
25788         * pwd/pwd.h: Likewise.
25789         * resolv/netdb.h: Likewise.
25790         * resource/sys/resource.h: Likewise.
25791         * rt/aio.h: Likewise.
25792         * rt/bits/mqueue2.h: Likewise.
25793         * rt/mqueue.h: Likewise.
25794         * shadow/shadow.h: Likewise.
25795         * signal/signal.h: Likewise.
25796         * socket/send.c: Likewise.
25797         * socket/sendto.c: Likewise.
25798         * socket/sys/socket.h: Likewise.
25799         * stdio-common/printf.h: Likewise.
25800         * stdlib/bits/stdlib.h: Likewise.
25801         * stdlib/fmtmsg.h: Likewise.
25802         * stdlib/monetary.h: Likewise.
25803         * stdlib/stdlib.h: Likewise.
25804         * stdlib/ucontext.h: Likewise.
25805         * streams/stropts.h: Likewise.
25806         * string/argz.h: Likewise.
25807         * string/bits/string2.h: Likewise.
25808         * string/string.h: Likewise.
25809         * string/strings.h: Likewise.
25810         * sunrpc/rpc/auth.h: Likewise.
25811         * sunrpc/rpc/auth_des.h: Likewise.
25812         * sunrpc/rpc/clnt.h: Likewise.
25813         * sunrpc/rpc/netdb.h: Likewise.
25814         * sunrpc/rpc/pmap_clnt.h: Likewise.
25815         * sunrpc/rpc/xdr.h: Likewise.
25816         * sysdeps/generic/inttypes.h: Likewise.
25817         * sysdeps/generic/net/if.h: Likewise.
25818         * sysdeps/generic/sys/swap.h: Likewise.
25819         * sysdeps/gnu/net/if.h: Likewise.
25820         * sysdeps/gnu/utmpx.h: Likewise.
25821         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
25822         * sysdeps/i386/i486/bits/string.h: Likewise.
25823         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
25824         * sysdeps/s390/bits/string.h: Likewise.
25825         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
25826         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
25827         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
25828         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
25829         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
25830         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
25831         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
25832         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
25833         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
25834         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
25835         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
25836         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
25837         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
25838         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
25839         * sysdeps/unix/sysv/linux/readv.c: Likewise.
25840         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
25841         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
25842         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25843         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
25844         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
25845         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
25846         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
25847         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
25848         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
25849         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
25850         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
25851         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
25852         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
25853         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
25854         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
25855         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
25856         * sysvipc/sys/ipc.h: Likewise.
25857         * sysvipc/sys/msg.h: Likewise.
25858         * sysvipc/sys/sem.h: Likewise.
25859         * sysvipc/sys/shm.h: Likewise.
25860         * termios/termios.h: Likewise.
25861         * time/sys/time.h: Likewise.
25862         * time/time.h: Likewise.
25863         * wcsmbs/bits/wchar2.h: Likewise.
25864         * wcsmbs/uchar.h: Likewise.
25865         * wcsmbs/wchar.h: Likewise.
25866         * wctype/wctype.h: Likewise.
25867
25868         [BZ #13551]
25869         * Makeconfig: Remove all but ELF support including AIX support.
25870         * Makerules: Likewise.
25871         * config.h.in: Likewise.
25872         * config.make.in: Likewise.
25873         * configure: Likewise.
25874         * configure.in: Likewise.
25875         * csu/Makefile: Likewise.
25876         * csu/version.c: Likewise.
25877         * debug/Makefile: Likewise.
25878         * dlfcn/Makefile: Likewise.
25879         * elf/Makefile: Likewise.
25880         * extra-lib.mk: Likewise.
25881         * iconv/Makefile: Likewise.
25882         * include/libc-symbols.h: Likewise.
25883         * include/shlib-compat.h: Likewise.
25884         * resolv/Makefile: Likewise.
25885         * resolv/res_libc.c: Likewise.
25886         * rt/Makefile: Likewise.
25887         * sysdeps/i386/asm-syntax.h: Likewise.
25888         * sysdeps/i386/sysdep.h: Likewise.
25889         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
25890         * sysdeps/mach/sysdep.h: Likewise.
25891         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
25892         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
25893         * sysdeps/s390/asm-syntax.h: Likewise.
25894         * sysdeps/s390/s390-32/sysdep.h: Likewise.
25895         * sysdeps/s390/s390-64/sysdep.h: Likewise.
25896         * sysdeps/sh/sysdep.h: Likewise.
25897         * sysdeps/unix/sparc/sysdep.h: Likewise.
25898         * sysdeps/wordsize-32/divdi3.c: Likewise.
25899         * sysdeps/x86_64/sysdep.h: Likewise.
25900
25901         * argp/Versions: Remove _argp_unlock_xxx.
25902
25903         [BZ #13559]
25904         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
25905         * abilist/libBrokenLocale.abilist: Likewise.
25906         * abilist/libanl.abilist: Likewise.
25907         * abilist/libc.abilist: Likewise.
25908         * abilist/libcrypt.abilist: Likewise.
25909         * abilist/libdl.abilist: Likewise.
25910         * abilist/libm.abilist: Likewise.
25911         * abilist/libnsl.abilist: Likewise.
25912         * abilist/libpthread.abilist: Likewise.
25913         * abilist/libresolv.abilist: Likewise.
25914         * abilist/librt.abilist: Likewise.
25915         * abilist/libthread_db.abilist: Likewise.
25916         * abilist/libutil.abilist: Likewise.
25917         * abilist/libnss_db.abilist: New file.
25918
25919         * scripts/abilist.awk: Add support for indirect functions.
25920
25921         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
25922
25923         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
25924
25925         * shlib-versions: Remove entries for ports architectures.
25926
25927         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
25928         files in ports.
25929         * elf/stackguard-macros.h: Remove support for IA-64.
25930         * elf/tst-auditmod1.c: Likewise.
25931         * sysdeps/generic/ldsodefs.h: Likewise.
25932
25933         * sysdeps/unix/sysv/linux/configure.in: Ports should define
25934         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
25935         configure files.
25936
25937         [BZ #13552]
25938         * configure.in: Remove --enable-omitfp support.
25939         * FAQ.in: Adjust.
25940         * config.make.in: Likewise.
25941         * Makeconfig: Likewise.
25942         * manual/install.texi: Likewise.
25943
25944         In case anyone cares, the IA-64 architecture could move to ports.
25945         * sysdeps/ia64/*: Removed.
25946         * sysdeps/unix/sysv/linux/ia64/*: Removed.
25947         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
25948
25949         [BZ #13555]
25950         * configure.in: Remove entries for unsupported architectures.
25951
25952         [BZ #13533]
25953         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
25954         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
25955         routines.
25956         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
25957         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
25958         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
25959         fall back to using wcrtomb.
25960         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
25961         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
25962         renaming.
25963         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
25964         * wcsmbs/tst-c16c32-1.c: New file.
25965
25966         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
25967         local variable.
25968
25969         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
25970
25971         * elf/tst-unique3.cc: Add explicit declaration of gets.
25972         * elf/tst-unique3lib.cc: Likewise.
25973         * elf/tst-unique3lib2.cc: Likewise.
25974         * elf/tst-unique4.cc: Likewise.
25975
25976         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
25977
25978 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
25979
25980         [BZ #13566]
25981         * assert/assert.h (static_assert): Don't define for C++.
25982         * libio/stdio.h (gets): Do declare for C++ <= C++11.
25983         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
25984
25985 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
25986
25987         * iconv/loop.c (single loop): Fix assertion in storing of
25988         remaining bytes.
25989
25990         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
25991
25992 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
25993
25994         * posix/getconf.c: Update copyright year.
25995         * nss/getent.c: Likewise.
25996         * nss/makedb.c: Likewise.
25997         * iconv/iconvconfig.c: Likewise.
25998         * iconv/iconv_prog.c: Likewise.
25999         * elf/ldconfig.c: Likewise.
26000         * elf/pldd.c: Likewise.
26001         * elf/sotruss.ksh: Likewise.
26002         * catgets/gencat.c: Likewise.
26003         * csu/version.c: Likewise.
26004         * elf/ldd.bash.in: Likewise.
26005         * elf/sprof.c (print_version): Likewise.
26006         * locale/programs/locale.c: Likewise.
26007         * locale/programs/localedef.c: Likewise.
26008         * login/programs/pt_chown.c: Likewise.
26009         * nscd/nscd.c (print_version): Likewise.
26010         * debug/xtrace.sh: Likewise.
26011         * malloc/memusage.sh: Likewise.
26012         * malloc/mtrace.pl: Likewise.
26013         * debug/catchsegv.sh: Likewise.
26014
26015 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
26016
26017         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
26018         pure attribute.
26019
26020 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
26021
26022         [BZ #13533]
26023         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
26024         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
26025         transformations.
26026         * iconv/gconv_int.h: Likewise.
26027         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
26028         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
26029         from libc for GLIBC_2.16.
26030         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
26031         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
26032         * wcsmbs/uchar.h: Really define mbstate_t.
26033         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
26034         * wcsmbs/c16rtomb.c: New file.
26035         * wcsmbs/mbrtoc16.c: New file.
26036         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
26037         for C/POSIX locale.
26038         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
26039         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
26040
26041         * wcsmbs/wchar.h: Add missing __restrict.
26042
26043 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
26044
26045         [BZ #13532]
26046         * time/Makefile (routines): Add timespec_get.
26047         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
26048         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
26049         timespec for ISO C11.
26050         * time/timespec_get.c: New file.
26051         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
26052         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
26053
26054         [BZ #13531]
26055         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
26056         * stdlib/stdlib.h: Declare aligned_alloc.
26057         * Versions.def: Add GLIBC_2.16 for libc.
26058         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
26059
26060         [BZ 13527]
26061         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
26062         ISO C11.
26063
26064         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
26065         code.
26066
26067         [BZ #13528]
26068         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
26069
26070         [BZ #13529]
26071         * assert/assert.h (static_assert): Define.
26072
26073         * version.h: Update for 2.16 development version.
26074
26075         [BZ #13526]
26076         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
26077         _ISOC11_SOURCE.
26078
26079         * version.h (RELEASE): Bump for 2.15 release.
26080         * include/features.h (__GLIBC_MINOR__): Bump to 15.
26081
26082         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
26083         Patch by Marek Polacek <mpolacek@redhat.com>.
26084
26085         * bits/byteswap.h: Protect long long constants with __extension__.
26086         * sysdeps/i386/bits/byteswap.h: Likewise.
26087         * sysdeps/ia64/bits/byteswap.h: Likewise.
26088         * sysdeps/s390/bits/byteswap.h: Likewise.
26089         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26090
26091 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26092
26093         [BZ #13540]
26094         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
26095         destination buffer.
26096         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
26097
26098 2011-12-23  Marek Polacek  <polacek@redhat.com>
26099
26100         * elf/dl-addr.c (determine_info): Add inline keyword.
26101         * elf/tst-auditmod4b.c (check_avx): Likewise.
26102         * elf/tst-auditmod6b.c (check_avx): Likewise.
26103         * elf/tst-auditmod6c.c (check_avx): Likewise.
26104         * elf/tst-auditmod7b.c (check_avx): Likewise.
26105
26106 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
26107
26108         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
26109         !__SSE_MATH__.
26110
26111 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26112
26113         [BZ #13540]
26114         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
26115         processing for last bytes.
26116
26117 2011-08-06  Bruno Haible  <bruno@clisp.org>
26118
26119         [BZ #13061]
26120         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
26121         U+0385, not to U+1FEE.
26122
26123         [BZ #13062]
26124         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
26125         entry for U+00A5 U+0301.
26126
26127 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
26128
26129         [BZ #13166]
26130         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
26131         buffer for the output is too small.
26132
26133         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
26134         optimization.
26135
26136         [BZ #13185]
26137         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
26138         SSE flags if possible.
26139
26140 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26141
26142         [BZ #13540]
26143         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
26144         processing for last bytes.
26145
26146 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
26147
26148         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
26149         (syscall-list-default-options, syscall-list-default-condition)
26150         (syscall-list-includes): Define.
26151         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
26152         list of ABIs and options and #if conditions for each ABI.  Do not
26153         handle common syscalls between ABIs specially.
26154         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
26155         Remove.
26156         (syscall-list-variants, syscall-list-32bit-options)
26157         (syscall-list-32bit-condition, syscall-list-64bit-options)
26158         (syscall-list-64bit-condition): Define.
26159         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
26160         (syscall-list-variants, syscall-list-32bit-options)
26161         (syscall-list-32bit-condition, syscall-list-64bit-options)
26162         (syscall-list-64bit-condition): Define.
26163         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
26164         Remove.
26165         (syscall-list-variants, syscall-list-32bit-options)
26166         (syscall-list-32bit-condition, syscall-list-64bit-options)
26167         (syscall-list-64bit-condition): Define.
26168         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
26169         Remove.
26170         (syscall-list-variants, syscall-list-32bit-options)
26171         (syscall-list-32bit-condition, syscall-list-64bit-options)
26172         (syscall-list-64bit-condition): Define.
26173
26174 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
26175
26176         * locale/iso-639.def: Add brx entry.
26177
26178         [BZ #13328]
26179         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
26180         Proposed by Mariusz_Cukr <marcukr@op.pl>.
26181
26182         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
26183         __feraiseexcept_renamed.
26184
26185 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
26186
26187         [BZ #13538]
26188         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
26189         EPOLLET with unsigned values.
26190         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26191         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
26192
26193         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
26194         to large cancellation.
26195         * math/s_cacoshf.c: Likewise.
26196         * math/s_cacoshl.c: Likewise.
26197
26198 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
26199
26200         [BZ #13305]
26201         [BZ #12786]
26202         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
26203         * math/s_cacoshf.c: Likewise.
26204         * math/s_cacoshl.c: Likewise.
26205
26206 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
26207
26208         [BZ #13439]
26209         * iconv/gconv.h: Define __GCONV_SWAP.
26210         * iconvdata/unicode.c: The swap bit must be stored in __flags.
26211         * iconvdata/utf-16.c: Likewise.
26212         * iconvdata/utf-32.c: Likewise.
26213
26214 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
26215
26216         [BZ #13524]
26217         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
26218         numerator after shifting it by one limb.
26219
26220 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
26221
26222         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
26223         under [__USE_EXTERN_INLINES].
26224
26225 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
26226
26227         [BZ #13446]
26228         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
26229
26230 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26231
26232         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
26233         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
26234         optimized code.
26235         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
26236         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
26237         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
26238         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
26239         for strncasecmp/strncasecmp_l compilation.
26240         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
26241         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
26242
26243 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
26244
26245         [BZ #13484]
26246         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
26247         of __asm__.
26248
26249 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
26250
26251         [BZ #13506]
26252         * time/tzfile.c (__tzfile_read): Check values from file header.
26253
26254 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
26255
26256         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
26257         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
26258         * powerpc/powerpc32/dl-start.S: Likewise.
26259         * powerpc/powerpc32/elf/start.S: Likewise.
26260         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
26261         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
26262         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
26263         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
26264         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
26265         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
26266         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
26267         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
26268         * powerpc/powerpc32/fpu/s_round.S: Likewise.
26269         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
26270         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
26271         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
26272         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
26273         * powerpc/powerpc32/memset.S: Likewise.
26274         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
26275         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
26276         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
26277         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
26278         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
26279         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
26280         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
26281         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
26282         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
26283         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
26284         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
26285         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
26286         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
26287
26288 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26289
26290         * math/libm-test.inc: Added more nearbyint tests.
26291         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
26292         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
26293         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
26294         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
26295
26296 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
26297
26298         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
26299         FD_CLOEXEC.
26300
26301 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26302
26303         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
26304         Add wcscpy-ssse3 wcscpy-c.
26305         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
26306         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
26307         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
26308         * sysdeps/x86_64/wcschr.S: New file.
26309         * sysdeps/x86_64/wcsrchr.S: New file.
26310         * string/test-strcmp.c: Remove checking of wcscmp function for
26311         wrong alignments.
26312         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
26313         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
26314         wcsrchr-sse2 wcsrchr-c.
26315         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
26316         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
26317         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
26318         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
26319         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
26320         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
26321         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
26322         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
26323         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
26324         * wcsmbc/wcschr.c (WCSCHR): New macro.
26325
26326 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26327
26328         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
26329         * wcsmbs/test-wcsrchr.c: New file.
26330         * string/test-strrchr.c: Add wcsrchr support.
26331         (WIDE): New macro.
26332         * wcsmbs/test-wcscpy.c: New file.
26333         * string/test-strcpy.c: Add wcscpy support.
26334         (WIDE): New macro.
26335
26336 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
26337
26338         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
26339         the inner loop.
26340
26341 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
26342
26343         [BZ #13472]
26344         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
26345
26346 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
26347
26348         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
26349         Minor optimizations.
26350
26351         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
26352         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
26353         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
26354
26355 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
26356
26357         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
26358         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
26359         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
26360         for gcc to avoid warnings.
26361         * inet/Makefile (tests): Add tst-checks.
26362         * inet/tst-checks.c: New file.
26363
26364         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
26365         warning.
26366
26367         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
26368         __wmemcmp_sse2.
26369
26370         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
26371         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
26372
26373         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
26374
26375 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
26376
26377         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
26378         problem.
26379
26380         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
26381
26382 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
26383
26384         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
26385         conditional on GCC version.
26386         (__arch_compare_and_exchange_val_8_acq)
26387         (__arch_compare_and_exchange_val_16_acq)
26388         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
26389         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
26390         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
26391
26392 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
26393
26394         * sysdeps/sh/backtrace.c: New file.
26395
26396 2011-12-02  Andreas Schwab  <schwab@redhat.com>
26397
26398         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
26399         parenthesis.
26400
26401 2011-12-01  Andreas Schwab  <schwab@redhat.com>
26402
26403         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
26404         falling back to utime.
26405
26406 2011-11-30  Andreas Schwab  <schwab@redhat.com>
26407
26408         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
26409         expectations for float.
26410
26411 2011-11-29  Andreas Schwab  <schwab@redhat.com>
26412
26413         * locale/weight.h (findidx): Add parameter len.
26414         * locale/weightwc.h (findidx): Likewise.
26415         * posix/fnmatch_loop.c (FCT): Adjust caller.
26416         * posix/regcomp.c (build_equiv_class): Likewise.
26417         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
26418         * posix/regexec.c (check_node_accept_bytes): Likewise.
26419         * string/strcoll_l.c (STRCOLL): Likewise.
26420         * string/strxfrm_l.c (STRXFRM): Likewise.
26421
26422 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
26423
26424         * Makefile.in: Remove CVSOPT handling.
26425         * configure.in: Remove use of AC_REVISION.
26426         * iconvdata/Makefile (distribute): No need to filter out CVS.
26427         * scripts/list-sources.sh: Remove CVS, subversion and monotone
26428         handling.
26429
26430 2011-11-16  Andreas Schwab  <schwab@redhat.com>
26431
26432         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
26433         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
26434         [USE_AS_STRNCASECMP_L]: Likewise.
26435         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
26436         NO_TLS_DIRECT_SEG_REFS.
26437         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
26438         Fix argument offsets for non-PIC.
26439         [USE_AS_STRNCASECMP_L]: Likewise.
26440         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
26441         NO_TLS_DIRECT_SEG_REFS.
26442
26443 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
26444
26445         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
26446         O_CLOEXEC.
26447         * locale/loadlocale.c (_nl_load_locale): Likewise.
26448
26449 2011-11-15  Andreas Schwab  <schwab@redhat.com>
26450
26451         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
26452         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
26453         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
26454         (SYSCALL_GETTIME): Set errno on error.
26455
26456         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
26457         count references to noai6ai_cached.
26458
26459 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
26460
26461         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
26462
26463         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
26464         FD_CLOEXEC for /proc/self/maps.
26465
26466         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
26467         FD_CLOEXEC for /proc/meminfo.
26468
26469         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
26470         gai.conf.
26471
26472         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
26473         FD_CLOEXEC for given file.
26474
26475         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
26476
26477         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
26478         FD_CLOEXEC for /etc/hosts.
26479         (_gethtent): Likewise.
26480
26481         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
26482
26483         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
26484         cancellation and set FD_CLOEXEC for /etc/netgroup.
26485
26486         * nss/nss_files/files-key.c (search): Don't allow cancellation when
26487         reading /etc/publickey.
26488
26489         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
26490         allow cancellation when reading /etc/group.
26491
26492         * nss/nss_files/files-alias.c (internal_setent): Don't allow
26493         cancellation.
26494         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
26495
26496         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
26497         when using data file.
26498
26499         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
26500
26501         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
26502         (write_nis_obj): Use "c" and "e" in fopen.
26503
26504         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
26505
26506         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
26507
26508         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
26509
26510         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
26511
26512         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
26513         locale.alias.
26514
26515         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
26516
26517         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
26518
26519         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
26520
26521         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
26522         file parsing and set FD_CLOEXEC.
26523
26524 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
26525
26526         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
26527
26528 2011-11-14  Andreas Schwab  <schwab@redhat.com>
26529
26530         * malloc/arena.c (arena_get2): Don't call reused_arena when
26531         _int_new_arena failed.
26532
26533 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
26534
26535         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
26536         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
26537         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
26538         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26539         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26540         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
26541         to compile strcasecmp and strncasecmp.
26542         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
26543         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
26544
26545         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
26546
26547 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
26548
26549         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
26550         locale-defines.sym to gen-as-const-headers.
26551         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
26552         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
26553         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
26554         to compile strcasecmp and strncasecmp.
26555         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
26556         strcasecmp_l and strncasecmp_l.
26557         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
26558         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
26559         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
26560         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
26561         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
26562         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
26563         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
26564         * sysdeps/i386/i686/multiarch/strncase.S: New file.
26565         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
26566         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
26567         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
26568
26569 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
26570
26571         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
26572         result of SYSDEP_GETTIME_CPU to retval.
26573         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
26574         parameter list to macro.  Remove trailing semicolon.  Adjust users.
26575
26576         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
26577         variable.
26578
26579         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
26580         mantissa words.
26581         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
26582
26583         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
26584         from unused variable.
26585
26586         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
26587         DWARF definitions.
26588         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
26589         for assembling.
26590
26591         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
26592         over namespaces.
26593
26594         * sunrpc/rpc_prot.c (rejected): Fix case value.
26595
26596         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
26597         unsigned long long int to avoid warnings in shift.
26598
26599         * posix/regex_internal.c (re_string_reconstruct): Actually use result
26600         of use of trans.
26601         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
26602         variable tmp.
26603
26604         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
26605         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
26606         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
26607
26608         * nis/nis_table.c (nis_list): Use variable of correct type for
26609         result of __follow_path call.
26610
26611 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26612
26613         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
26614         of math functions ceil, trunc, floor, round, and sqrt, when
26615         avaliable on the platform.
26616         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
26617         name clash.
26618         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
26619         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
26620         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
26621
26622 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
26623
26624         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
26625         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
26626
26627 2011-11-11  Roland McGrath  <roland@hack.frob.com>
26628
26629         * include/unistd.h: Fix __readlink return type.
26630         Reported by Chris Metcalf <cmetcalf@tilera.com>.
26631
26632 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
26633
26634         * stdlib/ucontext.h: Undo last change for makecontext.
26635
26636 2011-11-11  Andreas Schwab  <schwab@redhat.com>
26637
26638         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
26639
26640         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
26641         * setjmp/setjmp.h: Mark functions as non-leaf.
26642         * setjmp/bits/setjmp2.h: Likewise.
26643         * stdlib/ucontext.h: Likewise.
26644
26645 2011-11-10  Andreas Schwab  <schwab@redhat.com>
26646
26647         * malloc/arena.c (_int_new_arena): Don't increment narenas.
26648         (reused_arena): Don't check arena limit.
26649         (arena_get2): Atomically check arena limit.
26650
26651 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
26652
26653         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
26654         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
26655
26656         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
26657         instructions.
26658
26659 2011-11-07  Andreas Schwab  <schwab@redhat.com>
26660
26661         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
26662         handler when locking.
26663
26664         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
26665         Fix size of allocated buffer.
26666
26667 2011-11-04  Andreas Schwab  <schwab@redhat.com>
26668
26669         [BZ #10103]
26670         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
26671         declarations for long double functions.
26672         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
26673
26674         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
26675
26676 2011-11-03  Andreas Schwab  <schwab@redhat.com>
26677
26678         * nscd/nscd.c (main): Don't start AVC thread until credentials are
26679         installed.
26680
26681         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
26682         is disabled.
26683
26684 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26685
26686         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
26687
26688 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26689
26690         * include/alloca.h (stackinfo_alloca_round): Define.
26691         (extend_alloca): Use it.
26692         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
26693         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
26694         here.
26695
26696         * scripts/check-local-headers.sh: Ignore libaudit.h.
26697
26698         * nscd/Makefile (extra-objs): Make recursively expanded.
26699
26700 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
26701
26702         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
26703         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
26704
26705         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
26706         * posix/tst-rfc3484-2.c: Likewise.
26707         * posix/tst-rfc3484-3.c: Likewise.
26708
26709         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
26710         process_vm_writev.
26711         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
26712         process_vm_writev.
26713         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
26714         process_vm_writev from libc using GLIBC_2.15 version.
26715
26716         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
26717
26718 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
26719
26720         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
26721         stack usage.
26722
26723 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
26724
26725         [BZ #13367]
26726         * nss/getent.c (initgroups_keys): Show error message in case no group
26727         names are given.
26728
26729         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
26730         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
26731         __bump_nl_timestamp.
26732         * nscd/connections (nscd_init): When host database is served open
26733         netlink socket and request notification about configuration changes.
26734         (main_loop_poll): Track netlink file descriptor and bump timestamp
26735         in case data becomes available.
26736         (main_loop_epoll): Likewise.
26737         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
26738         (database_pers_head): Add extra_data fileds.
26739         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
26740         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
26741         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
26742         Adjust caller.
26743         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
26744         in6ai data, call __free_in6ai.
26745         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
26746         Add -DHAVE_NETLINK.
26747         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
26748         interface information.  Reuse previous data if netlink timestamp
26749         is not changed.
26750         (__bump_nl_timestamp): New function.
26751         (__free_in6ai): New function.
26752
26753 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
26754
26755         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
26756         close_not_cancel_no_status here.
26757         (__check_pf): Reorganize code a bit to not call close twice if OOM.
26758
26759 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
26760
26761         [BZ #13276]
26762         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
26763         return value.
26764
26765         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
26766         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
26767         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
26768
26769 2011-07-03  Andreas Jaeger  <aj@suse.de>
26770
26771         [BZ #10709]
26772         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
26773         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
26774         * math/libm-test.inc (sin_test): Add test case.
26775
26776 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
26777
26778         [BZ #13337]
26779         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
26780         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
26781
26782         * elf/chroot_canon.c (chroot_canon): Cleanups.
26783
26784         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
26785
26786         [BZ #13335]
26787         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
26788         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
26789
26790         * string/test-strchr.c: Make usable for strchrnul testing.
26791         * string/test-strchrnul.c: New file.
26792         * string/Makefile (strop-tests): Add strchrnul.
26793
26794         * po/it.po: Update from translation team.
26795         * po/es.po: Likewise.
26796
26797 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
26798
26799         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
26800         the three constants needed as parameters.  Drop the others.
26801         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
26802         __m128i_strloadu_tolower.
26803         Create and initialize variable zero and use it in all the places
26804         where _mm_setzero_si128 was used.
26805
26806         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
26807         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
26808         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
26809         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
26810         anymore.
26811         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
26812         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
26813         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
26814         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
26815         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
26816         __mpranred, __mptan.
26817         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
26818         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
26819         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
26820         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
26821         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
26822         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
26823         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
26824         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
26825         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
26826
26827 2011-10-28  Andreas Schwab  <schwab@redhat.com>
26828
26829         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
26830         redefine if SHARED.
26831         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
26832
26833         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
26834         wide char related routines to wcsmbs subdir.
26835
26836 2011-10-27  Andreas Schwab  <schwab@redhat.com>
26837
26838         [BZ #13344]
26839         * misc/sys/cdefs.h (__THROWNL): Define.
26840         * posix/unistd.h: Use __THREADNL instead of __THREAD
26841         for memory synchronization functions.
26842
26843 2011-10-26  Roland McGrath  <roland@hack.frob.com>
26844
26845         [BZ #13349]
26846         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
26847         doesn't exist.
26848         * manual/stdio.texi (Obstack Streams): Node removed.
26849
26850 2011-10-26  Andreas Schwab  <schwab@redhat.com>
26851
26852         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
26853         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
26854         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
26855
26856         * math/math_private.h (math_force_eval): Allow non-addressable
26857         arguments.
26858         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
26859
26860 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
26861
26862         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
26863         file is not needed.
26864
26865         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
26866         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
26867         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26868         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26869         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26870         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26871         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26872         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
26873         Add AVX variants.
26874         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
26875         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
26876         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
26877         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
26878         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
26879         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
26880         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
26881         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
26882         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
26883         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
26884         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
26885         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
26886         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
26887         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
26888         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
26889         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
26890         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
26891         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
26892         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
26893
26894         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
26895         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
26896
26897         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
26898         place.  Use VEX encoding when compiling for AVX.
26899
26900 2011-10-25  Andreas Schwab  <schwab@redhat.com>
26901
26902         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
26903         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
26904
26905         * string/test-strchr.c (do_test): Don't generate NUL bytes.
26906
26907 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
26908
26909         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
26910         useless if() expression.
26911         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
26912         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
26913         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
26914         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
26915         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
26916         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
26917         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
26918         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
26919         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
26920         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
26921         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
26922         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
26923         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
26924         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
26925         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
26926         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
26927         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
26928         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
26929         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
26930
26931         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
26932
26933 2011-10-25  Andreas Schwab  <schwab@redhat.com>
26934
26935         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
26936         condition.
26937         * elf/dl-fini.c (_dl_sort_fini): Likewise.
26938
26939 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
26940
26941         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
26942         .text section.  Avoid duplicate constants.
26943         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
26944         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
26945         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
26946         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
26947         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
26948         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
26949         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
26950         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
26951         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
26952         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
26953         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
26954         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
26955         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
26956         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
26957         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
26958         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
26959         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
26960         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
26961         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
26962         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
26963         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
26964         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
26965         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
26966         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
26967         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
26968         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
26969         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
26970         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
26971         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
26972         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
26973         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
26974         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
26975         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
26976         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
26977         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
26978         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
26979         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
26980         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
26981         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
26982         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
26983         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
26984         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
26985         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
26986         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
26987         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
26988
26989 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
26990
26991         * sysdeps/x86_64/dla.h: Move to ...
26992         * sysdeps/x86_64/fpu/dla.h: ...here.
26993         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
26994         situations.  Use __builtin_fma only for gcc 4.6 and up.
26995
26996         * config.make.in: Add have-mfma4 entry.
26997         * configure.in: Substitute libc_cv_cc_fma4.
26998         * math/Makefile (dbl-only-routines): Add sincostab.
26999         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
27000         Use __sincostab not sincos.
27001         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
27002         name is a macro.
27003         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27004         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27005         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27006         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
27007         using __copysign.
27008         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
27009         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
27010         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
27011         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
27012         and __inv.
27013         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
27014         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
27015         __copysign.
27016         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
27017         define aliases when function name is a macro.
27018         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
27019         sysdeps/ieee754/dbl-64/sincos.tbl.
27020         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
27021         fma4-enabled routines.
27022         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
27023         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
27024         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
27025         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
27026         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
27027         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
27028         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
27029         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
27030         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
27031         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
27032         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
27033         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
27034         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
27035         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
27036         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
27037         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
27038         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
27039         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
27040         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
27041         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
27042         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
27043         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
27044         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
27045         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
27046         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
27047         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
27048         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
27049         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
27050         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
27051         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
27052
27053         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
27054         rename.
27055         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27056         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27057         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27058         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27059         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27060         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27061         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27062         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27063
27064 2011-10-24  Andreas Schwab  <schwab@redhat.com>
27065
27066         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
27067
27068 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
27069
27070         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
27071
27072         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
27073         prediction.
27074         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
27075
27076         * string/strnlen.c: Don't define STRNLEN, reverse logic.
27077         Remove unused variable magic_bits.
27078         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
27079
27080         * string/strnlen.c: Define and use STRNLEN macro.
27081         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
27082         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
27083         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
27084         * wcsmbs/wcslen.c: Define and use WCSLEN.
27085         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
27086         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
27087         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
27088         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
27089         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
27090         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
27091         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
27092
27093 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27094
27095         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27096         strnlen-sse2-no-bsf.
27097         Rename strlen-no-bsf to strlen-sse2-no-bsf.
27098         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
27099         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
27100         Add strnlen support.
27101         (USE_AS_STRNLEN): New macro.
27102         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
27103         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
27104         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
27105         * sysdeps/x86_64/wcslen.S: New file.
27106
27107 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
27108
27109         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27110         XMM-moves are used for copying on small sizes.
27111
27112 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27113
27114         * wcsmbs/Makefile (strop-tests): Add wcschr.
27115         * wcsmbs/test-wcschr.c: New file.
27116         * string/test-strchr.c: Update.
27117         Add wcschr support.
27118         (WIDE): New macro.
27119
27120 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27121
27122         * wcsmbs/Makefile (strop-tests): Add wcslen.
27123         * wcsmbs/test-wcslen.c: New file.
27124         * string/test-strlen.c: Update.
27125         Add wcslen support.
27126         (WIDE): New macro.
27127
27128 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
27129
27130         * po/it.po: Update from translation team.
27131
27132 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27133
27134         * sysdeps/x86_64/wcscmp.S: Update.
27135         Fix wrong comparison semantics.
27136         wcscmp shall use signed comparison not unsigned.
27137         Don't use substraction to avoid overflow bug.
27138         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
27139         * wcsmbc/wcscmp.c: Likewise.
27140         * string/test-strcmp.c: Likewise.
27141         Add new tests to check cases with negative values.
27142
27143 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
27144
27145         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
27146         * sysdeps/x86_64/dla.h: ...here.  New file.
27147         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
27148         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27149         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27150         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27151         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27152         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
27153         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27154         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27155         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27156
27157 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
27158
27159         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
27160         __ynl_finite aliases.
27161
27162 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
27163
27164         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27165
27166         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
27167         define DLA_FMA.
27168         [DLA_FMA] (EMULV): Use DLA_FMA.
27169         [DLA_FMA] (MUL12): Use EMULV.
27170         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
27171         that are not needed.
27172         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27173         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27174         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27175         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27176         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27177         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27178         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27179
27180 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
27181
27182         * math/s_nan.c: Undef __nan.
27183         * math/s_nanf.c: Undef __nanf.
27184         * math/s_nanl.c: Undef __nanl.
27185         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
27186         "math_private.h".
27187
27188 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
27189
27190         * math/s_catan.c: Add branch predictions.
27191         * math/s_catanf.c: Likewise.
27192         * math/s_catanh.c: Likewise.
27193         * math/s_catanhf.c: Likewise.
27194         * math/s_catanhl.c: Likewise.
27195         * math/s_catanl.c: Likewise.
27196         * math/s_cexp.c: Likewise.
27197         * math/s_cexpf.c: Likewise.
27198         * math/s_cexpl.c: Likewise.
27199         * math/s_clog.c: Likewise.
27200         * math/s_clog10.c: Likewise.
27201         * math/s_clog10f.c: Likewise.
27202         * math/s_clog10l.c: Likewise.
27203         * math/s_clogf.c: Likewise.
27204         * math/s_clogl.c: Likewise.
27205         * math/s_csqrt.c: Likewise.
27206         * math/s_csqrtf.c: Likewise.
27207         * math/s_csqrtl.c: Likewise.
27208         * math/s_ctanf.c: Likewise.
27209         * math/s_ctanh.c: Likewise.
27210         * math/s_ctanhf.c: Likewise.
27211         * math/s_ctanhl.c: Likewise.
27212         * math/s_ctanl.c: Likewise.
27213
27214         * math/math_private.h: Define __nan, __nanf, __nanl.
27215         * math/s_cacosh.c: Include <math_private.h>.
27216         * math/s_cacoshl.c: Likewise.
27217         * math/s_casinh.c: Likewise.
27218         * math/s_casinhf.c: Likewise.
27219         * math/s_casinhl.c: Likewise.
27220         * math/s_ccos.c: Rely entire on ccosh.
27221         * math/s_ccosf.c: Rely entire on ccoshf.
27222         * math/s_ccosl.c: Rely entirely on ccoshl.
27223         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
27224         Remove tests for FE_INVALID.
27225         * math/s_ccoshf.c: Likewise.
27226         * math/s_ccoshl.c: Likewise.
27227         * math/s_csin.c: Likewise.
27228         * math/s_csinf.c: Likewise.
27229         * math/s_csinh.c Likewise.
27230         * math/s_csinhf.c: Likewise.
27231         * math/s_csinhl.c: Likewise.
27232         * math/s_csinl.c: Likewise.
27233         * math/s_ctan.c: Likewise.
27234         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
27235         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
27236         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
27237
27238 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
27239
27240         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
27241         compilation problems.
27242
27243         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
27244         __builtin_expect.
27245
27246 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
27247
27248         * sysdeps/i386/configure.in: Test for -mfma4 option.
27249         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
27250         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
27251         COMMON_CPUID_INDEX_80000001.
27252         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
27253         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
27254         use it if FMA3 is not supported.
27255         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27256
27257         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
27258         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
27259
27260 2011-10-20  Andreas Schwab  <schwab@redhat.com>
27261
27262         [BZ #12892]
27263         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
27264         it would create a cycle with a link time dependency.
27265
27266 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
27267
27268         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
27269         instruction.
27270         * string/Makefile (strop-tests): Add rawmemchr.
27271         * string/test-rawmemchr.c: New file.
27272
27273         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
27274         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
27275         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
27276         when compiling str{,n}casecmp and when AVX is available.  Hook up
27277         new optimized code in initializers.
27278
27279 2011-10-19  Andreas Schwab  <schwab@redhat.com>
27280
27281         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
27282         __feraiseexcept instead of feraiseexcept.
27283
27284 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
27285
27286         * math/math_private.h: Define defaults for libc_fetestexcept and
27287         libc_feupdateenv.
27288         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
27289         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
27290         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
27291         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
27292         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
27293         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
27294         libc_fetestexcept and libc_feupdateenv.
27295
27296         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
27297         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
27298         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
27299         * sysdeps/x86_64/fpu/math_private.h: Define special version of
27300         libc_feholdexcept_setround.
27301
27302         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
27303         Add s_nearbyint-c and s_nearbyintf-c.
27304         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
27305         nearbyintf inlines.
27306         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
27307         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
27308         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
27309         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
27310
27311         * math/math_private.h: Define defaults for libc_fegetround,
27312         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
27313         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
27314         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
27315         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
27316         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
27317         standard functions.
27318         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
27319         Remove comments and hacks for old compiler versions.
27320         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
27321         libc_fegetround, libc_fesetround, libc_feholdexcept, and
27322         libc_feholdexceptl.
27323
27324 2011-10-18  Andreas Schwab  <schwab@redhat.com>
27325
27326         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
27327         (__feraiseexcept_renamed): Add __NTH.
27328         (feraiseexcept): Add __NTH.  Rename local variables to fix
27329         namespace violations.
27330
27331 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
27332
27333         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
27334
27335         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
27336
27337         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
27338         recently added interfaces.
27339         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
27340
27341         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
27342         about macro parameter expansion.
27343
27344         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
27345         __NO_MATH_INLINES is defined.  Cleanups.
27346
27347         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
27348         and __floorf is target has SSE4.1.
27349         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
27350         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
27351         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
27352         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
27353
27354         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
27355         name.
27356         (floorf): Likewise.
27357
27358         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
27359
27360 2011-10-17  Andreas Schwab  <schwab@redhat.com>
27361
27362         * misc/sys/cdefs.h: Fix last change.
27363
27364         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
27365         database lookup.
27366
27367 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
27368
27369         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
27370
27371         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
27372         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27373         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
27374         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
27375         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
27376         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
27377         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
27378         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
27379         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
27380         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
27381         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
27382         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
27383         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
27384         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
27385         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
27386         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
27387         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
27388         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
27389         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
27390         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
27391         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
27392         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
27393
27394         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
27395         ceil, ceilf, floor, floorf.
27396
27397         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
27398         Perform IRELATIVE relocations last.
27399
27400         * elf/do-rel.h: Add another parameter nrelative, replacing the
27401         local variable with the same name.  Change name of the function
27402         to end in Rel or Rela (uppercase).
27403         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
27404         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
27405         elf_dynamic_do_##reloc function.
27406
27407 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
27408
27409         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
27410         is sufficient, at least on modern CPUs.
27411
27412         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
27413
27414         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
27415         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
27416
27417         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
27418         __expl_finite.
27419         * math/bits/math-finite.h: Add entries for exp.
27420         * math/e_expl.c: Add __*_finite alias.
27421         * sysdeps/i386/fpu/e_exp.S: Likewise.
27422         * sysdeps/i386/fpu/e_expf.S: Likewise.
27423         * sysdeps/i386/fpu/e_expl.c: Likewise.
27424         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27425         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
27426         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
27427         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
27428         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
27429         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
27430         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
27431
27432         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
27433         is sufficient, at least on modern CPUs.
27434
27435         * ctype/ctype-info.c (__ctype_init): Define.
27436         * include/ctype.h (__ctype_init): Declare.
27437         (__ctype_b_loc): The variable is always initialized.
27438         (__ctype_toupper_loc): Likewise.
27439         (__ctype_tolower_loc): Likewise.
27440         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
27441         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
27442
27443 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
27444
27445         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
27446
27447         * configure.in: Also look in $cxxmachine/include for C++ system
27448         headers.
27449
27450 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27451
27452         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
27453         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
27454         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
27455         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
27456         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
27457         (USE_AS_WMEMCMP): New macro.
27458         Fixing indents.
27459         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
27460         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
27461         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
27462         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
27463         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27464         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
27465         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
27466         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
27467         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
27468         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
27469         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
27470         (USE_AS_WMEMCMP): New macro.
27471         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
27472         * sysdeps/string/test-memcmp.c: Update.
27473         Fix simple_wmemcmp.
27474         Add new tests.
27475         * wcsmbs/wmemcmp.c: Update.
27476         (WMEMCMP): New macro.
27477         Fix overflow bug.
27478
27479 2011-10-12  Andreas Jaeger  <aj@suse.de>
27480
27481         [BZ #13268]
27482         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
27483
27484 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
27485
27486         * libio/iofwide.c (do_length): Avoid warning.
27487
27488         * ctype/ctype.h (__isctype_f): Add missing __THROW.
27489
27490 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
27491
27492         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
27493
27494         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
27495         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
27496         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
27497         * sysdeps/i386/i686/fpu/e_log.S: New file.
27498         * sysdeps/i386/i686/fpu/e_logf.S: New file.
27499         * sysdeps/i386/i686/fpu/e_logl.S: New file.
27500
27501         * ctype/ctype.h: Add support for inlined isXXX functions when
27502         compiling C++ code.
27503
27504 2011-10-14  Andreas Schwab  <schwab@redhat.com>
27505
27506         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
27507
27508         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
27509
27510 2011-10-13  Roland McGrath  <roland@hack.frob.com>
27511
27512         [BZ #13291]
27513         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
27514
27515 2011-10-13  Andreas Schwab  <schwab@redhat.com>
27516
27517         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
27518         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
27519         feraiseexcept.
27520
27521         * sysdeps/x86_64/memrchr.S: Check for zero size.
27522
27523         * string/stratcliff.c: Add memrchr tests.
27524
27525 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27526
27527         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27528         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
27529         rawmemchr-sse2 rawmemchr-sse2-bsf.
27530         * sysdeps/i386/i686/multiarch/memchr.S: New file.
27531         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
27532         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
27533         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
27534         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
27535         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
27536         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
27537         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
27538         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
27539         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
27540         * string/memrchr.c (MEMRCHR): New macro.
27541
27542 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
27543
27544         Add integration with gcc's -ffinite-math-only and optimize wrapper
27545         functions in libm.
27546         * Versions.def: Define GLIBC_2.15 version for libm.
27547         * math/Makefile (headers): Add bits/math-finite.h.
27548         * math/bits/math-finite.h: New file.
27549         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
27550         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
27551         * math/e_acoshl.c: Add __*_finite alias.
27552         * math/e_acosl.c: Likewise.
27553         * math/e_asinl.c: Likewise.
27554         * math/e_atan2l.c: Likewise.
27555         * math/e_atanhl.c: Likewise.
27556         * math/e_coshl.c: Likewise.
27557         * math/e_exp10.c: Likewise.
27558         * math/e_exp10f.c: Likewise.
27559         * math/e_exp10l.c: Likewise.
27560         * math/e_exp2l.c: Likewise.
27561         * math/e_fmodl.c: Likewise.
27562         * math/e_gammal_r.c: Likewise.
27563         * math/e_hypotl.c: Likewise.
27564         * math/e_j0l.c: Likewise.
27565         * math/e_j1l.c: Likewise.
27566         * math/e_jnl.c: Likewise.
27567         * math/e_lgammal_r.c: Likewise.
27568         * math/e_log10l.c: Likewise.
27569         * math/e_log2l.c: Likewise.
27570         * math/e_logl.c: Likewise.
27571         * math/e_powl.c: Likewise.
27572         * math/e_sinhl.c: Likewise.
27573         * math/e_sqrtl.c: Likewise.
27574         * math/e_scalb.c: Completely rewritten and optimized.
27575         * math/e_scalbf.c: Likewise.
27576         * math/e_scalbl.c: Likewise.
27577         * math/w_acos.c: Likewise.
27578         * math/w_acosf.c: Likewise.
27579         * math/w_acosl.c: Likewise.
27580         * math/w_acosh.c: Likewise.
27581         * math/w_acoshf.c: Likewise.
27582         * math/w_acoshl.c: Likewise.
27583         * math/w_asin.c: Likewise.
27584         * math/w_asinf.c: Likewise.
27585         * math/w_asinl.c: Likewise.
27586         * math/w_atan2.c: Likewise.
27587         * math/w_atan2f.c: Likewise.
27588         * math/w_atan2l.c: Likewise.
27589         * math/w_atanh.c: Likewise.
27590         * math/w_atanhf.c: Likewise.
27591         * math/w_atanhl.c: Likewise.
27592         * math/w_exp10.c: Likewise.
27593         * math/w_exp10f.c: Likewise.
27594         * math/w_exp10l.c: Likewise.
27595         * math/w_fmod.c: Likewise.
27596         * math/w_fmodf.c: Likewise.
27597         * math/w_fmodl.c: Likewise.
27598         * math/w_j0.c: Likewise.
27599         * math/w_j0f.c: Likewise.
27600         * math/w_j0l.c: Likewise.
27601         * math/w_j1.c: Likewise.
27602         * math/w_j1f.c: Likewise.
27603         * math/w_j1l.c: Likewise.
27604         * math/w_jn.c: Likewise.
27605         * math/w_jnf.c: Likewise.
27606         * math/w_log.c: Likewise.
27607         * math/w_logf.c: Likewise.
27608         * math/w_logl.c: Likewise.
27609         * math/w_log10.c: Likewise.
27610         * math/w_log10f.c: Likewise.
27611         * math/w_log10l.c: Likewise.
27612         * math/w_log2.c: Likewise.
27613         * math/w_log2f.c: Likewise.
27614         * math/w_log2l.c: Likewise.
27615         * math/w_pow.c: Likewise.
27616         * math/w_powf.c: Likewise.
27617         * math/w_powl.c: Likewise.
27618         * math/w_remainder.c: Likewise.
27619         * math/w_remainderf.c: Likewise.
27620         * math/w_remainderl.c: Likewise.
27621         * math/w_scalb.c: Likewise.
27622         * math/w_scalbf.c: Likewise.
27623         * math/w_scalbl.c: Likewise.
27624         * math/w_sqrt.c: Likewise.
27625         * math/w_sqrtf.c: Likewise.
27626         * math/w_sqrtl.c: Likewise.
27627         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
27628         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
27629         used.
27630         * math/math_private.h: Declare __kernel_standard_f.
27631         * math/w_cosh.c: Remove cruft and optimize a bit.
27632         * math/w_coshf.c: Likewise.
27633         * math/w_coshl.c: Likewise.
27634         * math/w_exp2.c: Likewise.
27635         * math/w_exp2f.c: Likewise.
27636         * math/w_exp2l.c: Likewise.
27637         * math/w_hypot.c: Likewise.
27638         * math/w_hypotf.c: Likewise.
27639         * math/w_hypotl.c: Likewise.
27640         * math/w_lgamma.c: Likewise.
27641         * math/w_lgamma_r.c: Likewise.
27642         * math/w_lgammaf.c: Likewise.
27643         * math/w_lgammaf_r.c: Likewise.
27644         * math/w_lgammal.c: Likewise.
27645         * math/w_lgammal_r.c: Likewise.
27646         * math/w_sinh.c: Likewise.
27647         * math/w_sinhf.c: Likewise.
27648         * math/w_sinhl.c: Likewise.
27649         * math/w_tgamma.c: Likewise.
27650         * math/w_tgammaf.c: Likewise.
27651         * math/w_tgammal.c: Likewise.
27652         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
27653         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
27654         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
27655         Minor optimizations.  Pretty printing.  Remove cruft.
27656         * sysdeps/i386/fpu/e_acosf.S: Likewise.
27657         * sysdeps/i386/fpu/e_acosh.S: Likewise.
27658         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
27659         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
27660         * sysdeps/i386/fpu/e_acosl.c: Likewise.
27661         * sysdeps/i386/fpu/e_asin.S: Likewise.
27662         * sysdeps/i386/fpu/e_asinf.S: Likewise.
27663         * sysdeps/i386/fpu/e_atan2.S: Likewise.
27664         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
27665         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
27666         * sysdeps/i386/fpu/e_atanh.S: Likewise.
27667         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
27668         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
27669         * sysdeps/i386/fpu/e_exp10.S: Likewise.
27670         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
27671         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
27672         * sysdeps/i386/fpu/e_exp2.S: Likewise.
27673         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
27674         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
27675         * sysdeps/i386/fpu/e_fmod.S: Likewise.
27676         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
27677         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
27678         * sysdeps/i386/fpu/e_hypot.S: Likewise.
27679         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
27680         * sysdeps/i386/fpu/e_log.S: Likewise.
27681         * sysdeps/i386/fpu/e_log10.S: Likewise.
27682         * sysdeps/i386/fpu/e_log10f.S: Likewise.
27683         * sysdeps/i386/fpu/e_log10l.S: Likewise.
27684         * sysdeps/i386/fpu/e_log2.S: Likewise.
27685         * sysdeps/i386/fpu/e_log2f.S: Likewise.
27686         * sysdeps/i386/fpu/e_log2l.S: Likewise.
27687         * sysdeps/i386/fpu/e_logf.S: Likewise.
27688         * sysdeps/i386/fpu/e_logl.S: Likewise.
27689         * sysdeps/i386/fpu/e_pow.S: Likewise.
27690         * sysdeps/i386/fpu/e_powf.S: Likewise.
27691         * sysdeps/i386/fpu/e_powl.S: Likewise.
27692         * sysdeps/i386/fpu/e_remainder.S: Likewise.
27693         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
27694         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
27695         * sysdeps/i386/fpu/e_scalb.S: Likewise.
27696         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
27697         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
27698         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
27699         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
27700         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
27701         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
27702         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
27703         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27704         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
27705         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
27706         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
27707         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
27708         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
27709         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
27710         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
27711         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
27712         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
27713         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27714         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
27715         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
27716         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27717         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
27718         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
27719         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
27720         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27721         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
27722         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
27723         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
27724         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
27725         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
27726         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
27727         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
27728         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
27729         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
27730         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
27731         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
27732         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
27733         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
27734         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
27735         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
27736         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
27737         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
27738         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
27739         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
27740         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
27741         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
27742         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
27743         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
27744         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
27745         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
27746         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
27747         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
27748         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
27749         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
27750         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
27751         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
27752         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
27753         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
27754         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
27755         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
27756         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
27757         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
27758         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
27759         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
27760         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
27761         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
27762         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
27763         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
27764         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
27765         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
27766         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
27767         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
27768         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
27769         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
27770         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
27771         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
27772         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
27773         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
27774         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
27775         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
27776         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
27777         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
27778         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
27779         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
27780         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
27781         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
27782         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
27783         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
27784         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
27785         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
27786         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
27787         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
27788         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
27789         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
27790         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
27791         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
27792         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
27793         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
27794         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
27795         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
27796         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
27797         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
27798         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
27799         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
27800         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
27801         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
27802         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
27803         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
27804         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
27805         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
27806         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
27807         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
27808         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27809         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
27810         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
27811         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
27812         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
27813         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
27814         (__isnanf): Likewise.
27815         (__isinf_ns): Likewise.
27816         (__isinf_nsf): Likewise.
27817         (__finite): Likewise.
27818         (__finitef): Likewise.
27819         (__ieee754_sqrt): Define as macro.
27820         (__ieee754_sqrtf): Define as macro.
27821         (__ieee754_sqrtl): Define as macro.
27822         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
27823         inlined copy.
27824         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
27825         __FINITE_MATH_ONLY__ consistent.
27826         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
27827
27828 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
27829
27830         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
27831         of rawmemchr.
27832
27833         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
27834
27835 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
27836
27837         * po/ja.po: Update from translation team.
27838
27839 2011-10-08  Roland McGrath  <roland@hack.frob.com>
27840
27841         * locale/programs/locarchive.c (prepare_address_space): New function.
27842         (create_archive, enlarge_archive, open_archive): Use it.
27843
27844         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
27845         inside [SHARED], where it is used.
27846
27847         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
27848
27849         * nss/getent.c (netgroup_keys): Remove unused variable.
27850         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
27851
27852 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
27853
27854         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
27855         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
27856         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
27857         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
27858         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
27859         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
27860         * math/Makefile (libm-calls): Add s_isinf_ns.
27861         * math/divtc3.c: Use __isinf_nsl instead of isinf.
27862         * math/multc3.c: Likewise.
27863         * math/s_casin.c: Likewise.
27864         * math/s_casinf.c: Likewise.
27865         * math/s_casinl.c: Likewise.
27866         * math/s_ccos.c: Likewise.
27867         * math/s_ccosf.c: Likewise.
27868         * math/s_ccosl.c: Likewise.
27869         * math/s_ctan.c: Likewise.
27870         * math/s_ctanf.c: Likewise.
27871         * math/s_ctanh.c: Likewise.
27872         * math/s_ctanhf.c: Likewise.
27873         * math/s_ctanhl.c: Likewise.
27874         * math/s_ctanl.c: Likewise.
27875         * math/w_fmod.c: Likewise.
27876         * math/w_fmodf.c: Likewise.
27877         * math/w_fmodl.c: Likewise.
27878         * math/w_remainder.c: Likewise.
27879         * math/w_remainderf.c: Likewise.
27880         * math/w_remainderl.c: Likewise.
27881         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
27882         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
27883         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
27884         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
27885         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
27886         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
27887         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
27888         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
27889
27890         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
27891         of the number.
27892         * stdio-common/printf_fphex.c: Likewise.
27893         * stdio-common/printf_size.c: Likewise.
27894
27895         * math/e_exp10.c: Include math_private.h using <...> not "...".
27896         * math/e_exp10f.c: Likewise.
27897         * math/e_exp10l.c: Likewise.
27898         * math/e_exp2l.c: Likewise.
27899         * math/e_j0l.c: Likewise.
27900         * math/e_j1l.c: Likewise.
27901         * math/e_jnl.c: Likewise.
27902         * math/e_lgammal_r.c: Likewise.
27903         * math/e_rem_pio2l.c: Likewise.
27904         * math/e_scalb.c: Likewise.
27905         * math/e_scalbf.c: Likewise.
27906         * math/e_scalbl.c: Likewise.
27907         * math/k_cosl.c: Likewise.
27908         * math/k_sinl.c: Likewise.
27909         * math/k_tanl.c: Likewise.
27910         * math/s_cacoshf.c: Likewise.
27911         * math/s_catan.c: Likewise.
27912         * math/s_catanf.c: Likewise.
27913         * math/s_catanh.c: Likewise.
27914         * math/s_catanhf.c: Likewise.
27915         * math/s_catanhl.c: Likewise.
27916         * math/s_catanl.c: Likewise.
27917         * math/s_ccosh.c: Likewise.
27918         * math/s_ccoshf.c: Likewise.
27919         * math/s_ccoshl.c: Likewise.
27920         * math/s_cexp.c: Likewise.
27921         * math/s_cexpf.c: Likewise.
27922         * math/s_cexpl.c: Likewise.
27923         * math/s_clog.c: Likewise.
27924         * math/s_clog10.c: Likewise.
27925         * math/s_clog10f.c: Likewise.
27926         * math/s_clog10l.c: Likewise.
27927         * math/s_clogf.c: Likewise.
27928         * math/s_clogl.c: Likewise.
27929         * math/s_csin.c: Likewise.
27930         * math/s_csinf.c: Likewise.
27931         * math/s_csinh.c: Likewise.
27932         * math/s_csinhf.c: Likewise.
27933         * math/s_csinhl.c: Likewise.
27934         * math/s_csinl.c: Likewise.
27935         * math/s_csqrt.c: Likewise.
27936         * math/s_csqrtf.c: Likewise.
27937         * math/s_csqrtl.c: Likewise.
27938         * math/s_ctan.c: Likewise.
27939         * math/s_ctanf.c: Likewise.
27940         * math/s_ctanh.c: Likewise.
27941         * math/s_ctanhf.c: Likewise.
27942         * math/s_ctanhl.c: Likewise.
27943         * math/s_ctanl.c: Likewise.
27944         * math/s_ldexp.c: Likewise.
27945         * math/s_ldexpf.c: Likewise.
27946         * math/s_ldexpl.c: Likewise.
27947         * math/s_significand.c: Likewise.
27948         * math/s_significandf.c: Likewise.
27949         * math/s_significandl.c: Likewise.
27950         * math/w_acos.c: Likewise.
27951         * math/w_acosf.c: Likewise.
27952         * math/w_acosh.c: Likewise.
27953         * math/w_acoshf.c: Likewise.
27954         * math/w_acoshl.c: Likewise.
27955         * math/w_acosl.c: Likewise.
27956         * math/w_asin.c: Likewise.
27957         * math/w_asinf.c: Likewise.
27958         * math/w_asinl.c: Likewise.
27959         * math/w_atan2.c: Likewise.
27960         * math/w_atan2f.c: Likewise.
27961         * math/w_atan2l.c: Likewise.
27962         * math/w_atanh.c: Likewise.
27963         * math/w_atanhf.c: Likewise.
27964         * math/w_atanhl.c: Likewise.
27965         * math/w_cosh.c: Likewise.
27966         * math/w_coshf.c: Likewise.
27967         * math/w_coshl.c: Likewise.
27968         * math/w_dremf.c: Likewise.
27969         * math/w_exp10.c: Likewise.
27970         * math/w_exp10f.c: Likewise.
27971         * math/w_exp10l.c: Likewise.
27972         * math/w_exp2.c: Likewise.
27973         * math/w_exp2f.c: Likewise.
27974         * math/w_fmod.c: Likewise.
27975         * math/w_fmodf.c: Likewise.
27976         * math/w_fmodl.c: Likewise.
27977         * math/w_hypot.c: Likewise.
27978         * math/w_hypotf.c: Likewise.
27979         * math/w_hypotl.c: Likewise.
27980         * math/w_j0.c: Likewise.
27981         * math/w_j0f.c: Likewise.
27982         * math/w_j0l.c: Likewise.
27983         * math/w_j1.c: Likewise.
27984         * math/w_j1f.c: Likewise.
27985         * math/w_j1l.c: Likewise.
27986         * math/w_jn.c: Likewise.
27987         * math/w_jnf.c: Likewise.
27988         * math/w_jnl.c: Likewise.
27989         * math/w_lgamma.c: Likewise.
27990         * math/w_lgamma_r.c: Likewise.
27991         * math/w_lgammaf.c: Likewise.
27992         * math/w_lgammaf_r.c: Likewise.
27993         * math/w_lgammal.c: Likewise.
27994         * math/w_lgammal_r.c: Likewise.
27995         * math/w_log.c: Likewise.
27996         * math/w_log10.c: Likewise.
27997         * math/w_log10f.c: Likewise.
27998         * math/w_log10l.c: Likewise.
27999         * math/w_log2.c: Likewise.
28000         * math/w_log2f.c: Likewise.
28001         * math/w_log2l.c: Likewise.
28002         * math/w_logf.c: Likewise.
28003         * math/w_logl.c: Likewise.
28004         * math/w_pow.c: Likewise.
28005         * math/w_powf.c: Likewise.
28006         * math/w_powl.c: Likewise.
28007         * math/w_remainder.c: Likewise.
28008         * math/w_remainderf.c: Likewise.
28009         * math/w_remainderl.c: Likewise.
28010         * math/w_scalb.c: Likewise.
28011         * math/w_scalbf.c: Likewise.
28012         * math/w_scalbl.c: Likewise.
28013         * math/w_sinh.c: Likewise.
28014         * math/w_sinhf.c: Likewise.
28015         * math/w_sinhl.c: Likewise.
28016         * math/w_sqrt.c: Likewise.
28017         * math/w_sqrtf.c: Likewise.
28018         * math/w_sqrtl.c: Likewise.
28019         * math/w_tgamma.c: Likewise.
28020         * math/w_tgammaf.c: Likewise.
28021         * math/w_tgammal.c: Likewise.
28022
28023         * po/ja.po: Update from translation team.
28024
28025 2011-09-29  Andreas Jaeger  <aj@suse.de>
28026
28027         [BZ #13179]
28028         * sunrpc/netname.c (netname2host): Fix logic.
28029
28030         [BZ #6779]
28031         [BZ #6783]
28032         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
28033         correctly.
28034         * math/w_remainder.c (__remainder): Likewise.
28035         * math/w_remainderf.c (__remainderf): Likewise.
28036         * math/libm-test.inc (remainder_test): Add test cases.
28037
28038 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28039
28040         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
28041         sdiv_qrnnd.
28042
28043 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
28044
28045         * string/test-memcmp.c: Avoid unncessary #defines.
28046         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
28047
28048 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28049
28050         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
28051         Use new sse2 version for core i3 - i7 as it's faster
28052         than sse42 version.
28053         (bit_Prefer_PMINUB_for_stringop): New.
28054         * sysdeps/x86_64/rawmemchr.S: Update.
28055         Replace with faster SSE2 version.
28056         * sysdeps/x86_64/memrchr.S: New file.
28057         * sysdeps/x86_64/memchr.S: Update.
28058         Replace with faster SSE2 version.
28059
28060 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
28061
28062         * elf/dl-load.c (lose): Add cast to avoid warning.
28063
28064 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
28065
28066         * po/ca.po: Update from translation team.
28067
28068         * inet/getnetgrent_r.c: Hook up nscd.
28069         * nscd/Makefile (routines): Add nscd_netgroup.
28070         (nscd-modules): Add netgroupcache.
28071         (CFLAGS-netgroupcache.c): Define.
28072         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
28073         (cache_search): Add const to second parameter.
28074         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
28075         INNETGR.
28076         (dbs): Add netgrdb entry.
28077         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
28078         (verify_persistent_db): Handle netgrdb.
28079         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
28080         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
28081         GETFDNETGR.
28082         (netgroup_response_header): Define.
28083         (innetgroup_response_header): Define.
28084         (datahead): Add netgroup_response_header and innetgroup_response_header
28085         elements.
28086         * nscd/nscd.conf: Add entries for netgroup cache.
28087         * nscd/nscd.h (dbtype): Add netgrdb.
28088         (_PATH_NSCD_NETGROUP_DB): Define.
28089         (netgroup_iov_disabled): Declare.
28090         (xmalloc, xcalloc, xrealloc): Move declarations here.
28091         (cache_search): Adjust prototype.
28092         Add netgroup-related prototypes.
28093         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
28094         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
28095         (__nscd_innetgr): Declare.
28096         * nscd/selinux.c (perms): Use access_vector_t as element type and
28097         add netgroup-related initializers.
28098         * nscd/netgroupcache.c: New file.
28099         * nscd/nscd_netgroup.c: New file.
28100         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
28101         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
28102         For four parameters use innetgr.
28103         * nss/nss_files/files-init.c: Add definition and callback for netgr.
28104         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
28105         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
28106         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
28107
28108         * nscd/connections.c (register_traced_file): Don't register file
28109         for disabled databases.
28110
28111 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
28112
28113         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
28114
28115         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
28116         from tree and freeing node.
28117
28118 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
28119
28120         * nss/nsswitch.c (__nss_database_lookup): Handle
28121         nss_parse_service_list out of memory case.
28122
28123 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
28124
28125         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
28126         out of memory case.
28127
28128 2011-10-04  Andreas Schwab  <schwab@redhat.com>
28129
28130         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
28131         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
28132         pass it down.
28133         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
28134         elf_machine_rela, elf_machine_lazy_rel.
28135         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
28136         (ELF_DYNAMIC_DO_REL): Likewise.
28137         (ELF_DYNAMIC_DO_RELA): Likewise.
28138         (ELF_DYNAMIC_RELOCATE): Likewise.
28139         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
28140         to ELF_DYNAMIC_DO_REL.
28141         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
28142         (dl_main): In trace mode always set __RTLD_NOIFUNC.
28143         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
28144         elf_machine_rela.
28145         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
28146         skip_ifunc, don't call ifunc function if non-zero.
28147         (elf_machine_rela): Likewise.
28148         (elf_machine_lazy_rel): Likewise.
28149         (elf_machine_lazy_rela): Likewise.
28150         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
28151         (elf_machine_lazy_rel): Likewise.
28152         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
28153         Likewise.
28154         (elf_machine_lazy_rel): Likewise.
28155         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28156         Likewise.
28157         (elf_machine_lazy_rel): Likewise.
28158         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
28159         (elf_machine_lazy_rel): Likewise.
28160         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
28161         (elf_machine_lazy_rel): Likewise.
28162         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
28163         (elf_machine_lazy_rel): Likewise.
28164         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
28165         (elf_machine_lazy_rel): Likewise.
28166         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
28167         (elf_machine_lazy_rel): Likewise.
28168         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
28169         (elf_machine_lazy_rel): Likewise.
28170
28171 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
28172
28173         * nss/nss_files/files-init.c (_nss_files_init): Use static
28174         initialization for all the *_traced_file variables.
28175
28176 2011-09-28  Andreas Schwab  <schwab@redhat.com>
28177
28178         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28179
28180 2011-09-27  Roland McGrath  <roland@hack.frob.com>
28181
28182         [BZ #13226]
28183         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
28184
28185 2011-09-27  Andreas Schwab  <schwab@redhat.com>
28186
28187         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
28188         Reread the line before reparsing it.
28189
28190 2011-09-26  Andreas Schwab  <schwab@redhat.com>
28191
28192         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
28193
28194 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
28195             Maxim Kuvyrkov  <maxim@codesourcery.com>
28196             Joseph Myers  <joseph@codesourcery.com>
28197
28198         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
28199         if needed for __stack_chk_guard.
28200
28201 2011-09-19  Roland McGrath  <roland@hack.frob.com>
28202
28203         * sysdeps/posix/spawni.c (script_execute): Always define it.
28204         It will be optimized away if unused.
28205         (maybe_script_execute): New function.
28206         (__spawni): Call it.
28207
28208         * Makerules: Don't include tls.make.
28209         (config-tls): Always set to thread.
28210         * tls.make.c: File removed.
28211
28212 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
28213
28214         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
28215         * config.make.in (CPPFLAGS-config): New substituted variable.
28216
28217 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
28218
28219         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
28220
28221         [BZ #13192]
28222         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
28223         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
28224
28225 2011-09-15  Roland McGrath  <roland@hack.frob.com>
28226
28227         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
28228         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
28229         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28230         (CALL_FAIL): Likewise.
28231         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
28232         (CALL_FAIL): Macro removed.
28233         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
28234
28235 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
28236
28237         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
28238         for __FINITE_MATH_ONLY__ == 1.
28239
28240 2011-09-15  Andreas Schwab  <schwab@redhat.com>
28241
28242         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
28243         __ieee754_sqrt instead of sqrt.
28244         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
28245         __ieee754_sqrtf instead of sqrtf.
28246         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
28247         __floorf instead of floorf.
28248         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
28249         __floorf, __truncf instead of floorf, truncf.
28250
28251 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
28252
28253         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
28254
28255         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
28256         __extern_always_inline.
28257         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
28258         32-bit.
28259
28260 2011-09-14  Andreas Schwab  <schwab@redhat.com>
28261
28262         * elf/rtld.c (dl_main): Also relocate in dependency order when
28263         doing symbol dependency testing.
28264
28265 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
28266
28267         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28268         Always define `refsym'.
28269
28270 2011-09-13  Andreas Schwab  <schwab@redhat.com>
28271
28272         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
28273         (__FD_ELT): Renamed from __FDELT.
28274         * misc/bits/select2.h (__FD_ELT): Likewise.
28275         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
28276         __FD_MASK instead of __FDELT, __FDMASK.
28277         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
28278         Likewise.
28279         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
28280         Likewise.
28281
28282         * elf/Makefile (gen-ldd): Fix pattern.
28283
28284         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
28285         (init_tls): Likewise.
28286
28287 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
28288
28289         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
28290
28291 2011-09-12  Andreas Schwab  <schwab@redhat.com>
28292
28293         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
28294         `struct cmsghdr *' instead of `void *'.
28295         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
28296         Likewise.
28297
28298 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
28299
28300         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
28301         if non-absolute.
28302         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
28303         ldd_rewrite_script.
28304
28305 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
28306
28307         * configure.in: Remove --with-tls option.
28308         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
28309         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
28310         out in case it is missing.
28311         * sysdeps/ia64/elf/configure.in: Likewise.
28312         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
28313         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
28314         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
28315         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
28316         * sysdeps/sh/elf/configure.in: Likewise.
28317         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
28318         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
28319         * sysdeps/x86_64/elf/configure.in: Likewise.
28320         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
28321         * sysdeps/mach/hurd/tls.h: Likewise.
28322
28323         [BZ #13067]
28324         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
28325
28326         [BZ #13090]
28327         * configure.in: Fix use of AC_INIT.
28328
28329         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
28330
28331 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
28332
28333         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
28334         __set_errno.
28335         * malloc/hooks.c: Likewise.
28336
28337         [BZ #11929]
28338         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
28339         variables statically.
28340         (narenas): Initialize.
28341         (list_lock): Initialize.
28342         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
28343         initializtion of main_arena and list_lock.  Small cleanups.
28344         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
28345         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
28346         Add initializers to main_arena and mp_.
28347         (malloc_state): Remove pagesize member.  Change all users to use
28348         GLRO(dl_pagesize).
28349
28350         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
28351         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
28352         is always initialized.
28353
28354         * malloc/malloc.c: Removed unused configurations and dead code.
28355         * malloc/arena.c: Likewise.
28356         * malloc/hooks.c: Likewise.
28357         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
28358
28359         * include/tls.h: Removed.  USE___THREAD must always be defined.
28360         * bits/libc-tsd.h: Don't handle !USE___THREAD.
28361         * elf/dl-libc.c: Likewise.
28362         * elf/dl-tsd.c: Likewise.
28363         * include/errno.h: Likewise.
28364         * include/netdb.h: Likewise.
28365         * include/resolv.h: Likewise.
28366         * inet/herrno-loc.c: Likewise.
28367         * inet/herrno.c: Likewise.
28368         * malloc/arena.c: Likewise.
28369         * malloc/hooks.c: Likewise.
28370         * malloc/malloc.c: Likewise.
28371         * resolv/res-state.c: Likewise.
28372         * resolv/res_libc.c: Likewise.
28373         * sysdeps/i386/dl-machine.h: Likewise.
28374         * sysdeps/ia64/dl-machine.h: Likewise.
28375         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28376         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28377         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28378         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28379         * sysdeps/sh/dl-machine.h: Likewise.
28380         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28381         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28382         * sysdeps/unix/i386/sysdep.S: Likewise.
28383         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
28384         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
28385         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
28386         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
28387         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
28388         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
28389         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
28390         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
28391         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
28392         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
28393         * sysdeps/unix/x86_64/sysdep.S: Likewise.
28394         * sysdeps/x86_64/dl-machine.h: Likewise.
28395         * tls.make.c: Likewise.
28396
28397         * configure.in: Remove --with-__thread option.  Make tests for
28398         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
28399         tls_model attribute fail if no support is available.  Remove
28400         USE_IN_LIBIO.
28401         * Makeconfig: Adjust for dropped configure option.  All features are
28402         now mandatory.
28403         * Makerules: Likewise.
28404         * Versions.def: Likewise.
28405         * argp/argp-fmtstream.c: Likewise.
28406         * argp/argp-fmtstream.h: Likewise.
28407         * argp/argp-help.c: Likewise.
28408         * assert/assert.c: Likewise.
28409         * config.h.in: Likewise.
28410         * config.make.in: Likewise.
28411         * configure: Likewise.
28412         * configure.in: Likewise.
28413         * csu/Versions: Likewise.
28414         * csu/init.c: Likewise.
28415         * elf/tst-audit2.c: Likewise.
28416         * elf/tst-tls10.c: Likewise.
28417         * elf/tst-tls10.h: Likewise.
28418         * elf/tst-tls11.c: Likewise.
28419         * elf/tst-tls12.c: Likewise.
28420         * elf/tst-tls14.c: Likewise.
28421         * elf/tst-tlsmod11.c: Likewise.
28422         * elf/tst-tlsmod12.c: Likewise.
28423         * elf/tst-tlsmod13.c: Likewise.
28424         * elf/tst-tlsmod13a.c: Likewise.
28425         * elf/tst-tlsmod14a.c: Likewise.
28426         * elf/tst-tlsmod15b.c: Likewise.
28427         * elf/tst-tlsmod16a.c: Likewise.
28428         * elf/tst-tlsmod16b.c: Likewise.
28429         * elf/tst-tlsmod7.c: Likewise.
28430         * elf/tst-tlsmod8.c: Likewise.
28431         * elf/tst-tlsmod9.c: Likewise.
28432         * gmon/gmon.c: Likewise.
28433         * grp/fgetgrent_r.c: Likewise.
28434         * grp/putgrent.c: Likewise.
28435         * hurd/fopenport.c: Likewise.
28436         * include/libc-symbols.h: Likewise.
28437         * include/tls.h: Likewise.
28438         * intl/gettextP.h: Likewise.
28439         * intl/loadinfo.h: Likewise.
28440         * locale/global-locale.c: Likewise.
28441         * locale/localeinfo.h: Likewise.
28442         * mach/devstream.c: Likewise.
28443         * malloc/arena.c: Likewise.
28444         * malloc/set-freeres.c: Likewise.
28445         * misc/err.c: Likewise.
28446         * misc/getttyent.c: Likewise.
28447         * misc/mntent_r.c: Likewise.
28448         * posix/getopt.c: Likewise.
28449         * posix/wordexp.c: Likewise.
28450         * pwd/fgetpwent_r.c: Likewise.
28451         * resolv/Versions: Likewise.
28452         * resolv/res_hconf.c: Likewise.
28453         * shadow/fgetspent_r.c: Likewise.
28454         * shadow/putspent.c: Likewise.
28455         * stdio-common/printf_fphex.c: Likewise.
28456         * stdio-common/tmpfile.c: Likewise.
28457         * stdlib/abort.c: Likewise.
28458         * stdlib/fmtmsg.c: Likewise.
28459         * sunrpc/auth_unix.c: Likewise.
28460         * sunrpc/clnt_perr.c: Likewise.
28461         * sunrpc/clnt_tcp.c: Likewise.
28462         * sunrpc/clnt_udp.c: Likewise.
28463         * sunrpc/clnt_unix.c: Likewise.
28464         * sunrpc/openchild.c: Likewise.
28465         * sunrpc/svc_simple.c: Likewise.
28466         * sunrpc/svc_tcp.c: Likewise.
28467         * sunrpc/svc_udp.c: Likewise.
28468         * sunrpc/svc_unix.c: Likewise.
28469         * sunrpc/xdr.c: Likewise.
28470         * sunrpc/xdr_array.c: Likewise.
28471         * sunrpc/xdr_rec.c: Likewise.
28472         * sunrpc/xdr_ref.c: Likewise.
28473         * sunrpc/xdr_stdio.c: Likewise.
28474
28475 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
28476
28477         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28478
28479 2011-07-03  Andreas Jaeger  <aj@suse.de>
28480
28481         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
28482         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
28483         regenerate with gen-libm-tests.pl.
28484
28485 2010-05-12  Petr Baudis  <pasky@suse.cz>
28486
28487         [BZ #11589]
28488         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
28489         around j0() zero points by switching to j1().
28490         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28491         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28492         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
28493         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28494
28495 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
28496
28497         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
28498         instead of 0.
28499         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
28500         instead of 0.
28501         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28502         Patch in part by Pavel Roskin <proski@gnu.org>.
28503
28504         [BZ #13138]
28505         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
28506         realloc.
28507         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
28508         Free memory block if necessary.
28509
28510         [BZ #12847]
28511         * libio/genops.c (INTDEF): For string streams the _lock pointer can
28512         be NULL.  Don't lock in this case.
28513
28514 2011-09-09  Roland McGrath  <roland@hack.frob.com>
28515
28516         * elf/elf.h (ELFOSABI_GNU): New macro.
28517         (ELFOSABI_LINUX): Define to that.
28518
28519 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
28520
28521         * string/strncat.c (strncat): Undef the symbol in case it has been
28522         defined in bits/string.h.
28523
28524 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
28525
28526         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
28527
28528         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
28529         link map.
28530
28531 2011-08-17  Andreas Jaeger  <aj@suse.de>
28532
28533         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
28534
28535 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
28536             Ian Lance Taylor  <iant@google.com>
28537
28538         * math/libm-test.inc (lround_test): New testcase.
28539         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
28540
28541 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
28542
28543         * Makefile: Remove support for automatic cvs check-ins.
28544         * Makerules: Likewise.
28545         * config.make.in: Likewise.
28546         * configure.in: Likewise.
28547         * intl/Makefile: Likewise.
28548         * locale/Makefile: Likewise.
28549         * po/Makefile: Likewise.
28550         * posix/Makefile: Likewise.
28551         * sysdeps/gnu/Makefile: Likewise.
28552         * sysdeps/mach/hurd/Makefile: Likewise.
28553         * sysdeps/sparc/sparc32/Makefile: Likewise.
28554
28555         [BZ #13118]
28556         * posix/Makefile (bug-regex32-ENV): Define.
28557         Patch by John Stanley <jpsinthemix@verizon.net>.
28558
28559         * misc/Makefile (headers): Add bits/select2.h.
28560         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
28561         * misc/bits/select2.h: New file.
28562         * include/bits/select2.h: New file.
28563         * debug/Makefile (routines): Add fdelt_chk.
28564         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
28565         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
28566         FD_ISSET.
28567         * debug/fdelt_chk.c: New file.
28568
28569         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
28570         * wcsmbs/test-wmemcmp.c: Likewise.
28571         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
28572         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
28573
28574 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28575
28576         * string/Makefile (strop-tests): Add memcmp.
28577         * string/test-wmemcmp.c: New file.
28578         * string/test-memcmp.c: Add wmemcmp support.
28579
28580 2011-09-08  Roland McGrath  <roland@hack.frob.com>
28581
28582         [BZ #13153]
28583         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
28584         2011-07-19 change.
28585
28586         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
28587         garbage value in a __mach_port_mod_refs call in the cases of the
28588         task-self and thread-self ports.
28589
28590 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28591
28592         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
28593
28594 2011-09-08  Andreas Schwab  <schwab@redhat.com>
28595
28596         * elf/dl-load.c (lose): Check for non-null L.
28597
28598 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
28599
28600         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
28601
28602         * elf/dl-libc.c (dlerror_run): Pass back error code from
28603         dl_catch_error.
28604
28605         [BZ #13123]
28606         * elf/dl-load.c (lose): Free l_origin if it is valid.
28607
28608         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
28609         names.
28610         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
28611         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
28612         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
28613         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
28614         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
28615         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
28616
28617 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28618
28619         * sysdeps/powerpc/fpu/e_hypot.c: New file.
28620         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
28621         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
28622         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
28623         * sysdeps/powerpc/fpu/k_cosf.c: New file.
28624         * sysdeps/powerpc/fpu/k_sinf.c: New file.
28625         * sysdeps/powerpc/fpu/s_cosf.c: New file.
28626         * sysdeps/powerpc/fpu/s_sinf.c: New file.
28627         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
28628         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
28629
28630 2011-08-15  Alan Modra  <amodra@gmail.com>
28631
28632         [BZ #13092]
28633         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
28634         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
28635         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
28636         ppc_mcount to static-only-routines.
28637         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
28638         __mcount_internal.
28639         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
28640         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
28641
28642 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
28643
28644         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
28645         for finite and infinity parameters.
28646
28647 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
28648
28649         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
28650         and add nop instructions for throughput optimization.
28651         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
28652
28653 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
28654
28655         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
28656         aligned copy for power7 with vector-scalar instructions.
28657         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
28658
28659 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
28660
28661         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
28662         AVX check.
28663
28664 2011-09-07  Andreas Schwab  <schwab@redhat.com>
28665
28666         [BZ #13144]
28667         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
28668         last change.
28669
28670 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
28671
28672         * sysdeps/unix/sysv/linux/x86_64/init-first.c
28673         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
28674         syscall wrapper around clock_gettime in __vdso_clock_gettime.
28675         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
28676         clock_gettime.
28677
28678 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
28679
28680         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
28681         Forgot to demangle the pointer.
28682
28683         * sysdeps/i386/sysdep.h: Define atom_text_section.
28684         * sysdeps/x86_64/sysdep.h: Likewise.
28685         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
28686         section with atom_text_section.
28687         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
28688         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
28689         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
28690         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
28691         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
28692
28693         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
28694         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
28695         already be defined.  Change to take two parameters and don't assign
28696         result to variable.  Adjust all users.
28697         Define INTERNAL_GETTIME if not already defined.
28698         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
28699         call.
28700         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
28701         HAVE_CLOCK_GETTIME_VSYSCALL.
28702         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
28703
28704         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
28705         gettimeofday vsyscall, just use time.
28706
28707 2011-09-06  Andreas Schwab  <schwab@redhat.com>
28708
28709         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
28710         <errno.h>.
28711
28712 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
28713
28714         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
28715         syscall on x86-64.
28716         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
28717         syscall.
28718         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
28719         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
28720         syscall if possible.
28721
28722 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
28723
28724         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
28725         e_ident.  Don't pass to find_mapsXX.
28726         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
28727
28728 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
28729
28730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28731         strchr-sse2-no-bsf strrchr-sse2-no-bsf
28732         * sysdeps/x86_64/multiarch/strchr.S: Update.
28733         Check bit_slow_BSF bit.
28734         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
28735         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
28736         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
28737
28738 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
28739
28740         [BZ #13134]
28741         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
28742         before glibc 2.15.
28743         (tryshell): Define.
28744         (__spawni): Change last parameter to be flag.  Test
28745         SPAWN_XFLAGS_USE_PATH flag to use path or not.
28746         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
28747         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
28748         * posix/spawni.c: Likewise.
28749         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
28750         * posix/spawnp.c: Likewise.  Change normal version to use
28751         SPAWN_XFLAGS_USE_PATH.
28752         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
28753         SPAWN_XFLAGS_TRY_SHELL.
28754
28755         [BZ #13150]
28756         * posix/glob.h: Remove gcc 1.x support.
28757
28758         [BZ #13068]
28759         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
28760
28761 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
28762
28763         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28764         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
28765         strrchr-sse2-bsf
28766         * sysdeps/i386/i686/multiarch/strchr.S: New file.
28767         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
28768         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
28769         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
28770         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
28771         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
28772
28773 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28774
28775         * sysdeps/x86_64/wcscmp.S: New file.
28776
28777         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
28778         wcscmp-c wcscmp-sse2
28779         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
28780         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
28781         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
28782         * wcsmbs/wcscmp.c: Allow renaming.
28783
28784 2011-09-05  David S. Miller  <davem@davemloft.net>
28785
28786         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
28787         stack slot, rather than the struct return pointer slot.
28788         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
28789         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
28790         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
28791         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
28792
28793 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
28794
28795         * po/ja.po: Update from translation team.
28796
28797         [BZ #13144]
28798         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
28799         kernel in 64-bit binaries.
28800
28801 2011-09-01  David S. Miller  <davem@davemloft.net>
28802
28803         * elf/elf.h (HWCAP_SPARC_*): Move to..
28804         * sysdeps/sparc/sysdep.h: this new file and add new values.
28805         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
28806         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
28807         _DL_HWCAP_COUNT to 24.
28808         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28809         entries.
28810         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
28811         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
28812         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
28813         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
28814         instead of magic constants.
28815         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28816
28817 2011-08-31  David S. Miller  <davem@davemloft.net>
28818
28819         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
28820         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
28821         Reimplement to do errno handling inline.
28822         (SYSCALL_ERROR_HANDLER): New macro.
28823         (__SYSCALL_STRING): Do not do errno handling in asm.
28824         (__CLONE_SYSCALL_STRING): Delete.
28825         (__INTERNAL_SYSCALL_STRING): Delete.
28826         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
28827         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
28828         (PSEUDO): Reimplement to do errno handling inline.
28829         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
28830         (SYSCALL_ERROR_HANDLER): New macro.
28831         (__SYSCALL_STRING): Do not do errno handling in asm.
28832         (__CLONE_SYSCALL_STRING): Delete.
28833         (__INTERNAL_SYSCALL_STRING): Delete.
28834         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
28835         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
28836         i386.
28837         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
28838         (inline_syscall*): Add 'err' argument.
28839         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
28840         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
28841         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
28842         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
28843
28844         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
28845         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
28846
28847 2011-08-30  Andreas Schwab  <schwab@redhat.com>
28848
28849         * elf/rtld.c (dl_main): Relocate objects in dependency order.
28850
28851 2011-08-29  Jiri Olsa <jolsa@redhat.com>
28852
28853         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
28854         directive.
28855
28856 2011-08-24  David S. Miller  <davem@davemloft.net>
28857
28858         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
28859
28860 2011-08-24  Andreas Schwab  <schwab@redhat.com>
28861
28862         * elf/Makefile: Add rules to build and run unload8 test.
28863         * elf/unload8.c: New file.
28864         * elf/unload8mod1.c: New file.
28865         * elf/unload8mod1x.c: New file.
28866         * elf/unload8mod2.c: New file.
28867         * elf/unload8mod3.c: New file.
28868
28869         * elf/dl-close.c (_dl_close_worker): Reset private search list if
28870         it wasn't used.
28871
28872 2011-08-23  David S. Miller  <davem@davemloft.net>
28873
28874         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
28875         subtract stack bias.
28876         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
28877         %sp not %fp in calculations.
28878         (_JMPBUF_UNWINDS_ADJ): Likewise.
28879
28880         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
28881         (aio_suspend): Call it to force an exception region around the
28882         AIO_MISC_WAIT() invocation.
28883
28884 2011-08-23  Andreas Schwab  <schwab@redhat.com>
28885
28886         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
28887         backslash.
28888
28889 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
28890
28891         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
28892         protection macro.
28893         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
28894         and <dl-machine.h>.
28895         (Elf64_FuncDesc): Remove.
28896
28897 2011-08-22  David S. Miller  <davem@davemloft.net>
28898
28899         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
28900         sigaltstack check, add missing cfi directives.
28901         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
28902         missing cfi directives, and sigaltstack handling.
28903
28904 2011-08-16  Andreas Schwab  <schwab@redhat.com>
28905
28906         [BZ #11724]
28907         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
28908         object is seen twice.
28909         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28910
28911         * elf/Makefile (distribute): Add tst-initorder2.c.
28912         (tests): Add tst-initorder2.
28913         (modules-names): Add tst-initorder2a tst-initorder2b
28914         tst-initorder2c tst-initorder2d.  Add rules to build them.
28915         ($(objpfx)tst-initorder2.out): New rule.
28916         * elf/tst-initorder2.c: New file.
28917         * elf/tst-initorder2.exp: New file.
28918
28919 2011-08-22  Andreas Schwab  <schwab@redhat.com>
28920
28921         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
28922
28923         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
28924         dependencies back to end of function.
28925
28926         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28927         $(elfobjdir)/ld.so.
28928
28929 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
28930
28931         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
28932         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
28933         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
28934         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
28935         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
28936         of __vdso_gettimeofday.
28937         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
28938         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
28939         attribute_hidden.
28940         (_libc_vdso_platform_setup): Remove initialization of
28941         __vdso_gettimeofday and __vdso_time.
28942
28943 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
28944
28945         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
28946         and fgetc_unlocked.
28947         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
28948         getc_unlocked.
28949
28950         * elf/dl-open.c (add_to_global): Report additions to the global scope
28951         for LD_DEBUG=scopes.
28952         (dl_open_worker): Also print scope of newly loaded dependencies.
28953         (_dl_show_scope): Indicate if there is no scope.
28954
28955         [BZ #13114]
28956         * stdio-common/Makefile (tests): Add bug24.
28957         * stdio-common/bug24.c: New file.
28958
28959 2011-08-19  Andreas Jaeger  <aj@suse.de>
28960
28961         [BZ #13114]
28962         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
28963         non-existant file when using close-on-exec mode.
28964
28965 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
28966
28967         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
28968         the very first instruction.
28969
28970         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
28971         the CFI state in the end.
28972         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
28973         inclusion of dl-trampoline.h.
28974         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
28975
28976 2011-08-19  Andreas Schwab  <schwab@redhat.com>
28977
28978         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
28979         expectations for long double.
28980
28981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
28982         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
28983
28984 2011-08-14  David S. Miller  <davem@davemloft.net>
28985
28986         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
28987         artificual limit depends upon the system page size.
28988
28989 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
28990
28991         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
28992         * resolv/Makefile: Define CFLAGS-libresolv.
28993
28994 2011-08-17  Andreas Schwab  <schwab@redhat.com>
28995
28996         * nss/makedb.c (compute_tables): Make variables used in nested
28997         function static.
28998
28999 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
29000
29001         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
29002         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
29003         if buffer was too small.
29004
29005         * elf/pldd.c (main): Attach to all threads in the process.
29006         Rewrite /proc handling to use *at functions.
29007
29008 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
29009
29010         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
29011         specifies first scope to show.
29012         (dl_open_worker): Update callers.  Move printing scope of new
29013         object to before the relocation.
29014         * elf/rtld.c (dl_main): Update _dl_show_scope call.
29015         * sysdeps/generic/ldsodefs.h: Update declaration.
29016
29017         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
29018         string for the scope number.
29019
29020 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
29021
29022         * nscd/servicescache.c (cache_addserv): Make sure written is always
29023         initialized.
29024
29025 2011-08-14  Roland McGrath  <roland@hack.frob.com>
29026
29027         * sysdeps/i386/i486/bits/atomic.h
29028         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
29029         statement expression, so as to suppress "set but not used" warning.
29030         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
29031
29032         * string/strncat.c (STRNCAT): Use prototype definition.
29033
29034         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
29035         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
29036         -Iprograms here.
29037         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
29038         (localedef-modules): Add localedef.
29039         (locale-modules): Add locale.
29040
29041         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
29042         * elf/rtld.c (dl_main): Invert order of assignment in last change,
29043         to avoid a warning.
29044
29045 2011-08-14  David S. Miller  <davem@davemloft.net>
29046
29047         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
29048         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
29049
29050 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
29051
29052         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
29053         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
29054         * elf/rtld.c (dl_main): Set l_name of vDSO.
29055         Call _dl_show_scope when DL_DEBUG_SCOPES.
29056         (process_dl_debug): Recognize scopes flag and also set it for all.
29057         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
29058         Declare _dl_show_scope.
29059
29060         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
29061         (do_dlopen): Pass caller_dlopen to dl_open.
29062         (__libc_dlopen_mode): Initialize caller_dlopen.
29063
29064         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
29065         of libc.  Make tolower call locale-independent.  Optimize a bit by
29066         using isdigit instead of isalnum.
29067         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
29068
29069 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
29070
29071         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
29072         was a dependency or dynamically loaded.
29073
29074 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
29075
29076         * intl/l10nflist.c: Allow architecture-specific pop function.
29077         * sysdeps/x86_64/l10nflist.c: New file.
29078
29079         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
29080         classification.
29081
29082 2011-08-10  Andreas Schwab  <schwab@redhat.com>
29083
29084         * include/dirent.h: Add libc_hidden_proto for scandirat and
29085         scandirat64.  Don't declare __scandirat64.
29086         * dirent/scandirat.c: Add libc_hidden_def.
29087         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
29088         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
29089
29090 2011-08-10  David S. Miller  <davem@davemloft.net>
29091
29092         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
29093         enum.
29094         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
29095         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
29096         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
29097
29098 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
29099
29100         * Versions.def [libc]: Add GLIBC_2.15.
29101         * dirent/Makefile (routines): Add scandirat and scandirat64.
29102         * dirent/Versions [libc]: Export scandirat and scandirat64 for
29103         GLIBC_2.15.
29104         * dirent/dirent.h: Declare scandirat and scandirat64.
29105         * dirent/scandirat.c: New file.
29106         * dirent/scandirat64.c: New file.
29107         * sysdeps/wordsize-64/scandirat.c: New file.
29108         * sysdeps/wordsize-64/scandirat64.c: New file.
29109         * dirent/opendir.c: Define opendirat.
29110         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
29111         using scandirat.
29112         * dirent/scandir64.c: Adjust for scandir.c change.
29113         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
29114         __scandirat64, and __scandir_cancel_handler.
29115         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
29116         additional parameter and use openat instead of open (outside of ld.so).
29117         Add new __opendir as wrapper around __opendirat.
29118         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
29119         here without requiring old scandirat implementation.
29120
29121 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
29122
29123         * dirent/scandir.c (cancel_handler): Renamed to
29124         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
29125         defined.  Adjust users.
29126         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
29127         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
29128
29129 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
29130
29131         * string/test-string.h (IMPL): Use __STRING to expand name and then
29132         stringify it.
29133
29134         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
29135         of cleanups.
29136
29137 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29138
29139         * string/Makefile: Update.
29140         (strop-tests): Append strncat.
29141         * string/test-wcscmp.c: New file.
29142         New comprehensive test for wcscmp.
29143         * string/test-strcmp.c: Update.
29144         (WIDE): New define.
29145
29146 2011-07-22  Andreas Schwab  <schwab@redhat.com>
29147
29148         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
29149         line.
29150
29151 2011-07-26  Andreas Schwab  <schwab@redhat.com>
29152
29153         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
29154         encoding to ACE if AI_IDN.
29155
29156 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
29157
29158         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
29159         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
29160
29161 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29162
29163         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
29164         Fix overflow bug in strncat.
29165         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
29166
29167         * string/test-strncat.c: Update.
29168         Add new tests for checking overflow bugs.
29169
29170 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29171
29172         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29173         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
29174         * sysdeps/i386/i686/multiarch/strcat.S: New file.
29175         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
29176         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
29177         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
29178         * sysdeps/i386/i686/multiarch/strncat.S: New file.
29179         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
29180         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
29181
29182         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
29183         (USE_AS_STRCAT): Define.
29184         Add strcat and strncat support.
29185         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
29186
29187 2011-07-25  Andreas Schwab  <schwab@redhat.com>
29188
29189         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
29190         __n bigger than INT_MAX+1.
29191         (__strncmp_g): Likewise.
29192
29193 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
29194
29195         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
29196         * libio/stido.h: Likewise.
29197
29198         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
29199         (AF_NFC): Define.
29200         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
29201         (AF_NFC): Define.
29202
29203         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
29204         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
29205         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
29206         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29207         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
29208
29209         [BZ #13021]
29210         * scripts/test-installation.pl: Don't expect libnss_test1 to be
29211         installed.
29212
29213         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
29214         typo.
29215         (_dl_x86_64_save_sse): Likewise.
29216
29217 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
29218
29219         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
29220         OSXSAVE.
29221         (_dl_x86_64_save_sse): Likewise.
29222
29223         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
29224
29225         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
29226
29227 2011-07-21  Andreas Schwab  <schwab@redhat.com>
29228
29229         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
29230         change.
29231         (_dl_x86_64_save_sse): Use correct AVX check.
29232
29233 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29234
29235         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
29236         bug in strncpy/strncat.
29237         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
29238
29239 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
29240
29241         * string/tester.c (test_strcat): Add tests for different alignments
29242         of source and destination.
29243         (test_strncat): Likewise.
29244
29245 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
29246
29247         [BZ #12852]
29248         * posix/glob.c (glob): Check passed in values before using them in
29249         expressions to avoid some overflows.
29250         (glob_in_dir): Likewise.
29251
29252         [BZ #13007]
29253         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
29254         check for AVX enablement so that we don't crash with old kernels and
29255         new hardware.
29256         * elf/tst-audit4.c: Add same checks here.
29257         * elf/tst-audit6.c: Likewise.
29258
29259         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
29260
29261 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
29262
29263         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
29264
29265 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
29266
29267         * po/cs.po: Update from translation team.
29268         * po/bg.po: Likewise.
29269
29270 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
29271
29272         * misc/sys/cdefs.h: Add support for const attribute.
29273         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
29274         to gnu_dev_{major,minor,makedev} functions.
29275
29276 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
29277
29278         * intl/dcigettext.c (get_output_charset): Add missing bracket.
29279
29280 2011-07-20  Andreas Schwab  <schwab@redhat.com>
29281
29282         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
29283         strlen results.
29284
29285 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29286
29287         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
29288         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
29289         register in order to avoid conflicts with the soft frame pointer
29290         being held in r11 when necessary.
29291         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
29292         (INTERNAL_VSYSCALL_NCS): Likewise.
29293
29294 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
29295
29296         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
29297         * elf/dl-fini.c (_dl_fini): Adjust caller.
29298         * elf/dl-close.c (_dl_close_worker): Likewise.
29299         * sysdeps/generic/ldsodefs.h: Adjust declaration.
29300
29301 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
29302
29303         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
29304         "aux_cache->nlibs < 0".
29305
29306         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
29307         in the reload-count case.
29308
29309 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29310
29311         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29312         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
29313         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
29314         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
29315         * sysdeps/x86_64/multiarch/strcat.S: New file.
29316         * sysdeps/x86_64/multiarch/strncat.S: New file.
29317         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
29318         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
29319         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
29320         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
29321         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
29322         (USE_AS_STRCAT): Define.
29323         Add strcat and strncat support.
29324         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
29325         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
29326         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
29327         * string/strncat.c: Update.
29328         (USE_AS_STRNCAT): Define.
29329         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29330         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
29331         and i7.
29332         * sysdeps/x86_64/multiarch/init-arch.h
29333         (bit_Prefer_PMINUB_for_stringop): New.
29334         (index_Prefer_PMINUB_for_stringop): Likewise.
29335         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
29336         bit_Prefer_PMINUB_for_stringop.
29337
29338 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
29339
29340         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
29341         buffer64.
29342         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
29343         of casting of buffer.
29344         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
29345         buffer32 and buffer64.
29346         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
29347         writes instead of casting of buffer.
29348         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
29349         buffer32.
29350         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
29351         casting of buffer.
29352
29353 2011-07-19  Andreas Schwab  <schwab@redhat.com>
29354
29355         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
29356
29357 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
29358
29359         * nscd/nscd.c (termination_handler): Don't do anything for a database
29360         if it has not yet been initialized.
29361
29362 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
29363
29364         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
29365
29366 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
29367
29368         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
29369
29370 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
29371
29372         * po/nl.po: Update from translation team.
29373         * po/sv.po: Likewise.
29374
29375 2011-07-16  Roland McGrath  <roland@hack.frob.com>
29376
29377         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
29378         now disallowed by GCC.
29379
29380         * configure.in (use-default-link): Default to yes if a test -shared
29381         link meets our qualifications.
29382         * configure: Regenerated.
29383
29384         * config.make.in (output-format): New variable.
29385         * configure.in: Check for ld --print-output-format support.
29386         * configure: Regenerated.
29387         * Makerules ($(common-objpfx)format.lds)
29388         [$(output-format) != unknown]: Just use $(output-format),
29389         instead of the linker-script munging.
29390
29391 2011-07-14  Roland McGrath  <roland@hack.frob.com>
29392
29393         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
29394         of $(common-objpfx)shlib.lds.
29395         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
29396
29397         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
29398         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
29399
29400         * configure.in (-z relro check): Adjust test code to add a large
29401         writable data section after it.
29402         * configure: Regenerated.
29403
29404 2011-07-11  Roland McGrath  <roland@hack.frob.com>
29405
29406         * configure.in (-z relro check): Fix test code to make the variable
29407         truly const.
29408         * configure: Regenerated.
29409
29410 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
29411
29412         * nscd/nscd.h (struct traced_file): Define.
29413         (struct database_dyn): Remove inotify_descr, reset_res, and filename
29414         elements.  Add traced_files.
29415         (inotify_fd): Declare.
29416         (register_traced_file): Declare.
29417         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
29418         (inotify_fd): Export.
29419         (resolv_conf_descr): Remove.
29420         (nscd_init): Move inotify descriptor creation to main.
29421         Don't register files for notification here.
29422         (register_traced_file): New function.
29423         (invalidate_cache): Don't use reset_res to determine whether to call
29424         res_init, go through the list of registered files.
29425         (main_loop_poll): The inotify descriptors are now stored in the
29426         structures for the traced files.
29427         (main_loop_epoll): Likewise
29428         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
29429         to __nss_disable_nscd.
29430         * nscd/cache.c (prune_cache): There is no single inotify descriptor
29431         for a database anymore.  Check the records for all the registered
29432         files instead.
29433         * nss/Makefile (libnss_files-routines): Add files-init.
29434         (libnss_db-routines): Add db-init.
29435         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
29436         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
29437         * nss/nss_db/db-init.c: New file.
29438         * nss/nss_files/files-init.c: New file.
29439         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
29440         __nss_lookup_function.
29441         (__nss_lookup_function): Call nss_load_library.
29442         (nss_load_all_libraries): New function.
29443         (__nss_disable_nscd): Take parameter with callback function for files
29444         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
29445         used for the cached services.
29446         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
29447         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
29448         options for features to all the files in nscd.
29449
29450         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
29451
29452 2011-07-10  Roland McGrath  <roland@hack.frob.com>
29453
29454         * csu/elf-init.c (__libc_csu_init): Comment typo.
29455
29456 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
29457
29458         * po/pl.po: Update from translation team.
29459         * po/ja.po: Likewise.
29460         * po/ru.po: Likewise.
29461         * po/ko.po: Likewise.
29462         * po/fr.po: Likewise.
29463
29464 2011-07-09  Roland McGrath  <roland@hack.frob.com>
29465
29466         * configure.in (.ctors/.dtors header and trailer check):
29467         Use an empirical test on a built program.
29468         * configure: Regenerated.
29469
29470         * configure.in (-z relro check): Use an empirical test on a built DSO.
29471         Detect, but do not require, on ia64.
29472         * configure: Regenerated.
29473
29474         * configure.in (READELF): Find it with AC_CHECK_TOOL.
29475         Update tests that use readelf to use $READELF instead.
29476         * configure: Regenerated.
29477
29478 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
29479
29480         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
29481         if the result is not used.
29482
29483 2011-07-05  Andreas Jaeger  <aj@suse.de>
29484
29485         [BZ#9696]
29486         * stdlib/tst-strtod.c: Add testcase.
29487
29488 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
29489
29490         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
29491         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
29492         The latter has a higher limit.  Take additional parameter to pass to
29493         the new function.
29494         (__pathconf): Pass file to __statfs_link_max.
29495         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
29496         __statfs_link_max.
29497         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
29498         __statfs_link_max.
29499
29500         [BZ #12868]
29501         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
29502         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
29503         Handle Lustre.
29504         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
29505         (__statfs_filesize_max): Likewise.
29506         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
29507
29508 2011-07-05  Andreas Jaeger  <aj@suse.de>
29509
29510         * resolv/res_comp.c (dn_skipname): Remove unused variable.
29511
29512 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
29513
29514         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
29515         `status' variable.
29516         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
29517         Likewise.
29518
29519 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
29520
29521         * Makefile (strop-tests): Add strncat.
29522         * string/test-strncat.c: New file.
29523
29524 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
29525
29526         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
29527
29528 2011-06-21  Andreas Jaeger  <aj@suse.de>
29529
29530         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
29531         Copy rule from iconvdata/Makefile.
29532
29533 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
29534
29535         [BZ #12922]
29536         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
29537         but no long options are defined, just return 'W'.
29538
29539 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
29540
29541         [BZ #9696]
29542         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
29543
29544 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
29545
29546         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
29547         netgroups to read.
29548         (innetgr): Likewise.
29549
29550 2011-07-05  Roland McGrath  <roland@hack.frob.com>
29551
29552         * config.make.in (install_root): Default to $(DESTDIR).
29553
29554 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
29555
29556         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
29557
29558 2011-07-02  Roland McGrath  <roland@hack.frob.com>
29559
29560         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
29561
29562         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
29563         containing directory rather than embedding absolute directory names.
29564
29565         * scripts/check-local-headers.sh: Rewritten using awk.
29566         Match by word, not by line.  Print error messages for matches.
29567         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
29568
29569         * Makerules [shlib-lds-flags empty]:
29570         ($(common-objpfx)libc_pic.opts): New target.
29571         ($(common-objpfx)libc_pic.os.clean): New target.
29572         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
29573
29574         * config.make.in (OBJCOPY): New variable.
29575         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
29576         * configure: Regenerated.
29577
29578         * config.make.in (use-default-link): New variable.
29579         * configure.in (use_default_link): Grok --with-default-link to set it.
29580         * configure: Regenerated.
29581         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
29582         (shlib-lds, shlib-lds-flags): Define to empty.
29583
29584         * Makerules (shlib-lds): New variable.
29585         (shlib-lds-flags): New variable.
29586         (build-shlib, build-moduile, build-module-asneeded): Use it.
29587         ($(common-objpfx)libc.so): Use $(shlib-lds).
29588         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
29589         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
29590
29591         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
29592         DT_FLAGS/DT_FLAGS_1 with zero flags.
29593
29594         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
29595         linker script munging.
29596
29597 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
29598
29599         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
29600         as 128-bit value.
29601         * crypt/sha512.c (sha512_process_block): Perform total addition using
29602         128-bit if possible.
29603         (__sha512_finish_ctx): Likewise.
29604         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
29605         as 64-bit value.
29606         * crypt/sha256.c (SWAP64): Define.
29607         (sha256_process_block): Perform total addition using 64-bit if
29608         possible.
29609         (__sha256_finish_ctx): Likewise.
29610
29611 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
29612
29613         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
29614         * nscd/initgrcache.c (addinitgroupsX): Likewise.
29615         * nscd/hstcache.c (cache_addhst): Likewise.
29616         * nscd/grpcache.c (cache_addgr): Likewise.
29617         * nscd/aicache.c (addhstaiX): Likewise
29618         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
29619
29620 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
29621
29622         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
29623         * nscd/initgrcache.c (addinitgroupsX): Likewise.
29624         * nscd/hstcache.c (cache_addhst): Likewise.
29625         * nscd/grpcache.c (cache_addgr): Likewise.
29626         * nscd/aicache.c (addhstaiX): Likewise
29627
29628 2011-07-01  Andreas Schwab  <schwab@redhat.com>
29629
29630         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
29631         domain only when needed.
29632
29633 2011-06-30  Andreas Schwab  <schwab@redhat.com>
29634
29635         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
29636         is always restored.
29637
29638 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
29639
29640         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
29641         are re-adding the entry.
29642         * nscd/servicescache.c (cache_addserv): Likewise.
29643
29644 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
29645
29646         * sysdeps/generic/dl-irel.h: fix protection against multiple
29647         inclusions.
29648         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
29649
29650 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
29651
29652         [BZ #12935]
29653         * malloc/memusage.sh: Fix quoting in message.
29654         * debug/xtrace.sh: Likewise.
29655
29656         * configure.in: Remove support for --experimental-malloc option, make
29657         it the default.
29658         * config.make.in: Likewise.
29659         * malloc/Makefile: Likewise.
29660
29661 2011-06-27  Andreas Schwab  <schwab@redhat.com>
29662
29663         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
29664         two-byte characters.
29665
29666 2011-06-27  Roland McGrath  <roland@hack.frob.com>
29667
29668         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
29669         AC_CACHE_CHECK invocation.
29670         * configure: Regenerated.
29671
29672         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
29673
29674 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
29675
29676         [BZ #12350]
29677         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
29678         bit from old_res_options.
29679
29680         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
29681
29682         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
29683         value type for setfct.
29684
29685 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
29686
29687         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
29688         __gettimeofday instead of gettimeofday.
29689
29690 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
29691
29692         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
29693
29694 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29695
29696         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
29697
29698         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
29699         info.
29700
29701 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
29702
29703         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29704         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
29705         strcpy-sse2-unaligned strncpy-sse2-unaligned
29706         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
29707         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
29708         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
29709         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
29710         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
29711         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
29712         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
29713         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
29714         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
29715         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
29716         (STRCPY): Support SSE2 and SSSE3 versions.
29717
29718 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
29719
29720         [BZ #12874]
29721         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
29722         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
29723         kernels which artificially limit size of requests.
29724
29725 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
29726
29727         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29728         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
29729         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
29730         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
29731         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
29732         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
29733         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
29734         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
29735         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
29736         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
29737         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
29738         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
29739         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
29740         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
29741         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
29742         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29743         Enable unaligned load optimization for Intel Core i3, i5 and i7
29744         processors.
29745         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
29746         Define.
29747         (index_Fast_Unaligned_Load): Define.
29748         (HAS_FAST_UNALIGNED_LOAD): Define.
29749
29750 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
29751
29752         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
29753
29754 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
29755
29756         [BZ #12907]
29757         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
29758         until it is clear that the information is realy needed.
29759         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
29760
29761 2011-06-22  Andreas Schwab  <schwab@redhat.com>
29762
29763         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
29764
29765 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
29766
29767         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
29768         /sys/devices/system/cpu/online if it is usable.
29769
29770         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
29771         reading the information from the /proc filesystem to once a second.
29772
29773 2011-06-21  Andreas Jaeger  <aj@suse.de>
29774
29775         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
29776         NULL after inclusion of kernel headers.
29777
29778 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
29779
29780         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
29781         calls to internal_setent.
29782
29783         [BZ #12885]
29784         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
29785         addresses using gethostbyname4_r ignore IPv4 addresses.
29786
29787         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
29788         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
29789
29790         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
29791
29792 2011-06-20  David S. Miller  <davem@davemloft.net>
29793
29794         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
29795         inclusions.
29796         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
29797
29798         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
29799         (elf_irel): Use it.
29800         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
29801         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
29802         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
29803         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
29804         * sysdeps/x86_64/dl-irel.h: Likewise.
29805
29806         * elf/dl-runtime.c: Use elf_ifunc_invoke.
29807         * elf/dl-sym.c: Likewise.
29808
29809 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
29810
29811         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
29812         need to dereference resplen2.
29813
29814 2011-06-14  Andreas Schwab  <schwab@redhat.com>
29815
29816         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
29817
29818 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
29819
29820         * Makeconfig: Define vardbdir and inst_vardbdir.
29821         * nss/Makefile: Add rules to install db-Makefile.
29822
29823         * nss/nss_db/db-XXX.c: Cleanup.
29824
29825         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
29826         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
29827         GLIBC_PRIVATE.
29828         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
29829         * nss/makedb.c: Implement -g option to specify that value strings
29830         are generated and should not be added to table iterated over for
29831         get*ent calls.
29832         * nss/nss_db/db-initgroups.c: New file.
29833
29834         * nss/getent.c: Add support for initgroups lookups through getgrouplist
29835         interface.
29836
29837         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
29838         (internal_getgrouplist): Adjust to name change.
29839         Update use_initgroups_entry if this is not the first call.
29840         * nss/databases.def: Add initgroups entry.
29841
29842         * nss/makedb.c (compute_tables): Check result of multiple hash table
29843         sizes to minimize maximum chain length.
29844
29845 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
29846
29847         * Versions.def: Add entry for libnss_db.
29848         * shlib-versions: Likewise.
29849         * nss/Makefile: Add rules to build libnss_db.
29850         * nss/Versions: Add libnss_db information.  Organize libnss_files
29851         entries better.
29852         * nss/db-Makefile: Add gshadow support.  Change rules for the new
29853         makedb progra.  Some minor improvements to generate smaller files.
29854         * nss/nss_db/nss_db.h: Move NSS database header data structures to
29855         here from...
29856         * nss/makedb.c: ...here.
29857         Improve database format to be smaller and require less memory at
29858         runtime.
29859         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
29860         db anymore.
29861         * nss/nss_db/db-netgrp.c: Likewise.
29862         * nss/nss_db/db-open.c: Likewise.
29863         * nss/nss_files/flies-XXX.x: Adjust comments.
29864         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
29865         * nss/nss_files/files-grp.c: Likewise.
29866         * nss/nss_files/files-hosts.c: Likewise.
29867         * nss/nss_files/files-network.c: Likewise.
29868         * nss/nss_files/files-proto.c: Likewise.
29869         * nss/nss_files/files-pwd.c: Likewise.
29870         * nss/nss_files/files-rpc.c: Likewise.
29871         * nss/nss_files/files-service.c: Likewise.
29872         * nss/nss_files/files-sgrp.c: Likewise.
29873         * nss/nss_files/files-spwd.c: Likewise.
29874         * nss/nss_db/db-alias.c: Removed.
29875         * nss/nss_db/dummy-db.h: Removed.
29876
29877 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
29878
29879         * nss/makedb.c: Rewritten to not use database library.
29880         * nss/Makefile: Update to build new makedb program.
29881
29882 2011-06-14  Andreas Jaeger  <aj@suse.de>
29883
29884         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
29885         memset declaration.
29886
29887 2011-06-10  Andreas Schwab  <schwab@redhat.com>
29888
29889         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
29890         tmpbuf.
29891
29892 2011-06-10  Roland McGrath  <roland@hack.frob.com>
29893
29894         * Makerules (shlib.lds): Fail if the linker script comes out empty.
29895         * elf/Makefile ($(objpfx)ld.so): Likewise.
29896
29897         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
29898         Don't list ld.so twice in dependencies.
29899
29900         * posix/bug-regex31.c: Include <stdlib.h>.
29901
29902         * nscd/hstcache.c (cache_addhst): Remove unused variable.
29903
29904         * nis/nss_compat/compat-spwd.c
29905         (getspent_next_nss_netgr): Remove unused variable.
29906         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
29907
29908         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
29909         nonmembers" output to use the right array.
29910
29911         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
29912
29913         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
29914
29915         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
29916         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
29917         * catgets/gencat.c (read_input_file): Likewise.
29918         * locale/programs/locarchive.c (enlarge_archive): Likewise.
29919
29920         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
29921         variable definition inside #if's controlling its use.
29922
29923         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
29924
29925         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
29926
29927         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
29928
29929         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
29930         unreachable code.
29931
29932         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
29933
29934         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
29935         * configure: Regenerated.
29936
29937         * Makerules: Revert last change.
29938         * elf/Makefile: Likewise.
29939
29940 2011-06-09  Roland McGrath  <roland@hack.frob.com>
29941
29942         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
29943         * elf/Makefile ($(objpfx)librtld.os): Likewise.
29944         (reloc-link): Likewise.
29945
29946 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
29947
29948         * elf/Makefile: Add rules to build pldd.
29949         * elf/pldd.c: New file.
29950         * elf/pldd-xx.c: New file.
29951
29952 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
29953
29954         * version.h: Update for 2.15 development version.
29955
29956 2011-06-07  David S. Miller  <davem@davemloft.net>
29957
29958         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
29959         ifuncs.
29960         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
29961         elf_machine_lazy_rel): Likewise.
29962         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
29963         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
29964         elf_machine_lazy_rel): Likewise.
29965         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
29966         dl_hwcap via passed in argument.
29967         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
29968         Likewise.
29969
29970 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29971
29972         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
29973
29974 2011-06-06  Roland McGrath  <roland@hack.frob.com>
29975
29976         [BZ #12849]
29977         * manual/fdl-1.1.texi: New file, verbatim from:
29978         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
29979         * manual/lgpl-2.1.texi: New file, verbatim from:
29980         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
29981         * manual/Makefile (licenses): New variable, list those new file names.
29982         (texis): Use it.
29983         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
29984
29985         * manual/fdl.texi: File removed.
29986         * manual/lesser.texi: File removed.
29987         * manual/libc.texinfo (Copying, Documentation License):
29988         Use new @include file names, put @appendix directive before @include.
29989
29990 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
29991
29992         [BZ #12841]
29993         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
29994         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
29995         (mq_open): Add __NTH.
29996
29997 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
29998
29999         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30000         Assume Intel Core i3/i5/i7 processor if AVX is available.
30001
30002 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
30003
30004         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
30005         typo.
30006
30007 2011-05-31  Andreas Schwab  <schwab@redhat.com>
30008
30009         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
30010         memory.  Use alloca_account.  Fix memory leak when retrying.
30011
30012 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
30013
30014         * version.h (RELEASE): Bump for 2.14 release.
30015         * include/features.h (__GLIBC_MINOR__): Bump to 14.
30016
30017         * config.make.in (RANLIB): Remove entry.
30018
30019 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
30020
30021         * po/Makefile (po-sed-cmd): Add ksh to extensions.
30022         (libc.pot): Work around missing support for .ksh extension in xgettext.
30023
30024         [BZ #12684]
30025         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
30026         if both request failed.
30027         (send_dg): In case of server errors clear resplen or *resplen2.
30028
30029         [BZ #12454]
30030         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
30031         when there are multiple maps.
30032         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
30033         (_dl_fini): Remove test here.
30034
30035         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
30036
30037 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
30038
30039         [BZ #12350]
30040         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
30041         bit from old_res_options.
30042         (gaih_inet): Likewise.
30043
30044         [BZ #11099]
30045         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
30046         as signed.
30047
30048         * resolv/res_init.c (res_setoptions): Make the code more compact.
30049
30050         [BZ #11558]
30051         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
30052         set RES_USEVC.
30053
30054         [BZ #11634]
30055         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
30056
30057         * malloc/malloc.h: Mark malloc hook variables as deprecated.
30058
30059         [BZ #11781]
30060         * malloc/malloc.h: Declare malloc hook variables as volatile.
30061
30062         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
30063         in last patch.
30064
30065         [BZ #11799]
30066         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
30067         raise in the comment.
30068         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30069         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30070         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
30071
30072 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
30073
30074         [BZ #12811]
30075         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
30076         grow the buffers more if it already has to be sufficient.
30077         (build_wcs_upper_buffer): Likewise.
30078         * posix/regexec.c (check_matching): Likewise.
30079         (clean_state_log_if_needed): Likewise.
30080         (extend_buffers): Don't enlarge buffers beyond size of the input
30081         buffer.
30082         Patches mostly by Emil Wojak <emil@wojak.eu>.
30083         * posix/bug-regex32.c: New file.
30084         * posix/Makefile (tests): Add bug-regex32.
30085
30086         * locale/findlocale.c (_nl_find_locale): Return right away if
30087         _nl_explode_name failed.
30088         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
30089
30090         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
30091
30092         * debug/xtrace.sh: Unify messages.
30093         * malloc/memusage.sh: Likewise.
30094
30095         [BZ #12813]
30096         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
30097         time symbol from vDSO.  Substitute with vsyscall if not available.
30098         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
30099         __vdso_time.
30100
30101         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
30102         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
30103         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
30104         Add sendmmsg and internal_sendmmsg.
30105         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
30106         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
30107         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
30108
30109         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
30110         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
30111         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
30112
30113 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
30114
30115         [BZ #12813]
30116         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
30117         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
30118         available.
30119         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
30120         __vdso_getcpu.
30121
30122         [BZ #12814]
30123         * iconvdata/Makefile (tests): Add bug-iconv9.
30124         * iconvdata/bug-iconv9.c: New file.
30125
30126 2011-05-27  Andreas Schwab  <schwab@redhat.com>
30127
30128         [BZ #12814]
30129         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
30130
30131 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
30132
30133         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
30134         (struct user_regs_struct): Change intcs field back to cs.
30135
30136 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
30137
30138         * po/ja.po: Update from translation team.
30139
30140 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
30141
30142         [BZ #12795]
30143         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
30144         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
30145
30146 2011-05-20  Andreas Schwab  <schwab@redhat.com>
30147
30148         * stdlib/longlong.h: Update from GCC.
30149
30150 2011-05-23  Andreas Schwab  <schwab@redhat.com>
30151
30152         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
30153         parameter name.
30154         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
30155         Add parameter name.
30156         (__sysconf): Pass it down.
30157
30158 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
30159
30160         [BZ #12671]
30161         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
30162         some situations.
30163         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30164         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
30165         add in in __libc_use_alloca calls.  Adjust callers.
30166         (glob): Use malloc in some situations.
30167
30168         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
30169         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
30170         pltexit.
30171
30172 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
30173
30174         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
30175         and CLOCK_BOOTTIME_ALARM.
30176
30177         [BZ #12782]
30178         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
30179         is returned.
30180
30181         * string/_strerror.c (__strerror_r): Print negative errors as signed
30182         numbers.
30183
30184         [BZ #12777]
30185         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
30186         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
30187         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
30188
30189         * configure.in: Fix typo in redirection and correct removal of test
30190         files in two cases.
30191
30192         [BZ #12788]
30193         * locale/setlocale.c (new_composite_name): Fix test to check for
30194         identical name of all categories.
30195
30196         [BZ #12792]
30197         * libio/filedoalloc.c (local_isatty): New function.
30198         (_IO_file_doallocate): Use local_isatty.
30199         * stdio-common/perror.c (perror): In case a new stream is used
30200         forward the stream error.
30201         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
30202         error flag.
30203
30204 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
30205
30206         [BZ #11869]
30207         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
30208         alloca.
30209         * include/alloca.h (extend_alloca_account): Define.
30210
30211         [BZ #11857]
30212         * posix/regex.h: Fix comments with documentation of user-accessible
30213         fields after compilation and describe correct free'ing of pattern
30214         after re_compile_pattern.
30215         Patch by Reuben Thomas <rrt@sc3d.org>.
30216
30217 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
30218
30219         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
30220         and -mno-altivec to prevent the compiler from using Altivec and/or
30221         VSX instructions when the corresponding registers are not available.
30222
30223 2011-05-19  Andreas Schwab  <schwab@redhat.com>
30224
30225         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
30226
30227 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
30228
30229         * libio/freopen.c (freopen): Use __dup2, not dup2.
30230         * libio/freopen64.c (freopen64): Likewise.
30231
30232 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30233
30234         [BZ #12775]
30235         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
30236         * math/Makefile (tests): Add test-powl.
30237         (CFLAGS-test-powl.c): Define.
30238         * math/test-powl.c: New file.
30239
30240 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30241
30242         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
30243
30244 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
30245
30246         [BZ #11837]
30247         * iconvdata/gb18030.c: Update to GB18020-2005.
30248
30249 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
30250
30251         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
30252         RE_SYNTAX_POSIX_AWK): Update to match recent development.
30253         Patch by Aharon Robbins <arnold@skeeve.com>.
30254
30255         [BZ #11892]
30256         * stdlib/putenv.c (putenv): Don't always create copy of the variable
30257         on the stack.
30258
30259         [BZ #11895]
30260         * misc/pselect.c (__pselect): Handle timeout value errors hidden
30261         through underflows.
30262
30263         [BZ #12766]
30264         * misc/error.c (error_at_line): Ensure file_name and old_file_name
30265         point to strings before performing equality test for error_one_per_line
30266         mode.
30267
30268         [BZ #11697]
30269         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
30270
30271         [BZ #11820]
30272         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
30273         (struct user_fpregs_struct): Avoid __uint*_t types.
30274
30275         [BZ #6420]
30276         * malloc/mtrace.c (tr_where): Add additional parameter to point to
30277         symbol info.  Use it instead of calling _dl_addr locally.
30278         (lock_and_info): New function.
30279         (tr_freehook): Call lock_and_info and pass symbol info as additional
30280         parameter to tr_where.
30281         (tr_mallochook): Likewise.
30282         (tr_reallochook): Likewise.
30283         (tr_memalignhook): Likewise.
30284
30285         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
30286         used and couldn't be at all thread-safe.
30287
30288 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
30289
30290         * libio/freopen.c (freopen): Don't close old file descriptor
30291         before the new one is opened.  Instead dup the new file descriptor
30292         to the old one after the new stream is created.
30293         * libio/freopen64.c (freopen64): Likewise.
30294         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
30295         * libio/fileops.c (_IO_new_file_close_it): Handle new
30296         _IO_FLAGS2_NOCLOSE flag.
30297         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
30298         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
30299         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
30300         _IO_FLAGS2_NOCLOSE flag.
30301         * include/unistd.h: Add hidden_proto for dup3.
30302         Define __have_dup3.
30303         * io/dup3.c: Define hidden symbol.
30304         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
30305
30306         [BZ #7101]
30307         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
30308         when an incomplete long option is used.
30309         * posix/tst-getopt_long1.c: New file.
30310         * posix/Makefile (tests): Add tst-getopt_long1.
30311
30312         [BZ #10138]
30313         * scripts/config.guess: Update from autoconf-2.68.
30314         * scripts/config.sub: Likewise.
30315
30316         [BZ #10157]
30317         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
30318         tests into ...
30319         (has_cpuclock): ...this.  New function.
30320         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
30321         macro here based on has_cpuclock code.
30322
30323         [BZ #10149]
30324         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
30325         First byte (not low byte) is now always NUL.
30326         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
30327
30328         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
30329         Use non-cancelable interfaces.
30330
30331         [BZ #9809]
30332         * locale/iso-639.def: Add entry for Sorani.
30333
30334         [BZ #11901]
30335         * include/stdlib.h: Move include protection to the right place.
30336         Define abort_msg_s.  Declare __abort_msg with it.
30337         * stdlib/abort.c (__abort_msg): Adjust type.
30338         * assert/assert.c (__assert_fail_base): New function.  Majority
30339         of code from __assert_fail.  Allocate memory for __abort_msg with
30340         mmap.
30341         (__assert_fail): Now call __assert_fail_base.
30342         * assert/assert-perr.c: Remove bulk of implementation.  Use
30343         __assert_fail_base.
30344         * include/assert.hL Declare __assert_fail_base.
30345         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
30346         mmap.
30347         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
30348
30349 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
30350
30351         [BZ #11952]
30352         [BZ #12453]
30353         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
30354         until all modules are registered in the DTV.
30355         * elf/Makefile: Add rules to build and run tst-tls19.
30356         * elf/tst-tls19.c: New file.
30357         * elf/tst-tls19mod1.c: New file.
30358         * elf/tst-tls19mod2.c: New file.
30359         * elf/tst-tls19mod3.c: New file.
30360         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
30361
30362         [BZ #12083]
30363         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
30364         correctly.
30365
30366         [BZ #12601]
30367         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
30368         two-byte sequence errors.
30369         * iconvdata/Makefile (tests): Add bug-iconv8.
30370         * iconvdata/bug-iconv8.c: New file.
30371
30372         [BZ #12626]
30373         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
30374         buf2 definition.
30375
30376         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
30377
30378         [BZ #12432]
30379         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
30380         (dummy_getcfa): New function.
30381         (init): Get _Unwind_GetCFA address, use dummy if not found.
30382         (backtrace_helper): In recursion check, also check whether CFA changes.
30383         (__backtrace): Completely initialize arg.
30384
30385         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
30386         storing incomplete byte sequence in state object.  Avoid testing for
30387         guaranteed too small input if we know there is enough data available.
30388
30389 2011-05-11  Andreas Schwab  <schwab@redhat.com>
30390
30391         * Makeconfig (+link-pie): Indent.
30392         * Rules (binaries-pie): Define if $(have-fpie) and
30393         $(build-shared).
30394         (binaries-shared): Also filter out $(binaries-pie).
30395         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
30396         * nscd/Makefile (others-pie): Add nscd.
30397         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
30398         ($(objpfx)nscd): Remove command override.
30399         * login/Makefile (others-pie): Add pt_chown.
30400         ($(objpfx)pt_chown): Remove command override.
30401         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
30402         remove command overrides.
30403
30404 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
30405
30406         * libio/tst_putwc.c: Fix error messages.
30407
30408         [BZ #12724]
30409         * libio/fileops.c (_IO_new_file_close_it): Always flush when
30410         currently writing and seek to current position when not.
30411         * libio/Makefile (tests): Add bug-fclose1.
30412         * libio/bug-fclose1.c: New file.
30413
30414 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
30415
30416         [BZ #12511]
30417         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
30418         don't set DF_1_NODELETE here.
30419         (do_lookup_x): When entering new entry test for copy relocation
30420         and if necessary set DF_1_NODELETE flag.
30421         * elf/tst-unique4.cc: New file.
30422         * elf/tst-unique4.h: New file.
30423         * elf/tst-unique4lib.cc: New file.
30424         * elf/Makefile: Add rules to build and run tst-unique4.
30425         Patch by Piotr Bury <pbury@goahead.com>.
30426
30427 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
30428
30429         [BZ #12052]
30430         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
30431
30432         [BZ #12625]
30433         * misc/mntent_r.c (addmntent): Flush the stream after the output
30434
30435         [BZ #12393]
30436         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
30437         (is_trusted_path_normalize): Skip initial colon.  Append slash
30438         to empty buffer.  Duplicate is_trusted_path code but allow
30439         constructed patch to be prefix.
30440         (is_dst): Allow $ORIGIN followed by /.
30441         (_dl_dst_substitute): Correct clearing of check_for_trusted.
30442         Correct testing of result of is_trusted_path_normalize
30443         (decompose_rpath): Fix warning.
30444
30445 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
30446
30447         [BZ #11257]
30448         * grp/initgroups.c (internal_getgrouplist): When we found the service
30449         list through the initgroups entry in nsswitch.conf do not always
30450         continue on a successful lookup.  Don't always use the
30451         __nss_group_database value if it is set.
30452         * nss/nsswitch.conf (initgroups): Change action for successful db
30453         lookup to continue for compatibility.
30454
30455 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
30456
30457         [BZ #11532]
30458         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
30459         and CP774 modules.
30460         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
30461         and CP774 modules.
30462         * iconvdata/tst-tables.sh: Likewise.
30463         * iconvdata/cp770.c: New file.
30464         * iconvdata/cp771.c: New file.
30465         * iconvdata/cp772.c: New file.
30466         * iconvdata/cp773.c: New file.
30467         * iconvdata/cp774.c: New file.
30468         * iconvdata/testdata/CP770: New file.
30469         * iconvdata/testdata/CP770..UTF8: New file.
30470         * iconvdata/testdata/CP771: New file.
30471         * iconvdata/testdata/CP771..UTF8: New file.
30472         * iconvdata/testdata/CP772: New file.
30473         * iconvdata/testdata/CP772..UTF8: New file.
30474         * iconvdata/testdata/CP773: New file.
30475         * iconvdata/testdata/CP773..UTF8: New file.
30476         * iconvdata/testdata/CP774: New file.
30477         * iconvdata/testdata/CP774..UTF8: New file.
30478
30479         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
30480         END CHARMAP line.
30481         * iconvdata/gen-8bit-gap.sh: Likewise.
30482         * iconvdata/gen-8bit.sh: Likewise.
30483
30484         * locale/iso-639.def: Add ary entry.
30485
30486         [BZ #11258]
30487         * locale/C-translit.h.in: Add U20A1 transliteration.
30488
30489         [BZ #12178]
30490         * locale/iso-639.def: Add wae entry.
30491         Patch by Kevin Bortis <bortis@translate-wae.ch>.
30492
30493         [BZ #12545]
30494         * locale/programs/localedef.c (construct_output_path): Use ssize_t
30495         for n.
30496
30497         [BZ #12711]
30498         * locale/C-translit.h.in: Add entry for U20B9.
30499         Patch by pravin.d.s@gmail.com.
30500
30501 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
30502
30503         [BZ #12713]
30504         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
30505         ENAMETOOLONG use generic getcwd.
30506         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
30507         in rtld.  Use *stat64.
30508         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
30509         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
30510         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
30511         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
30512         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
30513         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
30514         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
30515         __fstatat64 macros.
30516         * include/dirent.h: Add libc_hidden_proto for rewinddir.
30517         * dirent/rewinddir.c: Add libc_hidden_def.
30518         * sysdeps/mach/hurd/rewinddir.c: Likewise.
30519         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
30520
30521         * include/dirent.h (__alloc_dir): Add flags parameter.
30522         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
30523         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
30524         __alloc_dir.
30525         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
30526         from fdopendir if O_CLOEXEC is already set.
30527
30528 2011-03-15  Alan Modra  <amodra@gmail.com>
30529
30530         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
30531         l_tls_firstbyte_offset non-zero.  Save padding offset in
30532         l_tls_firstbyte_offset for later use.
30533         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
30534         freeing static tls block.
30535
30536 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
30537
30538         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
30539         where #ifdef was intended.  The intent is to prevent ARG_MAX from
30540         being defined by the kernel headers.
30541
30542 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
30543
30544         [BZ #12734]
30545         * resolv/resolv.h: Define RES_NOTLDQUERY.
30546         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
30547         no-tld-query and set RES_NOTLDQUERY.
30548         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
30549         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
30550         modern BIND to search name as TLD unless forbidden.
30551
30552 2011-05-07  Petr Baudis  <pasky@suse.cz>
30553             Ulrich Drepper  <drepper@gmail.com>
30554
30555         [BZ #12393]
30556         * elf/dl-load.c (fillin_rpath): Move trusted path check...
30557         (is_trusted_path): ...to here.
30558         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
30559         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
30560         using is_trusted_path_normalize() in setuid scripts.
30561
30562 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
30563
30564         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
30565         __BEGIN/__END_DECLS.
30566
30567 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
30568
30569         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
30570         NSS_STATUS_NOTFOUND if no record was found.
30571
30572 2011-05-05  Andreas Schwab  <schwab@redhat.com>
30573
30574         * sunrpc/Makefile (headers): Add rpc/netdb.h.
30575         (headers-not-in-tirpc): Remove rpc/netdb.h
30576         * resolv/netdb.h: Revert last change.
30577
30578 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
30579
30580         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
30581         circular dependency between libgcc.a and libc.a.
30582
30583 2011-05-05  Andreas Schwab  <schwab@redhat.com>
30584
30585         * resolv/netdb.h: Don't include <rpc/netdb.h>.
30586         * nis/Makefile: Don't install rpcsvc/*.
30587         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
30588         instead of <rpc/types.h>.
30589         (MAXHOSTNAMELEN): Define.
30590
30591 2011-05-03  Andreas Schwab  <schwab@redhat.com>
30592
30593         * elf/ldconfig.c (add_dir): Don't crash on empty path.
30594
30595 2011-04-28  Maciej Babinski  <mbabinski@google.com>
30596
30597         [BZ #12714]
30598         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
30599         gethostbyname4_r when IPv6 results are possible.
30600
30601 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
30602
30603         [BZ #12723]
30604         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
30605         _PC_PIPE_BUF handling.
30606
30607 2011-04-30  Bruno Haible  <bruno@clisp.org>
30608
30609         [BZ #12717]
30610         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
30611         * resolv/netdb.h (getnameinfo): Change type of flags parameter
30612         to 'int'.
30613         * inet/getnameinfo.c (getnameinfo): Likewise.
30614
30615 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
30616
30617         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
30618         to groups setting in database lookup.
30619         * nss/nsswitch.conf: Add initgroups entry.
30620
30621 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
30622
30623         [BZ #12685]
30624         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
30625         mode string.
30626         Patch by Eric Blake <eblake@redhat.com>.
30627
30628 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
30629
30630         * sunrpc/Makefile (need-export-routines): Add svc_run.
30631         (routines): Remove svc_run.
30632         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
30633         * sunrpc/clnt_perr.c (clnt_perrno): Export.
30634         * sunrpc/svc_run.c (svc_run): Likewise.
30635         * sunrpc/svc_udp.c (svcudp_create): Likewise.
30636
30637 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
30638
30639         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
30640         problem in reallocation in last patch.
30641
30642 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
30643
30644         * sunrpc/Makefile: Move inclusion of Rules.
30645
30646 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
30647
30648         * nss/nss_files/files-initgroups.c: New file.
30649         * nss/Makefile (libnss_files-routines): Add files-initgroups.
30650         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
30651         _nss_files_initgroups_dyn.
30652
30653 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
30654
30655         * elf/elf.h (R_ARM_IRELATIVE): Define.
30656
30657 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
30658
30659         * po/ru.po: Update from translation team.
30660
30661 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
30662
30663         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
30664         dependencies.
30665
30666 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
30667
30668         [BZ #12653]
30669         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
30670         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
30671         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30672         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30673         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30674
30675 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
30676
30677         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
30678         differing bytes.
30679         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
30680         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
30681         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30682
30683 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
30684
30685         [BZ #12420]
30686         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
30687         storing it.
30688         * stdlib/bug-getcontext.c: New file.
30689         * stdlib/Makefile: Add rules to build and run bug-getcontext.
30690
30691 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30692
30693         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
30694         instructions into .machine "z9-109".
30695         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
30696         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
30697
30698 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30699
30700         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
30701         between environment variables and auxiliary vector.
30702
30703 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
30704
30705         * Makefile: Add rules to build linkobj/libc.so.
30706         * include/libc-symbols.h: Define libc_hidden_nolink.
30707         * include/rpc/auth.h: Mark functions which are to be hidden.
30708         * include/rpc/auth_des.h: Likewise.
30709         * include/rpc/auth_unix.h: Likewise.
30710         * include/rpc/clnt.h: Likewise.
30711         * include/rpc/des_crypt.h: Likewise.
30712         * include/rpc/key_prot.h: Likewise.
30713         * include/rpc/pmap_clnt.h: Likewise.
30714         * include/rpc/pmap_prot.h: Likewise.
30715         * include/rpc/pmap_rmt.h: Likewise.
30716         * include/rpc/rpc_msg.h: Likewise.
30717         * include/rpc/svc.h: Likewise.
30718         * include/rpc/svc_auth.h: Likewise.
30719         * include/rpc/xdr.h: Likewise.
30720         * nis/Makefile: Link all DSOs against linkobj/libc.so.
30721         * nss/Makefile: Likewise.
30722         * sunrpc/Makefile: Don't install headers.  Build library with normal
30723         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
30724         * sunrpc/auth_des.c: Hide exported symbols by default, export some
30725         for the compat linking library.  Remove use of INTDEF/INTUSE.
30726         * sunrpc/auth_none.c: Likewise.
30727         * sunrpc/auth_unix.c: Likewise.
30728         * sunrpc/authdes_prot.c: Likewise.
30729         * sunrpc/authuxprot.c: Likewise.
30730         * sunrpc/clnt_gen.c: Likewise.
30731         * sunrpc/clnt_perr.c: Likewise.
30732         * sunrpc/clnt_raw.c: Likewise.
30733         * sunrpc/clnt_simp.c: Likewise.
30734         * sunrpc/clnt_tcp.c: Likewise.
30735         * sunrpc/clnt_udp.c: Likewise.
30736         * sunrpc/clnt_unix.c: Likewise.
30737         * sunrpc/des_crypt.c: Likewise.
30738         * sunrpc/des_soft.c: Likewise.
30739         * sunrpc/get_myaddr.c: Likewise.
30740         * sunrpc/key_call.c: Likewise.
30741         * sunrpc/key_prot.c: Likewise.
30742         * sunrpc/netname.c: Likewise.
30743         * sunrpc/pm_getmaps.c: Likewise.
30744         * sunrpc/pm_getport.c: Likewise.
30745         * sunrpc/pmap_clnt.c: Likewise.
30746         * sunrpc/pmap_prot.c: Likewise.
30747         * sunrpc/pmap_prot2.c: Likewise.
30748         * sunrpc/pmap_rmt.c: Likewise.
30749         * sunrpc/publickey.c: Likewise.
30750         * sunrpc/rpc_cmsg.c: Likewise.
30751         * sunrpc/rpc_common.c: Likewise.
30752         * sunrpc/rpc_dtable.c: Likewise.
30753         * sunrpc/rpc_prot.c: Likewise.
30754         * sunrpc/rpc_thread.c: Likewise.
30755         * sunrpc/rtime.c: Likewise.
30756         * sunrpc/svc.c: Likewise.
30757         * sunrpc/svc_auth.c: Likewise.
30758         * sunrpc/svc_authux.c: Likewise.
30759         * sunrpc/svc_raw.c: Likewise.
30760         * sunrpc/svc_run.c: Likewise.
30761         * sunrpc/svc_simple.c: Likewise.
30762         * sunrpc/svc_tcp.c: Likewise.
30763         * sunrpc/svc_udp.c: Likewise.
30764         * sunrpc/svc_unix.c: Likewise.
30765         * sunrpc/svcauth_des.c: Likewise.
30766         * sunrpc/xcrypt.c: Likewise.
30767         * sunrpc/xdr.c: Likewise.
30768         * sunrpc/xdr_array.c: Likewise.
30769         * sunrpc/xdr_float.c: Likewise.
30770         * sunrpc/xdr_intXX_t.c: Likewise.
30771         * sunrpc/xdr_mem.c: Likewise.
30772         * sunrpc/xdr_rec.c: Likewise.
30773         * sunrpc/xdr_ref.c: Likewise.
30774         * sunrpc/xdr_sizeof.c: Likewise.
30775         * sunrpc/xdr_stdio.c: Likewise.
30776
30777 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
30778
30779         [BZ #12650]
30780         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
30781         * sysdeps/ia64/dl-tls.h: Likewise.
30782         * sysdeps/powerpc/dl-tls.h: Likewise.
30783         * sysdeps/s390/dl-tls.h: Likewise.
30784         * sysdeps/sh/dl-tls.h: Likewise.
30785         * sysdeps/sparc/dl-tls.h: Likewise.
30786         * sysdeps/x86_64/dl-tls.h: Likewise.
30787         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
30788
30789 2011-03-14  Andreas Schwab  <schwab@redhat.com>
30790
30791         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
30792         rpath element also skip the following colon.
30793         (expand_dynamic_string_token): Add is_path parameter and pass
30794         down to DL_DST_REQUIRED and _dl_dst_substitute.
30795         (decompose_rpath): Call expand_dynamic_string_token with
30796         non-zero is_path.  Ignore empty rpaths.
30797         (_dl_map_object_from_fd): Call expand_dynamic_string_token
30798         with zero is_path.
30799
30800 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
30801
30802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
30803         Make cancelable.
30804
30805 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
30806
30807         [BZ #12655]
30808         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
30809         Patch by Filipe David Manana <fdmanana@apache.org>.
30810
30811 2011-04-07  Andreas Schwab  <schwab@redhat.com>
30812
30813         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
30814         Maintain aligned stack.
30815         (CHECK_RSP): Remove unused macro.
30816
30817 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
30818
30819         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
30820         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
30821
30822 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
30823
30824         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
30825
30826         * include/features.h: Mention __USE_XOPEN2K8 in comment.
30827
30828 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
30829
30830         [BZ #12518]
30831         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
30832         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
30833         * sysdeps/x86_64/memmove.c: New file.
30834         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
30835         (memcpy): Renamed to ...
30836         (__new_memcpy): This.
30837         (memcpy): Provide GLIBC_2_14 memcpy.
30838         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
30839         (memcpy): Provide GLIBC_2_2_5 memcpy.
30840
30841 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
30842
30843         [BZ #12631]
30844         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
30845
30846 2011-03-30  Andreas Schwab  <schwab@redhat.com>
30847
30848         * misc/syncfs.c: New file.
30849         * misc/Makefile (routines): Add syncfs.
30850         * posix/unistd.h: Declare syncfs.
30851         * sysdeps/unix/syscalls.list: Add syncfs.
30852
30853 2011-04-01  Andreas Schwab  <schwab@redhat.com>
30854
30855         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
30856         open_by_handle_at.
30857         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
30858         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
30859         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
30860         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
30861         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30862         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
30863         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
30864
30865 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
30866
30867         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
30868         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
30869         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
30870         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
30871         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
30872         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30873         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
30874
30875         * io/Makefile: Compile fallocate.c, fallocate64.c, and
30876         sync_file_range.c with -fexceptions.
30877         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
30878         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
30879         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
30880         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
30881         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
30882         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
30883         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
30884         sync_file_range as cancellation point
30885         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
30886         now a wrapper around __call_sync_file_range with cancellation handling.
30887         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
30888         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
30889         function name to __call_sync_file_range.
30890         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
30891         Add call_sync_file_range.
30892
30893 2011-04-01  Andreas Schwab  <schwab@redhat.com>
30894
30895         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30896         bits/timex.h.
30897
30898 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
30899
30900         * iconv/iconv.h: Fix typo in comment.
30901         * io/fcntl.h: Likewise.
30902         * libio/stdio.h: Likewise.
30903         * posix/spawn.h: Likewise.
30904         * posix/unistd.h: Likewise.
30905         * stdlib/stdlib.h: Likewise.
30906         * time/time.h: Likewise.
30907         * wcsmbs/wchar.h: Likewise.
30908
30909         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
30910         open_by_handle): Add.
30911         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
30912         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
30913         Augment a few comments.
30914         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
30915         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
30916         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
30917         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30918         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
30919         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
30920         open_by_handle.
30921
30922         * io/fcntl.h (AT_EMPTY_PATH): Define.
30923
30924 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
30925
30926         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
30927         * sysdeps/unix/sysv/linux/bits/time.h: New file.
30928         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
30929         to...
30930         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
30931         * Versions.def: Add GLIBC_2.14.
30932         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
30933         Export.
30934
30935 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
30936
30937         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
30938         round counter.
30939         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
30940
30941 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
30942
30943         [BZ #12597]
30944         * string/test-strncmp.c (do_page_test): New function.
30945         (check2): Likewise.
30946         (test_main): Call check2.
30947         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
30948
30949 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
30950
30951         [BZ #12587]
30952         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
30953         Handle cache information in CPU leaf 4.
30954         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
30955
30956 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
30957
30958         [BZ #12583]
30959         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
30960         character representation.
30961         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
30962
30963 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
30964
30965         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
30966         END(__isnan) to END(__isnanf) to match function entry point/label
30967         EALIGN(__isnanf,...).
30968
30969 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
30970
30971         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
30972
30973 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
30974
30975         [BZ #12510]
30976         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
30977         copy from the symbol referenced in the relocation to initialize the
30978         used variable.
30979         Patch by Piotr Bury <pbury@goahead.com>.
30980         * elf/Makefile: Add rules to build and tst-unique3.
30981         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
30982         * elf/tst-unique3.cc: New file.
30983         * elf/tst-unique3.h: New file.
30984         * elf/tst-unique3lib.cc: New file.
30985         * elf/tst-unique3lib2.cc: New file.
30986
30987         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
30988
30989 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
30990
30991         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
30992         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
30993         to _start.
30994
30995 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
30996
30997         * elf/dl-load.c (_dl_map_object): If we are looking for the first
30998         to-be-loaded object along a path to loader is ld.so.
30999
31000 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
31001             Ulrich Drepper  <drepper@gmail.com>
31002
31003         * sysdeps/x86_64/memset.S: After aligning destination, code
31004         branches to different locations depending on the value of
31005         misalignment, when multiarch is enabled. Fix this.
31006
31007 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
31008
31009         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
31010         Set _x86_64_preferred_memory_instruction for AMD processsors.
31011         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31012         Set bit_Prefer_SSE_for_memop for AMD processors.
31013
31014 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
31015
31016         * libio/fmemopen.c (fmemopen): Optimize a bit.
31017
31018 2011-03-03  Andreas Schwab  <schwab@redhat.com>
31019
31020         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
31021
31022 2011-03-03  Roland McGrath  <roland@redhat.com>
31023
31024         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
31025
31026 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
31027
31028         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
31029         __bzero_ultra1 instead of __memset_ultra1.
31030
31031 2011-02-23  Andreas Schwab  <schwab@redhat.com>
31032             Ulrich Drepper  <drepper@gmail.com>
31033
31034         [BZ #12509]
31035         * include/link.h (struct link_map): Add l_orig_initfini.
31036         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
31037         returning unsuccessfully.
31038         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
31039         close of a file loaded at startup, restore the original l_initfini
31040         list.
31041         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
31042         list, store the pointer.
31043         * elf/Makefile ($(objpfx)noload-mem): New rule.
31044         (noload-ENV): Define.
31045         (tests): Add $(objpfx)noload-mem.
31046         * elf/noload.c: Include <memcheck.h>.
31047         (main): Call mtrace.  Close all opened handles.
31048
31049 2011-02-17  Andreas Schwab  <schwab@redhat.com>
31050
31051         [BZ #12454]
31052         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
31053         dependencies are missing.
31054
31055 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31056
31057         Fix __if_freereq crash: Unlike the generic version which uses free,
31058         Hurd needs munmap.
31059         * sysdeps/mach/hurd/ifreq.h: New file.
31060
31061 2011-01-27  Petr Baudis  <pasky@suse.cz>
31062             Ulrich Drepper  <drepper@gmail.com>
31063
31064         [BZ 12445]#
31065         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
31066         to extend_alloca().
31067         * stdio-common/bug23.c: New file.
31068         * stdio-common/Makefile (tests): Add bug23.
31069
31070 2010-09-28  Andreas Schwab  <schwab@redhat.com>
31071             Ulrich Drepper  <drepper@gmail.com>
31072
31073         [BZ #12489]
31074         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
31075         before performing relro protection.  At old place add assertion
31076         to make sure nothing changed.
31077
31078 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
31079             Glauber de Oliveira Costa  <glommer@gmail.com>
31080
31081         * elf/elf.h: Add new ARM TLS relocs.
31082
31083 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
31084
31085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
31086         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
31087         cast from r3.
31088         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
31089         'tests' variable.
31090         * sysdeps/wordsize-64/tst-writev.c: New file.
31091
31092 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
31093
31094         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
31095         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
31096         insns in _dl_start to prevent a TOC reference before relocs are
31097         resolved.
31098
31099 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
31100
31101         [BZ #12469]
31102         * Makeconfig: Remove RANLIB definition.
31103         * Makerules: Don't use RANLIB.
31104         * aclocal.m4: Remove ranlib test.
31105         * configure.in: No need to check for ranlib.
31106         * elf/rtld-Rules: Don't use RANLIB.
31107
31108 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31109
31110         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
31111         protection macro.
31112         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
31113         inclusion protection macro.
31114
31115         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
31116         SIGRTMIN and SIGRTMAX and print information in that case only when
31117         SIGRTMIN is defined.
31118
31119 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
31120
31121         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
31122         arginfo fn returning -1.
31123
31124         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
31125         and thousands string is zero terminated.
31126
31127 2011-02-03  Andreas Schwab  <schwab@redhat.com>
31128
31129         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
31130         sysdeps/unix/sysv/linux/bits/socket.h.
31131
31132 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31133
31134         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
31135         (__CPU_COUNT): Remove old macros.
31136         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
31137         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
31138         (__CPU_ALLOC, __CPU_FREE): Add macros.
31139         (__sched_cpualloc, __sched_cpufree): Add declarations.
31140
31141 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
31142
31143         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
31144         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
31145         * nscd/aicache.c (addhstaiX): Return timeout of added value.
31146         (readdhstai): Return value of addhstaiX call.
31147         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
31148         (addgrbyX): Return value returned by cache_addgr.
31149         (readdgrbyname): Return value returned by addgrbyX.
31150         (readdgrbygid): Likewise.
31151         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
31152         (addpwbyX): Return value returned by cache_addpw.
31153         (readdpwbyname): Return value returned by addhstbyX.
31154         (readdpwbyuid): Likewise.
31155         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
31156         (addservbyX): Return value returned by cache_addserv.
31157         (readdservbyname): Return value returned by addservbyX:
31158         (readdservbyport): Likewise.
31159         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
31160         (addhstbyX): Return value returned by cache_addhst.
31161         (readdhstbyname): Return value returned by addhstbyX.
31162         (readdhstbyaddr): Likewise.
31163         (readdhstbynamev6): Likewise.
31164         (readdhstbyaddrv6): Likewise.
31165         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
31166         (readdinitgroups): Return value returned by addinitgroupsX.
31167         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
31168         (prune_cache): Keep track of timeout value of re-added entries.
31169         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
31170         * nscd/nscd.h: Adjust prototypes of readd* functions.
31171
31172 2011-02-04  Roland McGrath  <roland@redhat.com>
31173
31174         * nis/nis_server.c (nis_servstate): Use the right name for 0.
31175         (nis_stats): Likewise.
31176         * nis/nis_modify.c (nis_modify): Likewise.
31177         * nis/nis_remove.c (nis_remove): Likewise.
31178         * nis/nis_add.c (nis_add): Likewise.
31179
31180         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
31181
31182         * posix/fnmatch_loop.c: Add some consts.
31183
31184         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
31185
31186 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
31187
31188         [BZ #12460]
31189         * config.make.in (config-cflags-novzeroupper): Define.
31190         * configure.in: Substitute libc_cv_cc_novzeroupper.
31191         * elf/Makefile (AVX-CFLAGS): Define.
31192         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
31193         (CFLAGS-tst-auditmod4a.c): Likewise.
31194         (CFLAGS-tst-auditmod4b.c): Likewise.
31195         (CFLAGS-tst-auditmod6b.c): Likewise.
31196         (CFLAGS-tst-auditmod6c.c): Likewise.
31197         (CFLAGS-tst-auditmod7b.c): Likewise.
31198         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
31199
31200 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
31201
31202         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
31203         function to the callback.
31204         Patch partly by Jiri Olsa <jolsa@redhat.com>.
31205
31206 2011-02-02  Andreas Schwab  <schwab@redhat.com>
31207
31208         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
31209         of errno.
31210
31211 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
31212
31213         [BZ #11724]
31214         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
31215         of constructors.
31216         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
31217         of destructors.
31218         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
31219
31220         [BZ #11724]
31221         * elf/Makefile: Add rules to build and run new test.
31222         * elf/tst-initorder.c: New file.
31223         * elf/tst-initorder.exp: New file.
31224         * elf/tst-initordera1.c: New file.
31225         * elf/tst-initordera2.c: New file.
31226         * elf/tst-initordera3.c: New file.
31227         * elf/tst-initordera4.c: New file.
31228         * elf/tst-initorderb1.c: New file.
31229         * elf/tst-initorderb2.c: New file.
31230         * elf/tst-order-a1.c: New file.
31231         * elf/tst-order-a2.c: New file.
31232         * elf/tst-order-a3.c: New file.
31233         * elf/tst-order-a4.c: New file.
31234         * elf/tst-order-b1.c: New file.
31235         * elf/tst-order-b2.c: New file.
31236         * elf/tst-order-main.c: New file.
31237         New test case by George Gensure <werkt0@gmail.com>.
31238
31239 2010-10-01  Andreas Schwab  <schwab@redhat.com>
31240
31241         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
31242         decoding ACE if AI_CANONIDN.
31243
31244 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
31245
31246         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
31247
31248 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
31249
31250         * version.h (RELEASE): Bump for 2.13 release.
31251         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
31252
31253         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
31254
31255         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
31256         MADV_NOHUGEPAGE.
31257         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
31258         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
31259         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
31260         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
31261         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
31262         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
31263
31264         * posix/getconf.c: Update copyright year.
31265         * catgets/gencat.c: Likewise.
31266         * csu/version.c: Likewise.
31267         * debug/catchsegv.sh: Likewise.
31268         * debug/xtrace.sh: Likewise.
31269         * elf/ldconfig.c: Likewise.
31270         * elf/ldd.bash.in: Likewise.
31271         * elf/sprof.c (print_version): Likewise.
31272         * iconv/iconv_prog.c: Likewise.
31273         * iconv/iconvconfig.c: Likewise.
31274         * locale/programs/locale.c: Likewise.
31275         * locale/programs/localedef.c: Likewise.
31276         * malloc/memusage.sh: Likewise.
31277         * malloc/mtrace.pl: Likewise.
31278         * nscd/nscd.c (print_version): Likewise.
31279         * nss/getent.c: Likewise.
31280
31281         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
31282         PF_CAIF, and PF_ALG.
31283         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31284
31285 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
31286
31287         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
31288         (modules-names): Use them.
31289         (ifunc-test-modules, ifunc-pie-tests): Define.
31290         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
31291         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
31292         (test-extras): Likewise.
31293         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
31294         $(compile-command.c).
31295         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
31296         (all-built-dso): Define.
31297         (check-textrel.out, check-execstack.out): Depend on it.
31298
31299         * configure.in: Don't override --enable-multi-arch.
31300
31301 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
31302
31303         [BZ #6812]
31304         * nscd/hstcache.c (tryagain): Define.
31305         (cache_addhst): Return tryagain not notfound for temporary errors.
31306         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
31307         failed.
31308
31309 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
31310
31311         [BZ #10563]
31312         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
31313         to make the syscall.
31314         * sysdeps/unix/sysv/linux/setgroups.c: New file.
31315
31316         [BZ #12378]
31317         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
31318         and fall back to matching as normal character if the string ends before
31319         the matching ']' is found.  This is what POSIX requires.
31320         * posix/testfnm.c: Adjust test result.
31321         * posix/globtest.sh: Adjust test result.  Add new test.
31322         * posix/tst-fnmatch.input: Likewise.
31323         * posix/tst-fnmatch2.c: Add new test.
31324
31325 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
31326
31327         * elf/Makefile (check-execstack): Revert last change.  Depend on
31328         check-execstack.h.
31329         (check-execstack.h): New target.
31330         (generated): Add check-execstack.h.
31331         * elf/check-execstack.c: Include "check-execstack.h".
31332         (main): Revert last change.
31333         (handle_file): Return zero if GNU_STACK is absent and
31334         DEFAULT_STACK_PERMS doesn't include PF_X.
31335
31336 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
31337
31338         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
31339         in child fails because the descriptor is already closed.
31340         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
31341         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
31342         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
31343
31344         [BZ #12397]
31345         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
31346         syscall.
31347
31348         [BZ #10484]
31349         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
31350         temporary buffer used to handle multi lookups locally.
31351         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
31352
31353 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
31354
31355         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
31356         loader is ld.so.
31357
31358 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
31359
31360         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
31361         alignment for SSE2.
31362
31363 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
31364
31365         [BZ #12394]
31366         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
31367         characters.  When rounding increased number of integer digits recompute
31368         number of groups.
31369         * stdio-common/tst-grouping.c: New file.
31370         * stdio-common/Makefile: Add rules to build and run tst-grouping.
31371
31372 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
31373
31374         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
31375         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
31376
31377         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
31378         void.
31379         * bits/select.h: Likewise.
31380
31381 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
31382
31383         * po/ja.po: Update from translation team.
31384
31385 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
31386
31387         [BZ #11155]
31388         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
31389         implementation just like for lxstat, fxstatat, et al.
31390
31391 2010-12-27  Jim Meyering  <meyering@redhat.com>
31392
31393         [BZ #12348]
31394         * posix/regexec.c (build_trtable): Return failure indication upon
31395         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
31396
31397 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
31398
31399         [BZ #12201]
31400         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
31401         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
31402         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
31403         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
31404
31405         [BZ #12207]
31406         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
31407
31408         [BZ #12204]
31409         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
31410         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
31411
31412 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
31413
31414         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
31415         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
31416         script has SORT_BY_INIT_PRIORITY.
31417         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
31418         NO_CTORS_DTORS_SECTIONS is defined.
31419         * elf/soinit.c: Likewise.
31420         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
31421         NO_CTORS_DTORS_SECTIONS is defined.
31422         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
31423         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
31424         * sysdeps/sh/init-first.c: Likewise.
31425         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
31426
31427 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
31428
31429         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
31430         always use the slow path.
31431
31432 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
31433
31434         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
31435         similar rule which adds the sysdep directories to the header search in
31436         order to pick up the correct platform stackinfo.h.
31437         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
31438         perform test if it is, otherwise return successfully without testing.
31439         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
31440         DEFAULT_STACK_PERMS define in stackinfo.h.
31441         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
31442         defined in stackinfo.h.
31443         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
31444         DEFAULT_STACK_PERMS defined in stackinfo.h.
31445         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
31446         * sysdeps/ia64/stackinfo.h: Likewise.
31447         * sysdeps/s390/stackinfo.h: Likewise.
31448         * sysdeps/sh/stackinfo.h: Likewise.
31449         * sysdeps/sparc/stackinfo.h: Likewise.
31450         * sysdeps/x86_64/stackinfo.h: Likewise.
31451         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
31452         PF_X for powerpc64.  Retain PF_X for powerpc32.
31453
31454 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
31455
31456         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
31457         accurately.
31458         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
31459         GETDENTS_64BIT_ALIGNED.
31460
31461 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
31462
31463         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
31464
31465 2010-12-10  Andreas Schwab  <schwab@redhat.com>
31466
31467         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
31468         _GNU_SOURCE.
31469
31470         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
31471         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
31472         Remove __restrict.
31473         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
31474         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
31475
31476 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
31477
31478         [BZ #11655]
31479         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
31480         are initialized.
31481
31482 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
31483
31484         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
31485
31486 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
31487
31488         * po/it.po: Update from translation team.
31489
31490 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
31491
31492         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
31493         unused codes.
31494
31495 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
31496
31497         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
31498
31499 2010-11-24  Andreas Schwab  <schwab@redhat.com>
31500
31501         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
31502         specially.
31503         (gaih_getanswer_slice): Likewise.
31504
31505 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
31506
31507         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
31508
31509 2010-05-31  Petr Baudis  <pasky@suse.cz>
31510
31511         [BZ #11149]
31512         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
31513         silently even in the chroot mode.
31514
31515 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
31516
31517         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
31518         last patch a bit.  Pretty printing
31519
31520 2010-05-31  Petr Baudis <pasky@suse.cz>
31521
31522         [BZ #10085]
31523         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
31524         initialization of skip_initgroups_dyn.
31525
31526 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
31527
31528         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
31529         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
31530
31531 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
31532
31533         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
31534
31535 2010-11-11  Andreas Schwab  <schwab@redhat.com>
31536
31537         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
31538         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
31539         (tst-fnmatch-ENV): Set MALLOC_TRACE.
31540         ($(objpfx)tst-fnmatch-mem): New rule.
31541         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
31542         * posix/tst-fnmatch.c (main): Call mtrace.
31543
31544 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
31545
31546         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31547         Support Intel processor model 6 and model 0x2c.
31548
31549 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
31550
31551         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
31552           signed comparison.
31553
31554 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
31555
31556         [BZ #12205]
31557         * string/test-strncasecmp.c (check_result): New function.
31558         (do_one_test): Use it.
31559         (check1): New function.
31560         (test_main): Use it.
31561         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
31562         Support strcasecmp and strncasecmp.
31563
31564 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
31565
31566         [BZ #12194]
31567         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
31568         * sysdeps/x86_64/bits/byteswap.h: Likewise.
31569
31570 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
31571
31572         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
31573         IFUNC support.
31574         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31575         memset-x86-64.
31576         * sysdeps/x86_64/multiarch/bzero.S: New file.
31577         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
31578         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
31579         * sysdeps/x86_64/multiarch/memset.S: New file.
31580         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
31581         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31582         Set bit_Prefer_SSE_for_memop for Intel processors.
31583         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
31584         Define.
31585         (index_Prefer_SSE_for_memop): Define.
31586         (HAS_PREFER_SSE_FOR_MEMOP): Define.
31587
31588 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
31589
31590         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
31591         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
31592
31593 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
31594
31595         [BZ #12191]
31596         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
31597         (__x86_64_raw_data_cache_size_half): Likewise.
31598         (__x86_64_raw_shared_cache_size): Likewise.
31599         (__x86_64_raw_shared_cache_size_half): Likewise.
31600
31601         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
31602         (__x86_64_raw_data_cache_size_half): Likewise.
31603         (__x86_64_raw_shared_cache_size): Likewise.
31604         (__x86_64_raw_shared_cache_size_half): Likewise.
31605         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
31606         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
31607         and __x86_64_raw_shared_cache_size_half.  Round
31608         __x86_64_data_cache_size_half, __x86_64_data_cache_size
31609         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
31610         to multiple of 256 bytes.
31611
31612 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
31613
31614         [BZ #12167]
31615         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
31616         of inacessible symlinks.  Verify result of symlink before returning it.
31617         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
31618         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
31619
31620 2010-10-28  Erich Ritz  <erichritz@gmail.com>
31621
31622         * math/math.h (isinf): Fix typo in comment.
31623
31624 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
31625
31626         * po/da.po: Update from translation team.
31627
31628 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
31629
31630         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
31631         is added to the list.
31632
31633 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31634             Ulrich Drepper  <drepper@gmail.com>
31635
31636         * elf/dl-object.c (_dl_new_object): Don't append the new object to
31637         the global list here.  Move code to...
31638         (_dl_add_to_namespace_list): ...here.  New function.
31639         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
31640         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
31641         * elf/dl-load.c (lose): Don't remove the element from the list.
31642         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
31643         (_dl_map_object): Likewise.
31644
31645 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
31646
31647         [BZ #12159]
31648         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
31649         into all bytes of SSE register.
31650         Patch by Richard Li <richardpku@gmail.com>.
31651
31652 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
31653
31654         [BZ #12140]
31655         * malloc/malloc.c (_int_free): Fill correct number of bytes when
31656         perturbing.
31657
31658 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
31659
31660         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
31661         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
31662         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
31663         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
31665         submachine.
31666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
31667
31668 2010-10-22  Andreas Schwab  <schwab@redhat.com>
31669
31670         * include/dlfcn.h (__RTLD_SECURE): Define.
31671         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
31672         mode & __RTLD_SECURE instead.
31673         (open_path): Rename preloaded parameter to secure.
31674         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
31675         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
31676         * elf/dl-deps.c (openaux): Likewise.
31677         * elf/rtld.c (struct map_args): Remove is_preloaded.
31678         (map_doit): Don't use it.
31679         (dl_main): Likewise.
31680         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
31681         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
31682
31683 2010-09-09  Andreas Schwab  <schwab@redhat.com>
31684
31685         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
31686         (sysd-rules-targets): Remove duplicates.
31687         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
31688         rtld-%.$o dependency.
31689
31690 2010-10-18  Andreas Schwab  <schwab@redhat.com>
31691
31692         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
31693         _dl_map_object do it.
31694
31695 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
31696
31697         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
31698         fast fma builtins, define the macros in the C99 standard.
31699         (FP_FAST_FMAF): Likewise.
31700         (FP_FAST_FMAL): Likewise.
31701         * sysdeps/x86_64/bits/mathdef.h: Likewise.
31702
31703         * bits/mathdef.h: Update copyright year.
31704         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31705
31706 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
31707
31708         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
31709         builtins, define the macros in the C99 standard.
31710         (FP_FAST_FMAF): Likewise.
31711         (FP_FAST_FMAL): Likewise.
31712         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
31713         multiply/add.
31714         (FP_FAST_FMAF): Likewise.
31715
31716 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
31717
31718         [BZ #3268]
31719         * math/libm-test.inc (fma_test): Some new testcases.
31720         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
31721         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
31722         y and infinite z.  Do multiplication by C already in long double.
31723         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
31724         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
31725         y and infinite z.  Do bitwise or of inexact bit into u.d.
31726         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
31727         * sysdeps/i386/fpu/s_fmaf.S: Removed.
31728         * sysdeps/i386/fpu/s_fma.S: Removed.
31729         * sysdeps/i386/fpu/s_fmal.S: Removed.
31730
31731 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
31732
31733         [BZ #3268]
31734         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
31735         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
31736         computation is not scheduled after fetestexcept.  Fix value
31737         of minimum denormal long double.
31738
31739 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
31740
31741         [BZ #3268]
31742         * math/libm-test.inc (fma_test): Add some more tests.
31743         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
31744         correctly.
31745
31746 2010-10-15  Andreas Schwab  <schwab@redhat.com>
31747
31748         * scripts/data/localplt-s390-linux-gnu.data: New file.
31749         * scripts/data/localplt-s390x-linux-gnu.data: New file.
31750
31751 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
31752
31753         [BZ #3268]
31754         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
31755         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
31756         instead of dbl-64.
31757         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
31758         inlines.
31759         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
31760         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
31761         if one of x and y is very large and the other is subnormal.
31762         * sysdeps/s390/fpu/s_fmaf.c: New file.
31763         * sysdeps/s390/fpu/s_fma.c: New file.
31764         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
31765         * sysdeps/powerpc/fpu/s_fma.S: New file.
31766         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
31767         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
31768         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
31769
31770 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
31771
31772         [BZ #3268]
31773         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
31774         fma tests.
31775         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
31776         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
31777         * sysdeps/i386/i686/multiarch/s_fma.c: Include
31778         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
31779         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
31780         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
31781         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
31782
31783 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
31784
31785         [BZ #12078]
31786         * posix/regcomp.c (parse_branch): One more memory leak plugged.
31787         * posix/bug-regex31.input: Add test case.
31788
31789 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
31790
31791         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
31792         * posix/bug-regex31.input: New file.
31793
31794         [BZ #12078]
31795         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
31796         (parse_sub_exp): Fix last change, use postorder.
31797
31798         * posix/bug-regex31.c: New file.
31799         * posix/Makefile: Add rules to build and run bug-regex31.
31800
31801         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
31802
31803         [BZ #12078]
31804         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
31805
31806         [BZ #12108]
31807         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
31808         to have entries in sys_siglist.
31809
31810         [BZ #12093]
31811         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
31812         be NULL.
31813
31814 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
31815
31816         [BZ #3268]
31817         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
31818         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
31819         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
31820         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
31821         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
31822         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
31823         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
31824         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
31825         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
31826         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
31827         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
31828         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
31829         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
31830         * math/ftestexcept.c (fetestexcept): Likewise.
31831         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
31832         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
31833         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
31834         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
31835         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
31836         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
31837         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31838
31839 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
31840
31841         [BZ #12107]
31842         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
31843         newline.
31844
31845 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
31846
31847         * string/bug-strstr1.c: New file.
31848         * string/Makefile: Add rules to build and run bug-strstr1.
31849
31850 2010-10-05  Eric Blake  <eblake@redhat.com>
31851
31852         [BZ #12092]
31853         * string/str-two-way.h (two_way_long_needle): Always clear memory
31854         when skipping input due to the shift table.
31855
31856 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
31857
31858         [BZ #12005]
31859         * malloc/mcheck.c: Handle large requests.
31860
31861         [BZ #12077]
31862         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
31863         for strncmp and strncasecmp.
31864         * string/stratcliff.c: Add tests for strcmp and strncmp.
31865         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
31866
31867 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
31868
31869         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
31870         __set_fpscr.
31871
31872 2010-09-30  Andreas Jaeger  <aj@suse.de>
31873
31874         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
31875         (CGROUP_SUPER_MAGIC): Define.
31876         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31877         Handle btrfs and cgroup file systems.
31878         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
31879         Likewise.
31880
31881 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
31882
31883         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
31884         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
31885
31886 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31887
31888         [BZ #12067]
31889         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
31890         trying to locate the ELF header.
31891
31892 2010-09-27  Andreas Schwab  <schwab@redhat.com>
31893
31894         [BZ #11611]
31895         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
31896         Mask out sign-bit copies when constructing f_fsid.
31897
31898 2010-09-24  Petr Baudis <pasky@suse.cz>
31899
31900         * debug/stack_chk_fail_local.c: Add missing licence exception.
31901         * debug/warning-nop.c: Likewise.
31902
31903 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
31904
31905         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
31906         implementing getdents64 using getdents syscall, set d_type if
31907         __ASSUME_GETDENTS32_D_TYPE.
31908
31909 2010-09-16  Andreas Schwab  <schwab@redhat.com>
31910
31911         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
31912         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
31913
31914 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
31915
31916         [BZ #12037]
31917         * posix/unistd.h: Undo change of feature selection for ftruncate from
31918         2010-01-11.
31919
31920 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
31921
31922         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
31923         detection.
31924
31925 2010-09-20  Andreas Schwab  <schwab@redhat.com>
31926
31927         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
31928         fanotify_mark.
31929         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
31930
31931 2010-09-14  Andreas Schwab  <schwab@redhat.com>
31932
31933         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
31934         variables after CHECK_SP call.
31935         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
31936
31937 2010-09-13  Andreas Schwab  <schwab@redhat.com>
31938             Ulrich Drepper  <drepper@redhat.com>
31939
31940         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
31941         re-relocationg ld.so.
31942         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
31943         _dl_init_paths call.
31944         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
31945         here anymore.
31946
31947 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
31948
31949         * resolv/res_init.c (__res_vinit): Count the default server we added.
31950
31951 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
31952             Ulrich Drepper  <drepper@redhat.com>
31953
31954         [BZ #11968]
31955         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
31956         (____longjmp_chk): Use %ebx for saving value across system call.
31957         Add unwind info.
31958
31959 2010-09-06  Andreas Schwab  <schwab@redhat.com>
31960
31961         * manual/Makefile: Don't mix pattern rules with normal rules.
31962
31963 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
31964
31965         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
31966         operation.
31967         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
31968         * libio/iofopncook.c (_IO_cookie_init): Likewise.
31969         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
31970         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
31971         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
31972         Likewise.
31973
31974 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
31975
31976         [BZ #11979]
31977         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
31978         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
31979
31980 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
31981
31982         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
31983         * sysdeps/x86_64/addmul_1.S: Likewise.
31984         * sysdeps/x86_64/lshift.S: Likewise.
31985         * sysdeps/x86_64/mul_1.S: Likewise.
31986         * sysdeps/x86_64/rshift.S: Likewise.
31987         * sysdeps/x86_64/sub_n.S: Likewise.
31988         * sysdeps/x86_64/submul_1.S: Likewise.
31989
31990 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31991
31992         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
31993         Define __sched_param instead of SCHED_* and sched_param when
31994         <bits/sched.h> is included with __need_schedparam defined.
31995         * bits/sched.h [__need_schedparam]
31996         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
31997         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
31998         (__defined_schedparam): Define to 1.
31999         (__sched_param): New structure, identical to sched_param.
32000         (__need_schedparam): Undefine.
32001
32002 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
32003
32004         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
32005         (epoll_create1): Declare.
32006
32007         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
32008
32009 2010-08-31  Andreas Schwab  <schwab@redhat.com>
32010
32011         [BZ #7066]
32012         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
32013         shifting retval into place.
32014
32015 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
32016
32017         * nis/rpcsvc/nis.h: Update copyright notice.
32018         * nis/rpcsvc/nis.x: Likewise.
32019         * nis/rpcsvc/nis_callback.h: Likewise.
32020         * nis/rpcsvc/nis_callback.x: Likewise.
32021         * nis/rpcsvc/nis_object.x: Likewise.
32022         * nis/rpcsvc/nis_tags.h: Likewise.
32023         * nis/rpcsvc/yp.h: Likewise.
32024         * nis/rpcsvc/yp.x: Likewise.
32025         * nis/rpcsvc/ypupd.h: Likewise.
32026         * nis/yp_xdr.c: Likewise.
32027         * nis/ypupdate_xdr.c: Likewise.
32028
32029         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
32030         mainly the body of pmap_getport.  Add parameters to specify timeouts.
32031         (pmap_getport): Use __libc_rpc_getport.
32032         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
32033         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
32034         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
32035
32036 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
32037
32038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
32039         fanotify_mark.
32040
32041 2010-08-27  Roland McGrath  <roland@redhat.com>
32042
32043         * sysdeps/i386/i686/multiarch/Makefile
32044         (CFLAGS-varshift.c): New variable.
32045
32046 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
32047
32048         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
32049         * sysdeps/i386/i686/multiarch/varshift.c: New file.
32050
32051         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
32052
32053         * sysdeps/x86_64/strlen.S: Minimal code improvement.
32054
32055 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
32056
32057         * sysdeps/x86_64/strlen.S: Unroll the loop.
32058         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32059         strlen-sse2 strlen-sse2-bsf.
32060         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
32061         __strlen_no_bsf if bit_Slow_BSF is set.
32062         (__strlen_sse42): Removed.
32063         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
32064         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
32065
32066 2010-08-25  Roland McGrath  <roland@redhat.com>
32067
32068         * sysdeps/x86_64/multiarch/varshift.S: File removed.
32069         * sysdeps/x86_64/multiarch/varshift.c: New file.
32070         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
32071         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
32072         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
32073         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
32074
32075 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
32076
32077         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32078         strlen-sse2 strlen-sse2-bsf.
32079         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
32080         __strlen_sse2_bsf if bit_Slow_BSF is unset.
32081         (__strlen_sse2): Removed.
32082         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
32083         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
32084         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
32085         bit_Slow_BSF for Atom.
32086         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
32087         (index_Slow_BSF): Define.
32088         (HAS_SLOW_BSF): Define.
32089
32090 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
32091
32092         [BZ #10851]
32093         * resolv/res_init.c (__res_vinit): When no server address at all
32094         is given default to loopback.
32095
32096 2010-08-24  Roland McGrath  <roland@redhat.com>
32097
32098         * configure.in: Remove config-name.h generation.
32099         * configure: Regenerated.
32100         * config-name.in: File removed.
32101         * scripts/config-uname.sh: New file.
32102         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
32103         ($(objdir)config-name.h): New target.
32104
32105         * sunrpc/rpc_parse.h: Avoid nested comment.
32106
32107 2010-08-24  Richard Henderson  <rth@redhat.com>
32108             Ulrich Drepper  <drepper@redhat.com>
32109             H.J. Lu  <hongjiu.lu@intel.com>
32110
32111         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
32112         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
32113         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
32114         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
32115         _mm_alignr_epi8 with _mm_loadu_si128.
32116         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
32117         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
32118         (__m128i_shift_right): Removed.
32119         * sysdeps/i386/i686/multiarch/varshift.h: New file.
32120         * sysdeps/i386/i686/multiarch/varshift.S: New file.
32121         * sysdeps/x86_64/multiarch/varshift.h: New file.
32122         * sysdeps/x86_64/multiarch/varshift.S: New file.
32123
32124 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
32125
32126         * configure.in: Move assembler checks to before sysdep dir checking.
32127
32128 2010-08-20  Petr Baudis  <pasky@suse.cz>
32129
32130         * LICENSES: Sync the sunrpc license.
32131
32132 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
32133
32134         * sunrpc/auth_des.c: Update copyright notice once again.
32135         * sunrpc/auth_none.c: Likewise.
32136         * sunrpc/auth_unix.c: Likewise.
32137         * sunrpc/authdes_prot.c: Likewise.
32138         * sunrpc/authuxprot.c: Likewise.
32139         * sunrpc/bindrsvprt.c: Likewise.
32140         * sunrpc/clnt_gen.c: Likewise.
32141         * sunrpc/clnt_perr.c: Likewise.
32142         * sunrpc/clnt_raw.c: Likewise.
32143         * sunrpc/clnt_simp.c: Likewise.
32144         * sunrpc/clnt_tcp.c: Likewise.
32145         * sunrpc/clnt_udp.c: Likewise.
32146         * sunrpc/clnt_unix.c: Likewise.
32147         * sunrpc/des_crypt.c: Likewise.
32148         * sunrpc/des_soft.c: Likewise.
32149         * sunrpc/get_myaddr.c: Likewise.
32150         * sunrpc/getrpcport.c: Likewise.
32151         * sunrpc/key_call.c: Likewise.
32152         * sunrpc/key_prot.c: Likewise.
32153         * sunrpc/openchild.c: Likewise.
32154         * sunrpc/pm_getmaps.c: Likewise.
32155         * sunrpc/pm_getport.c: Likewise.
32156         * sunrpc/pmap_clnt.c: Likewise.
32157         * sunrpc/pmap_prot.c: Likewise.
32158         * sunrpc/pmap_prot2.c: Likewise.
32159         * sunrpc/pmap_rmt.c: Likewise.
32160         * sunrpc/rpc/auth.h: Likewise.
32161         * sunrpc/rpc/auth_unix.h: Likewise.
32162         * sunrpc/rpc/clnt.h: Likewise.
32163         * sunrpc/rpc/des_crypt.h: Likewise.
32164         * sunrpc/rpc/key_prot.h: Likewise.
32165         * sunrpc/rpc/netdb.h: Likewise.
32166         * sunrpc/rpc/pmap_clnt.h: Likewise.
32167         * sunrpc/rpc/pmap_prot.h: Likewise.
32168         * sunrpc/rpc/pmap_rmt.h: Likewise.
32169         * sunrpc/rpc/rpc.h: Likewise.
32170         * sunrpc/rpc/rpc_des.h: Likewise.
32171         * sunrpc/rpc/rpc_msg.h: Likewise.
32172         * sunrpc/rpc/svc.h: Likewise.
32173         * sunrpc/rpc/svc_auth.h: Likewise.
32174         * sunrpc/rpc/types.h: Likewise.
32175         * sunrpc/rpc/xdr.h: Likewise.
32176         * sunrpc/rpc_clntout.c: Likewise.
32177         * sunrpc/rpc_cmsg.c: Likewise.
32178         * sunrpc/rpc_common.c: Likewise.
32179         * sunrpc/rpc_cout.c: Likewise.
32180         * sunrpc/rpc_dtable.c: Likewise.
32181         * sunrpc/rpc_hout.c: Likewise.
32182         * sunrpc/rpc_main.c: Likewise.
32183         * sunrpc/rpc_parse.c: Likewise.
32184         * sunrpc/rpc_parse.h: Likewise.
32185         * sunrpc/rpc_prot.c: Likewise.
32186         * sunrpc/rpc_sample.c: Likewise.
32187         * sunrpc/rpc_scan.c: Likewise.
32188         * sunrpc/rpc_scan.h: Likewise.
32189         * sunrpc/rpc_svcout.c: Likewise.
32190         * sunrpc/rpc_tblout.c: Likewise.
32191         * sunrpc/rpc_util.c: Likewise.
32192         * sunrpc/rpc_util.h: Likewise.
32193         * sunrpc/rpcinfo.c: Likewise.
32194         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
32195         * sunrpc/rpcsvc/key_prot.x: Likewise.
32196         * sunrpc/rpcsvc/klm_prot.x: Likewise.
32197         * sunrpc/rpcsvc/mount.x: Likewise.
32198         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
32199         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
32200         * sunrpc/rpcsvc/rex.x: Likewise.
32201         * sunrpc/rpcsvc/rstat.x: Likewise.
32202         * sunrpc/rpcsvc/rusers.x: Likewise.
32203         * sunrpc/rpcsvc/sm_inter.x: Likewise.
32204         * sunrpc/rpcsvc/spray.x: Likewise.
32205         * sunrpc/rpcsvc/yppasswd.x: Likewise.
32206         * sunrpc/rtime.c: Likewise.
32207         * sunrpc/svc.c: Likewise.
32208         * sunrpc/svc_auth.c: Likewise.
32209         * sunrpc/svc_authux.c: Likewise.
32210         * sunrpc/svc_raw.c: Likewise.
32211         * sunrpc/svc_run.c: Likewise.
32212         * sunrpc/svc_simple.c: Likewise.
32213         * sunrpc/svc_tcp.c: Likewise.
32214         * sunrpc/svc_udp.c: Likewise.
32215         * sunrpc/svc_unix.c: Likewise.
32216         * sunrpc/svcauth_des.c: Likewise.
32217         * sunrpc/xcrypt.c: Likewise.
32218         * sunrpc/xdr.c: Likewise.
32219         * sunrpc/xdr_array.c: Likewise.
32220         * sunrpc/xdr_float.c: Likewise.
32221         * sunrpc/xdr_mem.c: Likewise.
32222         * sunrpc/xdr_rec.c: Likewise.
32223         * sunrpc/xdr_ref.c: Likewise.
32224         * sunrpc/xdr_sizeof.c: Likewise.
32225         * sunrpc/xdr_stdio.c: Likewise.
32226
32227         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
32228         handling.
32229
32230 2010-08-19  Andreas Schwab  <schwab@redhat.com>
32231
32232         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
32233
32234 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
32235
32236         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
32237         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
32238         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
32239         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
32240         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
32241         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
32242         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
32243         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
32244         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
32245         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
32246         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
32247         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
32248         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
32249         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
32250
32251 2010-07-26  Anton Blanchard  <anton@samba.org>
32252
32253         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
32254         * malloc/arena.c (heap_trim): Likewise.
32255
32256 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
32257
32258         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
32259         here.  Not...
32260         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
32261         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
32262
32263 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
32264
32265         * sysdeps/i386/elf/Makefile: New file.
32266
32267 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
32268
32269         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
32270         from fanotify_init.
32271         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
32272         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
32273
32274 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
32275
32276         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
32277         of strncasecmp_l.
32278         * sysdeps/multiarch/strcmp.S: Likewise.
32279
32280 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
32281
32282         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
32283         strncase_l-nonascii.
32284         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
32285         Add strncase_l-ssse3.
32286         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
32287         * sysdeps/x86_64/strcmp.S: Likewise.
32288         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
32289         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
32290         * sysdeps/x86_64/strncase.S: New file.
32291         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
32292         * sysdeps/x86_64/strncase_l.S: New file.
32293         * string/Makefile (strop-tests): Add strncasecmp.
32294         * string/test-strncasecmp.c: New file.
32295
32296         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
32297         warning.
32298
32299         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
32300         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
32301
32302 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
32303
32304         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
32305
32306 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
32307
32308         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
32309         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
32310         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
32311
32312 2010-05-01  Alan Modra  <amodra@gmail.com>
32313
32314         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
32315         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
32316         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
32317         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
32318         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
32319         tidying.  Don't tail-call __sigjmp_save for static lib.
32320         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
32321         save location.
32322         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
32323         (CALL_MCOUNT): Add eh info, and nop after bl.
32324         (TAIL_CALL_SYSCALL_ERROR): New macro.
32325         (PSEUDO_RET): Use it.
32326         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
32327         Correct save location of integer regs and cr.
32328         (_dl_profile_resolve): Correct cr save location.  Delete nops
32329         after bl when SHARED.  Reduce cfi size a little by better
32330         placement of cfi directives.
32331         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
32332         make a stack frame.  Instead use parm save area as a temp.
32333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
32334         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
32335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
32336         Don't make a stack frame for parent, use parm save area.
32337         Increase child stack frame to 112 bytes.  Don't save unused reg,
32338         and adjust reg usage.  Set up cfi on error recovery and
32339         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
32340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
32341         (__makecontext): Add dummy nop after jump to exit.
32342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
32343         Use correct parm save area and cr save, reduce stack frame.
32344         Correct cfi for possible PSEUDO_RET frame setup.
32345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
32346         Branch to local label emitted by PSEUDO_RET rather than
32347         __syscall_error.
32348
32349 2010-08-12  Andreas Schwab  <schwab@redhat.com>
32350
32351         [BZ #11904]
32352         * locale/programs/locale.c (print_assignment): New function.
32353         (show_locale_vars): Use it.
32354
32355 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
32356
32357         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
32358         field.
32359         (struct statfs64): Likewise.
32360         (_STATFS_F_FLAGS): Define.
32361         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
32362         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32363         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
32364         (ST_VALID): Define locally.
32365         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
32366         __statvfs_getflags, use the provided value.
32367         * sysdeps/unix/sysv/linux/kernel-features.h: Define
32368         __ASSUME_STATFS_F_FLAGS.
32369
32370         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
32371
32372         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
32373         Add sys/fanotify.h.
32374         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
32375         fanotify_mask for GLIBC_2.13.
32376         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
32377         fanotify_init and fanotify_mark.
32378         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
32379         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
32380
32381         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
32382         Add prlimit.
32383         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
32384         prlimit64 for GLIBC_2.13.
32385         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
32386         prlimit64.
32387         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
32388         syscall.
32389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
32390         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
32391         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
32392         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
32393         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
32394         add prlimit alias.
32395         * sysdeps/unix/sysv/linux/prlimit.c: New file.
32396
32397         [BZ #11903]
32398         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
32399         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
32400
32401         * nss/Makefile: Add rules to build and run tst-nss-test1.
32402         * shlib-versions: Add entry for libnss_test1.
32403         * nss/nss_test1.c: New file.
32404         * nss/tst-nss-test1.c: New file.
32405
32406         * nss/nsswitch.c (__nss_database_custom): Define new variable.
32407         (__nss_configure_lookup): Set appropriate entry in
32408         __nss_configure_lookup to true.
32409         * nss/nsswitch.h: Define enum with indeces of databases in
32410         databases and __nss_database_custom arrays.  Declare
32411         __nss_database_custom.
32412         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
32413         to avoid using nscd when custom rules are installed.
32414         * nss/getXXbyYY_r.c: Likewise.
32415         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
32416
32417         * nss/nss_files/files-parse.c: Whitespace fixes.
32418
32419 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
32420
32421         [BZ #11883]
32422         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
32423         * posix/fnmatch_loop.c: Likewise.
32424
32425 2010-07-17  Andi Kleen  <ak@linux.intel.com>
32426
32427         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
32428         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
32429         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
32430         * Versions.def [GLIBC_2.13]: Add.
32431
32432 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
32433
32434         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32435         Also fail if tpwd after pwuid call is NULL.
32436
32437 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32438
32439         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
32440         when converting to ms.
32441
32442 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32443
32444         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
32445         EOPNOTSUPP errors with ENOTTY.
32446         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
32447         EOPNOTSUPP errors with ENOTTY.
32448
32449 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
32450
32451         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
32452         Add strcasecmp_l-ssse3.
32453         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
32454         strcasecmp.
32455         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
32456         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
32457         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
32458
32459 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
32460
32461         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
32462
32463         * string/Makefile (strop-tests): Add strcasecmp.
32464         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
32465         strcasecmp_l-nonascii.
32466         (gen-as-const-headers): Add locale-defines.sym.
32467         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
32468         * sysdeps/x86_64/strcasecmp.S: New file.
32469         * sysdeps/x86_64/strcasecmp_l.S: New file.
32470         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
32471         * sysdeps/x86_64/locale-defines.sym: New file.
32472         * string/test-strcasecmp.c: New file.
32473
32474         * string/test-strcasestr.c: Test both ends of the range of characters.
32475         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
32476
32477 2010-07-29  Roland McGrath  <roland@redhat.com>
32478
32479         [BZ #11856]
32480         * manual/locale.texi (Yes-or-No Questions): Fix example code.
32481
32482 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
32483
32484         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
32485         for ld.so.
32486
32487 2010-07-27  Andreas Schwab  <schwab@redhat.com>
32488
32489         * manual/memory.texi (Malloc Tunable Parameters): Document
32490         M_PERTURB.
32491
32492 2010-07-26  Roland McGrath  <roland@redhat.com>
32493
32494         [BZ #11840]
32495         * configure.in (-fgnu89-inline check): Set and substitute
32496         gnu89_inline, not libc_cv_gnu89_inline.
32497         * configure: Regenerated.
32498         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
32499
32500 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
32501
32502         * string/test-strnlen.c: New file.
32503         * string/Makefile (strop-tests): Add strnlen.
32504         * string/tester.c (test_strnlen): Add a few more test cases.
32505         * string/tst-strlen.c: Better error reporting.
32506
32507         * sysdeps/x86_64/strnlen.S: New file.
32508
32509 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
32510
32511         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
32512         lower-latency instructions.
32513
32514 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
32515
32516         * string/test-strcasestr.c: New file.
32517         * string/test-strstr.c: New file.
32518         * string/Makefile (strop-tests): Add strstr and strcasestr.
32519         * string/str-two-way.h: Don't undefine MAX.
32520         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
32521
32522 2010-07-21  Andreas Schwab  <schwab@redhat.com>
32523
32524         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32525         strcasestr-nonascii.
32526         (CFLAGS-strcasestr-nonascii.c): Define.
32527         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
32528         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
32529         Remove unused attribute.
32530
32531 2010-07-20  Roland McGrath  <roland@redhat.com>
32532
32533         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
32534         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
32535         ld.so.cache was broken.  With it, there is no way to disable dsocaps
32536         like LD_HWCAP_MASK can disable hwcaps.
32537
32538 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
32539
32540         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
32541
32542 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
32543
32544         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
32545         call in strcasestr.
32546         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
32547         __strcasestr_sse42_nonascii.
32548         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
32549         strcasestr-nonascii.c.
32550         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
32551
32552 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
32553
32554         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
32555         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
32556         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
32557         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
32558
32559 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
32560
32561         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
32562         fcntl.
32563
32564 2010-07-06  Andreas Schwab  <schwab@redhat.com>
32565
32566         [BZ #11577]
32567         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
32568         dl_signal_cerror.
32569
32570 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
32571
32572         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
32573         _PC_PIPE_BUF using F_GETPIPE_SZ.
32574
32575 2010-07-05  Roland McGrath  <roland@redhat.com>
32576
32577         * manual/arith.texi (Rounding Functions): Fix rint description
32578         implicit in round description.
32579
32580 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
32581
32582         * elf/Makefile: Fix linking for a few tests to make recent linker
32583         happy.
32584
32585 2010-06-30  Andreas Schwab  <schwab@redhat.com>
32586
32587         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
32588         $(common-objpfx)libc_nonshared.a.
32589
32590 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
32591
32592         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
32593         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
32594         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
32595         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
32596         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
32597         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
32598         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
32599         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
32600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
32601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
32602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
32603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
32604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
32605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
32606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
32607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
32608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
32609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
32610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
32611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
32612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
32613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
32614         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
32615         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
32616         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
32617         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
32618         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
32619         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
32620         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
32621         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
32622         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
32623         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
32624         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
32625         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
32626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
32627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
32628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
32629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
32630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
32631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
32632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
32633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
32634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
32635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
32636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
32637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
32638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
32639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
32640
32641 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
32642
32643         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
32644         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
32645         * string/memmove.c (memmove): Renamed to ...
32646         (MEMMOVE): ...this.  Default to memmove.
32647         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
32648         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
32649         (END_CHK): Define.
32650         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32651         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
32652         mempcpy-ssse3-back memmove-ssse3-back.
32653         * sysdeps/x86_64/multiarch/bcopy.S: New file .
32654         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
32655         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
32656         * sysdeps/x86_64/multiarch/memcpy.S: New file.
32657         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
32658         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
32659         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
32660         * sysdeps/x86_64/multiarch/memmove.c: New file.
32661         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
32662         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
32663         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
32664         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
32665         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
32666         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
32667         Define.
32668         (index_Fast_Copy_Backward): Define.
32669         (HAS_ARCH_FEATURE): Define.
32670         (HAS_FAST_REP_STRING): Define.
32671         (HAS_FAST_COPY_BACKWARD): Define.
32672
32673 2010-06-21  Andreas Schwab  <schwab@redhat.com>
32674
32675         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32676         Restore proper fallback handling.
32677
32678 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
32679
32680         [BZ #11701]
32681         * posix/group_member.c (__group_member): Correct checking loop.
32682
32683         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
32684         OOM in getpwuid_r correctly.  Return error number when the caller
32685         should return, otherwise -1.
32686         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
32687         call returning > 0 value.
32688         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
32689
32690 2010-06-07  Andreas Schwab  <schwab@redhat.com>
32691
32692         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
32693         libc_nonshared.a from targets in modules-names.
32694
32695 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
32696
32697         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
32698         requires it.
32699
32700 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
32701
32702         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
32703         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
32704         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
32705         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
32706
32707 2010-06-02  Andreas Schwab  <schwab@redhat.com>
32708
32709         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
32710
32711 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
32712
32713         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
32714         and F_GETPIPE_SZ.
32715         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32716         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32717         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32718         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32719         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32720         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
32721
32722 2010-06-14  Roland McGrath  <roland@redhat.com>
32723
32724         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
32725
32726 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
32727
32728         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
32729         __REDIRECT followed by __THROW.
32730         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
32731         * posix/getopt.h (getopt): Likewise.
32732
32733 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
32734
32735         * hurd/lookup-at.c (__file_name_lookup_at): Accept
32736         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
32737         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
32738         in AT_FLAGS.
32739         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
32740         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
32741
32742 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
32743
32744         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
32745
32746 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
32747
32748         [BZ #11640]
32749         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32750         Properly check family and model.
32751
32752 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
32753
32754         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
32755
32756 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
32757
32758         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
32759
32760 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
32761
32762         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
32763         symbol reference.
32764
32765 2010-05-19  Andreas Schwab  <schwab@redhat.com>
32766
32767         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
32768         symbol reference.
32769
32770 2010-05-21  Andreas Schwab  <schwab@redhat.com>
32771
32772         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
32773         and internal_recvmmsg.
32774         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
32775         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
32776         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
32777         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
32778
32779         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
32780         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
32781         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
32782
32783 2010-05-20  Andreas Schwab  <schwab@redhat.com>
32784
32785         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
32786
32787 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
32788
32789         POWER7 optimizations.
32790         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
32791         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
32792
32793 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
32794
32795         * version.h: Update for 2.13 development version.
32796
32797 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
32798
32799         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
32800         exceptions.  Return 0.
32801
32802 2010-05-07  Roland McGrath  <roland@redhat.com>
32803
32804         * elf/ldconfig.c (main): Add a const.
32805
32806 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
32807
32808         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
32809         (args_options): Add no-idn option.
32810         (ahosts_keys_int): Add idn_flags to ai_flags.
32811         (parse_option): Handle 'i' option to clear idn_flags.
32812
32813         * malloc/malloc.c (_int_free): Possible race in the most recently
32814         added check.  Only act on the data if no current modification
32815         happened.
32816
32817 See ChangeLog.17 for earlier changes.