Fix variable check in sparc clock frequency probing.
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
2
3         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
5
6 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7
8         [BZ #13973]
9         * locale/iso-639.def: Fix gl language name. Spotted by
10         Yaron Shahrabani.
11
12 2012-04-12  Roland McGrath  <roland@hack.frob.com>
13
14         [BZ #2074]
15         * libio/libio.h (__io_write_fn): Update comment.
16
17 2012-04-12  Petr Baudis  <pasky@ucw.cz>
18
19         [BZ #2074]
20         * stdio.texi (Hook Functions): The user provided writer function
21         is not allowed to return -1.
22
23 2012-04-11  David S. Miller  <davem@davemloft.net>
24
25         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26
27 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
28
29         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
30         Add a leading slash to rtkaio.
31
32 2012-04-11  Jim Meyering  <meyering@redhat.com>
33
34         [BZ #11959]
35         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
36         It is not necessarily an error to ignore fwrite's return
37         value.  One can reliably use ferror to test for errors after
38         the fact.
39
40 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
41
42         * bits/types.h (__snseconds_t): New type.
43         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
44
45         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
46         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
47         (__SNSECONDS_T_TYPE): Likewise.
48         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
49         (__SNSECONDS_T_TYPE): Likewise.
50         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
51         (__SNSECONDS_T_TYPE): Likewise.
52
53 2012-04-10  Andreas Jaeger  <aj@suse.de>
54
55         [BZ #2636]
56         * manual/time.texi (Processor Time): Return type of times is
57         elapsed real time since an arbitrary point in the past.
58         (CPU Time): Move CLK_TCK from here...
59         (Processor Time): ...to here.  Correct description.
60         * manual/conf.texi (Constants for Sysconf): Correct description of
61         _SC_CLK_TCK.
62
63 2012-04-10  David S. Miller  <davem@davemloft.net>
64
65         [BZ #13967]
66         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
67         where the is a gap between DT_REL(A) and DT_JMPREL.
68
69 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
70
71         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
72         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
73         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
74
75 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
76
77         * elf/dl-support.c (_dl_inhibit_cache): New variable.
78         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
79         (dl_main): Handle --inhibit-cache.
80         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
81         _dl_inhibit_cache.
82         * elf/dl-load.c (_dl_map_object): Use it.
83         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
84
85 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
86
87         [BZ #13872]
88         * sysdeps/i386/fpu/e_powl.S (p78): New object.
89         (__ieee754_powl): Saturate large exponents rather than testing for
90         overflow of y*log2(x).
91         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
92         * math/libm-test.inc (pow_test): Do not permit spurious overflow
93         exceptions.
94
95         [BZ #11521]
96         * math/s_ctan.c: Include <float.h>.
97         (__ctan): Avoid internal overflow or cancellation in calculating
98         denominator.
99         * math/s_ctanf.c: Likewise.
100         * math/s_ctanl.c: Likewise.
101         * math/s_ctanh.c: Likewise.
102         * math/s_ctanhf.c: Likewise.
103         * math/s_ctanhl.c: Likewise.
104         * math/libm-test.inc (ctan_test): Add more tests.
105         (ctanh_test): Likewise.
106         * sysdeps/i386/fpu/libm-test-ulps: Update.
107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
108
109 2012-04-09  Andreas Jaeger  <aj@suse.de>
110
111         [BZ #6894]
112         * manual/filesys.texi (Directory Entries): Mention that d_namlen
113         is an optional BSD extension.
114
115         [BZ #10254]
116         * manual/stdio.texi (Opening Streams): Document additional fopen
117         parameters.
118
119 2012-04-09  Roland McGrath  <roland@hack.frob.com>
120
121         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
122         %eax without telling the compiler.
123
124 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
125
126         [BZ # 13963]
127         * manual/install.texi: Use sourceware.org.
128
129 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
130
131         [BZ #13873]
132         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
133         (__ieee754_pow): Generate overflow and underflow using huge*huge
134         and tiny*tiny rather than just returning constant infinity or zero
135         for large exponents.
136         * math/libm-test.inc (pow_test): Require overflow exceptions for
137         applicable cases of large exponents.
138
139         [BZ #706]
140         * sysdeps/i386/fpu/e_pow.S (p10): New object.
141         (__ieee754_pow): Use iterative multiplication algorithm only for
142         integer exponents with absolute value below 1024.  Check for odd
143         integer exponents when using algorithm for real exponents.
144         * math/libm-test.inc (pow_test): Add more tests.
145         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
146
147 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
148
149         [BZ #13705]
150         * math/libm-test.inc (exp_test): Do not allow overflow exception
151         on underflow test.
152
153 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
154
155         [BZ #13705]
156         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
157         instead of __kernel_standard_f.
158
159 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
160
161         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
162         * sysdeps/x86_64/memset_chk.S: Likewise.
163
164 2012-04-08  Andreas Jaeger  <aj@suse.de>
165
166         [BZ #10153]
167         * manual/startup.texi (Environment Access): Describe return value
168         for putenv and setenv.
169
170         [BZ #6895]
171         * manual/filesys.texi (Directory Entries): Add description for
172         DT_LNK.
173
174         [BZ #6890]
175         * manual/filesys.texi (Directory Entries): Clarify that it's file
176         system not operating system in the description of DT_UNKNOWN.
177
178         [BZ #6578]
179         * manual/syslog.texi (closelog): Fix reference, it's openlog.
180
181 2012-04-08  Stephen Compall  <s11@member.fsf.org>
182
183         [BZ #6649]
184         * manual/llio.texi (Opening and Closing Files): Add cross
185         reference to explain mode argument.
186
187 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
188
189         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
190         * sysdeps/x86_64/memset_chk.S: Likewise.
191
192 2012-04-07  David S. Miller  <davem@davemloft.net>
193
194         * elf/elf.h (R_SPARC_WDISP10): Define.
195         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
196         R_SPARC_SIZE32.
197         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
198         R_SPARC_SIZE64 and R_SPARC_H34.
199
200 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
201
202         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
203         conditions and remove no longer applicable assertion.
204
205 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
206
207         * bits/byteswap.h: Include <features.h>.
208         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
209         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
210
211 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
212
213         * bits/byteswap.h (__bswap_16): Removed.
214         Include <bits/byteswap-16.h> to get __bswap_16.
215         * sysdeps/i386/bits/byteswap.h: Likewise.
216         * sysdeps/s390/bits/byteswap.h: Likewise.
217         * sysdeps/x86_64/bits/byteswap.h: Likewise.
218         * bits/byteswap-16.h: New file.
219         * sysdeps/i386/bits/byteswap-16.h: Likewise.
220         * sysdeps/s390/bits/byteswap-16.h: Likewise.
221         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
222         * string/Makefile (headers): Add bits/byteswap-16.h.
223
224 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
225
226         [BZ #13895]
227         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
228         extra indirection.
229         * nss/Makefile (tests-static, tests): Add tst-nss-static.
230         * nss/tst-nss-static.c: New.
231
232 2012-04-06  Robert Millan  <rmh@gnu.org>
233
234         [BZ #6486]
235         * manual/llio.texi (File Position Primitive): lseek
236         refers to WHENCE when it really means OFFSET.
237
238 2012-04-06  Andreas Jaeger  <aj@suse.de>
239
240         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
241         strncmp declarations.
242
243         * abilist/libc.abilist: Add __poll and __ppoll.
244
245 2012-04-05  David S. Miller  <davem@davemloft.net>
246
247         * scripts/check-local-headers.sh: Accept a host triplet in the
248         path matched by the exclude regexp.
249
250         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
251         definition.
252         * sysdeps/powerpc/powerpc32/dl-machine.h
253         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
254         * sysdeps/s390/s390-32/dl-machine.h
255         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
256         * sysdeps/sparc/sparc32/dl-machine.h
257         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
258         * sysdeps/sparc/sparc64/dl-machine.h
259         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
260
261         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
262         lazy binding.
263         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
264         undefined symbol errors.
265
266         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
267         DT_NEEDED entries.
268
269 2012-04-05  Michael Matz  <matz@suse.de>
270
271         [BZ #13592]
272         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
273
274 2012-04-05  Andreas Jaeger  <aj@suse.de>
275
276         [BZ #13908]
277         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
278         comment.
279
280 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
281
282         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
283         which ROUND is no valid rounding mode.
284
285 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
286
287         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
288         read again.
289         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
290
291 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
292
293         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
294         an exception using FPU order intentionally.
295
296 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
297
298         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
299         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
300         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
301         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
302
303 2012-04-05  Simon Josefsson  <simon@josefsson.org>
304
305         [BZ #12340]
306         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
307         EINVAL when BUFLEN is too smal.
308
309 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
310
311         [BZ #13553]
312         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
313         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
314
315 2012-04-03  Andreas Jaeger  <aj@suse.de>
316
317         [BZ #13938]
318         * manual/setjmp.texi (System V contexts): Fix sentence.
319
320         [BZ #13926]
321         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
322         New macro for this case.
323         [!__GNUC__] (__bswap_64): New inline function for this case.
324         * sysdeps/x86_64/bits/byteswap.h: Likewise.
325         * bits/byteswap.h: Likewise.
326         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
327         ull, guard with __GLIBC_HAVE_LONG_LONG.
328
329         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
330         __GLIBC_HAVE_LONG_LONG.
331
332         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
333         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
334
335 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
336
337         [BZ #13691]
338         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
339         inptr and inend, rather than using last_ch.
340
341 2012-04-02  David S. Miller  <davem@davemloft.net>
342
343         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
344         * stdio-common/printf-parse.h (read_int): Change return type to
345         'int', return -1 on INT_MAX overflow.
346         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
347         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
348         overflows INT_MAX.  Check for overflow of in-format-string precision
349         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
350         SIZE_MAX not INT_MAX for integer overflow test.
351         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
352         skip the construct in the format string but do not record anything.
353         * stdio-common/bug22.c: Adjust to test both width/prevision
354         INT_MAX overflow as well as total length INT_MAX overflow.  Check
355         explicitly for proper errno values.
356
357 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
358
359         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
360         CHAR_MAX.
361         * string/test-strcmp.c [! WIDE]: Likewise.
362         * time/tst-mktime2.c: Likewise for INT_MAX.
363         * string/test-string.h: #include <sys/param.h> for MIN.
364
365         * csu/init-first.c (__libc_init_first): Call __ctype_init.
366         * sysdeps/i386/init-first.c (init): Likewise.
367         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
368         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
369         * sysdeps/sh/init-first.c (init): Likewise.
370
371 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
372
373         * po/ru.po: Update from translation team.
374         * po/vi.po: Likewise.
375
376 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
377
378         * resolv/nss_dns/dns-host.c: Merge copyright years.
379
380 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
381
382         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
383         Optimize memcpy with prefetch if
384         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
385         src, dst pointers have unequal 16 byte alignments.
386
387 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
388
389         [BZ #13928]
390         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
391         from a CNAME entry and return the minimum ttl for the query.
392         (gaih_getanswer_slice): Likewise.
393
394 2012-03-30  Jeff Law  <law@redhat.com>
395
396         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
397         due to long keys.
398         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
399         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
400
401         * resolv/nss_dns/dns-host.c: Update copyright year.
402
403 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
404
405         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
406         requests to save a system call.  Fix check that all bytes are sent.
407
408         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
409         comments for sendmmsg.
410
411 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
412
413         [BZ #13691]
414         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
415         with only 1 character between 0x0041 and 0x01b0.
416         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
417         * wcsmbs/tst-mbsnrtowcs.c: New file.
418
419 2012-03-29  David S. Miller  <davem@davemloft.net>
420
421         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
422         small copies by hand.
423
424 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
425
426         [BZ #13761]
427         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
428         _nss_compat_initgroups_dyn): Fall back to malloc/free
429         for large group memberships.
430
431 2012-03-28  David S. Miller  <davem@davemloft.net>
432
433         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
434         that branches into memcpy.
435         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
436         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
437         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
438         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
439         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
440         bits.
441         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
442         implementation too.
443         * sysdeps/sparc/mempcpy.S: New file.
444
445         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
446         the IFUNC routine in the libc case.
447         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
448
449         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
450         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
451         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
452         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
453         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
454         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
455         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
456         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
457
458         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
459         loop to 256 bytes instead of 64 bytes and fix test signedness.
460
461         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
462         * sysdeps/sparc/sparc32/Makefile: rather than here...
463         * sysdeps/sparc/sparc64/Makefile: and here.
464
465 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
466
467         * malloc/mallocbug.c: Avoid warnings about unused variables.
468
469 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
470
471         [BZ #13760]
472         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
473         in the right place. Discard and retry query if response is
474         larger than input buffer size.
475
476 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
477
478         [BZ #369]
479         [BZ #2678]
480         [BZ #3866]
481         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
482         x for large integer exponent.
483         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
484         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
485         sign of result as needed afterwards.
486         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
487         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
488         result for underflowing pow the same as for overflow.
489         (__kernel_standard_l): Handle powl overflow and underflow here
490         rather than calling __kernel_standard.
491         * math/libm-test.inc (pow_test): Add more tests.
492
493         [BZ #3868]
494         [BZ #13879]
495         [BZ #13910]
496         [BZ #13911]
497         [BZ #13912]
498         [BZ #13913]
499         [BZ #13915]
500         [BZ #13916]
501         [BZ #13917]
502         [BZ #13918]
503         [BZ #13919]
504         [BZ #13920]
505         [BZ #13921]
506         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
507         * sysdeps/ieee754/k_standard.c: Include <float.h>.
508         (__kernel_standard_l): New function.
509         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
510         __kernel_standard.
511         * math/w_acosl.c (__acosl): Likewise.
512         * math/w_asinl.c (__asinl): Likewise.
513         * math/w_atan2l.c (__atan2l): Likewise.
514         * math/w_atanhl.c (__atanhl): Likewise.
515         * math/w_coshl.c (__coshl): Likewise.
516         * math/w_exp10l.c (__exp10l): Likewise.
517         * math/w_exp2l.c (__exp2l): Likewise.
518         * math/w_fmodl.c (__fmodl): Likewise.
519         * math/w_hypotl.c (__hypotl): Likewise.
520         * math/w_j0l.c (__j0l, __y0l): Likewise.
521         * math/w_j1l.c (__j1l, __y1l): Likewise.
522         * math/w_jnl.c (__jnl, __ynl): Likewise.
523         * math/w_lgammal.c (__lgammal): Likewise.
524         * math/w_log10l.c (__log10l): Likewise.
525         * math/w_log2l.c (__log2l): Likewise.
526         * math/w_logl.c (__logl): Likewise.
527         * math/w_powl.c (__powl): Likewise.
528         * math/w_remainderl.c (__remainderl): Likewise.
529         * math/w_scalbl.c (sysv_scalbl): Likewise.
530         * math/w_sinhl.c (__sinhl): Likewise.
531         * math/w_sqrtl.c (__sqrtl): Likewise.
532         * math/w_tgammal.c (__tgammal): Likewise.
533         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
534         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
535         * math/libm-test.inc (acos_test): Add more tests.
536         (acosh_test): Likewise.
537         (asin_test): Likewise.
538         (atanh_test): Likewise.
539         (exp_test): Likewise.
540         (exp10_test): Likewise.
541         (exp2_test): Likewise.
542         (expm1_test): Likewise.
543         (lgamma_test): Likewise.
544         (log_test): Likewise.
545         (log10_test): Likewise.
546         (log1p_test): Likewise.
547         (log2_test): Likewise.
548         (pow_test): Do not allow some spurious overflow exceptions.
549         (sqrt_test): Add more tests.
550         (tgamma_test): Likewise.
551         (y0_test): Likewise.
552         (y1_test): Likewise.
553         (yn_test): Likewise.
554
555 2012-03-27  Anton Blanchard  <anton@samba.org>
556
557         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
558         MAP_HUGETLB.
559         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
560         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
561         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
562
563 2012-03-27  David S. Miller  <davem@davemloft.net>
564
565         * conform/Makefile: Run run-conformtest.sh using $(BASH).
566
567         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
568         have-as-vis3 check.
569
570 2012-03-27  Andreas Jaeger  <aj@suse.de>
571
572         * sysdeps/x86_64/elf/configure.in: Moved to ...
573         * sysdeps/x86_64/configure.in: ... here.
574         * sysdeps/x86_64/elf/start.S: Moved to ...
575         * sysdeps/x86_64/start.S: ... here.
576         * sysdeps/x86_64/elf/configure: Delete.
577
578         * sysdeps/x86_64/configure.in: Merge contents from
579         sysdeps/i386/configure.in (without i686 check).
580
581         * sysdeps/i386/elf/Versions: Merge into ...
582         * sysdeps/i386/Versions: ... this.
583         * sysdeps/i386/elf/Versions: Delete file.
584         * sysdeps/i386/elf/start.S: Moved to ...
585         * sysdeps/i386/start.S: ...here.
586         * sysdeps/i386/elf/configure.in: Merge into...
587         * sysdeps/i386/configure.in: ...here.
588         * sysdeps/i386/elf/configure.in: Delete file.
589         * sysdeps/i386/elf/configure: Delete file.
590
591         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
592         * debug/backtracesyms.c: ... here.
593         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
594         * debug/backtracesymsfd.c: ... here.
595         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
596         * sysdeps/generic/ifunc-sel.h: ... here.
597
598         * sysdeps/unix/i386/start.c: Delete file.
599         * sysdeps/unix/sparc/start.c: Delete file.
600         * sysdeps/unix/start.c: Delete file.
601
602         * sysdeps/sh/elf/configure.in: Moved to ...
603         * sysdeps/sh/configure.in: ... here.
604         * sysdeps/sh/elf/start.S: Moved to ...
605         * sysdeps/sh/start.S: ... here.
606         * sysdeps/sh/elf/configure: Delete file.
607
608         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
609         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
610         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
611         * sysdeps/powerpc/powerpc64/entry.h: ... here.
612         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
613         * sysdeps/powerpc/powerpc64/start.S: here.
614         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
615         * sysdeps/powerpc/powerpc64/Makefile: ... this.
616         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
617         * sysdeps/powerpc/powerpc64/configure.in: ... this.
618         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
619
620         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
621         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
622         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
623         * sysdeps/powerpc/powerpc32/start.S: ... here.
624         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
625         * sysdeps/powerpc/powerpc32/configure.in: ... this.
626         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
627
628         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
629         * sysdeps/powerpc/ifunc-sel.h: ... here.
630         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
631         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
632
633         * sysdeps/sparc/elf/configure.in: Moved to ...
634         * sysdeps/sparc/configure.in: ... here.
635         * sysdeps/sparc/elf/configure: Delete file.
636         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
637         * sysdeps/sparc/sparc32/start.S: ... here.
638         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
639         * sysdeps/sparc/sparc64/start.S: ... here.
640         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
641         * sysdeps/sparc/sparc32/Makefile: ... this.
642         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
643         * sysdeps/sparc/sparc64/Makefile: ... this.
644
645         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
646         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
647         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
648         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
649         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
650         * sysdeps/s390/s390-32/setjmp.S: ... here.
651         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
652         * sysdeps/s390/s390-32/configure.in: ... here.
653         * sysdeps/s390/s390-32/elf/configure: Delete file.
654         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
655         * sysdeps/s390/s390-32/start.S: ... here.
656
657         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
658         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
659         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
660         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
661         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
662         * sysdeps/s390/s390-64/setjmp.S: ... here.
663         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
664         * sysdeps/s390/s390-64/configure.in: ... here
665         * sysdeps/s390/s390-64/elf/configure: Delete file.
666         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
667         * sysdeps/s390/s390-64/start.S: ... here.
668         * sysdeps/s390/s390-64/elf/configure: Delete.
669
670         * configure.in: Remove support for elf directories in sysdeps.
671
672         * configure: Regenerated.
673         * sysdeps/i386/configure: Regenerated.
674         * sysdeps/powerpc/powerpc32/configure: Regenerated.
675         * sysdeps/powerpc/powerpc64/configure: Regenerated.
676         * sysdeps/s390/s390-32/configure: Regenerated.
677         * sysdeps/s390/s390-64/configure: Regenerated.
678         * sysdeps/sh/configure: Regenerated.
679         * sysdeps/sparc/configure: Regenerated.
680         * sysdeps/x86_64/configure: Regenerated.
681
682 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
683
684         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
685
686         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
687         denormal result into account.
688
689 2012-03-25  Roland McGrath  <roland@hack.frob.com>
690
691         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
692         Reported by Allan McRae <allan@archlinux.org>.
693
694 2012-03-23  Jeff Law  <law@redhat.com>
695
696         * nss/getnssent.c (__nss_getent): Fix typo.
697
698 2012-03-23  David S. Miller  <davem@davemloft.net>
699
700         * sysdeps/sparc/fpu/libm-test-ulps: Update.
701
702 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
703
704         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
705         to pad to uint64_t for each field.
706         (dl_tls_index): Replace unsigned long with uint64_t.
707
708 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
709         Paul Pluzhnikov  <ppluzhnikov@google.com>
710
711         [BZ #6528]
712         * grp/Makefile (otherlibs): Don't set it.
713         * inet/Makefile (otherlibs): Likewise.
714         * login/Makefile (otherlibs): Likewise.
715         * nscd/Makefile (otherlibs): Likewise.
716         * posix/Makefile (otherlibs): Likewise.
717         * pwd/Makefile (otherlibs): Likewise.
718         * rt/Makefile (otherlibs): Likewise.
719         * sunrpc/Makefile (otherlibs): Likewise.
720         * nss/Makefile (otherlibs): Likewise.
721         Add libnss_files to routines and static-only-routines.
722         ($(objpfx)getent): Remove rule.
723         * resolv/Makefile: Add libnss_dns and libresolv to routines and
724         static-only-routines.
725
726 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
727
728         [BZ #13892]
729         * math/s_cexp.c: Include <float.h>.
730         (__cexp): Handle exp result overflowing not necessarily
731         overflowing both real and imaginary parts of result.
732         * math/s_cexpf.c: Likewise.
733         * math/s_cexpl.c: Likewise.
734         * math/libm-test.inc (cexp_test): Add more tests.
735         * sysdeps/i386/fpu/libm-test-ulps: Update.
736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
737
738 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
739
740         * include/link.h (ELFW): New macro.
741         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
742         Replace ELF64_R_TYPE with ELFW(R_TYPE).
743
744 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
745
746         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
747         with uint64_t.
748
749 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
750
751         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
752         declaration.
753         (struct La_x32_retval): Likewise.
754
755 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
756
757         * sysdeps/x86_64/preconfigure.in: New file.
758         * sysdeps/x86_64/preconfigure: New generated file.
759
760 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
761
762         [BZ #13824]
763         * math/e_exp2l.c: Include <float.h>.
764         (__ieee754_exp2l): Handle overflow and underflow cases
765         separately.  Only pass fractional part of argument to
766         __ieee754_expl.
767         * math/libm-test.inc (exp2_test): Add more tests.
768
769         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
770         negating x to take absolute value.
771         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
772         Likewise.
773         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
774         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
775         Likewise.
776         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
777         computing low part if x was negated.
778         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
779
780 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
781
782         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
783         la_x32_gnu_pltexit.
784         (pltexit): Cast int_retval to ptrdiff_t.
785         * elf/tst-auditmod3b.c: Likewise.
786         * elf/tst-auditmod4b.c: Likewise.
787         * elf/tst-auditmod5b.c: Likewise.
788         * elf/tst-auditmod6b.c: Likewise.
789         * elf/tst-auditmod6c.c: Likewise.
790         * elf/tst-auditmod7b.c: Likewise.
791
792         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
793         and x32_gnu_pltexit.
794
795         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
796         __ELF_NATIVE_CLASS.
797         (La_x32_regs): New macro.
798         (La_x32_retval): Likewise.
799         (la_x32_gnu_pltenter): New function prototype.
800         (la_x32_gnu_pltexit): Likewise.
801
802 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
803
804         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
805         exponent.
806
807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
808
809         * configure.in (libc_cv_cc_nofma): Check for option to disable
810         generation of FMA instructions.
811         * configure: Regenerate.
812         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
813         * sysdeps/ieee754/dbl-64/Makefile: New file.
814         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
815         Remove brandred-fma4.
816         (CFLAGS-brandred-fma4.c): Remove.
817         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
818         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
819         define.
820         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
821         define.
822
823 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
824
825         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
826         LLONG_MAX != LONG_MAX.
827         (_itoa_word): Use _ITOA_WORD_TYPE on value.
828         (_fitoa_word): Likewise.
829         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
830         LLONG_MAX != LONG_MAX.
831         * stdio-common/_itowa.h: Include <_itoa.h>.
832         (_itowa_word): Use _ITOA_WORD_TYPE on value.
833         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
834         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
835         only if not defined.
836         (_ITOA_WORD_TYPE): Likewise.
837         (_itoa_word): Use _ITOA_WORD_TYPE on value.
838         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
839
840 2012-03-21  David S. Miller  <davem@davemloft.net>
841
842         * sysdeps/sparc/fpu/libm-test-ulps: Update.
843
844 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
845
846         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
847         of x86_64 when setting libc_cv_slibdir, libdir and
848         libc_cv_localedir.
849         * sysdeps/unix/sysv/linux/configure: Regenerated.
850
851 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
852
853         * manual/lang.texi (Old Varargs): Remove section.
854         (How Variadic): Update menu.
855         (va_start): Do not mention varargs.h.
856
857 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
858             Joseph Myers  <joseph@codesourcery.com>
859
860         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
861         link test.
862         * configure: Regenerated.
863
864 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
865
866         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
867         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
868         conformtest.pl
869
870 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
871
872         * NOTES: Remove.
873         * Makefile (files-for-dist): Remove NOTES.
874         (NOTES): Remove rule.
875         * README: Don't refer to NOTES.
876         * manual/creature.texi: Don't include macros.texi.
877         * manual/intro.texi (creature.texi): Remove comment referring to
878         NOTES.
879
880         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
881         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
882         * configure: Regenerated.
883         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
884         LIBC_TRY_CC_OPTION.
885         (libc_cv_as_i686): Likewise.
886         (libc_cv_cc_avx): Likewise.
887         (libc_cv_cc_sse2avx): Likewise.
888         (libc_cv_cc_fma4): Likewise.
889         (libc_cv_cc_novzeroupper): Likewise.
890         * sysdeps/i386/configure: Regenerated.
891
892         [BZ #13883]
893         * sysdeps/i386/fpu/s_cexp.S: Remove.
894         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
895         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
896         * math/libm-test.inc (cexp_test): Add more tests.
897         * sysdeps/i386/fpu/libm-test-ulps: Update.
898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
899
900 2012-03-21  Allan McRae  <allan@archlinux.org>
901
902         * timezone/Makefile: Do not install iso3166.tab and zone.tab
903
904 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
905
906         [BZ #13871]
907         * math/w_exp2.c: Do not include <float.h>.
908         (o_threshold, u_threshold): Remove.
909         (__exp2): Calculate result before checking finiteness and calling
910         __kernel_standard.
911         * math/w_exp2f.c: Likewise.
912         * math/w_exp2l.c: Likewise.
913         * math/libm-test.inc (exp2_test): Require overflow exception for
914         1e6 input.
915
916         [BZ #3866]
917         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
918         range of signed 64-bit integers before using fistpll.  Remove
919         checks for whether integers fit in mantissa bits.
920         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
921         the range of signed 32-bit integers before using fistpl.  Remove
922         checks for whether integers fit in mantissa bits.
923         * sysdeps/i386/fpu/e_powl.S (p64): New object.
924         (__ieee754_powl): Test for y outside the range of signed 64-bit
925         integers before using fistpll.  Reduce 64-bit values to 63-bit
926         ones as needed.
927         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
928         divide-by-zero is raised for zero to large negative powers.
929         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
930         (__ieee754_powl): Test for y outside the range of signed 64-bit
931         integers before using fistpll.  Reduce 64-bit values to 63-bit
932         ones as needed.
933         * math/libm-test.inc (pow_test): Add more tests.
934
935 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
936
937         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
938         <stdio-common/_itoa.h>.
939         * debug/segfault.c: Likewise.
940         * elf/dl-cache.c: Likewise.
941         * elf/dl-minimal.c: Likewise.
942         * elf/dl-misc.c: Likewise.
943         * elf/dl-sysdep.c: Likewise.
944         * elf/dl-version.c: Likewise.
945         * elf/rtld.c: Likewise.
946         * hurd/hurdsock.c: Likewise.
947         * hurd/lookup-retry.c: Likewise.
948         * malloc/malloc.c: Likewise.
949         * malloc/mtrace.c: Likewise.
950         * nscd/nscd_getgr_r.c: Likewise.
951         * nscd/nscd_getpw_r.c: Likewise.
952         * nscd/nscd_getserv_r.c: Likewise.
953         * posix/getopt_init.c: Likewise.
954         * posix/wordexp.c: Likewise.
955         * stdio-common/_itoa.c: Likewise.
956         * stdio-common/printf_fphex.c: Likewise.
957         * stdio-common/vfprintf.c: Likewise.
958         * string/_strerror.c: Likewise.
959         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
960         * sysdeps/i386/i686/hp-timing.h: Likewise.
961         * sysdeps/mach/_strerror.c: Likewise.
962         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
963         * sysdeps/mach/hurd/sethostid.c: Likewise.
964         * sysdeps/mach/hurd/xmknodat.c: Likewise.
965         * sysdeps/mach/xpg-strerror.c: Likewise.
966         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
967         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
968         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
969         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
970         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
971         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
972         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
973         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
974         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
975         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
976         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
977         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
978         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
979         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
980         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
981         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
982         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
983         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
984         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
985         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
986         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
987
988         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
989
990         * stdio-common/_itoa.h: Moved to ...
991         * sysdeps/generic/_itoa.h: Here.
992
993         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
994
995         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
996         instead of "_itoa.h" and "_itowa.h".
997         * stdio-common/vfprintf.: Likewise.
998
999 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1000
1001         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1002         <bits/wordsize.h>.
1003         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1004         (__signbit): Likwise.
1005         (llrintf): Likwise.
1006         (llrint): Likwise.
1007
1008 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1009
1010         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1011         __WORDSIZE != 64.
1012
1013 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1014
1015         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1016         OVERFLOW_EXCEPTION_OK.
1017         * math/libm-test.inc ("Philosophy"): Update comment about
1018         exception testing.
1019         (OVERFLOW_EXCEPTION): Define.
1020         (OVERFLOW_EXCEPTION_OK): Likewise.
1021         (INVALID_EXCEPTION_OK): Renumber.
1022         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1023         (IGNORE_ZERO_INF_SIGN): Likewise.
1024         (test_exceptions): Handle FE_OVERFLOW.
1025         (exp10_test): Expect overflow exceptions.
1026         (exp2_test): Likewise.
1027         (expm1_test): Likewise.
1028         (nextafter_test): Likewise.
1029         (pow_test): Likewise.
1030         (scalbn_test): Likewise.
1031         (scalbln_test): Likewise.
1032
1033 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1034
1035         * sysdeps/x86_64/bits/atomic.h
1036         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1037         64bit integer.
1038         (atomic_exchange_acq): Likewise.
1039         (__arch_exchange_and_add_body): Likewise.
1040         (__arch_add_body): Likewise.
1041         (atomic_add_negative): Likewise.
1042         (atomic_add_zero): Likewise.
1043
1044 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1045
1046         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1047         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1048
1049 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1050
1051         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1052         Check __x86_64__ instead of __WORDSIZE.
1053
1054 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1055
1056         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1057
1058 2012-03-19  David S. Miller  <davem@davemloft.net>
1059
1060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1061
1062         * sysdeps/sparc/fpu/fenv_private.h: New file.
1063         * sysdeps/sparc/fpu/math_private.h: Use it.
1064         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1065         Remove.
1066         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1067         (libc_feholdexcept_setroundl): Remove.
1068         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1069         Remove.
1070         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1071         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1072
1073 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1074
1075         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1076         int64_t instead of long int.
1077         (INSERT_WORDS64): Likwise.
1078
1079 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1080
1081         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1082         _Unwind_GetCFA return to _Unwind_Ptr first.
1083
1084 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1085
1086         [BZ #13629]
1087         * math/s_clog.c: Include <float.h>.
1088         (__clog): Scale large or subnormal inputs.
1089         * math/s_clogf.c: Likewise.
1090         * math/s_clogl.c: Likewise.
1091         * math/s_clog10.c: Include <float.h>.
1092         (M_LOG10_2): Define.
1093         (__clog10): Scale large or subnormal inputs.
1094         * math/s_clog10f.c: Likewise.
1095         * math/s_clog10l.c: Likewise.
1096         * math/libm-test.inc (clog_test): Add more tests.
1097         (clog10_test): Likewise.
1098         * sysdeps/i386/fpu/libm-test-ulps: Update.
1099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1100
1101         [BZ #11451]
1102         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1103         x and y.
1104         * math/libm-test.inc (atan2_test): Add another test.
1105
1106         * Makerules (common-objdir-compile): Remove.
1107         * sysdeps/unix/Makefile (config-generated): Do not add
1108         $(unix-generated) to variable.
1109         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1110         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1111         Remove rule.
1112         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1113         Likewise.
1114         [generic bits/local_lim.h] (before-compile): Do not append to
1115         variable.
1116         [generic bits/local_lim.h] (common-generated): Likewise.
1117         [generic sys/param.h] (before-compile): Do not append to variable.
1118         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1119         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1120         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1121         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1122         include.
1123         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1124         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1125         [generic sys/param.h] ($(addprefix
1126         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1127         [generic sys/param.h] (common-generated): Do not append to
1128         variable.
1129         [generic sys/param.h] (sysdep_headers): Likewise.
1130         [generic bits/errno.h] (before-compile): Do not append to
1131         variable.
1132         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1133         rule.
1134         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1135         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1136         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1137         [generic bits/errno.h] (common-generated): Do not append to
1138         variable.
1139         [generic bits/ioctls.h] (before-compile): Do not append to
1140         variable.
1141         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1142         rule.
1143         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1144         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1145         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1146         rule.
1147         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1148         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1149         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1150         [generic bits/ioctls.h] (common-generated): Do not append to
1151         variable.
1152         [generic sys/syscall.h] (syscall.h): Remove variable.
1153         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1154         rule.
1155         [generic sys/syscall.h] (before-compile): Do not append to
1156         variable.
1157         [generic sys/syscall.h] (common-generated): Likewise.
1158         * sysdeps/unix/errnos-tmpl.c: Remove file.
1159         * sysdeps/unix/errnos.awk: Likewise.
1160         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1161         * sysdeps/unix/ioctls.awk: Likewise.
1162         * sysdeps/unix/mk-local_lim.c: Likewise.
1163         * sysdeps/unix/snarf-ioctls: Likewise.
1164
1165 2012-03-19  Richard Henderson  <rth@twiddle.net>
1166
1167         * sysdeps/i386/fpu/fenv_private.h: New file.
1168         * sysdeps/i386/fpu/math_private.h: Use it.
1169         (math_opt_barrier, math_force_eval): Remove.
1170         (libc_feholdexcept_setround_53bit): Remove.
1171         (libc_feupdateenv_53bit): Remove.
1172         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1173         (math_opt_barrier, math_force_eval): Remove.
1174         (libc_feholdexcept): Remove.
1175         (libc_feholdexcept_setround): Remove.
1176         (libc_fetestexcept, libc_fesetenv): Remove.
1177         (libc_feupdateenv_test): Remove.
1178         (libc_feupdateenv, libc_feholdsetround): Remove.
1179         (libc_feresetround): Remove.
1180
1181         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1182         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1183
1184         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1185         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1186         (libc_feupdateenv_testl): New.
1187         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1188         (libc_feupdateenv_testf): New.
1189         (libc_feupdateenv): Use libc_feupdateenv_test.
1190         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1191         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1192
1193         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1194         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1195         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1196         (libc_feresetround_noex): New.
1197         (libc_feresetround_noexf): New.
1198         (libc_feresetround_noexl): New.
1199         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1200         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1201         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1202         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1203         SET_RESTORE_ROUND.
1204         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1205         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1206         (__cos): Likewise.
1207         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1208         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1209         SET_RESTORE_ROUND_NOEX.
1210         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1211         SET_RESTORE_ROUND_NOEXF.
1212         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1213         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1214         (libc_feholdsetroundf): New.
1215         (libc_feresetround, libc_feresetroundf): New.
1216
1217         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1218         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1219         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1220
1221         * sysdeps/generic/math_private.h: Include <fenv.h>.
1222         (default_libc_feholdexcept): New.
1223         (default_libc_feholdexcept_setround): New.
1224         (default_libc_fesetenv, default_libc_feupdateenv): New.
1225         (libc_feholdexcept): Only define if undefined.
1226         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1227         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1228         (libc_feholdexcept_setroundl): Likewise.
1229         (libc_feholdexcept_setround_53bit): Likewise.
1230         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1231         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1232         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1233         (libc_feupdateenv_53bit): Likewise.
1234         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1235         (libc_feholdexcept): Convert from macro to inline function.
1236         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1237         (libc_fesetenv, libc_feupdateenv): Likewise.
1238
1239         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1240         not previously defined.
1241         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1242         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1243         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1244         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1245         * sysdeps/ieee754/flt-32/math_private.h: New file.
1246         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1247         math_private.h below SET_FLOAT_WORD.
1248         (__isnan, __isinf_ns, __finite): Remove.
1249         (__isnanf, __isinf_nsf, __finitef): Remove.
1250
1251 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1252
1253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1254
1255 2012-03-17  David S. Miller  <davem@davemloft.net>
1256
1257         [BZ #6471]
1258         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1259         for 2.16.
1260
1261 2012-03-16  David S. Miller  <davem@davemloft.net>
1262
1263         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1264         warnings.
1265
1266         [BZ #6471]
1267         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1268         properly.
1269         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1270         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1271         sysdep_routines when subdir is sysvipc.
1272         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1273         __getshmlba helper.
1274
1275         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1276
1277 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1278
1279         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1280         [__LP64__].
1281
1282 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1283
1284         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1285         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1286         (__lround): Renamed to ...
1287         (__llround): This.  Replace long int with long long int.
1288         Define lround functions as aliases of llround functions.
1289         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1290
1291 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1292
1293         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1294         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1295         adresses to uintptr_t.  Replace "long int" and "unsigned long
1296         int" with "greg_t" on va_arg.
1297
1298 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1299
1300         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1301         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1302
1303         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1304         Move e_machine check before EI_CLASS check.  Handle x32
1305         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1306         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1307         SKIP_EM_IA_64 and include
1308         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1309
1310         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1311         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1312         (add_system_dir): New macro.
1313
1314         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1315         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1316
1317 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1318
1319         [BZ #2551]
1320         [BZ #2552]
1321         [BZ #2553]
1322         [BZ #2554]
1323         [BZ #2562]
1324         [BZ #2563]
1325         [BZ #2565]
1326         [BZ #2566]
1327         [BZ #2576]
1328         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1329         (y0): Likewise.
1330         * math/w_j0f.c (j0f): Likewise.
1331         (y0f): Likewise.
1332         * math/w_j0l.c (__j0l): Likewise.
1333         (__y0l): Likewise.
1334         * math/w_j1.c (j1): Likewise.
1335         (y1): Likewise.
1336         * math/w_j1f.c (j1f): Likewise.
1337         (y1f): Likewise.
1338         * math/w_j1l.c (__j1l): Likewise.
1339         (__y1l): Likewise.
1340         * math/w_jn.c (jn): Likewise.
1341         (yn): Likewise.
1342         * math/w_jnf.c (jnf): Likewise.
1343         (ynf): Likewise.
1344         * math/w_jnl.c (__jnl): Likewise.
1345         (__ynl): Likewise.
1346         * math/libm-test.inc (j0_test): Add more tests.
1347         (j1_test): Likewise.
1348         (jn_test): Likewise.  Add trailing semicolon to existing test.
1349         (y0_test): Likewise.
1350         (y1_test): Likewise.
1351         * sysdeps/i386/fpu/libm-test-ulps: Update.
1352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1353
1354         [BZ #13851]
1355         [BZ #13854]
1356         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1357         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1358         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1359         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1360         (__tanl): Set errno for infinite argument.
1361         * sysdeps/i386/fpu/mptan.c: Remove.
1362         * sysdeps/i386/fpu/s_tan.S: Likewise.
1363         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1364         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1365         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1366         * math/libm-test.inc (tan_test): Add more tests and enable more
1367         tests for double and long double.
1368         * sysdeps/i386/fpu/libm-test-ulps: Update.
1369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1370
1371 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1372
1373         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1374         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1375
1376 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1377
1378         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1379         * configure.in: Use it for both main tree and add-ons.
1380         * configure: Regenerated.
1381
1382 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1383
1384         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1385
1386 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1387
1388         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1389         in comment.
1390
1391         [BZ #13851]
1392         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1393         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1394         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1395         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1396         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1397         infinite argument.
1398         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1399         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1400         != 0 for prec == 2.
1401         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1402         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1403         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1404         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1405         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1406         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1407         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1408         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1409         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1410         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1411         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1412         * math/libm-test.inc (cos_test): Add more tests and enable more
1413         tests for long double.
1414         (sin_test): Likewise.
1415         (sincos_test): Likewise.
1416         * sysdeps/i386/fpu/libm-test-ulps: Update.
1417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1418
1419 2012-03-16  David S. Miller  <davem@davemloft.net>
1420
1421         * sysdeps/sparc/fpu/math_private.h: New file.
1422
1423 2012-03-15  David S. Miller  <davem@davemloft.net>
1424
1425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1426         file.
1427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1429         file.
1430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1431         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1435         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1436         sysdep routines.
1437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1438
1439         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1440         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1441
1442         * sysdeps/sparc/sparc-ifunc.h: New file.
1443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1444         sparc-ifunc.h
1445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1447         Likewise.
1448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1449         Likewise.
1450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1454         Likewise.
1455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1460         Likewise.
1461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1462         Likewise.
1463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1469         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1470         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1471         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1472         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1473         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1474         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1475         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1476         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1477         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1478         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1479         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1480         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1481         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1482         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1483         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1484         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1485         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1486         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1487
1488 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1489
1490         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1491         scaling.
1492         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1493
1494 2012-03-15  Andreas Jaeger  <aj@suse.de>
1495
1496         [BZ #13852]
1497         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1498         ieee754/flt-32 implementation for sin, cos and sincos.
1499         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1500         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1501         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1502         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1503         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1504         ieee754/flt-32 implementation for tan.
1505
1506         * math/libm-test.inc (cos_test): Enable some large input tests for
1507         float as well
1508         (sin_test): Likewise.
1509         (sincos_test): Likewise.
1510         (tan_test): Add tests for large input.
1511
1512         * sysdeps/i386/fpu/libm-test-ulps: Update.
1513
1514 2012-03-15  Andreas Jaeger  <aj@suse.de>
1515
1516         [BZ #13658]
1517         * math/libm-test.inc (cos_test): Add more test cases.
1518         (sin_test): Likewise.
1519         (sincos_test): Likewise.
1520
1521 2012-03-15  Andreas Jaeger  <aj@suse.de>
1522
1523         [BZ #13837]
1524         * math/libm-test.inc (cos_test): Add a test case for large input
1525         value.
1526         (sin_test): Likewise.
1527         (sincos_test): Likewise.
1528
1529 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1530         Joseph Myers  <joseph@codesourcery.com>
1531
1532         [BZ #13658]
1533         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
1534         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
1535         * sysdeps/i386/fpu/branred.c: Likewise.
1536         * sysdeps/i386/fpu/dosincos.c: Likewise.
1537         * sysdeps/i386/fpu/mpa.c: Likewise.
1538         * sysdeps/i386/fpu/s_cos.S: Likewise.
1539         * sysdeps/i386/fpu/s_sin.S: Likewise.
1540         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1541         * sysdeps/i386/fpu/sincos32.c: Likewise.
1542
1543         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
1544         Define.
1545         (libc_feupdateenv_53bit): Define.
1546         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
1547         Define.
1548         (libc_feupdateenv_53bit): Define.
1549
1550         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
1551         53 bit (without extend i386 double precision).
1552
1553         * math/libm-test.inc (sincos_test): Add tests for large input.
1554         (sin): Likewise.
1555         (cos): Likewise.
1556
1557         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
1558
1559 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1560
1561         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1562
1563 2012-03-15  David S. Miller  <davem@davemloft.net>
1564
1565         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
1566         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
1567         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
1568         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
1569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
1570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
1571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
1572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
1573         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
1574         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
1575         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
1576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
1577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
1578         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
1579         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
1580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
1581         file.
1582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
1583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
1584         file.
1585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
1586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
1587         file.
1588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
1589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
1590         file.
1591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
1592         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
1593         fmin/fmax sysdep routines.
1594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1595
1596 2012-03-14  David S. Miller  <davem@davemloft.net>
1597
1598         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
1599         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
1600         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
1601         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
1602         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
1603         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
1604         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
1605         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
1606         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
1607         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
1608         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
1609         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
1610         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
1611         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
1612         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
1613         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
1614         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
1615         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
1616         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
1617         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
1618         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
1619         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
1620         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
1621         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
1622         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
1623         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
1624         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
1625         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
1626         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
1627         routines.
1628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
1629         file.
1630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
1631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
1632         file.
1633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
1634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
1635         file.
1636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
1637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
1638         file.
1639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
1640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
1641         file.
1642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
1643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
1644         file.
1645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
1646         file.
1647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
1648         file.
1649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
1650         file.
1651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
1652         New file.
1653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
1654         file.
1655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
1656         file.
1657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
1658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
1659         file.
1660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
1661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
1662         file.
1663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
1664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
1665         file.
1666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
1667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
1668         VIS3 routines.
1669
1670         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
1671         New file.
1672
1673         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1674
1675         * sysdeps/sparc/configure.in: New file.
1676         * sysdeps/sparc/configure: Generate.
1677         * configure.in (libc_cv_sparc_as_vis3): Substitute.
1678         * configure: Regenerate.
1679         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
1680         * config.make.in (have-as-vis3): New.
1681         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
1682         available use -Av9d instead of -Av9a.
1683         * sysdeps/sparc/sparc64/Makefile: Likewise.
1684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
1685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
1686         New file.
1687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
1688         file.
1689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
1690         New file.
1691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
1692         file.
1693         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
1694         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
1695         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
1696         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
1697         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
1698
1699         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
1700         fzeros/fnegs to load 0x80000000 into a float register instead of
1701         using the stack.
1702         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
1703
1704 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1705
1706         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1707         bits/syscall.h.
1708         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
1709         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
1710         ($(inst_includedir)/bits/syscall.h): Remove rule.
1711         ($(objpfx)bits/syscall.d): Include instead of
1712         $(objpfx)syscall-list.d.
1713         (generated): Change syscall-list.h and syscall-list.d to
1714         bits/syscall.h and bits/syscall.d.
1715
1716 2012-03-14  Roland McGrath  <roland@hack.frob.com>
1717
1718         [BZ #13846]
1719         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
1720
1721 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
1722
1723         [BZ #13841]
1724         * math/s_csqrt.c: Include <float.h>.
1725         (__csqrt): Scale large or subnormal inputs.
1726         * math/s_csqrtf.c: Likewise.
1727         * math/s_csqrtl.c: Likewise.
1728         * math/libm-test.inc (csqrt_test): Add more tests.
1729         * sysdeps/i386/fpu/libm-test-ulps: Update.
1730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1731
1732         [BZ #13840]
1733         * math/libm-test.inc (hypot_test): Add more tests.
1734
1735 2012-03-13  David S. Miller  <davem@davemloft.net>
1736
1737         [BZ #13840]
1738         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
1739         double-precision for the calculation instead of scaling.
1740
1741 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
1742
1743         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
1744         manipulate bits before adding and subtracting TWO52[sx].
1745         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
1746         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
1747         Likewise.
1748         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
1749
1750 2012-03-13  David S. Miller  <davem@davemloft.net>
1751
1752         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
1753         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
1754         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
1755         rtld-global-offsets.h
1756         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1757
1758         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
1759         large parameters.
1760
1761         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
1762
1763         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
1764         'err' in the ifdef scope in which it is actually used.
1765
1766         * nss/nss_db/db-init.c: Include string.h
1767
1768 2012-03-12  David S. Miller  <davem@davemloft.net>
1769
1770         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
1771         masking out of the most significant byte of random value used.
1772         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1773         Fix coding style in previous change.
1774
1775         * sysdeps/unix/sysv/linux/kernel-features.h
1776         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
1777         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
1778         expression.
1779         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
1780         later.
1781
1782 2012-03-11  David S. Miller  <davem@davemloft.net>
1783
1784         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
1785         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
1786         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
1787         for 'resultvar' otherwise things get truncated on 64-bit.
1788
1789         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1790         Fix masking out of the most significant byte of random value used.
1791
1792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1793
1794 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
1795
1796         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1797
1798 2012-03-09  David S. Miller  <davem@davemloft.net>
1799
1800         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
1801         variables with appropriate CPP guards.
1802         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
1803         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
1804         on resulting framesize and the management of the outregs buffer for pltexit.
1805         Preserve floating point return values across _dl_call_pltexit call.
1806         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
1807         framesize and the management of the outregs buffer for pltexit.
1808         Preserve floating point return values across _dl_call_pltexit
1809         call.
1810         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
1811         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
1812         (print_exit): Fix format string for return register value.
1813
1814 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
1815
1816         * sunrpc/Makefile (others): Add rpcgen.
1817         ($(objpfx)rpcgen): Remove special build rule and dependency on
1818         libc.
1819         * sunrpc/rpcgen.c: New file.
1820
1821 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         [BZ #13673]
1824         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
1825         * stdio-common/bug-vfprintf-nargs.c: Likewise.
1826         * sysdeps/i386/crti.S: Likewise.
1827         * sysdeps/i386/crtn.S: Likewise.
1828         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
1829         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
1830         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
1831         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
1832         * sysdeps/sh/crti.S: Likewise.
1833         * sysdeps/sh/crtn.S: Likewise.
1834         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1835
1836         [BZ #13673]
1837         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
1838         with URL.
1839         * locale/programs/locfile-kw.gperf: Likewise.
1840         * locale/programs/charmap-kw.h: Regenerated.
1841         * locale/programs/locfile-kw.h: Likewise.
1842
1843         [BZ #13673]
1844         * intl/plural.y: Replace FSF snail mail address with URL.
1845         * intl/plural.c: Regenerated.
1846
1847 2012-03-09  Richard Henderson  <rth@twiddle.net>
1848
1849         * include/math_private.h: Remove file.
1850         * math/math_private.h: Move file ...
1851         * sysdeps/generic/math_private.h: ... here.
1852
1853         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
1854         * sysdeps/powerpc/fpu/math_private.h: Likewise.
1855         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1856
1857         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
1858         and <math_private.h>.
1859         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
1860         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
1861         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
1862         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
1863         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
1864         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
1865         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
1866         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1867         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
1868         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1869         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1870         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
1871         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
1872         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1873         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
1874         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
1875         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
1876         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1877         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
1878         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
1879         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1880         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
1881         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
1882         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1883         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
1884         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1885         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
1886         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1887         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1888         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1889         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
1890         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1891         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
1892         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
1893         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
1894         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1895         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1896         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
1897         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1898         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1899         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
1900         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
1901         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
1902         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1903         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
1904         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1905         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
1906         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
1907         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1908         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
1909         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
1910         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
1911         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
1912         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
1913         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
1914         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
1915         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
1916         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
1917         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
1918         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
1919         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1920         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
1921         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1922         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
1923         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
1924         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1925         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1926         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1927         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
1928         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
1929         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
1930         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
1931         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
1932         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
1933         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
1934         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
1935         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
1936         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
1937         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
1938         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
1939         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
1940         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
1941         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
1942         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
1943         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
1944         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
1945         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
1946         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
1947         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
1948         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
1949         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
1950         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
1951         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
1952         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
1953         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
1954         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
1955         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
1956         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
1957         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
1958         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1959         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
1960         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
1961         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
1962         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
1963         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
1964         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
1965         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
1966         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
1967         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
1968         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1969         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
1970         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
1971         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
1972         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
1973         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
1974         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
1975         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
1976         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1977         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
1978         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1979         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
1980         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
1981         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
1982         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
1983         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
1984         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
1985         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
1986         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
1987         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
1988         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
1989         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
1990         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
1991         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
1992         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
1993         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
1994         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
1995         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
1996         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
1997         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
1998         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
1999         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2000         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2001         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2002         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2003         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2004         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2005         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2006         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2007         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2008         * sysdeps/ieee754/k_standard.c: Likewise.
2009         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2010         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2011         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2012         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2013         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2014         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2015         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2016         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2017         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2018         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2019         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2020         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2021         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2022         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2023         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2024         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2025         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2026         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2027         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2028         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2029         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2030         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2031         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2032         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2033         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2034         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2035         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2036         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2037         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2038         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2039         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2040         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2041         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2042         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2043         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2044         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2045         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2046         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2047         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2048         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2049         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2050         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2051         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2052         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2053         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2054         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2055         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2056         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2057         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2058         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2059         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2060         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2061         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2062         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2063         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2064         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2065         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2066         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2067         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2068         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2069         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2070         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2071         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2072         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2073         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2074         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2075         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2076         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2077         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2078         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2079         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2080         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2081         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2082         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2083         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2084         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2085         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2086         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2087         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2088         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2089         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2090         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2091         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2092         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2093         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2094         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2095         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2096         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2097         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2098         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2099         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2100         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2101         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2102         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2103         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2104         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2105         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2106         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2107         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2108         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2109         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2110         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2111         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2112         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2113         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2114         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2115         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2116         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2117         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2118         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2119         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2120         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2121         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2122         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2123         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2124         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2125         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2126         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2127         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2128         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2129         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2130         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2131         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2132         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2133         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2134         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2135         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2136         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2137         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2138         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2139         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2140         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2141         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2142         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2143         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2144         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2145         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2146         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2147         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2148         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2149         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2150         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2151         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2152         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2153         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2154         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2155         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2156         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2157         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2158         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2159         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2160         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2161         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2162         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2163         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2164         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2165         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2166         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2167         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2168         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2169         * sysdeps/ieee754/s_lib_version.c: Likewise.
2170         * sysdeps/ieee754/s_matherr.c: Likewise.
2171         * sysdeps/ieee754/s_signgam.c: Likewise.
2172         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2173         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2174         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2175         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2176         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2177         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2178         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2179         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2180         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2181         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2182         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2183         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2184         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2185         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2186         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2187         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2188         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2189         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2190         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2191         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2192         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2193
2194 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2195
2196         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2197         * sunrpc/rpc_main.c: Likewise.
2198         * sunrpc/rpc_svcout.c: Likewise.
2199
2200 2012-03-09  David S. Miller  <davem@davemloft.net>
2201
2202         * include/math_private.h: New file.
2203
2204 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2205
2206         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2207         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2208         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2209         from <bits/socket_type.h>.
2210         (enum __socket_type): Don't define here.
2211         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2212         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2213         bits/socket_type.h.
2214
2215         [BZ #13566]
2216         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2217         checking __USE_GNU.
2218
2219         * Makerules ($(inst_includedir)/%.h): New rule.
2220         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2221         (install-others): Remove variable setting.
2222         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2223
2224 2012-03-08  Richard Henderson  <rth@twiddle.net>
2225
2226         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2227         from macro to inline function; merge with the
2228         !__LIBC_INTERNAL_MATH_INLINES version.
2229         (__ieee754_sqrtf): Likewise.
2230
2231         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2232         to inline function.
2233         (__rintf, __floor, __floorf): Likewise.
2234
2235         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2236         macro to inline function.
2237         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2238
2239         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2240         not <math/math_private.h>.
2241
2242 2012-03-08  David S. Miller  <davem@davemloft.net>
2243
2244         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2245         copyright year.
2246         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2247
2248 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2249
2250         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2251         normalization.
2252         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2253         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2254
2255 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2256
2257         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2258         be defined individually, they must be defined as a block.  Define
2259         S for printing a string instead of hidint the different by using a
2260         macro for adding the 'l'.
2261         * stdio-common/tst-fphex-wide.c: Adjust.
2262
2263 2012-03-07  Marek Polacek  <polacek@redhat.com>
2264
2265         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2266
2267 2012-03-08  Marek Polacek  <polacek@redhat.com>
2268
2269         [BZ #13806]
2270         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2271         * stdio-common/tst-fphex.c: Define a few macros to make the
2272         test reusable.  Use them.
2273         * stdio-common/tst-fphex-wide.c: New file.
2274
2275 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2276
2277         [BZ #6911]
2278         * manual/macros.texi (gnusystems): New macro.
2279         (nongnusystems): Likewise.
2280         (gnulinuxhurdsystems): Likewise.
2281         (gnuhurdsystems): Likewise..
2282         (gnulinuxsystems): Likewise.
2283         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2284         variants of the GNU system, not "GNU system".
2285         * manual/conf.texi: Likewise.
2286         * manual/errno.texi: Likewise.  Update example of errno macro
2287         expansion.
2288         * manual/filesys.texi: Likewise.
2289         (getumask): Document as specific to GNU/Hurd.
2290         * manual/install.texi: Likewise.  Reword some references to
2291         GNU/Linux.
2292         * manual/intro.texi: Likewise.
2293         * manual/io.texi: Likewise.
2294         (File Name Portability): Detail which constraints are inapplicable
2295         to all GNU systems and which are only inapplicable to GNU/Hurd.
2296         * manual/job.texi: Likewise.
2297         * manual/llio.texi: Likewise.
2298         (O_NOCTTY): Document as present on GNU/Linux.
2299         * manual/maint.texi: Likewise.
2300         * manual/memory.texi: Likewise.
2301         * manual/pattern.texi: Likewise.
2302         * manual/pipe.texi: Likewise.
2303         * manual/process.texi: Likewise.
2304         * manual/resource.texi: Likewise.
2305         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2306         child on GNU/Hurd.
2307         * manual/setjmp.texi: Likewise.
2308         * manual/signal.texi: Likewise.
2309         * manual/startup.texi: Likewise.
2310         * manual/stdio.texi: Likewise.
2311         * manual/terminal.texi: Likewise.
2312         (ONLCR): Document as POSIX.
2313         (OXTABS): Document availability on GNU/Linux as XTABS.
2314         (ONOEOT): Document availability separately from other bits.
2315         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2316         * manual/time.texi: Likewise.
2317         * manual/users.texi: Likewise.
2318         * INSTALL: Regenerated.
2319         * sysdeps/gnu/errlist.c: Regenerated.
2320
2321         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2322         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2323         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2324         puts.
2325         * configure: Regenerated.
2326
2327 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2328
2329         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2330         default includes instead of AC_HEADER_CHECK.
2331         * sysdeps/i386/configure: Regenerated.
2332
2333         [BZ #10716]
2334         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2335         * math/s_cacoshf.c (__cacoshf): Likewise.
2336         * math/s_cacoshl.c (__cacoshl): Likewise.
2337         * math/s_casinh.c (__casinh): Set signs of result from argument.
2338         * math/s_casinhf.c (__casinhf): Likewise.
2339         * math/s_casinhl.c (__casinhl): Likewise.
2340         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2341         (casinh_test): Add more tests.
2342         * sysdeps/i386/fpu/libm-test-ulps: Update.
2343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2344
2345 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2346
2347         * po/zh_TW.po: Update from translation team.
2348
2349         * login/Makefile (distribute): Remove variable.
2350         * catgets/Makefile: Likewise.
2351         * mach/Makefile: Likewise.
2352         * malloc/Makefile: Likewise.
2353         * misc/Makefile: Likewise.
2354         * iconv/Makefile: Likewise.
2355         * nscd/Makefile: Likewise.
2356         * hurd/Makefile: Likewise.
2357         * manual/Makefile: Likewise.
2358         * locale/Makefile: Likewise.
2359         * intl/Makefile: Likewise.
2360         * conform/Makefile: Likewise.
2361         * nss/Makefile: Likewise.
2362         * time/Makefile: Likewise.
2363         * soft-fp/Makefile: Likewise.
2364         * dirent/Makefile: Likewise.
2365         * gmon/Makefile: Likewise.
2366         * po/Makefile: Likewise.
2367         * rt/Makefile: Likewise.
2368         * socket/Makefile: Likewise.
2369         * math/Makefile: Likewise.
2370         * signal/Makefile: Likewise.
2371         * debug/Makefile: Likewise.
2372         * elf/Makefile: Likewise.
2373         * timezone/Makefile: Likewise.
2374         * stdlib/Makefile: Likewise.
2375         * iconvdata/Makefile: Likewise.
2376         * sunrpc/Makefile: Likewise.
2377         * io/Makefile: Likewise.
2378         * argp/Makefile: Likewise.
2379         * inet/Makefile: Likewise.
2380         * hesiod/Makefile: Likewise.
2381         * grp/Makefile: Likewise.
2382         * csu/Makefile: Likewise.
2383         * wctype/Makefile: Likewise.
2384         * crypt/Makefile: Likewise.
2385         * libio/Makefile: Likewise.
2386         * string/Makefile: Likewise.
2387         * nis/Makefile: Likewise.
2388         * resolv/Makefile: Likewise.
2389         * stdio-common/Makefile: Likewise.
2390         * wcsmbs/Makefile: Likewise.
2391         * dlfcn/Makefile: Likewise.
2392         * posix/Makefile: Likewise.
2393
2394         * timezone/Makefile: Don't install timezone files, just the programs
2395         and scripts.
2396
2397 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2398
2399         * nss/databases.def: Add missing gshadow entry.
2400
2401         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2402
2403 2012-03-06  Marek Polacek  <polacek@redhat.com>
2404
2405         [BZ #13726]
2406         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2407         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2408         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2409         * stdio-common/tst-long-dbl-fphex.c: New file.
2410
2411 2012-03-06  David S. Miller  <davem@davemloft.net>
2412
2413         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2414         (set_obp_int): New function.
2415         (get_obp_int): New function.
2416         (__get_clockfreq_via_dev_openprom): Likewise.
2417         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2418         Avoid unused variable warnings on 'val' and use builtin_expect.
2419         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2420         __builtin_expect.
2421         (INLINE_CLONE_SYSCALL): Likewise.
2422
2423 2012-03-05  David S. Miller  <davem@davemloft.net>
2424
2425         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2426
2427 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2428
2429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2430
2431         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2432         only for |x| >= 40.
2433         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2434
2435 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2436
2437         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2438         Replace gettimeofday with __vdso_gettimeofday.
2439
2440         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2441         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2442         __vdso_clock_gettime and __vdso_getcpu.
2443
2444         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2445         time with __vdso_time.
2446
2447 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2448
2449         * manual/lang.texi (size_t): Note types to which size_t may be
2450         equivalent with the GNU C Library, but do not describe when
2451         differences between them are significant.
2452
2453 2012-03-05  Andreas Jaeger  <aj@suse.de>
2454
2455         * sysdeps/i386/fpu/libm-test-ulps: Update.
2456
2457 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2458
2459         [BZ #3976]
2460         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2461         (__ieee754_pow): Save and restore rounding mode and use
2462         round-to-nearest for main computations.
2463         * math/libm-test.inc (pow_test_tonearest): New function.
2464         (pow_test_towardzero): Likewise.
2465         (pow_test_downward): Likewise.
2466         (pow_test_upward): Likewise.
2467         (main): Call the new functions.
2468         * sysdeps/i386/fpu/libm-test-ulps: Update.
2469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2470
2471         [BZ #3976]
2472         * math/libm-test.inc (cosh_test_tonearest): New function.
2473         (cosh_test_towardzero): Likewise.
2474         (cosh_test_downward): Likewise.
2475         (cosh_test_upward): Likewise.
2476         (sinh_test_tonearest): Likewise.
2477         (sinh_test_towardzero): Likewise.
2478         (sinh_test_downward): Likewise.
2479         (sinh_test_upward): Likewise.
2480         (main): Call the new functions.
2481         * sysdeps/i386/fpu/libm-test-ulps: Update.
2482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2483
2484 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2485
2486         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2487         default stack guard is set in last bytes.
2488         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2489
2490 2012-03-05  Kees Cook  <keescook@chromium.org>
2491
2492         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2493
2494         [BZ #13656]
2495         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2496         possibly allocate from heap instead of stack.
2497         * stdio-common/bug-vfprintf-nargs.c: New file.
2498         * stdio-common/Makefile (tests): Add nargs overflow test.
2499
2500 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2501
2502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2503
2504 2012-03-03  Marek Polacek  <polacek@redhat.com>
2505
2506         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2507         * math/math_private.h: Likewise.
2508         * stdlib/tst-strtod.c: Likewise.
2509         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2510         * sysdeps/x86_64/bits/atomic.h: Likewise.
2511
2512 2012-03-02  David S. Miller  <davem@davemloft.net>
2513
2514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2518         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2519         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2520         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2521         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2522
2523 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2524
2525         [BZ #13792]
2526         * manual/examples/README: New file, says the example source files
2527         can be used under GPL>=2.
2528         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2529         line containing just "*/".
2530         * manual/examples/add.c: Add copyright header (GPL>=2).
2531         * manual/examples/argp-ex1.c: Likewise.
2532         * manual/examples/argp-ex2.c: Likewise.
2533         * manual/examples/argp-ex3.c: Likewise.
2534         * manual/examples/argp-ex4.c: Likewise.
2535         * manual/examples/atexit.c: Likewise.
2536         * manual/examples/db.c: Likewise.
2537         * manual/examples/dir.c: Likewise.
2538         * manual/examples/dir2.c: Likewise.
2539         * manual/examples/execinfo.c: Likewise.
2540         * manual/examples/filecli.c: Likewise.
2541         * manual/examples/filesrv.c: Likewise.
2542         * manual/examples/fmtmsgexpl.c: Likewise.
2543         * manual/examples/genpass.c: Likewise.
2544         * manual/examples/inetcli.c: Likewise.
2545         * manual/examples/inetsrv.c: Likewise.
2546         * manual/examples/isockad.c: Likewise.
2547         * manual/examples/longopt.c: Likewise.
2548         * manual/examples/memopen.c: Likewise.
2549         * manual/examples/memstrm.c: Likewise.
2550         * manual/examples/mkfsock.c: Likewise.
2551         * manual/examples/mkisock.c: Likewise.
2552         * manual/examples/mygetpass.c: Likewise.
2553         * manual/examples/pipe.c: Likewise.
2554         * manual/examples/popen.c: Likewise.
2555         * manual/examples/rprintf.c: Likewise.
2556         * manual/examples/search.c: Likewise.
2557         * manual/examples/select.c: Likewise.
2558         * manual/examples/setjmp.c: Likewise.
2559         * manual/examples/sigh1.c: Likewise.
2560         * manual/examples/sigusr.c: Likewise.
2561         * manual/examples/stpcpy.c: Likewise.
2562         * manual/examples/strdupa.c: Likewise.
2563         * manual/examples/strftim.c: Likewise.
2564         * manual/examples/strncat.c: Likewise.
2565         * manual/examples/subopt.c: Likewise.
2566         * manual/examples/swapcontext.c: Likewise.
2567         * manual/examples/termios.c: Likewise.
2568         * manual/examples/testopt.c: Likewise.
2569         * manual/examples/testpass.c: Likewise.
2570         * manual/examples/timeval_subtract.c: Likewise.
2571
2572         [BZ #13792]
2573         * manual/time.texi (Elapsed Time): Move timeval_subtract example
2574         function to ...
2575         * manual/timeval_subtract.c.texi: ... here, new file.
2576
2577 2012-03-02  David S. Miller  <davem@davemloft.net>
2578
2579         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
2580
2581 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
2582
2583         [BZ #3976]
2584         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
2585         (__sin): Save and restore rounding mode and use round-to-nearest
2586         for all computations.
2587         (__cos): Save and restore rounding mode and use round-to-nearest
2588         for all computations.
2589         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
2590         <fenv.h>.
2591         (tan): Save and restore rounding mode and use round-to-nearest for
2592         all computations.
2593         * math/libm-test.inc (cos_test_tonearest): New function.
2594         (cos_test_towardzero): Likewise.
2595         (cos_test_downward): Likewise.
2596         (cos_test_upward): Likewise.
2597         (sin_test_tonearest): Likewise.
2598         (sin_test_towardzero): Likewise.
2599         (sin_test_downward): Likewise.
2600         (sin_test_upward): Likewise.
2601         (tan_test_tonearest): Likewise.
2602         (tan_test_towardzero): Likewise.
2603         (tan_test_downward): Likewise.
2604         (tan_test_upward): Likewise.
2605         (main): Call the new functions.
2606         * sysdeps/i386/fpu/libm-test-ulps: Update.
2607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2608
2609         [BZ #10135]
2610         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
2611         small n, then large n, before computing and testing k+n.
2612         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2613         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2614         Likewise.
2615         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2616         Likewise.
2617         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
2618         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2619         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2620         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2621         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2622         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2623         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2624         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
2625         * math/libm-test.inc (scalbn_test): Add more tests.
2626         (scalbln_test): Likewise.
2627
2628         * manual/filesys.texi (mode_t): Describe constraints on size and
2629         signedness, not exact equivalence to a particular type.
2630         (ino_t): Likewise.
2631         (ino64_t): Likewise.
2632         (dev_t): Likewise.
2633         (nlink_t): Likewise.
2634         (blkcnt_t): Likewise.
2635         (blkcnt64_t): Likewise.
2636         * manual/llio.texi (off_t): Likewise.
2637
2638         [BZ #3976]
2639         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
2640         (__ieee754_exp): Save and restore rounding mode and use
2641         round-to-nearest for all computations.
2642         * math/libm-test.inc (exp_test_tonearest): New function.
2643         (exp_test_towardzero): Likewise.
2644         (exp_test_downward): Likewise.
2645         (exp_test_upward): Likewise.
2646         (main): Call the new functions.
2647         * sysdeps/i386/fpu/libm-test-ulps: Update.
2648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2649
2650 2012-03-01  Chris Demetriou  <cgd@google.com>
2651
2652         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
2653         have predictable order.
2654
2655 2012-03-01  David S. Miller  <davem@davemloft.net>
2656
2657         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
2658
2659         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
2660         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
2661         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
2662         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
2663
2664         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
2665         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
2666         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
2667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
2668         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
2669         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
2670         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
2671         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
2672         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
2673
2674         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2675
2676         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
2677         * sysdeps/sparc/fpu/libm-test-ulps: to here.
2678         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
2679
2680         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
2681         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2682         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2683         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
2684         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
2685         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
2686         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
2687         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2688         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2689         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
2690         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
2691         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2692         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2693         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
2694         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2695         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2696         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
2697         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
2698         * sysdeps/sparc/elf/configure: Regenerated.
2699
2700 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
2701
2702         * configure.in (AS, LD): Require binutils 2.20 or later.
2703         * configure: Regenerated.
2704         * manual/install.texi (Tools for Compilation): Give binutils 2.20
2705         as required minimum version.
2706         * INSTALL: Regenerated.
2707
2708         [BZ #2541]
2709         [BZ #4108]
2710         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
2711         before squaring exponent.
2712         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
2713         bottom long double and 27 bits of top long double before squaring
2714         exponent.
2715         * math/libm-test.inc (erfc_test): Add more tests.
2716         * sysdeps/i386/fpu/libm-test-ulps: Update.
2717         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2719
2720 2012-03-01  Kai Tietz  <ktietz@redhat.com>
2721
2722         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
2723         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
2724         containing bit-fields.
2725         * soft-fp/extended.h (_FP_UNION_E): Likewise.
2726         * soft-fp/single.h (_FP_UNION_S): Likewise.
2727         * soft-fp/double.h (_FP_UNION_D): Likewise.
2728
2729 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2730
2731         [BZ #13786]
2732         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
2733         not include ../strcmp.S.
2734         [USE_AS_STRNCASECMP_L]: Likewise.
2735         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
2736         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
2737         * sysdeps/i386/i686/multiarch/strncase_l-c.c
2738         (__strncasecmp_l_ia32): Define as alias to
2739         __strncasecmp_l_nonascii.
2740
2741         [BZ #5794]
2742         * math/libm-test.inc (expm1_test): Add test for bug 5794.
2743         * sysdeps/i386/fpu/libm-test-ulps: Update.
2744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2745
2746         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
2747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2748
2749 2012-02-29  Jeff Law  <law@redhat.com>
2750
2751         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
2752         out of bounds read.
2753
2754 2012-02-29  Marek Polacek  <polacek@redhat.com>
2755
2756         [BZ #13706]
2757         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
2758         * elf/Makefile: Add rules to run tst-unused-dep.out.
2759
2760 2012-02-28  David S. Miller  <davem@davemloft.net>
2761
2762         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
2763         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
2764         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
2765         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
2766         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
2767         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
2768
2769 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
2770
2771         * math/libm-test.inc (llround_test): Move one test from
2772         lround_test.  Use TEST_f_L in moved test.
2773         (lround_test): Move misplaced test to llround_test.  Add testcase
2774         from bug 2561.
2775
2776 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
2777
2778         * sysdeps/x86_64/fpu/e_expf.S: New file.
2779         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
2780
2781 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
2782
2783         [BZ #13637]
2784         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
2785         of remain_len that may cause incomplete multi-byte character and
2786         false match.
2787         * posix/bug-regex33.c: New file.
2788         * posix/Makefile (tests): Add bug-regex33.
2789
2790 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
2791
2792         * manual/macros.texi: New file.
2793         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
2794         * manual/libc.texinfo: Include macros.texi.
2795         * manual/creatute.texi: Likewise.
2796         * manual/install.texi: Likewise.
2797         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
2798         @glibcadj{} in references to the GNU C Library.
2799         * manual/charset.texi: Likewise.
2800         * manual/conf.texi: Likewise.
2801         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
2802         when not using those macros.
2803         * manual/creature.texi: Likewise.
2804         * manual/crypt.texi: Likewise.
2805         * manual/errno.texi: Likewise.
2806         * manual/filesys.texi: Likewise.
2807         * manual/header.texi: Likewise.
2808         * manual/install.texi: Likewise.
2809         * manual/intro.texi: Likewise.
2810         * manual/io.texi: Likewise.
2811         * manual/job.texi: Likewise.
2812         * manual/lang.texi: Likewise.
2813         * manual/libc.texiinfo: Likewise.
2814         * manual/llio.texi: Likewise.
2815         * manual/locale.texi: Likewise.
2816         * manual/maint.texi: Likewise.
2817         * manual/math.texi: Likewise.
2818         * manual/memory.texi: Likewise.
2819         * manual/message.texi: Likewise.
2820         * manual/nss.texi: Likewise.
2821         * manual/pattern.texi: Likewise.
2822         * manual/process.texi: Likewise.
2823         * manual/resource.texi: Likewise.
2824         * manual/search.texi: Likewise.
2825         * manual/setjmp.texi: Likewise.
2826         * manual/signal.texi: Likewise.
2827         * manual/socket.texi: Likewise.
2828         * manual/startup.texi: Likewise.
2829         * manual/stdio.texi: Likewise.
2830         * manual/string.texi: Likewise.
2831         * manual/sysinfo.texi: Likewise.
2832         * manual/syslog.texi: Likewise.
2833         * manual/terminal.texi: Likewise.
2834         * manual/time.texi: Likewise.
2835         * manual/users.texi: Likewise.
2836         * INSTALL: Regenerated.
2837         * NOTES: Regenerated.
2838         * sysdeps/gnu/errlist.c: Regenerated.
2839
2840 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2841
2842         * include/dirent.h: Include <dirstream.h> before
2843         <dirent/dirent.h>.
2844
2845 2012-02-28  David S. Miller  <davem@davemloft.net>
2846
2847         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
2848         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
2849         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
2850         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
2851
2852 2012-02-27  David S. Miller  <davem@davemloft.net>
2853
2854         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
2855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
2856         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
2857         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
2858
2859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
2860         frame pointer instead of stack pointer relative arg slot.
2861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
2862         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
2863         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
2864
2865 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
2866
2867         [BZ #3992]
2868         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
2869
2870 2012-02-27  David S. Miller  <davem@davemloft.net>
2871
2872         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
2873         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
2874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
2875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
2876         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
2877         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
2878         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
2879         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
2880
2881 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
2882
2883         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
2884         later.  Allow versions 5-9.
2885         * configure: Regenerated.
2886         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
2887         required minimum version and 4.6 as recommended version.  Do not
2888         mention bugs in GCC 2.7 and 2.8.
2889         * INSTALL: Regenerated.
2890
2891 2012-02-27  David S. Miller  <davem@davemloft.net>
2892
2893         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
2894         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
2895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
2896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
2897         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
2898         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
2899         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
2900         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
2901
2902         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
2903         manipulate bits before adding and subtracting TWO112[sx].
2904         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
2905
2906 2012-02-27  Roland McGrath  <roland@hack.frob.com>
2907
2908         [BZ #13775]
2909         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
2910         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
2911         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
2912         being in POSIX, because they are in 1003.1-2008.
2913
2914         * rt/tst-aio.c: Include <fcntl.h>.
2915         * rt/tst-aio7.c: Likewise.
2916         * rt/tst-aio64.c: Likewise.
2917
2918         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
2919
2920 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
2921
2922         * manual/install.texi (--with-headers): Describe headers as
2923         interface headers, not private headers.
2924         (Specific advice for GNU/Linux systems): Describe use of headers
2925         from "make headers_install", not private headers from older
2926         kernels.
2927         * INSTALL: Regenerated.
2928         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
2929         Change to 2.6.19.
2930         * sysdeps/unix/sysv/linux/configure: Regenerated.
2931
2932         * manual/llio.texi (fclean): Remove documentation.
2933
2934         * manual/Makefile (libc-texi-generated): New variable.  Include
2935         version.texi.
2936         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
2937         $(libc-texi-generated), not duplicated list of files.
2938         (version.texi, stamp-version): New rules.
2939         (realclean): Remove $(libc-texi-generated), not individual files
2940         from that list.  Do not remove dir-add.texinfo.
2941         * manual/libc.texinfo: Comment out uses of edition numbers and
2942         references to printed manual.  Remove last-updated dates.
2943         (EDITION): Comment out.
2944         (ISBN): Likewise.
2945         (VERSION, UPDATED): Remove.
2946         (version.texi): Include.
2947
2948 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
2949
2950         * sysdeps/posix/spawni.c: Include <signal.h>.
2951         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
2952         * sysdeps/pthread/aio_fsync.c: Likewise.
2953
2954 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
2955
2956         * conform/Makefile (tests): Run only when not cross-compiling and
2957         when fast-check is not defined.
2958
2959         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
2960         * conform/data/limits.h-data: Fixes for POSIX2008.
2961         * conform/run-conformtest.sh: Run all tests.
2962         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
2963         headers.
2964         * include/bits/dlfcn.h: Likewise.
2965         * include/langinfo.h: Likewise.
2966         * include/monetary.h: Likewise.
2967         * include/sys/poll.h: Likewise.
2968
2969         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
2970         for __USE_GNU.
2971         * posix/spawn.h: Define __need_sigset_t.
2972         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
2973         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
2974         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
2975         to get sigevent_t only.
2976         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
2977         only for __USE_GNU.
2978         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2979         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
2980         process_vm_writev only for __USE_GNU.
2981         * termios/termios.h: Declare tcgetsid also for POSIX2008.
2982
2983         * conform/Makefile: For now ignore errors from run-conformtest.
2984         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
2985         POSIX to avoid namespace pollution.  Don't prepend headers.
2986         * conform/data/aio.h-data: Fixes for POSIX testing.
2987         * conform/data/fcntl.h-data: Likewise.
2988         * conform/data/glob.h-data: Likewise.
2989         * conform/data/grp.h-data: Likewise.
2990         * conform/data/pthread.h-data: Likewise.
2991         * conform/data/pwd.h-data: Likewise.
2992         * conform/data/signal.h-data: Likewise.
2993         * conform/data/spawn.h-data: Likewise.
2994         * conform/data/stdio.h-data: Likewise.
2995         * conform/data/stdlib.h-data: Likewise.
2996         * conform/data/stropts.h-data: Likewise.
2997         * conform/data/sys/mman.h-data: Likewise.
2998         * conform/data/sys/stat.h-data: Likewise.
2999         * conform/data/sys/types.h-data: Likewise.
3000         * conform/data/sys/wait.h-data: Likewise.
3001         * conform/data/time.h-data: Likewise.
3002         * conform/data/unistd.h-data: Likewise.
3003         * conform/data/utime.h-data: Likewise.
3004
3005         * io/sys/stat.h: fchmod was always in POSIX.
3006         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3007         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3008         * rt/aio.h: Define __need_timespec before including <time.h>.
3009         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3010         struct.  Add forward declaration of pthread_attr_t and use it in
3011         sigevent.
3012         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3013         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3014         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3015         always remove CLK_TCK definition.
3016
3017 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3018
3019         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3020
3021 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3022
3023         * conform/run-conformtest.sh: New file.
3024         * conform/Makefile: Run run-conformtest for tests.
3025         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3026         support.
3027
3028         * conform/data/uchar.h-data: New file.
3029         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3030         * conform/data/arpa/inet.h-data: Likewise.
3031         * conform/data/assert.h-data: Likewise.
3032         * conform/data/complex.h-data: Likewise.
3033         * conform/data/cpio.h-data: Likewise.
3034         * conform/data/ctype.h-data: Likewise.
3035         * conform/data/dirent.h-data: Likewise.
3036         * conform/data/dlfcn.h-data: Likewise.
3037         * conform/data/errno.h-data: Likewise.
3038         * conform/data/fcntl.h-data: Likewise.
3039         * conform/data/float.h-data: Likewise.
3040         * conform/data/fmtmsg.h-data: Likewise.
3041         * conform/data/fnmatch.h-data: Likewise.
3042         * conform/data/ftw.h-data: Likewise.
3043         * conform/data/glob.h-data: Likewise.
3044         * conform/data/grp.h-data: Likewise.
3045         * conform/data/iconv.h-data: Likewise.
3046         * conform/data/inttypes.h-data: Likewise.
3047         * conform/data/langinfo.h-data: Likewise.
3048         * conform/data/libgen.h-data: Likewise.
3049         * conform/data/limits.h-data: Likewise.
3050         * conform/data/locale.h-data: Likewise.
3051         * conform/data/math.h-data: Likewise.
3052         * conform/data/monetary.h-data: Likewise.
3053         * conform/data/mqueue.h-data: Likewise.
3054         * conform/data/ndbm.h-data: Likewise.
3055         * conform/data/net/if.h-data: Likewise.
3056         * conform/data/netdb.h-data: Likewise.
3057         * conform/data/netinet/in.h-data: Likewise.
3058         * conform/data/nl_types.h-data: Likewise.
3059         * conform/data/poll.h-data: Likewise.
3060         * conform/data/pthread.h-data: Likewise.
3061         * conform/data/pwd.h-data: Likewise.
3062         * conform/data/regex.h-data: Likewise.
3063         * conform/data/sched.h-data: Likewise.
3064         * conform/data/search.h-data: Likewise.
3065         * conform/data/semaphore.h-data: Likewise.
3066         * conform/data/setjmp.h-data: Likewise.
3067         * conform/data/signal.h-data: Likewise.
3068         * conform/data/spawn.h-data: Likewise.
3069         * conform/data/stdarg.h-data: Likewise.
3070         * conform/data/stdio.h-data: Likewise.
3071         * conform/data/stdlib.h-data: Likewise.
3072         * conform/data/string.h-data: Likewise.
3073         * conform/data/strings.h-data: Likewise.
3074         * conform/data/stropts.h-data: Likewise.
3075         * conform/data/sys/ipc.h-data: Likewise.
3076         * conform/data/sys/mman.h-data: Likewise.
3077         * conform/data/sys/msg.h-data: Likewise.
3078         * conform/data/sys/resource.h-data: Likewise.
3079         * conform/data/sys/select.h-data: Likewise.
3080         * conform/data/sys/sem.h-data: Likewise.
3081         * conform/data/sys/shm.h-data: Likewise.
3082         * conform/data/sys/socket.h-data: Likewise.
3083         * conform/data/sys/stat.h-data: Likewise.
3084         * conform/data/sys/statvfs.h-data: Likewise.
3085         * conform/data/sys/time.h-data: Likewise.
3086         * conform/data/sys/timeb.h-data: Likewise.
3087         * conform/data/sys/times.h-data: Likewise.
3088         * conform/data/sys/types.h-data: Likewise.
3089         * conform/data/sys/uio.h-data: Likewise.
3090         * conform/data/sys/un.h-data: Likewise.
3091         * conform/data/sys/utsname.h-data: Likewise.
3092         * conform/data/sys/wait.h-data: Likewise.
3093         * conform/data/syslog.h-data: Likewise.
3094         * conform/data/tar.h-data: Likewise.
3095         * conform/data/termios.h-data: Likewise.
3096         * conform/data/utime.h-data: Likewise.
3097         * conform/data/utmpx.h-data: Likewise.
3098         * conform/data/varargs.h-data: Likewise.
3099         * conform/data/wchar.h-data: Likewise.
3100         * conform/data/wctype.h-data: Likewise.
3101         * conform/data/wordexp.h-data: Likewise.
3102
3103         * include/stropts.h: New file.
3104         * include/uchar.h: New file.
3105         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3106         * include/assert.h: Likewise.
3107         * include/ctype.h: Likewise.
3108         * include/dirent.h: Likewise.
3109         * include/dlfcn.h: Likewise.
3110         * include/fcntl.h: Likewise.
3111         * include/fnmatch.h: Likewise.
3112         * include/glob.h: Likewise.
3113         * include/grp.h: Likewise.
3114         * include/libio.h: Likewise.
3115         * include/locale.h: Likewise.
3116         * include/math.h: Likewise.
3117         * include/net/if.h: Likewise.
3118         * include/netdb.h: Likewise.
3119         * include/netinet/in.h: Likewise.
3120         * include/pthread.h: Likewise.
3121         * include/pwd.h: Likewise.
3122         * include/regex.h: Likewise.
3123         * include/sched.h: Likewise.
3124         * include/search.h: Likewise.
3125         * include/setjmp.h: Likewise.
3126         * include/signal.h: Likewise.
3127         * include/stdio.h: Likewise.
3128         * include/stdlib.h: Likewise.
3129         * include/string.h: Likewise.
3130         * include/sys/cdefs.h: Likewise.
3131         * include/sys/mman.h: Likewise.
3132         * include/sys/msg.h: Likewise.
3133         * include/sys/resource.h: Likewise.
3134         * include/sys/select.h: Likewise.
3135         * include/sys/socket.h: Likewise.
3136         * include/sys/stat.h: Likewise.
3137         * include/sys/statvfs.h: Likewise.
3138         * include/sys/time.h: Likewise.
3139         * include/sys/times.h: Likewise.
3140         * include/sys/uio.h: Likewise.
3141         * include/sys/utsname.h: Likewise.
3142         * include/sys/wait.h: Likewise.
3143         * include/termios.h: Likewise.
3144         * include/time.h: Likewise.
3145         * include/ulimit.h: Likewise.
3146         * include/unistd.h: Likewise.
3147         * include/utime.h: Likewise.
3148         * include/wchar.h: Likewise.
3149         * include/wctype.h: Likewise.
3150         * include/wordexp.h: Likewise.
3151
3152         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3153
3154         * time/time.h: TIME_UTC must be a macro.
3155         Make timespec_get available for ISO C11 only as well.
3156
3157 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3158
3159         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3160         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3161
3162 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3163
3164         * configure.in: Use -o not -a in test for unsupported multi-arch.
3165
3166 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3167
3168         * manual/texinfo.tex: Update to version 2012-01-19.16.
3169
3170 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3171
3172         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3173
3174 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3175
3176         [BZ #13738]
3177         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3178         * manual/fdl-1.3.texi: New file.
3179         * manual/fdl-1.1.texi: File removed.
3180
3181         [BZ #13738]
3182         * manual/libc.texinfo (FDL_VERSION): New @set.
3183         Use it for mention of FDL in cover text.
3184         (Documentation License): Use it in @include file name.
3185
3186 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3187             Roland McGrath  <roland@hack.frob.com>
3188
3189         [BZ #5461]
3190         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3191         not LONG_LONG_MAX and LONG_LONG_MIN.
3192         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3193         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3194         name.
3195         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3196
3197 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3198
3199         [BZ #2547]
3200         [BZ #11365]
3201         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3202         manipulate bits before adding and subtracting TWO23[sx].
3203         * math/libm-test.inc (nearbyint_test): Add more tests.
3204
3205 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3206
3207         [BZ #2548]
3208         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3209         bits before adding and subtracting TWO23[sx].
3210         * math/libm-test.inc (rint_test): Add more tests.
3211         (rint_test_tonearest): Likewise.
3212         (rint_test_towardzero): Likewise.
3213         (rint_test_downward): Likewise.
3214         (rint_test_upward: Likewise.
3215
3216 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3217
3218         [BZ #10110]
3219         * include/stdc-predef.h: New file.  Extracted from features.h.
3220         * include/features.h: Include stdc-predef.h.
3221         * Makefile (headers): Add stdc-predef.h.
3222         * CONFORMANCE (Compiler limitations): Update.
3223
3224 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3225
3226         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3227
3228 2012-02-21  David S. Miller  <davem@davemloft.net>
3229
3230         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3231         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3232
3233 2012-02-20  David S. Miller  <davem@davemloft.net>
3234
3235         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3236         using a normal save/restore sequence, rather than allocating a
3237         dummy stack frame just to store a frame pointer and restore.
3238         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3239
3240 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3241
3242         * manual/install.texi: Fix stray word in line-wrapped comment.
3243
3244 2012-02-20  David S. Miller  <davem@davemloft.net>
3245
3246         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3247         both binutils and gcc support GOTDATA.
3248
3249         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3250         "rd %pc" in the PIC register setup sequences.
3251
3252         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3253         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3254         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3255         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3256         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3257         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3258         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3259         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3260         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3261         (SYSCALL_ERROR_HANDLER): Likewise.
3262         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3263         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3264         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3265         (SYSCALL_ERROR_HANDLER): Likewise.
3266
3267         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3268         (HAVE_GCC_GOTDATA): New.
3269         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3270         relocation support in both binutils and gcc.
3271         * sysdeps/sparc/elf/configure: Regenerate.
3272
3273         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3274         * sysdeps/sparc/sparc32/elf/configure: Delete.
3275         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3276         * sysdeps/sparc/sparc64/elf/configure: Delete.
3277         * sysdeps/sparc/elf/configure.in: New file.
3278         * sysdeps/sparc/elf/configure: Generate.
3279
3280         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3281         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3282         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3283         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3284         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3285
3286 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3287
3288         * manual/install.texi: Do not mention specific glibc version
3289         numbers.
3290         * manual/libc.texinfo (VERSION, UPDATED): Update.
3291         (@copying): Use @copyright{} and range of years.
3292
3293 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3294
3295         [BZ #13695]
3296         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3297         [crti.S not in sysdirs] (generated): Do not append.
3298         [crti.S not in sysdirs] (omit-deps): Likewise.
3299         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3300         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3301         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3302         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3303         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3304         Likewise.
3305         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3306         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3307         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3308         * csu/defs.awk: Remove file.
3309         * sysdeps/generic/initfini.c: Likewise.
3310         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3311         variable.
3312         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3313         Likewise.
3314
3315 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3316
3317         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3318         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3319         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3320         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3321         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3322         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3323         <bits/epoll.h>.
3324         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3325         (__EPOLL_PACKED): Define to empty if not defined by
3326         <bits/epoll.h>.
3327         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3328         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3329         bits/epoll.h.
3330
3331 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3332
3333         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3334         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3335         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3336         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3337         <bits/timerfd.h>.
3338         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3339         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3340         bits/timerfd.h.
3341
3342 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3343
3344         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3345         in C locale.
3346         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3347         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3348         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3350
3351 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3352
3353         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3354         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3355
3356 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3357
3358         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3359         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3360         defined.
3361         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3362         Likewise.
3363         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3364         entry for 2.16.
3365
3366 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3367
3368         * math/w_acos.c: Use non-signaling floating-point comparisons.
3369         * math/w_acosf.c: Likewise.
3370         * math/w_acosh.c: Likewise.
3371         * math/w_acoshf.c: Likewise.
3372         * math/w_acoshl.c: Likewise.
3373         * math/w_acosl.c: Likewise.
3374         * math/w_asin.c: Likewise.
3375         * math/w_asinf.c: Likewise.
3376         * math/w_asinl.c: Likewise.
3377         * math/w_atanh.c: Likewise.
3378         * math/w_atanhf.c: Likewise.
3379         * math/w_atanhl.c: Likewise.
3380         * math/w_exp2.c: Likewise.
3381         * math/w_exp2f.c: Likewise.
3382         * math/w_exp2l.c: Likewise.
3383         * math/w_j0.c: Likewise.
3384         * math/w_j0f.c: Likewise.
3385         * math/w_j0l.c: Likewise.
3386         * math/w_j1.c: Likewise.
3387         * math/w_j1f.c: Likewise.
3388         * math/w_j1l.c: Likewise.
3389         * math/w_jn.c: Likewise.
3390         * math/w_jnf.c: Likewise.
3391         * math/w_log.c: Likewise.
3392         * math/w_log10.c: Likewise.
3393         * math/w_log10f.c: Likewise.
3394         * math/w_log10l.c: Likewise.
3395         * math/w_log2.c: Likewise.
3396         * math/w_log2f.c: Likewise.
3397         * math/w_log2l.c: Likewise.
3398         * math/w_logf.c: Likewise.
3399         * math/w_logl.c: Likewise.
3400         * math/w_sqrt.c: Likewise.
3401         * math/w_sqrtf.c: Likewise.
3402         * math/w_sqrtl.c: Likewise.
3403         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3404         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3405         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3406         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3407         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3408
3409 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3410
3411         [BZ #9739]
3412         * manual/string.texi (strnlen): Use correct parameter name in
3413         equivalent expression.
3414
3415 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3416
3417         [BZ #11174]
3418         * manual/users.texi (seteuid): Consistently use neweuid for
3419         argument name.
3420
3421 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3422
3423         [BZ #13704]
3424         * manual/nss.texi (Services in the NSS configuration): Correct
3425         list of services in example configuration file.
3426
3427 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3428
3429         [BZ #11322]
3430         * manual/arith.texi: Remove statements about negative zero
3431         behaving identically to zero.
3432
3433 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3434
3435         [BZ #5993]
3436         * manual/install.texi: Do not document upgrading from libc5.
3437
3438 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3439
3440         [BZ #4596]
3441         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3442
3443 2012-02-18  David S. Miller  <davem@davemloft.net>
3444
3445         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3446         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3447         %o7 across the call.
3448         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3449         instead.
3450         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3451         SETUP_PIC_REG_LEAF.
3452         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3453         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3454         * sysdeps/sparc/crtn.S: Likewise.
3455
3456 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3457
3458         * aout/Makefile: Remove.
3459
3460 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3461
3462         [BZ #13058]
3463         * manual/examples/argp-ex1.c (main): Format definition in GNU
3464         style.
3465         * manual/examples/argp-ex2.c (main): Likewise.
3466         * manual/examples/argp-ex3.c (main): Likewise.
3467         * manual/examples/argp-ex4.c (main): Likewise.
3468         * manual/examples/longopt.c (main): Use new-style prototype
3469         definition.
3470         * manual/examples/strncat.c (main): Specify return type and use
3471         (void) for arguments.
3472         * manual/examples/subopt.c (main): Use char **argv argument.
3473
3474 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3475
3476         [BZ #5077]
3477         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3478         rounding modes.
3479
3480 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3481
3482         [BZ #6907]
3483         * manual/string.texi (strchr): Change when strchrnul is
3484         recommended.
3485
3486 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3487
3488         [BZ #174]
3489         * manual/locale.texi (setlocale): Document LOCPATH.
3490
3491 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3492
3493         [BZ #10210]
3494         * manual/process.texi (execle): Move @dots{} before last argument.
3495
3496 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3497
3498         [BZ #12047]
3499         * manual/charset.texi (Generic Charset Conversion): Fix typo
3500         (LC_TYPE -> LC_CTYPE).
3501
3502 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3503
3504         [BZ #5805]
3505         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3506         (scalbnf): Likewise.
3507         (scalbnl): Likewise.
3508         (scalbln): Likewise.
3509         (scalblnf): Likewise.
3510         (scalblnl): Likewise.
3511         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3512         (vwarnx): Likewise.
3513         (verr): Likewise.
3514         (verrx): Likewise.
3515         * manual/filesys.texi (telldir): Use braces around return type.
3516         * manual/llio.texi (mmap): Add space after comma.
3517         (mmap64): Likewise.
3518         * manual/math.texi (jn): Use @var{} on parameter names.
3519         (jnf): Likewise.
3520         (jnl): Likewise.
3521         (yn): Likewise.
3522         (ynf): Likewise.
3523         (ynl): Likewise.
3524         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3525         line.
3526         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3527         "...".
3528         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3529         (sched_get_priority_max): Likewise.
3530         * manual/signal.texi (sigvec): Add space after comma.
3531         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
3532         names.
3533         (if_indextoname): Likewise.
3534         (if_freenameindex): Likewise.
3535         (sendto): Use ',' instead of '.' in prototype.
3536         * manual/startup.texi (syscall): Use @dots{} instead of literal
3537         "...".
3538         * manual/stdio.texi (__fpending): Separate initial words of
3539         paragraph from @deftypefun line.
3540         * manual/syslog.texi (syslog): Use @dots{} instead of literal
3541         "...".
3542         (vsyslog): Use @var{} on parameter names.
3543         * manual/terminal.texi (stty): Use @var{} on parameter names.
3544         * manual/users.texi (getutmp): Use @var{} on parameter names.
3545         (getutmpx): Likewise.
3546
3547 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3548
3549         [BZ #6884]
3550         * manual/stdio.texi (fopen): Fix typos in description of
3551         ",ccs=STRING".
3552
3553 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
3554
3555         [BZ #4026]
3556         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
3557         get clock_id definition.
3558
3559 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
3560
3561         [BZ #4822]
3562         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
3563         (madvise): Cast every argument to void on its own.
3564
3565 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3566
3567         [BZ #9902]
3568         * manual/startup.texi (Exit Status): Fix typo.
3569
3570 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3571
3572         [BZ #10140]
3573         * manual/examples/argp-ex1.c: Include <stdlib.h>.
3574         * manual/examples/argp-ex2.c: Likewise.
3575         * manual/examples/argp-ex3.c: Likewise.
3576
3577 2012-02-16  Richard Henderson  <rth@redhat.com>
3578
3579         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
3580         * sysdeps/s390/s390-32/initfini.c: Remove.
3581         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
3582         * sysdeps/s390/s390-64/initfini.c: Remove.
3583
3584 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3585
3586         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
3587         compiler output for sysdeps/generic/initfini.c.
3588         * sysdeps/sh/elf/initfini.c: Remove file.
3589
3590 2012-02-16  David S. Miller  <davem@davemloft.net>
3591
3592         [BZ #11494]
3593         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
3594
3595         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
3596         * sysdeps/sparc/crti.S: New file.
3597         * sysdeps/sparc/crtn.S: New file.
3598         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
3599         * sysdeps/sparc/sparc64/Makefile: Likewise.
3600
3601 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
3602
3603         [BZ #3335]
3604         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
3605
3606 2012-02-15  Roland McGrath  <roland@hack.frob.com>
3607
3608         [BZ #4822]
3609         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
3610
3611         * mach/devstream.c (cookie_io_functions_t): Macro removed.
3612         (write, read, close): Likewise.
3613         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3614
3615 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
3616
3617         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
3618         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
3619         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
3620         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
3621         <bits/signalfd.h>.
3622         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
3623         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3624         bits/signalfd.h.
3625
3626 2012-02-14  Marek Polacek  <polacek@redhat.com>
3627
3628         * sysdeps/x86_64/crti.S: New file.
3629         * sysdeps/x86_64/crtn.S: New file.
3630         * sysdeps/x86_64/elf/initfini.c: Remove file.
3631
3632 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3633
3634         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
3635         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
3636         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
3637         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
3638         <bits/inotify.h>.
3639         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
3640         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3641         bits/inotify.h.
3642
3643 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
3644
3645         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
3646         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
3647         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
3648         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
3649         <bits/eventfd.h>.
3650         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
3651         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3652         bits/eventfd.h.
3653
3654 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
3655
3656         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
3657         __feraiseexcept instead of feraiseexcept.
3658
3659         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
3660         nanosleep invocations.
3661         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
3662         strings, and add error checking for a nanosleep invocations.
3663
3664 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3665
3666         Replace FSF snail mail address with URLs, as per GNU coding standards.
3667         Most of the snail mail addresses were wrong anyway, and omitting
3668         them makes the source code easier to maintain.  Almost all of the
3669         changes are to license notices and to locale LC_IDENTIFICATION
3670         addresses, except for this one:
3671         * manual/libc.texinfo: In "Published by", give the FSF's URL,
3672         not its snail mail address.
3673
3674 2012-02-09  Richard Henderson  <rth@twiddle.net>
3675
3676         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
3677         of kernel-features.h.
3678
3679         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
3680
3681 2012-02-08  Marek Polacek  <polacek@redhat.com>
3682
3683         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
3684         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
3685         * sysdeps/gnu/_G_config.h: Likewise.
3686         * sysdeps/generic/_G_config.h: Likewise.
3687
3688 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
3689
3690         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
3691         tests.
3692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3693
3694         * sysdeps/powerpc/powerpc32/crti.S: New file.
3695         * sysdeps/powerpc/powerpc32/crtn.S: New file.
3696         * sysdeps/powerpc/powerpc64/crti.S: New file.
3697         * sysdeps/powerpc/powerpc64/crtn.S: New file.
3698
3699         * Makeconfig (have-initfini): Don't set.
3700         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
3701         * configure.in (nopic_initfini): Don't substitute.
3702         * config.h.in (HAVE_INITFINI): Don't #undef.
3703         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
3704         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
3705
3706 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
3707
3708         Support crti.S and crtn.S provided directly by architectures.
3709         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
3710         [crti.S in sysdirs] (omit-deps): Likewise.
3711         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
3712         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
3713         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
3714         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
3715         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
3716         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
3717         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
3718         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
3719         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
3720         compiler output for sysdeps/generic/initfini.c.
3721         * sysdeps/i386/elf/Makefile: Remove file.
3722         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
3723
3724 2012-02-07  Marek Polacek  <polacek@redhat.com>
3725
3726         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
3727         * sysdeps/gnu/_G_config.h: Likewise.
3728         * sysdeps/mach/hurd/_G_config.h: Likewise.
3729
3730 2012-02-07  Marek Polacek  <polacek@redhat.com>
3731
3732         * math/Makefile (tests): Add tst-CMPLX2.
3733         * math/tst-CMPLX2.c: New file.
3734
3735 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
3736
3737         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3738
3739         * math/libm-test.inc (jn_test): Add missing L suffix.
3740
3741 2012-02-06  Marek Polacek  <polacek@redhat.com>
3742
3743         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
3744         * sysdeps/i386/fpu/e_powf.S: Likewise.
3745         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3746         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
3747         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3748         * sysdeps/i386/fpu/e_pow.S: Likewise.
3749         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3750         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3751         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3752         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3753         * sysdeps/i386/fpu/e_log2.S: Likewise.
3754         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3755         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3756         * sysdeps/i386/fpu/e_powl.S: Likewise.
3757         * sysdeps/i386/fpu/s_log1p.S: Likewise.
3758         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3759         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3760         * sysdeps/i386/fpu/e_logl.S: Likewise.
3761         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3762         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
3763         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3764         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3765         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3766         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3767         * sysdeps/i386/fpu/e_log.S: Likewise.
3768         * sysdeps/i386/fpu/s_cexp.S: Likewise.
3769         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3770         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
3771         * sysdeps/i386/fpu/e_logf.S: Likewise.
3772         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3773         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3774         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
3775         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3776         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
3777         * sysdeps/i386/fpu/e_log10.S: Likewise.
3778         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3779         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3780         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3781         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3782         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3783         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3784         * sysdeps/i386/asm-syntax.h: Likewise.
3785         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3786         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3787         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3788         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3789         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
3790         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3791         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3792         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3793         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3794         * sysdeps/powerpc/sysdep.h: Likewise.
3795         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
3796         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3797
3798 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3799
3800         [BZ #411]
3801         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
3802
3803 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
3804
3805         * sysdeps/i386/sysdep.h: Include <features.h>.
3806         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
3807         version.
3808
3809 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
3810
3811         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
3812         Define.
3813         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
3814         LOAD_PIC_REG_STR.
3815
3816 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3817
3818         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
3819         (SETUP_PIC_REG): Use GET_PC_THUNK.
3820         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
3821         macro.
3822
3823 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3824
3825         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
3826         for non-PIC compilation.
3827         (SETUP_PIC_REG): Add .p2align directive.
3828         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
3829         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
3830         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
3831         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
3832         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
3833         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
3834         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
3835         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3836         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
3837         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
3838         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
3839         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
3840         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
3841         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
3842         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
3843         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3844         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3845         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
3846         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
3847         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
3848         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3849         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3850         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
3851         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
3852         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
3853         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
3854         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
3855         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3856         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
3857         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
3858         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
3859         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3860         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
3861         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
3862         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
3863         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
3864         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
3865         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
3866         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
3867         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
3868         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
3869
3870 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
3871
3872         * math/tst-CMPLX.c: Include <stdio.h>.
3873
3874 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
3875
3876         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
3877         float.
3878         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
3879         * sysdeps/sparc/bits/mathdef.h: Likewise.
3880
3881 2012-01-31  Marek Polacek  <polacek@redhat.com>
3882
3883         * libio/libio.h: Don't define _PARAMS.
3884         * locale/programs/config.h: Don't define PARAMS.
3885         * stdlib/strtol_l.c: Likewise.
3886         (__strtol_l): Remove PARAMS from the prototype.
3887
3888 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
3889
3890         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
3891         names.  Just use the correct names.  Remove unnecessary wrapper
3892         functions.
3893         * malloc/arena.c: Likewise.
3894         * malloc/hooks.c: Likewise.
3895
3896         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
3897         ARENA_TEST says not to.  Simplify test for creation of a new arena.
3898         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
3899
3900 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
3901
3902         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
3903         into tail calls.
3904         (update_get_addr): New function.
3905         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
3906         GET_ADDR_MODULE parameter.
3907
3908 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
3909
3910         * crypt/cert.c: Remove __STDC__ conditionals.
3911         * crypt/crypt-entry.c: Likewise.
3912         * crypt/crypt_util.c: Likewise.
3913         * libio/filedoalloc.c: Likewise.
3914         * libio/fileops.c: Likewise.
3915         * libio/genops.c: Likewise.
3916         * libio/iofclose.c: Likewise.
3917         * libio/iofdopen.c: Likewise.
3918         * libio/iofopen.c: Likewise.
3919         * libio/iofopen64.c: Likewise.
3920         * libio/iogetdelim.c: Likewise.
3921         * libio/iopopen.c: Likewise.
3922         * libio/obprintf.c: Likewise.
3923         * libio/oldfileops.c: Likewise.
3924         * libio/oldiofclose.c: Likewise.
3925         * libio/oldiofdopen.c: Likewise.
3926         * libio/oldiofopen.c: Likewise.
3927         * libio/oldiopopen.c: Likewise.
3928         * libio/wfiledoalloc.c: Likewise.
3929         * libio/wgenops.c: Likewise.
3930         * locale/programs/xmalloc.c: Likewise.
3931         * misc/syslog.c: Likewise.
3932         * stdio-common/xbug.c: Likewise.
3933         * string/memchr.c: Likewise.
3934         * string/memcmp.c: Likewise.
3935         * string/memrchr.c: Likewise.
3936         * string/rawmemchr.c: Likewise.
3937         * sysdeps/posix/getcwd.c: Likewise.
3938         * time/strftime_l.c: Likewise.
3939
3940 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
3941
3942         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
3943         * config.make.in (config-cflags-sse2avx): Define.
3944         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
3945         Fix typo.
3946
3947 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
3948
3949         * scripts/config.guess: Update from upstream config git repository.
3950         * scripts/config.sub: Likewise.
3951
3952 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
3953
3954         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
3955         (EM_NUM): Update.
3956         (R_TILEPRO_*, R_TILEGX_*): New macros.
3957
3958         * scripts/firstversions.awk: Fix bug in version range handling.
3959
3960         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
3961
3962         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
3963
3964         * include/sys/epoll.h: New file.
3965         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
3966         libc_hidden_def.
3967
3968 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
3969
3970         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
3971         Avoid unnecessary __WORDSIZE == 64 test.
3972         (fmaxf): Use VEX format if possible.
3973         (fmax): Likewise.
3974         (fminf): Likewise.
3975         (fmin): Likewise.
3976
3977         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
3978         * math/math_private.h: Remove libc_fegetround* and
3979         libc_fesetround*.
3980         * sysdeps/i386/configure.in: Check for -msse2avx.
3981         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
3982         also if SSE2AVX is defined.
3983         Remove libc_fegetround* and libc_fesetround*.
3984         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
3985         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
3986         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
3987         of HAS_YMM_USABLE.
3988         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
3989         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
3990         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
3991         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
3992         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
3993
3994         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
3995
3996 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3997
3998         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
3999         size is not set.
4000         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4001
4002 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4003
4004         [BZ #13618]
4005         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4006         relocation.
4007         * Makeconfig (libm): Define.
4008         * elf/Makefile: Add rules to build and run tst-relsort1.
4009         * elf/tst-relsort1.c: New file.
4010         * elf/tst-relsort1mod1.c: New file.
4011         * elf/tst-relsort1mod2.c: New file.
4012
4013 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4014
4015         * math/s_ldexp.c: Remove __STDC__ conditionals.
4016         * math/s_ldexpf.c: Likewise.
4017         * math/s_ldexpl.c: Likewise.
4018         * math/s_nextafter.c: Likewise.
4019         * math/s_nexttowardf.c: Likewise.
4020         * math/s_significand.c: Likewise.
4021         * math/s_significandf.c: Likewise.
4022         * math/s_significandl.c: Likewise.
4023         * math/w_jnl.c: Likewise.
4024         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4025         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4026         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4027         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4028         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4029         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4030         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4031         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4032         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4033         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4034         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4035         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4036         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4037         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4038         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4039         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4040         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4041         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4042         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4043         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4044         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4045         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4046         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4047         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4048         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4049         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4050         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4051         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4052         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4053         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4054         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4055         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4056         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4057         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4058         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4059         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4060         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4061         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4062         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4063         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4064         * sysdeps/ieee754/k_standard.c: Likewise.
4065         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4066         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4067         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4068         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4069         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4070         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4071         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4072         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4073         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4074         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4075         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4076         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4077         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4078         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4079         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4080         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4081         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4082         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4083         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4084         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4085         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4086         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4087         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4088         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4089         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4090         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4091         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4092         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4093         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4094         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4095         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4096         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4097         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4098         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4099         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4100         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4101         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4102         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4103         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4104         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4105         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4106         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4107         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4108         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4109         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4110         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4111         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4112         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4113         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4114         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4115         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4116         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4117         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4118         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4119         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4120         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4121         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4122         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4123         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4124         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4125         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4126         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4127         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4128         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4129         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4130         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4131         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4132         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4133         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4134         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4135         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4136         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4137         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4138         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4139         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4140         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4141         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4142         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4143         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4144         * sysdeps/ieee754/s_matherr.c: Likewise.
4145         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4146         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4147         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4148         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4149
4150 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4151
4152         * crypt/md5.h: Remove __STDC__ conditionals.
4153         * libio/libioP.h: Likewise.
4154         * locale/programs/config.h: Likewise.
4155         * sysdeps/generic/sysdep.h: Likewise.
4156         * sysdeps/i386/asm-syntax.h: Likewise.
4157         * sysdeps/s390/asm-syntax.h: Likewise.
4158         * sysdeps/unix/sysdep.h: Likewise.
4159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4161
4162 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4163
4164         * libio/libio.h: Remove __STDC__ conditionals.
4165         * malloc/obstack.h: Likewise.
4166         * math/complex.h: Likewise.
4167         * math/math.h: Likewise.
4168         * sysdeps/generic/_G_config.h: Likewise.
4169         * sysdeps/gnu/_G_config.h: Likewise.
4170         * sysdeps/mach/hurd/_G_config.h: Likewise.
4171         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4172         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4173         * sysdeps/sparc/bits/mathdef.h: Likewise.
4174
4175 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4176
4177         [BZ #13583]
4178         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4179         Clean up HAS_* macros.
4180         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4181         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4182         possible.
4183         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4184         HAS_AVX.
4185         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4186         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4187         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4188         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4189         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4190
4191 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4192
4193         * elf/tst-unique3.cc (gets): Remove declaration.
4194         * elf/tst-unique3lib.cc (gets): Likewise.
4195         * elf/tst-unique3lib2.cc (gets): Likewise.
4196         * elf/tst-unique4.cc (gets): Likewise.
4197
4198 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4199
4200         * include/stdio.h: Add C++ protection.  Add gets declarations and
4201         definitions.
4202         * debug/tst-chk1.c: Don't declare gets here.
4203         * stdio-common/tst-gets.c: Likewise.
4204
4205 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4206
4207         * posix/glob: Remove directory.
4208
4209 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4210
4211         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4212
4213 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4214
4215         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4216         of the non-standard EPFNOSUPPORT.
4217
4218 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4219
4220         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4221         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4222         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4223
4224 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4225
4226         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4227
4228 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4229
4230         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4231         transient errors.
4232         * nscd/grpcache.c (cache_addgr): Likewise.
4233         * nscd/hstcache.c (cache_addhst): Likewise.
4234         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4235         * nscd/pwdcache.c (cache_addpw): Likewise.
4236         * nscd/servicescache.c (cache_addserv): Likewise.
4237
4238 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4239
4240         * malloc/malloc.c: Various cleanups.
4241         * malloc/hooks.c: Likewise.
4242
4243         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4244         * stdlib/bug-fmtmsg1.c: New file.
4245
4246         * stdlib/fmtmsg.c (init): Add missing unlock.
4247         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4248
4249 2012-01-12  Marek Polacek  <polacek@redhat.com>
4250
4251         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4252         and _GNU_SOURCE.
4253
4254 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4255
4256         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4257         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4258         macro to ensure uniqueness of label name.
4259         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4260         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4261
4262 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4263
4264         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4265
4266         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4267         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4268         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4269         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4270
4271 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4272
4273         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4274
4275         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4276         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4277         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4278
4279         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4280
4281         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4282         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4283         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4284         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4285
4286         * math/bits/math-finite.h: Add ldexp support.
4287
4288 2012-01-10  Marek Polacek  <polacek@redhat.com>
4289
4290         * locale/programs/localedef.h (show_archive_content): Add noreturn
4291         attribute.
4292
4293 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4294
4295         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4296
4297 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4298
4299         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4300
4301         * io/Makefile (headers): Add bits/poll2.h.
4302
4303 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4304
4305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4306         typo #include statement.
4307
4308 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4309
4310         * include/sys/cdefs.h: Define __attribute_alloc_size.
4311         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4312         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4313         * elf/pldd.c: Likewise.
4314         * iconv/iconv_charmap.c: Likewise.
4315         * iconv/iconvconfig.c: Likewise.
4316         * iconv/strtab.c: Likewise.
4317         * locale/programs/locale.c: Likewise.
4318         * locale/programs/localedef.h: Likewise.
4319         * locale/programs/simple-hash.c: Likewise.
4320         * nscd/nscd.h: Likewise.
4321         * nss/makedb.c: Likewise.
4322         * sysdeps/generic/ldconfig.h: Likewise.
4323         * locale/programs/localedef.c: Remove xmalloc prototype.
4324         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4325
4326 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4327
4328         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4329         appropriate.
4330
4331 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4332
4333         * math/Makefile (tests): Add tst-CMPLX.
4334         * math/tst-CMPLX.c: New file.
4335
4336         * math/complex.h (CMPLXL): Fix typo.
4337
4338         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4339         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4340         GLIBC_2.16.
4341         * debug/tst-chk1.c: Add poll and ppoll tests.
4342         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4343         * include/sys/poll.h: Add hidden proto for ppoll.
4344         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4345         * sysdeps/mach/hurd/ppoll.c: Likewise.
4346         * io/ppoll.c: Likewise.
4347         * debug/poll_chk.c: New file.
4348         * debug/ppoll_chk.c: New file.
4349         * include/bits/poll2.h: New file.
4350         * io/bits/poll2.h: New file.
4351
4352         [BZ #1350]
4353         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4354
4355         * configure.in: static is always set to yes.  Remove.
4356         * config.make.in: Don't set build-static.
4357         * Makeconfig: Remove use of build-static.
4358         * dlfcn/Makefile: Likewise.
4359         * elf/Makefile: Likewise.
4360         * math/Makefile: Likewise.
4361         * misc/Makefile: Likewise.
4362         * nptl/Makefile: Likewise.
4363         * sysdeps/mach/hurd/Makefile: Likewise.
4364
4365         * configure.in: PWD_P is not used anymore.
4366         * config.make.in: Remove PWD_P entry.
4367
4368         * configure.in: Remove last remnants of RANLIB.
4369         No need to check for signed size_t anymore.
4370         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4371         and IA-64.
4372         Remove __builtin_expect test because we require at least gcc 3.4.
4373         * aclocal.m4: Likewise.
4374
4375         * wcsmbs/mbrtoc16.c: Implement using towc function.
4376         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4377         * wcsmbs/wcsmbsload.c: Likewise.
4378         * iconv/gconv_simple.c: Likewise.
4379         * iconv/gconv_int.h: Likewise.
4380         * iconv/gconv_builtin.h: Likewise.
4381         * iconv/iconv_prog.c: Remove CHAR16 handling.
4382
4383         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4384
4385         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4386
4387         * configure.in: Remove --with-elf and --enable-bounded options.
4388         Dont set base_machine for ia64.  More non-ELF conditions removed.
4389         Remove testing and setting of leading underscore information.
4390         * config.make.in (build-bounded): Set to no.
4391         * config.h.in: Remove NO_UNDERSCORES entry.
4392         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4393         them.
4394         * csu/start.c: Remove !NO_UNDERSCORE code.
4395         * locale/localeinfo.h: Likewise.
4396         * sysdeps/generic/machine-gmon.h: Likewise.
4397         * sysdeps/generic/sysdep.h: Likewise.
4398         * sysdeps/i386/sysdep.h: Likewise.
4399         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4400         * sysdeps/mach/sysdep.h: Likewise.
4401         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4402         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4403         * sysdeps/sh/sysdep.h: Likewise.
4404         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4405         * sysdeps/unix/i386/sysdep.S: Likewise.
4406         * sysdeps/unix/sparc/start.c: Likewise.
4407         * sysdeps/unix/sparc/sysdep.S: Likewise.
4408         * sysdeps/unix/sparc/sysdep.h: Likewise.
4409         * sysdeps/unix/start.c: Likewise.
4410         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4411         * sysdeps/x86_64/sysdep.h: Likewise.
4412
4413 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4414
4415         [BZ #13553]
4416         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4417         for non-gcc.
4418         * argp/argp-fmtstream.h: Use const instead __const.
4419         * argp/argp.h: Likewise.
4420         * assert/assert.h: Likewise.
4421         * bits/fenv.h: Likewise.
4422         * bits/sched.h: Likewise.
4423         * bits/sigset.h: Likewise.
4424         * bits/sigthread.h: Likewise.
4425         * catgets/nl_types.h: Likewise.
4426         * conform/data/pthread.h-data: Likewise.
4427         * crypt/crypt-private.h: Likewise.
4428         * crypt/crypt.h: Likewise.
4429         * crypt/crypt_util.c: Likewise.
4430         * ctype/ctype.h: Likewise.
4431         * debug/execinfo.h: Likewise.
4432         * debug/mbsnrtowcs_chk.c: Likewise.
4433         * debug/mbsrtowcs_chk.c: Likewise.
4434         * debug/wcsnrtombs_chk.c: Likewise.
4435         * debug/wcsrtombs_chk.c: Likewise.
4436         * debug/wcstombs_chk.c: Likewise.
4437         * dirent/dirent.h: Likewise.
4438         * dlfcn/dlfcn.h: Likewise.
4439         * elf/neededtest4.c: Likewise.
4440         * grp/grp.h: Likewise.
4441         * gshadow/gshadow.h: Likewise.
4442         * iconv/gconv.h: Likewise.
4443         * iconv/gconv_int.h: Likewise.
4444         * iconv/gconv_simple.c: Likewise.
4445         * iconv/iconv.h: Likewise.
4446         * iconv/loop.c: Likewise.
4447         * iconv/skeleton.c: Likewise.
4448         * include/aio.h: Likewise.
4449         * include/aliases.h: Likewise.
4450         * include/argz.h: Likewise.
4451         * include/arpa/inet.h: Likewise.
4452         * include/assert.h: Likewise.
4453         * include/dirent.h: Likewise.
4454         * include/dlfcn.h: Likewise.
4455         * include/execinfo.h: Likewise.
4456         * include/fcntl.h: Likewise.
4457         * include/fenv.h: Likewise.
4458         * include/glob.h: Likewise.
4459         * include/grp.h: Likewise.
4460         * include/libintl.h: Likewise.
4461         * include/mntent.h: Likewise.
4462         * include/netdb.h: Likewise.
4463         * include/pwd.h: Likewise.
4464         * include/rpc/netdb.h: Likewise.
4465         * include/sched.h: Likewise.
4466         * include/search.h: Likewise.
4467         * include/shadow.h: Likewise.
4468         * include/signal.h: Likewise.
4469         * include/stdio.h: Likewise.
4470         * include/stdlib.h: Likewise.
4471         * include/string.h: Likewise.
4472         * include/sys/socket.h: Likewise.
4473         * include/sys/stat.h: Likewise.
4474         * include/sys/statfs.h: Likewise.
4475         * include/sys/statvfs.h: Likewise.
4476         * include/sys/syslog.h: Likewise.
4477         * include/sys/time.h: Likewise.
4478         * include/sys/uio.h: Likewise.
4479         * include/time.h: Likewise.
4480         * include/unistd.h: Likewise.
4481         * include/utmp.h: Likewise.
4482         * include/wchar.h: Likewise.
4483         * include/wctype.h: Likewise.
4484         * inet/aliases.h: Likewise.
4485         * inet/arpa/inet.h: Likewise.
4486         * inet/netinet/ether.h: Likewise.
4487         * inet/netinet/in.h: Likewise.
4488         * intl/libintl.h: Likewise.
4489         * io/bits/fcntl2.h: Likewise.
4490         * io/fcntl.h: Likewise.
4491         * io/ftw.h: Likewise.
4492         * io/sys/poll.h: Likewise.
4493         * io/sys/stat.h: Likewise.
4494         * io/sys/statfs.h: Likewise.
4495         * io/sys/statvfs.h: Likewise.
4496         * io/utime.h: Likewise.
4497         * libio/bits/stdio.h: Likewise.
4498         * libio/bits/stdio2.h: Likewise.
4499         * libio/libio.h: Likewise.
4500         * libio/libioP.h: Likewise.
4501         * libio/stdio.h: Likewise.
4502         * locale/lc-ctype.c: Likewise.
4503         * locale/locale.h: Likewise.
4504         * login/utmp.h: Likewise.
4505         * malloc/arena.c: Likewise.
4506         * malloc/malloc.c: Likewise.
4507         * malloc/malloc.h: Likewise.
4508         * malloc/mcheck.c: Likewise.
4509         * malloc/mtrace.c: Likewise.
4510         * math/bits/mathcalls.h: Likewise.
4511         * math/fenv.h: Likewise.
4512         * math/math_private.h: Likewise.
4513         * misc/bits/error.h: Likewise.
4514         * misc/bits/syslog.h: Likewise.
4515         * misc/err.h: Likewise.
4516         * misc/error.h: Likewise.
4517         * misc/fstab.h: Likewise.
4518         * misc/mntent.h: Likewise.
4519         * misc/regexp.h: Likewise.
4520         * misc/search.h: Likewise.
4521         * misc/sgtty.h: Likewise.
4522         * misc/sys/mman.h: Likewise.
4523         * misc/sys/syslog.h: Likewise.
4524         * misc/sys/uio.h: Likewise.
4525         * misc/sys/xattr.h: Likewise.
4526         * misc/ttyent.h: Likewise.
4527         * nis/rpcsvc/ypclnt.h: Likewise.
4528         * nss/nss.h: Likewise.
4529         * posix/bits/unistd.h: Likewise.
4530         * posix/fnmatch.h: Likewise.
4531         * posix/glob.h: Likewise.
4532         * posix/sched.h: Likewise.
4533         * posix/spawn.h: Likewise.
4534         * posix/sys/wait.h: Likewise.
4535         * posix/unistd.h: Likewise.
4536         * posix/wordexp.h: Likewise.
4537         * pwd/pwd.h: Likewise.
4538         * resolv/netdb.h: Likewise.
4539         * resource/sys/resource.h: Likewise.
4540         * rt/aio.h: Likewise.
4541         * rt/bits/mqueue2.h: Likewise.
4542         * rt/mqueue.h: Likewise.
4543         * shadow/shadow.h: Likewise.
4544         * signal/signal.h: Likewise.
4545         * socket/send.c: Likewise.
4546         * socket/sendto.c: Likewise.
4547         * socket/sys/socket.h: Likewise.
4548         * stdio-common/printf.h: Likewise.
4549         * stdlib/bits/stdlib.h: Likewise.
4550         * stdlib/fmtmsg.h: Likewise.
4551         * stdlib/monetary.h: Likewise.
4552         * stdlib/stdlib.h: Likewise.
4553         * stdlib/ucontext.h: Likewise.
4554         * streams/stropts.h: Likewise.
4555         * string/argz.h: Likewise.
4556         * string/bits/string2.h: Likewise.
4557         * string/string.h: Likewise.
4558         * string/strings.h: Likewise.
4559         * sunrpc/rpc/auth.h: Likewise.
4560         * sunrpc/rpc/auth_des.h: Likewise.
4561         * sunrpc/rpc/clnt.h: Likewise.
4562         * sunrpc/rpc/netdb.h: Likewise.
4563         * sunrpc/rpc/pmap_clnt.h: Likewise.
4564         * sunrpc/rpc/xdr.h: Likewise.
4565         * sysdeps/generic/inttypes.h: Likewise.
4566         * sysdeps/generic/net/if.h: Likewise.
4567         * sysdeps/generic/sys/swap.h: Likewise.
4568         * sysdeps/gnu/net/if.h: Likewise.
4569         * sysdeps/gnu/utmpx.h: Likewise.
4570         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
4571         * sysdeps/i386/i486/bits/string.h: Likewise.
4572         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
4573         * sysdeps/s390/bits/string.h: Likewise.
4574         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
4575         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
4576         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4577         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
4578         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4579         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4580         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4581         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
4582         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
4583         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
4584         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4585         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
4586         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
4587         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
4588         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4589         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
4590         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
4591         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4592         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4593         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4594         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
4595         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
4596         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
4597         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
4598         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
4599         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
4600         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
4601         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4602         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
4603         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
4604         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
4605         * sysvipc/sys/ipc.h: Likewise.
4606         * sysvipc/sys/msg.h: Likewise.
4607         * sysvipc/sys/sem.h: Likewise.
4608         * sysvipc/sys/shm.h: Likewise.
4609         * termios/termios.h: Likewise.
4610         * time/sys/time.h: Likewise.
4611         * time/time.h: Likewise.
4612         * wcsmbs/bits/wchar2.h: Likewise.
4613         * wcsmbs/uchar.h: Likewise.
4614         * wcsmbs/wchar.h: Likewise.
4615         * wctype/wctype.h: Likewise.
4616
4617         [BZ #13551]
4618         * Makeconfig: Remove all but ELF support including AIX support.
4619         * Makerules: Likewise.
4620         * config.h.in: Likewise.
4621         * config.make.in: Likewise.
4622         * configure: Likewise.
4623         * configure.in: Likewise.
4624         * csu/Makefile: Likewise.
4625         * csu/version.c: Likewise.
4626         * debug/Makefile: Likewise.
4627         * dlfcn/Makefile: Likewise.
4628         * elf/Makefile: Likewise.
4629         * extra-lib.mk: Likewise.
4630         * iconv/Makefile: Likewise.
4631         * include/libc-symbols.h: Likewise.
4632         * include/shlib-compat.h: Likewise.
4633         * resolv/Makefile: Likewise.
4634         * resolv/res_libc.c: Likewise.
4635         * rt/Makefile: Likewise.
4636         * sysdeps/i386/asm-syntax.h: Likewise.
4637         * sysdeps/i386/sysdep.h: Likewise.
4638         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4639         * sysdeps/mach/sysdep.h: Likewise.
4640         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
4641         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
4642         * sysdeps/s390/asm-syntax.h: Likewise.
4643         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4644         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4645         * sysdeps/sh/sysdep.h: Likewise.
4646         * sysdeps/unix/sparc/sysdep.h: Likewise.
4647         * sysdeps/wordsize-32/divdi3.c: Likewise.
4648         * sysdeps/x86_64/sysdep.h: Likewise.
4649
4650         * argp/Versions: Remove _argp_unlock_xxx.
4651
4652         [BZ #13559]
4653         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
4654         * abilist/libBrokenLocale.abilist: Likewise.
4655         * abilist/libanl.abilist: Likewise.
4656         * abilist/libc.abilist: Likewise.
4657         * abilist/libcrypt.abilist: Likewise.
4658         * abilist/libdl.abilist: Likewise.
4659         * abilist/libm.abilist: Likewise.
4660         * abilist/libnsl.abilist: Likewise.
4661         * abilist/libpthread.abilist: Likewise.
4662         * abilist/libresolv.abilist: Likewise.
4663         * abilist/librt.abilist: Likewise.
4664         * abilist/libthread_db.abilist: Likewise.
4665         * abilist/libutil.abilist: Likewise.
4666         * abilist/libnss_db.abilist: New file.
4667
4668         * scripts/abilist.awk: Add support for indirect functions.
4669
4670         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
4671
4672         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
4673
4674         * shlib-versions: Remove entries for ports architectures.
4675
4676         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
4677         files in ports.
4678         * elf/stackguard-macros.h: Remove support for IA-64.
4679         * elf/tst-auditmod1.c: Likewise.
4680         * sysdeps/generic/ldsodefs.h: Likewise.
4681
4682         * sysdeps/unix/sysv/linux/configure.in: Ports should define
4683         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
4684         configure files.
4685
4686         [BZ #13552]
4687         * configure.in: Remove --enable-omitfp support.
4688         * FAQ.in: Adjust.
4689         * config.make.in: Likewise.
4690         * Makeconfig: Likewise.
4691         * manual/install.texi: Likewise.
4692
4693         In case anyone cares, the IA-64 architecture could move to ports.
4694         * sysdeps/ia64/*: Removed.
4695         * sysdeps/unix/sysv/linux/ia64/*: Removed.
4696         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
4697
4698         [BZ #13555]
4699         * configure.in: Remove entries for unsupported architectures.
4700
4701         [BZ #13533]
4702         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
4703         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
4704         routines.
4705         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
4706         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
4707         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
4708         fall back to using wcrtomb.
4709         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
4710         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
4711         renaming.
4712         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
4713         * wcsmbs/tst-c16c32-1.c: New file.
4714
4715         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
4716         local variable.
4717
4718         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
4719
4720         * elf/tst-unique3.cc: Add explicit declaration of gets.
4721         * elf/tst-unique3lib.cc: Likewise.
4722         * elf/tst-unique3lib2.cc: Likewise.
4723         * elf/tst-unique4.cc: Likewise.
4724
4725         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
4726
4727 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
4728
4729         [BZ #13566]
4730         * assert/assert.h (static_assert): Don't define for C++.
4731         * libio/stdio.h (gets): Do declare for C++ <= C++11.
4732         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
4733
4734 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
4735
4736         * iconv/loop.c (single loop): Fix assertion in storing of
4737         remaining bytes.
4738
4739         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
4740
4741 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
4742
4743         * posix/getconf.c: Update copyright year.
4744         * nss/getent.c: Likewise.
4745         * nss/makedb.c: Likewise.
4746         * iconv/iconvconfig.c: Likewise.
4747         * iconv/iconv_prog.c: Likewise.
4748         * elf/ldconfig.c: Likewise.
4749         * elf/pldd.c: Likewise.
4750         * elf/sotruss.ksh: Likewise.
4751         * catgets/gencat.c: Likewise.
4752         * csu/version.c: Likewise.
4753         * elf/ldd.bash.in: Likewise.
4754         * elf/sprof.c (print_version): Likewise.
4755         * locale/programs/locale.c: Likewise.
4756         * locale/programs/localedef.c: Likewise.
4757         * login/programs/pt_chown.c: Likewise.
4758         * nscd/nscd.c (print_version): Likewise.
4759         * debug/xtrace.sh: Likewise.
4760         * malloc/memusage.sh: Likewise.
4761         * malloc/mtrace.pl: Likewise.
4762         * debug/catchsegv.sh: Likewise.
4763
4764 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
4765
4766         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
4767         pure attribute.
4768
4769 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
4770
4771         [BZ #13533]
4772         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
4773         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
4774         transformations.
4775         * iconv/gconv_int.h: Likewise.
4776         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
4777         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
4778         from libc for GLIBC_2.16.
4779         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
4780         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
4781         * wcsmbs/uchar.h: Really define mbstate_t.
4782         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
4783         * wcsmbs/c16rtomb.c: New file.
4784         * wcsmbs/mbrtoc16.c: New file.
4785         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
4786         for C/POSIX locale.
4787         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
4788         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
4789
4790         * wcsmbs/wchar.h: Add missing __restrict.
4791
4792 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4793
4794         [BZ #13532]
4795         * time/Makefile (routines): Add timespec_get.
4796         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
4797         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
4798         timespec for ISO C11.
4799         * time/timespec_get.c: New file.
4800         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
4801         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
4802
4803         [BZ #13531]
4804         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
4805         * stdlib/stdlib.h: Declare aligned_alloc.
4806         * Versions.def: Add GLIBC_2.16 for libc.
4807         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
4808
4809         [BZ 13527]
4810         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
4811         ISO C11.
4812
4813         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
4814         code.
4815
4816         [BZ #13528]
4817         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
4818
4819         [BZ #13529]
4820         * assert/assert.h (static_assert): Define.
4821
4822         * version.h: Update for 2.16 development version.
4823
4824         [BZ #13526]
4825         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
4826         _ISOC11_SOURCE.
4827
4828         * version.h (RELEASE): Bump for 2.15 release.
4829         * include/features.h (__GLIBC_MINOR__): Bump to 15.
4830
4831         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
4832         Patch by Marek Polacek <mpolacek@redhat.com>.
4833
4834         * bits/byteswap.h: Protect long long constants with __extension__.
4835         * sysdeps/i386/bits/byteswap.h: Likewise.
4836         * sysdeps/ia64/bits/byteswap.h: Likewise.
4837         * sysdeps/s390/bits/byteswap.h: Likewise.
4838         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4839
4840 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4841
4842         [BZ #13540]
4843         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
4844         destination buffer.
4845         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
4846
4847 2011-12-23  Marek Polacek  <polacek@redhat.com>
4848
4849         * elf/dl-addr.c (determine_info): Add inline keyword.
4850         * elf/tst-auditmod4b.c (check_avx): Likewise.
4851         * elf/tst-auditmod6b.c (check_avx): Likewise.
4852         * elf/tst-auditmod6c.c (check_avx): Likewise.
4853         * elf/tst-auditmod7b.c (check_avx): Likewise.
4854
4855 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
4856
4857         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
4858         !__SSE_MATH__.
4859
4860 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4861
4862         [BZ #13540]
4863         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
4864         processing for last bytes.
4865
4866 2011-08-06  Bruno Haible  <bruno@clisp.org>
4867
4868         [BZ #13061]
4869         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
4870         U+0385, not to U+1FEE.
4871
4872         [BZ #13062]
4873         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
4874         entry for U+00A5 U+0301.
4875
4876 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
4877
4878         [BZ #13166]
4879         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
4880         buffer for the output is too small.
4881
4882         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
4883         optimization.
4884
4885         [BZ #13185]
4886         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
4887         SSE flags if possible.
4888
4889 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4890
4891         [BZ #13540]
4892         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
4893         processing for last bytes.
4894
4895 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
4896
4897         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
4898         (syscall-list-default-options, syscall-list-default-condition)
4899         (syscall-list-includes): Define.
4900         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
4901         list of ABIs and options and #if conditions for each ABI.  Do not
4902         handle common syscalls between ABIs specially.
4903         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
4904         Remove.
4905         (syscall-list-variants, syscall-list-32bit-options)
4906         (syscall-list-32bit-condition, syscall-list-64bit-options)
4907         (syscall-list-64bit-condition): Define.
4908         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
4909         (syscall-list-variants, syscall-list-32bit-options)
4910         (syscall-list-32bit-condition, syscall-list-64bit-options)
4911         (syscall-list-64bit-condition): Define.
4912         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
4913         Remove.
4914         (syscall-list-variants, syscall-list-32bit-options)
4915         (syscall-list-32bit-condition, syscall-list-64bit-options)
4916         (syscall-list-64bit-condition): Define.
4917         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
4918         Remove.
4919         (syscall-list-variants, syscall-list-32bit-options)
4920         (syscall-list-32bit-condition, syscall-list-64bit-options)
4921         (syscall-list-64bit-condition): Define.
4922
4923 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
4924
4925         * locale/iso-639.def: Add brx entry.
4926
4927         [BZ #13328]
4928         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
4929         Proposed by Mariusz_Cukr <marcukr@op.pl>.
4930
4931         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
4932         __feraiseexcept_renamed.
4933
4934 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
4935
4936         [BZ #13538]
4937         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
4938         EPOLLET with unsigned values.
4939         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
4940         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
4941
4942         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
4943         to large cancellation.
4944         * math/s_cacoshf.c: Likewise.
4945         * math/s_cacoshl.c: Likewise.
4946
4947 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
4948
4949         [BZ #13305]
4950         [BZ #12786]
4951         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
4952         * math/s_cacoshf.c: Likewise.
4953         * math/s_cacoshl.c: Likewise.
4954
4955 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
4956
4957         [BZ #13439]
4958         * iconv/gconv.h: Define __GCONV_SWAP.
4959         * iconvdata/unicode.c: The swap bit must be stored in __flags.
4960         * iconvdata/utf-16.c: Likewise.
4961         * iconvdata/utf-32.c: Likewise.
4962
4963 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
4964
4965         [BZ #13524]
4966         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
4967         numerator after shifting it by one limb.
4968
4969 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
4970
4971         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
4972         under [__USE_EXTERN_INLINES].
4973
4974 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
4975
4976         [BZ #13446]
4977         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
4978
4979 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4980
4981         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
4982         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
4983         optimized code.
4984         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
4985         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
4986         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
4987         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
4988         for strncasecmp/strncasecmp_l compilation.
4989         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
4990         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
4991
4992 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
4993
4994         [BZ #13484]
4995         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
4996         of __asm__.
4997
4998 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
4999
5000         [BZ #13506]
5001         * time/tzfile.c (__tzfile_read): Check values from file header.
5002
5003 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5004
5005         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5006         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5007         * powerpc/powerpc32/dl-start.S: Likewise.
5008         * powerpc/powerpc32/elf/start.S: Likewise.
5009         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5010         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5011         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5012         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5013         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5014         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5015         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5016         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5017         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5018         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5019         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5020         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5021         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5022         * powerpc/powerpc32/memset.S: Likewise.
5023         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5024         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5025         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5026         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5027         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5028         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5029         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5030         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5031         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5032         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5033         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5034         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5035         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5036
5037 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5038
5039         * math/libm-test.inc: Added more nearbyint tests.
5040         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5041         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5042         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5043         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5044
5045 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5046
5047         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5048         FD_CLOEXEC.
5049
5050 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5051
5052         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5053         Add wcscpy-ssse3 wcscpy-c.
5054         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5055         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5056         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5057         * sysdeps/x86_64/wcschr.S: New file.
5058         * sysdeps/x86_64/wcsrchr.S: New file.
5059         * string/test-strcmp.c: Remove checking of wcscmp function for
5060         wrong alignments.
5061         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5062         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5063         wcsrchr-sse2 wcsrchr-c.
5064         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5065         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5066         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5067         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5068         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5069         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5070         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5071         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5072         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5073         * wcsmbc/wcschr.c (WCSCHR): New macro.
5074
5075 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5076
5077         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5078         * wcsmbs/test-wcsrchr.c: New file.
5079         * string/test-strrchr.c: Add wcsrchr support.
5080         (WIDE): New macro.
5081         * wcsmbs/test-wcscpy.c: New file.
5082         * string/test-strcpy.c: Add wcscpy support.
5083         (WIDE): New macro.
5084
5085 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5086
5087         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5088         the inner loop.
5089
5090 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5091
5092         [BZ #13472]
5093         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5094
5095 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5096
5097         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5098         Minor optimizations.
5099
5100         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5101         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5102         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5103
5104 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5105
5106         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5107         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5108         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5109         for gcc to avoid warnings.
5110         * inet/Makefile (tests): Add tst-checks.
5111         * inet/tst-checks.c: New file.
5112
5113         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5114         warning.
5115
5116         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5117         __wmemcmp_sse2.
5118
5119         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5120         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5121
5122         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5123
5124 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5125
5126         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5127         problem.
5128
5129         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5130
5131 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5132
5133         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5134         conditional on GCC version.
5135         (__arch_compare_and_exchange_val_8_acq)
5136         (__arch_compare_and_exchange_val_16_acq)
5137         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5138         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5139         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5140
5141 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5142
5143         * sysdeps/sh/backtrace.c: New file.
5144
5145 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5146
5147         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5148         parenthesis.
5149
5150 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5151
5152         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5153         falling back to utime.
5154
5155 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5156
5157         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5158         expectations for float.
5159
5160 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5161
5162         * locale/weight.h (findidx): Add parameter len.
5163         * locale/weightwc.h (findidx): Likewise.
5164         * posix/fnmatch_loop.c (FCT): Adjust caller.
5165         * posix/regcomp.c (build_equiv_class): Likewise.
5166         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5167         * posix/regexec.c (check_node_accept_bytes): Likewise.
5168         * string/strcoll_l.c (STRCOLL): Likewise.
5169         * string/strxfrm_l.c (STRXFRM): Likewise.
5170
5171 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5172
5173         * Makefile.in: Remove CVSOPT handling.
5174         * configure.in: Remove use of AC_REVISION.
5175         * iconvdata/Makefile (distribute): No need to filter out CVS.
5176         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5177         handling.
5178
5179 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5180
5181         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5182         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5183         [USE_AS_STRNCASECMP_L]: Likewise.
5184         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5185         NO_TLS_DIRECT_SEG_REFS.
5186         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5187         Fix argument offsets for non-PIC.
5188         [USE_AS_STRNCASECMP_L]: Likewise.
5189         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5190         NO_TLS_DIRECT_SEG_REFS.
5191
5192 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5193
5194         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5195         O_CLOEXEC.
5196         * locale/loadlocale.c (_nl_load_locale): Likewise.
5197
5198 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5199
5200         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5201         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5202         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5203         (SYSCALL_GETTIME): Set errno on error.
5204
5205         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5206         count references to noai6ai_cached.
5207
5208 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5209
5210         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5211
5212         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5213         FD_CLOEXEC for /proc/self/maps.
5214
5215         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5216         FD_CLOEXEC for /proc/meminfo.
5217
5218         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5219         gai.conf.
5220
5221         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5222         FD_CLOEXEC for given file.
5223
5224         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5225
5226         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5227         FD_CLOEXEC for /etc/hosts.
5228         (_gethtent): Likewise.
5229
5230         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5231
5232         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5233         cancellation and set FD_CLOEXEC for /etc/netgroup.
5234
5235         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5236         reading /etc/publickey.
5237
5238         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5239         allow cancellation when reading /etc/group.
5240
5241         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5242         cancellation.
5243         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5244
5245         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5246         when using data file.
5247
5248         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5249
5250         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5251         (write_nis_obj): Use "c" and "e" in fopen.
5252
5253         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5254
5255         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5256
5257         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5258
5259         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5260
5261         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5262         locale.alias.
5263
5264         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5265
5266         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5267
5268         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5269
5270         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5271         file parsing and set FD_CLOEXEC.
5272
5273 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5274
5275         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5276
5277 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5278
5279         * malloc/arena.c (arena_get2): Don't call reused_arena when
5280         _int_new_arena failed.
5281
5282 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5283
5284         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5285         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5286         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5287         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5288         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5289         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5290         to compile strcasecmp and strncasecmp.
5291         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5292         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5293
5294         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5295
5296 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5297
5298         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5299         locale-defines.sym to gen-as-const-headers.
5300         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5301         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5302         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5303         to compile strcasecmp and strncasecmp.
5304         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5305         strcasecmp_l and strncasecmp_l.
5306         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5307         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5308         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5309         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5310         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5311         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5312         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5313         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5314         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5315         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5316         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5317
5318 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5319
5320         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5321         result of SYSDEP_GETTIME_CPU to retval.
5322         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5323         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5324
5325         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5326         variable.
5327
5328         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5329         mantissa words.
5330         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5331
5332         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5333         from unused variable.
5334
5335         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5336         DWARF definitions.
5337         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5338         for assembling.
5339
5340         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5341         over namespaces.
5342
5343         * sunrpc/rpc_prot.c (rejected): Fix case value.
5344
5345         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5346         unsigned long long int to avoid warnings in shift.
5347
5348         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5349         of use of trans.
5350         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5351         variable tmp.
5352
5353         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5354         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5355         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5356
5357         * nis/nis_table.c (nis_list): Use variable of correct type for
5358         result of __follow_path call.
5359
5360 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5361
5362         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5363         of math functions ceil, trunc, floor, round, and sqrt, when
5364         avaliable on the platform.
5365         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5366         name clash.
5367         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5368         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5369         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5370
5371 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5372
5373         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5374         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5375
5376 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5377
5378         * include/unistd.h: Fix __readlink return type.
5379         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5380
5381 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5382
5383         * stdlib/ucontext.h: Undo last change for makecontext.
5384
5385 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5386
5387         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5388
5389         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5390         * setjmp/setjmp.h: Mark functions as non-leaf.
5391         * setjmp/bits/setjmp2.h: Likewise.
5392         * stdlib/ucontext.h: Likewise.
5393
5394 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5395
5396         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5397         (reused_arena): Don't check arena limit.
5398         (arena_get2): Atomically check arena limit.
5399
5400 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5401
5402         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5403         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5404
5405         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5406         instructions.
5407
5408 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5409
5410         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5411         handler when locking.
5412
5413         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5414         Fix size of allocated buffer.
5415
5416 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5417
5418         [BZ #10103]
5419         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5420         declarations for long double functions.
5421         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5422
5423         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5424
5425 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5426
5427         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5428         installed.
5429
5430         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5431         is disabled.
5432
5433 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5434
5435         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5436
5437 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5438
5439         * include/alloca.h (stackinfo_alloca_round): Define.
5440         (extend_alloca): Use it.
5441         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5442         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5443         here.
5444
5445         * scripts/check-local-headers.sh: Ignore libaudit.h.
5446
5447         * nscd/Makefile (extra-objs): Make recursively expanded.
5448
5449 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5450
5451         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5452         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5453
5454         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5455         * posix/tst-rfc3484-2.c: Likewise.
5456         * posix/tst-rfc3484-3.c: Likewise.
5457
5458         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5459         process_vm_writev.
5460         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5461         process_vm_writev.
5462         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5463         process_vm_writev from libc using GLIBC_2.15 version.
5464
5465         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5466
5467 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5468
5469         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5470         stack usage.
5471
5472 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5473
5474         [BZ #13367]
5475         * nss/getent.c (initgroups_keys): Show error message in case no group
5476         names are given.
5477
5478         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5479         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5480         __bump_nl_timestamp.
5481         * nscd/connections (nscd_init): When host database is served open
5482         netlink socket and request notification about configuration changes.
5483         (main_loop_poll): Track netlink file descriptor and bump timestamp
5484         in case data becomes available.
5485         (main_loop_epoll): Likewise.
5486         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5487         (database_pers_head): Add extra_data fileds.
5488         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5489         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5490         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5491         Adjust caller.
5492         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5493         in6ai data, call __free_in6ai.
5494         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5495         Add -DHAVE_NETLINK.
5496         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5497         interface information.  Reuse previous data if netlink timestamp
5498         is not changed.
5499         (__bump_nl_timestamp): New function.
5500         (__free_in6ai): New function.
5501
5502 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5503
5504         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5505         close_not_cancel_no_status here.
5506         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5507
5508 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5509
5510         [BZ #13276]
5511         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5512         return value.
5513
5514         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5515         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5516         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5517
5518 2011-07-03  Andreas Jaeger  <aj@suse.de>
5519
5520         [BZ #10709]
5521         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5522         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5523         * math/libm-test.inc (sin_test): Add test case.
5524
5525 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5526
5527         [BZ #13337]
5528         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5529         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5530
5531         * elf/chroot_canon.c (chroot_canon): Cleanups.
5532
5533         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
5534
5535         [BZ #13335]
5536         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
5537         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5538
5539         * string/test-strchr.c: Make usable for strchrnul testing.
5540         * string/test-strchrnul.c: New file.
5541         * string/Makefile (strop-tests): Add strchrnul.
5542
5543         * po/it.po: Update from translation team.
5544         * po/es.po: Likewise.
5545
5546 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
5547
5548         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
5549         the three constants needed as parameters.  Drop the others.
5550         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
5551         __m128i_strloadu_tolower.
5552         Create and initialize variable zero and use it in all the places
5553         where _mm_setzero_si128 was used.
5554
5555         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
5556         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
5557         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
5558         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
5559         anymore.
5560         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
5561         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
5562         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
5563         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
5564         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
5565         __mpranred, __mptan.
5566         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
5567         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
5568         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
5569         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
5570         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
5571         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
5572         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
5573         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
5574         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
5575
5576 2011-10-28  Andreas Schwab  <schwab@redhat.com>
5577
5578         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
5579         redefine if SHARED.
5580         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
5581
5582         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
5583         wide char related routines to wcsmbs subdir.
5584
5585 2011-10-27  Andreas Schwab  <schwab@redhat.com>
5586
5587         [BZ #13344]
5588         * misc/sys/cdefs.h (__THROWNL): Define.
5589         * posix/unistd.h: Use __THREADNL instead of __THREAD
5590         for memory synchronization functions.
5591
5592 2011-10-26  Roland McGrath  <roland@hack.frob.com>
5593
5594         [BZ #13349]
5595         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
5596         doesn't exist.
5597         * manual/stdio.texi (Obstack Streams): Node removed.
5598
5599 2011-10-26  Andreas Schwab  <schwab@redhat.com>
5600
5601         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
5602         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5603         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5604
5605         * math/math_private.h (math_force_eval): Allow non-addressable
5606         arguments.
5607         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
5608
5609 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5610
5611         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
5612         file is not needed.
5613
5614         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
5615         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
5616         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
5617         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
5618         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
5619         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
5620         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
5621         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
5622         Add AVX variants.
5623         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
5624         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
5625         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
5626         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
5627         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
5628         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
5629         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
5630         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
5631         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
5632         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
5633         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
5634         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
5635         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
5636         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
5637         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
5638         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
5639         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
5640         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
5641         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
5642
5643         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
5644         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
5645
5646         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
5647         place.  Use VEX encoding when compiling for AVX.
5648
5649 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5650
5651         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
5652         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
5653
5654         * string/test-strchr.c (do_test): Don't generate NUL bytes.
5655
5656 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5657
5658         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
5659         useless if() expression.
5660         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5661         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5662         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5663         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5664         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5665         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5666         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5667         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5668         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5669         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5670         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5671         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5672         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5673         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
5674         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
5675         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5676         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
5677         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
5678         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5679
5680         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
5681
5682 2011-10-25  Andreas Schwab  <schwab@redhat.com>
5683
5684         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
5685         condition.
5686         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5687
5688 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
5689
5690         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
5691         .text section.  Avoid duplicate constants.
5692         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5693         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5694         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5695         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5696         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5697         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5698         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5699         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5700         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
5701         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
5702         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
5703         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5704         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
5705         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
5706         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5707         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
5708         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5709         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
5710         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5711         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5712         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5713         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5714         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5715         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
5716         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
5717         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
5718         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
5719         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
5720         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
5721         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
5722         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
5723         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
5724         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5725         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
5726         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
5727         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
5728         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
5729         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
5730         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
5731         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
5732         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
5733         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
5734         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
5735         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
5736         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
5737
5738 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
5739
5740         * sysdeps/x86_64/dla.h: Move to ...
5741         * sysdeps/x86_64/fpu/dla.h: ...here.
5742         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
5743         situations.  Use __builtin_fma only for gcc 4.6 and up.
5744
5745         * config.make.in: Add have-mfma4 entry.
5746         * configure.in: Substitute libc_cv_cc_fma4.
5747         * math/Makefile (dbl-only-routines): Add sincostab.
5748         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
5749         Use __sincostab not sincos.
5750         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
5751         name is a macro.
5752         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5753         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5754         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5755         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
5756         using __copysign.
5757         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
5758         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
5759         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
5760         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
5761         and __inv.
5762         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
5763         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
5764         __copysign.
5765         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
5766         define aliases when function name is a macro.
5767         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
5768         sysdeps/ieee754/dbl-64/sincos.tbl.
5769         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
5770         fma4-enabled routines.
5771         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
5772         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
5773         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
5774         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
5775         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
5776         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
5777         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
5778         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
5779         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
5780         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
5781         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
5782         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
5783         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
5784         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
5785         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
5786         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
5787         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
5788         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
5789         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
5790         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
5791         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
5792         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
5793         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
5794         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
5795         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
5796         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
5797         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
5798         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
5799         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
5800         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
5801
5802         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
5803         rename.
5804         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5805         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5806         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5807         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5808         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5809         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5810         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5811         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5812
5813 2011-10-24  Andreas Schwab  <schwab@redhat.com>
5814
5815         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
5816
5817 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5818
5819         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
5820
5821         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
5822         prediction.
5823         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
5824
5825         * string/strnlen.c: Don't define STRNLEN, reverse logic.
5826         Remove unused variable magic_bits.
5827         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
5828
5829         * string/strnlen.c: Define and use STRNLEN macro.
5830         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
5831         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
5832         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
5833         * wcsmbs/wcslen.c: Define and use WCSLEN.
5834         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
5835         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
5836         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
5837         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
5838         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
5839         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
5840         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
5841
5842 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5843
5844         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5845         strnlen-sse2-no-bsf.
5846         Rename strlen-no-bsf to strlen-sse2-no-bsf.
5847         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
5848         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
5849         Add strnlen support.
5850         (USE_AS_STRNLEN): New macro.
5851         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
5852         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
5853         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
5854         * sysdeps/x86_64/wcslen.S: New file.
5855
5856 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
5857
5858         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5859         XMM-moves are used for copying on small sizes.
5860
5861 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5862
5863         * wcsmbs/Makefile (strop-tests): Add wcschr.
5864         * wcsmbs/test-wcschr.c: New file.
5865         * string/test-strchr.c: Update.
5866         Add wcschr support.
5867         (WIDE): New macro.
5868
5869 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5870
5871         * wcsmbs/Makefile (strop-tests): Add wcslen.
5872         * wcsmbs/test-wcslen.c: New file.
5873         * string/test-strlen.c: Update.
5874         Add wcslen support.
5875         (WIDE): New macro.
5876
5877 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5878
5879         * po/it.po: Update from translation team.
5880
5881 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5882
5883         * sysdeps/x86_64/wcscmp.S: Update.
5884         Fix wrong comparison semantics.
5885         wcscmp shall use signed comparison not unsigned.
5886         Don't use substraction to avoid overflow bug.
5887         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
5888         * wcsmbc/wcscmp.c: Likewise.
5889         * string/test-strcmp.c: Likewise.
5890         Add new tests to check cases with negative values.
5891
5892 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
5893
5894         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
5895         * sysdeps/x86_64/dla.h: ...here.  New file.
5896         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
5897         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5898         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5899         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5900         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5901         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5902         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5903         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5904         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5905
5906 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
5907
5908         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
5909         __ynl_finite aliases.
5910
5911 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
5912
5913         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5914
5915         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
5916         define DLA_FMA.
5917         [DLA_FMA] (EMULV): Use DLA_FMA.
5918         [DLA_FMA] (MUL12): Use EMULV.
5919         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
5920         that are not needed.
5921         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5922         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5923         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5924         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5925         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5926         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5927         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5928
5929 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
5930
5931         * math/s_nan.c: Undef __nan.
5932         * math/s_nanf.c: Undef __nanf.
5933         * math/s_nanl.c: Undef __nanl.
5934         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
5935         "math_private.h".
5936
5937 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
5938
5939         * math/s_catan.c: Add branch predictions.
5940         * math/s_catanf.c: Likewise.
5941         * math/s_catanh.c: Likewise.
5942         * math/s_catanhf.c: Likewise.
5943         * math/s_catanhl.c: Likewise.
5944         * math/s_catanl.c: Likewise.
5945         * math/s_cexp.c: Likewise.
5946         * math/s_cexpf.c: Likewise.
5947         * math/s_cexpl.c: Likewise.
5948         * math/s_clog.c: Likewise.
5949         * math/s_clog10.c: Likewise.
5950         * math/s_clog10f.c: Likewise.
5951         * math/s_clog10l.c: Likewise.
5952         * math/s_clogf.c: Likewise.
5953         * math/s_clogl.c: Likewise.
5954         * math/s_csqrt.c: Likewise.
5955         * math/s_csqrtf.c: Likewise.
5956         * math/s_csqrtl.c: Likewise.
5957         * math/s_ctanf.c: Likewise.
5958         * math/s_ctanh.c: Likewise.
5959         * math/s_ctanhf.c: Likewise.
5960         * math/s_ctanhl.c: Likewise.
5961         * math/s_ctanl.c: Likewise.
5962
5963         * math/math_private.h: Define __nan, __nanf, __nanl.
5964         * math/s_cacosh.c: Include <math_private.h>.
5965         * math/s_cacoshl.c: Likewise.
5966         * math/s_casinh.c: Likewise.
5967         * math/s_casinhf.c: Likewise.
5968         * math/s_casinhl.c: Likewise.
5969         * math/s_ccos.c: Rely entire on ccosh.
5970         * math/s_ccosf.c: Rely entire on ccoshf.
5971         * math/s_ccosl.c: Rely entirely on ccoshl.
5972         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
5973         Remove tests for FE_INVALID.
5974         * math/s_ccoshf.c: Likewise.
5975         * math/s_ccoshl.c: Likewise.
5976         * math/s_csin.c: Likewise.
5977         * math/s_csinf.c: Likewise.
5978         * math/s_csinh.c Likewise.
5979         * math/s_csinhf.c: Likewise.
5980         * math/s_csinhl.c: Likewise.
5981         * math/s_csinl.c: Likewise.
5982         * math/s_ctan.c: Likewise.
5983         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
5984         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
5985         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
5986
5987 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
5988
5989         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
5990         compilation problems.
5991
5992         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
5993         __builtin_expect.
5994
5995 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
5996
5997         * sysdeps/i386/configure.in: Test for -mfma4 option.
5998         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
5999         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6000         COMMON_CPUID_INDEX_80000001.
6001         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6002         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6003         use it if FMA3 is not supported.
6004         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6005
6006         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6007         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6008
6009 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6010
6011         [BZ #12892]
6012         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6013         it would create a cycle with a link time dependency.
6014
6015 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6016
6017         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6018         instruction.
6019         * string/Makefile (strop-tests): Add rawmemchr.
6020         * string/test-rawmemchr.c: New file.
6021
6022         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6023         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6024         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6025         when compiling str{,n}casecmp and when AVX is available.  Hook up
6026         new optimized code in initializers.
6027
6028 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6029
6030         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6031         __feraiseexcept instead of feraiseexcept.
6032
6033 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6034
6035         * math/math_private.h: Define defaults for libc_fetestexcept and
6036         libc_feupdateenv.
6037         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6038         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6039         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6040         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6041         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6042         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6043         libc_fetestexcept and libc_feupdateenv.
6044
6045         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6046         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6047         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6048         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6049         libc_feholdexcept_setround.
6050
6051         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6052         Add s_nearbyint-c and s_nearbyintf-c.
6053         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6054         nearbyintf inlines.
6055         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6056         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6057         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6058         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6059
6060         * math/math_private.h: Define defaults for libc_fegetround,
6061         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6062         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6063         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6064         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6065         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6066         standard functions.
6067         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6068         Remove comments and hacks for old compiler versions.
6069         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6070         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6071         libc_feholdexceptl.
6072
6073 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6074
6075         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6076         (__feraiseexcept_renamed): Add __NTH.
6077         (feraiseexcept): Add __NTH.  Rename local variables to fix
6078         namespace violations.
6079
6080 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6081
6082         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6083
6084         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6085
6086         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6087         recently added interfaces.
6088         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6089
6090         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6091         about macro parameter expansion.
6092
6093         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6094         __NO_MATH_INLINES is defined.  Cleanups.
6095
6096         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6097         and __floorf is target has SSE4.1.
6098         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6099         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6100         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6101         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6102
6103         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6104         name.
6105         (floorf): Likewise.
6106
6107         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6108
6109 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6110
6111         * misc/sys/cdefs.h: Fix last change.
6112
6113         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6114         database lookup.
6115
6116 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6117
6118         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6119
6120         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6121         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6122         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6123         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6124         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6125         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6126         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6127         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6128         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6129         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6130         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6131         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6132         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6133         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6134         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6135         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6136         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6137         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6138         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6139         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6140         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6141         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6142
6143         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6144         ceil, ceilf, floor, floorf.
6145
6146         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6147         Perform IRELATIVE relocations last.
6148
6149         * elf/do-rel.h: Add another parameter nrelative, replacing the
6150         local variable with the same name.  Change name of the function
6151         to end in Rel or Rela (uppercase).
6152         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6153         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6154         elf_dynamic_do_##reloc function.
6155
6156 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6157
6158         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6159         is sufficient, at least on modern CPUs.
6160
6161         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6162
6163         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6164         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6165
6166         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6167         __expl_finite.
6168         * math/bits/math-finite.h: Add entries for exp.
6169         * math/e_expl.c: Add __*_finite alias.
6170         * sysdeps/i386/fpu/e_exp.S: Likewise.
6171         * sysdeps/i386/fpu/e_expf.S: Likewise.
6172         * sysdeps/i386/fpu/e_expl.c: Likewise.
6173         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6174         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6175         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6176         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6177         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6178         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6179         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6180
6181         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6182         is sufficient, at least on modern CPUs.
6183
6184         * ctype/ctype-info.c (__ctype_init): Define.
6185         * include/ctype.h (__ctype_init): Declare.
6186         (__ctype_b_loc): The variable is always initialized.
6187         (__ctype_toupper_loc): Likewise.
6188         (__ctype_tolower_loc): Likewise.
6189         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6190         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6191
6192 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6193
6194         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6195
6196         * configure.in: Also look in $cxxmachine/include for C++ system
6197         headers.
6198
6199 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6200
6201         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6202         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6203         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6204         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6205         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6206         (USE_AS_WMEMCMP): New macro.
6207         Fixing indents.
6208         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6209         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6210         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6211         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6212         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6213         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6214         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6215         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6216         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6217         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6218         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6219         (USE_AS_WMEMCMP): New macro.
6220         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6221         * sysdeps/string/test-memcmp.c: Update.
6222         Fix simple_wmemcmp.
6223         Add new tests.
6224         * wcsmbs/wmemcmp.c: Update.
6225         (WMEMCMP): New macro.
6226         Fix overflow bug.
6227
6228 2011-10-12  Andreas Jaeger  <aj@suse.de>
6229
6230         [BZ #13268]
6231         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6232
6233 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6234
6235         * libio/iofwide.c (do_length): Avoid warning.
6236
6237         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6238
6239 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6240
6241         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6242
6243         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6244         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6245         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6246         * sysdeps/i386/i686/fpu/e_log.S: New file.
6247         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6248         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6249
6250         * ctype/ctype.h: Add support for inlined isXXX functions when
6251         compiling C++ code.
6252
6253 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6254
6255         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6256
6257         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6258
6259 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6260
6261         [BZ #13291]
6262         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6263
6264 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6265
6266         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6267         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6268         feraiseexcept.
6269
6270         * sysdeps/x86_64/memrchr.S: Check for zero size.
6271
6272         * string/stratcliff.c: Add memrchr tests.
6273
6274 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6275
6276         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6277         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6278         rawmemchr-sse2 rawmemchr-sse2-bsf.
6279         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6280         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6281         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6282         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6283         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6284         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6285         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6286         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6287         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6288         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6289         * string/memrchr.c (MEMRCHR): New macro.
6290
6291 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6292
6293         Add integration with gcc's -ffinite-math-only and optimize wrapper
6294         functions in libm.
6295         * Versions.def: Define GLIBC_2.15 version for libm.
6296         * math/Makefile (headers): Add bits/math-finite.h.
6297         * math/bits/math-finite.h: New file.
6298         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6299         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6300         * math/e_acoshl.c: Add __*_finite alias.
6301         * math/e_acosl.c: Likewise.
6302         * math/e_asinl.c: Likewise.
6303         * math/e_atan2l.c: Likewise.
6304         * math/e_atanhl.c: Likewise.
6305         * math/e_coshl.c: Likewise.
6306         * math/e_exp10.c: Likewise.
6307         * math/e_exp10f.c: Likewise.
6308         * math/e_exp10l.c: Likewise.
6309         * math/e_exp2l.c: Likewise.
6310         * math/e_fmodl.c: Likewise.
6311         * math/e_gammal_r.c: Likewise.
6312         * math/e_hypotl.c: Likewise.
6313         * math/e_j0l.c: Likewise.
6314         * math/e_j1l.c: Likewise.
6315         * math/e_jnl.c: Likewise.
6316         * math/e_lgammal_r.c: Likewise.
6317         * math/e_log10l.c: Likewise.
6318         * math/e_log2l.c: Likewise.
6319         * math/e_logl.c: Likewise.
6320         * math/e_powl.c: Likewise.
6321         * math/e_sinhl.c: Likewise.
6322         * math/e_sqrtl.c: Likewise.
6323         * math/e_scalb.c: Completely rewritten and optimized.
6324         * math/e_scalbf.c: Likewise.
6325         * math/e_scalbl.c: Likewise.
6326         * math/w_acos.c: Likewise.
6327         * math/w_acosf.c: Likewise.
6328         * math/w_acosl.c: Likewise.
6329         * math/w_acosh.c: Likewise.
6330         * math/w_acoshf.c: Likewise.
6331         * math/w_acoshl.c: Likewise.
6332         * math/w_asin.c: Likewise.
6333         * math/w_asinf.c: Likewise.
6334         * math/w_asinl.c: Likewise.
6335         * math/w_atan2.c: Likewise.
6336         * math/w_atan2f.c: Likewise.
6337         * math/w_atan2l.c: Likewise.
6338         * math/w_atanh.c: Likewise.
6339         * math/w_atanhf.c: Likewise.
6340         * math/w_atanhl.c: Likewise.
6341         * math/w_exp10.c: Likewise.
6342         * math/w_exp10f.c: Likewise.
6343         * math/w_exp10l.c: Likewise.
6344         * math/w_fmod.c: Likewise.
6345         * math/w_fmodf.c: Likewise.
6346         * math/w_fmodl.c: Likewise.
6347         * math/w_j0.c: Likewise.
6348         * math/w_j0f.c: Likewise.
6349         * math/w_j0l.c: Likewise.
6350         * math/w_j1.c: Likewise.
6351         * math/w_j1f.c: Likewise.
6352         * math/w_j1l.c: Likewise.
6353         * math/w_jn.c: Likewise.
6354         * math/w_jnf.c: Likewise.
6355         * math/w_log.c: Likewise.
6356         * math/w_logf.c: Likewise.
6357         * math/w_logl.c: Likewise.
6358         * math/w_log10.c: Likewise.
6359         * math/w_log10f.c: Likewise.
6360         * math/w_log10l.c: Likewise.
6361         * math/w_log2.c: Likewise.
6362         * math/w_log2f.c: Likewise.
6363         * math/w_log2l.c: Likewise.
6364         * math/w_pow.c: Likewise.
6365         * math/w_powf.c: Likewise.
6366         * math/w_powl.c: Likewise.
6367         * math/w_remainder.c: Likewise.
6368         * math/w_remainderf.c: Likewise.
6369         * math/w_remainderl.c: Likewise.
6370         * math/w_scalb.c: Likewise.
6371         * math/w_scalbf.c: Likewise.
6372         * math/w_scalbl.c: Likewise.
6373         * math/w_sqrt.c: Likewise.
6374         * math/w_sqrtf.c: Likewise.
6375         * math/w_sqrtl.c: Likewise.
6376         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6377         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6378         used.
6379         * math/math_private.h: Declare __kernel_standard_f.
6380         * math/w_cosh.c: Remove cruft and optimize a bit.
6381         * math/w_coshf.c: Likewise.
6382         * math/w_coshl.c: Likewise.
6383         * math/w_exp2.c: Likewise.
6384         * math/w_exp2f.c: Likewise.
6385         * math/w_exp2l.c: Likewise.
6386         * math/w_hypot.c: Likewise.
6387         * math/w_hypotf.c: Likewise.
6388         * math/w_hypotl.c: Likewise.
6389         * math/w_lgamma.c: Likewise.
6390         * math/w_lgamma_r.c: Likewise.
6391         * math/w_lgammaf.c: Likewise.
6392         * math/w_lgammaf_r.c: Likewise.
6393         * math/w_lgammal.c: Likewise.
6394         * math/w_lgammal_r.c: Likewise.
6395         * math/w_sinh.c: Likewise.
6396         * math/w_sinhf.c: Likewise.
6397         * math/w_sinhl.c: Likewise.
6398         * math/w_tgamma.c: Likewise.
6399         * math/w_tgammaf.c: Likewise.
6400         * math/w_tgammal.c: Likewise.
6401         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6402         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6403         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6404         Minor optimizations.  Pretty printing.  Remove cruft.
6405         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6406         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6407         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6408         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6409         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6410         * sysdeps/i386/fpu/e_asin.S: Likewise.
6411         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6412         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6413         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6414         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6415         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6416         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6417         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6418         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6419         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6420         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6421         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6422         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6423         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6424         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6425         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6426         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6427         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6428         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6429         * sysdeps/i386/fpu/e_log.S: Likewise.
6430         * sysdeps/i386/fpu/e_log10.S: Likewise.
6431         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6432         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6433         * sysdeps/i386/fpu/e_log2.S: Likewise.
6434         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6435         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6436         * sysdeps/i386/fpu/e_logf.S: Likewise.
6437         * sysdeps/i386/fpu/e_logl.S: Likewise.
6438         * sysdeps/i386/fpu/e_pow.S: Likewise.
6439         * sysdeps/i386/fpu/e_powf.S: Likewise.
6440         * sysdeps/i386/fpu/e_powl.S: Likewise.
6441         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6442         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6443         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6444         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6445         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6446         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6447         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6448         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6449         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6450         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6451         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6452         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6453         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6454         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6455         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6456         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6457         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6458         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6459         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6460         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6461         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6462         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6463         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6464         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6465         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6466         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6467         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6468         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6469         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6470         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6471         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6472         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6473         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6474         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6475         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6476         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6477         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6478         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6479         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6480         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6481         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6482         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6483         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6484         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6485         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6486         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6487         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6488         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6489         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6490         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6491         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6492         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6493         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6494         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6495         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6496         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6497         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6498         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6499         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6500         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6501         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6502         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6503         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6504         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6505         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6506         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6507         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6508         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6509         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6510         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6511         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6512         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6513         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6514         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6515         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6516         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6517         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6518         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6519         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6520         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6521         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6522         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6523         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6524         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6525         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6526         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6527         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6528         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6529         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6530         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6531         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6532         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6533         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6534         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6535         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6536         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6537         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6538         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6539         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6540         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6541         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6542         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6543         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6544         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6545         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6546         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6547         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6548         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6549         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6550         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
6551         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
6552         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
6553         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
6554         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6555         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6556         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6557         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6558         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
6559         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6560         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
6561         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
6562         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
6563         (__isnanf): Likewise.
6564         (__isinf_ns): Likewise.
6565         (__isinf_nsf): Likewise.
6566         (__finite): Likewise.
6567         (__finitef): Likewise.
6568         (__ieee754_sqrt): Define as macro.
6569         (__ieee754_sqrtf): Define as macro.
6570         (__ieee754_sqrtl): Define as macro.
6571         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
6572         inlined copy.
6573         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
6574         __FINITE_MATH_ONLY__ consistent.
6575         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
6576
6577 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
6578
6579         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
6580         of rawmemchr.
6581
6582         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
6583
6584 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
6585
6586         * po/ja.po: Update from translation team.
6587
6588 2011-10-08  Roland McGrath  <roland@hack.frob.com>
6589
6590         * locale/programs/locarchive.c (prepare_address_space): New function.
6591         (create_archive, enlarge_archive, open_archive): Use it.
6592
6593         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
6594         inside [SHARED], where it is used.
6595
6596         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
6597
6598         * nss/getent.c (netgroup_keys): Remove unused variable.
6599         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6600
6601 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
6602
6603         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
6604         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
6605         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
6606         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
6607         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
6608         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
6609         * math/Makefile (libm-calls): Add s_isinf_ns.
6610         * math/divtc3.c: Use __isinf_nsl instead of isinf.
6611         * math/multc3.c: Likewise.
6612         * math/s_casin.c: Likewise.
6613         * math/s_casinf.c: Likewise.
6614         * math/s_casinl.c: Likewise.
6615         * math/s_ccos.c: Likewise.
6616         * math/s_ccosf.c: Likewise.
6617         * math/s_ccosl.c: Likewise.
6618         * math/s_ctan.c: Likewise.
6619         * math/s_ctanf.c: Likewise.
6620         * math/s_ctanh.c: Likewise.
6621         * math/s_ctanhf.c: Likewise.
6622         * math/s_ctanhl.c: Likewise.
6623         * math/s_ctanl.c: Likewise.
6624         * math/w_fmod.c: Likewise.
6625         * math/w_fmodf.c: Likewise.
6626         * math/w_fmodl.c: Likewise.
6627         * math/w_remainder.c: Likewise.
6628         * math/w_remainderf.c: Likewise.
6629         * math/w_remainderl.c: Likewise.
6630         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
6631         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
6632         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
6633         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
6634         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
6635         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
6636         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
6637         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
6638
6639         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
6640         of the number.
6641         * stdio-common/printf_fphex.c: Likewise.
6642         * stdio-common/printf_size.c: Likewise.
6643
6644         * math/e_exp10.c: Include math_private.h using <...> not "...".
6645         * math/e_exp10f.c: Likewise.
6646         * math/e_exp10l.c: Likewise.
6647         * math/e_exp2l.c: Likewise.
6648         * math/e_j0l.c: Likewise.
6649         * math/e_j1l.c: Likewise.
6650         * math/e_jnl.c: Likewise.
6651         * math/e_lgammal_r.c: Likewise.
6652         * math/e_rem_pio2l.c: Likewise.
6653         * math/e_scalb.c: Likewise.
6654         * math/e_scalbf.c: Likewise.
6655         * math/e_scalbl.c: Likewise.
6656         * math/k_cosl.c: Likewise.
6657         * math/k_sinl.c: Likewise.
6658         * math/k_tanl.c: Likewise.
6659         * math/s_cacoshf.c: Likewise.
6660         * math/s_catan.c: Likewise.
6661         * math/s_catanf.c: Likewise.
6662         * math/s_catanh.c: Likewise.
6663         * math/s_catanhf.c: Likewise.
6664         * math/s_catanhl.c: Likewise.
6665         * math/s_catanl.c: Likewise.
6666         * math/s_ccosh.c: Likewise.
6667         * math/s_ccoshf.c: Likewise.
6668         * math/s_ccoshl.c: Likewise.
6669         * math/s_cexp.c: Likewise.
6670         * math/s_cexpf.c: Likewise.
6671         * math/s_cexpl.c: Likewise.
6672         * math/s_clog.c: Likewise.
6673         * math/s_clog10.c: Likewise.
6674         * math/s_clog10f.c: Likewise.
6675         * math/s_clog10l.c: Likewise.
6676         * math/s_clogf.c: Likewise.
6677         * math/s_clogl.c: Likewise.
6678         * math/s_csin.c: Likewise.
6679         * math/s_csinf.c: Likewise.
6680         * math/s_csinh.c: Likewise.
6681         * math/s_csinhf.c: Likewise.
6682         * math/s_csinhl.c: Likewise.
6683         * math/s_csinl.c: Likewise.
6684         * math/s_csqrt.c: Likewise.
6685         * math/s_csqrtf.c: Likewise.
6686         * math/s_csqrtl.c: Likewise.
6687         * math/s_ctan.c: Likewise.
6688         * math/s_ctanf.c: Likewise.
6689         * math/s_ctanh.c: Likewise.
6690         * math/s_ctanhf.c: Likewise.
6691         * math/s_ctanhl.c: Likewise.
6692         * math/s_ctanl.c: Likewise.
6693         * math/s_ldexp.c: Likewise.
6694         * math/s_ldexpf.c: Likewise.
6695         * math/s_ldexpl.c: Likewise.
6696         * math/s_significand.c: Likewise.
6697         * math/s_significandf.c: Likewise.
6698         * math/s_significandl.c: Likewise.
6699         * math/w_acos.c: Likewise.
6700         * math/w_acosf.c: Likewise.
6701         * math/w_acosh.c: Likewise.
6702         * math/w_acoshf.c: Likewise.
6703         * math/w_acoshl.c: Likewise.
6704         * math/w_acosl.c: Likewise.
6705         * math/w_asin.c: Likewise.
6706         * math/w_asinf.c: Likewise.
6707         * math/w_asinl.c: Likewise.
6708         * math/w_atan2.c: Likewise.
6709         * math/w_atan2f.c: Likewise.
6710         * math/w_atan2l.c: Likewise.
6711         * math/w_atanh.c: Likewise.
6712         * math/w_atanhf.c: Likewise.
6713         * math/w_atanhl.c: Likewise.
6714         * math/w_cosh.c: Likewise.
6715         * math/w_coshf.c: Likewise.
6716         * math/w_coshl.c: Likewise.
6717         * math/w_dremf.c: Likewise.
6718         * math/w_exp10.c: Likewise.
6719         * math/w_exp10f.c: Likewise.
6720         * math/w_exp10l.c: Likewise.
6721         * math/w_exp2.c: Likewise.
6722         * math/w_exp2f.c: Likewise.
6723         * math/w_fmod.c: Likewise.
6724         * math/w_fmodf.c: Likewise.
6725         * math/w_fmodl.c: Likewise.
6726         * math/w_hypot.c: Likewise.
6727         * math/w_hypotf.c: Likewise.
6728         * math/w_hypotl.c: Likewise.
6729         * math/w_j0.c: Likewise.
6730         * math/w_j0f.c: Likewise.
6731         * math/w_j0l.c: Likewise.
6732         * math/w_j1.c: Likewise.
6733         * math/w_j1f.c: Likewise.
6734         * math/w_j1l.c: Likewise.
6735         * math/w_jn.c: Likewise.
6736         * math/w_jnf.c: Likewise.
6737         * math/w_jnl.c: Likewise.
6738         * math/w_lgamma.c: Likewise.
6739         * math/w_lgamma_r.c: Likewise.
6740         * math/w_lgammaf.c: Likewise.
6741         * math/w_lgammaf_r.c: Likewise.
6742         * math/w_lgammal.c: Likewise.
6743         * math/w_lgammal_r.c: Likewise.
6744         * math/w_log.c: Likewise.
6745         * math/w_log10.c: Likewise.
6746         * math/w_log10f.c: Likewise.
6747         * math/w_log10l.c: Likewise.
6748         * math/w_log2.c: Likewise.
6749         * math/w_log2f.c: Likewise.
6750         * math/w_log2l.c: Likewise.
6751         * math/w_logf.c: Likewise.
6752         * math/w_logl.c: Likewise.
6753         * math/w_pow.c: Likewise.
6754         * math/w_powf.c: Likewise.
6755         * math/w_powl.c: Likewise.
6756         * math/w_remainder.c: Likewise.
6757         * math/w_remainderf.c: Likewise.
6758         * math/w_remainderl.c: Likewise.
6759         * math/w_scalb.c: Likewise.
6760         * math/w_scalbf.c: Likewise.
6761         * math/w_scalbl.c: Likewise.
6762         * math/w_sinh.c: Likewise.
6763         * math/w_sinhf.c: Likewise.
6764         * math/w_sinhl.c: Likewise.
6765         * math/w_sqrt.c: Likewise.
6766         * math/w_sqrtf.c: Likewise.
6767         * math/w_sqrtl.c: Likewise.
6768         * math/w_tgamma.c: Likewise.
6769         * math/w_tgammaf.c: Likewise.
6770         * math/w_tgammal.c: Likewise.
6771
6772         * po/ja.po: Update from translation team.
6773
6774 2011-09-29  Andreas Jaeger  <aj@suse.de>
6775
6776         [BZ #13179]
6777         * sunrpc/netname.c (netname2host): Fix logic.
6778
6779         [BZ #6779]
6780         [BZ #6783]
6781         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
6782         correctly.
6783         * math/w_remainder.c (__remainder): Likewise.
6784         * math/w_remainderf.c (__remainderf): Likewise.
6785         * math/libm-test.inc (remainder_test): Add test cases.
6786
6787 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6788
6789         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
6790         sdiv_qrnnd.
6791
6792 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6793
6794         * string/test-memcmp.c: Avoid unncessary #defines.
6795         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6796
6797 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6798
6799         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
6800         Use new sse2 version for core i3 - i7 as it's faster
6801         than sse42 version.
6802         (bit_Prefer_PMINUB_for_stringop): New.
6803         * sysdeps/x86_64/rawmemchr.S: Update.
6804         Replace with faster SSE2 version.
6805         * sysdeps/x86_64/memrchr.S: New file.
6806         * sysdeps/x86_64/memchr.S: Update.
6807         Replace with faster SSE2 version.
6808
6809 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
6810
6811         * elf/dl-load.c (lose): Add cast to avoid warning.
6812
6813 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
6814
6815         * po/ca.po: Update from translation team.
6816
6817         * inet/getnetgrent_r.c: Hook up nscd.
6818         * nscd/Makefile (routines): Add nscd_netgroup.
6819         (nscd-modules): Add netgroupcache.
6820         (CFLAGS-netgroupcache.c): Define.
6821         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
6822         (cache_search): Add const to second parameter.
6823         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
6824         INNETGR.
6825         (dbs): Add netgrdb entry.
6826         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
6827         (verify_persistent_db): Handle netgrdb.
6828         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
6829         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
6830         GETFDNETGR.
6831         (netgroup_response_header): Define.
6832         (innetgroup_response_header): Define.
6833         (datahead): Add netgroup_response_header and innetgroup_response_header
6834         elements.
6835         * nscd/nscd.conf: Add entries for netgroup cache.
6836         * nscd/nscd.h (dbtype): Add netgrdb.
6837         (_PATH_NSCD_NETGROUP_DB): Define.
6838         (netgroup_iov_disabled): Declare.
6839         (xmalloc, xcalloc, xrealloc): Move declarations here.
6840         (cache_search): Adjust prototype.
6841         Add netgroup-related prototypes.
6842         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
6843         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
6844         (__nscd_innetgr): Declare.
6845         * nscd/selinux.c (perms): Use access_vector_t as element type and
6846         add netgroup-related initializers.
6847         * nscd/netgroupcache.c: New file.
6848         * nscd/nscd_netgroup.c: New file.
6849         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
6850         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
6851         For four parameters use innetgr.
6852         * nss/nss_files/files-init.c: Add definition and callback for netgr.
6853         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
6854         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
6855         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
6856
6857         * nscd/connections.c (register_traced_file): Don't register file
6858         for disabled databases.
6859
6860 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
6861
6862         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
6863
6864         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
6865         from tree and freeing node.
6866
6867 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
6868
6869         * nss/nsswitch.c (__nss_database_lookup): Handle
6870         nss_parse_service_list out of memory case.
6871
6872 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
6873
6874         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
6875         out of memory case.
6876
6877 2011-10-04  Andreas Schwab  <schwab@redhat.com>
6878
6879         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
6880         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
6881         pass it down.
6882         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
6883         elf_machine_rela, elf_machine_lazy_rel.
6884         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
6885         (ELF_DYNAMIC_DO_REL): Likewise.
6886         (ELF_DYNAMIC_DO_RELA): Likewise.
6887         (ELF_DYNAMIC_RELOCATE): Likewise.
6888         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
6889         to ELF_DYNAMIC_DO_REL.
6890         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
6891         (dl_main): In trace mode always set __RTLD_NOIFUNC.
6892         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
6893         elf_machine_rela.
6894         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
6895         skip_ifunc, don't call ifunc function if non-zero.
6896         (elf_machine_rela): Likewise.
6897         (elf_machine_lazy_rel): Likewise.
6898         (elf_machine_lazy_rela): Likewise.
6899         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
6900         (elf_machine_lazy_rel): Likewise.
6901         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
6902         Likewise.
6903         (elf_machine_lazy_rel): Likewise.
6904         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6905         Likewise.
6906         (elf_machine_lazy_rel): Likewise.
6907         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
6908         (elf_machine_lazy_rel): Likewise.
6909         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
6910         (elf_machine_lazy_rel): Likewise.
6911         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6912         (elf_machine_lazy_rel): Likewise.
6913         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
6914         (elf_machine_lazy_rel): Likewise.
6915         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6916         (elf_machine_lazy_rel): Likewise.
6917         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6918         (elf_machine_lazy_rel): Likewise.
6919
6920 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
6921
6922         * nss/nss_files/files-init.c (_nss_files_init): Use static
6923         initialization for all the *_traced_file variables.
6924
6925 2011-09-28  Andreas Schwab  <schwab@redhat.com>
6926
6927         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6928
6929 2011-09-27  Roland McGrath  <roland@hack.frob.com>
6930
6931         [BZ #13226]
6932         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
6933
6934 2011-09-27  Andreas Schwab  <schwab@redhat.com>
6935
6936         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6937         Reread the line before reparsing it.
6938
6939 2011-09-26  Andreas Schwab  <schwab@redhat.com>
6940
6941         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
6942
6943 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
6944             Maxim Kuvyrkov  <maxim@codesourcery.com>
6945             Joseph Myers  <joseph@codesourcery.com>
6946
6947         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
6948         if needed for __stack_chk_guard.
6949
6950 2011-09-19  Roland McGrath  <roland@hack.frob.com>
6951
6952         * sysdeps/posix/spawni.c (script_execute): Always define it.
6953         It will be optimized away if unused.
6954         (maybe_script_execute): New function.
6955         (__spawni): Call it.
6956
6957         * Makerules: Don't include tls.make.
6958         (config-tls): Always set to thread.
6959         * tls.make.c: File removed.
6960
6961 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
6962
6963         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
6964         * config.make.in (CPPFLAGS-config): New substituted variable.
6965
6966 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
6967
6968         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
6969
6970         [BZ #13192]
6971         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
6972         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
6973
6974 2011-09-15  Roland McGrath  <roland@hack.frob.com>
6975
6976         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
6977         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
6978         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
6979         (CALL_FAIL): Likewise.
6980         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
6981         (CALL_FAIL): Macro removed.
6982         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
6983
6984 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
6985
6986         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
6987         for __FINITE_MATH_ONLY__ == 1.
6988
6989 2011-09-15  Andreas Schwab  <schwab@redhat.com>
6990
6991         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
6992         __ieee754_sqrt instead of sqrt.
6993         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
6994         __ieee754_sqrtf instead of sqrtf.
6995         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
6996         __floorf instead of floorf.
6997         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
6998         __floorf, __truncf instead of floorf, truncf.
6999
7000 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7001
7002         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7003
7004         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7005         __extern_always_inline.
7006         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7007         32-bit.
7008
7009 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7010
7011         * elf/rtld.c (dl_main): Also relocate in dependency order when
7012         doing symbol dependency testing.
7013
7014 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7015
7016         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7017         Always define `refsym'.
7018
7019 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7020
7021         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7022         (__FD_ELT): Renamed from __FDELT.
7023         * misc/bits/select2.h (__FD_ELT): Likewise.
7024         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7025         __FD_MASK instead of __FDELT, __FDMASK.
7026         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7027         Likewise.
7028         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7029         Likewise.
7030
7031         * elf/Makefile (gen-ldd): Fix pattern.
7032
7033         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7034         (init_tls): Likewise.
7035
7036 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7037
7038         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7039
7040 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7041
7042         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7043         `struct cmsghdr *' instead of `void *'.
7044         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7045         Likewise.
7046
7047 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7048
7049         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7050         if non-absolute.
7051         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7052         ldd_rewrite_script.
7053
7054 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7055
7056         * configure.in: Remove --with-tls option.
7057         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7058         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7059         out in case it is missing.
7060         * sysdeps/ia64/elf/configure.in: Likewise.
7061         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7062         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7063         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7064         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7065         * sysdeps/sh/elf/configure.in: Likewise.
7066         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7067         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7068         * sysdeps/x86_64/elf/configure.in: Likewise.
7069         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7070         * sysdeps/mach/hurd/tls.h: Likewise.
7071
7072         [BZ #13067]
7073         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7074
7075         [BZ #13090]
7076         * configure.in: Fix use of AC_INIT.
7077
7078         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7079
7080 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7081
7082         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7083         __set_errno.
7084         * malloc/hooks.c: Likewise.
7085
7086         [BZ #11929]
7087         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7088         variables statically.
7089         (narenas): Initialize.
7090         (list_lock): Initialize.
7091         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7092         initializtion of main_arena and list_lock.  Small cleanups.
7093         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7094         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7095         Add initializers to main_arena and mp_.
7096         (malloc_state): Remove pagesize member.  Change all users to use
7097         GLRO(dl_pagesize).
7098
7099         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7100         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7101         is always initialized.
7102
7103         * malloc/malloc.c: Removed unused configurations and dead code.
7104         * malloc/arena.c: Likewise.
7105         * malloc/hooks.c: Likewise.
7106         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7107
7108         * include/tls.h: Removed.  USE___THREAD must always be defined.
7109         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7110         * elf/dl-libc.c: Likewise.
7111         * elf/dl-tsd.c: Likewise.
7112         * include/errno.h: Likewise.
7113         * include/netdb.h: Likewise.
7114         * include/resolv.h: Likewise.
7115         * inet/herrno-loc.c: Likewise.
7116         * inet/herrno.c: Likewise.
7117         * malloc/arena.c: Likewise.
7118         * malloc/hooks.c: Likewise.
7119         * malloc/malloc.c: Likewise.
7120         * resolv/res-state.c: Likewise.
7121         * resolv/res_libc.c: Likewise.
7122         * sysdeps/i386/dl-machine.h: Likewise.
7123         * sysdeps/ia64/dl-machine.h: Likewise.
7124         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7125         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7126         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7127         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7128         * sysdeps/sh/dl-machine.h: Likewise.
7129         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7130         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7131         * sysdeps/unix/i386/sysdep.S: Likewise.
7132         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7133         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7134         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7135         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7136         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7137         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7138         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7139         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7140         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7141         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7142         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7143         * sysdeps/x86_64/dl-machine.h: Likewise.
7144         * tls.make.c: Likewise.
7145
7146         * configure.in: Remove --with-__thread option.  Make tests for
7147         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7148         tls_model attribute fail if no support is available.  Remove
7149         USE_IN_LIBIO.
7150         * Makeconfig: Adjust for dropped configure option.  All features are
7151         now mandatory.
7152         * Makerules: Likewise.
7153         * Versions.def: Likewise.
7154         * argp/argp-fmtstream.c: Likewise.
7155         * argp/argp-fmtstream.h: Likewise.
7156         * argp/argp-help.c: Likewise.
7157         * assert/assert.c: Likewise.
7158         * config.h.in: Likewise.
7159         * config.make.in: Likewise.
7160         * configure: Likewise.
7161         * configure.in: Likewise.
7162         * csu/Versions: Likewise.
7163         * csu/init.c: Likewise.
7164         * elf/tst-audit2.c: Likewise.
7165         * elf/tst-tls10.c: Likewise.
7166         * elf/tst-tls10.h: Likewise.
7167         * elf/tst-tls11.c: Likewise.
7168         * elf/tst-tls12.c: Likewise.
7169         * elf/tst-tls14.c: Likewise.
7170         * elf/tst-tlsmod11.c: Likewise.
7171         * elf/tst-tlsmod12.c: Likewise.
7172         * elf/tst-tlsmod13.c: Likewise.
7173         * elf/tst-tlsmod13a.c: Likewise.
7174         * elf/tst-tlsmod14a.c: Likewise.
7175         * elf/tst-tlsmod15b.c: Likewise.
7176         * elf/tst-tlsmod16a.c: Likewise.
7177         * elf/tst-tlsmod16b.c: Likewise.
7178         * elf/tst-tlsmod7.c: Likewise.
7179         * elf/tst-tlsmod8.c: Likewise.
7180         * elf/tst-tlsmod9.c: Likewise.
7181         * gmon/gmon.c: Likewise.
7182         * grp/fgetgrent_r.c: Likewise.
7183         * grp/putgrent.c: Likewise.
7184         * hurd/fopenport.c: Likewise.
7185         * include/libc-symbols.h: Likewise.
7186         * include/tls.h: Likewise.
7187         * intl/gettextP.h: Likewise.
7188         * intl/loadinfo.h: Likewise.
7189         * locale/global-locale.c: Likewise.
7190         * locale/localeinfo.h: Likewise.
7191         * mach/devstream.c: Likewise.
7192         * malloc/arena.c: Likewise.
7193         * malloc/set-freeres.c: Likewise.
7194         * misc/err.c: Likewise.
7195         * misc/getttyent.c: Likewise.
7196         * misc/mntent_r.c: Likewise.
7197         * posix/getopt.c: Likewise.
7198         * posix/wordexp.c: Likewise.
7199         * pwd/fgetpwent_r.c: Likewise.
7200         * resolv/Versions: Likewise.
7201         * resolv/res_hconf.c: Likewise.
7202         * shadow/fgetspent_r.c: Likewise.
7203         * shadow/putspent.c: Likewise.
7204         * stdio-common/printf_fphex.c: Likewise.
7205         * stdio-common/tmpfile.c: Likewise.
7206         * stdlib/abort.c: Likewise.
7207         * stdlib/fmtmsg.c: Likewise.
7208         * sunrpc/auth_unix.c: Likewise.
7209         * sunrpc/clnt_perr.c: Likewise.
7210         * sunrpc/clnt_tcp.c: Likewise.
7211         * sunrpc/clnt_udp.c: Likewise.
7212         * sunrpc/clnt_unix.c: Likewise.
7213         * sunrpc/openchild.c: Likewise.
7214         * sunrpc/svc_simple.c: Likewise.
7215         * sunrpc/svc_tcp.c: Likewise.
7216         * sunrpc/svc_udp.c: Likewise.
7217         * sunrpc/svc_unix.c: Likewise.
7218         * sunrpc/xdr.c: Likewise.
7219         * sunrpc/xdr_array.c: Likewise.
7220         * sunrpc/xdr_rec.c: Likewise.
7221         * sunrpc/xdr_ref.c: Likewise.
7222         * sunrpc/xdr_stdio.c: Likewise.
7223
7224 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7225
7226         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7227
7228 2011-07-03  Andreas Jaeger  <aj@suse.de>
7229
7230         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7231         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7232         regenerate with gen-libm-tests.pl.
7233
7234 2010-05-12  Petr Baudis  <pasky@suse.cz>
7235
7236         [BZ #11589]
7237         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7238         around j0() zero points by switching to j1().
7239         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7240         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7241         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7242         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7243
7244 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7245
7246         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7247         instead of 0.
7248         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7249         instead of 0.                              .
7250         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7251         Patch in part by Pavel Roskin <proski@gnu.org>.
7252
7253         [BZ #13138]
7254         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7255         realloc.
7256         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7257         Free memory block if necessary.
7258
7259         [BZ #12847]
7260         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7261         be NULL.  Don't lock in this case.
7262
7263 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7264
7265         * elf/elf.h (ELFOSABI_GNU): New macro.
7266         (ELFOSABI_LINUX): Define to that.
7267
7268 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7269
7270         * string/strncat.c (strncat): Undef the symbol in case it has been
7271         defined in bits/string.h.
7272
7273 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7274
7275         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7276
7277         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7278         link map.
7279
7280 2011-08-17  Andreas Jaeger  <aj@suse.de>
7281
7282         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7283
7284 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7285             Ian Lance Taylor  <iant@google.com>
7286
7287         * math/libm-test.inc (lround_test): New testcase.
7288         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7289
7290 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7291
7292         * Makefile: Remove support for automatic cvs check-ins.
7293         * Makerules: Likewise.
7294         * config.make.in: Likewise.
7295         * configure.in: Likewise.
7296         * intl/Makefile: Likewise.
7297         * locale/Makefile: Likewise.
7298         * po/Makefile: Likewise.
7299         * posix/Makefile: Likewise.
7300         * sysdeps/gnu/Makefile: Likewise.
7301         * sysdeps/mach/hurd/Makefile: Likewise.
7302         * sysdeps/sparc/sparc32/Makefile: Likewise.
7303
7304         [BZ #13118]
7305         * posix/Makefile (bug-regex32-ENV): Define.
7306         Patch by John Stanley <jpsinthemix@verizon.net>.
7307
7308         * misc/Makefile (headers): Add bits/select2.h.
7309         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7310         * misc/bits/select2.h: New file.
7311         * include/bits/select2.h: New file.
7312         * debug/Makefile (routines): Add fdelt_chk.
7313         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7314         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7315         FD_ISSET.
7316         * debug/fdelt_chk.c: New file.
7317
7318         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7319         * wcsmbs/test-wmemcmp.c: Likewise.
7320         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7321         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7322
7323 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7324
7325         * string/Makefile (strop-tests): Add memcmp.
7326         * string/test-wmemcmp.c: New file.
7327         * string/test-memcmp.c: Add wmemcmp support.
7328
7329 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7330
7331         [BZ #13153]
7332         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7333         2011-07-19 change.
7334
7335         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7336         garbage value in a __mach_port_mod_refs call in the cases of the
7337         task-self and thread-self ports.
7338
7339 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7340
7341         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7342
7343 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7344
7345         * elf/dl-load.c (lose): Check for non-null L.
7346
7347 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7348
7349         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7350
7351         * elf/dl-libc.c (dlerror_run): Pass back error code from
7352         dl_catch_error.
7353
7354         [BZ #13123]
7355         * elf/dl-load.c (lose): Free l_origin if it is valid.
7356
7357         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7358         names.
7359         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7360         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7361         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7362         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7363         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7364         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7365
7366 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7367
7368         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7369         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7370         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7371         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7372         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7373         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7374         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7375         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7376         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7377         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7378
7379 2011-08-15  Alan Modra  <amodra@gmail.com>
7380
7381         [BZ #13092]
7382         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7383         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7384         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7385         ppc_mcount to static-only-routines.
7386         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7387         __mcount_internal.
7388         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7389         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7390
7391 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7392
7393         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7394         for finite and infinity parameters.
7395
7396 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7397
7398         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7399         and add nop instructions for throughput optimization.
7400         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7401
7402 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7403
7404         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7405         aligned copy for power7 with vector-scalar instructions.
7406         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7407
7408 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7409
7410         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7411         AVX check.
7412
7413 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7414
7415         [BZ #13144]
7416         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7417         last change.
7418
7419 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7420
7421         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7422         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7423         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7424         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7425         clock_gettime.
7426
7427 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7428
7429         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7430         Forgot to demangle the pointer.
7431
7432         * sysdeps/i386/sysdep.h: Define atom_text_section.
7433         * sysdeps/x86_64/sysdep.h: Likewise.
7434         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7435         section with atom_text_section.
7436         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7437         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7438         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7439         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7440         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7441
7442         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7443         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7444         already be defined.  Change to take two parameters and don't assign
7445         result to variable.  Adjust all users.
7446         Define INTERNAL_GETTIME if not already defined.
7447         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7448         call.
7449         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7450         HAVE_CLOCK_GETTIME_VSYSCALL.
7451         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7452
7453         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7454         gettimeofday vsyscall, just use time.
7455
7456 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7457
7458         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7459         <errno.h>.
7460
7461 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7462
7463         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7464         syscall on x86-64.
7465         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7466         syscall.
7467         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7468         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7469         syscall if possible.
7470
7471 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7472
7473         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7474         e_ident.  Don't pass to find_mapsXX.
7475         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7476
7477 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7478
7479         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7480         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7481         * sysdeps/x86_64/multiarch/strchr.S: Update.
7482         Check bit_slow_BSF bit.
7483         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7484         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7485         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7486
7487 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7488
7489         [BZ #13134]
7490         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7491         before glibc 2.15.
7492         (tryshell): Define.
7493         (__spawni): Change last parameter to be flag.  Test
7494         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7495         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7496         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7497         * posix/spawni.c: Likewise.
7498         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7499         * posix/spawnp.c: Likewise.  Change normal version to use
7500         SPAWN_XFLAGS_USE_PATH.
7501         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7502         SPAWN_XFLAGS_TRY_SHELL.
7503
7504         [BZ #13150]
7505         * posix/glob.h: Remove gcc 1.x support.
7506
7507         [BZ #13068]
7508         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7509
7510 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7511
7512         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7513         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7514         strrchr-sse2-bsf
7515         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7516         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7517         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7518         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7519         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7520         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7521
7522 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7523
7524         * sysdeps/x86_64/wcscmp.S: New file.
7525
7526         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7527         wcscmp-c wcscmp-sse2
7528         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7529         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7530         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
7531         * wcsmbs/wcscmp.c: Allow renaming.
7532
7533 2011-09-05  David S. Miller  <davem@davemloft.net>
7534
7535         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
7536         stack slot, rather than the struct return pointer slot.
7537         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
7538         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
7539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
7540         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
7541
7542 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7543
7544         * po/ja.po: Update from translation team.
7545
7546         [BZ #13144]
7547         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
7548         kernel in 64-bit binaries.
7549
7550 2011-09-01  David S. Miller  <davem@davemloft.net>
7551
7552         * elf/elf.h (HWCAP_SPARC_*): Move to..
7553         * sysdeps/sparc/sysdep.h: this new file and add new values.
7554         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
7555         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
7556         _DL_HWCAP_COUNT to 24.
7557         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7558         entries.
7559         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
7560         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
7561         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
7562         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
7563         instead of magic constants.
7564         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7565
7566 2011-08-31  David S. Miller  <davem@davemloft.net>
7567
7568         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
7569         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
7570         Reimplement to do errno handling inline.
7571         (SYSCALL_ERROR_HANDLER): New macro.
7572         (__SYSCALL_STRING): Do not do errno handling in asm.
7573         (__CLONE_SYSCALL_STRING): Delete.
7574         (__INTERNAL_SYSCALL_STRING): Delete.
7575         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7576         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
7577         (PSEUDO): Reimplement to do errno handling inline.
7578         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
7579         (SYSCALL_ERROR_HANDLER): New macro.
7580         (__SYSCALL_STRING): Do not do errno handling in asm.
7581         (__CLONE_SYSCALL_STRING): Delete.
7582         (__INTERNAL_SYSCALL_STRING): Delete.
7583         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
7584         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
7585         i386.
7586         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
7587         (inline_syscall*): Add 'err' argument.
7588         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
7589         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
7590         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
7591         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
7592
7593         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
7594         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7595
7596 2011-08-30  Andreas Schwab  <schwab@redhat.com>
7597
7598         * elf/rtld.c (dl_main): Relocate objects in dependency order.
7599
7600 2011-08-29  Jiri Olsa <jolsa@redhat.com>
7601
7602         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
7603         directive.
7604
7605 2011-08-24  David S. Miller  <davem@davemloft.net>
7606
7607         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
7608
7609 2011-08-24  Andreas Schwab  <schwab@redhat.com>
7610
7611         * elf/Makefile: Add rules to build and run unload8 test.
7612         * elf/unload8.c: New file.
7613         * elf/unload8mod1.c: New file.
7614         * elf/unload8mod1x.c: New file.
7615         * elf/unload8mod2.c: New file.
7616         * elf/unload8mod3.c: New file.
7617
7618         * elf/dl-close.c (_dl_close_worker): Reset private search list if
7619         it wasn't used.
7620
7621 2011-08-23  David S. Miller  <davem@davemloft.net>
7622
7623         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
7624         subtract stack bias.
7625         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
7626         %sp not %fp in calculations.
7627         (_JMPBUF_UNWINDS_ADJ): Likewise.
7628
7629         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
7630         (aio_suspend): Call it to force an exception region around the
7631         AIO_MISC_WAIT() invocation.
7632
7633 2011-08-23  Andreas Schwab  <schwab@redhat.com>
7634
7635         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
7636         backslash.
7637
7638 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
7639
7640         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
7641         protection macro.
7642         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
7643         and <dl-machine.h>.
7644         (Elf64_FuncDesc): Remove.
7645
7646 2011-08-22  David S. Miller  <davem@davemloft.net>
7647
7648         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
7649         sigaltstack check, add missing cfi directives.
7650         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
7651         missing cfi directives, and sigaltstack handling.
7652
7653 2011-08-16  Andreas Schwab  <schwab@redhat.com>
7654
7655         [BZ #11724]
7656         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
7657         object is seen twice.
7658         * elf/dl-fini.c (_dl_sort_fini): Likewise.
7659
7660         * elf/Makefile (distribute): Add tst-initorder2.c.
7661         (tests): Add tst-initorder2.
7662         (modules-names): Add tst-initorder2a tst-initorder2b
7663         tst-initorder2c tst-initorder2d.  Add rules to build them.
7664         ($(objpfx)tst-initorder2.out): New rule.
7665         * elf/tst-initorder2.c: New file.
7666         * elf/tst-initorder2.exp: New file.
7667
7668 2011-08-22  Andreas Schwab  <schwab@redhat.com>
7669
7670         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
7671
7672         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
7673         dependencies back to end of function.
7674
7675         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
7676         $(elfobjdir)/ld.so.
7677
7678 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
7679
7680         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
7681         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
7682         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
7683         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
7684         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
7685         of __vdso_gettimeofday.
7686         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
7687         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
7688         attribute_hidden.
7689         (_libc_vdso_platform_setup): Remove initialization of
7690         __vdso_gettimeofday and __vdso_time.
7691
7692 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7693
7694         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
7695         and fgetc_unlocked.
7696         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
7697         getc_unlocked.
7698
7699         * elf/dl-open.c (add_to_global): Report additions to the global scope
7700         for LD_DEBUG=scopes.
7701         (dl_open_worker): Also print scope of newly loaded dependencies.
7702         (_dl_show_scope): Indicate if there is no scope.
7703
7704         [BZ #13114]
7705         * stdio-common/Makefile (tests): Add bug24.
7706         * stdio-common/bug24.c: New file.
7707
7708 2011-08-19  Andreas Jaeger  <aj@suse.de>
7709
7710         [BZ #13114]
7711         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
7712         non-existant file when using close-on-exec mode.
7713
7714 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
7715
7716         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
7717         the very first instruction.
7718
7719         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
7720         the CFI state in the end.
7721         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
7722         inclusion of dl-trampoline.h.
7723         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
7724
7725 2011-08-19  Andreas Schwab  <schwab@redhat.com>
7726
7727         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
7728         expectations for long double.
7729
7730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
7731         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
7732
7733 2011-08-14  David S. Miller  <davem@davemloft.net>
7734
7735         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
7736         artificual limit depends upon the system page size.
7737
7738 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7739
7740         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
7741         * resolv/Makefile: Define CFLAGS-libresolv.
7742
7743 2011-08-17  Andreas Schwab  <schwab@redhat.com>
7744
7745         * nss/makedb.c (compute_tables): Make variables used in nested
7746         function static.
7747
7748 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
7749
7750         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
7751         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
7752         if buffer was too small.
7753
7754         * elf/pldd.c (main): Attach to all threads in the process.
7755         Rewrite /proc handling to use *at functions.
7756
7757 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
7758
7759         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
7760         specifies first scope to show.
7761         (dl_open_worker): Update callers.  Move printing scope of new
7762         object to before the relocation.
7763         * elf/rtld.c (dl_main): Update _dl_show_scope call.
7764         * sysdeps/generic/ldsodefs.h: Update declaration.
7765
7766         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
7767         string for the scope number.
7768
7769 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
7770
7771         * nscd/servicescache.c (cache_addserv): Make sure written is always
7772         initialized.
7773
7774 2011-08-14  Roland McGrath  <roland@hack.frob.com>
7775
7776         * sysdeps/i386/i486/bits/atomic.h
7777         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
7778         statement expression, so as to suppress "set but not used" warning.
7779         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
7780
7781         * string/strncat.c (STRNCAT): Use prototype definition.
7782
7783         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
7784         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
7785         -Iprograms here.
7786         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
7787         (localedef-modules): Add localedef.
7788         (locale-modules): Add locale.
7789
7790         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
7791         * elf/rtld.c (dl_main): Invert order of assignment in last change,
7792         to avoid a warning.
7793
7794 2011-08-14  David S. Miller  <davem@davemloft.net>
7795
7796         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
7797         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
7798
7799 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
7800
7801         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
7802         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
7803         * elf/rtld.c (dl_main): Set l_name of vDSO.
7804         Call _dl_show_scope when DL_DEBUG_SCOPES.
7805         (process_dl_debug): Recognize scopes flag and also set it for all.
7806         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
7807         Declare _dl_show_scope.
7808
7809         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
7810         (do_dlopen): Pass caller_dlopen to dl_open.
7811         (__libc_dlopen_mode): Initialize caller_dlopen.
7812
7813         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
7814         of libc.  Make tolower call locale-independent.  Optimize a bit by
7815         using isdigit instead of isalnum.
7816         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
7817
7818 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
7819
7820         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
7821         was a dependency or dynamically loaded.
7822
7823 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
7824
7825         * intl/l10nflist.c: Allow architecture-specific pop function.
7826         * sysdeps/x86_64/l10nflist.c: New file.
7827
7828         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
7829         classification.
7830
7831 2011-08-10  Andreas Schwab  <schwab@redhat.com>
7832
7833         * include/dirent.h: Add libc_hidden_proto for scandirat and
7834         scandirat64.  Don't declare __scandirat64.
7835         * dirent/scandirat.c: Add libc_hidden_def.
7836         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
7837         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
7838
7839 2011-08-10  David S. Miller  <davem@davemloft.net>
7840
7841         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
7842         enum.
7843         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7844         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7845         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7846
7847 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
7848
7849         * Versions.def [libc]: Add GLIBC_2.15.
7850         * dirent/Makefile (routines): Add scandirat and scandirat64.
7851         * dirent/Versions [libc]: Export scandirat and scandirat64 for
7852         GLIBC_2.15.
7853         * dirent/dirent.h: Declare scandirat and scandirat64.
7854         * dirent/scandirat.c: New file.
7855         * dirent/scandirat64.c: New file.
7856         * sysdeps/wordsize-64/scandirat.c: New file.
7857         * sysdeps/wordsize-64/scandirat64.c: New file.
7858         * dirent/opendir.c: Define opendirat.
7859         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
7860         using scandirat.
7861         * dirent/scandir64.c: Adjust for scandir.c change.
7862         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
7863         __scandirat64, and __scandir_cancel_handler.
7864         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
7865         additional parameter and use openat instead of open (outside of ld.so).
7866         Add new __opendir as wrapper around __opendirat.
7867         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
7868         here without requiring old scandirat implementation.
7869
7870 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
7871
7872         * dirent/scandir.c (cancel_handler): Renamed to
7873         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
7874         defined.  Adjust users.
7875         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
7876         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
7877
7878 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
7879
7880         * string/test-string.h (IMPL): Use __STRING to expand name and then
7881         stringify it.
7882
7883         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
7884         of cleanups.
7885
7886 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7887
7888         * string/Makefile: Update.
7889         (strop-tests): Append strncat.
7890         * string/test-wcscmp.c: New file.
7891         New comprehensive test for wcscmp.
7892         * string/test-strcmp.c: Update.
7893         (WIDE): New define.
7894
7895 2011-07-22  Andreas Schwab  <schwab@redhat.com>
7896
7897         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
7898         line.
7899
7900 2011-07-26  Andreas Schwab  <schwab@redhat.com>
7901
7902         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
7903         encoding to ACE if AI_IDN.
7904
7905 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
7906
7907         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
7908         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
7909
7910 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7911
7912         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
7913         Fix overflow bug in strncat.
7914         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
7915
7916         * string/test-strncat.c: Update.
7917         Add new tests for checking overflow bugs.
7918
7919 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7920
7921         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7922         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
7923         * sysdeps/i386/i686/multiarch/strcat.S: New file.
7924         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
7925         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
7926         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
7927         * sysdeps/i386/i686/multiarch/strncat.S: New file.
7928         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
7929         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
7930
7931         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
7932         (USE_AS_STRCAT): Define.
7933         Add strcat and strncat support.
7934         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7935
7936 2011-07-25  Andreas Schwab  <schwab@redhat.com>
7937
7938         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
7939         __n bigger than INT_MAX+1.
7940         (__strncmp_g): Likewise.
7941
7942 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
7943
7944         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
7945         * libio/stido.h: Likewise.
7946
7947         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
7948         (AF_NFC): Define.
7949         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
7950         (AF_NFC): Define.
7951
7952         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
7953         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7954         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7955         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7956         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7957
7958         [BZ #13021]
7959         * scripts/test-installation.pl: Don't expect libnss_test1 to be
7960         installed.
7961
7962         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
7963         typo.
7964         (_dl_x86_64_save_sse): Likewise.
7965
7966 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
7967
7968         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
7969         OSXSAVE.
7970         (_dl_x86_64_save_sse): Likewise.
7971
7972         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
7973
7974         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
7975
7976 2011-07-21  Andreas Schwab  <schwab@redhat.com>
7977
7978         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
7979         change.
7980         (_dl_x86_64_save_sse): Use correct AVX check.
7981
7982 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7983
7984         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
7985         bug in strncpy/strncat.
7986         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7987
7988 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
7989
7990         * string/tester.c (test_strcat): Add tests for different alignments
7991         of source and destination.
7992         (test_strncat): Likewise.
7993
7994 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
7995
7996         [BZ #12852]
7997         * posix/glob.c (glob): Check passed in values before using them in
7998         expressions to avoid some overflows.
7999         (glob_in_dir): Likewise.
8000
8001         [BZ #13007]
8002         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8003         check for AVX enablement so that we don't crash with old kernels and
8004         new hardware.
8005         * elf/tst-audit4.c: Add same checks here.
8006         * elf/tst-audit6.c: Likewise.
8007
8008         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8009
8010 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8011
8012         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8013
8014 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8015
8016         * po/cs.po: Update from translation team.
8017         * po/bg.po: Likewise.
8018
8019 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8020
8021         * misc/sys/cdefs.h: Add support for const attribute.
8022         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8023         to gnu_dev_{major,minor,makedev} functions.
8024
8025 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8026
8027         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8028
8029 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8030
8031         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8032         strlen results.
8033
8034 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8035
8036         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8037         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8038         register in order to avoid conflicts with the soft frame pointer
8039         being held in r11 when necessary.
8040         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8041         (INTERNAL_VSYSCALL_NCS): Likewise.
8042
8043 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8044
8045         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8046         * elf/dl-fini.c (_dl_fini): Adjust caller.
8047         * elf/dl-close.c (_dl_close_worker): Likewise.
8048         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8049
8050 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8051
8052         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8053         "aux_cache->nlibs < 0".
8054
8055         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8056         in the reload-count case.
8057
8058 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8059
8060         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8061         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8062         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8063         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8064         * sysdeps/x86_64/multiarch/strcat.S: New file.
8065         * sysdeps/x86_64/multiarch/strncat.S: New file.
8066         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8067         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8068         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8069         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8070         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8071         (USE_AS_STRCAT): Define.
8072         Add strcat and strncat support.
8073         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8074         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8075         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8076         * string/strncat.c: Update.
8077         (USE_AS_STRNCAT): Define.
8078         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8079         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8080         and i7.
8081         * sysdeps/x86_64/multiarch/init-arch.h
8082         (bit_Prefer_PMINUB_for_stringop): New.
8083         (index_Prefer_PMINUB_for_stringop): Likewise.
8084         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8085         bit_Prefer_PMINUB_for_stringop.
8086
8087 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8088
8089         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8090         buffer64.
8091         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8092         of casting of buffer.
8093         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8094         buffer32 and buffer64.
8095         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8096         writes instead of casting of buffer.
8097         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8098         buffer32.
8099         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8100         casting of buffer.
8101
8102 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8103
8104         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8105
8106 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8107
8108         * nscd/nscd.c (termination_handler): Don't do anything for a database
8109         if it has not yet been initialized.
8110
8111 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8112
8113         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8114
8115 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8116
8117         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8118
8119 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8120
8121         * po/nl.po: Update from translation team.
8122         * po/sv.po: Likewise.
8123
8124 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8125
8126         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8127         now disallowed by GCC.
8128
8129         * configure.in (use-default-link): Default to yes if a test -shared
8130         link meets our qualifications.
8131         * configure: Regenerated.
8132
8133         * config.make.in (output-format): New variable.
8134         * configure.in: Check for ld --print-output-format support.
8135         * configure: Regenerated.
8136         * Makerules ($(common-objpfx)format.lds)
8137         [$(output-format) != unknown]: Just use $(output-format),
8138         instead of the linker-script munging.
8139
8140 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8141
8142         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8143         of $(common-objpfx)shlib.lds.
8144         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8145
8146         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8147         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8148
8149         * configure.in (-z relro check): Adjust test code to add a large
8150         writable data section after it.
8151         * configure: Regenerated.
8152
8153 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8154
8155         * configure.in (-z relro check): Fix test code to make the variable
8156         truly const.
8157         * configure: Regenerated.
8158
8159 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8160
8161         * nscd/nscd.h (struct traced_file): Define.
8162         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8163         elements.  Add traced_files.
8164         (inotify_fd): Declare.
8165         (register_traced_file): Declare.
8166         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8167         (inotify_fd): Export.
8168         (resolv_conf_descr): Remove.
8169         (nscd_init): Move inotify descriptor creation to main.
8170         Don't register files for notification here.
8171         (register_traced_file): New function.
8172         (invalidate_cache): Don't use reset_res to determine whether to call
8173         res_init, go through the list of registered files.
8174         (main_loop_poll): The inotify descriptors are now stored in the
8175         structures for the traced files.
8176         (main_loop_epoll): Likewise
8177         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8178         to __nss_disable_nscd.
8179         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8180         for a database anymore.  Check the records for all the registered
8181         files instead.
8182         * nss/Makefile (libnss_files-routines): Add files-init.
8183         (libnss_db-routines): Add db-init.
8184         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8185         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8186         * nss/nss_db/db-init.c: New file.
8187         * nss/nss_files/files-init.c: New file.
8188         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8189         __nss_lookup_function.
8190         (__nss_lookup_function): Call nss_load_library.
8191         (nss_load_all_libraries): New function.
8192         (__nss_disable_nscd): Take parameter with callback function for files
8193         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8194         used for the cached services.
8195         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8196         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8197         options for features to all the files in nscd.
8198
8199         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8200
8201 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8202
8203         * csu/elf-init.c (__libc_csu_init): Comment typo.
8204
8205 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8206
8207         * po/pl.po: Update from translation team.
8208         * po/ja.po: Likewise.
8209         * po/ru.po: Likewise.
8210         * po/ko.po: Likewise.
8211         * po/fr.po: Likewise.
8212
8213 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8214
8215         * configure.in (.ctors/.dtors header and trailer check):
8216         Use an empirical test on a built program.
8217         * configure: Regenerated.
8218
8219         * configure.in (-z relro check): Use an empirical test on a built DSO.
8220         Detect, but do not require, on ia64.
8221         * configure: Regenerated.
8222
8223         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8224         Update tests that use readelf to use $READELF instead.
8225         * configure: Regenerated.
8226
8227 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8228
8229         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8230         if the result is not used.
8231
8232 2011-07-05  Andreas Jaeger  <aj@suse.de>
8233
8234         [BZ#9696]
8235         * stdlib/tst-strtod.c: Add testcase.
8236
8237 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8238
8239         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8240         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8241         The latter has a higher limit.  Take additional parameter to pass to
8242         the new function.
8243         (__pathconf): Pass file to __statfs_link_max.
8244         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8245         __statfs_link_max.
8246         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8247         __statfs_link_max.
8248
8249         [BZ #12868]
8250         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8251         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8252         Handle Lustre.
8253         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8254         (__statfs_filesize_max): Likewise.
8255         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8256
8257 2011-07-05  Andreas Jaeger  <aj@suse.de>
8258
8259         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8260
8261 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8262
8263         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8264         `status' variable.
8265         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8266         Likewise.
8267
8268 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8269
8270         * Makefile (strop-tests): Add strncat.
8271         * string/test-strncat.c: New file.
8272
8273 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8274
8275         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8276
8277 2011-06-21  Andreas Jaeger  <aj@suse.de>
8278
8279         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8280         Copy rule from iconvdata/Makefile.
8281
8282 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8283
8284         [BZ #12922]
8285         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8286         but no long options are defined, just return 'W'.
8287
8288 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8289
8290         [BZ #9696]
8291         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8292
8293 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8294
8295         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8296         netgroups to read.
8297         (innetgr): Likewise.
8298
8299 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8300
8301         * config.make.in (install_root): Default to $(DESTDIR).
8302
8303 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8304
8305         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8306
8307 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8308
8309         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8310
8311         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8312         containing directory rather than embedding absolute directory names.
8313
8314         * scripts/check-local-headers.sh: Rewritten using awk.
8315         Match by word, not by line.  Print error messages for matches.
8316         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8317
8318         * Makerules [shlib-lds-flags empty]:
8319         ($(common-objpfx)libc_pic.opts): New target.
8320         ($(common-objpfx)libc_pic.os.clean): New target.
8321         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8322
8323         * config.make.in (OBJCOPY): New variable.
8324         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8325         * configure: Regenerated.
8326
8327         * config.make.in (use-default-link): New variable.
8328         * configure.in (use_default_link): Grok --with-default-link to set it.
8329         * configure: Regenerated.
8330         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8331         (shlib-lds, shlib-lds-flags): Define to empty.
8332
8333         * Makerules (shlib-lds): New variable.
8334         (shlib-lds-flags): New variable.
8335         (build-shlib, build-moduile, build-module-asneeded): Use it.
8336         ($(common-objpfx)libc.so): Use $(shlib-lds).
8337         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8338         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8339
8340         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8341         DT_FLAGS/DT_FLAGS_1 with zero flags.
8342
8343         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8344         linker script munging.
8345
8346 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8347
8348         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8349         as 128-bit value.
8350         * crypt/sha512.c (sha512_process_block): Perform total addition using
8351         128-bit if possible.
8352         (__sha512_finish_ctx): Likewise.
8353         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8354         as 64-bit value.
8355         * crypt/sha256.c (SWAP64): Define.
8356         (sha256_process_block): Perform total addition using 64-bit if
8357         possible.
8358         (__sha256_finish_ctx): Likewise.
8359
8360 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8361
8362         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8363         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8364         * nscd/hstcache.c (cache_addhst): Likewise.
8365         * nscd/grpcache.c (cache_addgr): Likewise.
8366         * nscd/aicache.c (addhstaiX): Likewise
8367         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8368
8369 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8370
8371         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8372         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8373         * nscd/hstcache.c (cache_addhst): Likewise.
8374         * nscd/grpcache.c (cache_addgr): Likewise.
8375         * nscd/aicache.c (addhstaiX): Likewise
8376
8377 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8378
8379         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8380         domain only when needed.
8381
8382 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8383
8384         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8385         is always restored.
8386
8387 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8388
8389         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8390         are re-adding the entry.
8391         * nscd/servicescache.c (cache_addserv): Likewise.
8392
8393 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8394
8395         * sysdeps/generic/dl-irel.h: fix protection against multiple
8396         inclusions.
8397         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8398
8399 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8400
8401         [BZ #12935]
8402         * malloc/memusage.sh: Fix quoting in message.
8403         * debug/xtrace.sh: Likewise.
8404
8405         * configure.in: Remove support for --experimental-malloc option, make
8406         it the default.
8407         * config.make.in: Likewise.
8408         * malloc/Makefile: Likewise.
8409
8410 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8411
8412         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8413         two-byte characters.
8414
8415 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8416
8417         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8418         AC_CACHE_CHECK invocation.
8419         * configure: Regenerated.
8420
8421         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8422
8423 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8424
8425         [BZ #12350]
8426         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8427         bit from old_res_options.
8428
8429         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8430
8431         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8432         value type for setfct.
8433
8434 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8435
8436         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8437         __gettimeofday instead of gettimeofday.
8438
8439 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8440
8441         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8442
8443 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8444
8445         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8446
8447         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8448         info.
8449
8450 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8451
8452         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8453         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8454         strcpy-sse2-unaligned strncpy-sse2-unaligned
8455         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8456         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8457         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8458         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8459         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8460         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8461         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8462         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8463         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8464         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8465         (STRCPY): Support SSE2 and SSSE3 versions.
8466
8467 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8468
8469         [BZ #12874]
8470         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8471         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8472         kernels which artificially limit size of requests.
8473
8474 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8475
8476         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8477         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8478         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8479         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8480         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8481         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8482         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8483         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8484         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8485         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8486         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8487         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8488         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8489         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8490         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8491         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8492         Enable unaligned load optimization for Intel Core i3, i5 and i7
8493         processors.
8494         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8495         Define.
8496         (index_Fast_Unaligned_Load): Define.
8497         (HAS_FAST_UNALIGNED_LOAD): Define.
8498
8499 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8500
8501         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8502
8503 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8504
8505         [BZ #12907]
8506         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8507         until it is clear that the information is realy needed.
8508         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8509
8510 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8511
8512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8513
8514 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8515
8516         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8517         /sys/devices/system/cpu/online if it is usable.
8518
8519         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8520         reading the information from the /proc filesystem to once a second.
8521
8522 2011-06-21  Andreas Jaeger  <aj@suse.de>
8523
8524         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8525         NULL after inclusion of kernel headers.
8526
8527 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8528
8529         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8530         calls to internal_setent.
8531
8532         [BZ #12885]
8533         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
8534         addresses using gethostbyname4_r ignore IPv4 addresses.
8535
8536         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
8537         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
8538
8539         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
8540
8541 2011-06-20  David S. Miller  <davem@davemloft.net>
8542
8543         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
8544         inclusions.
8545         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
8546
8547         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
8548         (elf_irel): Use it.
8549         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
8550         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
8551         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
8552         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
8553         * sysdeps/x86_64/dl-irel.h: Likewise.
8554
8555         * elf/dl-runtime.c: Use elf_ifunc_invoke.
8556         * elf/dl-sym.c: Likewise.
8557
8558 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8559
8560         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
8561         need to dereference resplen2.
8562
8563 2011-06-14  Andreas Schwab  <schwab@redhat.com>
8564
8565         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
8566
8567 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8568
8569         * Makeconfig: Define vardbdir and inst_vardbdir.
8570         * nss/Makefile: Add rules to install db-Makefile.
8571
8572         * nss/nss_db/db-XXX.c: Cleanup.
8573
8574         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
8575         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
8576         GLIBC_PRIVATE.
8577         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
8578         * nss/makedb.c: Implement -g option to specify that value strings
8579         are generated and should not be added to table iterated over for
8580         get*ent calls.
8581         * nss/nss_db/db-initgroups.c: New file.
8582
8583         * nss/getent.c: Add support for initgroups lookups through getgrouplist
8584         interface.
8585
8586         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
8587         (internal_getgrouplist): Adjust to name change.
8588         Update use_initgroups_entry if this is not the first call.
8589         * nss/databases.def: Add initgroups entry.
8590
8591         * nss/makedb.c (compute_tables): Check result of multiple hash table
8592         sizes to minimize maximum chain length.
8593
8594 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
8595
8596         * Versions.def: Add entry for libnss_db.
8597         * shlib-versions: Likewise.
8598         * nss/Makefile: Add rules to build libnss_db.
8599         * nss/Versions: Add libnss_db information.  Organize libnss_files
8600         entries better.
8601         * nss/db-Makefile: Add gshadow support.  Change rules for the new
8602         makedb progra.  Some minor improvements to generate smaller files.
8603         * nss/nss_db/nss_db.h: Move NSS database header data structures to
8604         here from...
8605         * nss/makedb.c: ...here.
8606         Improve database format to be smaller and require less memory at
8607         runtime.
8608         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
8609         db anymore.
8610         * nss/nss_db/db-netgrp.c: Likewise.
8611         * nss/nss_db/db-open.c: Likewise.
8612         * nss/nss_files/flies-XXX.x: Adjust comments.
8613         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
8614         * nss/nss_files/files-grp.c: Likewise.
8615         * nss/nss_files/files-hosts.c: Likewise.
8616         * nss/nss_files/files-network.c: Likewise.
8617         * nss/nss_files/files-proto.c: Likewise.
8618         * nss/nss_files/files-pwd.c: Likewise.
8619         * nss/nss_files/files-rpc.c: Likewise.
8620         * nss/nss_files/files-service.c: Likewise.
8621         * nss/nss_files/files-sgrp.c: Likewise.
8622         * nss/nss_files/files-spwd.c: Likewise.
8623         * nss/nss_db/db-alias.c: Removed.
8624         * nss/nss_db/dummy-db.h: Removed.
8625
8626 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
8627
8628         * nss/makedb.c: Rewritten to not use database library.
8629         * nss/Makefile: Update to build new makedb program.
8630
8631 2011-06-14  Andreas Jaeger  <aj@suse.de>
8632
8633         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
8634         memset declaration.
8635
8636 2011-06-10  Andreas Schwab  <schwab@redhat.com>
8637
8638         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
8639         tmpbuf.
8640
8641 2011-06-10  Roland McGrath  <roland@hack.frob.com>
8642
8643         * Makerules (shlib.lds): Fail if the linker script comes out empty.
8644         * elf/Makefile ($(objpfx)ld.so): Likewise.
8645
8646         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
8647         Don't list ld.so twice in dependencies.
8648
8649         * posix/bug-regex31.c: Include <stdlib.h>.
8650
8651         * nscd/hstcache.c (cache_addhst): Remove unused variable.
8652
8653         * nis/nss_compat/compat-spwd.c
8654         (getspent_next_nss_netgr): Remove unused variable.
8655         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
8656
8657         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
8658         nonmembers" output to use the right array.
8659
8660         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
8661
8662         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
8663
8664         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
8665         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
8666         * catgets/gencat.c (read_input_file): Likewise.
8667         * locale/programs/locarchive.c (enlarge_archive): Likewise.
8668
8669         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
8670         variable definition inside #if's controlling its use.
8671
8672         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
8673
8674         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
8675
8676         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
8677
8678         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
8679         unreachable code.
8680
8681         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
8682
8683         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
8684         * configure: Regenerated.
8685
8686         * Makerules: Revert last change.
8687         * elf/Makefile: Likewise.
8688
8689 2011-06-09  Roland McGrath  <roland@hack.frob.com>
8690
8691         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
8692         * elf/Makefile ($(objpfx)librtld.os): Likewise.
8693         (reloc-link): Likewise.
8694
8695 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
8696
8697         * elf/Makefile: Add rules to build pldd.
8698         * elf/pldd.c: New file.
8699         * elf/pldd-xx.c: New file.
8700
8701 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
8702
8703         * version.h: Update for 2.15 development version.
8704
8705 2011-06-07  David S. Miller  <davem@davemloft.net>
8706
8707         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
8708         ifuncs.
8709         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
8710         elf_machine_lazy_rel): Likewise.
8711         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8712         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
8713         elf_machine_lazy_rel): Likewise.
8714         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
8715         dl_hwcap via passed in argument.
8716         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
8717         Likewise.
8718
8719 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8720
8721         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
8722
8723 2011-06-06  Roland McGrath  <roland@hack.frob.com>
8724
8725         [BZ #12849]
8726         * manual/fdl-1.1.texi: New file, verbatim from:
8727         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
8728         * manual/lgpl-2.1.texi: New file, verbatim from:
8729         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
8730         * manual/Makefile (licenses): New variable, list those new file names.
8731         (texis): Use it.
8732         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
8733
8734         * manual/fdl.texi: File removed.
8735         * manual/lesser.texi: File removed.
8736         * manual/libc.texinfo (Copying, Documentation License):
8737         Use new @include file names, put @appendix directive before @include.
8738
8739 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
8740
8741         [BZ #12841]
8742         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
8743         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
8744         (mq_open): Add __NTH.
8745
8746 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
8747
8748         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8749         Assume Intel Core i3/i5/i7 processor if AVX is available.
8750
8751 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8752
8753         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
8754         typo.
8755
8756 2011-05-31  Andreas Schwab  <schwab@redhat.com>
8757
8758         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
8759         memory.  Use alloca_account.  Fix memory leak when retrying.
8760
8761 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
8762
8763         * version.h (RELEASE): Bump for 2.14 release.
8764         * include/features.h (__GLIBC_MINOR__): Bump to 14.
8765
8766         * config.make.in (RANLIB): Remove entry.
8767
8768 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
8769
8770         * po/Makefile (po-sed-cmd): Add ksh to extensions.
8771         (libc.pot): Work around missing support for .ksh extension in xgettext.
8772
8773         [BZ #12684]
8774         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
8775         if both request failed.
8776         (send_dg): In case of server errors clear resplen or *resplen2.
8777
8778         [BZ #12454]
8779         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
8780         when there are multiple maps.
8781         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
8782         (_dl_fini): Remove test here.
8783
8784         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
8785
8786 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
8787
8788         [BZ #12350]
8789         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
8790         bit from old_res_options.
8791         (gaih_inet): Likewise.
8792
8793         [BZ #11099]
8794         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
8795         as signed.
8796
8797         * resolv/res_init.c (res_setoptions): Make the code more compact.
8798
8799         [BZ #11558]
8800         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
8801         set RES_USEVC.
8802
8803         [BZ #11634]
8804         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
8805
8806         * malloc/malloc.h: Mark malloc hook variables as deprecated.
8807
8808         [BZ #11781]
8809         * malloc/malloc.h: Declare malloc hook variables as volatile.
8810
8811         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
8812         in last patch.
8813
8814         [BZ #11799]
8815         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
8816         raise in the comment.
8817         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
8818         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
8819         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
8820
8821 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
8822
8823         [BZ #12811]
8824         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
8825         grow the buffers more if it already has to be sufficient.
8826         (build_wcs_upper_buffer): Likewise.
8827         * posix/regexec.c (check_matching): Likewise.
8828         (clean_state_log_if_needed): Likewise.
8829         (extend_buffers): Don't enlarge buffers beyond size of the input
8830         buffer.
8831         Patches mostly by Emil Wojak <emil@wojak.eu>.
8832         * posix/bug-regex32.c: New file.
8833         * posix/Makefile (tests): Add bug-regex32.
8834
8835         * locale/findlocale.c (_nl_find_locale): Return right away if
8836         _nl_explode_name failed.
8837         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8838
8839         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
8840
8841         * debug/xtrace.sh: Unify messages.
8842         * malloc/memusage.sh: Likewise.
8843
8844         [BZ #12813]
8845         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
8846         time symbol from vDSO.  Substitute with vsyscall if not available.
8847         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
8848         __vdso_time.
8849
8850         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
8851         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
8852         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
8853         Add sendmmsg and internal_sendmmsg.
8854         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
8855         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
8856         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
8857
8858         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
8859         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
8860         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
8861
8862 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
8863
8864         [BZ #12813]
8865         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
8866         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
8867         available.
8868         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
8869         __vdso_getcpu.
8870
8871         [BZ #12814]
8872         * iconvdata/Makefile (tests): Add bug-iconv9.
8873         * iconvdata/bug-iconv9.c: New file.
8874
8875 2011-05-27  Andreas Schwab  <schwab@redhat.com>
8876
8877         [BZ #12814]
8878         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
8879
8880 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
8881
8882         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
8883         (struct user_regs_struct): Change intcs field back to cs.
8884
8885 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
8886
8887         * po/ja.po: Update from translation team.
8888
8889 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
8890
8891         [BZ #12795]
8892         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
8893         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
8894
8895 2011-05-20  Andreas Schwab  <schwab@redhat.com>
8896
8897         * stdlib/longlong.h: Update from GCC.
8898
8899 2011-05-23  Andreas Schwab  <schwab@redhat.com>
8900
8901         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
8902         parameter name.
8903         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
8904         Add parameter name.
8905         (__sysconf): Pass it down.
8906
8907 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
8908
8909         [BZ #12671]
8910         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
8911         some situations.
8912         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8913         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
8914         add in in __libc_use_alloca calls.  Adjust callers.
8915         (glob): Use malloc in some situations.
8916
8917         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
8918         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
8919         pltexit.
8920
8921 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
8922
8923         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
8924         and CLOCK_BOOTTIME_ALARM.
8925
8926         [BZ #12782]
8927         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
8928         is returned.
8929
8930         * string/_strerror.c (__strerror_r): Print negative errors as signed
8931         numbers.
8932
8933         [BZ #12777]
8934         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
8935         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
8936         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
8937
8938         * configure.in: Fix typo in redirection and correct removal of test
8939         files in two cases.
8940
8941         [BZ #12788]
8942         * locale/setlocale.c (new_composite_name): Fix test to check for
8943         identical name of all categories.
8944
8945         [BZ #12792]
8946         * libio/filedoalloc.c (local_isatty): New function.
8947         (_IO_file_doallocate): Use local_isatty.
8948         * stdio-common/perror.c (perror): In case a new stream is used
8949         forward the stream error.
8950         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
8951         error flag.
8952
8953 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
8954
8955         [BZ #11869]
8956         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
8957         alloca.
8958         * include/alloca.h (extend_alloca_account): Define.
8959
8960         [BZ #11857]
8961         * posix/regex.h: Fix comments with documentation of user-accessible
8962         fields after compilation and describe correct free'ing of pattern
8963         after re_compile_pattern.
8964         Patch by Reuben Thomas <rrt@sc3d.org>.
8965
8966 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
8967
8968         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
8969         and -mno-altivec to prevent the compiler from using Altivec and/or
8970         VSX instructions when the corresponding registers are not available.
8971
8972 2011-05-19  Andreas Schwab  <schwab@redhat.com>
8973
8974         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
8975
8976 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
8977
8978         * libio/freopen.c (freopen): Use __dup2, not dup2.
8979         * libio/freopen64.c (freopen64): Likewise.
8980
8981 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
8982
8983         [BZ #12775]
8984         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
8985         * math/Makefile (tests): Add test-powl.
8986         (CFLAGS-test-powl.c): Define.
8987         * math/test-powl.c: New file.
8988
8989 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8990
8991         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
8992
8993 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
8994
8995         [BZ #11837]
8996         * iconvdata/gb18030.c: Update to GB18020-2005.
8997
8998 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
8999
9000         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9001         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9002         Patch by Aharon Robbins <arnold@skeeve.com>.
9003
9004         [BZ #11892]
9005         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9006         on the stack.
9007
9008         [BZ #11895]
9009         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9010         through underflows.
9011
9012         [BZ #12766]
9013         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9014         point to strings before performing equality test for error_one_per_line
9015         mode.
9016
9017         [BZ #11697]
9018         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9019
9020         [BZ #11820]
9021         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9022         (struct user_fpregs_struct): Avoid __uint*_t types.
9023
9024         [BZ #6420]
9025         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9026         symbol info.  Use it instead of calling _dl_addr locally.
9027         (lock_and_info): New function.
9028         (tr_freehook): Call lock_and_info and pass symbol info as additional
9029         parameter to tr_where.
9030         (tr_mallochook): Likewise.
9031         (tr_reallochook): Likewise.
9032         (tr_memalignhook): Likewise.
9033
9034         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9035         used and couldn't be at all thread-safe.
9036
9037 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9038
9039         * libio/freopen.c (freopen): Don't close old file descriptor
9040         before the new one is opened.  Instead dup the new file descriptor
9041         to the old one after the new stream is created.
9042         * libio/freopen64.c (freopen64): Likewise.
9043         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9044         * libio/fileops.c (_IO_new_file_close_it): Handle new
9045         _IO_FLAGS2_NOCLOSE flag.
9046         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9047         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9048         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9049         _IO_FLAGS2_NOCLOSE flag.
9050         * include/unistd.h: Add hidden_proto for dup3.
9051         Define __have_dup3.
9052         * io/dup3.c: Define hidden symbol.
9053         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9054
9055         [BZ #7101]
9056         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9057         when an incomplete long option is used.
9058         * posix/tst-getopt_long1.c: New file.
9059         * posix/Makefile (tests): Add tst-getopt_long1.
9060
9061         [BZ #10138]
9062         * scripts/config.guess: Update from autoconf-2.68.
9063         * scripts/config.sub: Likewise.
9064
9065         [BZ #10157]
9066         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9067         tests into ...
9068         (has_cpuclock): ...this.  New function.
9069         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9070         macro here based on has_cpuclock code.
9071
9072         [BZ #10149]
9073         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9074         First byte (not low byte) is now always NUL.
9075         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9076
9077         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9078         Use non-cancelable interfaces.
9079
9080         [BZ #9809]
9081         * locale/iso-639.def: Add entry for Sorani.
9082
9083         [BZ #11901]
9084         * include/stdlib.h: Move include protection to the right place.
9085         Define abort_msg_s.  Declare __abort_msg with it.
9086         * stdlib/abort.c (__abort_msg): Adjust type.
9087         * assert/assert.c (__assert_fail_base): New function.  Majority
9088         of code from __assert_fail.  Allocate memory for __abort_msg with
9089         mmap.
9090         (__assert_fail): Now call __assert_fail_base.
9091         * assert/assert-perr.c: Remove bulk of implementation.  Use
9092         __assert_fail_base.
9093         * include/assert.hL Declare __assert_fail_base.
9094         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9095         mmap.
9096         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9097
9098 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9099
9100         [BZ #11952]
9101         [BZ #12453]
9102         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9103         until all modules are registered in the DTV.
9104         * elf/Makefile: Add rules to build and run tst-tls19.
9105         * elf/tst-tls19.c: New file.
9106         * elf/tst-tls19mod1.c: New file.
9107         * elf/tst-tls19mod2.c: New file.
9108         * elf/tst-tls19mod3.c: New file.
9109         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9110
9111         [BZ #12083]
9112         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9113         correctly.
9114
9115         [BZ #12601]
9116         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9117         two-byte sequence errors.
9118         * iconvdata/Makefile (tests): Add bug-iconv8.
9119         * iconvdata/bug-iconv8.c: New file.
9120
9121         [BZ #12626]
9122         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9123         buf2 definition.
9124
9125         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9126
9127         [BZ #12432]
9128         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9129         (dummy_getcfa): New function.
9130         (init): Get _Unwind_GetCFA address, use dummy if not found.
9131         (backtrace_helper): In recursion check, also check whether CFA changes.
9132         (__backtrace): Completely initialize arg.
9133
9134         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9135         storing incomplete byte sequence in state object.  Avoid testing for
9136         guaranteed too small input if we know there is enough data available.
9137
9138 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9139
9140         * Makeconfig (+link-pie): Indent.
9141         * Rules (binaries-pie): Define if $(have-fpie) and
9142         $(build-shared).
9143         (binaries-shared): Also filter out $(binaries-pie).
9144         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9145         * nscd/Makefile (others-pie): Add nscd.
9146         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9147         ($(objpfx)nscd): Remove command override.
9148         * login/Makefile (others-pie): Add pt_chown.
9149         ($(objpfx)pt_chown): Remove command override.
9150         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9151         remove command overrides.
9152
9153 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9154
9155         * libio/tst_putwc.c: Fix error messages.
9156
9157         [BZ #12724]
9158         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9159         currently writing and seek to current position when not.
9160         * libio/Makefile (tests): Add bug-fclose1.
9161         * libio/bug-fclose1.c: New file.
9162
9163 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9164
9165         [BZ #12511]
9166         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9167         don't set DF_1_NODELETE here.
9168         (do_lookup_x): When entering new entry test for copy relocation
9169         and if necessary set DF_1_NODELETE flag.
9170         * elf/tst-unique4.cc: New file.
9171         * elf/tst-unique4.h: New file.
9172         * elf/tst-unique4lib.cc: New file.
9173         * elf/Makefile: Add rules to build and run tst-unique4.
9174         Patch by Piotr Bury <pbury@goahead.com>.
9175
9176 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9177
9178         [BZ #12052]
9179         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9180
9181         [BZ #12625]
9182         * misc/mntent_r.c (addmntent): Flush the stream after the output
9183
9184         [BZ #12393]
9185         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9186         (is_trusted_path_normalize): Skip initial colon.  Append slash
9187         to empty buffer.  Duplicate is_trusted_path code but allow
9188         constructed patch to be prefix.
9189         (is_dst): Allow $ORIGIN followed by /.
9190         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9191         Correct testing of result of is_trusted_path_normalize
9192         (decompose_rpath): Fix warning.
9193
9194 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9195
9196         [BZ #11257]
9197         * grp/initgroups.c (internal_getgrouplist): When we found the service
9198         list through the initgroups entry in nsswitch.conf do not always
9199         continue on a successful lookup.  Don't always use the
9200         __nss_group_database value if it is set.
9201         * nss/nsswitch.conf (initgroups): Change action for successful db
9202         lookup to continue for compatibility.
9203
9204 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9205
9206         [BZ #11532]
9207         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9208         and CP774 modules.
9209         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9210         and CP774 modules.
9211         * iconvdata/tst-tables.sh: Likewise.
9212         * iconvdata/cp770.c: New file.
9213         * iconvdata/cp771.c: New file.
9214         * iconvdata/cp772.c: New file.
9215         * iconvdata/cp773.c: New file.
9216         * iconvdata/cp774.c: New file.
9217         * iconvdata/testdata/CP770: New file.
9218         * iconvdata/testdata/CP770..UTF8: New file.
9219         * iconvdata/testdata/CP771: New file.
9220         * iconvdata/testdata/CP771..UTF8: New file.
9221         * iconvdata/testdata/CP772: New file.
9222         * iconvdata/testdata/CP772..UTF8: New file.
9223         * iconvdata/testdata/CP773: New file.
9224         * iconvdata/testdata/CP773..UTF8: New file.
9225         * iconvdata/testdata/CP774: New file.
9226         * iconvdata/testdata/CP774..UTF8: New file.
9227
9228         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9229         END CHARMAP line.
9230         * iconvdata/gen-8bit-gap.sh: Likewise.
9231         * iconvdata/gen-8bit.sh: Likewise.
9232
9233         * locale/iso-639.def: Add ary entry.
9234
9235         [BZ #11258]
9236         * locale/C-translit.h.in: Add U20A1 transliteration.
9237
9238         [BZ #12178]
9239         * locale/iso-639.def: Add wae entry.
9240         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9241
9242         [BZ #12545]
9243         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9244         for n.
9245
9246         [BZ #12711]
9247         * locale/C-translit.h.in: Add entry for U20B9.
9248         Patch by pravin.d.s@gmail.com.
9249
9250 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9251
9252         [BZ #12713]
9253         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9254         ENAMETOOLONG use generic getcwd.
9255         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9256         in rtld.  Use *stat64.
9257         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9258         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9259         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9260         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9261         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9262         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9263         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9264         __fstatat64 macros.
9265         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9266         * dirent/rewinddir.c: Add libc_hidden_def.
9267         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9268         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9269
9270         * include/dirent.h (__alloc_dir): Add flags parameter.
9271         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9272         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9273         __alloc_dir.
9274         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9275         from fdopendir if O_CLOEXEC is already set.
9276
9277 2011-03-15  Alan Modra  <amodra@gmail.com>
9278
9279         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9280         l_tls_firstbyte_offset non-zero.  Save padding offset in
9281         l_tls_firstbyte_offset for later use.
9282         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9283         freeing static tls block.
9284
9285 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9286
9287         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9288         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9289         being defined by the kernel headers.
9290
9291 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9292
9293         [BZ #12734]
9294         * resolv/resolv.h: Define RES_NOTLDQUERY.
9295         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9296         no-tld-query and set RES_NOTLDQUERY.
9297         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9298         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9299         modern BIND to search name as TLD unless forbidden.
9300
9301 2011-05-07  Petr Baudis  <pasky@suse.cz>
9302             Ulrich Drepper  <drepper@gmail.com>
9303
9304         [BZ #12393]
9305         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9306         (is_trusted_path): ...to here.
9307         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9308         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9309         using is_trusted_path_normalize() in setuid scripts.
9310
9311 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9312
9313         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9314         __BEGIN/__END_DECLS.
9315
9316 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9317
9318         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9319         NSS_STATUS_NOTFOUND if no record was found.
9320
9321 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9322
9323         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9324         (headers-not-in-tirpc): Remove rpc/netdb.h
9325         * resolv/netdb.h: Revert last change.
9326
9327 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9328
9329         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9330         circular dependency between libgcc.a and libc.a.
9331
9332 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9333
9334         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9335         * nis/Makefile: Don't install rpcsvc/*.
9336         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9337         instead of <rpc/types.h>.
9338         (MAXHOSTNAMELEN): Define.
9339
9340 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9341
9342         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9343
9344 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9345
9346         [BZ #12714]
9347         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9348         gethostbyname4_r when IPv6 results are possible.
9349
9350 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9351
9352         [BZ #12723]
9353         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9354         _PC_PIPE_BUF handling.
9355
9356 2011-04-30  Bruno Haible  <bruno@clisp.org>
9357
9358         [BZ #12717]
9359         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9360         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9361         to 'int'.
9362         * inet/getnameinfo.c (getnameinfo): Likewise.
9363
9364 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9365
9366         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9367         to groups setting in database lookup.
9368         * nss/nsswitch.conf: Add initgroups entry.
9369
9370 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9371
9372         [BZ #12685]
9373         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9374         mode string.
9375         Patch by Eric Blake <eblake@redhat.com>.
9376
9377 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9378
9379         * sunrpc/Makefile (need-export-routines): Add svc_run.
9380         (routines): Remove svc_run.
9381         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9382         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9383         * sunrpc/svc_run.c (svc_run): Likewise.
9384         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9385
9386 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9387
9388         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9389         problem in reallocation in last patch.
9390
9391 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9392
9393         * sunrpc/Makefile: Move inclusion of Rules.
9394
9395 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9396
9397         * nss/nss_files/files-initgroups.c: New file.
9398         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9399         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9400         _nss_files_initgroups_dyn.
9401
9402 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9403
9404         * elf/elf.h (R_ARM_IRELATIVE): Define.
9405
9406 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9407
9408         * po/ru.po: Update from translation team.
9409
9410 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9411
9412         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9413         dependencies.
9414
9415 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9416
9417         [BZ #12653]
9418         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9419         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9420         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9421         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9422         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9423
9424 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9425
9426         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9427         differing bytes.
9428         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9429         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9430         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9431
9432 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9433
9434         [BZ #12420]
9435         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9436         storing it.
9437         * stdlib/bug-getcontext.c: New file.
9438         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9439
9440 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9441
9442         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9443         instructions into .machine "z9-109".
9444         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9445         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9446
9447 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9448
9449         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9450         between environment variables and auxiliary vector.
9451
9452 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9453
9454         * Makefile: Add rules to build linkobj/libc.so.
9455         * include/libc-symbols.h: Define libc_hidden_nolink.
9456         * include/rpc/auth.h: Mark functions which are to be hidden.
9457         * include/rpc/auth_des.h: Likewise.
9458         * include/rpc/auth_unix.h: Likewise.
9459         * include/rpc/clnt.h: Likewise.
9460         * include/rpc/des_crypt.h: Likewise.
9461         * include/rpc/key_prot.h: Likewise.
9462         * include/rpc/pmap_clnt.h: Likewise.
9463         * include/rpc/pmap_prot.h: Likewise.
9464         * include/rpc/pmap_rmt.h: Likewise.
9465         * include/rpc/rpc_msg.h: Likewise.
9466         * include/rpc/svc.h: Likewise.
9467         * include/rpc/svc_auth.h: Likewise.
9468         * include/rpc/xdr.h: Likewise.
9469         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9470         * nss/Makefile: Likewise.
9471         * sunrpc/Makefile: Don't install headers.  Build library with normal
9472         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9473         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9474         for the compat linking library.  Remove use of INTDEF/INTUSE.
9475         * sunrpc/auth_none.c: Likewise.
9476         * sunrpc/auth_unix.c: Likewise.
9477         * sunrpc/authdes_prot.c: Likewise.
9478         * sunrpc/authuxprot.c: Likewise.
9479         * sunrpc/clnt_gen.c: Likewise.
9480         * sunrpc/clnt_perr.c: Likewise.
9481         * sunrpc/clnt_raw.c: Likewise.
9482         * sunrpc/clnt_simp.c: Likewise.
9483         * sunrpc/clnt_tcp.c: Likewise.
9484         * sunrpc/clnt_udp.c: Likewise.
9485         * sunrpc/clnt_unix.c: Likewise.
9486         * sunrpc/des_crypt.c: Likewise.
9487         * sunrpc/des_soft.c: Likewise.
9488         * sunrpc/get_myaddr.c: Likewise.
9489         * sunrpc/key_call.c: Likewise.
9490         * sunrpc/key_prot.c: Likewise.
9491         * sunrpc/netname.c: Likewise.
9492         * sunrpc/pm_getmaps.c: Likewise.
9493         * sunrpc/pm_getport.c: Likewise.
9494         * sunrpc/pmap_clnt.c: Likewise.
9495         * sunrpc/pmap_prot.c: Likewise.
9496         * sunrpc/pmap_prot2.c: Likewise.
9497         * sunrpc/pmap_rmt.c: Likewise.
9498         * sunrpc/publickey.c: Likewise.
9499         * sunrpc/rpc_cmsg.c: Likewise.
9500         * sunrpc/rpc_common.c: Likewise.
9501         * sunrpc/rpc_dtable.c: Likewise.
9502         * sunrpc/rpc_prot.c: Likewise.
9503         * sunrpc/rpc_thread.c: Likewise.
9504         * sunrpc/rtime.c: Likewise.
9505         * sunrpc/svc.c: Likewise.
9506         * sunrpc/svc_auth.c: Likewise.
9507         * sunrpc/svc_authux.c: Likewise.
9508         * sunrpc/svc_raw.c: Likewise.
9509         * sunrpc/svc_run.c: Likewise.
9510         * sunrpc/svc_simple.c: Likewise.
9511         * sunrpc/svc_tcp.c: Likewise.
9512         * sunrpc/svc_udp.c: Likewise.
9513         * sunrpc/svc_unix.c: Likewise.
9514         * sunrpc/svcauth_des.c: Likewise.
9515         * sunrpc/xcrypt.c: Likewise.
9516         * sunrpc/xdr.c: Likewise.
9517         * sunrpc/xdr_array.c: Likewise.
9518         * sunrpc/xdr_float.c: Likewise.
9519         * sunrpc/xdr_intXX_t.c: Likewise.
9520         * sunrpc/xdr_mem.c: Likewise.
9521         * sunrpc/xdr_rec.c: Likewise.
9522         * sunrpc/xdr_ref.c: Likewise.
9523         * sunrpc/xdr_sizeof.c: Likewise.
9524         * sunrpc/xdr_stdio.c: Likewise.
9525
9526 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9527
9528         [BZ #12650]
9529         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9530         * sysdeps/ia64/dl-tls.h: Likewise.
9531         * sysdeps/powerpc/dl-tls.h: Likewise.
9532         * sysdeps/s390/dl-tls.h: Likewise.
9533         * sysdeps/sh/dl-tls.h: Likewise.
9534         * sysdeps/sparc/dl-tls.h: Likewise.
9535         * sysdeps/x86_64/dl-tls.h: Likewise.
9536         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
9537
9538 2011-03-14  Andreas Schwab  <schwab@redhat.com>
9539
9540         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
9541         rpath element also skip the following colon.
9542         (expand_dynamic_string_token): Add is_path parameter and pass
9543         down to DL_DST_REQUIRED and _dl_dst_substitute.
9544         (decompose_rpath): Call expand_dynamic_string_token with
9545         non-zero is_path.  Ignore empty rpaths.
9546         (_dl_map_object_from_fd): Call expand_dynamic_string_token
9547         with zero is_path.
9548
9549 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
9550
9551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9552         Make cancelable.
9553
9554 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
9555
9556         [BZ #12655]
9557         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
9558         Patch by Filipe David Manana <fdmanana@apache.org>.
9559
9560 2011-04-07  Andreas Schwab  <schwab@redhat.com>
9561
9562         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
9563         Maintain aligned stack.
9564         (CHECK_RSP): Remove unused macro.
9565
9566 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
9567
9568         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
9569         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9570
9571 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
9572
9573         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
9574
9575         * include/features.h: Mention __USE_XOPEN2K8 in comment.
9576
9577 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9578
9579         [BZ #12518]
9580         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
9581         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
9582         * sysdeps/x86_64/memmove.c: New file.
9583         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
9584         (memcpy): Renamed to ...
9585         (__new_memcpy): This.
9586         (memcpy): Provide GLIBC_2_14 memcpy.
9587         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
9588         (memcpy): Provide GLIBC_2_2_5 memcpy.
9589
9590 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9591
9592         [BZ #12631]
9593         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
9594
9595 2011-03-30  Andreas Schwab  <schwab@redhat.com>
9596
9597         * misc/syncfs.c: New file.
9598         * misc/Makefile (routines): Add syncfs.
9599         * posix/unistd.h: Declare syncfs.
9600         * sysdeps/unix/syscalls.list: Add syncfs.
9601
9602 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9603
9604         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
9605         open_by_handle_at.
9606         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9607         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9608         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9609         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9610         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9611         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9612         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9613
9614 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9615
9616         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
9617         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9618         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9619         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9620         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9621         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9622         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9623
9624         * io/Makefile: Compile fallocate.c, fallocate64.c, and
9625         sync_file_range.c with -fexceptions.
9626         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
9627         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
9628         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
9629         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
9630         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
9631         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
9632         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
9633         sync_file_range as cancellation point
9634         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
9635         now a wrapper around __call_sync_file_range with cancellation handling.
9636         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
9637         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
9638         function name to __call_sync_file_range.
9639         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
9640         Add call_sync_file_range.
9641
9642 2011-04-01  Andreas Schwab  <schwab@redhat.com>
9643
9644         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9645         bits/timex.h.
9646
9647 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
9648
9649         * iconv/iconv.h: Fix typo in comment.
9650         * io/fcntl.h: Likewise.
9651         * libio/stdio.h: Likewise.
9652         * posix/spawn.h: Likewise.
9653         * posix/unistd.h: Likewise.
9654         * stdlib/stdlib.h: Likewise.
9655         * time/time.h: Likewise.
9656         * wcsmbs/wchar.h: Likewise.
9657
9658         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
9659         open_by_handle): Add.
9660         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
9661         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
9662         Augment a few comments.
9663         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9664         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9665         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9666         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9667         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9668         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
9669         open_by_handle.
9670
9671         * io/fcntl.h (AT_EMPTY_PATH): Define.
9672
9673 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
9674
9675         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
9676         * sysdeps/unix/sysv/linux/bits/time.h: New file.
9677         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
9678         to...
9679         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
9680         * Versions.def: Add GLIBC_2.14.
9681         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
9682         Export.
9683
9684 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
9685
9686         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
9687         round counter.
9688         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9689
9690 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9691
9692         [BZ #12597]
9693         * string/test-strncmp.c (do_page_test): New function.
9694         (check2): Likewise.
9695         (test_main): Call check2.
9696         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
9697
9698 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
9699
9700         [BZ #12587]
9701         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9702         Handle cache information in CPU leaf 4.
9703         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
9704
9705 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
9706
9707         [BZ #12583]
9708         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
9709         character representation.
9710         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
9711
9712 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
9713
9714         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
9715         END(__isnan) to END(__isnanf) to match function entry point/label
9716         EALIGN(__isnanf,...).
9717
9718 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9719
9720         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
9721
9722 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
9723
9724         [BZ #12510]
9725         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
9726         copy from the symbol referenced in the relocation to initialize the
9727         used variable.
9728         Patch by Piotr Bury <pbury@goahead.com>.
9729         * elf/Makefile: Add rules to build and tst-unique3.
9730         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
9731         * elf/tst-unique3.cc: New file.
9732         * elf/tst-unique3.h: New file.
9733         * elf/tst-unique3lib.cc: New file.
9734         * elf/tst-unique3lib2.cc: New file.
9735
9736         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
9737
9738 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
9739
9740         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
9741         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
9742         to _start.
9743
9744 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
9745
9746         * elf/dl-load.c (_dl_map_object): If we are looking for the first
9747         to-be-loaded object along a path to loader is ld.so.
9748
9749 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9750             Ulrich Drepper  <drepper@gmail.com>
9751
9752         * sysdeps/x86_64/memset.S: After aligning destination, code
9753         branches to different locations depending on the value of
9754         misalignment, when multiarch is enabled. Fix this.
9755
9756 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
9757
9758         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
9759         Set _x86_64_preferred_memory_instruction for AMD processsors.
9760         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9761         Set bit_Prefer_SSE_for_memop for AMD processors.
9762
9763 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
9764
9765         * libio/fmemopen.c (fmemopen): Optimize a bit.
9766
9767 2011-03-03  Andreas Schwab  <schwab@redhat.com>
9768
9769         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
9770
9771 2011-03-03  Roland McGrath  <roland@redhat.com>
9772
9773         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
9774
9775 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
9776
9777         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
9778         __bzero_ultra1 instead of __memset_ultra1.
9779
9780 2011-02-23  Andreas Schwab  <schwab@redhat.com>
9781             Ulrich Drepper  <drepper@gmail.com>
9782
9783         [BZ #12509]
9784         * include/link.h (struct link_map): Add l_orig_initfini.
9785         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
9786         returning unsuccessfully.
9787         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
9788         close of a file loaded at startup, restore the original l_initfini
9789         list.
9790         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
9791         list, store the pointer.
9792         * elf/Makefile ($(objpfx)noload-mem): New rule.
9793         (noload-ENV): Define.
9794         (tests): Add $(objpfx)noload-mem.
9795         * elf/noload.c: Include <memcheck.h>.
9796         (main): Call mtrace.  Close all opened handles.
9797
9798 2011-02-17  Andreas Schwab  <schwab@redhat.com>
9799
9800         [BZ #12454]
9801         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
9802         dependencies are missing.
9803
9804 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9805
9806         Fix __if_freereq crash: Unlike the generic version which uses free,
9807         Hurd needs munmap.
9808         * sysdeps/mach/hurd/ifreq.h: New file.
9809
9810 2011-01-27  Petr Baudis  <pasky@suse.cz>
9811             Ulrich Drepper  <drepper@gmail.com>
9812
9813         [BZ 12445]#
9814         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
9815         to extend_alloca().
9816         * stdio-common/bug23.c: New file.
9817         * stdio-common/Makefile (tests): Add bug23.
9818
9819 2010-09-28  Andreas Schwab  <schwab@redhat.com>
9820             Ulrich Drepper  <drepper@gmail.com>
9821
9822         [BZ #12489]
9823         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
9824         before performing relro protection.  At old place add assertion
9825         to make sure nothing changed.
9826
9827 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9828             Glauber de Oliveira Costa  <glommer@gmail.com>
9829
9830         * elf/elf.h: Add new ARM TLS relocs.
9831
9832 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
9833
9834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9835         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
9836         cast from r3.
9837         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
9838         'tests' variable.
9839         * sysdeps/wordsize-64/tst-writev.c: New file.
9840
9841 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
9842
9843         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
9844         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
9845         insns in _dl_start to prevent a TOC reference before relocs are
9846         resolved.
9847
9848 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
9849
9850         [BZ #12469]
9851         * Makeconfig: Remove RANLIB definition.
9852         * Makerules: Don't use RANLIB.
9853         * aclocal.m4: Remove ranlib test.
9854         * configure.in: No need to check for ranlib.
9855         * elf/rtld-Rules: Don't use RANLIB.
9856
9857 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9858
9859         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
9860         protection macro.
9861         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
9862         inclusion protection macro.
9863
9864         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
9865         SIGRTMIN and SIGRTMAX and print information in that case only when
9866         SIGRTMIN is defined.
9867
9868 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
9869
9870         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
9871         arginfo fn returning -1.
9872
9873         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
9874         and thousands string is zero terminated.
9875
9876 2011-02-03  Andreas Schwab  <schwab@redhat.com>
9877
9878         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
9879         sysdeps/unix/sysv/linux/bits/socket.h.
9880
9881 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9882
9883         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
9884         (__CPU_COUNT): Remove old macros.
9885         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
9886         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
9887         (__CPU_ALLOC, __CPU_FREE): Add macros.
9888         (__sched_cpualloc, __sched_cpufree): Add declarations.
9889
9890 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
9891
9892         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
9893         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
9894         * nscd/aicache.c (addhstaiX): Return timeout of added value.
9895         (readdhstai): Return value of addhstaiX call.
9896         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
9897         (addgrbyX): Return value returned by cache_addgr.
9898         (readdgrbyname): Return value returned by addgrbyX.
9899         (readdgrbygid): Likewise.
9900         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
9901         (addpwbyX): Return value returned by cache_addpw.
9902         (readdpwbyname): Return value returned by addhstbyX.
9903         (readdpwbyuid): Likewise.
9904         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
9905         (addservbyX): Return value returned by cache_addserv.
9906         (readdservbyname): Return value returned by addservbyX:
9907         (readdservbyport): Likewise.
9908         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
9909         (addhstbyX): Return value returned by cache_addhst.
9910         (readdhstbyname): Return value returned by addhstbyX.
9911         (readdhstbyaddr): Likewise.
9912         (readdhstbynamev6): Likewise.
9913         (readdhstbyaddrv6): Likewise.
9914         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
9915         (readdinitgroups): Return value returned by addinitgroupsX.
9916         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
9917         (prune_cache): Keep track of timeout value of re-added entries.
9918         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
9919         * nscd/nscd.h: Adjust prototypes of readd* functions.
9920
9921 2011-02-04  Roland McGrath  <roland@redhat.com>
9922
9923         * nis/nis_server.c (nis_servstate): Use the right name for 0.
9924         (nis_stats): Likewise.
9925         * nis/nis_modify.c (nis_modify): Likewise.
9926         * nis/nis_remove.c (nis_remove): Likewise.
9927         * nis/nis_add.c (nis_add): Likewise.
9928
9929         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
9930
9931         * posix/fnmatch_loop.c: Add some consts.
9932
9933         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
9934
9935 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
9936
9937         [BZ #12460]
9938         * config.make.in (config-cflags-novzeroupper): Define.
9939         * configure.in: Substitute libc_cv_cc_novzeroupper.
9940         * elf/Makefile (AVX-CFLAGS): Define.
9941         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
9942         (CFLAGS-tst-auditmod4a.c): Likewise.
9943         (CFLAGS-tst-auditmod4b.c): Likewise.
9944         (CFLAGS-tst-auditmod6b.c): Likewise.
9945         (CFLAGS-tst-auditmod6c.c): Likewise.
9946         (CFLAGS-tst-auditmod7b.c): Likewise.
9947         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
9948
9949 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
9950
9951         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
9952         function to the callback.
9953         Patch partly by Jiri Olsa <jolsa@redhat.com>.
9954
9955 2011-02-02  Andreas Schwab  <schwab@redhat.com>
9956
9957         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
9958         of errno.
9959
9960 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
9961
9962         [BZ #11724]
9963         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
9964         of constructors.
9965         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
9966         of destructors.
9967         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
9968
9969         [BZ #11724]
9970         * elf/Makefile: Add rules to build and run new test.
9971         * elf/tst-initorder.c: New file.
9972         * elf/tst-initorder.exp: New file.
9973         * elf/tst-initordera1.c: New file.
9974         * elf/tst-initordera2.c: New file.
9975         * elf/tst-initordera3.c: New file.
9976         * elf/tst-initordera4.c: New file.
9977         * elf/tst-initorderb1.c: New file.
9978         * elf/tst-initorderb2.c: New file.
9979         * elf/tst-order-a1.c: New file.
9980         * elf/tst-order-a2.c: New file.
9981         * elf/tst-order-a3.c: New file.
9982         * elf/tst-order-a4.c: New file.
9983         * elf/tst-order-b1.c: New file.
9984         * elf/tst-order-b2.c: New file.
9985         * elf/tst-order-main.c: New file.
9986         New test case by George Gensure <werkt0@gmail.com>.
9987
9988 2010-10-01  Andreas Schwab  <schwab@redhat.com>
9989
9990         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
9991         decoding ACE if AI_CANONIDN.
9992
9993 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
9994
9995         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
9996
9997 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
9998
9999         * version.h (RELEASE): Bump for 2.13 release.
10000         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10001
10002         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10003
10004         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10005         MADV_NOHUGEPAGE.
10006         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10007         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10008         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10009         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10010         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10011         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10012
10013         * posix/getconf.c: Update copyright year.
10014         * catgets/gencat.c: Likewise.
10015         * csu/version.c: Likewise.
10016         * debug/catchsegv.sh: Likewise.
10017         * debug/xtrace.sh: Likewise.
10018         * elf/ldconfig.c: Likewise.
10019         * elf/ldd.bash.in: Likewise.
10020         * elf/sprof.c (print_version): Likewise.
10021         * iconv/iconv_prog.c: Likewise.
10022         * iconv/iconvconfig.c: Likewise.
10023         * locale/programs/locale.c: Likewise.
10024         * locale/programs/localedef.c: Likewise.
10025         * malloc/memusage.sh: Likewise.
10026         * malloc/mtrace.pl: Likewise.
10027         * nscd/nscd.c (print_version): Likewise.
10028         * nss/getent.c: Likewise.
10029
10030         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10031         PF_CAIF, and PF_ALG.
10032         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10033
10034 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10035
10036         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10037         (modules-names): Use them.
10038         (ifunc-test-modules, ifunc-pie-tests): Define.
10039         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10040         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10041         (test-extras): Likewise.
10042         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10043         $(compile-command.c).
10044         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10045         (all-built-dso): Define.
10046         (check-textrel.out, check-execstack.out): Depend on it.
10047
10048         * configure.in: Don't override --enable-multi-arch.
10049
10050 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10051
10052         [BZ #6812]
10053         * nscd/hstcache.c (tryagain): Define.
10054         (cache_addhst): Return tryagain not notfound for temporary errors.
10055         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10056         failed.
10057
10058 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10059
10060         [BZ #10563]
10061         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10062         to make the syscall.
10063         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10064
10065         [BZ #12378]
10066         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10067         and fall back to matching as normal character if the string ends before
10068         the matching ']' is found.  This is what POSIX requires.
10069         * posix/testfnm.c: Adjust test result.
10070         * posix/globtest.sh: Adjust test result.  Add new test.
10071         * posix/tst-fnmatch.input: Likewise.
10072         * posix/tst-fnmatch2.c: Add new test.
10073
10074 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10075
10076         * elf/Makefile (check-execstack): Revert last change.  Depend on
10077         check-execstack.h.
10078         (check-execstack.h): New target.
10079         (generated): Add check-execstack.h.
10080         * elf/check-execstack.c: Include "check-execstack.h".
10081         (main): Revert last change.
10082         (handle_file): Return zero if GNU_STACK is absent and
10083         DEFAULT_STACK_PERMS doesn't include PF_X.
10084
10085 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10086
10087         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10088         in child fails because the descriptor is already closed.
10089         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10090         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10091         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10092
10093         [BZ #12397]
10094         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10095         syscall.
10096
10097         [BZ #10484]
10098         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10099         temporary buffer used to handle multi lookups locally.
10100         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10101
10102 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10103
10104         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10105         loader is ld.so.
10106
10107 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10108
10109         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10110         alignment for SSE2.
10111
10112 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10113
10114         [BZ #12394]
10115         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10116         characters.  When rounding increased number of integer digits recompute
10117         number of groups.
10118         * stdio-common/tst-grouping.c: New file.
10119         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10120
10121 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10122
10123         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10124         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10125
10126         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10127         void.
10128         * bits/select.h: Likewise.
10129
10130 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10131
10132         * po/ja.po: Update from translation team.
10133
10134 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10135
10136         [BZ #11155]
10137         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10138         implementation just like for lxstat, fxstatat, et al.
10139
10140 2010-12-27  Jim Meyering  <meyering@redhat.com>
10141
10142         [BZ #12348]
10143         * posix/regexec.c (build_trtable): Return failure indication upon
10144         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10145
10146 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10147
10148         [BZ #12201]
10149         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10150         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10151         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10152         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10153
10154         [BZ #12207]
10155         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10156
10157         [BZ #12204]
10158         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10159         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10160
10161 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10162
10163         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10164         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10165         script has SORT_BY_INIT_PRIORITY.
10166         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10167         NO_CTORS_DTORS_SECTIONS is defined.
10168         * elf/soinit.c: Likewise.
10169         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10170         NO_CTORS_DTORS_SECTIONS is defined.
10171         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10172         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10173         * sysdeps/sh/init-first.c: Likewise.
10174         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10175
10176 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10177
10178         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10179         always use the slow path.
10180
10181 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10182
10183         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10184         similar rule which adds the sysdep directories to the header search in
10185         order to pick up the correct platform stackinfo.h.
10186         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10187         perform test if it is, otherwise return successfully without testing.
10188         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10189         DEFAULT_STACK_PERMS define in stackinfo.h.
10190         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10191         defined in stackinfo.h.
10192         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10193         DEFAULT_STACK_PERMS defined in stackinfo.h.
10194         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10195         * sysdeps/ia64/stackinfo.h: Likewise.
10196         * sysdeps/s390/stackinfo.h: Likewise.
10197         * sysdeps/sh/stackinfo.h: Likewise.
10198         * sysdeps/sparc/stackinfo.h: Likewise.
10199         * sysdeps/x86_64/stackinfo.h: Likewise.
10200         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10201         PF_X for powerpc64.  Retain PF_X for powerpc32.
10202
10203 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10204
10205         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10206         accurately.
10207         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10208         GETDENTS_64BIT_ALIGNED.
10209
10210 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10211
10212         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10213
10214 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10215
10216         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10217         _GNU_SOURCE.
10218
10219         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10220         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10221         Remove __restrict.
10222         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10223         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10224
10225 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10226
10227         [BZ #11655]
10228         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10229         are initialized.
10230
10231 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10232
10233         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10234
10235 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10236
10237         * po/it.po: Update from translation team.
10238
10239 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10240
10241         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10242         unused codes.
10243
10244 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10245
10246         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10247
10248 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10249
10250         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10251         specially.
10252         (gaih_getanswer_slice): Likewise.
10253
10254 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10255
10256         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10257
10258 2010-05-31  Petr Baudis  <pasky@suse.cz>
10259
10260         [BZ #11149]
10261         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10262         silently even in the chroot mode.
10263
10264 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10265
10266         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10267         last patch a bit.  Pretty printing
10268
10269 2010-05-31  Petr Baudis <pasky@suse.cz>
10270
10271         [BZ #10085]
10272         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10273         initialization of skip_initgroups_dyn.
10274
10275 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10276
10277         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10278         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10279
10280 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10281
10282         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10283
10284 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10285
10286         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10287         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10288         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10289         ($(objpfx)tst-fnmatch-mem): New rule.
10290         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10291         * posix/tst-fnmatch.c (main): Call mtrace.
10292
10293 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10294
10295         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10296         Support Intel processor model 6 and model 0x2c.
10297
10298 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10299
10300         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10301           signed comparison.
10302
10303 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10304
10305         [BZ #12205]
10306         * string/test-strncasecmp.c (check_result): New function.
10307         (do_one_test): Use it.
10308         (check1): New function.
10309         (test_main): Use it.
10310         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10311         Support strcasecmp and strncasecmp.
10312
10313 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10314
10315         [BZ #12194]
10316         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10317         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10318
10319 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10320
10321         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10322         IFUNC support.
10323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10324         memset-x86-64.
10325         * sysdeps/x86_64/multiarch/bzero.S: New file.
10326         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10327         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10328         * sysdeps/x86_64/multiarch/memset.S: New file.
10329         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10330         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10331         Set bit_Prefer_SSE_for_memop for Intel processors.
10332         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10333         Define.
10334         (index_Prefer_SSE_for_memop): Define.
10335         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10336
10337 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10338
10339         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10340         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10341
10342 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10343
10344         [BZ #12191]
10345         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10346         (__x86_64_raw_data_cache_size_half): Likewise.
10347         (__x86_64_raw_shared_cache_size): Likewise.
10348         (__x86_64_raw_shared_cache_size_half): Likewise.
10349
10350         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10351         (__x86_64_raw_data_cache_size_half): Likewise.
10352         (__x86_64_raw_shared_cache_size): Likewise.
10353         (__x86_64_raw_shared_cache_size_half): Likewise.
10354         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10355         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10356         and __x86_64_raw_shared_cache_size_half.  Round
10357         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10358         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10359         to multiple of 256 bytes.
10360
10361 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10362
10363         [BZ #12167]
10364         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10365         of inacessible symlinks.  Verify result of symlink before returning it.
10366         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10367         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10368
10369 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10370
10371         * math/math.h (isinf): Fix typo in comment.
10372
10373 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10374
10375         * po/da.po: Update from translation team.
10376
10377 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10378
10379         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10380         is added to the list.
10381
10382 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10383             Ulrich Drepper  <drepper@gmail.com>
10384
10385         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10386         the global list here.  Move code to...
10387         (_dl_add_to_namespace_list): ...here.  New function.
10388         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10389         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10390         * elf/dl-load.c (lose): Don't remove the element from the list.
10391         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10392         (_dl_map_object): Likewise.
10393
10394 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10395
10396         [BZ #12159]
10397         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10398         into all bytes of SSE register.
10399         Patch by Richard Li <richardpku@gmail.com>.
10400
10401 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10402
10403         [BZ #12140]
10404         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10405         perturbing.
10406
10407 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10408
10409         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10410         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10411         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10412         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10414         submachine.
10415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10416
10417 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10418
10419         * include/dlfcn.h (__RTLD_SECURE): Define.
10420         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10421         mode & __RTLD_SECURE instead.
10422         (open_path): Rename preloaded parameter to secure.
10423         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10424         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10425         * elf/dl-deps.c (openaux): Likewise.
10426         * elf/rtld.c (struct map_args): Remove is_preloaded.
10427         (map_doit): Don't use it.
10428         (dl_main): Likewise.
10429         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10430         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10431
10432 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10433
10434         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10435         (sysd-rules-targets): Remove duplicates.
10436         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10437         rtld-%.$o dependency.
10438
10439 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10440
10441         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10442         _dl_map_object do it.
10443
10444 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10445
10446         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10447         fast fma builtins, define the macros in the C99 standard.
10448         (FP_FAST_FMAF): Likewise.
10449         (FP_FAST_FMAL): Likewise.
10450         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10451
10452         * bits/mathdef.h: Update copyright year.
10453         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10454
10455 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10456
10457         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10458         builtins, define the macros in the C99 standard.
10459         (FP_FAST_FMAF): Likewise.
10460         (FP_FAST_FMAL): Likewise.
10461         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10462         multiply/add.
10463         (FP_FAST_FMAF): Likewise.
10464
10465 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10466
10467         [BZ #3268]
10468         * math/libm-test.inc (fma_test): Some new testcases.
10469         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10470         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10471         y and infinite z.  Do multiplication by C already in long double.
10472         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10473         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10474         y and infinite z.  Do bitwise or of inexact bit into u.d.
10475         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10476         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10477         * sysdeps/i386/fpu/s_fma.S: Removed.
10478         * sysdeps/i386/fpu/s_fmal.S: Removed.
10479
10480 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10481
10482         [BZ #3268]
10483         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10484         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10485         computation is not scheduled after fetestexcept.  Fix value
10486         of minimum denormal long double.
10487
10488 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10489
10490         [BZ #3268]
10491         * math/libm-test.inc (fma_test): Add some more tests.
10492         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10493         correctly.
10494
10495 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10496
10497         * scripts/data/localplt-s390-linux-gnu.data: New file.
10498         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10499
10500 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10501
10502         [BZ #3268]
10503         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10504         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10505         instead of dbl-64.
10506         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10507         inlines.
10508         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10509         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10510         if one of x and y is very large and the other is subnormal.
10511         * sysdeps/s390/fpu/s_fmaf.c: New file.
10512         * sysdeps/s390/fpu/s_fma.c: New file.
10513         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10514         * sysdeps/powerpc/fpu/s_fma.S: New file.
10515         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10516         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10517         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10518
10519 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10520
10521         [BZ #3268]
10522         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10523         fma tests.
10524         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10525         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10526         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10527         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10528         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10529         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10530         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
10531
10532 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
10533
10534         [BZ #12078]
10535         * posix/regcomp.c (parse_branch): One more memory leak plugged.
10536         * posix/bug-regex31.input: Add test case.
10537
10538 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10539
10540         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
10541         * posix/bug-regex31.input: New file.
10542
10543         [BZ #12078]
10544         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
10545         (parse_sub_exp): Fix last change, use postorder.
10546
10547         * posix/bug-regex31.c: New file.
10548         * posix/Makefile: Add rules to build and run bug-regex31.
10549
10550         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
10551
10552         [BZ #12078]
10553         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
10554
10555         [BZ #12108]
10556         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
10557         to have entries in sys_siglist.
10558
10559         [BZ #12093]
10560         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
10561         be NULL.
10562
10563 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
10564
10565         [BZ #3268]
10566         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
10567         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
10568         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
10569         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
10570         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10571         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
10572         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
10573         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
10574         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
10575         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
10576         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
10577         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
10578         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
10579         * math/ftestexcept.c (fetestexcept): Likewise.
10580         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
10581         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
10582         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
10583         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
10584         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
10585         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
10586         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10587
10588 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10589
10590         [BZ #12107]
10591         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
10592         newline.
10593
10594 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
10595
10596         * string/bug-strstr1.c: New file.
10597         * string/Makefile: Add rules to build and run bug-strstr1.
10598
10599 2010-10-05  Eric Blake  <eblake@redhat.com>
10600
10601         [BZ #12092]
10602         * string/str-two-way.h (two_way_long_needle): Always clear memory
10603         when skipping input due to the shift table.
10604
10605 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
10606
10607         [BZ #12005]
10608         * malloc/mcheck.c: Handle large requests.
10609
10610         [BZ #12077]
10611         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
10612         for strncmp and strncasecmp.
10613         * string/stratcliff.c: Add tests for strcmp and strncmp.
10614         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
10615
10616 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10617
10618         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
10619         __set_fpscr.
10620
10621 2010-09-30  Andreas Jaeger  <aj@suse.de>
10622
10623         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
10624         (CGROUP_SUPER_MAGIC): Define.
10625         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10626         Handle btrfs and cgroup file systems.
10627         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10628         Likewise.
10629
10630 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
10631
10632         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
10633         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
10634
10635 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10636
10637         [BZ #12067]
10638         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
10639         trying to locate the ELF header.
10640
10641 2010-09-27  Andreas Schwab  <schwab@redhat.com>
10642
10643         [BZ #11611]
10644         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
10645         Mask out sign-bit copies when constructing f_fsid.
10646
10647 2010-09-24  Petr Baudis <pasky@suse.cz>
10648
10649         * debug/stack_chk_fail_local.c: Add missing licence exception.
10650         * debug/warning-nop.c: Likewise.
10651
10652 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
10653
10654         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
10655         implementing getdents64 using getdents syscall, set d_type if
10656         __ASSUME_GETDENTS32_D_TYPE.
10657
10658 2010-09-16  Andreas Schwab  <schwab@redhat.com>
10659
10660         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
10661         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
10662
10663 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
10664
10665         [BZ #12037]
10666         * posix/unistd.h: Undo change of feature selection for ftruncate from
10667         2010-01-11.
10668
10669 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
10670
10671         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
10672         detection.
10673
10674 2010-09-20  Andreas Schwab  <schwab@redhat.com>
10675
10676         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
10677         fanotify_mark.
10678         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
10679
10680 2010-09-14  Andreas Schwab  <schwab@redhat.com>
10681
10682         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
10683         variables after CHECK_SP call.
10684         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
10685
10686 2010-09-13  Andreas Schwab  <schwab@redhat.com>
10687             Ulrich Drepper  <drepper@redhat.com>
10688
10689         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
10690         re-relocationg ld.so.
10691         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
10692         _dl_init_paths call.
10693         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
10694         here anymore.
10695
10696 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
10697
10698         * resolv/res_init.c (__res_vinit): Count the default server we added.
10699
10700 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
10701             Ulrich Drepper  <drepper@redhat.com>
10702
10703         [BZ #11968]
10704         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
10705         (____longjmp_chk): Use %ebx for saving value across system call.
10706         Add unwind info.
10707
10708 2010-09-06  Andreas Schwab  <schwab@redhat.com>
10709
10710         * manual/Makefile: Don't mix pattern rules with normal rules.
10711
10712 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
10713
10714         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
10715         operation.
10716         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
10717         * libio/iofopncook.c (_IO_cookie_init): Likewise.
10718         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
10719         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
10720         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10721         Likewise.
10722
10723 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
10724
10725         [BZ #11979]
10726         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
10727         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
10728
10729 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
10730
10731         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
10732         * sysdeps/x86_64/addmul_1.S: Likewise.
10733         * sysdeps/x86_64/lshift.S: Likewise.
10734         * sysdeps/x86_64/mul_1.S: Likewise.
10735         * sysdeps/x86_64/rshift.S: Likewise.
10736         * sysdeps/x86_64/sub_n.S: Likewise.
10737         * sysdeps/x86_64/submul_1.S: Likewise.
10738
10739 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10740
10741         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
10742         Define __sched_param instead of SCHED_* and sched_param when
10743         <bits/sched.h> is included with __need_schedparam defined.
10744         * bits/sched.h [__need_schedparam]
10745         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
10746         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
10747         (__defined_schedparam): Define to 1.
10748         (__sched_param): New structure, identical to sched_param.
10749         (__need_schedparam): Undefine.
10750
10751 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
10752
10753         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
10754         (epoll_create1): Declare.
10755
10756         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
10757
10758 2010-08-31  Andreas Schwab  <schwab@redhat.com>
10759
10760         [BZ #7066]
10761         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
10762         shifting retval into place.
10763
10764 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
10765
10766         * nis/rpcsvc/nis.h: Update copyright notice.
10767         * nis/rpcsvc/nis.x: Likewise.
10768         * nis/rpcsvc/nis_callback.h: Likewise.
10769         * nis/rpcsvc/nis_callback.x: Likewise.
10770         * nis/rpcsvc/nis_object.x: Likewise.
10771         * nis/rpcsvc/nis_tags.h: Likewise.
10772         * nis/rpcsvc/yp.h: Likewise.
10773         * nis/rpcsvc/yp.x: Likewise.
10774         * nis/rpcsvc/ypupd.h: Likewise.
10775         * nis/yp_xdr.c: Likewise.
10776         * nis/ypupdate_xdr.c: Likewise.
10777
10778         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
10779         mainly the body of pmap_getport.  Add parameters to specify timeouts.
10780         (pmap_getport): Use __libc_rpc_getport.
10781         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
10782         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
10783         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
10784
10785 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
10786
10787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
10788         fanotify_mark.
10789
10790 2010-08-27  Roland McGrath  <roland@redhat.com>
10791
10792         * sysdeps/i386/i686/multiarch/Makefile
10793         (CFLAGS-varshift.c): New variable.
10794
10795 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
10796
10797         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
10798         * sysdeps/i386/i686/multiarch/varshift.c: New file.
10799
10800         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
10801
10802         * sysdeps/x86_64/strlen.S: Minimal code improvement.
10803
10804 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
10805
10806         * sysdeps/x86_64/strlen.S: Unroll the loop.
10807         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10808         strlen-sse2 strlen-sse2-bsf.
10809         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
10810         __strlen_no_bsf if bit_Slow_BSF is set.
10811         (__strlen_sse42): Removed.
10812         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
10813         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
10814
10815 2010-08-25  Roland McGrath  <roland@redhat.com>
10816
10817         * sysdeps/x86_64/multiarch/varshift.S: File removed.
10818         * sysdeps/x86_64/multiarch/varshift.c: New file.
10819         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
10820         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
10821         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
10822         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
10823
10824 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
10825
10826         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10827         strlen-sse2 strlen-sse2-bsf.
10828         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
10829         __strlen_sse2_bsf if bit_Slow_BSF is unset.
10830         (__strlen_sse2): Removed.
10831         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
10832         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
10833         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
10834         bit_Slow_BSF for Atom.
10835         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
10836         (index_Slow_BSF): Define.
10837         (HAS_SLOW_BSF): Define.
10838
10839 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
10840
10841         [BZ #10851]
10842         * resolv/res_init.c (__res_vinit): When no server address at all
10843         is given default to loopback.
10844
10845 2010-08-24  Roland McGrath  <roland@redhat.com>
10846
10847         * configure.in: Remove config-name.h generation.
10848         * configure: Regenerated.
10849         * config-name.in: File removed.
10850         * scripts/config-uname.sh: New file.
10851         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
10852         ($(objdir)config-name.h): New target.
10853
10854         * sunrpc/rpc_parse.h: Avoid nested comment.
10855
10856 2010-08-24  Richard Henderson  <rth@redhat.com>
10857             Ulrich Drepper  <drepper@redhat.com>
10858             H.J. Lu  <hongjiu.lu@intel.com>
10859
10860         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
10861         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
10862         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
10863         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
10864         _mm_alignr_epi8 with _mm_loadu_si128.
10865         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
10866         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
10867         (__m128i_shift_right): Removed.
10868         * sysdeps/i386/i686/multiarch/varshift.h: New file.
10869         * sysdeps/i386/i686/multiarch/varshift.S: New file.
10870         * sysdeps/x86_64/multiarch/varshift.h: New file.
10871         * sysdeps/x86_64/multiarch/varshift.S: New file.
10872
10873 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
10874
10875         * configure.in: Move assembler checks to before sysdep dir checking.
10876
10877 2010-08-20  Petr Baudis  <pasky@suse.cz>
10878
10879         * LICENSES: Sync the sunrpc license.
10880
10881 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
10882
10883         * sunrpc/auth_des.c: Update copyright notice once again.
10884         * sunrpc/auth_none.c: Likewise.
10885         * sunrpc/auth_unix.c: Likewise.
10886         * sunrpc/authdes_prot.c: Likewise.
10887         * sunrpc/authuxprot.c: Likewise.
10888         * sunrpc/bindrsvprt.c: Likewise.
10889         * sunrpc/clnt_gen.c: Likewise.
10890         * sunrpc/clnt_perr.c: Likewise.
10891         * sunrpc/clnt_raw.c: Likewise.
10892         * sunrpc/clnt_simp.c: Likewise.
10893         * sunrpc/clnt_tcp.c: Likewise.
10894         * sunrpc/clnt_udp.c: Likewise.
10895         * sunrpc/clnt_unix.c: Likewise.
10896         * sunrpc/des_crypt.c: Likewise.
10897         * sunrpc/des_soft.c: Likewise.
10898         * sunrpc/get_myaddr.c: Likewise.
10899         * sunrpc/getrpcport.c: Likewise.
10900         * sunrpc/key_call.c: Likewise.
10901         * sunrpc/key_prot.c: Likewise.
10902         * sunrpc/openchild.c: Likewise.
10903         * sunrpc/pm_getmaps.c: Likewise.
10904         * sunrpc/pm_getport.c: Likewise.
10905         * sunrpc/pmap_clnt.c: Likewise.
10906         * sunrpc/pmap_prot.c: Likewise.
10907         * sunrpc/pmap_prot2.c: Likewise.
10908         * sunrpc/pmap_rmt.c: Likewise.
10909         * sunrpc/rpc/auth.h: Likewise.
10910         * sunrpc/rpc/auth_unix.h: Likewise.
10911         * sunrpc/rpc/clnt.h: Likewise.
10912         * sunrpc/rpc/des_crypt.h: Likewise.
10913         * sunrpc/rpc/key_prot.h: Likewise.
10914         * sunrpc/rpc/netdb.h: Likewise.
10915         * sunrpc/rpc/pmap_clnt.h: Likewise.
10916         * sunrpc/rpc/pmap_prot.h: Likewise.
10917         * sunrpc/rpc/pmap_rmt.h: Likewise.
10918         * sunrpc/rpc/rpc.h: Likewise.
10919         * sunrpc/rpc/rpc_des.h: Likewise.
10920         * sunrpc/rpc/rpc_msg.h: Likewise.
10921         * sunrpc/rpc/svc.h: Likewise.
10922         * sunrpc/rpc/svc_auth.h: Likewise.
10923         * sunrpc/rpc/types.h: Likewise.
10924         * sunrpc/rpc/xdr.h: Likewise.
10925         * sunrpc/rpc_clntout.c: Likewise.
10926         * sunrpc/rpc_cmsg.c: Likewise.
10927         * sunrpc/rpc_common.c: Likewise.
10928         * sunrpc/rpc_cout.c: Likewise.
10929         * sunrpc/rpc_dtable.c: Likewise.
10930         * sunrpc/rpc_hout.c: Likewise.
10931         * sunrpc/rpc_main.c: Likewise.
10932         * sunrpc/rpc_parse.c: Likewise.
10933         * sunrpc/rpc_parse.h: Likewise.
10934         * sunrpc/rpc_prot.c: Likewise.
10935         * sunrpc/rpc_sample.c: Likewise.
10936         * sunrpc/rpc_scan.c: Likewise.
10937         * sunrpc/rpc_scan.h: Likewise.
10938         * sunrpc/rpc_svcout.c: Likewise.
10939         * sunrpc/rpc_tblout.c: Likewise.
10940         * sunrpc/rpc_util.c: Likewise.
10941         * sunrpc/rpc_util.h: Likewise.
10942         * sunrpc/rpcinfo.c: Likewise.
10943         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
10944         * sunrpc/rpcsvc/key_prot.x: Likewise.
10945         * sunrpc/rpcsvc/klm_prot.x: Likewise.
10946         * sunrpc/rpcsvc/mount.x: Likewise.
10947         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
10948         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
10949         * sunrpc/rpcsvc/rex.x: Likewise.
10950         * sunrpc/rpcsvc/rstat.x: Likewise.
10951         * sunrpc/rpcsvc/rusers.x: Likewise.
10952         * sunrpc/rpcsvc/sm_inter.x: Likewise.
10953         * sunrpc/rpcsvc/spray.x: Likewise.
10954         * sunrpc/rpcsvc/yppasswd.x: Likewise.
10955         * sunrpc/rtime.c: Likewise.
10956         * sunrpc/svc.c: Likewise.
10957         * sunrpc/svc_auth.c: Likewise.
10958         * sunrpc/svc_authux.c: Likewise.
10959         * sunrpc/svc_raw.c: Likewise.
10960         * sunrpc/svc_run.c: Likewise.
10961         * sunrpc/svc_simple.c: Likewise.
10962         * sunrpc/svc_tcp.c: Likewise.
10963         * sunrpc/svc_udp.c: Likewise.
10964         * sunrpc/svc_unix.c: Likewise.
10965         * sunrpc/svcauth_des.c: Likewise.
10966         * sunrpc/xcrypt.c: Likewise.
10967         * sunrpc/xdr.c: Likewise.
10968         * sunrpc/xdr_array.c: Likewise.
10969         * sunrpc/xdr_float.c: Likewise.
10970         * sunrpc/xdr_mem.c: Likewise.
10971         * sunrpc/xdr_rec.c: Likewise.
10972         * sunrpc/xdr_ref.c: Likewise.
10973         * sunrpc/xdr_sizeof.c: Likewise.
10974         * sunrpc/xdr_stdio.c: Likewise.
10975
10976         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
10977         handling.
10978
10979 2010-08-19  Andreas Schwab  <schwab@redhat.com>
10980
10981         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
10982
10983 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
10984
10985         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
10986         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
10987         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
10988         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
10989         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
10990         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
10991         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
10992         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
10993         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
10994         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
10995         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
10996         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
10997         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
10998         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
10999
11000 2010-07-26  Anton Blanchard  <anton@samba.org>
11001
11002         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11003         * malloc/arena.c (heap_trim): Likewise.
11004
11005 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11006
11007         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11008         here.  Not...
11009         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11010         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11011
11012 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11013
11014         * sysdeps/i386/elf/Makefile: New file.
11015
11016 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11017
11018         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11019         from fanotify_init.
11020         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11021         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11022
11023 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11024
11025         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11026         of strncasecmp_l.
11027         * sysdeps/multiarch/strcmp.S: Likewise.
11028
11029 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11030
11031         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11032         strncase_l-nonascii.
11033         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11034         Add strncase_l-ssse3.
11035         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11036         * sysdeps/x86_64/strcmp.S: Likewise.
11037         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11038         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11039         * sysdeps/x86_64/strncase.S: New file.
11040         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11041         * sysdeps/x86_64/strncase_l.S: New file.
11042         * string/Makefile (strop-tests): Add strncasecmp.
11043         * string/test-strncasecmp.c: New file.
11044
11045         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11046         warning.
11047
11048         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11049         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11050
11051 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11052
11053         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11054
11055 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11056
11057         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11058         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11059         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11060
11061 2010-05-01  Alan Modra  <amodra@gmail.com>
11062
11063         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11064         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11065         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11066         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11067         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11068         tidying.  Don't tail-call __sigjmp_save for static lib.
11069         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11070         save location.
11071         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11072         (CALL_MCOUNT): Add eh info, and nop after bl.
11073         (TAIL_CALL_SYSCALL_ERROR): New macro.
11074         (PSEUDO_RET): Use it.
11075         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11076         Correct save location of integer regs and cr.
11077         (_dl_profile_resolve): Correct cr save location.  Delete nops
11078         after bl when SHARED.  Reduce cfi size a little by better
11079         placement of cfi directives.
11080         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11081         make a stack frame.  Instead use parm save area as a temp.
11082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11083         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11085         Don't make a stack frame for parent, use parm save area.
11086         Increase child stack frame to 112 bytes.  Don't save unused reg,
11087         and adjust reg usage.  Set up cfi on error recovery and
11088         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11090         (__makecontext): Add dummy nop after jump to exit.
11091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11092         Use correct parm save area and cr save, reduce stack frame.
11093         Correct cfi for possible PSEUDO_RET frame setup.
11094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11095         Branch to local label emitted by PSEUDO_RET rather than
11096         __syscall_error.
11097
11098 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11099
11100         [BZ #11904]
11101         * locale/programs/locale.c (print_assignment): New function.
11102         (show_locale_vars): Use it.
11103
11104 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11105
11106         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11107         field.
11108         (struct statfs64): Likewise.
11109         (_STATFS_F_FLAGS): Define.
11110         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11111         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11112         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11113         (ST_VALID): Define locally.
11114         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11115         __statvfs_getflags, use the provided value.
11116         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11117         __ASSUME_STATFS_F_FLAGS.
11118
11119         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11120
11121         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11122         Add sys/fanotify.h.
11123         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11124         fanotify_mask for GLIBC_2.13.
11125         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11126         fanotify_init and fanotify_mark.
11127         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11128         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11129
11130         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11131         Add prlimit.
11132         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11133         prlimit64 for GLIBC_2.13.
11134         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11135         prlimit64.
11136         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11137         syscall.
11138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11139         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11140         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11141         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11142         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11143         add prlimit alias.
11144         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11145
11146         [BZ #11903]
11147         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11148         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11149
11150         * nss/Makefile: Add rules to build and run tst-nss-test1.
11151         * shlib-versions: Add entry for libnss_test1.
11152         * nss/nss_test1.c: New file.
11153         * nss/tst-nss-test1.c: New file.
11154
11155         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11156         (__nss_configure_lookup): Set appropriate entry in
11157         __nss_configure_lookup to true.
11158         * nss/nsswitch.h: Define enum with indeces of databases in
11159         databases and __nss_database_custom arrays.  Declare
11160         __nss_database_custom.
11161         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11162         to avoid using nscd when custom rules are installed.
11163         * nss/getXXbyYY_r.c: Likewise.
11164         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11165
11166         * nss/nss_files/files-parse.c: Whitespace fixes.
11167
11168 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11169
11170         [BZ #11883]
11171         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11172         * posix/fnmatch_loop.c: Likewise.
11173
11174 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11175
11176         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11177         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11178         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11179         * Versions.def [GLIBC_2.13]: Add.
11180
11181 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11182
11183         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11184         Also fail if tpwd after pwuid call is NULL.
11185
11186 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11187
11188         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11189         when converting to ms.
11190
11191 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11192
11193         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11194         EOPNOTSUPP errors with ENOTTY.
11195         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11196         EOPNOTSUPP errors with ENOTTY.
11197
11198 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11199
11200         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11201         Add strcasecmp_l-ssse3.
11202         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11203         strcasecmp.
11204         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11205         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11206         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11207
11208 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11209
11210         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11211
11212         * string/Makefile (strop-tests): Add strcasecmp.
11213         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11214         strcasecmp_l-nonascii.
11215         (gen-as-const-headers): Add locale-defines.sym.
11216         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11217         * sysdeps/x86_64/strcasecmp.S: New file.
11218         * sysdeps/x86_64/strcasecmp_l.S: New file.
11219         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11220         * sysdeps/x86_64/locale-defines.sym: New file.
11221         * string/test-strcasecmp.c: New file.
11222
11223         * string/test-strcasestr.c: Test both ends of the range of characters.
11224         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11225
11226 2010-07-29  Roland McGrath  <roland@redhat.com>
11227
11228         [BZ #11856]
11229         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11230
11231 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11232
11233         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11234         for ld.so.
11235
11236 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11237
11238         * manual/memory.texi (Malloc Tunable Parameters): Document
11239         M_PERTURB.
11240
11241 2010-07-26  Roland McGrath  <roland@redhat.com>
11242
11243         [BZ #11840]
11244         * configure.in (-fgnu89-inline check): Set and substitute
11245         gnu89_inline, not libc_cv_gnu89_inline.
11246         * configure: Regenerated.
11247         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11248
11249 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11250
11251         * string/test-strnlen.c: New file.
11252         * string/Makefile (strop-tests): Add strnlen.
11253         * string/tester.c (test_strnlen): Add a few more test cases.
11254         * string/tst-strlen.c: Better error reporting.
11255
11256         * sysdeps/x86_64/strnlen.S: New file.
11257
11258 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11259
11260         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11261         lower-latency instructions.
11262
11263 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11264
11265         * string/test-strcasestr.c: New file.
11266         * string/test-strstr.c: New file.
11267         * string/Makefile (strop-tests): Add strstr and strcasestr.
11268         * string/str-two-way.h: Don't undefine MAX.
11269         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11270
11271 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11272
11273         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11274         strcasestr-nonascii.
11275         (CFLAGS-strcasestr-nonascii.c): Define.
11276         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11277         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11278         Remove unused attribute.
11279
11280 2010-07-20  Roland McGrath  <roland@redhat.com>
11281
11282         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11283         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11284         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11285         like LD_HWCAP_MASK can disable hwcaps.
11286
11287 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11288
11289         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11290
11291 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11292
11293         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11294         call in strcasestr.
11295         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11296         __strcasestr_sse42_nonascii.
11297         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11298         strcasestr-nonascii.c.
11299         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11300
11301 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11302
11303         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11304         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11305         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11306         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11307
11308 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11309
11310         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11311         fcntl.
11312
11313 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11314
11315         [BZ #11577]
11316         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11317         dl_signal_cerror.
11318
11319 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11320
11321         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11322         _PC_PIPE_BUF using F_GETPIPE_SZ.
11323
11324 2010-07-05  Roland McGrath  <roland@redhat.com>
11325
11326         * manual/arith.texi (Rounding Functions): Fix rint description
11327         implicit in round description.
11328
11329 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11330
11331         * elf/Makefile: Fix linking for a few tests to make recent linker
11332         happy.
11333
11334 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11335
11336         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11337         $(common-objpfx)libc_nonshared.a.
11338
11339 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11340
11341         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11342         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11343         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11344         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11345         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11346         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11347         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11348         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11363         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11364         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11365         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11366         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11367         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11368         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11369         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11370         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11371         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11372         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11373         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11374         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11389
11390 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11391
11392         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11393         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11394         * string/memmove.c (memmove): Renamed to ...
11395         (MEMMOVE): ...this.  Default to memmove.
11396         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11397         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11398         (END_CHK): Define.
11399         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11400         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11401         mempcpy-ssse3-back memmove-ssse3-back.
11402         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11403         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11404         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11405         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11406         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11407         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11408         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11409         * sysdeps/x86_64/multiarch/memmove.c: New file.
11410         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11411         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11412         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11413         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11414         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11415         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11416         Define.
11417         (index_Fast_Copy_Backward): Define.
11418         (HAS_ARCH_FEATURE): Define.
11419         (HAS_FAST_REP_STRING): Define.
11420         (HAS_FAST_COPY_BACKWARD): Define.
11421
11422 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11423
11424         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11425         Restore proper fallback handling.
11426
11427 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11428
11429         [BZ #11701]
11430         * posix/group_member.c (__group_member): Correct checking loop.
11431
11432         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11433         OOM in getpwuid_r correctly.  Return error number when the caller
11434         should return, otherwise -1.
11435         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11436         call returning > 0 value.
11437         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11438
11439 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11440
11441         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11442         libc_nonshared.a from targets in modules-names.
11443
11444 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11445
11446         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11447         requires it.
11448
11449 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11450
11451         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11452         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11453         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11454         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11455
11456 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11457
11458         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11459
11460 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11461
11462         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11463         and F_GETPIPE_SZ.
11464         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11465         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11466         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11467         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11468         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11469         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11470
11471 2010-06-14  Roland McGrath  <roland@redhat.com>
11472
11473         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11474
11475 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11476
11477         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11478         __REDIRECT followed by __THROW.
11479         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11480         * posix/getopt.h (getopt): Likewise.
11481
11482 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11483
11484         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11485         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11486         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11487         in AT_FLAGS.
11488         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11489         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11490
11491 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11492
11493         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11494
11495 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11496
11497         [BZ #11640]
11498         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11499         Properly check family and model.
11500
11501 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11502
11503         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11504
11505 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11506
11507         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11508
11509 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11510
11511         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11512         symbol reference.
11513
11514 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11515
11516         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11517         symbol reference.
11518
11519 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11520
11521         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11522         and internal_recvmmsg.
11523         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11524         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11525         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11526         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11527
11528         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11529         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11530         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11531
11532 2010-05-20  Andreas Schwab  <schwab@redhat.com>
11533
11534         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
11535
11536 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
11537
11538         POWER7 optimizations.
11539         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
11540         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
11541
11542 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
11543
11544         * version.h: Update for 2.13 development version.
11545
11546 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
11547
11548         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
11549         exceptions.  Return 0.
11550
11551 2010-05-07  Roland McGrath  <roland@redhat.com>
11552
11553         * elf/ldconfig.c (main): Add a const.
11554
11555 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
11556
11557         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
11558         (args_options): Add no-idn option.
11559         (ahosts_keys_int): Add idn_flags to ai_flags.
11560         (parse_option): Handle 'i' option to clear idn_flags.
11561
11562         * malloc/malloc.c (_int_free): Possible race in the most recently
11563         added check.  Only act on the data if no current modification
11564         happened.
11565
11566 See ChangeLog.17 for earlier changes.