Split _dl_writev out from _dl_debug_vdprintf.
[platform/upstream/glibc.git] / ChangeLog
1 2013-05-06  Roland McGrath  <roland@hack.frob.com>
2
3         * elf/dl-writev.h: New file.
4         * elf/dl-misc.c: Include it.
5         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
6         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
7
8 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
9
10         * math/libm-test.inc (noXFails): Remove variable.
11         (noXPasses): Likewise.
12         (BUILD_COMPLEX_INT): Remove macro.
13         (print_screen): Remove xfail argument.
14         (print_screen_max_error): Likewise.
15         (update_stats): Likewise.
16         (print_max_error): Likewise.  Update calls to other affected
17         functions.
18         (print_complex_max_error): Likewise.
19         (test_single_exception): Update calls to print_screen.
20         (test_single_errno): Likewise.
21         (check_float_internal): Remove xfail argument.  Update calls to
22         other affected functions.
23         (check_float): Likewise.
24         (check_complex): Likewise.
25         (check_int): Likewise.
26         (check_long): Likewise.
27         (check_bool): Likewise.
28         (check_longlong): Likewise.
29         (main): Don't print noXFails and noXPasses.
30         * math/gen-libm-test.pl (top level): Don't mention expected
31         failure handling in comment.
32         (new_test): Don't handle expected failures.
33         (parse_args): Don't mention expected failure handling in comment.
34         (generate_testfile): Don't handle expected failures.
35         (parse_ulps): Likewise.
36         (print_ulps_file): Likewise.
37         (get_failure): Remove function.
38         (output_test): Don't handle expected failures.
39         * make/README.libm-test: Don't mention expected failure handling.
40
41         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
42         (minus_zero): Likewise.
43         (plus_infty): Likewise.
44         (minus_infty): Likewise.
45         (qnan_value): Likewise.
46         (max_value): Likewise.
47         (min_value): Likewise.
48         (min_subnorm_value): Likewise.
49         (initialize): Do not initialize those variables dynamically.
50
51 2013-05-03  Roland McGrath  <roland@hack.frob.com>
52
53         * io/open.c (__open_2): Moved to ...
54         * io/open_2.c: ... this new file.
55         * io/open64.c (__open64_2): Moved to ...
56         * io/open64_2.c: ... this new file.
57         * io/openat.c (__openat_2): Moved to ...
58         * io/openat_2.c: ... this new file.
59         * io/openat64.c (__openat64_2): Moved to ...
60         * io/openat64_2.c: ... this new file.
61         * io/Makefile (routines): Add them.
62         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
63         * sysdeps/unix/sysv/linux/open_2.c: File removed.
64         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
65         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
66         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
67         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
68         (__openat64): Add hidden_ver.
69         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
70         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
71
72         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
73         Separately conditionalize setting of GLRO(dl_sysinfo) so
74         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
75         as well, but the actual setting is only under [NEED_DL_SYSINFO].
76
77 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78
79         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
80         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
81         definition.
82         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
83         * sysdeps/unix/sysv/linux/powerpc/init-first.c
84         (_libc_vdso_platform_setup): Add __vdso_time initialization.
85         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
86         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
87
88 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
89
90         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
91         test signgam value.
92
93         * math/libm-test.inc (hypot_test): Do not use
94         IGNORE_ZERO_INF_SIGN.
95
96 2013-05-03  Andreas Jaeger  <aj@suse.de>
97
98         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
99         Linux 3.9.
100         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
101         (PF_MAX): Adjust for VSOCK change.
102
103 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
104
105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
106
107 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
108
109         [BZ #15264]
110         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
111         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
112         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
113
114 2013-05-02  David S. Miller  <davem@davemloft.net>
115
116         * sysdeps/sparc/fpu/libm-test-ulps: Update.
117
118 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
119
120         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
121
122 2013-05-01  Roland McGrath  <roland@hack.frob.com>
123
124         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
125
126 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
127
128         [BZ #14952]
129         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
130         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
131         Use __attribute__ ((__gnu_inline__)).
132         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
133         Don't use __attribute__ ((__gnu_inline__)).
134
135 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
136
137         [BZ #15423]
138         * math/s_catan.c (__catan): Handle small real or imaginary part of
139         input specially to avoid spurious underflow.
140         * math/s_catanf.c (__catanf): Likewise.
141         * math/s_catanh.c (__catanh): Likewise.
142         * math/s_catanhf.c (__catanhf): Likewise.
143         * math/s_catanhl.c (__catanhl): Likewise.
144         * math/s_catanl.c (__catanl): Likewise.
145         * math/libm-test.inc (catan_test): Add more tests.
146         (catanh_test): Likewise.
147         * sysdeps/i386/fpu/libm-test-ulps: Update.
148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
149
150 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
151
152         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
153
154 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
155
156         [BZ #15416]
157         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
158         accurately for denominator in atan2.
159         * math/s_catanf.c (__catanf): Likewise.
160         * math/s_catanh.c (__catanh): Likewise.
161         * math/s_catanhf.c (__catanhf): Likewise.
162         * math/s_catanhl.c (__catanhl): Likewise.
163         * math/s_catanl.c (__catanl): Likewise.
164         * math/libm-test.inc (catan_test): Add more tests.
165         (catanh_test): Likewise.
166         * sysdeps/i386/fpu/libm-test-ulps: Update.
167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
168
169 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
170
171         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
172
173         * benchtests/Makefile (bench): Remove slow benchmarks.
174         * benchtests/atan-inputs: Add slow benchmark inputs.
175         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
176         (BENCH_FUNC): Accept variant offset.
177         (VARIANT): Define.
178         * benchtests/bench-skeleton.c (main): Run benchmark for each
179         variant.
180         * benchtests/cos-inputs: Add slow benchmark inputs.
181         * benchtests/exp-inputs: Likewise.
182         * benchtests/pow-inputs: Likewise.
183         * benchtests/sin-inputs: Likewise.
184         * benchtests/slowatan-inputs: Remove.
185         * benchtests/slowatan.c: Remove.
186         * benchtests/slowcos-inputs: Remove.
187         * benchtests/slowcos.c: Remove.
188         * benchtests/slowexp-inputs: Remove.
189         * benchtests/slowexp.c: Remove.
190         * benchtests/slowpow-inputs: Remove.
191         * benchtests/slowpow.c: Remove.
192         * benchtests/slowsin-inputs: Remove.
193         * benchtests/slowsin.c: Remove.
194         * benchtests/slowtan-inputs: Remove.
195         * benchtests/slowtan.c: Remove.
196         * benchtests/tan-inputs: Add slow benchmark inputs.
197         * scripts/bench.pl: Parse comments and directives.
198
199         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
200         in CPPFLAGS.
201         ($(objpfx)bench-%.c): Remove *-ITER.
202         * benchtests/bench-modf.c: Remove definition of ITER.
203         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
204         (main): Loop for DURATION seconds instead of fixed number of
205         iterations.
206         * scripts/bench.pl: Don't expect iterations in parameters.
207
208 2013-04-29  Roland McGrath  <roland@hack.frob.com>
209
210         * io/fchdir.c (__fchdir): Renamed from fchdir.
211         (fchdir): Define as weak alias.
212
213 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
214
215         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
216         (ERRNO_EDOM): Likewise.
217         (ERRNO_ERANGE): Likewise.
218         (noErrnoTests): New variable.
219         (init_max_error): Set errno to 0.
220         (test_single_errno): New function.
221         (test_errno): Likewise.
222         (check_float_internal): Call test_errno.  Set errno to 0.
223         (check_complex): Refer to errno tests in comment.
224         (check_int): Call test_errno.  Set errno to 0.
225         (check_long): Likewise.
226         (check_bool): Likewise.
227         (check_longlong): Likewise.
228         (cos_test): Use ERRNO_* flags for errno tests instead of
229         check_int.
230         (expm1_test): Likewise.
231         (fmod_test): Likewise.
232         (ilogb_test): Likewise.
233         (lgamma_test): Likewise.
234         (pow_test): Likewise.
235         (remainder_test): Likewise.
236         (sin_test): Likewise.
237         (tan_test): Likewise.
238         (yn_test): Likewise.
239         (initialize): Set errno to 0.
240         (main): Print number of errno tests.
241         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
242
243 2013-04-29  Andreas Jaeger  <aj@suse.de>
244
245         [BZ #15084]
246         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
247         and RES_USEVC.
248
249         [BZ #15085]
250         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
251         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
252         unimplemented.
253
254         [BZ #15380]
255         * stdlib/random.c (__initstate): Return NULL if
256         __initstate fails.
257
258         [BZ #15086]
259         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
260         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
261         RES_SNGLKUPREOP.
262
263 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
264
265         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
266
267 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
268
269         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
270         of individual tests.
271         (casin_test): Likewise.
272         (casinh_test): Likewise.
273
274 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
275
276         [BZ #15409]
277         * math/s_catan.c (__catan): Handle arguments with large real or
278         imaginary part separately without squaring.
279         * math/s_catanf.c (__catanf): Likewise.
280         * math/s_catanh.c (__catanh): Likewise.
281         * math/s_catanhf.c (__catanhf): Likewise.
282         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
283         and redefine.
284         (__catanhl): Handle arguments with large real or imaginary part
285         separately without squaring.
286         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
287         and redefine.
288         (__catanl): Handle arguments with large real or imaginary part
289         separately without squaring.
290         * math/libm-test.inc (catan_test): Add more tests.
291         (catanh_test): Likewise.
292         * sysdeps/i386/fpu/libm-test-ulps: Update.
293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
294
295 2013-04-27  Andreas Jaeger  <aj@suse.de>
296
297         [BZ #15007]
298         * stdlib/stdlib.h: Update guards for qecvt.
299         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
300         <stdlib.h>.
301
302 2013-04-27  Allan McRae  <allan@archlinux.org>
303
304         * sysdeps/i386/fpu/libm-test-ulps: Update.
305
306 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
307
308         [BZ #15406]
309         * math/s_catan.c: Include <float.h>.
310         (__catan): Ensure underflow exception occurs for underflowed
311         result.
312         * math/s_catanf.c: Include <float.h>.
313         (__catanf): Ensure underflow exception occurs for underflowed
314         result.
315         * math/s_catanh.c: Include <float.h>.
316         (__catanh): Ensure underflow exception occurs for underflowed
317         result.
318         * math/s_catanhf.c: Include <float.h>.
319         (__catanhf): Ensure underflow exception occurs for underflowed
320         result.
321         * math/s_catanhl.c: Include <float.h>.
322         (__catanhl): Ensure underflow exception occurs for underflowed
323         result.
324         * math/s_catanl.c: Include <float.h>.
325         (__catanl): Ensure underflow exception occurs for underflowed
326         result.
327         * math/libm-test.inc (catan_test): Add more tests.
328         (catanh_test): Likewise.
329
330         [BZ #15405]
331         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
332         underflowed result.
333         * math/s_ccoshf.c (__ccoshf): Likewise.
334         * math/s_ccoshl.c (__ccoshl): Likewise.
335         * math/s_csin.c (__csin): Likewise.
336         * math/s_csinf.c (__csinf): Likewise.
337         * math/s_csinh.c (__csinh): Likewise.
338         * math/s_csinhf.c (__csinhf): Likewise.
339         * math/s_csinhl.c (__csinhl): Likewise.
340         * math/s_csinl.c (__csinl): Likewise.
341         * math/libm-test.inc (ccos_test): Add more tests.
342         (ccosh_test): Likewise.
343         (csin_test): Likewise.
344         (csinh_test): Likewise.
345
346 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
347
348         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
349         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
350         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
351         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
352         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
353         powerpc/power5+/fpu folders.
354         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
355
356
357 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
358
359         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
360
361 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
362
363         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
364         additions to variable.
365         [$(config-machine) = x86_64] (modules-names): Likewise.
366         ($(objpfx)tst-audit3): Remove dependency.
367         ($(objpfx)tst-audit3.out): Likewise.
368         ($(objpfx)tst-audit4): Likewise.
369         ($(objpfx)tst-audit4.out): Likewise.
370         ($(objpfx)tst-audit5): Likewise.
371         ($(objpfx)tst-audit5.out): Likewise.
372         ($(objpfx)tst-audit6): Likewise.
373         ($(objpfx)tst-audit6.out): Likewise.
374         ($(objpfx)tst-audit7): Likewise.
375         ($(objpfx)tst-audit7.out): Likewise.
376         (tst-audit3-ENV): Remove variable.
377         (tst-audit4-ENV): Likewise.
378         (tst-audit5-ENV): Likewise.
379         (tst-audit6-ENV): Likewise.
380         (tst-audit7-ENV): Likewise.
381         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
382         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
383         addition to variable.
384         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
385         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
386         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
387         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
388         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
389         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
390         tst-audit3, tst-audit4 and tst-audit5.
391         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
392         tst-audit6 and tst-audit7.
393         [$(subdir) = elf] (modules-names): Add audit modules for those
394         tests.
395         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
396         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
397         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
398         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
399         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
400         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
401         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
402         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
403         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
404         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
405         [$(subdir) = elf] (tst-audit3-ENV): New variable.
406         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
407         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
408         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
409         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
410         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
411         Likewise.
412         [$(subdir) = elf && $(config-cflags-avx) = yes]
413         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
414         [$(subdir) = elf && $(config-cflags-avx) = yes]
415         (CFLAGS-tst-auditmod4a.c): Likewise.
416         [$(subdir) = elf && $(config-cflags-avx) = yes]
417         (CFLAGS-tst-auditmod4b.c): Likewise.
418         [$(subdir) = elf && $(config-cflags-avx) = yes]
419         (CFLAGS-tst-auditmod6b.c): Likewise.
420         [$(subdir) = elf && $(config-cflags-avx) = yes]
421         (CFLAGS-tst-auditmod6c.c): Likewise.
422         [$(subdir) = elf && $(config-cflags-avx) = yes]
423         (CFLAGS-tst-auditmod7b.c): Likewise.
424         * elf/tst-audit3.c: Move to ...
425         * sysdeps/x86_64/tst-audit3.c: ... here.
426         * elf/tst-audit4.c: Move to ...
427         * sysdeps/x86_64/tst-audit4.c: ... here.
428         * elf/tst-audit5.c: Move to ...
429         * sysdeps/x86_64/tst-audit5.c: ... here.
430         * elf/tst-audit6.c: Move to ...
431         * sysdeps/x86_64/tst-audit6.c: ... here.
432         * elf/tst-audit7.c: Move to ...
433         * sysdeps/x86_64/tst-audit7.c: ... here.
434         * elf/tst-auditmod3a.c: Move to ...
435         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
436         * elf/tst-auditmod3b.c: Move to ...
437         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
438         * elf/tst-auditmod4a.c: Move to ...
439         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
440         * elf/tst-auditmod4b.c: Move to ...
441         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
442         * elf/tst-auditmod5a.c: Move to ...
443         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
444         * elf/tst-auditmod5b.c: Move to ...
445         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
446         * elf/tst-auditmod6a.c: Move to ...
447         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
448         * elf/tst-auditmod6b.c: Move to ...
449         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
450         * elf/tst-auditmod6c.c: Move to ...
451         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
452         * elf/tst-auditmod7a.c: Move to ...
453         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
454         * elf/tst-auditmod7b.c: Move to ...
455         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
456
457 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
458
459         [BZ #15366]
460         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
461         define unconditionally.
462         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
463         define unconditionally.
464         (INT8_C, INT16_C, etc.): Likewise.
465
466 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
467
468         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
469         __ehdr_start with hidden visibility.
470
471         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
472
473 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
474
475         * math/libm-test.inc (cos_test): Use accurate hex constants.
476         (sincost_test): Likewise.
477
478 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
479
480         * math/libm-test.inc (catan_test): Add more tests.
481         (catanh_test): Likewise.
482
483         * math/s_catanf.c (__catanf): Use suffixed floating-point
484         constants.
485         * math/s_catanhf.c (__catanhf): Likewise.
486         * math/s_catanhl.c (__catanhl): Likewise.
487         * math/s_catanl.c (__catanl): Likewise.
488
489         [BZ #15394]
490         * math/s_catan.c (__catan): Calculate imaginary part of result
491         with log1p not log unless computing log of number close to 0.
492         * math/s_catanf.c (__catanf): Likewise.
493         * math/s_catanl.c (__catanl): Likewise.
494         * math/s_catanh.c (__catanh): Calculate real part of result with
495         log1p not log unless computing log of number close to 0.
496         * math/s_catanhf.c (__catanhf): Likewise.
497         * math/s_catanhl.c (__catanhl): Likewise.
498         * math/libm-test.inc (catan_test): Add more tests.
499         (catanh_test): Likewise.
500         * sysdeps/i386/fpu/libm-test-ulps: Update.
501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
502
503 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
504
505         * benchtests/Makefile: Mention files in which fast and slow
506         paths of math functions are implemented.
507
508 2013-04-23  Roland McGrath  <roland@hack.frob.com>
509
510         * sysdeps/posix/timespec_get.c: New file.
511
512 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
513
514         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
515         POWER.
516         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
517         for POWER.
518         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
519         powerpc/power5/fpu folders.
520         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
521         * benchtests/Makefile: Add modf testcase.
522         * benchtests/bench-modf.c: New file: Benchmark test for mo
523
524 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
525
526         [BZ #14888]
527         * time/Makefile (tests): Add tst-strptime-whitespace.
528         * time/strptime_l.c (get_number): Use ISSPACE.
529         (__strptime_internal): Likewise.
530         * time/tst-strptime-whitespace.c: New test case.
531
532 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
533
534         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
535         member.
536         (_nss_files_init): Set it here.
537
538 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
539
540         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
541         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
542         unsigned.
543
544 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
545
546         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
547
548 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
549
550         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
551         size just once.
552
553 2013-04-21  David S. Miller  <davem@davemloft.net>
554
555         * po/ru.po: Update Russion translation from translation project.
556
557 2013-04-17  Adam Conrad  <adconrad@0c3.net>
558
559         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
560         and setfsgid.
561
562 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
563
564         * configure.in: Remove i386 configure warning. Remove i386 case.
565         * configure: Regenerate.
566         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
567         Add example to error message.
568         * sysdeps/i386/configure: Regenerate.
569
570 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
571
572         * benchtests/Makefile (bench): Add cos, tan, slowcos and
573         slowtan.
574         * benchtests/cos-inputs: New file.
575         * benchtests/slowcos-inputs: New file.
576         * benchtests/slowcos.c: New file.
577         * benchtests/slowtan-inputs: New file.
578         * benchtests/slowtan.c: New file.
579         * benchtests/tan-inputs: New file.
580
581 2013-04-16  Roland McGrath  <roland@hack.frob.com>
582
583         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
584         considered kosher.
585
586 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
587
588         * benchtests/Makefile: Include cppflags-iterator.mk to add
589         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
590
591         * Makefile.in (bench-clean): New target.
592         * benchtests/Makefile (bench-clean): Likewise.
593
594 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
595
596         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
597
598 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
599
600         * stdio-common/tstdiomisc.c: Fix coding-style violation.
601
602 2013-04-15  Andreas Schwab  <schwab@suse.de>
603
604         * nscd/grpcache.c (cache_addgr): Properly check for short write.
605         * nscd/initgrcache.c (addinitgroupsX): Likewise.
606         * nscd/pwdcache.c (cache_addpw): Likewise.
607         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
608         more than recsize.
609
610 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
611
612         * benchtests/Makefile (bench): Write all output to
613         bench-out.tmp together.
614
615 2013-04-15  Andreas Schwab  <schwab@suse.de>
616
617         * nscd/nscd.c (main): Don't fork again after closing files.
618
619 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
620
621         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
622
623         * benchtests/Rules (bench-deps): Collect dependencies into a
624         single variable.  Add Makefile to dependencies.
625         ($(objpfx)bench-%.c): Depend on bench-deps.
626
627 2013-04-12  Roland McGrath  <roland@hack.frob.com>
628             Xavier Roche  <roche+kml2@exalead.com>
629
630         [BZ #15361]
631         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
632         just that it's a file descriptor.
633         * manual/llio.texi (Synchronizing AIO Operations): Update description
634         for EBADF error from aio_fsync.
635
636 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
637
638         * Rules (bench): Move target definition...
639         * benchtests/Makefile: ... here.
640
641 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
642
643         * math/libm-test.inc (cos_test): Fix PI/2 test.
644         (sincos_test): Likewise.
645         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
646         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
647
648 2013-04-11  Andreas Schwab  <schwab@suse.de>
649
650         [BZ #13988]
651         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
652         accept exponent character only when digits were seen.
653         * stdio-common/Makefile (tests): Add bug26.
654         * stdio-common/bug26.c: New file.
655
656         [BZ #14293]
657         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
658         non-freeable.
659
660 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
661
662         * Makeconfig (rtld-prefix): Define built linker prefix.
663         * Rules (run-bench): Use it.
664         * math/Makefile (run-regen-ulps): Likewise.
665
666         * Rules (bench): Remove eval.
667
668 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
669             Roland McGrath  <roland@hack.frob.com>
670             Ondrej Bilka  <neleai@seznam.cz>
671
672         [BZ #15346]
673         * time/getdate.c: Include ctype.h and alloca.h.
674         (__getdate_r): Trim leading and trailing spaces of input.
675         * time/tst-getdate.c (tests): Add tests with leading and
676         trailing spaces.
677
678 2013-04-08  Roland McGrath  <roland@hack.frob.com>
679
680         [BZ #14280]
681         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
682         when computing value.
683
684 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
685
686         * math/README.libm-test (How can I generate "libm-test-ulps"?):
687         Use testrun.sh to run libm tests.
688
689         [BZ #15309]
690         * elf/dl-open.c (dl_open_worker): memset all of seen array.
691
692 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
693
694         [BZ #15264]
695         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
696
697 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
698
699         * Makefile.in (regen-ulps): New target.
700         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
701         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
702         [ifneq (no,$(PERL)] (regen-ulps): New target.
703         [ifeq (no,$(PERL)] (regen-ulps): New target.
704         * math/libm-test.inc (ulps_file_name): Define.
705         (output_dir): New variable.
706         (options): Add "output-dir" option.
707         (parse_opt): Handle 'o' case.
708         (main): If output_dir is non-NULL use it as a prefix
709         otherwise use "".
710         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
711
712 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
713
714         [BZ #10060, #10062]
715         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
716         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
717         fail configure if __sync_val_compare_and_swap is not inlined.
718         * sysdeps/i386/configure: Regenerate.
719         * configure.in: Build for i686 when configured for i386.
720         * configure: Regenerate.
721         * README: Remove i386 reference.
722
723 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
724
725         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
726         * sysdeps/s390/s390-64/sysdep.h: Likewise.
727
728 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
729
730         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
731         (lmsnanval): New variables.
732         (F): Add conversion tests.
733         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
734         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
735
736         * stdio-common/tstdiomisc.c (F): Properly collect individual
737         tests' results.
738
739         [BZ #14686, #15336]
740         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
741         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
742         Instead, use input NaN values or generate a qNaN by arithmetic
743         operation.  Also fix bugs to comply with the standard.
744         * math/libm-test.inc (remainder_test): Add more tests.
745
746         [BZ #15335, #15342]
747         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
748         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
749         input NaN values or generate a qNaN by arithmetic operation.
750
751         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
752         unreachable code.
753
754         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
755         definitions.
756
757 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
758
759         [BZ #14478]
760         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
761         underflowed result.
762         * math/s_cexpf.c (__cexpf): Likewise.
763         * math/s_cexpl.c (__cexpl): Likewise.
764         * math/libm-test.inc (cexp_test): Add more tests.
765
766 2013-04-03  Andreas Schwab  <schwab@suse.de>
767
768         [BZ #15330]
769         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
770         order arrays from heap if bigger than alloca cutoff.
771
772 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
773
774         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
775         (SNAN_TESTS_double): Refer to GCC PR56831.
776         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
777         GCC PR56828.
778
779 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
780
781         * Rules (bench): Move bench.out after the run is complete.
782
783         * Rules (bench): Echo currently running benchmark.
784
785         * benchtests/Makefile (bench): Add atan and slowatan.
786         * benchtests/atan-inputs: New file.
787         * benchtests/slowatan-inputs: New file.
788         * benchtests/slowatan.c: New file.
789
790         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
791         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
792         its value.
793
794         [BZ #15305]
795         * sysdeps/unix/sysv/linux/kernel-features.h
796         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
797         __ASSUME_XFS_RESTRICTED_CHOWN.
798         * sysdeps/unix/sysv/linux/pathconf.c
799         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
800         Save and restore errno.
801
802 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
803
804         [BZ #15327]
805         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
806         arguments using __kernel_casinh.
807         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
808         arguments using __kernel_casinhf.
809         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
810         arguments using __kernel_casinhl.
811         * math/libm-test.inc (cacosh_test): Add more tests.
812         * sysdeps/i386/fpu/libm-test-ulps: Update.
813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
814
815 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
816
817         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
818         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
819
820         * bench/Makefile (bench): Add sin and slowsin.
821         * benchtests/sin-inputs: New file.
822         * benchtests/slowsin-inputs: New file.
823         * benchtests/slowsin.c: New file.
824
825         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
826         (bench): Add slowexp and slowpow.
827         (exp-ITER): Increase iterations.
828         (pow-ITER): Likewise.
829         * benchtests/exp-inputs: Change input.
830         * benchtests/pow-inputs: Likewise.
831         * benchtests/slowexp-inputs: New file.
832         * benchtests/slowexp.c: New file.
833         * benchtests/slowpow-inputs: New file.
834         * benchtests/slowpow.c: New file.
835
836 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
837
838         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
839         instructions.
840         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
841         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
842         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
843         * benchtests/Makefile: Add rint benchtest.
844         * benchtests/rint-inputs: Input for rint benchtest.
845
846 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
847
848         * Versions.def (libm): Add GLIBC_2.18.
849         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
850         hidden libm prototypes.
851         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
852         * math/Makefile (libm-calls): Add s_issignaling.
853         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
854         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
855         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
856         declaration.
857         * math/math.h [__USE_GNU] (issignaling): New macro.
858         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
859         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
860         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
861         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
862         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
863         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
864         * manual/arith.texi (issignaling): New section.
865         * manual/libm-err-tab.pl (@all_functions): Update comment.
866         * math/gen-libm-test.pl (parse_args): Apply special handling for
867         issignaling.
868         * math/libm-test.inc (print_float, issignaling_test): New
869         functions.
870         (check_float_internal): Add issignaling checks.
871         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
872         default definition.
873         * sysdeps/powerpc/math-tests.h: New file.
874         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
875         tests.
876         * math/test-snan.c (TEST_FUNC): Likewise.
877
878 2013-03-30  David S. Miller  <davem@davemloft.net>
879
880         * po/de.po: Update from translation team.
881
882 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
883
884         [BZ #10357]
885         * math/k_casinh.c (__kernel_casinh): Handle arguments with
886         imaginary part less than 1.0 and real part less than 0.5
887         specially.
888         * math/k_casinhf.c (__kernel_casinhf): Likewise.
889         * math/k_casinhl.c (__kernel_casinhl): Likewise.
890         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
891         (cacos_test): Add more tests.
892         (casin_test): Likewise.
893         (casinh_test): Likewise.
894         * sysdeps/i386/fpu/libm-test-ulps: Update.
895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
896
897 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
898
899         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
900         ONE with its value.
901
902         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
903         (__pow_mp): Replace ONE and MONE with their values.
904         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
905         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
906         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
907         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
908         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
909         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
910
911         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
912
913         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
914         (__pow_mp): Replace ZERO and MZERO with their values.
915         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
916         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
917         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
918         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
919         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
920         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
921         (__sqr): Likewise.
922
923         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
924
925         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
926
927 2013-03-28  Roland McGrath  <roland@hack.frob.com>
928
929         * include/stdlib.h [!SHARED] (__call_tls_dtors):
930         Declare with __attribute__ ((weak)).
931         * stdlib/exit.c (__libc_atexit) [!SHARED]:
932         Call __call_tls_dtors only if it's not NULL.
933
934 2013-03-28  Roland McGrath  <roland@hack.frob.com>
935
936         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
937         didn't do it already, then set _dl_phdr and _dl_phnum based on the
938         magic __ehdr_start linker symbol if it's defined.
939         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
940         them up here if it was already done.
941
942         * elf/dl-support.c (_dl_phdr): Make pointer to const.
943         (_dl_aux_init): Use const in cast when setting it.
944         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
945         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
946         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
947
948         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
949         Declare them here.
950         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
951         * csu/libc-tls.c: Nor here.
952         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
953
954         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
955         (__libc_message): Never call vsyslog.
956
957 2013-03-28  Alan Modra  <amodra@gmail.com>
958
959         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
960         Define as empty.
961         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
962         Likewise.
963
964 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
965
966         [BZ #15214]
967         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
968         underflow.
969         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
970
971 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
972
973         [BZ #15304]
974         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
975         Don't add gid passed as argument.
976
977         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
978
979 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
980
981         [BZ #15307]
982         * math/k_casinh.c (__kernel_casinh): Handle arguments with
983         imaginary part between 1.0 and 1.5 and real part less than 0.5
984         specially.
985         * math/k_casinhf.c (__kernel_casinhf): Likewise.
986         * math/k_casinhl.c (__kernel_casinhl): Likewise.
987         * math/libm-test.inc (cacos_test): Add more tests.
988         (casin_test): Likewise.
989         (casinh_test): Likewise.
990         * sysdeps/i386/fpu/libm-test-ulps: Update.
991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
992
993 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
994
995         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
996         constants.
997         (norm): Likewise.
998         (denorm): Likewise.
999         (__dbl_mp): Likewise.
1000         (add_magnitudes): Likewise.
1001         (sub_magnitudes): Likewise.
1002         (__add): Likewise.
1003         (__sub): Likewise.
1004         (__mul): Likewise.
1005         (__sqr): Likewise.
1006         (__inv): Likewise.
1007         (__dvd): Likewise.
1008
1009         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1010         commented code.
1011         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1012         (__dubcos): Likewise.
1013         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1014         (__ieee754_acos): Likewise.
1015         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1016         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1017         (__exp1): Likewise.
1018         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1019         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1020         (log1): Likewise.
1021         (my_log2): Likewise.
1022         (checkint): Likewise.
1023         * sysdeps/ieee754/dbl-64/e_remainder.c
1024         (__ieee754_remainder): Likewise.
1025         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1026         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1027         (bsloww): Likewise.
1028         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1029
1030         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1031         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1032         MANTISSA_STORE_T to store computations on mantissa.  Use
1033         macros for rounding and division.
1034         (denorm): Likewise.
1035         (__dbl_mp): Likewise.
1036         (add_magnitudes): Likewise.
1037         (sub_magnitudes): Likewise.
1038         (__mul): Likewise.
1039         (__sqr): Likewise.
1040         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1041         powers of two in terms of TWOPOW macro.
1042         (mp_no): Make type of mantissa as MANTISSA_T.
1043         [!RADIXI]: Define RADIXI.
1044         [!TWO52]: Define TWO52.
1045         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1046
1047 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1048
1049         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1050         llroundl symbol when building for PPC32.
1051
1052 2013-03-24  Mark H Weaver  <mhw@netris.org>
1053
1054         * manual/arith.texi (Normalization Functions): Fix prototypes for
1055         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1056
1057 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1058
1059         [BZ #13889]
1060         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1061         high value to check if expl overflow.
1062         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1063         to check for underflow and overflow.
1064         * math/libm-test.inc: Add exp test.
1065
1066 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1067
1068         [BZ #11120]
1069         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1070         with NOT_IN_libc.
1071
1072 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1073
1074         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1075         symbol.
1076
1077 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1078
1079         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1080         wrap blocks consisting of several statements.
1081
1082         * sysdeps/generic/math-tests.h: New file.
1083         * sysdeps/i386/fpu/math-tests.h: Likewise.
1084         * math/test-snan.c: Include it.
1085         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1086
1087 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1088
1089         [BZ #15285]
1090         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1091         (__ieee754_j0l): Do not improve calculations using cos of twice
1092         input for inputs above LDBL_MAX / 2.0L.
1093         (__ieee754_y0l): Likewise.
1094         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1095         (__ieee754_j1l): Do not improve calculations using cos of twice
1096         input for inputs above LDBL_MAX / 2.0L.
1097         (__ieee754_y1l): Likewise.
1098         * math/libm-test.inc (j0_test): Add another test.
1099         (j1_test): Likewise.
1100         (y0_test): Likewise.
1101         (y1_test): Likewise.
1102         * sysdeps/i386/fpu/libm-test-ulps: Update.
1103
1104 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1105
1106         * Rules ($(objpfx)bench-%.c): Include code from a C source
1107         file.
1108
1109 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1110
1111         [BZ #15287]
1112         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1113         imaginary part 1.0 and real part less than 0.5 specially.
1114         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1115         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1116         * math/libm-test.inc (cacos_test): Add more tests.
1117         (casin_test): Likewise.
1118         (casinh_test): Likewise.
1119         * sysdeps/i386/fpu/libm-test-ulps: Update.
1120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1121
1122 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1123
1124         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1125         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1126
1127 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1128
1129         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1130         * config.make.in (config-cflags-sse4): Remove variable.
1131         (config-cflags-avx): Likewise.
1132         (config-cflags-sse2avx): Likewise.
1133         (config-cflags-novzeroupper): Likewise.
1134         (config-asflags-i686): Likewise.
1135         (have-mfma4): Likewise.
1136         (have-as-vis3): Likewise.
1137         (MIG): Likewise.
1138         * configure.in (MIG): Do not AC_SUBST.
1139         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1140         (libc_cv_cc_sse4): Do not AC_SUBST.
1141         (libc_cv_cc_avx): Likewise.
1142         (libc_cv_cc_sse2avx): Likewise.
1143         (libc_cv_cc_novzeroupper): Likewise.
1144         (libc_cv_cc_fma4): Likewise.
1145         (libc_cv_as_i686): Likewise.
1146         (libc_cv_sparc_as_vis3): Likewise.
1147         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1148         LIBC_CONFIG_VAR.
1149         (config-asflags-i686): Likewise.
1150         (config-cflags-avx): Likewise.
1151         (config-cflags-sse2avx): Likewise.
1152         (have-mfma4): Likewise.
1153         (config-cflags-novzeroupper): Likewise.
1154         * sysdeps/mach/configure.in (MIG): Likewise.
1155         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1156         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1157         LIBC_CONFIG_VAR.
1158         (config-cflags-avx): Likewise.
1159         (config-cflags-sse2avx): Likewise.
1160         (have-mfma4): Likewise.
1161         (config-cflags-novzeroupper): Likewise.
1162         * configure: Regenerated.
1163         * sysdeps/i386/configure: Likewise.
1164         * sysdeps/mach/configure: Likewise.
1165         * sysdeps/sparc/configure: Likewise.
1166         * sysdeps/x86_64/configure: Likewise.
1167
1168 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1169
1170         [BZ #14812]
1171         * locale/programs/localedef.c (options): Put N_ translation marker
1172         on argument names, not just descriptions.
1173
1174 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1175
1176         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1177
1178 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1179
1180         [BZ #14176]
1181         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1182
1183 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1184
1185         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1186         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1187         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1188         [!BEFORE_ABORT] (before_abort): New function.
1189         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1190         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1191         (writev_for_fatal): New function.
1192         (WRITEV_FOR_FATAL): New macro; call that.
1193         (backtrace_and_maps): New function.
1194         (BEFORE_ABORT): New macro; call that.
1195         (struct str_list): Type removed.
1196         (__libc_message, __libc_fatal): Functions removed.
1197         Include <sysdeps/posix/libc_fatal.c> instead.
1198
1199 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1200
1201         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1202         constants.
1203         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1204         double constants.
1205
1206 2013-03-19  Andreas Schwab  <schwab@suse.de>
1207
1208         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1209         * sysdeps/gnu/configure: Regenerate.
1210
1211         * configure.in: Substitute libc_cv_rtlddir.
1212         * configure: Regenerate.
1213         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1214         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1215         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1216         * elf/Makefile (install-others, CFLAGS-interp.c)
1217         (ldso_install, common-ldd-rewrite): Likewise.
1218         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1219         $(inst_slibdir)/$(rtld-installed-name).
1220         * scripts/rellns-sh: Add -p option.
1221         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1222         for source.
1223
1224 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1225
1226         * manual/nptl.texi: Renamed to ...
1227         * manual/threads.texi: ... this.
1228         * manual/Makefile (chapters): Update.
1229
1230 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1231
1232         [BZ #14812]
1233         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1234         on argument names, not just descriptions.
1235         * malloc/memusagestat.c (options): Likewise.
1236         * nss/getent.c (options): Likewise.
1237
1238 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1239
1240         [BZ #14812]
1241         * iconv/iconv_prog.c (options): Put N_ translation marker
1242         on argument names, not just descriptions.
1243         * iconv/iconvconfig.c (options): Likewise.
1244
1245 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1246
1247         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1248         implementation which is faster on all x86_64 architectures.
1249         Tested on AMD, Intel Nehalem, SNB, IVB.
1250         * sysdeps/x86_64/strnlen.S: Likewise.
1251
1252         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1253         Remove all multiarch strlen and strnlen versions.
1254         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1255         Remove strlen and strnlen related parts.
1256
1257         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1258         Inline strlen part.
1259         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1260
1261         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1262         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1263         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1264         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1265         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1266         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1267
1268 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1269
1270         * manual/memory.texi (Malloc Tunable Parameters):
1271         Sort parameters alphabetically. Add comments for missing entries.
1272
1273 2013-03-17  David S. Miller  <davem@davemloft.net>
1274
1275         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1276
1277 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1278
1279         [BZ #15283]
1280         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1281         for arguments at most half maximum finite value.
1282         * math/libm-test.inc (j0_test): Add more tests.
1283         (j1_test): Likewise.
1284         (y0_test): Likewise.
1285         (y1_test): Likewise.
1286         * sysdeps/i386/fpu/libm-test-ulps: Update.
1287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1288
1289         [BZ #14155]
1290         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1291         1 / x and functions P and Q for arguments above 0x1p256L.
1292         (__ieee754_y0l): Likewise.
1293         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1294         (__ieee754_y1l): Likewise.
1295         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1296         (j1_test): Likewise.
1297         (y0_test): Likewise.
1298         (y1_test): Likewise.
1299
1300 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1301
1302         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1303         variable.
1304
1305 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1306
1307         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1308         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1309         zero since it's initialized to EXEC_PAGESIZE.
1310
1311         * sysdeps/unix/sysv/linux/ldsodefs.h
1312         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1313         * sysdeps/generic/ldsodefs.h: ... here.
1314
1315 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1316
1317         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1318
1319         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1320         math/test-snan.c.
1321         * math/test-snan.c: Renamed from
1322         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1323         * math/Makefile (tests): Add test-snan.
1324         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1325         test-powerpc-snan.
1326
1327         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1328         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1329         functions.
1330         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1331         __builtin_nan family of functions.
1332         * math/libm-test.inc (initialize): Initialize qnan_value with
1333         __builtin_nan family of functions.
1334         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
1335         Remove variables.
1336         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
1337         Remove functions.
1338         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
1339         storage class.  Initialize qNaN_var and sNaN_var with
1340         __builtin_nan and __builtin_nans families of functions,
1341         respectively.
1342
1343         * math/libm-test.inc (acosh_test): Also test with qNaN input.
1344         (sqrt_test): Remove duplicate test with qNaN input.
1345         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
1346         (round_test, signbit_test, significand_test): Note missing +/-Inf
1347         as well as qNaN tests.
1348
1349         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
1350         qNaN_var.  Fix a few strings, too.
1351         * math/libm-test.inc (nan_value): Rename to qnan_value.
1352         * math/gen-libm-test.pl (%beautify): Adjust to that.
1353         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
1354         * math/test-misc.c (main): Likewise.
1355         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
1356         to __qnan_bytes, and __qnan_union, respectively.
1357         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
1358         Likewise.
1359         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
1360         and lqnanval, respectively.
1361         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
1362         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
1363         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
1364         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
1365
1366         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
1367         * math/test-misc.c (main) [__x86_64__]: Enable test for long
1368         doubles.
1369
1370         * math/test-misc.c (main): Fix copy'n'pastos.
1371         * misc/tst-efgcvt.c (special): Likewise.
1372
1373         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
1374         Remove declarations.
1375
1376 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1377
1378         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
1379         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
1380         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
1381         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
1382
1383 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1384
1385         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
1386         macro to return vdso values correctly in IFUNC implementations.
1387         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
1388         Optimization by using IFUNC.
1389
1390 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1391             Richard Henderson  <rth@redhat.com>
1392             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1393
1394         * Makefile.in (bench): New target.
1395         * NEWS: Mention the benchmark framework.
1396         * Rules (bench): Likewise.
1397         (binaries-bench): Generate binaries for functions to
1398         benchmark.
1399         * benchtests/Makefile: New makefile for benchmark tests.
1400         * benchtests/bench-skeleton.c: New skeleton file for benchmark
1401         programs.
1402         * benchtests/exp-inputs: New input file for EXP function.
1403         * benchtests/pow-inputs: New input file for POW function.
1404         * scripts/bench.pl: New script to generate source files for
1405         benchmark programs.
1406
1407 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1408
1409         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1410         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
1411         computations on mantissa.  Use macros for rounding and
1412         division.
1413         (denorm): Likewise.
1414         (__dbl_mp): Likewise.
1415         (add_magnitudes): Likewise.
1416         (sub_magnitudes): Likewise.
1417         (__mul): Likewise.
1418         (__sqr): Likewise.
1419         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1420         powers of two in terms of TWOPOW macro.
1421         (mp_no): Make type of mantissa as MANTISSA_T.
1422         [!RADIXI]: Define RADIXI.
1423         [!TWO52]: Define TWO52.
1424         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1425
1426         * manual/nptl.texi (cindex): Modify threads to pthreads.
1427
1428 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
1429
1430         * sysdeps/x86_64/preconfigure: Regenerated.
1431
1432 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
1433
1434         [BZ #14155]
1435         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
1436         0x1p28 and above.
1437         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
1438         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
1439         0x1p28 and above.
1440         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
1441         * math/libm-test.inc (j0_test): Do not allow one spurious
1442         underflow exception.
1443         (y1_test): Likewise.
1444
1445 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1446
1447         * manual/Makefile (chapters): Add nptl.
1448         * manual/debug.texi (Debugging Support): Add link to Threads
1449         chapter.
1450         * manual/nptl.texi: New file.
1451
1452         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
1453
1454 2013-03-14  Petr Baudis  <pasky@ucw.cz>
1455
1456         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
1457         for non-NULL pointer before the memory validity test. Pointed
1458         out by Holger Brunck <holger.brunck@keymile.com>.
1459
1460 2013-03-13  Andreas Schwab  <schwab@suse.de>
1461
1462         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
1463         instead of .os.
1464
1465 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
1466
1467         * timezone/zic.c: Update from tzcode 2013b.
1468
1469 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
1470
1471         * manual/install.texi (Configuring and compiling):
1472         Mention i686 and i586.
1473         * INSTALL: Regenerate.
1474
1475 2013-03-12  Roland McGrath  <roland@hack.frob.com>
1476
1477         * sysdeps/init_array/elf-init.c: New file.
1478         * csu/elf-init.c
1479         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
1480         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
1481
1482         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
1483         __gmon_start__ as global, but as static with a .preinit_array pointer.
1484         * sysdeps/init_array/gmon-start.c: New file.  Use that.
1485         * sysdeps/init_array/crti.S: New file, empty except for comments.
1486         * sysdeps/init_array/crtn.S: Likewise.
1487
1488 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
1489
1490         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
1491         definining bcopy.
1492         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1493         Remove Prefer_SSE_for_memop.
1494         * sysdeps/x86_64/multiarch/init-arch.h: Remove
1495         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
1496         HAS_PREFER_SSE_FOR_MEMOP.
1497         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1498         memset-x86-64.
1499         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1500         Remove bzero, memset ifunc support.
1501         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
1502         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
1503         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1504         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1505
1506 2013-03-11  Andreas Schwab  <schwab@suse.de>
1507
1508         [BZ #15234]
1509         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
1510         by SHLIB_COMPAT.
1511         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
1512         (GLIBC_2.16): Remove pthread_atfork.
1513
1514 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
1515
1516         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
1517         (ptestcases.h): Likewise.
1518
1519 2013-03-08  Roland McGrath  <roland@hack.frob.com>
1520
1521         * Makeconfig ($(common-objpfx)config.status): Depend on
1522         sysdeps/*/preconfigure{,.in} too.
1523
1524 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
1525
1526         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
1527         (__free_hook): Use void * instead of __malloc_ptr_t.
1528         (__malloc_hook): Likewise.
1529         (__realloc_hook): Likewise.
1530         (__memalign_hook): Likewise.
1531         (__after_morecore_hook): Likewise.
1532         * malloc/arena.c (save_malloc_hook): Likewise.
1533         (save_free_hook): Likewise.
1534         * malloc/hooks.c (malloc_hook_ini): Likewise.
1535         (realloc_hook_ini): Likewise.
1536         (memalign_hook_ini): Likewise.
1537         * malloc/malloc.c (malloc_hook_ini): Likewise.
1538         (realloc_hook_ini): Likewise.
1539         (memalign_hook_ini): Likewise.
1540         (__free_hook): Likewise.
1541         (__malloc_hook): Likewise.
1542         (__realloc_hook): Likewise.
1543         (__memalign_hook): Likewise.
1544         (__libc_malloc): Likewise.
1545         (__libc_free): Likewise.
1546         (__libc_realloc): Likewise.
1547         (__libc_memalign): Likewise.
1548         (__libc_valloc): Likewise.
1549         (__libc_pvalloc): Likewise.
1550         (__libc_calloc): Likewise.
1551         (__posix_memalign): Likewise.
1552         * malloc/morecore.c (__sbrk): Likewise.
1553         (__default_morecore): Likewise.
1554
1555         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
1556
1557         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
1558         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
1559         __malloc_ptrdiff_t.
1560
1561         * malloc/malloc.h (__malloc_size_t): Remove macro.
1562         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
1563         __malloc_size_t.
1564         (old_memalign_hook): Likewise.
1565         (old_realloc_hook): Likewise.
1566         (struct hdr): Likewise.
1567         (flood): Likewise.
1568         (mallochook): Likewise.
1569         (memalignhook): Likewise.
1570         (reallochook): Likewise.
1571         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
1572         (tr_old_realloc_hook): Likewise.
1573         (tr_old_memalign_hook): Likewise.
1574         (tr_mallochook): Likewise.
1575         (tr_reallochook): Likewise.
1576         (tr_memalignhook): Likewise.
1577
1578 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1579
1580         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
1581         default_ldbl_pack and using as default implementation.
1582         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
1583         implementation.
1584         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
1585         redundant definition.
1586         (ldbl_insert_mantissa): Likewise.
1587         (ldbl_canonicalize): Likewise.
1588         (ldbl_nearbyint): Likewise.
1589         (ldbl_pack): Rename to ldbl_pack_ppc.
1590         (ldbl_unpack): Rename to ldbl_unpack_ppc.
1591         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
1592         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
1593
1594 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
1595
1596         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
1597         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
1598         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
1599         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
1600         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
1601         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
1602         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
1603         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
1604
1605 2013-03-07  Andreas Jaeger  <aj@suse.de>
1606
1607         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1608         bits/mman-linux.h.
1609
1610 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1611
1612         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
1613         Include mpa.h and declare __MPEXP.
1614         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
1615         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1616         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1617         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
1618         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1619         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1620         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
1621
1622         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
1623         (__slowpow): Use long double EXPL and LOGL functions to
1624         compute POW.
1625         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1626         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1627         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
1628         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1629         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1630         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
1631
1632         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
1633         intermediate variable to calculate exponent.
1634         (__sqr): Likewise.
1635         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1636         Likewise.
1637         (__sqr): Likewise.
1638
1639         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
1640         [!NO__SQR]: Define __sqr.
1641         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
1642         and NO__SQR.  Remove all code except __mul and __sqr.  Include
1643         sysdeps/ieee754/dbl-64/mpa.c.
1644         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1645
1646         [BZ #12723]
1647         * posix/Makefile (tests): Add tst-pathconf.
1648         * posix/tst-pathconf.c: New test case.
1649         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
1650         _PC_PIPE_BUF.
1651         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1652
1653 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
1654
1655         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
1656
1657 2013-03-06  Andreas Jaeger  <aj@suse.de>
1658
1659         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
1660         definition via __MAP_ANONYMOUS.
1661
1662         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
1663         it's not part of Linux headers.
1664
1665         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
1666         (MAP_HUGE_MASK): Define.
1667
1668         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1669         Define.
1670         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1671         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1672         Define.
1673         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1674         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1675         Define.
1676         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1677         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
1678         Define.
1679         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1680
1681         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
1682         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
1683         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
1684         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
1685         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
1686         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
1687
1688         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1689         Handle f2fs.
1690
1691         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1692         Handle f2fs and efivarfs.
1693
1694         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
1695         f2fs.
1696
1697         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
1698         (EFIVARFS_MAGIC): Add.
1699         (F2FS_LINK_MAX): Add.
1700
1701 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1702
1703         * stdio-common/vfprintf.c: Replace __builtin_expect with
1704         __glibc_unlikely.
1705
1706 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
1707
1708         [BZ #13550]
1709         * sysdeps/generic/bp-sym.h: Remove file.
1710         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
1711         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
1712         <bp-sym.h> and <bp-asm.h>.
1713         (__longjmp): Don't use BP_SYM.
1714         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
1715         and <bp-asm.h>.
1716         (memcpy): Don't use BP_SYM.
1717         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
1718         <bp-sym.h> and <bp-asm.h>.
1719         (memcpy): Don't use BP_SYM.
1720         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
1721         <bp-asm.h>.
1722         (memcpy): Don't use BP_SYM.
1723         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
1724         <bp-asm.h>.
1725         (memset): Don't use BP_SYM.
1726         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1727         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1728         (__bzero): Don't use BP_SYM.
1729         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1730         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1731         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
1732         <bp-sym.h> and <bp-asm.h>.
1733         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1734         pointers.
1735         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
1736         <bp-sym.h> and <bp-asm.h>.
1737         (memcpy): Don't use BP_SYM.
1738         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
1739         <bp-sym.h> and <bp-asm.h>.
1740         (memset): Don't use BP_SYM.
1741         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1742         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1743         (__bzero): Don't use BP_SYM.
1744         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1745         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1746         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
1747         <bp-sym.h> and <bp-asm.h>.
1748         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1749         pointers.
1750         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
1751         <bp-sym.h> and <bp-asm.h>.
1752         (memcpy): Don't use BP_SYM.
1753         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
1754         <bp-sym.h> and <bp-asm.h>.
1755         (memset): Don't use BP_SYM.
1756         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1757         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1758         (__bzero): Don't use BP_SYM.
1759         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1760         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1761         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
1762         <bp-sym.h> and <bp-asm.h>.
1763         (__memchr): Don't use BP_SYM.
1764         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
1765         <bp-sym.h> and <bp-asm.h>.
1766         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1767         pointers.
1768         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
1769         <bp-sym.h> and <bp-asm.h>.
1770         (memcpy): Don't use BP_SYM.
1771         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
1772         <bp-sym.h> and <bp-asm.h>.
1773         (__mempcpy): Don't use BP_SYM.
1774         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
1775         <bp-sym.h> and <bp-asm.h>.
1776         (__memrchr): Don't use BP_SYM.
1777         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
1778         <bp-sym.h> and <bp-asm.h>.
1779         (memset): Don't use BP_SYM.
1780         (__bzero): Likewise.
1781         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
1782         <bp-sym.h> and <bp-asm.h>.
1783         (__rawmemchr): Don't use BP_SYM.
1784         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
1785         <bp-sym.h> and <bp-asm.h>.
1786         (__STRCMP): Don't use BP_SYM.
1787         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
1788         <bp-sym.h> and <bp-asm.h>.
1789         (strchr): Don't use BP_SYM.
1790         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
1791         <bp-sym.h> and <bp-asm.h>.
1792         (__strchrnul): Don't use BP_SYM.
1793         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
1794         <bp-sym.h> and <bp-asm.h>.
1795         (strlen): Don't use BP_SYM.
1796         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
1797         <bp-sym.h> and <bp-asm.h>.
1798         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1799         pointers.
1800         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
1801         <bp-sym.h> and <bp-asm.h>.
1802         (__strnlen): Don't use BP_SYM.
1803         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
1804         <bp-sym.h> and <bp-asm.h>.
1805         (__GI__setjmp): Don't use BP_SYM.
1806         (_setjmp): Likewise.
1807         (__sigsetjmp): Likewise.
1808         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
1809         (L(start_addresses)): Don't use BP_SYM.
1810         (_start): Likewise.
1811         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
1812         <bp-asm.h>.
1813         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
1814         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
1815         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1816         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1817         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
1818         <bp-asm.h>.
1819         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
1820         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
1821         about bounded pointers.
1822         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1823         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1824         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
1825         <bp-asm.h>.
1826         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1827         about bounded pointers.  Remove GKM FIXME comments.
1828         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1829         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
1830         <bp-asm.h>.
1831         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
1832         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
1833         Remove GKM FIXME comments.
1834         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1835         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1836         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
1837         <bp-asm.h>.
1838         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1839         about bounded pointers.  Remove GKM FIXME comment.
1840         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
1841         and <bp-asm.h>.
1842         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1843         pointers.
1844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
1845         <bp-sym.h> and <bp-asm.h>.
1846         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
1847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
1848         <bp-sym.h> and <bp-asm.h>.
1849         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
1850         comment.
1851
1852 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1853
1854         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
1855         call free(NULL).
1856
1857 2013-03-05  David S. Miller  <davem@davemloft.net>
1858
1859         * po/es.po: Update from translation team.
1860
1861 2013-03-05  Andreas Jaeger  <aj@suse.de>
1862
1863         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
1864         <bits/mman-linux.h>.
1865         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1866         is fine.
1867         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
1868         <bits/mman-linux.h> to end of file.
1869         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1870         is fine.
1871         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
1872         <bits/mman-linux.h> to end of file.
1873         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1874         is fine.
1875         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
1876         <bits/mman-linux.h> to end of file.
1877
1878         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
1879         (MCL_CURRENT, MCL_FUTURE): Define here.
1880
1881 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1882
1883         [BZ #15232]
1884         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
1885         attribute_hidden.
1886         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1887
1888 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1889
1890         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
1891         fourth parameter needed for rt_sigprocmask syscall.
1892         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
1893         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1894         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1895         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1896         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1897         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
1898
1899 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
1900
1901         [BZ #13550]
1902         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
1903         comment about bounded pointers.
1904         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
1905         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
1906
1907 2013-03-04  Andreas Jaeger  <aj@suse.de>
1908
1909         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
1910         common definitions.
1911
1912         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
1913         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
1914         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
1915         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1916         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1917         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1918
1919 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1920
1921         [BZ #15055]
1922         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
1923         __ieee754_sqrl instead of __sqrl.
1924
1925 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
1926
1927         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
1928         * sysdeps/powerpc/fpu_control.h: ... here.
1929         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
1930         * sysdeps/powerpc/bits/fenvinline.h: ... here.
1931         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
1932         * sysdeps/powerpc/bits/mathinline.h: ... here.
1933
1934 2013-03-01  Roland McGrath  <roland@hack.frob.com>
1935
1936         * elf/dl-hwcaps.c (_dl_important_hwcaps):
1937         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
1938         to just [NEED_DL_SYSINFO_DSO].
1939         * elf/dl-support.c: Likewise.
1940         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
1941         * elf/rtld.c (dl_main): Likewise.
1942         * elf/setup-vdso.h (setup_vdso): Likewise.
1943         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
1944         * sysdeps/unix/sysv/linux/dl-sysdep.c
1945         (_dl_discover_osversion): Likewise.
1946
1947 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
1948
1949         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
1950         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1951
1952 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
1953
1954         * NEWS: Mention libm performance improvements and non-x86 PI
1955         futex support.
1956
1957         * csu/libc-start.c (__pthread_initialize_minimal): Change
1958         function arguments.
1959         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1960
1961 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
1962
1963         [BZ #13550]
1964         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
1965         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
1966         <bp-sym.h> and <bp-asm.h>.
1967         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1968         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
1969         and <bp-asm.h>.
1970         (memcpy): Don't use BP_SYM.
1971         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
1972         <bp-asm.h>.
1973         (__mpn_add_n): Don't use BP_SYM.
1974         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
1975         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
1976         and <bp-asm.h>.
1977         (__mpn_addmul_1): Don't use BP_SYM.
1978         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1979         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
1980         <bp-sym.h>.
1981         (_setjmp): Don't use BP_SYM.
1982         (__novmx_setjmp): Likewise.
1983         (__GI__setjmp): Likewise.
1984         (__vmx_setjmp): Likewise.
1985         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
1986         <bp-sym.h>.
1987         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
1988         (__bzero): Don't use BP_SYM.
1989         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1990         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1991         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
1992         <bp-sym.h> and <bp-asm.h>.
1993         (memcpy): Don't use BP_SYM.
1994         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
1995         <bp-sym.h> and <bp-asm.h>.
1996         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1997         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
1998         <bp-sym.h> and <bp-asm.h>.
1999         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2000         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2001         <bp-asm.h>.
2002         (__mpn_lshift): Don't use BP_SYM.
2003         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2004         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2005         <bp-asm.h>.
2006         (memset): Don't use BP_SYM.
2007         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2008         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2009         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2010         <bp-asm.h>.
2011         (__mpn_mul_1): Don't use BP_SYM.
2012         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2013         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2014         <bp-sym.h> and <bp-asm.h>.
2015         (memcmp): Don't use BP_SYM.
2016         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2017         <bp-sym.h> and <bp-asm.h>.
2018         (memcpy): Don't use BP_SYM.
2019         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2020         <bp-sym.h> and <bp-asm.h>.
2021         (memset): Don't use BP_SYM.
2022         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2023         <bp-sym.h> and <bp-asm.h>.
2024         (strncmp): Don't use BP_SYM.
2025         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2026         <bp-sym.h> and <bp-asm.h>.
2027         (memcpy): Don't use BP_SYM.
2028         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2029         <bp-sym.h> and <bp-asm.h>.
2030         (memset): Don't use BP_SYM.
2031         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2032         <bp-sym.h> and <bp-asm.h>.
2033         (__memchr): Don't use BP_SYM.
2034         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2035         <bp-sym.h> and <bp-asm.h>.
2036         (memcmp): Don't use BP_SYM.
2037         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2038         <bp-sym.h> and <bp-asm.h>.
2039         (memcpy): Don't use BP_SYM.
2040         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2041         <bp-sym.h> and <bp-asm.h>.
2042         (__mempcpy): Don't use BP_SYM.
2043         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2044         <bp-sym.h> and <bp-asm.h>.
2045         (__memrchr): Don't use BP_SYM.
2046         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2047         <bp-sym.h> and <bp-asm.h>.
2048         (memset): Don't use BP_SYM.
2049         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2050         <bp-sym.h> and <bp-asm.h>.
2051         (__rawmemchr): Don't use BP_SYM.
2052         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2053         <bp-sym.h> and <bp-asm.h>.
2054         (__STRCMP): Don't use BP_SYM.
2055         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2056         <bp-sym.h> and <bp-asm.h>.
2057         (strchr): Don't use BP_SYM.
2058         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2059         <bp-sym.h> and <bp-asm.h>.
2060         (__strchrnul): Don't use BP_SYM.
2061         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2062         <bp-sym.h> and <bp-asm.h>.
2063         (strlen): Don't use BP_SYM.
2064         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2065         <bp-sym.h> and <bp-asm.h>.
2066         (strncmp): Don't use BP_SYM.
2067         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2068         <bp-sym.h> and <bp-asm.h>.
2069         (__strnlen): Don't use BP_SYM.
2070         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2071         <bp-asm.h>.
2072         (__mpn_rshift): Don't use BP_SYM.
2073         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2074         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2075         <bp-sym.h> and <bp-asm.h>.
2076         (__sigsetjmp): Don't use BP_SYM.
2077         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2078         (L(start_addresses)): Don't use BP_SYM.
2079         (_start): Likewise.
2080         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2081         <bp-asm.h>.
2082         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2083         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2084         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2085         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2086         <bp-asm.h>.
2087         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2088         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2089         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2090         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2091         <bp-asm.h>.
2092         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2093         comments.
2094         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2095         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2096         <bp-asm.h>.
2097         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2098         FIXME comments.
2099         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2100         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2101         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2102         <bp-asm.h>.
2103         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2104         comment.
2105         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2106         and <bp-asm.h>.
2107         (strncmp): Don't use BP_SYM,
2108         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2109         <bp-asm.h>.
2110         (__mpn_sub_n): Don't use BP_SYM.
2111         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2112         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2113         and <bp-asm.h>.
2114         (__mpn_submul_1): Don't use BP_SYM.
2115         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2117         <bp-sym.h> and <bp-asm.h>.
2118         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2120         <bp-sym.h> and <bp-asm.h>.
2121         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2122         comment.
2123
2124 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2125
2126         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2127         Use ZK to minimize writes to Z.
2128         (sub_magnitudes): Simplify code a bit.
2129         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2130         Use ZK to minimize writes to Z.
2131         (sub_magnitudes): Simplify code a bit.
2132
2133 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2134
2135         * csu/gmon-start.c: Add special exception to license text.
2136
2137 2013-02-27  Richard Henderson  <rth@redhat.com>
2138
2139         * scripts/config.guess: Update from config.git.
2140         * scripts/config.sub: Likewise.
2141
2142 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2143
2144         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2145
2146         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2147
2148         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2149
2150         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2151
2152         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2153
2154 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2155
2156         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2157         [$(build-shared = yes].
2158
2159 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2160
2161         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2162         (__mul): Reduce iterations for calculating mantissa.
2163
2164         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2165         MPTWO.
2166         (__mpranred): Likewise.
2167
2168         [BZ #15160]
2169         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2170         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2171
2172 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2173
2174         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2175         Define __attribute__.
2176
2177 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2178
2179         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2180         unused.
2181         * posix/regex_internal.h (__attribute): Remove.
2182         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2183         (re_string_context_at): Likewise.
2184         (bitset_not): Use __attribute__ and mark function as possibly
2185         unused.
2186         (bitset_merge): Likewise.
2187         (bitset_mask): Likewise.
2188         (re_string_char_size_at): Likewise.
2189         (re_string_wchar_at): Likewise.
2190         (re_string_elem_size_at): Likewise.
2191
2192 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2193
2194         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2195         code.
2196         (cc32): Likewise.
2197
2198         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2199         (__acr): Likewise.
2200         (__cpy): Likewise.
2201         (norm): Likewise.
2202         (denorm): Likewise.
2203         (__dbl_mp): Likewise.
2204         (add_magnitudes): Likewise.
2205         (sub_magnitudes): Likewise.
2206         (__mul): Likewise.
2207         (__inv): Likewise.
2208
2209         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2210         style.
2211
2212         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2213         style.
2214
2215         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2216         code.
2217
2218         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2219         up changes with default code.
2220         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2221         Likewise.
2222
2223 2013-02-24  Allan McRae  <allan@archlinux.org>
2224
2225         * manual/socket.texi (The Internet Namespace): Order menu items
2226         to match that in the file.
2227
2228         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2229         node listing of the info page menu.
2230
2231 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2232
2233         [BZ #13550]
2234         * sysdeps/i386/bp-asm.h: Remove file.
2235         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2236         (PARMS): Do not use macros from bp-asm.h.
2237         (S1): Likewise.
2238         (S2): Likewise.
2239         (SIZE): Likewise.
2240         (__mpn_add_n): Do not use BP_SYM
2241         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2242         "bp-asm.h".
2243         (PARMS): Do not use macros from bp-asm.h.
2244         (S1): Likewise.
2245         (SIZE): Likewise.
2246         (__mpn_addmul_1): Do not use BP_SYM
2247         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2248         "bp-asm.h".
2249         (PARMS): Do not use macros from bp-asm.h.
2250         (SIGMSK): Likewise.
2251         (_setjmp): Likewise.  Do not use BP_SYM.
2252         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2253         "bp-asm.h".
2254         (PARMS): Do not use macros from bp-asm.h.
2255         (SIGMSK): Likewise.
2256         (setjmp): Likewise.  Do not use BP_SYM.
2257         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2258         "bp-asm.h".
2259         (PARMS): Do not use macros from bp-asm.h.
2260         (__frexp): Do not use BP_SYM.
2261         (frexp): Likewise.
2262         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2263         "bp-asm.h".
2264         (PARMS): Do not use macros from bp-asm.h.
2265         (__frexpf): Do not use BP_SYM.
2266         (frexpf): Likewise.
2267         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2268         "bp-asm.h".
2269         (PARMS): Do not use macros from bp-asm.h.
2270         (__frexpl): Do not use BP_SYM.
2271         (frexpl): Likewise.
2272         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2273         "bp-asm.h".
2274         (PARMS): Do not use macros from bp-asm.h.
2275         (__remquo): Do not use BP_SYM.
2276         (remquo): Likewise.
2277         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2278         "bp-asm.h".
2279         (PARMS): Do not use macros from bp-asm.h.
2280         (__remquof): Do not use BP_SYM.
2281         (remquof): Likewise.
2282         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2283         "bp-asm.h".
2284         (PARMS): Do not use macros from bp-asm.h.
2285         (__remquol): Do not use BP_SYM.
2286         (remquol): Likewise.
2287         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2288         "bp-asm.h".
2289         (PARMS): Do not use macros from bp-asm.h.
2290         (DEST): Likewise.
2291         (SRC): Likewise.
2292         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2293         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2294         "bp-asm.h".
2295         (PARMS): Do not use macros from bp-asm.h.
2296         (strlen): Do not use BP_SYM.
2297         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2298         "bp-asm.h".
2299         (PARMS): Do not use macros from bp-asm.h.
2300         (S1): Likewise.
2301         (S2): Likewise.
2302         (SIZE): Likewise.
2303         (__mpn_add_n): Do not use BP_SYM.
2304         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2305         "bp-asm.h".
2306         (PARMS): Do not use macros from bp-asm.h.
2307         (S1): Likewise.
2308         (SIZE): Likewise.
2309         (__mpn_addmul_1): Do not use BP_SYM.
2310         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2311         weak_alias.
2312         (bzero): Likewise.
2313         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2314         "bp-asm.h".
2315         (PARMS): Do not use macros from bp-asm.h.
2316         (S): Likewise.
2317         (SIZE): Likewise.
2318         (__mpn_lshift): Do not use BP_SYM.
2319         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2320         "bp-asm.h".
2321         (PARMS): Do not use macros from bp-asm.h.
2322         (DEST): Likewise.
2323         (SRC): Likewise.
2324         (LEN): Likewise.
2325         (memcpy): Likewise.  Do not use BP_SYM.
2326         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2327         libc_hidden_def and weak_alias.
2328         (mempcpy): Do not use BP_SYM in weak_alias.
2329         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2330         "bp-asm.h".
2331         (PARMS): Do not use macros from bp-asm.h.
2332         (DEST): Likewise.
2333         (LEN): Likewise.
2334         [!BZERO_P] (CHR): Likewise.
2335         (memset): Likewise.  Do not use BP_SYM.
2336         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
2337         "bp-asm.h".
2338         (PARMS): Do not use macros from bp-asm.h.
2339         (S1): Likewise.
2340         (SIZE): Likewise.
2341         (__mpn_mul_1): Do not use BP_SYM.
2342         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
2343         "bp-asm.h".
2344         (PARMS): Do not use macros from bp-asm.h.
2345         (S): Likewise.
2346         (SIZE): Likewise.
2347         (__mpn_rshift): Do not use BP_SYM.
2348         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
2349         "bp-asm.h".
2350         (PARMS): Do not use macros from bp-asm.h.
2351         (STR): Likewise.
2352         (CHR): Likewise.
2353         (strchr): Likewise.  Do not use BP_SYM.
2354         (index): Do not use BP_SYM in weak_alias.
2355         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
2356         "bp-asm.h".
2357         (PARMS): Do not use macros from bp-asm.h.
2358         (DEST): Likewise.
2359         (SRC): Likewise.
2360         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
2361         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
2362         "bp-asm.h".
2363         (PARMS): Do not use macros from bp-asm.h.
2364         (strlen): Do not use BP_SYM.
2365         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
2366         "bp-asm.h".
2367         (PARMS): Do not use macros from bp-asm.h.
2368         (S1): Likewise.
2369         (S2): Likewise.
2370         (SIZE): Likewise.
2371         (__mpn_sub_n): Do not use BP_SYM.
2372         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
2373         "bp-asm.h".
2374         (PARMS): Do not use macros from bp-asm.h.
2375         (S1): Likewise.
2376         (SIZE): Likewise.
2377         (__mpn_submul_1): Do not use BP_SYM.
2378         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
2379         "bp-asm.h".
2380         (PARMS): Do not use macros from bp-asm.h.
2381         (S1): Likewise.
2382         (S2): Likewise.
2383         (SIZE): Likewise.
2384         (__mpn_add_n): Do not use BP_SYM.
2385         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
2386         weak_alias.
2387         (bzero): Likewise.
2388         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
2389         "bp-asm.h".
2390         (PARMS): Do not use macros from bp-asm.h.
2391         (BLK2): Likewise.
2392         (LEN): Likewise.
2393         (memcmp): Do not use BP_SYM.
2394         (bcmp): Do not use BP_SYM in weak_alias.
2395         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
2396         "bp-asm.h".
2397         (PARMS): Do not use macros from bp-asm.h.
2398         (DEST): Likewise.
2399         (SRC): Likewise.
2400         (LEN): Likewise.
2401         (memcpy): Likewise.  Do not use BP_SYM.
2402         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
2403         "bp-asm.h".
2404         (PARMS): Do not use macros from bp-asm.h.
2405         (DEST): Likewise.
2406         (SRC): Likewise.
2407         (LEN): Likewise.
2408         (memmove): Likewise.  Do not use BP_SYM.
2409         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
2410         "bp-asm.h".
2411         (PARMS): Do not use macros from bp-asm.h.
2412         (DEST): Likewise.
2413         (SRC): Likewise.
2414         (LEN): Likewise.
2415         (__mempcpy): Likewise.  Do not use BP_SYM.
2416         (mempcpy): Do not use BP_SYM in weak_alias.
2417         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
2418         "bp-asm.h".
2419         (PARMS): Do not use macros from bp-asm.h.
2420         (DEST): Likewise.
2421         (LEN): Likewise.
2422         [!BZERO_P] (CHR): Likewise.
2423         (memset): Likewise.  Do not use BP_SYM.
2424         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
2425         "bp-asm.h".
2426         (PARMS): Do not use macros from bp-asm.h.
2427         (STR2): Likewise.
2428         (strcmp): Do not use BP_SYM.
2429         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
2430         "bp-asm.h".
2431         (PARMS): Do not use macros from bp-asm.h.
2432         (STR): Likewise.
2433         (DELIM): Likewise.
2434         [USE_AS_STRTOK_R] (SAVE): Likewise.
2435         (FUNCTION): Likewise.  Do not use BP_SYM.
2436         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
2437         aliases.
2438         (strtok_r): Likewise.
2439         (__GI___strtok_r): Likewise.
2440         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2441         (PARMS): Do not use macros from bp-asm.h.
2442         (S): Likewise.
2443         (SIZE): Likewise.
2444         (__mpn_lshift): Do not use BP_SYM.
2445         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2446         (PARMS): Do not use macros from bp-asm.h.
2447         (STR): Likewise.
2448         (CHR): Likewise.
2449         (__memchr): Do not use BP_SYM.
2450         (memchr): Do not use BP_SYM in weak_alias.
2451         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2452         (PARMS): Do not use macros from bp-asm.h.
2453         (BLK2): Likewise.
2454         (LEN): Likewise.
2455         (memcmp): Do not use BP_SYM.
2456         (bcmp): Do not use BP_SYM in weak_alias.
2457         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
2458         (PARMS): Do not use macros from bp-asm.h.
2459         (S1): Likewise.
2460         (SIZE): Likewise.
2461         (__mpn_mul_1): Do not use BP_SYM.
2462         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
2463         "bp-asm.h".
2464         (PARMS): Do not use macros from bp-asm.h.
2465         (STR): Likewise.
2466         (CHR): Likewise.
2467         (__rawmemchr): Do not use BP_SYM.
2468         (rawmemchr): Do not use BP_SYM in weak_alias.
2469         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2470         (PARMS): Do not use macros from bp-asm.h.
2471         (S): Likewise.
2472         (SIZE): Likewise.
2473         (__mpn_rshift): Do not use BP_SYM.
2474         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2475         (PARMS): Do not use macros from bp-asm.h.
2476         (SIGMSK): Likewise.
2477         (__sigsetjmp): Likewise.  Do not use BP_SYM.
2478         * sysdeps/i386/start.S: Do not include "bp-sym.h".
2479         (_start): Do not use BP_SYM.
2480         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
2481         (PARMS): Do not use macros from bp-asm.h.
2482         (DEST): Likewise.
2483         (SRC): Likewise.
2484         (__stpcpy): Likewise.  Do not use BP_SYM.
2485         (stpcpy): Do not use BP_SYM in weak_alias.
2486         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
2487         "bp-asm.h".
2488         (PARMS): Do not use macros from bp-asm.h.
2489         (DEST): Likewise.
2490         (SRC): Likewise.
2491         (LEN): Likewise.
2492         (__stpncpy): Likewise.  Do not use BP_SYM.
2493         (stpncpy): Do not use BP_SYM in weak_alias.
2494         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2495         (PARMS): Do not use macros from bp-asm.h.
2496         (STR): Likewise.
2497         (CHR): Likewise.
2498         (strchr): Likewise.  Do not use BP_SYM.
2499         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
2500         "bp-asm.h".
2501         (PARMS): Do not use macros from bp-asm.h.
2502         (STR): Likewise.
2503         (CHR): Likewise.
2504         (__strchrnul): Likewise.  Do not use BP_SYM.
2505         (strchrnul): Do not use BP_SYM in weak_alias.
2506         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
2507         "bp-asm.h".
2508         (PARMS): Do not use macros from bp-asm.h.
2509         (STOP): Likewise.
2510         (strcspn): Do not use BP_SYM.
2511         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
2512         "bp-asm.h".
2513         (PARMS): Do not use macros from bp-asm.h.
2514         (STR): Likewise.
2515         (STOP): Likewise.
2516         (strpbrk): Likewise.  Do not use BP_SYM.
2517         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
2518         "bp-asm.h".
2519         (PARMS): Do not use macros from bp-asm.h.
2520         (STR): Likewise.
2521         (CHR): Likewise.
2522         (strrchr): Likewise.  Do not use BP_SYM.
2523         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
2524         (PARMS): Do not use macros from bp-asm.h.
2525         (SKIP): Likewise.
2526         (strspn): Do not use BP_SYM.
2527         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
2528         (PARMS): Do not use macros from bp-asm.h.
2529         (STR): Likewise.
2530         (DELIM): Likewise.
2531         (SAVE): Likewise.
2532         (FUNCTION): Likewise.  Do not use BP_SYM.
2533         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
2534         aliases.
2535         (strtok_r): Likewise.
2536         (__GI___strtok_r): Likewise.
2537         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2538         (PARMS): Do not use macros from bp-asm.h.
2539         (S1): Likewise.
2540         (S2): Likewise.
2541         (SIZE): Likewise.
2542         (__mpn_sub_n): Do not use BP_SYM.
2543         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
2544         "bp-asm.h".
2545         (PARMS): Do not use macros from bp-asm.h.
2546         (S1): Likewise.
2547         (SIZE): Likewise.
2548         (__mpn_submul_1): Do not use BP_SYM.
2549         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
2550         <bp-sym.h>.
2551         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
2552         and <bp-asm.h>.
2553         (PARMS): Do not use macros from bp-asm.h.
2554         (FLAGS): Likewise.
2555         (PTID): Likewise.
2556         (TLS): Likewise.
2557         (CTID): Likewise.
2558         (__clone): Do not use BP_SYM.
2559         (clone): Do not use BP_SYM in weak_alias.
2560         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
2561         and <bp-asm.h>.
2562         (PARMS): Do not use macros from bp-asm.h.
2563         (LEN): Likewise.
2564         (__mmap64): Do not use BP_SYM.
2565         (mmap64): Do not use BP_SYM in weak_alias.
2566         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2567         <bp-sym.h> and <bp-asm.h>.
2568         (PARMS): Do not use macros from bp-asm.h.
2569         (__posix_fadvise64_l64): Do not use BP_SYM.
2570         * sysdeps/unix/sysv/linux/i386/semtimedop.S
2571         (PARMS): Do not use macros from bp-asm.h.
2572         (NSOPS): Likewise.
2573         (semtimedop): Do not use BP_SYM.
2574         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
2575         and <bp-asm.h>.
2576
2577 2013-02-21  Allan McRae  <allan@archlinux.org>
2578
2579         * manual/message.texi (Charset conversion in gettext):
2580         Move @end statement to beginning of line.
2581
2582 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2583
2584         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
2585         static.
2586         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2587         Likewise.
2588
2589         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
2590         (denorm): Likewise.
2591         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
2592         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
2593
2594 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2595
2596         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
2597         tail-call to the resolved function if pltexit isn't needed.
2598
2599 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2600
2601         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
2602         or Y being zero as being unlikely.
2603         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2604         Likewise.
2605
2606 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
2607
2608         * manual/nss.texi (System Databases and Name Service Switch):
2609         Remove frobnicate @pxref.
2610
2611 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2612
2613         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2614         __attribute__ ((unused)) to __attribute__ ((__unused__)).
2615
2616 2013-02-20  Petr Machata  <pmachata@redhat.com>
2617
2618         * elf/elf.h (R_ARM_TARGET1): New macro.
2619         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
2620         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
2621         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
2622         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
2623         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
2624         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
2625         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
2626         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
2627         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
2628         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
2629         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
2630         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
2631         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
2632         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
2633         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
2634         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
2635         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
2636         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
2637         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
2638         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
2639         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
2640         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
2641         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
2642         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
2643         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
2644         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
2645         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
2646         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
2647         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
2648         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
2649         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
2650         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
2651         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
2652         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
2653         (R_ARM_THM_GOT_BREL12): Likewise.
2654         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
2655         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
2656         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
2657         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
2658         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
2659         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
2660         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
2661         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
2662         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
2663
2664 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2665
2666         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2667         __attribute_used__ to __attribute__ ((unused)).
2668
2669 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2670
2671         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
2672         powerpc mpa.c.
2673         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
2674         comment formatting.
2675         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
2676
2677 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
2678
2679         [BZ #13550]
2680         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
2681         Remove macro.
2682         (ENTER): Remove both macro definitions.
2683         (LEAVE): Likewise.
2684         (CHECK_BOUNDS_LOW): Likewise.
2685         (CHECK_BOUNDS_HIGH): Likewise.
2686         (CHECK_BOUNDS_BOTH): Likewise.
2687         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
2688         (RETURN_BOUNDED_POINTER): Likewise.
2689         (RETURN_NULL_BOUNDED_POINTER): Likewise.
2690         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
2691         (POP_ERRNO_LOCATION_RETURN): Likewise.
2692         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
2693         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2694         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
2695         macros.
2696         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2697         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
2698         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
2699         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
2700         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
2701         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
2702         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
2703         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
2704         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
2705         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2706         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2707         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
2708         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2709         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
2710         removed macros.
2711         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2712         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
2713         macros.
2714         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2715         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
2716         * sysdeps/i386/i586/memset.S (memset): Likewise.
2717         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
2718         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2719         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
2720         macros.
2721         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2722         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
2723         Change uses of L(2) to L(out).
2724         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
2725         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2726         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
2727         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2728         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
2729         removed macros.
2730         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2731         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
2732         macros.
2733         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2734         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
2735         (RETURN): Do not use macro LEAVE.
2736         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
2737         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2738         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
2739         * sysdeps/i386/i686/memset.S (memset): Likewise.
2740         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2741         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
2742         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2743         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
2744         Likewise.
2745         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2746         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
2747         L(1_2) and L(1_3) into L(1).
2748         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2749         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
2750         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2751         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
2752         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2753         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
2754         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
2755         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2756         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
2757         macros.
2758         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
2759         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2760         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
2761         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
2762         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2763         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2764         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
2765         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
2766         * sysdeps/i386/strcspn.S (strcspn): Likewise.
2767         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2768         * sysdeps/i386/strrchr.S (strrchr): Likewise.
2769         * sysdeps/i386/strspn.S (strspn): Likewise.
2770         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
2771         conditional code.
2772         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2773         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
2774         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2775         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
2776         L(1_3) into L(1_1).
2777         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
2778         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2779         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
2780         macros.
2781         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2782
2783 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
2784
2785         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
2786         macro.
2787
2788 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2789
2790         * math/atest-exp.c (exp_mpn): Remove ROUND.
2791         * math/atest-exp2.c (exp_mpn): Likewise.
2792         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
2793
2794         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
2795         * stdlib/tst-tls-atexit-lib.c: Likewise.
2796         * stdlib/tst-tls-atexit.c: Likewise.
2797
2798 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2799
2800         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
2801         and __attribute_alloc_size__.
2802
2803 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2804
2805         * include/programs/xmalloc.h: Change __attribute_alloc_size to
2806         __attribute_alloc_size__.
2807         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
2808         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
2809
2810 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2811
2812         * include/programs/xmalloc.h: New file.
2813         * catgets/gencat.c: Include it.
2814         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
2815         * elf/pldd.c: Likewise.
2816         * iconv/iconv_charmap.c: Likewise.
2817         * iconv/iconvconfig.c: Likewise.
2818         * iconv/strtab.c: Likewise.
2819         * locale/programs/locale.c: Likewise.
2820         * locale/programs/localedef.h: Likewise.
2821         * locale/programs/simple-hash.c: Likewise.
2822         * nscd/nscd.h: Likewise.
2823         * nss/makedb.c: Likewise.
2824         * sysdeps/generic/ldconfig.h: Likewise.
2825
2826 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2827
2828         * Versions.def: Add GLIBC_2.18.
2829         * include/link.h (struct link_map): New member l_tls_dtor_count.
2830         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
2831         (__call_tls_dtors): Likewise.
2832         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
2833         __cxa_thread_atexit_impl.
2834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2835         Likewise.
2836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2837         Likewise.
2838         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
2839         Likewise.
2840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
2841         Likewise.
2842         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2843         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
2844         Likewise.
2845         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
2846         Likewise.
2847         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2849         Likewise.
2850         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
2851         (tests): Add test case tst-tls-atexit.
2852         (modules-names): Add shared library for tst-tls-atexit.
2853         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
2854         (GLIBC_PRIVATE): Add __call_tls_dtors.
2855         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
2856         for libstdc++.
2857         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
2858         * stdlib/tst-tls-atexit.c: New test case.
2859         * stdlib/tst-tls-atexit-lib.c: New test case.
2860
2861         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
2862
2863         * elf/Versions (ld): Add _dl_find_dso_for_object.
2864         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
2865         * elf/dl-open.c (_dl_find_dso_for_object): New function.
2866         (dl_open_worker): Use _dl_find_dso_for_object.
2867         * elf/dl-sym.c (do_sym): Likewise.
2868         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
2869
2870 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2871
2872         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
2873         Syntactic changes only.
2874         (_dl_runtime_profile): Do a tail-call to the resolved function.
2875
2876 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
2877
2878         [BZ #13550]
2879         * sysdeps/x86_64/bp-asm.h: Remove file.
2880         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
2881         <bp-sym.h> and <bp-asm.h>.
2882         (__clone): Do not use BP_SYM.
2883         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
2884         <bp-sym.h> and <bp-asm.h>.
2885         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2886         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
2887         "bp-asm.h".
2888         (_setjmp): Do not use BP_SYM.
2889         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
2890         "bp-asm.h".
2891         (setjmp): Do not use BP_SYM.
2892         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
2893         libc_hidden_def.
2894         (mempcpy): Do not use BP_SYM in weak_alias.
2895         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
2896         "bp-asm.h".
2897         (strchr): Do not use BP_SYM.
2898         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
2899         "bp-asm.h".
2900         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
2901         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
2902         (_start): Do not use BP_SYM.
2903         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
2904         "bp-asm.h".
2905         (strcat): Do not use BP_SYM.
2906         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
2907         "bp-asm.h".
2908         (STRCMP): Do not use BP_SYM.
2909         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
2910         "bp-asm.h".
2911         (STRCPY): Do not use BP_SYM.
2912         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
2913         "bp-asm.h".
2914         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
2915         "bp-asm.h".
2916         (FUNCTION): Do not use BP_SYM.
2917         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
2918         weak_alias.
2919         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
2920
2921 2013-02-17  Andreas Jaeger  <aj@suse.de>
2922
2923         * time/Versions: Sort entries.
2924         * string/Versions: Likewise.
2925         * resolv/Versions: Likewise.
2926         * posix/Versions: Likewise.
2927         * iconv/Versions: Likewise.
2928         * elf/Versions: Likewise.
2929         * wcsmbs/Versions: Likewise.
2930
2931 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2932
2933         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
2934         loop termination condition.
2935
2936         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
2937         variable to calculate EZ.
2938         (__sqr): Likewise.
2939
2940         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
2941         the lower precision input.
2942
2943 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
2944
2945         [BZ #13550]
2946         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
2947         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
2948         (run-via-rtld-prefix): Do not handle %-bp tests.
2949         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
2950         (all-object-suffixes): Remove .ob.
2951         (bppfx): Remove variable.
2952         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
2953         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
2954         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
2955         [$(build-bounded) = yes] (libtype.ob): Likewise.
2956         * Makerules (elide-routines.ob): Remove variable.
2957         (do-tests-clean): Do not handle *-bp.out.
2958         (common-mostlyclean): Do not handle *-bp and *-bp.out.
2959         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
2960         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
2961         (tests): Do not include $(tests-bp.out).
2962         (xtests): Do not include $(xtests-bp.out).
2963         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
2964         [$(build-bounded) = yes] ($(addprefix
2965         $(objpfx),$(binaries-bounded))): Remove rule.
2966         ($(objpfx)%-bp.out): Remove rule.
2967         * config.make.in (build-bounded): Remove variable.
2968         * crypt/Makefile [$(build-bounded) = yes]
2969         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
2970         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
2971         append to variable.
2972         [$(build-bounded) = yes] (install-lib): Likewise.
2973         [$(build-bounded) = yes] (generated): Likewise.
2974         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
2975         Remove rule.
2976         * intl/Makefile [$(build-bounded) = yes]
2977         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
2978         * math/Makefile [$(build-bounded) = yes]
2979         ($(tests:%=$(objpfx)%-bp): Likewise.
2980         * misc/Makefile [$(build-bounded) = yes]
2981         ($(objpfx)tst-tsearch-bp): Likewise.
2982         * nptl/Makeconfig (bounded-thread-library): Remove variable.
2983         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
2984         Remove dependency.
2985         * string/Makefile (o-objects.ob): Remove variable.
2986         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
2987         (CFLAGS-.ob): Remove variable.
2988         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
2989         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
2990         both definitions of variable.
2991         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
2992         (ASFLAGS-.ob): Remove variable.
2993
2994 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
2995
2996         [BZ #13550]
2997         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
2998         Remove __BOUNDED_POINTERS__ from condition.
2999         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3000         * string/bits/string2.h [!__NO_STRING_INLINES &&
3001         !__BOUNDED_POINTERS__]: Likewise.
3002         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3003         Likewise.
3004         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3005         Remove conditional code.
3006         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3007         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3008         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3009         condition.
3010
3011         [BZ #13550]
3012         * csu/libc-start.c: Do not include <bp-sym.h>.
3013         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3014         * elf/dl-open.c: Do not include <bp-sym.h>.
3015         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3016         * math/fegetenv.c: Do not include <bp-sym.h>.
3017         (fegetenv): Do not use BP_SYM in versioned symbols.
3018         * nptl/sysdeps/pthread/bits/libc-lockP.h
3019         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3020         <bp-sym.h>.
3021         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3022         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3023         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3024         (__pthread_mutex_destroy): Likewise.
3025         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3026         (__pthread_mutex_lock): Likewise.
3027         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3028         (__pthread_mutex_trylock): Likewise.
3029         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3030         (__pthread_mutex_unlock): Likewise.
3031         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3032         (__pthread_mutexattr_init): Likewise.
3033         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3034         (__pthread_mutexattr_destroy): Likewise.
3035         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3036         (__pthread_mutexattr_settype): Likewise.
3037         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3038         (__pthread_rwlock_init): Likewise.
3039         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3040         (__pthread_rwlock_destroy): Likewise.
3041         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3042         (__pthread_rwlock_rdlock): Likewise.
3043         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3044         (__pthread_rwlock_tryrdlock): Likewise.
3045         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3046         (__pthread_rwlock_wrlock): Likewise.
3047         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3048         (__pthread_rwlock_trywrlock): Likewise.
3049         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3050         (__pthread_rwlock_unlock): Likewise.
3051         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3052         (__pthread_key_create): Likewise.
3053         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3054         (__pthread_setspecific): Likewise.
3055         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3056         (__pthread_getspecific): Likewise.
3057         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3058         Likewise.
3059         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3060         (_pthread_cleanup_push_defer): Likewise.
3061         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3062         (_pthread_cleanup_pop_restore): Likewise.
3063         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3064         (pthread_setcancelstate): Likewise.
3065         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3066         <bp-sym.h>.
3067         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3068         (memchr): Do not use BP_SYM in weak_alias.
3069         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3070         (fegetenv): Do not use BP_SYM in versioned symbols.
3071         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3072         (fesetenv): Do not use BP_SYM in versioned symbols.
3073         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3074         (feupdateenv): Do not use BP_SYM in versioned symbols.
3075         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3076         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3077         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3078         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3079         (open64): Do not use BP_SYM in weak_alias.
3080         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3081         (fegetenv): Do not use BP_SYM in versioned symbols.
3082         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3083         (fesetenv): Do not use BP_SYM in versioned symbols.
3084         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3085         (feupdateenv): Do not use BP_SYM in versioned symbols.
3086         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3087         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3088         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3089         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3090         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3091         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3092         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3093         <bp-sym.h>.
3094         (__libc_start_main): Do not use BP_SYM.
3095
3096 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3097
3098         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3099         redundant return line.
3100         (norm): Likewise.
3101         (denorm): Likewise.
3102         (dbl_mp): Likewise.
3103         (sub_magnitudes): Likewise.
3104         (__add): Likewise.
3105         (__sub): Likewise.
3106         (__mul): Likewise.
3107         (__inv): Likewise.
3108         (__dvd): Likewise.
3109         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3110         (norm): Likewise.
3111         (denorm): Likewise.
3112         (dbl_mp): Likewise.
3113         (sub_magnitudes): Likewise.
3114         (__add): Likewise.
3115         (__sub): Likewise.
3116         (__mul): Likewise.
3117         (__inv): Likewise.
3118         (__dvd): Likewise.
3119
3120         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3121         instead of __mul.
3122         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3123         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3124         (cc32): Likewise.
3125
3126         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3127         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3128         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3129         of __mul for squares.
3130         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3131         function
3132         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3133         Likewise.
3134         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3135         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3136
3137 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3138
3139         [BZ #13550]
3140         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3141         code.
3142         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3143         prototype or function definition.  Rename ubp_* variables and
3144         parameters.  Remove argv definitions conditional on
3145         [__BOUNDED_POINTERS__].
3146         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3147         * elf/dl-runtime.c (_dl_fixup): Likewise.
3148         * include/set-hooks.h (RUN_HOOK): Likewise.
3149         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3150         definition.
3151         * string/strcpy.c (strcpy): Do not use __unbounded.
3152         * sysdeps/generic/frame.h (struct layout): Likewise.
3153         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3154         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3155         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3156         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3157         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3158         (__backtrace): Likewise.
3159         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3160         use __ptrvalue.
3161         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3162         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3163         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3164         Likewise.
3165         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3166         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3167         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3168         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3169         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3170         Do not use __unbounded.
3171         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3172         Rename __unboundedrlimits parameter to rlimits in prototype.
3173         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3174         Do not use __unbounded.
3175         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3176         not use __ptrvalue.
3177         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3178         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3179         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3180         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3181         __ptrvalue or __unbounded.
3182         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3183         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3184         use __unbounded.
3185         (__new_msgctl): Do not use __ptrvalue.
3186         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3187         __unbounded.
3188         (__libc_msgrcv): Do not use __ptrvalue.
3189         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3190         startup_info): Do not use __unbounded.
3191         (__libc_start_main): Likewise.  Rename ubp_* variables and
3192         parameters.  Remove argv definitions conditional on
3193         [__BOUNDED_POINTERS__].
3194         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3195         __ptrvalue.
3196         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3197         use __unbounded.
3198         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3199         or __ptrvalue.
3200         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3201         use __unbounded.
3202         (__new_shmctl): Do not use __ptrvalue.
3203         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3204         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3205         Likewise.
3206         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3207         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3208         (__libc_sigaction): Likewise.
3209         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3210         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3211         Likewise.
3212         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3213
3214 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3215
3216         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3217
3218         * string/mempcpy.c: Implement by calling memcpy.
3219
3220 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3221
3222         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3223
3224         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3225         evaluation.
3226
3227         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3228         values in the mantissa.
3229
3230         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3231         minimize writes to Z.
3232         (sub_magnitudes): Simplify code a bit.
3233
3234 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3235
3236         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3237         from the message.  The linker prefixes all warnings with that already.
3238
3239 2013-02-12  Andreas Schwab  <schwab@suse.de>
3240
3241         [BZ #15078]
3242         * posix/regexec.c (extend_buffers): Add parameter min_len.
3243         (check_matching): Pass minimum needed length.
3244         (clean_state_log_if_needed): Likewise.
3245         (get_subexp): Likewise.
3246         * posix/Makefile (tests): Add bug-regex34.
3247         (bug-regex34-ENV): Define.
3248         * posix/bug-regex34.c: New file.
3249
3250         [BZ #11561]
3251         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3252         elements compare against the byte sequence of it, not its name.
3253         * posix/Makefile (tests): Add bug-regex35.
3254         (bug-regex35-ENV): Define.
3255         * posix/bug-regex35.c: New file.
3256
3257 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3258
3259         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3260         comment.
3261         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3262         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3263         (CHECK_EOL): Add undef.
3264
3265 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3266
3267         * bits/stdlib-bsearch.h: New file.
3268         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3269         * stdlib/stdlib.h: Likewise.
3270
3271 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3272
3273         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3274         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3275         declaration.
3276         * manual/search.texi (Array Search Function): Add missing const in
3277         lfind prototype.
3278         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3279         declaration to use rlim_t.
3280         (Basic Scheduling Functions): Remove erroneous const from
3281         sched_getparam prototype.  Remove erroneous * from
3282         sched_get_priority_max and sched_get_priority_min prototypes.
3283         (Resource Usage): Fix summary @comment on vtimes to refer to
3284         sys/vtimes.h rather than vtimes.h.
3285         Add missing *s in vtimes prototype.
3286         (Limits on Resources): Fix ulimit prototype to return long int.
3287         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3288         prototypes to use long int rather than double.
3289         (BSD Random): Fix initstate and setstate to use char *, not void *.
3290         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3291         prototype to make second argument 'struct aiocb64 *const[]'.
3292         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3293         (Status of AIO Operations): Remove erroneous const in aio_return and
3294         aio_return64 prototypes.
3295         (Synchronizing I/O): Fix sync prototype to return void.
3296         * manual/startup.texi (Suboptions): Remove an erroneous const in
3297         getsubopt prototype.
3298         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3299         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3300         use size_t rather than int.
3301         (Scanning All Users): Likewise for getpwent_r.
3302         (Setting Groups): Add missing const to setgroups prototype.
3303         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3304         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3305         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3306         'const void *' rather than 'const char *'.
3307         (Host Address Functions): Likewise for inet_ntop.
3308         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3309         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3310         ssize_t for return value.
3311         (Sending Data): Likewise for send, sendto, sendmsg.
3312         (Socket Option Functions): Add a missing const in setsockopt prototype.
3313         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3314         use wchar_t for the argument.
3315         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3316         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3317         take no arguments.
3318         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3319         double/float/long double for second argument.
3320         Fix return types of significand, significandf, significandl.
3321         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3322         argument in fchmod prototype.
3323         (File Owner): Use uid_t and gid_t in fchown prototype.
3324         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3325         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3326         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3327         use 'const struct dirent **' as argument types to CMP function pointer
3328         argument.
3329         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3330         (File Times): Fix summary magic @comment for struct utimbuf and utime
3331         to refer to utime.h, not time.h.
3332         * manual/string.texi (Argz Functions): Add missing const in
3333         argz_extract and argz_next prototypes.
3334         (Finding Tokens in a String): Likewise for basename.
3335         (String/Array Comparison): Fix typo in wcscasecmp prototype.
3336         (Copying and Concatenation): Fix typo in wmemmove prototype.
3337         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
3338         (Signal Stack): Remove erroneous const in sigstack prototype.
3339         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
3340         prototype.
3341         (Simple Calendar Time): Likewise for stime.
3342         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
3343         prototype.
3344         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
3345         say sys/sysctl.h instead.
3346         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
3347         and vsyslog prototypes.
3348
3349 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3350
3351         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
3352         Remove.
3353
3354 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3355
3356         * misc/sys/mman.h: Fix typo in mremap comment.
3357
3358 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3359
3360         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
3361         the '\0' terminator.
3362
3363 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3364
3365         [BZ #13550]
3366         * debug/segfault.c: Don't include <bp-checks.h>.
3367         * sysdeps/generic/bp-checks.h: Remove file.
3368         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
3369         (__GETDENTS): Don't use CHECK_N.
3370         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
3371         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3372         (__getgroups): Don't use CHECK_N.
3373         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3374         (setgroups): Don't use CHECK_N.
3375         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
3376         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3377         (__libc_msgrcv): Don't use CHECK_N.
3378         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
3379         (__libc_msgsnd): Don't use CHECK_N.
3380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
3381         <bp-checks.h>.
3382         (__libc_pread): Don't use CHECK_N.
3383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
3384         include <bp-checks.h>.
3385         (__libc_pread64): Don't use CHECK_N.
3386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
3387         include <bp-checks.h>.
3388         (__libc_pwrite): Don't use CHECK_N.
3389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
3390         include <bp-checks.h>.
3391         (__libc_pwrite64): Don't use CHECK_N.
3392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
3393         <bp-checks.h>.
3394         (__libc_pread): Don't use CHECK_N.
3395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
3396         include <bp-checks.h>.
3397         (__libc_pread64): Don't use CHECK_N.
3398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
3399         include <bp-checks.h>.
3400         (__libc_pwrite): Don't use CHECK_N.
3401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
3402         include <bp-checks.h>.
3403         (__libc_pwrite64): Don't use CHECK_N.
3404         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
3405         (do_pread): Don't use CHECK_N.
3406         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
3407         (do_pread64): Don't use CHECK_N.
3408         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
3409         (do_pwrite): Don't use CHECK_N.
3410         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
3411         (do_pwrite64): Don't use CHECK_N.
3412         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
3413         (__libc_readv): Don't use CHECK_N.
3414         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
3415         (semop): Don't use CHECK_N.
3416         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
3417         <bp-checks.h>.
3418         (semtimedop): Don't use CHECK_N.
3419         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
3420         (__libc_pread): Don't use CHECK_N.
3421         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
3422         <bp-checks.h>.
3423         (__libc_pread64): Don't use CHECK_N.
3424         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
3425         <bp-checks.h>.
3426         (__libc_pwrite): Don't use CHECK_N.
3427         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
3428         <bp-checks.h>.
3429         (__libc_pwrite64): Don't use CHECK_N.
3430         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
3431         <bp-checks.h>.
3432         (__libc_msgrcv): Don't use CHECK_N.
3433         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
3434         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
3435         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
3436         (__libc_writev): Don't use CHECK_N.
3437
3438 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3439
3440         * string/strcpy.c: Removed unused variable.
3441
3442         * Makeconfig (+sysdep-includes): Define with := rather than =.
3443         Use an existing include/ subdir of each sysdeps dir before it.
3444
3445 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3446
3447         * nscd/connection.c (register_traced_file): Comment function.
3448         [HAVE_INOTIFY] (union __inev): Define.
3449         [HAVE_INOTIFY] (inotify_check_files): New function.
3450         [HAVE_INOTIFY] (clear_db_cache): Likewise.
3451         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
3452         clear_db_cache.
3453         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
3454
3455 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3456
3457         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
3458         loaded if not already and that a failure is permanent.
3459
3460 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3461
3462         [BZ #15006]
3463         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
3464         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
3465
3466 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3467
3468         [BZ #13550]
3469         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
3470         (CHECK_1_NULL_OK): Likewise.
3471         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
3472         (__fxstat): Do not use CHECK_1.
3473         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3474         <bp-checks.h>.
3475         (___fxstat64): Do not use CHECK_1.
3476         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
3477         <bp-checks.h>.
3478         (__fxstatat): Do not use CHECK_1.
3479         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
3480         <bp-checks.h>.
3481         (__fxstatat64): Do not use CHECK_1.
3482         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
3483         <bp-checks.h>.
3484         (__fxstat): Do not use CHECK_1.
3485         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
3486         <bp-checks.h>.
3487         (__fxstatat): Do not use CHECK_1.
3488         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3489         <bp-checks.h>.
3490         (__getresgid): Do not use CHECK_1.
3491         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3492         <bp-checks.h>.
3493         (__getresuid): Do not use CHECK_1.
3494         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
3495         <bp-checks.h>.
3496         (__lxstat): Do not use CHECK_1.
3497         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3498         <bp-checks.h>.
3499         (__old_msgctl): Do not use CHECK_1.
3500         (__new_msgctl): Likewise.
3501         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
3502         <bp-checks.h>.
3503         (__new_setrlimit): Do not use CHECK_1.
3504         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3505         <bp-checks.h>.
3506         (__old_shmctl): Do not use CHECK_1.
3507         (__new_shmctl): Likewise.
3508         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
3509         <bp-checks.h>.
3510         (__xstat): Do not use CHECK_1.
3511         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
3512         (__lxstat): Do not use CHECK_1.
3513         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3514         <bp-checks.h>.
3515         (___lxstat64): Do not use CHECK_1.
3516         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
3517         (__old_msgctl): Do not use CHECK_1.
3518         (__new_msgctl): Likewise.
3519         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
3520         <bp-checks.h>.
3521         (__gettimeofday): Do not use CHECK_1.
3522         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
3523         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
3524         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
3525         <bp-checks.h>.
3526         (__gettimeofday): Do not use CHECK_1.
3527         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
3528         (__old_shmctl): Do not use CHECK_1_NULL_OK.
3529         (__new_shmctl): Do not use CHECK_1.
3530         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
3531         <bp-checks.h>.
3532         (do_sigtimedwait): Do not use CHECK_1.
3533         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
3534         <bp-checks.h>.
3535         (do_sigwaitinfo): Do not use CHECK_1.
3536         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
3537         <bp-checks.h>.
3538         (msgctl): Do not use CHECK_1.
3539         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
3540         <bp-checks.h>.
3541         (shmctl): Do not use CHECK_1.
3542         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
3543         (ustat): Do not use CHECK_1.
3544         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
3545         <bp-checks.h>.
3546         (__fxstat): Do not use CHECK_1.
3547         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
3548         <bp-checks.h>.
3549         (__fxstatat): Do not use CHECK_1.
3550         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
3551         <bp-checks.h>.
3552         (__lxstat): Do not use CHECK_1.
3553         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
3554         <bp-checks.h>.
3555         (__xstat): Do not use CHECK_1.
3556         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
3557         (__xstat): Do not use CHECK_1.
3558         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
3559         (___xstat64): Do not use CHECK_1.
3560
3561         [BZ #13550]
3562         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
3563         definitions.
3564         (CHECK_BOUNDS_HIGH): Likewise.
3565         * string/strcpy.c: Do not include <bp-checks.h>.
3566         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
3567
3568 2013-02-07  Roland McGrath  <roland@hack.frob.com>
3569
3570         * nscd/nscd-client.h (__nscd_drop_map_ref):
3571         Add __attribute__ ((unused)).
3572         * nis/nss-nisplus.h (niserr2nss): Likewise.
3573
3574         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
3575         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
3576
3577         * csu/libc-tls.c (init_static_tls, init_slotinfo):
3578         Remove inline keyword.
3579         * include/rounding-mode.h (round_away): Likewise.
3580         * libio/wfileops.c (adjust_wide_data): Likewise.
3581         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
3582         (__m128i_strloadu_tolower): Likewise.
3583         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
3584         (__m128i_strloadu_tolower): Likewise.
3585         * time/mktime.c (ydhms_diff): Likewise.
3586         * locale/elem-hash.h (elem_hash): Likewise.
3587         * locale/setlocale.c (setdata): Likewise.
3588         * posix/regex_internal.h (re_string_char_size_at): Likewise.
3589         (re_string_wchar_at): Likewise.
3590         (bitset_not, bitset_merge, bitset_mask): Likewise.
3591         [!(__GNUC__ > 3)] (inline): Remove macro.
3592         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
3593         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
3594         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
3595         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
3596         * string/memcmp.c (memcmp_bytes): Likewise.
3597         * locale/programs/locarchive.c (compute_hashval): Likewise.
3598         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
3599         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
3600         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
3601         * nss/getent.c (print_rpc, print_protocols): Likewise.
3602         (print_passwd, print_group, print_aliases): Likewise.
3603         * nis/nss-nisplus.h (niserr2nss): Likewise.
3604         * nscd/connections.c (restart_p): Likewise.
3605         Change return type to bool.
3606
3607 2013-02-05  Roland McGrath  <roland@hack.frob.com>
3608
3609         * Makeconfig (all-Depend-files): Add existing
3610         $(sorted-subdirs:=/Depend) files.
3611         (all-subdirs): Remove nss.
3612         * sysdeps/unix/inet/Subdirs: Add it here instead.
3613         * hesiod/Depend: New file.
3614
3615         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
3616         instead of calling alloca.
3617
3618         * io/lseek.c (__lseek): Rename to __libc_lseek.
3619         Define __lseek as an alias.
3620
3621         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
3622
3623 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
3624
3625         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
3626         else clause and remove check for non-standard endianness.
3627
3628 2013-02-04  David S. Miller  <davem@davemloft.net>
3629
3630         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3631
3632 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
3633
3634         [BZ #13550]
3635         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
3636         (__ubp_memchr): Remove prototype.
3637         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
3638         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3639         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
3640         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3641         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3642         Remove alias.
3643         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
3644         (__ubp_memchr): Likewise.
3645         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
3646         (__ubp_memchr): Likewise.
3647         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
3648         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
3649         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
3650         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
3651         CHECK_STRING.
3652         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
3653         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
3654         (__getcwd): Do not use CHECK_STRING.
3655         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3656         <bp-checks.h>.
3657         (__real_chown): Do not use CHECK_STRING.
3658         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
3659         <bp-checks.h>.
3660         (fchownat): Do not use CHECK_STRING.
3661         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
3662         CHECK_STRING.
3663         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3664         <bp-checks.h>.
3665         (__lchown): Do not use CHECK_STRING.
3666         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3667         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3668         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3669         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
3670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3671         include <bp-checks.h>.
3672         (truncate64): Do not use CHECK_STRING.
3673         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3674         <bp-checks.h>.
3675         (__real_chown): Do not use CHECK_STRING.
3676         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3677         <bp-checks.h>.
3678         (__lchown): Do not use CHECK_STRING.
3679         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3680         <bp-checks.h>.
3681         (__chown): Do not use CHECK_STRING.
3682         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
3683         <bp-checks.h>.
3684         (truncate64): Do not use CHECK_STRING.
3685         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
3686         Likewise.
3687         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
3688         (__xmknod): Do not use CHECK_STRING.
3689         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
3690         <bp-checks.h>.
3691         (__xmknodat): Do not use CHECK_STRING.
3692         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3693         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
3694
3695 2013-02-04  Andreas Schwab  <schwab@suse.de>
3696
3697         [BZ #14142]
3698         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
3699         * include/netdb.h: Likewise for h_errno.
3700         * elf/tst-stackguard1.c: Include <tls.h>.
3701
3702 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3703
3704         * elf/link.h (struct link_map): Extend the l_addr comment.
3705         * include/link.h (struct link_map): Likewise.
3706
3707 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
3708
3709         [BZ #13550]
3710         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
3711         (BOUNDED_1): Remove macro.
3712         * debug/backtrace.c: Don't include <bp-checks.h>.
3713         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
3714         (__backtrace): Likewise.
3715         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
3716         <bp-checks.h>.
3717         (__backtrace): Don't use BOUNDED_1.
3718         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
3719         <bp-checks.h>.
3720         (__backtrace): Don't use BOUNDED_1.
3721         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
3722         (__backtrace): Don't use BOUNDED_1.
3723         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
3724         (shmat): Don't use BOUNDED_N.
3725
3726 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
3727
3728         [BZ #13550]
3729         * sysdeps/generic/bp-start.h: Remove file.
3730         * csu/libc-start.c: Don't include <bp-start.h>.
3731         (LIBC_START_MAIN): Set up __environ directly instead of using
3732         INIT_ARGV_and_ENVIRON.
3733         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
3734         <bp-start.h>.
3735
3736         [BZ #13550]
3737         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
3738         definitions.
3739         (CHECK_FCNTL): Likewise.
3740         (CHECK_N_PAGES): Likewise.
3741
3742         [BZ #13550]
3743         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
3744         definitions.
3745         (CHECK_SIGSET_NULL_OK): Likewise.
3746         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
3747         <bp-checks.h>.
3748         (sigpending): Don't use CHECK_SIGSET.
3749         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
3750         <bp-checks.h>.
3751         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3752         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
3753         <bp-checks.h>.
3754         (do_sigsuspend): Don't use CHECK_SIGSET.
3755         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
3756         use CHECK_SIGSET.
3757         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
3758         (do_sigwait): Don't use CHECK_SIGSET.
3759         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
3760         use CHECK_SIGSET.
3761         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
3762         include <bp-checks.h>.
3763         (sigpending): Don't use CHECK_SIGSET.
3764         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
3765         include <bp-checks.h>.
3766         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3767         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
3768         <bp-checks.h>.
3769         (sigpending): Don't use CHECK_SIGSET.
3770         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
3771         <bp-checks.h>.
3772         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3773
3774         [BZ #13550]
3775         * sysdeps/generic/bp-semctl.h: Remove file.
3776         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
3777         <bp-checks.h> and <bp-semctl.h>.
3778         (__old_semctl): Don't use CHECK_SEMCTL.
3779         (__new_semctl): Likewise.
3780         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
3781         and <bp-semctl.h>.
3782         (__old_semctl): Don't use CHECK_SEMCTL.
3783         (__new_semctl): Likewise.
3784         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
3785         <bp-checks.h> and <bp-semctl.h>.
3786         (__old_semctl): Don't use CHECK_SEMCTL.
3787         (__new_semctl): Likewise.
3788         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
3789         <bp-checks.h> and <bp-semctl.h>.
3790         (semctl): Don't use CHECK_SEMCTL.
3791
3792         [BZ #13550]
3793         * Makerules (elide-bp-thunks): Remove variable.
3794         (elide-routines.oS): Don't use $(elide-bp-thunks).
3795         (elide-routines.os): Likewise.
3796         (elide-routines.o): Likewise.
3797         (elide-routines.op): Likewise.
3798         (elide-routines.og): Likewise.
3799         (objects): Don't use $(bp-thunks).
3800         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
3801         include.
3802         (common-generated): Do not add s-proto-bp.d.
3803         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
3804         (int): Likewise.
3805         (typ): Likewise.
3806         Do not generate makefile rules for bounded-pointer thunks.
3807         * sysdeps/generic/bp-thunks.h: Remove file.
3808         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3809         * sysdeps/unix/s-proto-bp.S: Likewise.
3810
3811         [BZ #15062]
3812         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
3813         parts of result separately when argument is not close to line from
3814         -i to i and one part of argument is small.
3815         * math/k_casinhf.c (__kernel_casinhf): Likewise.
3816         * math/k_casinhl.c (__kernel_casinhl): Likewise.
3817         * math/libm-test.inc (cacos_test): Add more tests.
3818         (casin_test): Likewise.
3819         (casinh_test): Likewise.
3820         * sysdeps/i386/fpu/libm-test-ulps: Update.
3821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3822
3823 2013-01-31  David S. Miller  <davem@davemloft.net>
3824
3825         * po/de.po: Update from translation team.
3826
3827 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3828
3829         * time/tzfile.c: Include stdint.h for SIZE_MAX.
3830
3831 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
3832
3833         * configure.in (_AC_PROG_CC_C89): New definition.
3834         * configure: Regenerate.
3835
3836         * configure.in (AC_PROG_CPP): New definition.
3837         * configure: Regenerate.
3838
3839 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3840
3841         * debug/tst-backtrace.h: New file.
3842         * debug/tst-backtrace2.c: Include tst-backtrace.h.
3843         (ret): Remove variable.
3844         (x): Likewise.
3845         (FAIL): Remove macro.
3846         (NO_INLINE): Likewise.
3847         (fn1): Use match function instead of strstr.
3848         * debug/tst-backtrace3.c: Include tst-backtrace.h.
3849         (ret): Remove variable.
3850         (x): Likewise.
3851         (FAIL): Remove macro.
3852         (NO_INLINE): Likewise.
3853         (fn): Use match function instead of strstr.
3854         * debug/tst-backtrace4.c: Include tst-backtrace.h.
3855         (ret): Remove variable.
3856         (x): Likewise.
3857         (FAIL): Remove macro.
3858         (NO_INLINE): Likewise.
3859         (handle_signal): Use match function instead of strstr.
3860         * debug/tst-backtrace5.c: Include tst-backtrace.h.
3861         (ret): Remove variable.
3862         (x): Likewise.
3863         (FAIL): Remove macro.
3864         (NO_INLINE): Likewise.
3865         (handle_signal): Use match function instead of strstr.
3866
3867 2013-01-23  Roland McGrath  <roland@hack.frob.com>
3868
3869         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
3870
3871 2013-01-23  David S. Miller  <davem@davemloft.net>
3872
3873         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3874         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
3875         argument of CAS if possible.
3876         * sysdeps/sparc/sparc64/bits/atomic.h
3877         (__arch_compare_and_exchange_val_32_acq): Likewise.
3878         (__arch_compare_and_exchange_val_64_acq): Likewise.
3879
3880 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
3881
3882         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
3883         * sysdeps/posix/ulimit.c: ... this.
3884         Include <limits.h>.
3885         * sysdeps/unix/bsd/ulimit.c: Remove file.
3886
3887 2013-01-23  Adam Conrad  <adconrad@0c3.net>
3888
3889         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
3890         (LDFLAGS-tst-array5): Likewise.
3891
3892 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3893
3894         [BZ #15036]
3895         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
3896         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
3897         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
3898         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
3899
3900 2013-01-21  David S. Miller  <davem@davemloft.net>
3901
3902         * sysdeps/sparc/backtrace.c: New file.
3903         * sysdeps/sparc/sparc32/backtrace.h: New file.
3904         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
3905         * sysdeps/sparc/sparc64/backtrace.h: New file.
3906         * sysdeps/sparc/sparc64/backtrace.c: Delete.
3907         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
3908         -funwind-tables.
3909
3910 2013-01-21  Andreas Schwab  <schwab@suse.de>
3911
3912         [BZ #15020]
3913         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
3914         closed its stdout.
3915
3916 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
3917
3918         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
3919         "mpa2.h".
3920         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3921
3922 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
3923             Mark Mitchell  <mark@codesourcery.com>
3924             Tom de Vries  <tom@codesourcery.com>
3925             Paul Pluzhnikov  <ppluzhnikov@google.com>
3926
3927         * debug/tst-backtrace2.c: New file.
3928         * debug/tst-backtrace3.c: Likewise.
3929         * debug/tst-backtrace4.c: Likewise.
3930         * debug/tst-backtrace5.c: Likewise.
3931         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
3932         (CFLAGS-tst-backtrace3.c): Likewise.
3933         (CFLAGS-tst-backtrace4.c): Likewise.
3934         (CFLAGS-tst-backtrace5.c): Likewise.
3935         (LDFLAGS-tst-backtrace2): Likewise.
3936         (LDFLAGS-tst-backtrace3): Likewise.
3937         (LDFLAGS-tst-backtrace4): Likewise.
3938         (LDFLAGS-tst-backtrace5): Likewise.
3939         (tests): Add new tests tst-backtrace2, tst-backtrace3,
3940         tst-backtrace4 and tst-backtrace5.
3941
3942 2013-01-18  Anton Blanchard  <anton@samba.org>
3943             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3944
3945         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
3946         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
3947         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
3948         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
3949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3950         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
3951         "+r" and remove output regs list as redundant.  Add explicit inline
3952         asm to specify register of return val to work around compiler codegen
3953         bug.  Remove (int) cast on return value.  Add return type parameter to
3954         use in macro so that this macro does not truncate return value for
3955         64-bit values.
3956         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
3957         pass to INTERNAL_VSYSCALL_NCS.
3958         (INLINE_VSYSCALL): Add 'long int' as return type to
3959         INTERNAL_VSYSCALL_NCS macro invocation.
3960         (INTERNAL_VSYSCALL): Add 'long int' as return type to
3961         INTERNAL_VSYSCALL_NCS macro invocation.
3962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3963
3964 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3965
3966         [BZ #14496]
3967         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
3968         Fix application of SIMD FP exception mask.
3969
3970         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
3971         mp_no from a power of two.
3972         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
3973         __mpexp_twomm1.  Use __pow_mp.
3974
3975         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
3976         multiplication.
3977
3978 2013-01-17  David S. Miller  <davem@davemloft.net>
3979
3980         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3981
3982 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3983
3984         [BZ #15023]
3985         * include/complex.h: Condition contents on [!_COMPLEX_H].
3986         (__kernel_casinhf): New prototype.
3987         (__kernel_casinh): Likewise.
3988         (__kernel_casinhl): Likewise.
3989         * math/Makefile (libm_calls): Add k_casinh.
3990         * math/k_casinh.c: New file.
3991         * math/k_casinhf.c: Likewise.
3992         * math/k_casinhl.c: Likewise.
3993         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
3994         finite nonzero arguments.
3995         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
3996         finite nonzero arguments.
3997         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
3998         finite nonzero arguments.
3999         * math/s_casinh.c: Do not include <float.h>.
4000         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4001         * math/s_casinhf.c: Do not include <float.h>.
4002         (__casinhf): Move code for finite nonzero arguments to
4003         k_casinhf.c.
4004         * math/s_casinhl.c: Do not include <float.h>.
4005         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4006         redefine.
4007         (__casinhl): Move code for finite nonzero arguments to
4008         k_casinhl.c.
4009         * math/libm-test.inc (cacos_test): Add more tests.
4010         * sysdeps/i386/fpu/libm-test-ulps: Update.
4011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4012
4013 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4014
4015         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4016         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4017         [!HAVE_MREMAP]: Remove [defined linux] case.
4018         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4019
4020 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4021
4022         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4023
4024 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4025
4026         * elf/elf.h (R_386_SIZE32): New relocation.
4027         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4028         R_386_SIZE32.
4029         (elf_machine_rela): Likewise.
4030         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4031         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4032
4033 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4034
4035         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4036         (FP_FAST_FMA): Do not define.
4037         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4038         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4039         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4040         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4041         !_SOFT_FLOAT]: Likewise.
4042         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4043         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4044         value.
4045         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4046         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4047         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4048         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4049         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4050         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4051         file.
4052
4053 2013-01-16  Andreas Schwab  <schwab@suse.de>
4054
4055         [BZ #14327]
4056         * include/stdlib.h (__mktemp): Add declaration.
4057         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4058         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4059
4060 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4061
4062         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4063         definitions.
4064         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4065         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4066         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4067         definitions here.
4068         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4069         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4070         definitions.
4071         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4072         and ONE.
4073         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4074         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4075         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4076         definitions.
4077         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4078         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4079         definitions.
4080         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4081
4082         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4083
4084 2013-01-15  David S. Miller  <davem@davemloft.net>
4085
4086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4087         trunc{,f} to libm-sysdep_routes.
4088         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4090         file.
4091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4093         file.
4094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4095         file.
4096         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4097         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4098         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4099         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4100         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4101         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4102         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4103         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4104
4105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4106         nearbyint{,f} to libm-sysdep_routes.
4107         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4109         New file.
4110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4111         file.
4112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4113         New file.
4114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4115         file.
4116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4118         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4119         file.
4120         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4121         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4122         file.
4123         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4124         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4125         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4126
4127         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4128         libc_feholdexcept and libc_fesetenv.
4129
4130 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4131
4132         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4133
4134 2013-01-14  David S. Miller  <davem@davemloft.net>
4135
4136         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4137         (SPARC_ASM_VIS2_IFUNC): Likewise.
4138         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4140         use of 'siam' instruction.
4141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4142         Likewise.
4143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4144         Likewise.
4145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4146         Likewise.
4147         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4148         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4149         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4150         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4152         file.
4153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4154         file.
4155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4156         file.
4157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4158         file.
4159         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4160         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4161         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4162         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4164         new VIS2 routines.
4165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4168         Likewise.
4169         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4170         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4171         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4172         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4174         routines to libm-sysdep_routines.
4175         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4176
4177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4178         fdim/fdimf to libm-sysdep_routines.
4179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4180         file.
4181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4183         file.
4184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4187         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4188         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4189         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4190         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4191
4192 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4193
4194         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4195         to optimize copies.
4196
4197         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4198         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4199         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4200
4201         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4202         local variable MPTWO.
4203         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4204         Likewise.
4205
4206 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4207
4208         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4209         GLOB_NOESCAPE.
4210
4211 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4212
4213         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4214
4215 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4216
4217         * manual/pattern.texi (glob_t): Document gl_flags.
4218         (glob64_t): Likewise.
4219
4220 2013-01-11  David S. Miller  <davem@davemloft.net>
4221
4222         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4223         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4224         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4225         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4226         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4227         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4228         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4229         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4230         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4231         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4232         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4233         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4234         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4235
4236         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4237         sparc V9 rather than using V8 code.
4238         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4239         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4240
4241         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4242         Move to...
4243         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4244         Here.
4245
4246 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4247
4248         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4249         not in the main loop.
4250         * configure: Regenerated.
4251
4252 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4253
4254         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4255         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4256         to just #else.
4257         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4258         [!__GLIBC_HAVE_LONG_LONG] case.
4259         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4260         condition to just #else.
4261         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4262         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4263         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4264         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4265         unconditional.
4266         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4267         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4268         #elif condition to just #else.
4269         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4270         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4271         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4272         #elif condition to just #else.
4273
4274 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4275
4276         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4277         (EF_MIPS_ARCH_64): Fix value.
4278         (EF_MIPS_ARCH_32R2): New.
4279         (EF_MIPS_ARCH_64R2): New.
4280
4281 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4282
4283         * Makeconfig (+link-pie-before-libc): New.
4284         (+link-pie-after-libc): Likewise.
4285         (+link-pie-tests): Likewise.
4286         (+link-pie): Rewritten.
4287         (link-before-libc): Remove $(config-LDFLAGS).
4288         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4289         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4290         (config-LDFLAGS): Renamed to ...
4291         (rtld-LDFLAGS): This.
4292         (rtld-tests-LDFLAGS): New macro.
4293         (link-libc-rpath-link): Likewise.
4294         (link-libc-tests-rpath-link): Likewise.
4295         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4296         (link-libc): Prepand $(link-libc-rpath-link).
4297         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4298         (test-program-prefix): New macro.
4299         (test-via-rtld-prefix): Likewise.
4300         (test-program-cmd): Likewise.
4301         (host-test-program-cmd): Likewise.
4302         * Makefile ($(common-objpfx)testrun.sh): Replace
4303         $(run-program-prefix) with $(test-program-prefix).
4304         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4305         $(rtld-LDFLAGS).
4306         ($(common-objpfx)shlib.lds): Likewise.
4307         (build-module-helper): Likewise.
4308         ($(common-objpfx)format.lds): Likewise.
4309         * Rules (binaries-pie-tests): New.
4310         (binaries-pie-notests): Likewise.
4311         (binaries-pie): Rewritten.
4312         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4313         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4314         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4315         (make-test-out): Replace $(host-built-program-cmd) with
4316         $(host-test-program-cmd).
4317         * config.make.in (build-hardcoded-path-in-tests): New variable.
4318         * configure.in (--enable-hardcoded-path-in-tests): New configure
4319         option.
4320         (hardcoded_path_in_tests): New AC_SUBST.
4321         * configure: Regenerated.
4322         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4323         $(built-program-cmd) with $(test-program-cmd).
4324         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4325         (test_program_cmd): This.
4326         * elf/Makefile ($(objpfx)order.out): Run test with
4327         $(test-program-prefix).
4328         ($(objpfx)order2.out): Likewise.
4329         ($(objpfx)tst-initorder.out): Likewise.
4330         ($(objpfx)tst-initorder2.out): Likewise.
4331         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4332         $(test-program-cmd).
4333         ($(objpfx)tst-array1-static.out): Likewise.
4334         ($(objpfx)tst-array2.out): Likewise.
4335         ($(objpfx)tst-array3.out): Likewise.
4336         ($(objpfx)tst-array4.out): Likewise.
4337         ($(objpfx)tst-array5.out): Likewise.
4338         ($(objpfx)tst-array5-static.out): Likewise.
4339         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
4340         $(test-program-cmd).
4341         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
4342         $(run-program-prefix) with $(test-program-prefix).
4343         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
4344         (test_program_prefix): This.
4345         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
4346         $(run-program-prefix) with $(test-program-prefix).
4347         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
4348         (test_program_prefix): This.
4349         * iconvdata/tst-tables.sh: Likewise.
4350         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
4351         $(run-program-prefix) with $(test-program-prefix).
4352         ($(objpfx)tst-translit.out): Likewise.
4353         ($(objpfx)tst-gettext2.out): Likewise.
4354         ($(objpfx)tst-gettext4.out): Likewise.
4355         ($(objpfx)tst-gettext6.out): Likewise.
4356         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
4357         (test_program_prefix): This.
4358         * intl/tst-gettext2.sh: Likewise.
4359         * intl/tst-gettext4.sh  Likewise.
4360         * intl/tst-gettext6.sh: Likewise.
4361         * intl/tst-translit.sh: Likewise.
4362         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
4363         with $(test-program-cmd).
4364         * libio/Makefile ($(objpfx)test-freopen.out): Replace
4365         $(run-program-prefix) with $(test-program-prefix).
4366         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
4367         (test_program_prefix): This.
4368         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
4369         $(run-program-prefix) with $(test-program-prefix).
4370         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
4371         (test_program_prefix): This.
4372         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
4373         * posix/Makefile ($(objpfx)globtest.out): Replace
4374         $(run-via-rtld-prefix) and $(test-wrapper) with
4375         $(test-program-prefix) and $(test-via-rtld-prefix).
4376         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
4377         $(test-program-prefix).
4378         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
4379         $(host-test-program-cmd).
4380         (tst-spawn-ARGS): Likewise.
4381         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
4382         $(test-program-prefix).
4383         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
4384         (test_via_rtld_prefix): This.
4385         (test_wrapper): Renamed to ...
4386         (test_program_prefix): This.
4387         (run_program_prefix): Replaced by test_program_prefix.
4388         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
4389         (test_program_prefix): This.
4390         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
4391         with $(host-test-program-cmd).
4392         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
4393         $(run-program-prefix) with $(test-program-prefix).
4394         ($(objpfx)tst-printf.out): Likewise.
4395         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
4396         $(test-program-cmd).
4397         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
4398         (test_program_prefix): This.
4399         * stdio-common/tst-unbputc.sh: Likewise.
4400         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
4401         $(run-program-prefix) with $(test-program-prefix).
4402         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
4403         (test_program_prefix): This.
4404         * string/Makefile ($(objpfx)tst-svc.out):  Replace
4405         $(built-program-cmd) with $(test-program-cmd).
4406
4407 2013-01-11  Andreas Jaeger  <aj@suse.de>
4408
4409         [BZ #15003]
4410         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
4411         value. Sync with Linux 3.7.
4412
4413 2013-01-10  David S. Miller  <davem@davemloft.net>
4414
4415         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
4416         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4417         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4418
4419 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4420
4421         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
4422         never set.
4423         * configure: Regenerated.
4424
4425 2013-01-10  David S. Miller  <davem@davemloft.net>
4426
4427         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4428         sparc V9 rather than using V8 code.
4429         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4430         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4431
4432 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4433
4434         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
4435         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
4436         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
4437         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
4438         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
4439         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
4440         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
4441         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
4442         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
4443         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
4444         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
4445         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
4446         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
4447         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
4448         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
4449         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
4450         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
4451         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
4452         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
4453         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
4454         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
4455         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
4456         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
4457         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
4458         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
4459         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
4460         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
4461
4462 2013-01-10  David S. Miller  <davem@davemloft.net>
4463
4464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4465
4466 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4467
4468         * posix/Makefile (tests-static): New variable.
4469         (tests): Add $(tests-static).
4470         (tst-exec-static-ARGS): New variable.
4471         (tst-spawn-static-ARGS): Likewise.
4472         * posix/tst-exec-static.c: New file.
4473         * posix/tst-spawn-static.c: Likewise.
4474         * posix/tst-exec.c: Support run directly.
4475         * posix/tst-spawn.c: Likewise.
4476
4477 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
4478
4479         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
4480         long.
4481         * math/bits/mathcalls.h (llrint): Likewise.
4482         (llround): Likewise.
4483         * stdlib/stdlib.h (struct drand48_data): Likewise.
4484         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
4485         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
4486         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
4487         Likewise.
4488         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
4489         Likewise.
4490         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
4491         (elf_greg_t): Likewise.
4492         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
4493         (__jmp_buf): Likewise.
4494         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
4495         definitions.
4496         (llrint): Likewise, for all definitions.
4497         (llrintl): Likewise.
4498
4499         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
4500         Remove [__GNUC__] condition.
4501         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
4502         condition to just [__USE_ISOC99].
4503         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
4504
4505 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4506
4507         [BZ #14200]
4508         * sysdeps/unix/sysv/linux/x86/bits/environments.h
4509         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
4510         defined.
4511         (_POSIX_V6_ILP32_OFF32): Likewise.
4512         (_XBS5_ILP32_OFF32): Likewise.
4513         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
4514         (__ILP32_OFFBIG_LDFLAGS): Likewise.
4515
4516 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4517
4518         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
4519
4520         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
4521         doubles __mpexp_twomm1.  Adjust usage.
4522         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
4523         Remove.
4524
4525 2013-01-10  Andreas Schwab  <schwab@suse.de>
4526
4527         [BZ #14964]
4528         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
4529         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
4530
4531 2013-01-09  David S. Miller  <davem@davemloft.net>
4532
4533         [BZ #15003]
4534         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
4535         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
4536         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
4537         TCP_FASTOPEN): Define.
4538         (tcp_repair_opt): New structure.
4539         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
4540         enum values.
4541         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
4542         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
4543         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
4544         (tcp_cookie_transactions): New structure.
4545
4546 2013-01-09  Anton Blanchard  <anton@samba.org>
4547
4548         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
4549         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
4550         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
4551         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
4552
4553 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
4554
4555         * include/features.h (__USE_ANSI): Remove.
4556
4557 2013-01-09  Roland McGrath  <roland@hack.frob.com>
4558
4559         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
4560
4561         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
4562
4563 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
4564
4565         * sysdeps/s390/fpu/libm-test-ulps: Update.
4566
4567         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4568
4569         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
4570         (__acr): Likewise.
4571         (__cpy): Likewise.
4572         (norm): Likewise.
4573         (denorm): Likewise.
4574         (__mp_dbl): Likewise.
4575         (__dbl_mp): Likewise.
4576         (add_magnitudes): Likewise.
4577         (sub_magnitudes): Likewise.
4578         (__add): Likewise.
4579         (__sub): Likewise.
4580         (__mul): Likewise.
4581         (__inv): Likewise.
4582         (__dvd): Likewise.
4583         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
4584         (__acr): Likewise.
4585         (__cpy): Likewise.
4586         (norm): Likewise.
4587         (denorm): Likewise.
4588         (__mp_dbl): Likewise.
4589         (__dbl_mp): Likewise.
4590         (add_magnitudes): Likewise.
4591         (sub_magnitudes): Likewise.
4592         (__add): Likewise.
4593         (__sub): Likewise.
4594         (__mul): Likewise.
4595         (__inv): Likewise.
4596         (__dvd): Likewise.
4597         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
4598         (__acr): Likewise.
4599         (__cpy): Likewise.
4600         (norm): Likewise.
4601         (denorm): Likewise.
4602         (__mp_dbl): Likewise.
4603         (__dbl_mp): Likewise.
4604         (add_magnitudes): Likewise.
4605         (sub_magnitudes): Likewise.
4606         (__add): Likewise.
4607         (__sub): Likewise.
4608         (__mul): Likewise.
4609         (__inv): Likewise.
4610         (__dvd): Likewise.
4611
4612 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
4613
4614         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
4615         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
4616         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
4617         2 && __USE_EXTERN_INLINES]: Likewise.
4618
4619 2013-01-08  Andreas Jaeger  <aj@suse.de>
4620
4621         [BZ# 14985]
4622         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
4623         Remove.
4624         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4625         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4626
4627 2013-01-07  Anton Blanchard  <anton@samba.org>
4628
4629         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
4630         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4631         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
4632         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4633         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
4634         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4635         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
4636         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4637         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4638         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4639         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4640         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4641         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4642         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4643         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4644         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4645         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4646         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4647         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4648         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
4649         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4650         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
4651         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4652         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4653         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
4654         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
4655         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4656         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
4657         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
4658         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4659         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4660         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4661         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4662         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4663         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4664         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4665         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4666         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4667         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
4668         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
4669         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
4670         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4671         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4672
4673 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
4674
4675         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
4676         (__MALLOC_PMT): Likewise.
4677         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
4678         [__GNUC__], only on [_LIBC].
4679         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4680         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
4681         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4682         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
4683         forward declaration.
4684         (realloc_hook_ini): Likewise.
4685         (memalign_hook_ini): Likewise.
4686         (__libc_memalign): Do not use __MALLOC_PMT in variable
4687         declaration.
4688         (__libc_valloc): Likewise.
4689         (__libc_pvalloc): Likewise.
4690         (__libc_calloc): Likewise.
4691         (__posix_memalign): Likewise.
4692
4693         [BZ #14996]
4694         * math/s_casinh.c: Include <float.h>.
4695         (__casinh): Do not do computation with squaring and square root
4696         for large arguments.
4697         * math/s_casinhf.c: Include <float.h>.
4698         (__casinhf): Do not do computation with squaring and square root
4699         for large arguments.
4700         * math/s_casinhl.c: Include <float.h>.
4701         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
4702         (__casinhl): Do not do computation with squaring and square root
4703         for large arguments.
4704         * math/libm-test.inc (casin_test): Add more tests.
4705         (casinh_test): Likewise.
4706         * sysdeps/i386/fpu/libm-test-ulps: Update.
4707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4708
4709 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
4710
4711         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
4712         (__x86_64_raw_data_cache_size): Likewise.
4713         (__x86_64_data_cache_size_half): Likewise.
4714         (__x86_64_raw_data_cache_size_half): Likewise.
4715         (__x86_64_shared_cache_size): Likewise.
4716         (__x86_64_raw_shared_cache_size): Likewise.
4717         (__x86_64_shared_cache_size_half): Likewise.
4718         (__x86_64_raw_shared_cache_size_half): Likewise.
4719         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
4720         to ...
4721         (__x86_data_cache_size): This.
4722         (__x86_64_raw_data_cache_size): Renamed to ...
4723         (__x86_raw_data_cache_size): This.
4724         (__x86_64_data_cache_size_half): Renamed to ...
4725         (__x86_data_cache_size_half): This.
4726         (__x86_64_raw_data_cache_size_half): Renamed to ...
4727         (__x86_raw_data_cache_size_half): This.
4728         (__x86_64_shared_cache_size): Renamed to ...
4729         (__x86_shared_cache_size): This.
4730         (__x86_64_raw_shared_cache_size): Renamed to ...
4731         (__x86_raw_shared_cache_size): This.
4732         (__x86_64_shared_cache_size_half): Renamed to ...
4733         (__x86_shared_cache_size_half): This.
4734         (__x86_64_raw_shared_cache_size_half): Renamed to ...
4735         (__x86_raw_shared_cache_size_half): This.
4736         * sysdeps/x86_64/memcpy.S: Updated.
4737         * sysdeps/x86_64/memset.S: Likewise.
4738         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4739         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4740         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4741
4742 2013-01-04  David S. Miller  <davem@davemloft.net>
4743
4744         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4745
4746 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
4747
4748         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
4749         1 to avoid redefinition warning.
4750         (__USE_GNU): Don't define.
4751         (init_signaling_nan): Protoize.
4752
4753         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4754
4755 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4756
4757         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
4758         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
4759         (__cpymn): Likewise.
4760         (norm): Remove commented code.
4761         (denorm): Likewise.
4762         (__mp_dbl): Likewise.
4763         (__inv): Likewise.
4764         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
4765         (__cpymn): Likewise.
4766         (norm): Remove commented code.
4767         (denorm): Likewise.
4768         (__mp_dbl): Likewise.
4769         (__inv): Likewise.
4770
4771         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
4772         mp_no value for 1.0 and 2.0.
4773         (norm): Use RADIXI instead of radixi.d.
4774         (denorm): Likewise.
4775         (__mul): Use 0.0 instead of zero.d.
4776         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
4777         mp_no value for 1.0 and 2.0.
4778         (norm): Use RADIXI instead of radixi.d.
4779         (denorm): Likewise.
4780         (__mul): Use 0.0 instead of zero.d.
4781
4782 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
4783
4784         [BZ #14994]
4785         * math/s_casinh.c (__casinh): Reduce finite argument to first
4786         quadrant then set signs of results at the end.
4787         * math/s_casinhf.c (__casinhf): Likewise.
4788         * math/s_casinhl.c (__casinhl): Likewise.
4789         * math/libm-test.inc (casin_test): Add more tests.
4790         (casinh_test): Likewise.
4791         * sysdeps/i386/fpu/libm-test-ulps: Update.
4792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4793
4794 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4795
4796         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
4797
4798         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
4799
4800         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
4801         declarations.
4802         (denorm): Likewise.
4803         (__mp_dbl): Likewise.
4804         (__inv): Likewise.
4805
4806         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
4807         and adjust the header comment.
4808
4809         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
4810         variable name from declaration.
4811
4812 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
4813
4814         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4815         Initialize COMMON_CPUID_INDEX_7 element.
4816         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
4817         (CPUID_RTM): Likewise.
4818         (HAS_RTM): Likewise.
4819         (COMMON_CPUID_INDEX_7): New enum.
4820
4821 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
4822
4823         [BZ #14981]
4824         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
4825         size is zero, record memory as freed.
4826
4827 2013-01-03  Andreas Jaeger  <aj@suse.de>
4828
4829         * po/ia.po: Add new Interlingua translation.
4830
4831 2012-01-03  Allan McRae  <allan@archlinux.org>
4832
4833         * locale/programs/localedef.c: Fix description of '--posix' flag.
4834
4835 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
4836
4837         * NEWS: Update dates in second copyright notice.
4838         * README: Update copyright dates in example.
4839         * manual/libc.texinfo: Update copyright dates.
4840         * scripts/test-installation.pl: Update copyright date in --version
4841         output.
4842
4843         * hurd/ctty-input.c: Fix copyright notice formatting.
4844         * hurd/ctty-output.c: Likewise.
4845         * hurd/dtable.c: Likewise.
4846         * hurd/hurd-raise.c: Likewise.
4847         * hurd/hurdprio.c: Likewise.
4848         * hurd/msgportdemux.c: Likewise.
4849         * misc/sys/file.h: Likewise.
4850         * misc/sys/ioctl.h: Likewise.
4851         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
4852         * sysdeps/mach/hurd/chdir.c: Likewise.
4853         * sysdeps/mach/hurd/fchdir.c: Likewise.
4854         * sysdeps/mach/hurd/rename.c: Likewise.
4855         * sysdeps/mach/hurd/rmdir.c: Likewise.
4856         * sysdeps/mach/hurd/seekdir.c: Likewise.
4857         * sysdeps/mach/hurd/setsid.c: Likewise.
4858         * sysdeps/posix/wait3.c: Likewise.
4859
4860         * All files with FSF copyright notices: Update copyright dates
4861         using scripts/update-copyrights.
4862         * intl/plural.c: Regenerated.
4863         * locale/programs/charmap-kw.h: Likewise.
4864         * locale/programs/locfile-kw.h: Likewise.
4865
4866 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
4867
4868         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
4869         four values.
4870
4871         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
4872         calculation loop and add branch prediction.
4873
4874         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
4875         check access beyond bounds of m1np.
4876
4877         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4878         MPTWO.
4879         (__inv): Remove local variable MPTWO to use the global
4880         constant.
4881         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
4882         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4883         variable MPTWO.
4884         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
4885         MP3HALFS static const.
4886
4887 2013-01-01  David S. Miller  <davem@davemloft.net>
4888
4889         * po/ca.po: Update from translation team.
4890
4891 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
4892
4893         * scripts/update-copyrights: New file.
4894         * Makeconfig: Reformat copyright notice.
4895         * ctype/ctype.h: Likewise.
4896         * debug/swprintf_chk.c: Likewise.
4897         * elf/dl-cache.c: Likewise.
4898         * elf/dl-debug.c: Likewise.
4899         * elf/dl-object.c: Likewise.
4900         * grp/initgroups.c: Likewise.
4901         * hurd/Makefile: Likewise.
4902         * hurd/hurd/signal.h: Likewise.
4903         * hurd/hurdfault.c: Likewise.
4904         * hurd/hurdioctl.c: Likewise.
4905         * hurd/hurdlookup.c: Likewise.
4906         * hurd/intr-msg.c: Likewise.
4907         * iconv/gconv_open.c: Likewise.
4908         * libio/swprintf.c: Likewise.
4909         * locale/lc-ctype.c: Likewise.
4910         * locale/nl_langinfo.c: Likewise.
4911         * mach/Machrules: Likewise.
4912         * mach/Makefile: Likewise.
4913         * malloc/obstack.h: Likewise.
4914         * manual/Makefile: Likewise.
4915         * manual/tsort.awk: Likewise.
4916         * misc/bits/stab.def: Likewise.
4917         * nis/nis_print_group_entry.c: Likewise.
4918         * nis/nis_table.c: Likewise.
4919         * nis/nss_compat/compat-pwd.c: Likewise.
4920         * nis/nss_compat/compat-spwd.c: Likewise.
4921         * po/Makefile: Likewise.
4922         * posix/fnmatch.c: Likewise.
4923         * posix/regex.h: Likewise.
4924         * resolv/Makefile: Likewise.
4925         * resolv/nss_dns/dns-network.c: Likewise.
4926         * resolv/res_hconf.c: Likewise.
4927         * scripts/gen-sorted.awk: Likewise.
4928         * soft-fp/soft-fp.h: Likewise.
4929         * stdio-common/printf.h: Likewise.
4930         * stdlib/monetary.h: Likewise.
4931         * stdlib/random.c: Likewise.
4932         * stdlib/random_r.c: Likewise.
4933         * sysdeps/generic/Makefile: Likewise.
4934         * sysdeps/gnu/Makefile: Likewise.
4935         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4936         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4937         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4938         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4939         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4940         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4941         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4942         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4943         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4944         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4945         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4946         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4947         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4948         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4949         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4950         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4951         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4952         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4953         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4954         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4955         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4956         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4957         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4958         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
4959         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
4960         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
4961         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4962         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
4963         * sysdeps/mach/hurd/errnos.awk: Likewise.
4964         * sysdeps/mach/hurd/fork.c: Likewise.
4965         * sysdeps/mach/hurd/getcwd.c: Likewise.
4966         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
4967         * sysdeps/mach/hurd/mmap.c: Likewise.
4968         * sysdeps/mach/hurd/utimes.c: Likewise.
4969         * sysdeps/mach/hurd/xmknod.c: Likewise.
4970         * sysdeps/posix/profil.c: Likewise.
4971         * sysdeps/posix/readdir_r.c: Likewise.
4972         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4973         * sysdeps/powerpc/bits/setjmp.h: Likewise.
4974         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
4975         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4976         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4977         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4978         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4979         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4980         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4981         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4982         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4983         * sysdeps/pthread/lio_listio.c: Likewise.
4984         * sysdeps/sparc/dl-procinfo.h: Likewise.
4985         * sysdeps/unix/i386/sysdep.S: Likewise.
4986         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4987         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
4988         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4989         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4991         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4992         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4993         * sysdeps/unix/sysv/linux/speed.c: Likewise.
4994         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
4995         * sysdeps/wordsize-32/divdi3.c: Likewise.
4996         * time/sys/time.h: Likewise.
4997         * wcsmbs/Makefile: Likewise.
4998
4999 2013-01-01  David S. Miller  <davem@davemloft.net>
5000
5001         * po/fr.po: Update from translation team.
5002
5003         * catgets/gencat.c: Update copyright year.
5004         * csu/version.c: Likewise.
5005         * debug/catchsegv.sh: Likewise.
5006         * debug/pcprofiledump.c: Likewise.
5007         * debug/xtrace.sh: Likewise.
5008         * elf/ldconfig.c: Likewise.
5009         * elf/ldd.bash.in: Likewise.
5010         * elf/pldd.c: Likewise.
5011         * elf/sotruss.ksh: Likewise.
5012         * elf/sprof.c: Likewise.
5013         * iconv/iconv_prog.c: Likewise.
5014         * iconv/iconvconfig.c: Likewise.
5015         * locale/programs/locale.c: Likewise.
5016         * locale/programs/localedef.c: Likewise.
5017         * login/programs/pt_chown.c: Likewise.
5018         * malloc/memusage.sh: Likewise.
5019         * malloc/memusagestat.c: Likewise.
5020         * malloc/mtrace.pl: Likewise.
5021         * nscd/nscd.c: Likewise.
5022         * nss/getent.c: Likewise.
5023         * nss/makedb.c: Likewise.
5024         * posix/getconf.c: Likewise.
5025
5026 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5027
5028         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5029         numbers.
5030
5031 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5032
5033         * math/bits/mathcalls.h (modf): Use __nonnull.
5034
5035 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5036
5037         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5038         (split): Use macro CN instead of the bare value.
5039         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5040         could be used.
5041         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5042         instead of the bare value.
5043         (power1): Likewise.
5044
5045 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5046
5047         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5048         __ATAN_TWOM.
5049         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5050
5051         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5052         their values.
5053         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5054         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5055         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5056         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5057
5058 2012-12-28  Andreas Jaeger  <aj@suse.de>
5059
5060         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5061         values are from Linux 3.7.
5062
5063         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5064         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5065
5066 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5067
5068         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5069         TRUE case.
5070
5071         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5072         (norm): Likewise.
5073         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5074         variables with preprocessor constants.
5075         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5076         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5077         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5078
5079 2012-12-27  Bruno Haible  <bruno@clisp.org>
5080
5081         [BZ #14317]
5082         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5083         only if needed.
5084
5085 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5086
5087         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5088         and use variable directly.
5089         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5090
5091         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5092         MPONE.
5093         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5094         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5095         variable MPONE.
5096         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5097         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5098         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5099         include directive.  Remove local variable MPONE.
5100         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5101         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5102         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5103
5104 2012-12-25  David S. Miller  <davem@davemloft.net>
5105
5106         * version.h (RELEASE): Set to "development".
5107         (VERSION): Set to "2.17.90".
5108         * NEWS: Add 2.18 section.
5109
5110 2012-12-21  David S. Miller  <davem@davemloft.net>
5111
5112         * po/hr.po: Update from translation team.
5113
5114 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5115
5116         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5117
5118 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5119
5120         * NEWS:  Mention new memcpy for MIPS.
5121
5122 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5123
5124         * manual/contrib.texi (Contributors): Spelling correction.
5125
5126 2012-12-15  David S. Miller  <davem@davemloft.net>
5127
5128         * po/ru.po: Update from translation team.
5129
5130 2012-12-13  David S. Miller  <davem@davemloft.net>
5131
5132         * NEWS: Mention IFUNC testsuite enhancements.
5133
5134         * po/pl.po: Update from translation team.
5135         * po/bg.po: Likewise.
5136
5137         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5138         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5139
5140 2012-12-11  David S. Miller  <davem@davemloft.net>
5141
5142         * po/sv.po: Update from translation team.
5143
5144         * po/vi.po: Update from translation team.
5145
5146         * po/cs.po: Update from translation team.
5147
5148         * po/de.po: Update from translation team.
5149         * po/eo.po: Likewise.
5150         * po/nl.po: Likewise.
5151
5152 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5153
5154         [BZ #14246]
5155         * manual/argp.texi (Argp Helper Functions): Move node to follow
5156         Argp Parsing State.
5157
5158         [BZ #14872]
5159         * manual/conf.texi (Limits on File System Capacity): Mention if
5160         terminating null is included in the max size.
5161
5162 2012-12-10  Andreas Jaeger  <aj@suse.de>
5163
5164         * po/cs.po: Update from translation team.
5165
5166 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5167
5168         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5169         void pointer and cast to uintptr_t.
5170         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5171         path.
5172         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5173         * sysdeps/s390/s390-64/memset.S: Likewise.
5174
5175 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5176
5177         [BZ #14833]
5178         * menual/message.texi (Message Translation): Fix typos.
5179         (Helper programs for gettext): Likewise.
5180
5181 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5182
5183         [BZ #14898]
5184         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5185         Change to -1.
5186
5187 2012-12-07  David S. Miller  <davem@davemloft.net>
5188
5189         * po/libc.pot: Update.
5190
5191 2012-12-07  Richard Henderson  <rth@redhat.com>
5192
5193         [BZ #10114]
5194         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5195         normal/normal case to before the switch.
5196         (_FP_DIV): Likewise.
5197
5198 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5199             Mike Frysinger  <vapier@gentoo.org>
5200
5201         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5202         check for __NR_fadvise64_64.
5203
5204 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5205
5206         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5207         0, not just to plain "0" as a statement.
5208         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5209         with cw.
5210
5211 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5212
5213         * NEWS: Use sourceware.org in Bugzilla URL.
5214
5215 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5216
5217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5218         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5219
5220         * stdio-common/tst-put-error.c (do_test): Add newline to the
5221         padded test to ensure flush.
5222
5223 2012-12-05  Jeff Law  <law@redhat.com>
5224
5225         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5226
5227 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5228
5229         * README: Don't refer to ports add-on as distributed separately.
5230         Mention AArch64 in list of systems supported in the ports add-on.
5231
5232         * LICENSES: Add more non-FSF copyright and license notices.
5233
5234         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5235         ((unused)).
5236
5237         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5238
5239         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5240         10000 as width of padded output.
5241
5242 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5243
5244         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5245
5246         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5247         variable LX with __attribute__ ((unused)).
5248         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5249         Likewise.
5250         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5251         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5252         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5253         with __attribute__ ((unused)).
5254
5255 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5256
5257         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5258
5259 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5260
5261         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5262         (CFLAGS-nldbl-acos.c): New variable.
5263         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5264         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5265         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5266         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5267         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5268         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5269         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5270         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5271         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5272         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5273         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5274         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5275         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5276         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5277         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5278         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5279         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5280         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5281         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5282         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5283         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5284         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5285         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5286         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5287         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5288         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5289         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5290         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5291         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5292         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5293         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5294         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5295         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5296         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5297         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5298         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5299         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5300         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5301         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5302         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5303         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5304         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5305         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5306         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5307         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5308         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5309         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5310         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5311         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5312         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5313         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5314         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5315         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5316         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5317         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5318         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5319         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5320         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5321         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5322         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5323         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5324         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5325         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5326         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5327         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5328         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5329         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5330         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5331         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5332         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5333         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5334         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
5335         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
5336         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
5337         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
5338         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
5339         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
5340         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
5341         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
5342         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
5343         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
5344         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
5345         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
5346         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
5347         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
5348         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
5349         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
5350         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
5351         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
5352         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
5353         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
5354         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
5355         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
5356         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
5357         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
5358         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
5359         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
5360
5361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5362         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5363
5364         [BZ #14914]
5365         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
5366         whole low double instead of just low 47 bits when splitting values
5367         into two parts.
5368
5369 2012-12-03  Allan McRae  <allan@archlinux.org>
5370
5371         * manual/stdio.texi (Predefined Printf Handlers): Remove
5372         @hsep and @vsep usage.
5373
5374 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
5375
5376         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
5377         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
5378
5379 2012-12-03  Jeff Law  <law@redhat.com>
5380
5381         * time/sys/time.h (settimeofday): Do not mark TV argument
5382         as __nonnull.
5383
5384 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
5385
5386         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
5387         when currently writing and seek to current position when not.
5388         * libio/Makefile (tests): Remove bug-fclose1.
5389         * libio/bug-fclose1.c: Delete.
5390
5391 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
5392
5393         * manual/arith.texi (feenableexcept): Fix typo.
5394         (fedisableexcept): Likewise.
5395
5396 2012-11-30  Roland McGrath  <roland@hack.frob.com>
5397
5398         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
5399         second, differently-typed declaration, rather than a cast.
5400
5401 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5402
5403         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
5404         * include/rpc/svc.h: ... here.
5405
5406 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
5407
5408         [BZ #13013]
5409         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
5410         depending n and resplen2 to catch cases where answer
5411         equals answerp2.
5412
5413 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
5414
5415         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
5416         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
5417
5418 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
5419
5420         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
5421
5422 2012-11-29  Roland McGrath  <roland@hack.frob.com>
5423
5424         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
5425
5426 2012-11-28  Jeff Law  <law@redhat.com>
5427
5428         [BZ #13761]
5429         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
5430         dataset_temporary.  Track alloca usage into alloca_used.
5431         If dataset is large allocate and release it via malloc/free.
5432
5433 2012-06-04  Florian Weimer  <fweimer@redhat.com>
5434
5435         [BZ #14197]
5436         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
5437
5438 2012-11-28  David S. Miller  <davem@davemloft.net>
5439
5440         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5441
5442 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5443
5444         [BZ #14803]
5445         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
5446         of pi/2 rounded to nearest to 64 bits.
5447         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
5448         nearest to 64 bits.
5449         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
5450         bits.
5451
5452 2012-11-28  Jeff Law <law@redhat.com>
5453             Martin Osvald <mosvald@redhat.com>
5454
5455         [BZ #14889]
5456         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
5457         * sunrpc/svc.c: Include time.h.
5458         (__svc_accept_failed): New function.
5459         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
5460         any reason other than EINTR, call __svc_accept_failed.
5461         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
5462         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
5463
5464 2012-11-28  Andreas Schwab  <schwab@suse.de>
5465
5466         * scripts/abilist.awk: Also handle indirect functions in .opd
5467         section.
5468
5469 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5470
5471         [BZ #13881]
5472         * sysdeps/x86/fpu/powl_helper.c: New file.
5473         * sysdeps/x86/fpu/Makefile: Likewise.
5474         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
5475         (p3): New object.
5476         (__ieee754_powl): Use __powl_helper for finite arguments except
5477         integer exponents below 8.
5478         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
5479         (p3): New object.
5480         (__ieee754_powl): Use __powl_helper for finite arguments except
5481         integer exponents below 8.
5482         * math/libm-test.inc (pow_test): Add more tests and enable some
5483         previously disabled tests.
5484         * sysdeps/i386/fpu/libm-test-ulps: Update.
5485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5486
5487 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5488             Carlos O'Donell  <carlos_odonell@mentor.com>
5489
5490         * nss/makedb.c (is_prime): Assert that input is odd and greater
5491         than 4.  Note that fact in a comment too.
5492         (next_prime): Add 4 to input.
5493
5494 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5495
5496         [BZ #11741]
5497         * libio/Makefile (tests): Add test case tst-fwrite-error.
5498         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
5499         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5500         * libio/tst-fwrite-error.c: New test case.
5501
5502 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
5503
5504         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
5505         before casting to void *.
5506         * include/libc-internal.h (__pointer_type): New macro.
5507         (__integer_if_pointer_type_sub): Likewise.
5508         (__integer_if_pointer_type): Likewise.
5509         (cast_to_integer): Likewise.
5510         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
5511         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
5512         before casting to atomic64_t.
5513         (atomic_exchange_acq): Likewise.
5514         (__arch_exchange_and_add_body): Likewise.
5515         (__arch_add_body): Likewise.
5516         (atomic_add_negative): Likewise.
5517         (atomic_add_zero): Likewise.
5518
5519 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
5520
5521         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
5522         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
5523         (add_fdes): Likewise.
5524         (linear_search_fdes): Likewise.
5525         (binary_search_unencoded_fdes): Likewise.
5526
5527 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
5528
5529         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
5530
5531 2012-11-24  Adam Conrad  <adconrad@0c3.net>
5532
5533         * configure.in: Autodetect C++ header directories.
5534         * configure: Regenerated.
5535
5536 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
5537
5538         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
5539
5540 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
5541
5542         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5543
5544 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
5545
5546         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
5547         LDBL_MANT_DIG == 106]: Disable some tests.
5548         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5549         Likewise.
5550         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5551         Likewise.
5552
5553         [BZ #14871]
5554         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
5555         input for small inputs.  Return +/- pi/2 for large inputs.
5556         * math/libm-test.inc (atan_test): Add more tests.
5557
5558         * sysdeps/generic/unwind-dw2-fde-glibc.c
5559         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
5560         __attribute__ ((unused)).
5561
5562         [BZ #14645]
5563         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
5564         x * y if x and y are nonzero and z is zero.
5565
5566         [BZ #14811]
5567         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
5568         nonzero exponents with absolute value below 0x1p-117 to +/-
5569         0x1p-117.
5570
5571         [BZ #14869]
5572         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
5573         up arguments below 2**-450, not just those below 2**-500.
5574         * math/libm-test.inc (hypot_test): Add another test.
5575
5576         [BZ #14868]
5577         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
5578         Return a+b for ratio over 2**120, not 2**60.
5579         * math/libm-test.inc (hypot_test): Add another test.
5580
5581         * math/libm-test.inc (clog_test): Use
5582         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
5583         (clog10_test): Likewise.
5584
5585         [BZ #6778]
5586         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
5587
5588 2012-11-22  Andreas Schwab  <schwab@suse.de>
5589
5590         * sysdeps/i386/fpu/libm-test-ulps: Update.
5591
5592 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
5593
5594         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
5595         printf output with newline.
5596
5597 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
5598
5599         [BZ #14865]
5600         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
5601         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
5602         -z nodlopen, -z initfirst and -z execstack support.
5603         * configure: Regenerated.
5604
5605         * elf/elf.h (DF_1_NODIRECT): New macro.
5606         (DF_1_IGNMULDEF): Likewise.
5607         (DF_1_NOKSYMS): Likewise.
5608         (DF_1_NOHDR): Likewise.
5609         (DF_1_EDITED): Likewise.
5610         (DF_1_NORELOC): Likewise.
5611         (DF_1_SYMINTPOSE): Likewise.
5612         (DF_1_GLOBAUDIT): Likewise.
5613         (DF_1_SINGLETON): Likewise.
5614         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
5615         DT_1_SUPPORTED_MASK bits.
5616         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
5617
5618 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
5619
5620         * sysdeps/unix/make-syscalls.sh: Document prefixes.
5621
5622 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
5623
5624         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
5625         macro.
5626
5627         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
5628         (sendmmsg): Move declarations...
5629         * socket/sys/socket.h: ... here.
5630         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
5631         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
5632         include it from...
5633         * socket/recvmmsg.c: ... this new file.
5634         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
5635         (sendmmsg): Rename to __sendmmsg, create weak alias and make
5636         definition of __sendmmsg hidden.
5637         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
5638         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
5639         Move ENOSYS stub into and include it from...
5640         * socket/sendmmsg.c: ... this new file.
5641         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
5642         (sysdep_routines): Move recvmmsg and sendmmsg...
5643         * socket/Makefile (routines): ... here.
5644         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
5645         (GLIBC_PRIVATE): Add __sendmmsg.
5646         * include/sys/socket.h (__sendmmsg): Add declarations.
5647         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
5648         sendmmsg.
5649
5650 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
5651
5652         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
5653         variable I1 with __attribute__ ((unused)).
5654         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5655
5656 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5657
5658         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
5659         DUMMY variables with __attribute__ ((unused)).
5660
5661         * bits/byteswap.h: Include <bits/types.h>.
5662         (__bswap_64): Use __uint64_t instead of unsigned long long int.
5663
5664 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5665
5666         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
5667         string_t.  Do not manually set errno.
5668         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
5669         length with __strnlen.  Make sure to both set errno and return it on
5670         failure.
5671
5672 2012-11-19  David S. Miller  <davem@davemloft.net>
5673
5674         With help from Joseph Myers.
5675         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
5676         very large arguments properly.
5677         * math/libm-test.inc (atan_test): New tests.
5678         (atan2_test): New tests.
5679         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5680         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5681
5682 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5683
5684         [BZ #14856]
5685         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
5686         Define to 3.
5687
5688         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
5689         [POSIX] (EADDRNOTAVAIL): Likewise.
5690         [POSIX] (EAFNOSUPPORT): Likewise.
5691         [POSIX] (EALREADY): Likewise.
5692         [POSIX] (ECONNABORTED): Likewise.
5693         [POSIX] (ECONNREFUSED): Likewise.
5694         [POSIX] (ECONNRESET): Likewise.
5695         [POSIX] (EDESTADDRREQ): Likewise.
5696         [POSIX] (EDQUOT): Likewise.
5697         [POSIX] (EHOSTUNREACH): Likewise.
5698         [POSIX] (EIDRM): Likewise.
5699         [POSIX] (EISCONN): Likewise.
5700         [POSIX] (ELOOP): Likewise.
5701         [POSIX] (EMULTIHOP): Likewise.
5702         [POSIX] (ENETDOWN): Likewise.
5703         [POSIX] (ENETUNREACH): Likewise.
5704         [POSIX] (ENOBUFS): Likewise.
5705         [POSIX] (ENODATA): Likewise.
5706         [POSIX] (ENOLINK): Likewise.
5707         [POSIX] (ENOMSG): Likewise.
5708         [POSIX] (ENOPROTOOPT): Likewise.
5709         [POSIX] (ENOSR): Likewise.
5710         [POSIX] (ENOSTR): Likewise.
5711         [POSIX] (ENOTCONN): Likewise.
5712         [POSIX] (ENOTSOCK): Likewise.
5713         [POSIX] (EOPNOTSUPP): Likewise.
5714         [POSIX] (EOVERFLOW): Likewise.
5715         [POSIX] (EPROTO): Likewise.
5716         [POSIX] (EPROTONOSUPPORT): Likewise.
5717         [POSIX] (EPROTOTYPE): Likewise.
5718         [POSIX] (ESTALE): Likewise.
5719         [POSIX] (ETIME): Likewise.
5720         [POSIX] (ETXTBSY): Likewise.
5721         [POSIX] (EWOULDBLOCK): Likewise.
5722         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
5723         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
5724         [POSIX] (SEEK_CUR): Likewise.
5725         [POSIX] (SEEK_END): Likewise.
5726         [POSIX || UNIX98] (mode_t): Do not require.
5727         [POSIX] (off_t): Likewise.
5728         [POSIX] (pid_t): Likewise.
5729         [POSIX] (sys/stat.h): Do not allow header.
5730         [POSIX] (unistd.h): Likewise.
5731         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
5732         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
5733         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
5734         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
5735         require.
5736         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
5737         sigevent): Specify elements.
5738         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
5739         entry.
5740         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
5741         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
5742
5743         * conform/data/cpio.h-data [POSIX]: Disable whole file.
5744         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
5745         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
5746         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
5747         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
5748         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
5749         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
5750         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
5751         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
5752         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
5753         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
5754         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
5755         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
5756         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
5757         Likewise.
5758         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
5759         Likewise.
5760         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
5761         Likewise.
5762         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
5763         Likewise.
5764         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
5765         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
5766         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
5767         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
5768         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
5769         Specify lower bound on value.
5770         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
5771         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
5772         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
5773         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
5774         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
5775         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
5776         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
5777         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
5778         value.
5779         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
5780         as optional.
5781         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
5782         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
5783         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
5784         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
5785         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
5786         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
5787         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
5788         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
5789         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
5790         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
5791         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
5792         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
5793         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
5794         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
5795         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
5796         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
5797         entry.
5798         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
5799         optional.
5800         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
5801         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
5802         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
5803         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
5804         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
5805         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
5806         Likewise.
5807         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
5808         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
5809         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
5810         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
5811         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
5812         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
5813         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
5814         as optional.
5815         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
5816         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
5817         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
5818         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
5819         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
5820         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
5821         specify as optional.
5822         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
5823         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
5824         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
5825         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
5826         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
5827         [XPG3] (NL_LANGMAX): Likewise.
5828         [POSIX || XPG3] (NL_MSGMAX): Likewise.
5829         [POSIX || XPG3] (NL_NMAX): Likewise.
5830         [POSIX || XPG3] (NL_SETMAX): Likewise.
5831         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
5832         [XPG3] (NZERO): Likewise.
5833         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
5834         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
5835         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
5836         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
5837         (REG_ERANGE): Expect.
5838         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
5839         optional-constant.
5840         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
5841         Use (void) in prototype.
5842         [POSIX] (*_t): Allow.
5843         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
5844         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
5845         (WRDE_BADVAL): Expect.
5846
5847         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
5848         expect.
5849         [XPG3 || XPG4] (O_RSYNC): Likewise.
5850         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
5851         Likewise.
5852         [XPG3 || XPG4] (pthread_sigmask): Likewise.
5853         [XPG3 || XPG4] (sigqueue): Likewise.
5854         [XPG3 || XPG4] (sigtimedwait): Likewise.
5855         [XPG3 || XPG4] (sigwaitinfo): Likewise.
5856         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
5857         [XPG3 || XPG4] (vsnprintf): Likewise.
5858         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
5859         Likewise.
5860         [XPG3 || XPG4] (blksize_t): Likewise.
5861         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
5862         Likewise.
5863         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
5864         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
5865         [XPG3 || XPG4] (struct itimerspec): Likewise.
5866         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
5867         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
5868         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
5869         [XPG3 || XPG4] (clockid_t): Likewise.
5870         [XPG3 || XPG4] (timer_t): Likewise.
5871         [XPG3 || XPG4] (clock_getres): Likewise.
5872         [XPG3 || XPG4] (clock_gettime): Likewise.
5873         [XPG3 || XPG4] (clock_settime): Likewise.
5874         [XPG3 || XPG4] (nanosleep): Likewise.
5875         [XPG3 || XPG4] (timer_create): Likewise.
5876         [XPG3 || XPG4] (timer_delete): Likewise.
5877         [XPG3 || XPG4] (timer_gettime): Likewise.
5878         [XPG3 || XPG4] (timer_getoverrun): Likewise.
5879         [XPG3 || XPG4] (timer_settime): Likewise.
5880         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
5881         [XPG3 || XPG4] (getlogin_r): Likewise.
5882         [XPG3 || XPG4] (pread): Likewise.
5883         [XPG3 || XPG4] (pthread_atfork): Likewise.
5884         [XPG3 || XPG4] (pwrite): Likewise.
5885
5886         [BZ #14835]
5887         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
5888         <bits/siginfo.h>.
5889
5890 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5891
5892         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
5893         finalizing MALLSTREAM.
5894
5895         * sysdeps/mach/hurd/syncfs.c: New file.
5896
5897 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5898
5899         [BZ #14719]
5900         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
5901         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
5902         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
5903         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
5904         (_nss_dns_gethostbyname4_r): Likewise.
5905         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
5906         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
5907
5908 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
5909
5910         [BZ #13763]
5911         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
5912
5913 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
5914
5915         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
5916         * elf/cache.c (print_entry): Print ",AArch64" for
5917         FLAG_AARCH64_LIB64
5918
5919         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
5920         * elf/cache.c (print_entry): Print ",hard-float" for
5921         FLAG_ARM_LIBHF.
5922
5923 2012-11-18  David S. Miller  <davem@davemloft.net>
5924
5925         With help from Joseph Myers.
5926         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
5927         cutoff to 2**-13.
5928         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
5929         cutoff to 2**-25.
5930         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
5931         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
5932         small.
5933         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
5934         * math/libm-test.inc (y0_test): New tests.
5935         (y1_test): New tests.
5936         * sysdeps/i386/fpu/libm-test-ulps: Update.
5937         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5938         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5939
5940 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
5941
5942         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
5943         64-bit targets.
5944         * configure: Regenerated.
5945
5946 2012-11-17  David S. Miller  <davem@davemloft.net>
5947
5948         [BZ #14811]
5949         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
5950         nonzero exponents with absolute value below 0x1p-128 to +/-
5951         0x1p-128.
5952
5953 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
5954
5955         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
5956
5957         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
5958
5959         * posix/getconf-speclist.c: New file.
5960         * posix/posix-envs.def: Likewise.
5961         * posix/confstr.c (START_ENV_GROUP): New macro.
5962         (END_ENV_GROUP): Likewise.
5963         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5964         (KNOWN_PRESENT_ENV_STRING): Likewise.
5965         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5966         (UNKNOWN_ENVIRONMENT): Likewise.
5967         (confstr): Include posix-envs.def instead of handling
5968         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
5969         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
5970         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
5971         (END_ENV_GROUP): Likewise.
5972         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5973         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5974         (UNKNOWN_ENVIRONMENT): Likewise.
5975         (__sysconf): Include posix-envs.def instead of handling associated
5976         cases directly here.
5977         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
5978         preprocessing getconf-speclist.c rather than running getconf or
5979         generating empty file.
5980
5981 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
5982
5983         * scripts/check-local-headers.sh: Ignore 'mach' headers.
5984
5985 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
5986
5987         [BZ #14672]
5988         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
5989
5990 2012-11-16  David S. Miller  <davem@davemloft.net>
5991
5992         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
5993         smaller than LDBL_EPSILON/2.0L, just return xm1.
5994
5995 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
5996
5997         * elf/tst-array1.c (init): Set constructor priority to 1000.
5998         (fini): Set destructor priority to 1000.
5999         * elf/tst-array2dep.c: Likewise.
6000
6001 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6002
6003         [BZ #11741]
6004         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6005         (_IO_new_file_xsputn): Also return EOF if none of the input
6006         data was written when overflow failed.
6007         * libio/iopadn.c (_IO_padn): Likewise.
6008         * libio/iowpadn.c (_IO_wpadn): Likewise.
6009         * stdio-common/tst-put-error.c: Add copyright notice.
6010         (do_test): Add case for printing padded string.
6011         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6012         _IO_padn returned error.
6013         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6014         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6015         return EOF.
6016
6017 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6018
6019         * libio/libioP.h: Add comment note that the references to C++
6020         bits are now obsolete.
6021
6022 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6023
6024         * math/libm-test.inc (check_complex): Use asprintf.
6025
6026 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6027
6028         * debug/pcprofiledump.c (print_version): Update copyright year.
6029         * malloc/memusagestat.c (print_version): Likewise.
6030
6031 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6032
6033         [BZ #14831]
6034         * elf/Makefile (tests): Add tst-audit8.
6035         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6036         ($(objpfx)tst-audit8.out): New target.
6037         (tst-audit8-ENV): New variable.
6038         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6039         audit if l_reloc_result is NULL.
6040         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6041         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6042         * elf/tst-audit8.c: New file.
6043
6044 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6045
6046         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6047         * misc/Makefile (CFLAGS-select.c): Define.
6048         * posix/Makefile (CFLAGS-pause.c): Define.
6049
6050 2012-11-13  David S. Miller  <davem@davemloft.net>
6051
6052         * crypt/Makefile: Move test targets after toplevel Rules
6053         inclusion.  Grab any necessary sysdep routines when linking.
6054         * crypt/md5.c (md5_process_block): Remove define, we will always
6055         name it __md5_process_block.
6056         (md5_finish_ctx): Update md5_process_block call.
6057         (md5_stream): Likewise.
6058         (md5_process_bytes): Likewise.
6059         (md5_process_block): Rename to __md5_process_block and move to ...
6060         * crypt/md5-block.c: ... here.
6061         * crypt/sha256.c (sha256_process_block): Move to ...
6062         * crypt/sha256-block.c: ... here.
6063         * crypt/sha512.c (sha512_process_block): Move to ...
6064         * crypt/sha512-block.c: ... here.
6065         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6066         path.
6067         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6068         * sysdeps/sparc/sparc64/multiarch/Makefile
6069         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6070         crypt subdir.
6071         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6072         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6073         multiarch changes.
6074         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6075         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6076         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6077         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6078         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6079         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6080         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6081         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6082         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6083         file.
6084         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6085         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6086         file.
6087         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6088
6089 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6090
6091         * timezone/tzselect.ksh: Update from tzcode git revision
6092         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6093         * timezone/zdump.c: Likewise.
6094         * timezone/zic.c: Likewise.
6095         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6096         in TZVERSION setting, not $(PKGVERSION).
6097         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6098         REPORT_BUGS_TO settings.
6099
6100         [BZ #14838]
6101         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6102         macro.
6103
6104 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6105
6106         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6107         detection to immediately after _FP_ROUND().
6108         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6109         bits are 0.
6110
6111 2012-11-11  David S. Miller  <davem@davemloft.net>
6112
6113         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6114         inttypes.h
6115         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6116         __close rather than their public counterparts.
6117
6118 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6119
6120         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6121         file.
6122         [UNIX98] (sem_timedwait): Do not expect.
6123         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6124         [XPG4 || UNIX98] (sockatmark): Do not expect.
6125         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6126         (clock_getcpuclockid): Do not expect.
6127         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6128         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6129         Do not expect.
6130         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6131         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6132         [UNIX98] (vwscanf): Likewise.
6133         [UNIX98] (vswscanf): Likewise.
6134
6135 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6136
6137         * timezone/version.h: Remove file.
6138         * timezone/README: Do not refer to version.h.
6139         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6140         $(objpfx)version.h.
6141         ($(objpfx)zdump.o): Likewise.
6142         ($(objpfx)version.h): New target.
6143
6144         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6145         2012i.
6146         * timezone/README: Don't mention modification to tzselect.ksh.
6147         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6148         work on unmodified tzselect.ksh.  Substitute version numbers in
6149         tzselect.ksh.
6150
6151         * Makefile (format-me): Remove.
6152         (INSTALL): Adjust indentation.  Use commands directly instead of
6153         using $(format-me).
6154
6155         * aclocal.m4 (ACX_PKGVERSION): New macro.
6156         (ACX_BUGURL): Likewise.
6157         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6158         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6159         (REPORT_BUGS_TO): Likewise.
6160         * configure: Regenerated.
6161         * config.h.in (PKGVERSION): New macro.
6162         (REPORT_BUGS_TO): Likewise.
6163         * config.make.in (PKGVERSION): New variable.
6164         (PKGVERSION_TEXI): Likewise.
6165         (REPORT_BUGS_TO): Likewise.
6166         (REPORT_BUGS_TEXI): Likewise.
6167         * Makefile (format-me): Use -I$(common-objpfx)manual.
6168         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6169         ($(common-objpfx)manual/%): New target.
6170         (manual/%): Remove target.
6171         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6172         (print_version): Use PKGVERSION.
6173         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6174         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6175         and REPORT_BUGS_TO.
6176         ($(objpfx)xtrace): Likewise.
6177         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6178         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6179         (print_version): Use PKGVERSION.
6180         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6181         (do_version): Use PKGVERSION.
6182         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6183         REPORT_BUGS_TO.
6184         (common-ldd-rewrite): Likewise.
6185         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6186         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6187         (print_version): Use PKGVERSION.
6188         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6189         * elf/pldd.c (argp_program_bug_address): Remove variable.
6190         (more_help): New function.
6191         (argp): Use more_help.
6192         (print_version): Use PKGVERSION.
6193         * elf/sln.c (main): Use PKGVERSION.
6194         (usage): Use REPORT_BUGS_TO.
6195         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6196         (top level): Use PKGVERSION.
6197         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6198         (print_version): Use PKGVERSION.
6199         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6200         (print_version): Use PKGVERSION.
6201         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6202         (print_version): Use PKGVERSION.
6203         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6204         (print_version): Use PKGVERSION.
6205         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6206         (print_version): Use PKGVERSION.
6207         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6208         (print_version): Use PKGVERSION.
6209         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6210         and BUGURL.
6211         ($(objpfx)memusage): Likewise.
6212         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6213         (do_version): Use PKGVERSION.
6214         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6215         (print_version): Use PKGVERSION.
6216         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6217         ($PKGVERSION): New variable.
6218         ($REPORT_BUGS_TO): Likewise.
6219         (usage): Use $REPORT_BUGS_TO.
6220         (top level): Use $PKGVERSION.
6221         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6222         ($(objpfx)pkgvers.texi): New rule.
6223         ($(objpfx)stamp-pkgvers): Likewise.
6224         * manual/install.texi: Include pkgvers.texi.
6225         (--with-pkgversion): Document new configure option.
6226         (--with-bugurl): Likewise.
6227         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6228         than necessarily for this particular distribution.  Use
6229         REPORT_BUGS_TO for where to report bugs.
6230         * INSTALL: Regenerated.
6231         * manual/libc.texinfo: Include pkgvers.texi.
6232         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6233         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6234         (print_version): Use PKGVERSION.
6235         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6236         (print_version): Use PKGVERSION.
6237         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6238         (print_version): Use PKGVERSION.
6239         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6240         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6241         macro.
6242         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6243         (print_version): Use PKGVERSION.
6244         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6245         (print_version): Use PKGVERSION.
6246         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6247         and PKGVERSION.
6248
6249         * timezone/checktab.awk: Update from tzcode 2012i.
6250         * timezone/ialloc.c: Likewise.
6251         * timezone/private.h: Likewise.
6252         * timezone/scheck.c: Likewise.
6253         * timezone/tzfile.h: Likewise.
6254         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6255         (TZVERSION): Hardcode tzcode version number.
6256         * timezone/zdump.c: Update from tzcode 2012i.
6257         * timezone/zic.c: Likewise.
6258         * timezone/version.h: New file.
6259         * timezone/README: Describe version.h.  Update upstream location.
6260
6261         [BZ #14824]
6262         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6263         (mktemp): Enable declaration.
6264         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6265         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6266         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6267         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6268         Likewise.
6269         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6270         Likewise.
6271         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6272         Likewise.
6273         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6274         Likewise.
6275         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6276         Likewise.
6277         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6278         Likewise.
6279
6280         [BZ #14821]
6281         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6282         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6283         for copies of such integer values.
6284         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6285         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6286
6287 2012-11-09  Andreas Jaeger  <aj@suse.de>
6288
6289         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6290         definitions and declarations that are provided by
6291         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6292
6293 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6294
6295         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6296         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6297         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6298         definition.
6299
6300 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6301
6302         * elf/elf.h: Update comment before AArch64 relocations.
6303
6304 2012-11-07  David S. Miller  <davem@davemloft.net>
6305
6306         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6307         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6308         (__start_context): Declare.
6309         (__makecontext_ret): Delete.
6310         (__makecontext): Hook up __start_context instead of
6311         __makecontext_ret.
6312         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6313         (sysdep_routines): Add __start_context when in stdlib.
6314
6315 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6316
6317         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6318         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6319         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6320         hardcoded "nm".
6321         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6322         (READELF): New variable.  Use it instead of hardcoded "readelf".
6323
6324 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6325
6326         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6327         * sysdeps/x86/Makefile: Here.
6328         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6329         * sysdeps/x86/tst-xmmymm.sh: This.
6330
6331 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6332
6333         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6334         expectations.
6335         [UNIX98] (pthread_barrier_t): Do not expect.
6336         [UNIX98] (pthread_barrierattr_t): Likewise.
6337         [UNIX98] (pthread_spinlock_t): Likewise.
6338         [UNIX98] (pthread_barrier_destroy): Likewise.
6339         [UNIX98] (pthread_barrier_init): Likewise.
6340         [UNIX98] (pthread_barrier_wait): Likewise.
6341         [UNIX98] (pthread_barrierattr_destroy): Likewise.
6342         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
6343         [UNIX98] (pthread_barrierattr_init): Likewise.
6344         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
6345         [UNIX98] (pthread_getcpuclockid): Likewise.
6346         [UNIX98] (pthread_mutex_timedlock): Likewise.
6347         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
6348         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
6349         [UNIX98] (pthread_sigmask): Likewise.
6350         [UNIX98] (pthread_spin_destroy): Likewise.
6351         [UNIX98] (pthread_spin_init): Likewise.
6352         [UNIX98] (pthread_spin_lock): Likewise.
6353         [UNIX98] (pthread_spin_trylock): Likewise.
6354         [UNIX98] (pthread_spin_unlock): Likewise.
6355         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
6356         Do not expect.
6357         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
6358         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
6359         [XPG3 || XPG4] (pthread_cond_t): Likewise.
6360         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
6361         [XPG3 || XPG4] (pthread_key_t): Likewise.
6362         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
6363         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
6364         [XPG3 || XPG4] (pthread_once_t): Likewise.
6365         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
6366         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
6367         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
6368         [XPG3 || XPG4] (pthread_t): Likewise.
6369
6370         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
6371         not expect.
6372         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
6373
6374         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
6375         Change function return type to int.
6376
6377         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
6378         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
6379         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
6380         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
6381         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
6382         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
6383         [!POSIX] (posix_madvise): Likewise.
6384         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
6385         && !UNIX98].
6386         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
6387         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
6388         (mode_t): Likewise.
6389         (posix_mem_offset): Likewise.
6390         (posix_typed_mem_get_info): Likewise.
6391         (posix_typed_mem_open): Likewise.
6392
6393         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
6394         Change condition to [XOPEN2K8].
6395
6396         * conform/conformtest.pl: Preprocess allow-header data with -x c
6397         instead of from stdin.
6398         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
6399         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
6400         [C99-based standards] (cerfc): Likewise.
6401         [C99-based standards] (cexp2): Likewise.
6402         [C99-based standards] (cexpm1): Likewise.
6403         [C99-based standards] (clog10): Likewise.
6404         [C99-based standards] (clog1p): Likewise.
6405         [C99-based standards] (clog2): Likewise.
6406         [C99-based standards] (clgamma): Likewise.
6407         [C99-based standards] (ctgamma): Likewise.
6408         [C99-based standards] (cerff): Likewise.
6409         [C99-based standards] (cerfcf): Likewise.
6410         [C99-based standards] (cexp2f): Likewise.
6411         [C99-based standards] (cexpm1f): Likewise.
6412         [C99-based standards] (clog10f): Likewise.
6413         [C99-based standards] (clog1pf): Likewise.
6414         [C99-based standards] (clog2f): Likewise.
6415         [C99-based standards] (clgammaf): Likewise.
6416         [C99-based standards] (ctgammaf): Likewise.
6417         [C99-based standards] (cerfl): Likewise.
6418         [C99-based standards] (cerfcl): Likewise.
6419         [C99-based standards] (cexp2l): Likewise.
6420         [C99-based standards] (cexpm1l): Likewise.
6421         [C99-based standards] (clog10l): Likewise.
6422         [C99-based standards] (clog1pl): Likewise.
6423         [C99-based standards] (clog2l): Likewise.
6424         [C99-based standards] (clgammal): Likewise.
6425         [C99-based standards] (ctgammal): Likewise.
6426         * conform/data/inttypes.h-data [C99-based standards]: Include
6427         stdint.h-data.  Remove all expectations for stdint.h contents.
6428         [C99-based standards] (PRI*): Do not allow.
6429         [C99-based standards] (SCN*): Likewise.
6430         [C99-based standards] (*_t): Likewise.
6431         [C99-based-standards] (PRId8): Expect macro.
6432         [C99-based-standards] (PRIi8): Likewise.
6433         [C99-based-standards] (PRIo8): Likewise.
6434         [C99-based-standards] (PRIu8): Likewise.
6435         [C99-based-standards] (PRIx8): Likewise.
6436         [C99-based-standards] (PRIX8): Likewise.
6437         [C99-based-standards] (SCNd8): Likewise.
6438         [C99-based-standards] (SCNi8): Likewise.
6439         [C99-based-standards] (SCNo8): Likewise.
6440         [C99-based-standards] (SCNu8): Likewise.
6441         [C99-based-standards] (SCNx8): Likewise.
6442         [C99-based-standards] (PRIdLEAST8): Likewise.
6443         [C99-based-standards] (PRIiLEAST8): Likewise.
6444         [C99-based-standards] (PRIoLEAST8): Likewise.
6445         [C99-based-standards] (PRIuLEAST8): Likewise.
6446         [C99-based-standards] (PRIxLEAST8): Likewise.
6447         [C99-based-standards] (PRIXLEAST8): Likewise.
6448         [C99-based-standards] (SCNdLEAST8): Likewise.
6449         [C99-based-standards] (SCNiLEAST8): Likewise.
6450         [C99-based-standards] (SCNoLEAST8): Likewise.
6451         [C99-based-standards] (SCNuLEAST8): Likewise.
6452         [C99-based-standards] (SCNxLEAST8): Likewise.
6453         [C99-based-standards] (PRIdFAST8): Likewise.
6454         [C99-based-standards] (PRIiFAST8): Likewise.
6455         [C99-based-standards] (PRIoFAST8): Likewise.
6456         [C99-based-standards] (PRIuFAST8): Likewise.
6457         [C99-based-standards] (PRIxFAST8): Likewise.
6458         [C99-based-standards] (PRIXFAST8): Likewise.
6459         [C99-based-standards] (SCNdFAST8): Likewise.
6460         [C99-based-standards] (SCNiFAST8): Likewise.
6461         [C99-based-standards] (SCNoFAST8): Likewise.
6462         [C99-based-standards] (SCNuFAST8): Likewise.
6463         [C99-based-standards] (SCNxFAST8): Likewise.
6464         [C99-based-standards] (PRId16): Likewise.
6465         [C99-based-standards] (PRIi16): Likewise.
6466         [C99-based-standards] (PRIo16): Likewise.
6467         [C99-based-standards] (PRIu16): Likewise.
6468         [C99-based-standards] (PRIx16): Likewise.
6469         [C99-based-standards] (PRIX16): Likewise.
6470         [C99-based-standards] (SCNd16): Likewise.
6471         [C99-based-standards] (SCNi16): Likewise.
6472         [C99-based-standards] (SCNo16): Likewise.
6473         [C99-based-standards] (SCNu16): Likewise.
6474         [C99-based-standards] (SCNx16): Likewise.
6475         [C99-based-standards] (PRIdLEAST16): Likewise.
6476         [C99-based-standards] (PRIiLEAST16): Likewise.
6477         [C99-based-standards] (PRIoLEAST16): Likewise.
6478         [C99-based-standards] (PRIuLEAST16): Likewise.
6479         [C99-based-standards] (PRIxLEAST16): Likewise.
6480         [C99-based-standards] (PRIXLEAST16): Likewise.
6481         [C99-based-standards] (SCNdLEAST16): Likewise.
6482         [C99-based-standards] (SCNiLEAST16): Likewise.
6483         [C99-based-standards] (SCNoLEAST16): Likewise.
6484         [C99-based-standards] (SCNuLEAST16): Likewise.
6485         [C99-based-standards] (SCNxLEAST16): Likewise.
6486         [C99-based-standards] (PRIdFAST16): Likewise.
6487         [C99-based-standards] (PRIiFAST16): Likewise.
6488         [C99-based-standards] (PRIoFAST16): Likewise.
6489         [C99-based-standards] (PRIuFAST16): Likewise.
6490         [C99-based-standards] (PRIxFAST16): Likewise.
6491         [C99-based-standards] (PRIXFAST16): Likewise.
6492         [C99-based-standards] (SCNdFAST16): Likewise.
6493         [C99-based-standards] (SCNiFAST16): Likewise.
6494         [C99-based-standards] (SCNoFAST16): Likewise.
6495         [C99-based-standards] (SCNuFAST16): Likewise.
6496         [C99-based-standards] (SCNxFAST16): Likewise.
6497         [C99-based-standards] (PRId32): Likewise.
6498         [C99-based-standards] (PRIi32): Likewise.
6499         [C99-based-standards] (PRIo32): Likewise.
6500         [C99-based-standards] (PRIu32): Likewise.
6501         [C99-based-standards] (PRIx32): Likewise.
6502         [C99-based-standards] (PRIX32): Likewise.
6503         [C99-based-standards] (SCNd32): Likewise.
6504         [C99-based-standards] (SCNi32): Likewise.
6505         [C99-based-standards] (SCNo32): Likewise.
6506         [C99-based-standards] (SCNu32): Likewise.
6507         [C99-based-standards] (SCNx32): Likewise.
6508         [C99-based-standards] (PRIdLEAST32): Likewise.
6509         [C99-based-standards] (PRIiLEAST32): Likewise.
6510         [C99-based-standards] (PRIoLEAST32): Likewise.
6511         [C99-based-standards] (PRIuLEAST32): Likewise.
6512         [C99-based-standards] (PRIxLEAST32): Likewise.
6513         [C99-based-standards] (PRIXLEAST32): Likewise.
6514         [C99-based-standards] (SCNdLEAST32): Likewise.
6515         [C99-based-standards] (SCNiLEAST32): Likewise.
6516         [C99-based-standards] (SCNoLEAST32): Likewise.
6517         [C99-based-standards] (SCNuLEAST32): Likewise.
6518         [C99-based-standards] (SCNxLEAST32): Likewise.
6519         [C99-based-standards] (PRIdFAST32): Likewise.
6520         [C99-based-standards] (PRIiFAST32): Likewise.
6521         [C99-based-standards] (PRIoFAST32): Likewise.
6522         [C99-based-standards] (PRIuFAST32): Likewise.
6523         [C99-based-standards] (PRIxFAST32): Likewise.
6524         [C99-based-standards] (PRIXFAST32): Likewise.
6525         [C99-based-standards] (SCNdFAST32): Likewise.
6526         [C99-based-standards] (SCNiFAST32): Likewise.
6527         [C99-based-standards] (SCNoFAST32): Likewise.
6528         [C99-based-standards] (SCNuFAST32): Likewise.
6529         [C99-based-standards] (SCNxFAST32): Likewise.
6530         [C99-based-standards] (PRId64): Likewise.
6531         [C99-based-standards] (PRIi64): Likewise.
6532         [C99-based-standards] (PRIo64): Likewise.
6533         [C99-based-standards] (PRIu64): Likewise.
6534         [C99-based-standards] (PRIx64): Likewise.
6535         [C99-based-standards] (PRIX64): Likewise.
6536         [C99-based-standards] (SCNd64): Likewise.
6537         [C99-based-standards] (SCNi64): Likewise.
6538         [C99-based-standards] (SCNo64): Likewise.
6539         [C99-based-standards] (SCNu64): Likewise.
6540         [C99-based-standards] (SCNx64): Likewise.
6541         [C99-based-standards] (PRIdLEAST64): Likewise.
6542         [C99-based-standards] (PRIiLEAST64): Likewise.
6543         [C99-based-standards] (PRIoLEAST64): Likewise.
6544         [C99-based-standards] (PRIuLEAST64): Likewise.
6545         [C99-based-standards] (PRIxLEAST64): Likewise.
6546         [C99-based-standards] (PRIXLEAST64): Likewise.
6547         [C99-based-standards] (SCNdLEAST64): Likewise.
6548         [C99-based-standards] (SCNiLEAST64): Likewise.
6549         [C99-based-standards] (SCNoLEAST64): Likewise.
6550         [C99-based-standards] (SCNuLEAST64): Likewise.
6551         [C99-based-standards] (SCNxLEAST64): Likewise.
6552         [C99-based-standards] (PRIdFAST64): Likewise.
6553         [C99-based-standards] (PRIiFAST64): Likewise.
6554         [C99-based-standards] (PRIoFAST64): Likewise.
6555         [C99-based-standards] (PRIuFAST64): Likewise.
6556         [C99-based-standards] (PRIxFAST64): Likewise.
6557         [C99-based-standards] (PRIXFAST64): Likewise.
6558         [C99-based-standards] (SCNdFAST64): Likewise.
6559         [C99-based-standards] (SCNiFAST64): Likewise.
6560         [C99-based-standards] (SCNoFAST64): Likewise.
6561         [C99-based-standards] (SCNuFAST64): Likewise.
6562         [C99-based-standards] (SCNxFAST64): Likewise.
6563         [C99-based-standards] (PRIdMAX): Likewise.
6564         [C99-based-standards] (PRIiMAX): Likewise.
6565         [C99-based-standards] (PRIoMAX): Likewise.
6566         [C99-based-standards] (PRIuMAX): Likewise.
6567         [C99-based-standards] (PRIxMAX): Likewise.
6568         [C99-based-standards] (PRIXMAX): Likewise.
6569         [C99-based-standards] (SCNdMAX): Likewise.
6570         [C99-based-standards] (SCNiMAX): Likewise.
6571         [C99-based-standards] (SCNoMAX): Likewise.
6572         [C99-based-standards] (SCNuMAX): Likewise.
6573         [C99-based-standards] (SCNxMAX): Likewise.
6574         [C99-based-standards] (PRIdPTR): Likewise.
6575         [C99-based-standards] (PRIiPTR): Likewise.
6576         [C99-based-standards] (PRIoPTR): Likewise.
6577         [C99-based-standards] (PRIuPTR): Likewise.
6578         [C99-based-standards] (PRIxPTR): Likewise.
6579         [C99-based-standards] (PRIXPTR): Likewise.
6580         [C99-based-standards] (SCNdPTR): Likewise.
6581         [C99-based-standards] (SCNiPTR): Likewise.
6582         [C99-based-standards] (SCNoPTR): Likewise.
6583         [C99-based-standards] (SCNuPTR): Likewise.
6584         [C99-based-standards] (SCNxPTR): Likewise.
6585         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
6586         allow.
6587         * conform/data/stdint.h-data: Update comments to clarify
6588         requirements.
6589         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
6590         type.
6591         [C99-based standards] (INT8_MAX): Likewise.
6592         [C99-based standards] (INT16_MIN): Likewise.
6593         [C99-based standards] (INT16_MAX): Likewise.
6594         [C99-based standards] (INT32_MIN): Likewise.
6595         [C99-based standards] (INT32_MAX): Likewise.
6596         [C99-based standards] (INT64_MIN): Likewise.
6597         [C99-based standards] (INT64_MAX): Likewise.
6598         [C99-based standards] (UINT8_MAX): Likewise.
6599         [C99-based standards] (UINT16_MAX): Likewise.
6600         [C99-based standards] (UINT32_MAX): Likewise.
6601         [C99-based standards] (UINT64_MAX): Likewise.
6602         [C99-based standards] (INT_LEAST8_MIN): Likewise.
6603         [C99-based standards] (INT_LEAST8_MAX): Likewise.
6604         [C99-based standards] (INT_LEAST16_MIN): Likewise.
6605         [C99-based standards] (INT_LEAST16_MAX): Likewise.
6606         [C99-based standards] (INT_LEAST32_MIN): Likewise.
6607         [C99-based standards] (INT_LEAST32_MAX): Likewise.
6608         [C99-based standards] (INT_LEAST64_MIN): Likewise.
6609         [C99-based standards] (INT_LEAST64_MAX): Likewise.
6610         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
6611         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
6612         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
6613         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
6614         [C99-based standards] (INT_FAST8_MIN): Likewise.
6615         [C99-based standards] (INT_FAST8_MAX): Likewise.
6616         [C99-based standards] (INT_FAST16_MIN): Likewise.
6617         [C99-based standards] (INT_FAST16_MAX): Likewise.
6618         [C99-based standards] (INT_FAST32_MIN): Likewise.
6619         [C99-based standards] (INT_FAST32_MAX): Likewise.
6620         [C99-based standards] (INT_FAST64_MIN): Likewise.
6621         [C99-based standards] (INT_FAST64_MAX): Likewise.
6622         [C99-based standards] (UINT_FAST8_MAX): Likewise.
6623         [C99-based standards] (UINT_FAST16_MAX): Likewise.
6624         [C99-based standards] (UINT_FAST32_MAX): Likewise.
6625         [C99-based standards] (UINT_FAST64_MAX): Likewise.
6626         [C99-based standards] (INTPTR_MIN): Likewise.
6627         [C99-based standards] (INTPTR_MAX): Likewise.
6628         [C99-based standards] (UINTPTR_MAX): Likewise.
6629         [C99-based standards] (INTMAX_MIN): Likewise.
6630         [C99-based standards] (INTMAX_MAX): Likewise.
6631         [C99-based standards] (UINTMAX_MAX): Likewise.
6632         [C99-based standards] (PTRDIFF_MIN): Likewise.
6633         [C99-based standards] (PTRDIFF_MAX): Likewise.
6634         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
6635         [C99-based standards] (SIZE_MAX): Likewise.
6636         [C99-based standards] (WCHAR_MAX): Likewise.
6637         [C99-based standards] (WINT_MAX): Likewise.
6638         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
6639         constraint on value.
6640         [C99-based standards] (WCHAR_MIN): Likewise.
6641         [C99-based standards] (WINT_MIN): Likewise.
6642         [C99-based standards] (*_t): Allow.
6643         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
6644         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
6645         Include math.h-data and complex.h-data.  Remove all expectations
6646         of math.h and complex.h contents.
6647         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
6648         at end of line.
6649         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
6650         (struct tm): Expect tag.
6651         [C99-based-standards] (wcstof): Expect function.
6652         [C99-based-standards] (wcstold): Likewise.
6653         [C99-based-standards] (wcstoll): Likewise.
6654         [C99-based-standards] (wcstoull): Likewise.
6655         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
6656         macro-int-constant.  Specify type.
6657         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
6658         constraint on value.
6659         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6660         Specify type.
6661         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
6662         Specify value.
6663         [ISO C standards]: Do not allow headers.
6664         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
6665         wcs[abcdefghijklmnopqrstuvwxyz]*.
6666         [ISO C standards] (*_t): Do not allow.
6667         * conform/data/wctype.h-data [C99-based standards] (iswblank):
6668         Expect function.
6669         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
6670         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6671         Specify type.
6672         [ISO C standards]: Do not allow headers.
6673         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
6674         is[abcdefghijklmnopqrstuvwxyz]*.
6675         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
6676         to[abcdefghijklmnopqrstuvwxyz]*.
6677         [ISO C standards] (*_t): Do not allow.
6678         * conform/data/stdalign.h-data: New file.
6679         * conform/data/stdbool.h-data: Likewise.
6680         * conform/data/stdnoreturn.h-data: Likewise.
6681
6682 2012-11-07  Roland McGrath  <roland@hack.frob.com>
6683
6684         [BZ #14815]
6685         * manual/filesys.texi (Directory Entries): Typo fix.
6686         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
6687
6688 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6689
6690         * elf/elf.h (EM_AARCH64): New macro.
6691         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
6692         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
6693         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
6694         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
6695         (R_AARCH64_TLSDESC): Likewise.
6696         (NT_ARM_TLS): Likewise.
6697         (NT_ARM_HW_BREAK): Likewise.
6698         (NT_ARM_HW_WATCH): Likewise.
6699
6700 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6701
6702         [BZ #14811]
6703         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
6704         (__ieee754_powl): Saturate nonzero exponents with absolute value
6705         below 0x1p-79 to +/- 0x1p-79.
6706         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
6707         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
6708         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
6709         nonzero exponents with absolute value below 0x1p-32 to +/-
6710         0x1p-32.
6711         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
6712         (__ieee754_powl): Saturate nonzero exponents with absolute value
6713         below 0x1p-79 to +/- 0x1p-79.
6714         * math/libm-test.inc (pow_test): Add more tests.
6715
6716 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6717
6718         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
6719         _dl_s390_cap_flags with kernel. Increase string length.
6720         (_dl_s390_platforms): Add z196 and zEC12.
6721
6722 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6723
6724         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
6725         Change XOPEN21K to XOPEN2K.
6726
6727 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
6728
6729         * string/memmove.c: Use memcpy when possible.
6730
6731 2012-11-06  Andreas Jaeger  <aj@suse.de>
6732
6733         * po/eo.po: Update from translation team.
6734
6735 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
6736
6737         [BZ #14793]
6738         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
6739         exponent and small x and y exponents, scale x or y up.  Increase
6740         by 2 the exponent used in scaling up.
6741         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6742         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6743         * math/libm-test.inc (fma_test): Add more tests.
6744         (fma_test_towardzero): Likewise.
6745         (fma_test_downward): Likewise.
6746         (fma_test_upward): Likewise.
6747
6748 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
6749
6750         [BZ #14805]
6751         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
6752         fenv_t *.
6753
6754         [BZ #14801]
6755         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
6756         namespace for names of struct fields.
6757         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
6758         fenv_t fields.
6759         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
6760         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
6761
6762 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6763
6764         [BZ #3665]
6765         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6766
6767 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6768
6769         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
6770         PTR_DEMANGLE.
6771
6772         [BZ #5246]
6773         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
6774         PTR_DEMANGLE.
6775
6776 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
6777
6778         [BZ #14797]
6779         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
6780         definitely overflow as x * y not x * y + z.
6781         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6782         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6783         * math/libm-test.inc (fma_test): Add more tests.
6784         (fma_test_towardzero): Likewise.
6785         (fma_test_downward): Likewise.
6786         (fma_test_upward): Likewise.
6787
6788 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6789
6790         [BZ #157]
6791
6792         * include/stub-tag.h: Remove file.
6793         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
6794         '#include' of it.
6795         * manual/maint.texi (Porting): Don't reference it.
6796         * Makerules ($(objpfx)stubs): Likewise.
6797         * dirent/closedir.c: Don't include <stub-tag.h>.
6798         * dirent/dirfd.c: Likewise.
6799         * dirent/fdopendir.c: Likewise.
6800         * dirent/getdents.c: Likewise.
6801         * dirent/getdents64.c: Likewise.
6802         * dirent/opendir.c: Likewise.
6803         * dirent/readdir.c: Likewise.
6804         * dirent/readdir64.c: Likewise.
6805         * dirent/readdir64_r.c: Likewise.
6806         * dirent/readdir_r.c: Likewise.
6807         * dirent/rewinddir.c: Likewise.
6808         * dirent/seekdir.c: Likewise.
6809         * dirent/telldir.c: Likewise.
6810         * gmon/profil.c: Likewise.
6811         * grp/setgroups.c: Likewise.
6812         * inet/if_index.c: Likewise.
6813         * io/access.c: Likewise.
6814         * io/chdir.c: Likewise.
6815         * io/chmod.c: Likewise.
6816         * io/chown.c: Likewise.
6817         * io/close.c: Likewise.
6818         * io/dup.c: Likewise.
6819         * io/dup2.c: Likewise.
6820         * io/dup3.c: Likewise.
6821         * io/euidaccess.c: Likewise.
6822         * io/faccessat.c: Likewise.
6823         * io/fchdir.c: Likewise.
6824         * io/fchmod.c: Likewise.
6825         * io/fchmodat.c: Likewise.
6826         * io/fchown.c: Likewise.
6827         * io/fchownat.c: Likewise.
6828         * io/fcntl.c: Likewise.
6829         * io/flock.c: Likewise.
6830         * io/fstatfs.c: Likewise.
6831         * io/fstatfs64.c: Likewise.
6832         * io/fstatvfs.c: Likewise.
6833         * io/fstatvfs64.c: Likewise.
6834         * io/futimens.c: Likewise.
6835         * io/fxstat.c: Likewise.
6836         * io/fxstat64.c: Likewise.
6837         * io/fxstatat.c: Likewise.
6838         * io/fxstatat64.c: Likewise.
6839         * io/getcwd.c: Likewise.
6840         * io/isatty.c: Likewise.
6841         * io/lchmod.c: Likewise.
6842         * io/lchown.c: Likewise.
6843         * io/link.c: Likewise.
6844         * io/linkat.c: Likewise.
6845         * io/lseek.c: Likewise.
6846         * io/lseek64.c: Likewise.
6847         * io/lxstat64.c: Likewise.
6848         * io/mkdir.c: Likewise.
6849         * io/mkdirat.c: Likewise.
6850         * io/mkfifo.c: Likewise.
6851         * io/mkfifoat.c: Likewise.
6852         * io/open.c: Likewise.
6853         * io/open64.c: Likewise.
6854         * io/openat.c: Likewise.
6855         * io/openat64.c: Likewise.
6856         * io/pipe.c: Likewise.
6857         * io/pipe2.c: Likewise.
6858         * io/poll.c: Likewise.
6859         * io/posix_fadvise.c: Likewise.
6860         * io/posix_fadvise64.c: Likewise.
6861         * io/posix_fallocate.c: Likewise.
6862         * io/posix_fallocate64.c: Likewise.
6863         * io/read.c: Likewise.
6864         * io/readlink.c: Likewise.
6865         * io/readlinkat.c: Likewise.
6866         * io/rmdir.c: Likewise.
6867         * io/sendfile.c: Likewise.
6868         * io/sendfile64.c: Likewise.
6869         * io/statfs.c: Likewise.
6870         * io/statfs64.c: Likewise.
6871         * io/statvfs.c: Likewise.
6872         * io/statvfs64.c: Likewise.
6873         * io/symlink.c: Likewise.
6874         * io/symlinkat.c: Likewise.
6875         * io/ttyname.c: Likewise.
6876         * io/ttyname_r.c: Likewise.
6877         * io/umask.c: Likewise.
6878         * io/unlink.c: Likewise.
6879         * io/unlinkat.c: Likewise.
6880         * io/utime.c: Likewise.
6881         * io/utimensat.c: Likewise.
6882         * io/write.c: Likewise.
6883         * io/xmknod.c: Likewise.
6884         * io/xmknodat.c: Likewise.
6885         * io/xstat.c: Likewise.
6886         * io/xstat64.c: Likewise.
6887         * login/getpt.c: Likewise.
6888         * login/grantpt.c: Likewise.
6889         * login/unlockpt.c: Likewise.
6890         * math/e_acoshl.c: Likewise.
6891         * math/e_acosl.c: Likewise.
6892         * math/e_asinl.c: Likewise.
6893         * math/e_atan2l.c: Likewise.
6894         * math/e_atanhl.c: Likewise.
6895         * math/e_coshl.c: Likewise.
6896         * math/e_expl.c: Likewise.
6897         * math/e_fmodl.c: Likewise.
6898         * math/e_gammal_r.c: Likewise.
6899         * math/e_hypotl.c: Likewise.
6900         * math/e_j0l.c: Likewise.
6901         * math/e_j1l.c: Likewise.
6902         * math/e_jnl.c: Likewise.
6903         * math/e_lgammal_r.c: Likewise.
6904         * math/e_log10l.c: Likewise.
6905         * math/e_log2l.c: Likewise.
6906         * math/e_logl.c: Likewise.
6907         * math/e_powl.c: Likewise.
6908         * math/e_rem_pio2l.c: Likewise.
6909         * math/e_sinhl.c: Likewise.
6910         * math/e_sqrtl.c: Likewise.
6911         * math/fclrexcpt.c: Likewise.
6912         * math/fedisblxcpt.c: Likewise.
6913         * math/feenablxcpt.c: Likewise.
6914         * math/fegetenv.c: Likewise.
6915         * math/fegetexcept.c: Likewise.
6916         * math/fegetround.c: Likewise.
6917         * math/feholdexcpt.c: Likewise.
6918         * math/fesetenv.c: Likewise.
6919         * math/fesetround.c: Likewise.
6920         * math/feupdateenv.c: Likewise.
6921         * math/fgetexcptflg.c: Likewise.
6922         * math/fraiseexcpt.c: Likewise.
6923         * math/fsetexcptflg.c: Likewise.
6924         * math/ftestexcept.c: Likewise.
6925         * math/k_cosl.c: Likewise.
6926         * math/k_rem_pio2l.c: Likewise.
6927         * math/k_sinl.c: Likewise.
6928         * math/k_tanl.c: Likewise.
6929         * math/s_asinhl.c: Likewise.
6930         * math/s_atanl.c: Likewise.
6931         * math/s_cbrtl.c: Likewise.
6932         * math/s_erfl.c: Likewise.
6933         * math/s_expm1l.c: Likewise.
6934         * math/s_log1pl.c: Likewise.
6935         * math/s_tanhl.c: Likewise.
6936         * misc/acct.c: Likewise.
6937         * misc/brk.c: Likewise.
6938         * misc/chflags.c: Likewise.
6939         * misc/chroot.c: Likewise.
6940         * misc/fchflags.c: Likewise.
6941         * misc/fgetxattr.c: Likewise.
6942         * misc/flistxattr.c: Likewise.
6943         * misc/fremovexattr.c: Likewise.
6944         * misc/fsetxattr.c: Likewise.
6945         * misc/fsync.c: Likewise.
6946         * misc/ftruncate.c: Likewise.
6947         * misc/futimes.c: Likewise.
6948         * misc/futimesat.c: Likewise.
6949         * misc/getdomain.c: Likewise.
6950         * misc/getdtsz.c: Likewise.
6951         * misc/gethostid.c: Likewise.
6952         * misc/gethostname.c: Likewise.
6953         * misc/getloadavg.c: Likewise.
6954         * misc/getpagesize.c: Likewise.
6955         * misc/getsysstats.c: Likewise.
6956         * misc/getxattr.c: Likewise.
6957         * misc/gtty.c: Likewise.
6958         * misc/ioctl.c: Likewise.
6959         * misc/lgetxattr.c: Likewise.
6960         * misc/listxattr.c: Likewise.
6961         * misc/llistxattr.c: Likewise.
6962         * misc/lremovexattr.c: Likewise.
6963         * misc/lsetxattr.c: Likewise.
6964         * misc/lutimes.c: Likewise.
6965         * misc/madvise.c: Likewise.
6966         * misc/mincore.c: Likewise.
6967         * misc/mlock.c: Likewise.
6968         * misc/mlockall.c: Likewise.
6969         * misc/mmap.c: Likewise.
6970         * misc/mprotect.c: Likewise.
6971         * misc/msync.c: Likewise.
6972         * misc/munlock.c: Likewise.
6973         * misc/munlockall.c: Likewise.
6974         * misc/munmap.c: Likewise.
6975         * misc/preadv.c: Likewise.
6976         * misc/preadv64.c: Likewise.
6977         * misc/ptrace.c: Likewise.
6978         * misc/pwritev.c: Likewise.
6979         * misc/pwritev64.c: Likewise.
6980         * misc/readv.c: Likewise.
6981         * misc/reboot.c: Likewise.
6982         * misc/remap_file_pages.c: Likewise.
6983         * misc/removexattr.c: Likewise.
6984         * misc/revoke.c: Likewise.
6985         * misc/select.c: Likewise.
6986         * misc/setdomain.c: Likewise.
6987         * misc/setegid.c: Likewise.
6988         * misc/seteuid.c: Likewise.
6989         * misc/sethostid.c: Likewise.
6990         * misc/sethostname.c: Likewise.
6991         * misc/setregid.c: Likewise.
6992         * misc/setreuid.c: Likewise.
6993         * misc/setxattr.c: Likewise.
6994         * misc/sstk.c: Likewise.
6995         * misc/stty.c: Likewise.
6996         * misc/swapoff.c: Likewise.
6997         * misc/swapon.c: Likewise.
6998         * misc/sync.c: Likewise.
6999         * misc/syncfs.c: Likewise.
7000         * misc/syscall.c: Likewise.
7001         * misc/truncate.c: Likewise.
7002         * misc/ualarm.c: Likewise.
7003         * misc/usleep.c: Likewise.
7004         * misc/ustat.c: Likewise.
7005         * misc/utimes.c: Likewise.
7006         * misc/vhangup.c: Likewise.
7007         * misc/writev.c: Likewise.
7008         * posix/_exit.c: Likewise.
7009         * posix/alarm.c: Likewise.
7010         * posix/execve.c: Likewise.
7011         * posix/fexecve.c: Likewise.
7012         * posix/fork.c: Likewise.
7013         * posix/fpathconf.c: Likewise.
7014         * posix/getaddrinfo.c: Likewise.
7015         * posix/getegid.c: Likewise.
7016         * posix/geteuid.c: Likewise.
7017         * posix/getgid.c: Likewise.
7018         * posix/getgroups.c: Likewise.
7019         * posix/getlogin.c: Likewise.
7020         * posix/getlogin_r.c: Likewise.
7021         * posix/getpgid.c: Likewise.
7022         * posix/getpid.c: Likewise.
7023         * posix/getppid.c: Likewise.
7024         * posix/getresgid.c: Likewise.
7025         * posix/getresuid.c: Likewise.
7026         * posix/getsid.c: Likewise.
7027         * posix/getuid.c: Likewise.
7028         * posix/glob64.c: Likewise.
7029         * posix/nanosleep.c: Likewise.
7030         * posix/pathconf.c: Likewise.
7031         * posix/pause.c: Likewise.
7032         * posix/posix_madvise.c: Likewise.
7033         * posix/pread.c: Likewise.
7034         * posix/pread64.c: Likewise.
7035         * posix/pwrite.c: Likewise.
7036         * posix/pwrite64.c: Likewise.
7037         * posix/sched_getaffinity.c: Likewise.
7038         * posix/sched_getp.c: Likewise.
7039         * posix/sched_gets.c: Likewise.
7040         * posix/sched_primax.c: Likewise.
7041         * posix/sched_primin.c: Likewise.
7042         * posix/sched_rr_gi.c: Likewise.
7043         * posix/sched_setaffinity.c: Likewise.
7044         * posix/sched_setp.c: Likewise.
7045         * posix/sched_sets.c: Likewise.
7046         * posix/sched_yield.c: Likewise.
7047         * posix/setgid.c: Likewise.
7048         * posix/setlogin.c: Likewise.
7049         * posix/setpgid.c: Likewise.
7050         * posix/setresgid.c: Likewise.
7051         * posix/setresuid.c: Likewise.
7052         * posix/setsid.c: Likewise.
7053         * posix/setuid.c: Likewise.
7054         * posix/sleep.c: Likewise.
7055         * posix/spawni.c: Likewise.
7056         * posix/sysconf.c: Likewise.
7057         * posix/times.c: Likewise.
7058         * posix/wait.c: Likewise.
7059         * posix/wait3.c: Likewise.
7060         * posix/wait4.c: Likewise.
7061         * posix/waitpid.c: Likewise.
7062         * resolv/gai_sigqueue.c: Likewise.
7063         * resource/getpriority.c: Likewise.
7064         * resource/getrlimit.c: Likewise.
7065         * resource/getrusage.c: Likewise.
7066         * resource/nice.c: Likewise.
7067         * resource/setpriority.c: Likewise.
7068         * resource/setrlimit.c: Likewise.
7069         * resource/ulimit.c: Likewise.
7070         * rt/aio_cancel.c: Likewise.
7071         * rt/aio_fsync.c: Likewise.
7072         * rt/aio_read.c: Likewise.
7073         * rt/aio_sigqueue.c: Likewise.
7074         * rt/aio_suspend.c: Likewise.
7075         * rt/aio_write.c: Likewise.
7076         * rt/clock_getres.c: Likewise.
7077         * rt/clock_gettime.c: Likewise.
7078         * rt/clock_nanosleep.c: Likewise.
7079         * rt/clock_settime.c: Likewise.
7080         * rt/lio_listio.c: Likewise.
7081         * rt/mq_close.c: Likewise.
7082         * rt/mq_getattr.c: Likewise.
7083         * rt/mq_notify.c: Likewise.
7084         * rt/mq_open.c: Likewise.
7085         * rt/mq_receive.c: Likewise.
7086         * rt/mq_send.c: Likewise.
7087         * rt/mq_setattr.c: Likewise.
7088         * rt/mq_timedreceive.c: Likewise.
7089         * rt/mq_timedsend.c: Likewise.
7090         * rt/mq_unlink.c: Likewise.
7091         * rt/shm_open.c: Likewise.
7092         * rt/shm_unlink.c: Likewise.
7093         * rt/timer_create.c: Likewise.
7094         * rt/timer_delete.c: Likewise.
7095         * rt/timer_getoverr.c: Likewise.
7096         * rt/timer_gettime.c: Likewise.
7097         * rt/timer_settime.c: Likewise.
7098         * setjmp/__longjmp.c: Likewise.
7099         * setjmp/setjmp.c: Likewise.
7100         * signal/kill.c: Likewise.
7101         * signal/killpg.c: Likewise.
7102         * signal/raise.c: Likewise.
7103         * signal/sigaction.c: Likewise.
7104         * signal/sigaltstack.c: Likewise.
7105         * signal/sigblock.c: Likewise.
7106         * signal/sigignore.c: Likewise.
7107         * signal/sigintr.c: Likewise.
7108         * signal/signal.c: Likewise.
7109         * signal/sigpause.c: Likewise.
7110         * signal/sigpending.c: Likewise.
7111         * signal/sigqueue.c: Likewise.
7112         * signal/sigreturn.c: Likewise.
7113         * signal/sigset.c: Likewise.
7114         * signal/sigsetmask.c: Likewise.
7115         * signal/sigstack.c: Likewise.
7116         * signal/sigsuspend.c: Likewise.
7117         * signal/sigtimedwait.c: Likewise.
7118         * signal/sigvec.c: Likewise.
7119         * signal/sigwait.c: Likewise.
7120         * signal/sigwaitinfo.c: Likewise.
7121         * signal/sysv_signal.c: Likewise.
7122         * socket/accept.c: Likewise.
7123         * socket/accept4.c: Likewise.
7124         * socket/bind.c: Likewise.
7125         * socket/connect.c: Likewise.
7126         * socket/getpeername.c: Likewise.
7127         * socket/getsockname.c: Likewise.
7128         * socket/getsockopt.c: Likewise.
7129         * socket/isfdtype.c: Likewise.
7130         * socket/listen.c: Likewise.
7131         * socket/recv.c: Likewise.
7132         * socket/recvfrom.c: Likewise.
7133         * socket/recvmsg.c: Likewise.
7134         * socket/send.c: Likewise.
7135         * socket/sendmsg.c: Likewise.
7136         * socket/sendto.c: Likewise.
7137         * socket/setsockopt.c: Likewise.
7138         * socket/shutdown.c: Likewise.
7139         * socket/sockatmark.c: Likewise.
7140         * socket/socket.c: Likewise.
7141         * socket/socketpair.c: Likewise.
7142         * stdio-common/ctermid.c: Likewise.
7143         * stdio-common/cuserid.c: Likewise.
7144         * stdio-common/remove.c: Likewise.
7145         * stdio-common/rename.c: Likewise.
7146         * stdio-common/renameat.c: Likewise.
7147         * stdio-common/tempname.c: Likewise.
7148         * stdlib/getcontext.c: Likewise.
7149         * stdlib/makecontext.c: Likewise.
7150         * stdlib/setcontext.c: Likewise.
7151         * stdlib/swapcontext.c: Likewise.
7152         * stdlib/system.c: Likewise.
7153         * streams/fattach.c: Likewise.
7154         * streams/fdetach.c: Likewise.
7155         * streams/getmsg.c: Likewise.
7156         * streams/getpmsg.c: Likewise.
7157         * streams/putmsg.c: Likewise.
7158         * streams/putpmsg.c: Likewise.
7159         * sysdeps/unix/bsd/getpt.c: Likewise.
7160         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7161         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7162         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7164         Likewise.
7165         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7166         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7167         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7168         * sysvipc/msgctl.c: Likewise.
7169         * sysvipc/msgget.c: Likewise.
7170         * sysvipc/msgrcv.c: Likewise.
7171         * sysvipc/msgsnd.c: Likewise.
7172         * sysvipc/semctl.c: Likewise.
7173         * sysvipc/semget.c: Likewise.
7174         * sysvipc/semop.c: Likewise.
7175         * sysvipc/semtimedop.c: Likewise.
7176         * sysvipc/shmat.c: Likewise.
7177         * sysvipc/shmctl.c: Likewise.
7178         * sysvipc/shmdt.c: Likewise.
7179         * sysvipc/shmget.c: Likewise.
7180         * termios/tcdrain.c: Likewise.
7181         * termios/tcflow.c: Likewise.
7182         * termios/tcflush.c: Likewise.
7183         * termios/tcgetattr.c: Likewise.
7184         * termios/tcgetpgrp.c: Likewise.
7185         * termios/tcsendbrk.c: Likewise.
7186         * termios/tcsetattr.c: Likewise.
7187         * termios/tcsetpgrp.c: Likewise.
7188         * time/adjtime.c: Likewise.
7189         * time/clock.c: Likewise.
7190         * time/getitimer.c: Likewise.
7191         * time/gettimeofday.c: Likewise.
7192         * time/setitimer.c: Likewise.
7193         * time/settimeofday.c: Likewise.
7194         * time/stime.c: Likewise.
7195         * time/time.c: Likewise.
7196
7197 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7198
7199         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7200         /usr/old/bin.
7201
7202         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7203         instead of spaces.
7204         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7205
7206 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7207
7208         [BZ #14796]
7209         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7210         FE_TONEAREST before applying Dekker multiplication and Knuth
7211         addition.  Clear inexact exceptions and check for exact zero
7212         results afterwards.
7213         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7214         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7215         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7216         * math/libm-test.inc (fma_test): Add more tests.
7217         (fma_test_towardzero): Likewise.
7218         (fma_test_downward): Likewise.
7219         (fma_test_upward): Likewise.
7220         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7221         function.
7222         (libc_fesetround): New macro.
7223         (libc_fesetroundf): Likewise.
7224         (libc_fesetroundl): Likewise.
7225         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7226         function.
7227         (libc_fesetround_387): Likewise.
7228         (libc_fesetroundf): New macro.
7229         (libc_fesetround): Likewise.
7230         (libc_fesetroundl): Likewise.
7231         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7232         function.
7233         (libc_fesetroundf): New macro.
7234         (libc_fesetround): Likewise.
7235         (libc_fesetroundl): Likewise.
7236         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7237         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7238         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7239         libm_hidden_ver.
7240         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7241         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7242         libm_hidden_def.
7243         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7244         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7245         libm_hidden_ver.
7246         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7247         libm_hidden_def.
7248
7249         [BZ #3439]
7250         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7251         integer constant usable in #if and use that to give value to enum
7252         constant.
7253         (FE_DIVBYZERO): Likewise.
7254         (FE_UNDERFLOW): Likewise.
7255         (FE_OVERFLOW): Likewise.
7256         (FE_INVALID): Likewise.
7257         (FE_INVALID_SNAN): Likewise.
7258         (FE_INVALID_ISI): Likewise.
7259         (FE_INVALID_IDI): Likewise.
7260         (FE_INVALID_ZDZ): Likewise.
7261         (FE_INVALID_IMZ): Likewise.
7262         (FE_INVALID_COMPARE): Likewise.
7263         (FE_INVALID_SOFTWARE): Likewise.
7264         (FE_INVALID_SQRT): Likewise.
7265         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7266         (FE_TONEAREST): Likewise.
7267         (FE_TOWARDZERO): Likewise.
7268         (FE_UPWARD): Likewise.
7269         (FE_DOWNWARD): Likewise.
7270         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7271         (FE_DIVBYZERO): Likewise.
7272         (FE_OVERFLOW): Likewise.
7273         (FE_UNDERFLOW): Likewise.
7274         (FE_INEXACT): Likewise.
7275         (FE_TONEAREST): Likewise.
7276         (FE_DOWNWARD): Likewise.
7277         (FE_UPWARD): Likewise.
7278         (FE_TOWARDZERO): Likewise.
7279         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7280         (FE_UNDERFLOW): Likewise.
7281         (FE_OVERFLOW): Likewise.
7282         (FE_DIVBYZERO): Likewise.
7283         (FE_INVALID): Likewise.
7284         (FE_TONEAREST): Likewise.
7285         (FE_TOWARDZERO): Likewise.
7286         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7287         (FE_OVERFLOW): Likewise.
7288         (FE_UNDERFLOW): Likewise.
7289         (FE_DIVBYZERO): Likewise.
7290         (FE_INEXACT): Likewise.
7291         (FE_TONEAREST): Likewise.
7292         (FE_TOWARDZERO): Likewise.
7293         (FE_UPWARD): Likewise.
7294         (FE_DOWNWARD): Likewise.
7295         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7296         (FE_DIVBYZERO): Likewise.
7297         (FE_OVERFLOW): Likewise.
7298         (FE_UNDERFLOW): Likewise.
7299         (FE_INEXACT): Likewise.
7300         (FE_TONEAREST): Likewise.
7301         (FE_DOWNWARD): Likewise.
7302         (FE_UPWARD): Likewise.
7303         (FE_TOWARDZERO): Likewise.
7304
7305 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7306
7307         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7308
7309 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7310
7311         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7312         commands.  Quote $PWD.
7313         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7314         -x" by "export".
7315         (remove_newlines): Remove.
7316
7317 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7318
7319         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7320         * stdlib/stdlib.h (atof): Moved to ...
7321         * include/bits/stdlib-float.h: Here.  New file.
7322         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7323         * stdlib/bits/stdlib-float.h: New file.
7324         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7325         -mno-sse -mno-mmx.
7326         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7327         <xmmintrin.h>.
7328
7329 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7330
7331         * conform/conformtest.pl (@headers): Add fenv.h.
7332         * conform/data/fenv.h-data: New file.
7333         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7334         include of <math/fenv.h>.
7335
7336         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
7337         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
7338         && !UNIX98].  Enables tests for XOPEN2K8.
7339         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
7340         POSIX2008]: Likewise.
7341
7342         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
7343         (struct rusage): Do not expect type or its members.
7344
7345         [BZ #3439]
7346         * math/math.h (FP_NAN): Define macro to integer constant usable in
7347         #if and use that to give value to enum constant.
7348         (FP_INFINITE): Likewise.
7349         (FP_ZERO): Likewise.
7350         (FP_SUBNORMAL): Likewise.
7351         (FP_NORMAL): Likewise.
7352
7353 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
7354
7355         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
7356         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
7357         arguments.
7358
7359 2012-11-02  Roland McGrath  <roland@hack.frob.com>
7360
7361         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
7362         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
7363         autoconf-time if not.
7364         * configure.in: Remove AC_PREREQ.
7365
7366 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7367
7368         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
7369         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
7370         of the internal implementation.
7371
7372 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7373
7374         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
7375         except include of <misc/sys/syslog.h>.
7376
7377 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7378
7379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
7380         function returns with a NULL context exit with zero.
7381
7382 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7383
7384         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
7385
7386 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
7387
7388         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
7389         (run_program_cmd): This.
7390         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
7391         (tst_langinfo): New variable.  Use it.
7392
7393 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
7394
7395         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
7396         floating point opcodes.
7397
7398 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7399
7400         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
7401         variable.
7402
7403         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
7404
7405         * sysdeps/mach/hurd/powerpc: Remove directory.
7406         * sysdeps/mach/powerpc: Likewise.
7407
7408 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7409
7410         * scripts/check-local-headers.sh: Ignore c++ headers.
7411
7412 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7413
7414         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
7415         __libc_cleanup_region_start argument.
7416
7417 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
7418
7419         [BZ #14784]
7420         [BZ #14785]
7421         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
7422         x * y using scaling, not as x * y + z.
7423         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7424         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7425         * math/libm-test.inc (fma_test): Add more tests.
7426         (fma_test_towardzero): Likewise.
7427         (fma_test_downward): Likewise.
7428         (fma_test_upward): Likewise.
7429
7430 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7431
7432         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
7433
7434 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7435
7436         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
7437         New variable.
7438
7439 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
7440
7441         * rt/tst-shm.c (worker): Correct checking for mmap failure.
7442
7443 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7444
7445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7446         Fix sort order.
7447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7448         Likewise.
7449
7450 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7451
7452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7453         Fix the order of the list for glibc 2.17.
7454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7455         Likewise.
7456
7457 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7458
7459         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7460
7461 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7462
7463         [BZ #14610]
7464         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
7465         for low part of x being zero before using __atanl (y).
7466         * math/libm-test.inc (atan2_test): Add another test.
7467
7468         * manual/install.texi (Configuring and compiling): Document
7469         general use of test-wrapper and test-wrapper-env.
7470         * INSTALL: Regenerated.
7471
7472         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
7473         (__fma): Do not extract and scale down low bits on after-rounding
7474         systems when result rounded to normal precision would have normal
7475         exponent.
7476         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
7477         (__fmal): Do not extract and scale down low bits on after-rounding
7478         systems when result rounded to normal precision would have normal
7479         exponent.
7480         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
7481         (__fmal): Do not extract and scale down low bits on after-rounding
7482         systems when result rounded to normal precision would have normal
7483         exponent.
7484         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
7485         macro.
7486         (fma_test): Add more tests.
7487         (fma_test_towardzero): Likewise.
7488         (fma_test_downward): Likewise.
7489         (fma_test_upward): Likewise.
7490
7491 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7492
7493         * sysdeps/i386/tininess.h: Renamed to ...
7494         * sysdeps/x86/tininess.h: This.
7495         * sysdeps/x86_64/tininess.h: Removed.
7496
7497 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7498
7499         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
7500         input.  Use $(build-program-cmd).
7501         ($(objpfx)tst-array1-static.out): Likewise.
7502         ($(objpfx)tst-array2.out): Likewise.
7503         ($(objpfx)tst-array3.out): Likewise.
7504         ($(objpfx)tst-array4.out): Likewise.
7505         ($(objpfx)tst-array5.out): Likewise.
7506         ($(objpfx)tst-array5-static.out): Likewise.
7507
7508 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
7509
7510         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
7511         if defined.
7512
7513         * nss/nsswitch.h (nss_interface_function): Provide new
7514         macro for use with NSS functions.
7515         * grp/initgroups.c: Use new macro.
7516         * nss/getXXbyYY.c: Likewise.
7517         * nss/getXXbyYY_r.c: Likewise.
7518         * nss/getXXent.c: Likewise.
7519         * nss/getXXent_r.c: Likewise.
7520         * sysdeps/posix/getaddrinfo.c: Likewise.
7521
7522 2012-10-30  Andreas Jaeger  <aj@suse.de>
7523
7524         * po/ru.po: Update Russion translation from translation project.
7525
7526 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7527
7528         [BZ #14152]
7529         [BZ #14783]
7530         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
7531         result and shift together with sticky bit instead of replicating
7532         round-to-nearest rounding.
7533         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7534         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7535         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
7536         missing underflow exceptions.
7537         (fma_test_towardzero): Add more tests.
7538         (fma_test_downward): Likewise.
7539         (fma_test_upward): Likewise.
7540
7541         [BZ #14047]
7542         * sysdeps/generic/tininess.h: New file.
7543         * sysdeps/i386/tininess.h: Likewise.
7544         * sysdeps/sh/tininess.h: Likewise.
7545         * sysdeps/x86_64/tininess.h: Likewise.
7546         * stdlib/tst-strtod-underflow.c: Likewise.
7547         * stdlib/tst-tininess.c: Likewise.
7548         * stdlib/strtod_l.c: Include <tininess.h>.
7549         (round_and_return): Do not set errno for exact underflow cases.
7550         Force an underflow exception when setting errno for underflow.
7551         Determine underflow based on rounding to normal precision if
7552         TININESS_AFTER_ROUNDING.
7553         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
7554         ERANGE for exact underflow cases.
7555         * stdlib/Makefile (tests): Add tst-tininess and
7556         tst-strtod-underflow.
7557         ($(objpfx)tst-tininess): Use $(link-libm).
7558         ($(objpfx)tst-strtod-underflow): Likewise.
7559
7560 2012-10-30  Andreas Jaeger  <aj@suse.de>
7561
7562         [BZ#14767]
7563         * elf/Makefile (tests): Remove conditional for have-initfini-array
7564         since this is now always required and the variable does not exist
7565         anymore.
7566         (tests-static): Likewise.
7567         (modules-names): Likewise.
7568
7569         * po/eo.po: Add Esperanto translation from translation project.
7570
7571         * elf/tst-array1.c (fini_array): Make writeable so that it can be
7572         merged with constructor/destructor.
7573         (init_array): Likewise.
7574         * elf/tst-array2dep.c (fini_array): Likewise.
7575         (init_array): Likewise.
7576
7577 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
7578
7579         * manual/message.texi: Delete @cartouche tags.
7580
7581 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
7582
7583         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
7584         EOPNOTSUPP.
7585         * sysdeps/mach/hurd/fsync.c: Likewise.
7586
7587         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
7588         [_POSIX_REALTIME_SIGNALS]: Change condition to
7589         [_POSIX_REALTIME_SIGNALS > 0].
7590
7591 2012-10-27  Andreas Jaeger  <aj@suse.de>
7592
7593         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
7594         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
7595         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
7596         [__WORDSIZE != 64]: Likewise.
7597
7598 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
7599
7600         *  iconvdata/tst-table.sh: Remove ${SHELL}.
7601         *  iconvdata/tst-tables.sh: Likewise.
7602
7603 2012-10-25  David S. Miller  <davem@davemloft.net>
7604
7605         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7606         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
7607         of strtoull.
7608
7609         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
7610         ifunc-impl-list.c
7611         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7612         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
7613         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
7614         file.
7615
7616 2012-10-25  Roland McGrath  <roland@hack.frob.com>
7617
7618         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7619         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
7620         __getdirentries.
7621
7622 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7623             Jim Blandy  <jimb@codesourcery.com>
7624
7625         * scripts/cross-test-ssh.sh: New file.
7626         * manual/install.texi (Configuring and compiling): Document use of
7627         cross-test-ssh.sh.
7628         * INSTALL: Regenerated.
7629
7630 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
7631
7632         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
7633         EOPNOTSUPP.
7634
7635 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7636
7637         * Makeconfig (run-program-prefix): Fix comment.
7638
7639 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7640             Jim Blandy  <jimb@codesourcery.com>
7641
7642         * Makeconfig (test-wrapper): New variable,
7643         (test-wrapper-env): Likewise.
7644         [$(cross-compiling) = yes && $(test-wrapper) != ""]
7645         (run-built-tests): Define to yes.
7646         (run-program-prefix): Use $(test-wrapper).
7647         (built-program-cmd): Likewise.
7648         * Rules (make-test-out): Use $(test-wrapper-env) and
7649         $(host-built-program-cmd).
7650         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
7651         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
7652         tst-pathopt.sh.
7653         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
7654         $(test-wrapper-env) to tst-rtld-load-self.sh.
7655         ($(objpfx)order2.out): Use $(test-wrapper).
7656         ($(objpfx)tst-initorder.out): Likewise.
7657         ($(objpfx)tst-initorder2.out): Likewise.
7658         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
7659         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
7660         (test_wrapper_env): New variable.  Use it to run ld.so.
7661         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
7662         Use it to run ld.so.
7663         (test_wrapper_env): Likewise.
7664         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
7665         $(test-wrapper) to run-iconv-test.sh.
7666         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
7667         (ICONV): Use $test_wrapper.
7668         * posix/Makefile ($(objpfx)globtest.out): Pass
7669         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
7670         globtest.sh, not $(run-program-prefix).
7671         * posix/globtest.sh (run_via_rtld_prefix): New variable.
7672         (test_wrapper): Likewise.
7673         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
7674         set together with run_via_rtld_prefix.
7675         (run_program_prefix): Define in terms of test_wrapper and
7676         run_via_rtld_prefix.
7677
7678 2012-10-24  Roland McGrath  <roland@hack.frob.com>
7679
7680         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
7681         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
7682         Targets removed.
7683
7684         [BZ #14743]
7685         * include/time.h: Remove librt_hidden_proto (clock_gettime).
7686         Declare __clock_getres, __clock_gettime, __clock_settime,
7687         __clock_nanosleep, and __clock_getcpuclockid.
7688         * rt/clock_gettime.c: Define __clock_gettime as an alias.
7689         Remove librt_hidden_def (clock_gettime).
7690         * sysdeps/unix/clock_gettime.c: Likewise.
7691         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
7692         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
7693         * rt/clock_getres.c: Define __clock_getres as an alias.
7694         * sysdeps/posix/clock_getres.c: Likewise.
7695         * rt/clock_settime.c: Define __clock_settime as an alias.
7696         * sysdeps/unix/clock_settime.c: Likewise.
7697         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
7698         * sysdeps/unix/clock_nanosleep.c: Likewise.
7699         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
7700         * rt/clock-compat.c: New file.
7701         * rt/Makefile (librt-routines): Add clock-compat and move
7702         $(clock-routines) to ...
7703         (routines): ... here, new variable.
7704         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
7705         Don't add get_clockfreq here.
7706         * rt/Versions (libc: GLIBC_2.17): New version set.
7707         Add clock_* symbols here.
7708         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
7709         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
7710         (GLIBC_2.17): Add clock_* symbols.
7711         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
7712         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
7713         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
7714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7715         Likewise.
7716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7717         Likewise.
7718         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
7719         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
7720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
7721         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
7722         * NEWS: Mention the move.
7723
7724         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
7725         Use __open, __read, __close rather than their public counterparts.
7726         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7727         (__get_clockfreq_via_cpuinfo): Likewise.
7728         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
7729         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
7730
7731         * config.h.in (HAVE_IFUNC): New #undef.
7732         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
7733         was successful.
7734         * configure: Regenerated.
7735
7736 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7737
7738         * configure.in: Move READELF check to start of file.
7739         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
7740         libc_cv_asm_gnu_indirect_function in the process.
7741         * configure: Regenerated.
7742
7743 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7744
7745         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
7746         send the output to /dev/null.
7747         (libc_cv_cc_with_libunwind): Likewise.
7748         (libc_cv_as_noexecstack): Likewise.
7749         * configure: Regenerate.
7750
7751 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7752
7753         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
7754
7755         * posix/globtest.sh (TMPDIR): Do not set.
7756         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
7757         (testout): Likewise.
7758
7759 2012-10-24  Andreas Jaeger  <aj@suse.de>
7760
7761         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
7762         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
7763         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
7764         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
7765         posix_fadvise64, posix_fallocate64.
7766
7767         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
7768         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
7769         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
7770         Likewise.
7771         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
7772         Likewise.
7773         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
7774
7775         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
7776         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
7777         <bits/fcntl-linux.h>.
7778         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
7779
7780         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
7781         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
7782         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
7783         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
7784         [__WORDSIZE != 64]: Likewise.
7785
7786 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7787
7788         * Makeconfig (run-built-tests): New variable.
7789         * Rules [$(cross-compiling) = yes]: Change condition to
7790         [$(run-built-tests) = no].
7791         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
7792         to [$(run-built-tests) = yes].
7793         * elf/Makefile [$(cross-compiling) = no]: Likewise
7794         * grp/Makefile [$(cross-compiling) = no]: Likewise.
7795         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
7796         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
7797         * intl/Makefile [$(cross-compiling) = no]: Likewise.
7798         * io/Makefile [$(cross-compiling) = no]: Likewise.
7799         * libio/Makefile [$(cross-compiling) = no]: Likewise.
7800         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
7801         * misc/Makefile [$(cross-compiling) = no]: Likewise.
7802         * posix/Makefile [$(cross-compiling) = no]: Likewise.
7803         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
7804         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
7805         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
7806         * string/Makefile [$(cross-compiling) = no]: Likewise.
7807
7808         * posix/Makefile ($(objpfx)globtest.out): Pass
7809         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
7810         $(rtld-installed-name).
7811         * posix/globtest.sh (elf_objpfx): Remove variable.
7812         (rtld_installed_name): Likewise.
7813         (library_path): Likewise.
7814         (run_program_prefix): New variable.  Use for running globtest
7815         binary.
7816
7817 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
7818             Joseph Myers  <joseph@codesourcery.com>
7819
7820         * Makeconfig (host-built-program-cmd): New variable.
7821         * elf/Makefile (tst-stackguard1-ARGS): Use
7822         $(host-built-program-cmd).
7823         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
7824         (tst-spawn-ARGS): Likewise.
7825         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
7826
7827 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7828             Jim Blandy  <jimb@codesourcery.com>
7829
7830         * Makeconfig (run-via-rtld-prefix): New variable.
7831         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
7832         (built-program-cmd): Likewise.
7833
7834 2012-10-22  Andreas Jaeger  <aj@suse.de>
7835
7836         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
7837         __O_RSYNC if it exists, otherwise to O_SYNC.
7838
7839 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
7840             Joseph Myers  <joseph@codesourcery.com>
7841
7842         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
7843         /dev/null.
7844         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
7845         from /dev/null
7846         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
7847         /dev/null.
7848
7849 2012-10-22  Andreas Jaeger  <aj@suse.de>
7850
7851         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
7852         Define always.
7853         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
7854
7855         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7856         bits/fcntl-linux.h.
7857
7858         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
7859         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
7860
7861         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
7862         to __O_LARGEFILE.
7863         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
7864         to __O_LARGEFILE.
7865
7866 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
7867             Joseph Myers  <joseph@codesourcery.com>
7868
7869         * config.make.in (NM): New variable.
7870
7871 2012-10-21  Andreas Jaeger  <aj@suse.de>
7872
7873         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
7874         definitions and declarations that are provided by
7875         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7876
7877 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         [BZ #14683]
7880         * elf/Makefile (tests-static): Add tst-leaks1-static.
7881         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
7882         ($(objpfx)tst-leaks1-static): New rule.
7883         ($(objpfx)tst-leaks1-static-mem): Likewise.
7884         (tst-leaks1-static-ENV): New macro.
7885         * elf/dl-open.c (dl_open_worker): Check the main application
7886         only if SHARED is defined.
7887         * elf/tst-leaks1-static.c: New file.
7888
7889 2012-10-20  Andreas Jaeger  <aj@suse.de>
7890
7891         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
7892         generic values for Linux.
7893         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
7894         and declarations that are provided by <bits/fcntl-linux.h> and
7895         include <bits/fcntl-linux.h>.
7896         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7897         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7898
7899 2012-10-20  Roland McGrath  <roland@hack.frob.com>
7900
7901         * io/fcntl.h: Move include of <bits/types.h> to the top and
7902         include it unconditionally.
7903
7904 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7905
7906         * wcsmbs/Makefile (tests-ifunc): New variable.
7907         (tests): Add $(tests-ifunc).
7908         * wcsmbs/test-wcschr-ifunc.c: New file.
7909         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
7910         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
7911         * wcsmbs/test-wcslen-ifunc.c: Likewise.
7912         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
7913         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
7914
7915         * string/Makefile (tests-ifunc): New variable.
7916         (tests): Add $(tests-ifunc).
7917         * string/test-memccpy.c (TEST_NAME): New macro.
7918         * string/test-memchr.c (TEST_NAME): Likewise.
7919         * string/test-memcmp.c (TEST_NAME): Likewise.
7920         * string/test-memcpy.c (TEST_NAME): Likewise.
7921         * string/test-memmem.c (TEST_NAME): Likewise.
7922         * string/test-memmove.c (TEST_NAME): Likewise.
7923         * string/test-memset.c (TEST_NAME): Likewise.
7924         * string/test-rawmemchr.c (TEST_NAME): Likewise.
7925         * string/test-stpcpy.c (TEST_NAME): Likewise.
7926         * string/test-stpncpy.c (TEST_NAME): Likewise.
7927         * string/test-strcasecmp.c (TEST_NAME): Likewise.
7928         * string/test-strcasestr.c (TEST_NAME): Likewise.
7929         * string/test-strcat.c (TEST_NAME): Likewise.
7930         * string/test-strchr.c (TEST_NAME): Likewise.
7931         * string/test-strcmp.c(TEST_NAME): Likewise.
7932         * string/test-strcpy.c (TEST_NAME): Likewise.
7933         * string/test-strcspn.c (TEST_NAME): Likewise.
7934         * string/test-strlen.c (TEST_NAME): Likewise.
7935         * string/test-strncasecmp.c (TEST_NAME): Likewise.
7936         * string/test-strncmp.c (TEST_NAME): Likewise.
7937         * string/test-strncpy.c (TEST_NAME): Likewise.
7938         * string/test-strnlen.c (TEST_NAME): Likewise.
7939         * string/test-strpbrk.c (TEST_NAME): Likewise.
7940         * string/test-strrchr.c (TEST_NAME): Likewise.
7941         * string/test-strspn.c (TEST_NAME): Likewise.
7942         * string/test-strstr.c (TEST_NAME): Likewise.
7943         * string/test-bcopy-ifunc.c: New file.
7944         * string/test-bzero-ifunc.c: Likewise.
7945         * string/test-memccpy-ifunc.c: Likewise.
7946         * string/test-memchr-ifunc.c: Likewise.
7947         * string/test-memcmp-ifunc.c: Likewise.
7948         * string/test-memcpy-ifunc.c: Likewise.
7949         * string/test-memmem-ifunc.c: Likewise.
7950         * string/test-memmove-ifunc.c: Likewise.
7951         * string/test-mempcpy-ifunc.c: Likewise.
7952         * string/test-memset-ifunc.c: Likewise.
7953         * string/test-rawmemchr-ifunc.c: Likewise.
7954         * string/test-stpcpy-ifunc.c: Likewise.
7955         * string/test-stpncpy-ifunc.c: Likewise.
7956         * string/test-strcasecmp-ifunc.c: Likewise.
7957         * string/test-strcasestr-ifunc.c: Likewise.
7958         * string/test-strcat-ifunc.c: Likewise.
7959         * string/test-strchr-ifunc.c: Likewise.
7960         * string/test-strchrnul-ifunc.c: Likewise.
7961         * string/test-strcmp-ifunc.c: Likewise.
7962         * string/test-strcpy-ifunc.c: Likewise.
7963         * string/test-strcspn-ifunc.c: Likewise.
7964         * string/test-strlen-ifunc.c: Likewise.
7965         * string/test-strncasecmp-ifunc.c: Likewise.
7966         * string/test-strncat-ifunc.c: Likewise.
7967         * string/test-strncmp-ifunc.c: Likewise.
7968         * string/test-strncpy-ifunc.c: Likewise.
7969         * string/test-strnlen-ifunc.c: Likewise.
7970         * string/test-strpbrk-ifunc.c: Likewise.
7971         * string/test-strrchr-ifunc.c: Likewise.
7972         * string/test-strspn-ifunc.c: Likewise.
7973         * string/test-strstr-ifunc.c: Likewise.
7974
7975         * debug/Makefile (tests-ifunc): New variable.
7976         (tests): Add $(tests-ifunc).
7977         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
7978         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
7979         * debug/test-stpcpy_chk-ifunc.c: New file.
7980         * debug/test-strcpy_chk-ifunc.c: Likewise.
7981
7982 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7983
7984         [BZ #13601]
7985         * elf/dl-load.c (open_verify): Retry read if the entire ELF
7986         header is not read in.
7987
7988 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
7989
7990         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
7991         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
7992         directly.  Pass built executable to script as
7993         $(built-program-cmd).
7994         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
7995         $testprogram without using LD_LIBRARY_PATH and $ldso.
7996
7997         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
7998         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
7999         $(rtld-installed-name).
8000         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8001         (rtld_installed_name): Likewise.
8002         (library_path): Likewise.
8003         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8004         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8005         $(run-program-prefix) to tst-tables.sh.
8006         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8007         it to run tst-table-from and tst-table-to.
8008         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8009         Pass it to tst-table.sh.
8010         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8011         $(run-program-prefix) to tst-gettext.sh.
8012         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8013         tst-translit.sh.
8014         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8015         tst-gettext2.sh.
8016         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8017         to run tst-gettext.
8018         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8019         to run tst-gettext2.
8020         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8021         to run tst-translit.
8022         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8023         $(run-program-prefix) to tst-mtrace.sh.
8024         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8025         to run tst-mtrace.
8026         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8027         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8028         $(rtld-installed-name).
8029         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8030         (rtld_installed_name): Likewise.
8031         (run_program_prefix): New variable.  Use it to run wordexp-test.
8032
8033         * Makeconfig (ARCH): Remove all definitions.
8034         (machine): Likewise.
8035         [ARCH]: Remove conditional code.
8036         [!objdir]: Give error.
8037         [!objdir] (objpfx): Remove.
8038         [!objdir] (common-objpfx): Likewise.
8039         [!objdir] (common-objdir): Likewise.
8040         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8041         AC_CONFIG_FILES call.
8042         * configure: Regenerated.
8043
8044         [BZ #13888]
8045         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8046         or TMPDIR.
8047         (testout): Likewise.
8048
8049         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8050         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8051         $(rtld-installed-name).
8052         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8053         (rtld_installed_name): Likwise.
8054         (runit): Remove function.
8055         (run_getconf): New variable,  Use it for running getconf binary.
8056
8057 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8058
8059         [BZ #14716]
8060         * string/test-memmem.c (check_result): New function.
8061         (do_one_test): Use it.
8062         (check1): New function.
8063         (test_main): Use it.
8064
8065 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8066
8067         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8068
8069 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8070
8071         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8072         (_G_LSEEK64): Likewise.
8073         (_G_MMAP64): Likewise.
8074         (_G_FSTAT64): Likewise.
8075         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8076         (_G_LSEEK64): Likewise.
8077         (_G_MMAP64): Likewise.
8078         (_G_FSTAT64): Likewise.
8079         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8080         unconditional.  Call __mmap64 directly.
8081         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8082         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8083         __lseek64 directly.
8084         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8085         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8086         __mmap64 directly.
8087         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8088         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8089         __lseek64 directly.
8090         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8091         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8092         __lseek64 directly.
8093         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8094         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8095         __lseek64 directly.
8096         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8097         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8098         __fxstat64 directly.
8099         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8100         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8101         unconditional.
8102         (freopen64) [!_G_OPEN64]: Remove conditional code.
8103         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8104         unconditional.
8105         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8106         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8107         unconditional.
8108         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8109         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8110         unconditional.
8111         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8112         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8113         unconditional.
8114         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8115         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8116         unconditional.
8117         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8118         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8119         unconditional.
8120         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8121         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8122         unconditional.
8123         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8124
8125 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8126
8127         [BZ #12140]
8128         * manual/memory.texi (Malloc Tunable Parameters): Add note
8129         about free list pointers overwriting some perturb bytes.
8130         Wording suggested by Roland McGrath.
8131
8132 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8133
8134         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8135         (lgamma_test): Likewise.
8136         (tgamma_test): Likewise.
8137
8138 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8139
8140         [BZ #14700]
8141         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8142         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8143
8144 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8145
8146         * NEWS: Mention BZ #14716.
8147         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8148         when removing AVAILABLE1_USES_J macro.
8149
8150 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8151
8152         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8153         (__bswap_64): __uint64_t for unsigned 64-bit int.
8154
8155 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8156
8157         * include/string.h (memmem): Declare libc hidden alias.
8158         * string/memmem.c (memmem): Define libc hidden alias.
8159         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8160         __read, __close instead of open, read, close.
8161
8162 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8163
8164         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8165         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8166         global and hidden.
8167         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8168         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8169         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8170         Likewise.
8171         (__rawmemchr_sse2): Likewise.
8172         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8173         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8174         (__strchr_sse2): Likewise.
8175         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8176         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8177         (__strcasecmp_sse2): Likewise.
8178         (__strncasecmp_sse2): Likewise.
8179         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8180         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8181         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8182         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8183         (__strrchr_sse2): Likewise.
8184         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8185         ifunc-impl-list.c.
8186         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8187         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8188         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8189         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8190         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8191         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8192         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8193         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8194         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8195         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8196         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8197         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8198         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8199         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8200         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8201         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8202         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8203         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8204         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8205         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8206         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8207         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8208         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8209         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8210         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8211         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8212         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8213         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8214         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8215         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8216
8217         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8218         global and hidden.
8219         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8220         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8221         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8222         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8223         Likewise.
8224         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8225         Likewise.
8226         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8227         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8228         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8229         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8230         ifunc-impl-list.c.
8231         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8232         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8233         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8234         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8235         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8236         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8237         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8238         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8239         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8240         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8241         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8242         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8243         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8244         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8245         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8246         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8247         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8248         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8249         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8250         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8251         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8252         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8253         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8254         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8255         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8256         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8257         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8258         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8259         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8260         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8261         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8262         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8263         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8264         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8265         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8266         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8267         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8268         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8269         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8270         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8271         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8272
8273         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8274         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8275         * include/ifunc-impl-list.h: New file.
8276         * misc/ifunc-impl-list.c: Likewise.
8277         * misc/Makefile (routines): Add ifunc-impl-list.
8278         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8279         * string/test-string.h: Include <ifunc-impl-list.h>.
8280         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8281         impl_array): New variables.
8282         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8283         are defined.
8284         (test_init): Call __libc_ifunc_impl_list to initialize
8285         func_list if TEST_IFUNC and TEST_NAME are defined.
8286
8287         * string/Makefile (strop-tests): Add bcopy and bzero.
8288         * string/test-bcopy.c: New file.
8289         * string/test-bzero.c: Likewise.
8290         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8291         defined.
8292         * string/test-memset.c: Support bzero test if TEST_BZERO is
8293         defined.
8294         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8295         __libc_memmove.
8296         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8297         __libc_memset.
8298         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8299         of memset.
8300
8301 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8302
8303         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8304         * configure: Regenerated.
8305
8306         * Makeconfig (+link-static-before-libc): Don't include
8307         $(link-static-libc).
8308
8309         * libio/libio.h (_IO_pos_t): Remove.
8310
8311 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8312
8313         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8314         McGrath.
8315
8316 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8317
8318         * crypt/crypt-entry.c: Include fips-private.h.
8319         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8320         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8321         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8322         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8323
8324 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8325
8326         * crypt/crypt-private.h: Include stdbool.h.
8327         (_ufc_setup_salt_r): Return bool.
8328         * crypt/crypt-entry.c: Include errno.h.
8329         (__crypt_r): Return NULL with EINVAL for bad salt.
8330         * crypt/crypt_util.c (bad_for_salt): New.
8331         (_ufc_setup_salt_r): Check that salt is long enough and within
8332         the specified alphabet.
8333         * crypt/badsalttest.c: New file.
8334         * crypt/Makefile (tests): Add it.
8335         ($(objpfx)badsalttest): New.
8336
8337 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8338
8339         * NEWS: Add entry for BZ #14602.
8340
8341 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8342
8343         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
8344         type-generic.
8345         * math/libm-test.inc: Update comment listing what functions and
8346         macros are tested.
8347         (isgreater_test): New function.
8348         (isgreaterequal_test): Likewise.
8349         (isless_test): Likewise.
8350         (islessequal_test): Likewise.
8351         (islessgreater_test): Likewise.
8352         (isunordered_test): Likewise.
8353         (main): Call the new functions.
8354
8355 2012-10-09  Roland McGrath  <roland@hack.frob.com>
8356
8357         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
8358         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
8359         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
8360         * sysdeps/i386/configure: Regenerated.
8361         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
8362         * sysdeps/mach/configure: Regenerated.
8363         * sysdeps/mach/hurd/configure: Regenerated.
8364         * sysdeps/powerpc/configure: Regenerated.
8365         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8366         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8367         * sysdeps/s390/s390-32/configure: Regenerated.
8368         * sysdeps/s390/s390-64/configure: Regenerated.
8369         * sysdeps/sh/configure: Regenerated.
8370         * sysdeps/sparc/configure: Regenerated.
8371         * sysdeps/unix/sysv/linux/configure: Regenerated.
8372         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
8373         * sysdeps/x86_64/configure: Regenerated.
8374
8375         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
8376         defined.  Don't check if MAP is NULL.
8377
8378 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8379
8380         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
8381         (_G_stat64): Likewise.
8382         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
8383         (_G_stat64): Likewise.
8384         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
8385         instead of struct _G_stat64.
8386         * libio/fileops.c (mmap_remap_check): Likewise.
8387         (decide_maybe_mmap): Likewise.
8388         (_IO_new_file_seekoff): Likewise.
8389         (_IO_file_stat): Likewise.
8390         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
8391         _G_off64_t.
8392         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
8393         instead of struct _G_stat64.
8394         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8395
8396 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
8397
8398         [BZ #14602]
8399         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8400         Replace with ...
8401         (CHECK_EOL): New macro.
8402         (two_way_short_needle): Check beginning of haystack for EOL.  Use
8403         CHECK_EOL.
8404         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8405         Replace with CHECK_EOL.
8406         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8407         Replace with CHECK_EOL.
8408
8409 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
8410
8411         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
8412         type-generic.
8413         * math/libm-test.inc: Update comment listing what functions and
8414         macros are tested.
8415         (finite_test): New function.
8416         (isinf_test): Likewise.
8417         (isnan_test): Likewise.
8418         (fpclassify_test): Test subnormal input.
8419         (isfinite_test): Likewise.
8420         (isnormal_test): Likewise.
8421         (main): Call the new functions.
8422
8423 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
8424
8425         [BZ #14660]
8426         * Makerules (%.dynsym): Force C locale when running
8427         $(OBJDUMP) --dynamic-syms.
8428
8429 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
8430
8431         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
8432         <stdint.h>.
8433
8434 2012-10-06  David S. Miller  <davem@davemloft.net>
8435
8436         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
8437         upper 32-bits of the length value in %o2 since we use branch-on-register
8438         tests which consider the entire 64-bit register.
8439
8440 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
8441
8442         * string/test-strstr.c (check2): Add a test for page boundary.
8443
8444 2012-10-05  David S. Miller  <davem@davemloft.net>
8445
8446         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
8447         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
8448         file.
8449         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8450         sysdep_routines.
8451         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8452         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
8453         and bzero when HWCAP_SPARC_CRYPTO is present.
8454
8455 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
8456
8457         [BZ #14602]
8458         * string/test-strstr.c (check2): New function.
8459         (test_main): Call check2.
8460
8461         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
8462         and bug-strchr1.
8463         * string/bug-strcasestr1.c (do_test): Moved to ...
8464         * string/test-strcasestr.c (check1): Here.  New function.
8465         (do_one_test): Break out result checking code into ...
8466         (check_result): This.  New function.
8467         (do_one_test): Call check_result.
8468         (test_main): Call check1.
8469         * string/bug-strchr1.c (do_test): Moved to ...
8470         * string/test-strchr.c (check1): Here.  New function.
8471         (do_one_test): Break out result checking code into ...
8472         (check_result): This.  New function.
8473         (do_one_test): Call check_result.
8474         (test_main): Call check1.
8475         * string/bug-strstr1.c (main): Moved to ...
8476         * string/test-strstr.c (check1): Here.  New function.
8477         (do_one_test): Break out result checking code into ...
8478         (check_result): This.  New function.
8479         (do_one_test): Call check_result.
8480         (test_main): Call check1.
8481         * string/bug-strcasestr1.c: Removed.
8482         * string/bug-strchr1.c: Likewise.
8483         * string/bug-strstr1.c: Likewise.
8484
8485         * elf/Makefile (dl-routines): Add hwcaps.
8486         * elf/dl-support.c (_dl_important_hwcaps): Removed.
8487         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
8488         (_dl_important_hwcaps): Moved to ...
8489         * elf/dl-hwcaps.c: Here.  New file.
8490         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
8491
8492         [BZ #14557]
8493         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
8494         if IS_IN_rtld isn't defined.
8495
8496         * elf/dl-support.c (_dl_sysinfo_map): New.
8497         Include "get-dynamic-info.h" and "setup-vdso.h".
8498         (_dl_non_dynamic_init): Call setup_vdso.
8499         * elf/dynamic-link.h: Don't include <assert.h>.
8500         (elf_get_dynamic_info): Moved to ...
8501         * elf/get-dynamic-info.h: Here.  New file.
8502         * elf/dynamic-link.h: Include "get-dynamic-info.h".
8503         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
8504         * elf/setup-vdso.h: Here.  New file.
8505         * elf/rtld.c: Include "setup-vdso.h".
8506         (dl_main): Call setup_vdso.
8507
8508 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
8509
8510         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
8511         creal in comment listing functions tested.  List finite, isinf,
8512         isnan, isless, islessequal, isgreater, isgreaterequal,
8513         islessgreater, isunordered, lgamma_r and pow10 as functions and
8514         macros not tested.  Mention which functions not tested are aliases
8515         for other functions.  Fix typo.  Note that signs of NaNs are not
8516         tested.
8517
8518         * scripts/config.guess: Update from config.git.
8519         * scripts/config.sub: Likewise.
8520
8521 2012-10-04  Roland McGrath  <roland@hack.frob.com>
8522
8523         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
8524         * misc/madvise.c (madvise): Renamed to __madvise.
8525         Make madvise a weak alias.
8526         * include/sys/mman.h: Declare __madvise.
8527         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
8528         * sysdeps/unix/syscalls.list
8529         (madvise): Make __madvise the strong name, and madvise a weak alias.
8530         * sysdeps/unix/sysv/linux/syscalls.list
8531         (madvise, mmap): Remove redundant entries.
8532         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
8533         * malloc/malloc.c (mtrim): Likewise.
8534         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
8535
8536 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8537
8538         * sysdeps/mach/hurd/dl-cache.c: File removed.
8539         * config.h.in (USE_LDCONFIG): New #undef.
8540         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
8541         * configure: Regenerated.
8542         * elf/Makefile (dl-routines): Add dl-cache only under
8543         [$(use-ldconfig) = yes].
8544         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
8545         cache on [USE_LDCONFIG].
8546         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
8547         [USE_LDCONFIG].
8548         * elf/rtld.c (dl_main): Likewise.
8549
8550 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
8551
8552         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
8553         _SC_LEVEL4_CACHE_LINESIZE.
8554
8555 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8556
8557         * sysdeps/unix/bsd/confstr.h: File removed.
8558
8559 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
8560
8561         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
8562         sys/sdt-config.h.
8563
8564 2012-10-02  Roland McGrath  <roland@hack.frob.com>
8565
8566         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
8567         Make 'mapoff' field ElfW(Off) rather than off_t.
8568
8569 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8570
8571         * nscd/Makefile: Remove nscd-cflags and all its users.
8572         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
8573         (CFLAGS-nonlib): Add compiler flags for nscd modules.
8574
8575         [BZ #10631]
8576         * malloc.c (malloc_printerr): Clarify error message.
8577
8578 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8579
8580         [BZ #14648]
8581         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8582         Set bit_FMA_Usable if FMA is supported.
8583         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
8584         macro.
8585         (bit_FMA4_Usable): Updated.
8586         (index_FMA_Usable): New macro.
8587         (CPUID_FMA): Likewise
8588         (HAS_FMA): Defined with bit_FMA_Usable.
8589
8590 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8591
8592         * bits/types.h (__swblk_t): Type removed.
8593         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
8594         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
8595         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8596         (__SWBLK_T_TYPE): Likewise.
8597         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8598         (__SWBLK_T_TYPE): Likewise.
8599         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8600         (__SWBLK_T_TYPE): Likewise.
8601         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8602         (__SWBLK_T_TYPE): Likewise.
8603
8604 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
8605             Honza Horak <hhorak@redhat.com>
8606
8607         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
8608         (xdr_mapname): Use YPMAXMAP as maxsize.
8609         (xdr_peername): Use YPMAXPEER as maxsize.
8610         (xdr_keydat): Use YPAXRECORD as maxsize.
8611         (xdr_valdat): Use YPMAXRECORD as maxsize.
8612
8613 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8614
8615         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
8616
8617         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
8618         * csu/init-first.c: ... here.
8619         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
8620         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
8621         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
8622         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
8623         * sysdeps/i386/init-first.c: File removed.
8624         * sysdeps/sh/init-first.c: File removed.
8625
8626 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
8627
8628         [BZ #14645]
8629         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
8630         if x * y might underflow to zero and z is zero.
8631         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8632         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8633         * math/libm-test.inc (min_subnorm_value): New variable.
8634         (fma_test): Add more tests.
8635         (fma_test_towardzero): Likewise.
8636         (fma_test_downward): Likewise
8637         (fma_test_upward): Likewise.
8638         (initialize): Set min_subnorm_value.
8639
8640 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
8641
8642         [BZ #14638]
8643         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
8644         0 + 0.
8645         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
8646         mode for addition resulting in exact zero.
8647         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
8648         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
8649         exact 0 + 0.
8650         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8651         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8652         * math/libm-test.inc (fma_test): Add more tests.
8653         (fma_test_towardzero): New function.
8654         (fma_test_downward): Likewise.
8655         (fma_test_upward): Likewise.
8656         (main): Call the new functions.
8657
8658 2012-09-28  David S. Miller  <davem@davemloft.net>
8659
8660         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
8661
8662 2012-09-28  Roland McGrath  <roland@hack.frob.com>
8663
8664         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
8665         instead of SIGALRM.
8666
8667         * sysdeps/gnu/_G_config.h: Moved to ...
8668         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
8669         * sysdeps/mach/hurd/_G_config.h: Moved to ...
8670         * sysdeps/generic/_G_config.h: ... here.
8671
8672         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
8673
8674         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
8675
8676         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
8677         Conditionalize target on [libnss_test1.so-version].
8678
8679         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
8680
8681         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
8682         (elfobjdir): Move out of conditionals.
8683
8684         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
8685         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
8686         (__nss_lookup_function): Conditionalize label remove_from_tree on
8687         [!DO_STATIC_NSS || SHARED], matching its only use.
8688
8689 2012-09-28  David S. Miller  <davem@davemloft.net>
8690
8691         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
8692         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
8693         file.
8694         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8695         sysdep_routines.
8696         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8697         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
8698         when HWCAP_SPARC_CRYPTO is present.
8699
8700 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8701
8702         * io/tst-mknodat.c: Create a FIFO instead of a socket.
8703
8704 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
8705
8706         [BZ #6530]
8707         * stdio-common/vfprintf.c (process_string_arg): Revert
8708         2000-07-22 change.
8709
8710 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
8711
8712         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
8713         for testcase.
8714         * stdio-common/tst-sprintf.c: Include <locale.h>
8715         (main): Test sprintf's handling of incomplete multibyte
8716         characters.
8717
8718 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8719
8720         * elf/dl-runtime.c (VERSYMIDX): Removed.
8721         * elf/dl-version.c (VERSYMIDX): Likewise.
8722         * elf/do-rel.h (VERSYMIDX): Likewise.
8723         (VALIDX): Likewise.
8724         * elf/dynamic-link.h (VERSYMIDX): Likewise.
8725         * elf/rtld.c (VALIDX): Likewise.
8726         (ADDRIDX): Likewise.
8727         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
8728         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
8729         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
8730         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
8731         (VALIDX): Likewise.
8732         (ADDRIDX): Likewise.
8733
8734 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8735
8736         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
8737
8738 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
8739
8740         [BZ #11438]
8741         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
8742         to global scope.
8743         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
8744         addresses are in the same scope as 192.0.2/24.
8745         * posix/gai.conf: Document new scope table defaults.
8746
8747 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8748
8749         [BZ #5298]
8750         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
8751         for ftell.  Compute offsets from write pointers instead.
8752         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8753
8754 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8755
8756         [BZ #14543]
8757         * libio/Makefile (tests): New test case tst-fseek.
8758         * libio/tst-fseek.c: New test case to verify that fseek/ftell
8759         combination works in wide mode.
8760         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
8761         state when the external buffer state changes.
8762
8763 2012-09-27  David S. Miller  <davem@davemloft.net>
8764
8765         [BZ #14376]
8766         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
8767         pass reloc->r_addend in as the 'high' argument to
8768         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
8769
8770         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8771
8772 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8773
8774         * rt/tst-aio2.c: Include <pthread.h>.
8775         * rt/tst-aio3.c: Likewise.
8776
8777 2012-09-27  Steve Ellcey  <sellcey@mips.com>
8778
8779         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
8780
8781 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
8782
8783         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
8784         contents on [SHARED].
8785
8786 2012-09-26  Marek Polacek  <polacek@redhat.com>
8787
8788         [BZ #14530]
8789         [BZ #13741]
8790         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
8791         for C++ and GCC <4.3 as well as for non GCC compilers.
8792
8793 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
8794
8795         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8796
8797 2012-09-25  Roland McGrath  <roland@hack.frob.com>
8798
8799         * Makefile.in (all, install): Declare with .PHONY.
8800         Reported by Michael Hope <michael.hope@linaro.org>.
8801
8802 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8803
8804         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
8805         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
8806         system header.
8807         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
8808         Likewise.
8809         (sydep_routines): Add the new and the internal functions.
8810         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
8811         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
8812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
8813         (GLIBC_2.17): Add the new function.
8814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
8815         (GLIBC_2.17): Likewise.
8816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
8817         (GLIBC_2.17): Likewise.
8818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
8819         (GLIBC_2.17): Likewise.
8820         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
8821
8822 2012-09-25  Alan Modra  <amodra@gmail.com>
8823
8824         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8825         Add release barrier before setting once_control to say
8826         initialisation is done.  Add hints on lwarx.  Use macro in
8827         place of isync.
8828         (clear_once_control): Add release barrier.
8829
8830 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8831
8832         [BZ #13629]
8833         * math/s_clog.c (__clog): Handle more values close to |z| = 1
8834         specially.
8835         * math/s_clog10.c (__clog10): Likewise.
8836         * math/s_clog10f.c (__clog10f): Likewise.
8837         * math/s_clog10l.c (__clog10l): Likewise.
8838         * math/s_clogf.c (__clogf): Likewise.
8839         * math/s_clogl.c (__clogl): Likewise.
8840         * math/Makefile (libm-calls): Add x2y2m1.
8841         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
8842         (__x2y2m1): Likewise.
8843         (__x2y2m1l): Likewise.
8844         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
8845         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
8846         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8847         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8848         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
8849         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8850         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
8851         * sysdeps/i386/fpu/libm-test-ulps: Update.
8852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8853
8854         [BZ #14621]
8855         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
8856         int as type of variable DEPTH.
8857         (glob): Use size_t instead of int as type of variables NEWCOUNT
8858         and OLD_PATHC.
8859
8860 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8861
8862         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
8863         Add s_sincosf-sse2.
8864         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
8865         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
8866         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
8867         macros for using routine as __sincosf_ia32.
8868         Use macro for function declaration and weak_alias.
8869         * sysdeps/i386/fpu/libm-test-ulps: Update.
8870
8871         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
8872         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8873
8874         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
8875         subnormal argument.
8876         * math/s_cexpf.c (__cexpf): Likewise.
8877         * math/s_csinf.c (__csinf): Likewise.
8878         * math/s_csinhf.c (__csinhf): Likewise.
8879         * math/s_ctanf.c (__ctanf): Likewise.
8880         * math/s_ctanhf.c (__ctanhf): Likewise.
8881         * math/s_ccosh.c (__ccoshf): Likewise.
8882         * math/s_cexp.c (__cexpl): Likewise.
8883         * math/s_csin.c (__csin): Likewise.
8884         * math/s_csinh.c (__csinh): Likewise.
8885         * math/s_ctan.c (__ctan): Likewise.
8886         * math/s_ctanh.c (ctanh): Likewise.
8887         * math/s_ccoshl.c (__ccoshl): Likewise.
8888         * math/s_cexpl.c (__cexpl): Likewise.
8889         * math/s_csinl.c (__csinl): Likewise.
8890         * math/s_csinhl.c (__csinhl): Likewise.
8891         * math/s_ctanl.c (__ctanl): Likewise.
8892         * math/s_ctanhl.c (__ctanhl): Likewise.
8893
8894 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8895
8896         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
8897         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
8898         (_IO_off_t): Define to __off_t, not _G_off_t.
8899         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
8900         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
8901         (_IO_wint_t): Define to wint_t, not _G_wint_t.
8902         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
8903         type of __dummy and __dummy2 fields.
8904         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
8905         (_G_ssize_t): Likewise.
8906         (_G_off_t): Likewise.
8907         (_G_pid_t): Likewise.
8908         (_G_uid_t): Likewise.
8909         (_G_wchar_t): Likewise.
8910         (_G_wint_t): Likewise.
8911         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
8912         (_G_ssize_t): Likewise.
8913         (_G_off_t): Likewise.
8914         (_G_pid_t): Likewise.
8915         (_G_uid_t): Likewise.
8916         (_G_wchar_t): Likewise.
8917         (_G_wint_t): Likewise.
8918         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
8919         (_G_ssize_t): Likewise.
8920         (_G_off_t): Likewise.
8921         (_G_pid_t): Likewise.
8922         (_G_uid_t): Likewise.
8923         (_G_wchar_t): Likewise.
8924         (_G_wint_t): Likewise.
8925
8926 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8927
8928         * malloc/arena.c: Include malloc-sysdep.h.
8929         (shrink_heap): Use check_may_shrink_heap to decide if madvise
8930         is sufficient to shrink the heap or an unmap is needed.
8931         * sysdeps/generic/malloc-sysdep.h: New file.  Define
8932         new function check_may_shrink_heap.
8933         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
8934         new function check_may_shrink_heap.
8935
8936 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8937
8938         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
8939         comments.
8940
8941 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
8942
8943         * catgets/test-gencat.sh: Add "set -e".
8944         * elf/tst-pathopt.sh: Likewise.
8945         * grp/tst_fgetgrent.sh: Likewise.
8946         * iconvdata/run-iconv-test.sh: Likewise.
8947         * intl/tst-gettext.sh: Likewise.
8948         * intl/tst-gettext2.sh: Likewise.
8949         * intl/tst-gettext4.sh: Likewise.
8950         * intl/tst-gettext6.sh: Likewise.
8951         * intl/tst-translit.sh: Likewise.
8952         * io/ftwtest-sh: Likewise.
8953         * libio/test-freopen.sh: Likewise.
8954         * malloc/tst-mtrace.sh: Likewise.
8955         * posix/globtest.sh: Likewise.
8956         * posix/tst-getconf.sh: Likewise.
8957         * posix/wordexp-tst.sh: Likewise.
8958         * stdio-common/tst-printf.sh: Likewise.
8959         * stdio-common/tst-unbputc.sh: Likewise.
8960         * stdlib/tst-fmtmsg.sh: Likewise.
8961         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8962         * catgets/Makefile: Do not specify -e option when running
8963         testsuite shell scripts.
8964         * elf/Makefile: Likewise.
8965         * grp/Makefile: Likewise.
8966         * iconvdata/Makefile: Likewise.
8967         * intl/Makefile: Likewise.
8968         * io/Makefile: Likewise.
8969         * libio/Makefile: Likewise.
8970         * malloc/Makefile: Likewise.
8971         * posix/Makefile: Likewise.
8972         * stdio-common/Makefile: Likewise.
8973         * stdlib/Makefile: Likewise.
8974         * sysdeps/x86_64/Makefile: Likewise.
8975
8976         * io/ftwtest-sh: Add copyright header.
8977         * posix/globtest.sh: Likewise.
8978         * posix/tst-getconf.sh: Likewise.
8979         * posix/wordexp-tst.sh: Likewise.
8980         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8981
8982 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
8983
8984         [BZ #13679]
8985         * Makeconfig (+link): Defined as $(+link-static) if
8986         $(build-shared) isn't yes.
8987         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
8988         isn't yes.
8989         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
8990
8991         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
8992
8993         [BZ #14562]
8994         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
8995         new chunk size with MALLOC_ALIGN_MASK.
8996
8997 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
8998
8999         [BZ #5044]
9000         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9001         <rounding-mode.h>.
9002         (__printf_fphex): Determine rounding using get_rounding_mode and
9003         round_away.
9004         * stdio-common/tst-printf-round.c (struct hex_test): New
9005         structure.
9006         (hex_tests): New variable.
9007         (test_hex_in_one_mode): New function.
9008         (do_test): Also run tests for hex float output.
9009
9010 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9011
9012         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9013         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9014         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9015         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9016         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9017         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9018         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9019         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9020
9021 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9022
9023         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9024         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9025         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9026         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9027
9028 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9029
9030         [BZ #14579]
9031         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9032         mode only.
9033         * elf/tst-rtld-load-self.sh: New test.
9034         * elf/Makefile: Run it.
9035
9036 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9037
9038         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9039         (tst-writev-ENV): Remove.
9040         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9041
9042 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9043
9044         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9045
9046 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9047
9048         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9049         unconditional.
9050         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9051         Likewise.
9052         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9053         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9054         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9055         Likewise.
9056
9057 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9058
9059         [BZ #14587]
9060         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9061         * config.make.in (have-cpp-asm-debuginfo): Removed.
9062         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9063         * configure: Regenerated.
9064
9065 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9066
9067         [BZ #5044]
9068         * stdio-common/printf_fp.c: Include <stdbool.h> and
9069         <rounding-mode.h>.
9070         (___printf_fp): Determine rounding using get_rounding_mode and
9071         round_away.
9072         * stdio-common/tst-printf-round.c: New file.
9073         * stdio-common/Makefile (tests): Add tst-printf-round.
9074         (link-libm): New variable.
9075         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9076
9077 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9078
9079         [BZ #14576]
9080         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9081         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9082         Likewise.
9083         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9084         Likewise.
9085
9086 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9087
9088         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9089         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9090         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9091         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9092
9093 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9094
9095         [BZ #14518]
9096         * include/rounding-mode.h: New file.
9097         * sysdeps/generic/get-rounding-mode.h: Likewise.
9098         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9099         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9100         (MAX_VALUE): New macro.
9101         (MIN_VALUE): Likewise.
9102         (overflow_value): New function.
9103         (underflow_value): Likewise.
9104         (round_and_return): Use overflow_value and underflow_value to
9105         determine return values in overflow and underflow cases.  Use
9106         round_away to determine rounding depending on rounding mode.
9107         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9108         determine return values in overflow and underflow cases.
9109         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9110         (struct test_results): New structure.
9111         (struct test): Use struct test_results to store expected results
9112         for all rounding modes.
9113         (TEST): Include expected results for all rounding modes.
9114         (test_in_one_mode): New function.
9115         (do_test): Use test_in_one_mode to compute and check results.
9116         Check results for all rounding modes.
9117         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9118         $(link-libm).
9119
9120 2012-12-09  Allan McRae  <allan@archlinux.org>
9121
9122         * sysdeps/i386/fpu/libm-test-ulps: Update
9123
9124 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9125
9126         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9127         (_G_int32_t): Likewise.
9128         (_G_uint16_t): Likewise.
9129         (_G_uint32_t): Likewise.
9130         (_G_HAVE_BOOL): Likewise.
9131         (_G_HAVE_ATEXIT): Likewise.
9132         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9133         (_G_HAVE_IO_FILE_OPEN): Likewise.
9134         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9135         (_G_int32_t): Likewise.
9136         (_G_uint16_t): Likewise.
9137         (_G_uint32_t): Likewise.
9138         (_G_HAVE_BOOL): Likewise.
9139         (_G_HAVE_ATEXIT): Likewise.
9140         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9141         (_G_HAVE_IO_FILE_OPEN): Likewise.
9142         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9143         (_G_int32_t): Likewise.
9144         (_G_uint16_t): Likewise.
9145         (_G_uint32_t): Likewise.
9146         (_G_HAVE_BOOL): Likewise.
9147         (_G_HAVE_ATEXIT): Likewise.
9148         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9149         (_G_HAVE_IO_FILE_OPEN): Likewise.
9150
9151 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9152
9153         * csu/libc-tls.c: Update copyright years.
9154
9155 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9156
9157         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9158         [!_G_USING_THUNKS]: Remove conditional code.
9159         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9160         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9161
9162         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9163         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9164         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9165         (_G_VTABLE_LABEL_PREFIX): Likewise.
9166         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9167         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9168         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9169         (_G_VTABLE_LABEL_PREFIX): Likewise.
9170         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9171         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9172         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9173         (_G_VTABLE_LABEL_PREFIX): Likewise.
9174         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9175
9176 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9177
9178         * libio/Makefile: Include ../Makeconfig before tests.
9179         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9180         only if $(build-shared) is yes.
9181
9182         * iconv/gconv_db.c: Update copyright years.
9183
9184 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9185
9186         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9187         unwind info if defined PIC. Fix special cases description.
9188         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9189
9190         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9191         DP_HI_MASK entry.
9192         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9193
9194 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9195
9196         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9197
9198         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9199         is NULL.
9200
9201         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9202         (LDLIBS-tst-chk4): This.
9203         (LDFLAGS-tst-chk5): Renamed to ...
9204         (LDLIBS-tst-chk5): This.
9205         (LDFLAGS-tst-chk6): Renamed to ...
9206         (LDLIBS-tst-chk6): This.
9207         (LDFLAGS-tst-lfschk4): Renamed to ...
9208         (LDLIBS-tst-lfschk4): This.
9209         (LDFLAGS-tst-lfschk5): Renamed to ...
9210         (LDLIBS-tst-lfschk5): This.
9211         (LDFLAGS-tst-lfschk6): Renamed to ...
9212         (LDLIBS-tst-lfschk6): This.
9213
9214         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9215         on $(common-objpfx)soversions.mk.
9216
9217 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9218
9219         [BZ #10014]
9220         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9221         example host name.
9222
9223 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9224
9225         * malloc/arena.c (arena_get_retry): New function that gets
9226         another arena for the caller to try its request on.
9227         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9228         current arena cannot fulfill the request.
9229         (__libc_memalign): Likewise.
9230         (__libc_memalign): Likewise.
9231         (__libc_pvalloc): Likewise.
9232         (__libc_calloc): Likewise.
9233
9234 2012-09-05  John Tobey  <john.tobey@gmail.com>
9235
9236         [BZ #13542]
9237         * manual/arith.texi (Operations on Complex): Fix description
9238         of carg branch cut.
9239
9240 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9241
9242         [BZ #10014]
9243         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9244         host name.
9245
9246         [BZ #10038]
9247         * manual/memory.texi (Memory): Make order of menu items match
9248         order of sections.
9249
9250 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9251
9252         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9253         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9254         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9255
9256 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9257
9258         * csu/libc-tls.c (static_dtv): Renamed to ...
9259         (_dl_static_dtv): This.  Make it global.
9260         (_dl_initial_dtv): Removed.
9261         (__libc_setup_tls): Updated.
9262         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9263         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9264         DL_INITIAL_DTV.
9265
9266 2012-09-06  Petr Machata  <pmachata@redhat.com>
9267
9268         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9269         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9270         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9271         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9272
9273 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9274
9275         [BZ #14545]
9276         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9277         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9278         freeing dtv[-1].
9279
9280 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9281
9282         [BZ #14544]
9283         * Makeconfig (link-static-before-libc): Replace $(+prector)
9284         with $(+prectorT).
9285         (link-static-after-libc): Replace $(+postctor) with
9286         $(+postctorT).
9287         (link-bounded): Replace $(+prector)/$(+postctor) with
9288         $(+prectorT)/$(+postctorT).
9289         (+prectorT): New macro.
9290         (+postctorT): Likewise.
9291
9292 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9293
9294         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9295         (round_str): Handle values above the maximum for IBM long double
9296         as inexact.
9297         * stdlib/tst-strtod-round.c (tests): Regenerated.
9298
9299 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9300
9301         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9302         assembler flag.
9303         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9304         zarch_nohighgprs around the zarch optimized routines.
9305         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9306         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9307         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9308         for zarch.
9309
9310 2012-09-05  David S. Miller  <davem@davemloft.net>
9311
9312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9313
9314         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9315         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9316         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9317         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9318         entries.
9319
9320 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9321
9322         * malloc/arena.c: Fold copyright years.
9323         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9324
9325 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9326
9327         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9328
9329 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9330
9331         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9332
9333 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9334
9335         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
9336         change internal state upon failure.
9337
9338 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9339
9340         * malloc/mcheck.c (mcheck_check_all): Fix typo.
9341         * malloc/memusage.c (mmap): Likewise.
9342         (mmap64, mremap): Likewise.  Adjust name in comment.
9343
9344 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9345
9346         * libio/fileops.c: Fix typos in comments.
9347         * libio/oldfileops.c: Likewise.
9348         * libio/wfileops.c: Likewise.
9349
9350 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9351
9352         [BZ #1349]
9353         * malloc/Makefile (tests): Add tst-malloc-usable test case.
9354         (tst-malloc-usable-ENV): Set environment for test case.
9355         * malloc/hooks.c (malloc_check_get_size): New function to get
9356         requested size.
9357         * malloc/malloc.c (musable): Use malloc_check_get_size.
9358         * malloc/tst-malloc-usable.c: New test case.
9359
9360 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9361
9362         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
9363
9364 2012-09-05  Allan McRae  <allan@archlinux.org>
9365
9366         [BZ #13966]
9367         * configure.in (CXX_SYSINCLUDES): Use compiler output to
9368         determine header location.
9369         * configure: Regenerated.
9370
9371 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9372
9373         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
9374         float format.
9375         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
9376         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
9377         format.
9378         (test): Regenerate.
9379
9380 2012-09-04  David S. Miller  <davem@davemloft.net>
9381
9382         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
9383         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
9384         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
9385
9386 2012-09-04  Florian Weimer  <fweimer@redhat.com>
9387
9388         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
9389         failures.
9390
9391         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
9392
9393 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
9394
9395         [BZ #9914]
9396         * libio/iogetdelim.c: Include <limits.h>.
9397         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
9398         + len + 1 would overflow.
9399
9400 2012-09-03  Andreas Jaeger  <aj@suse.de>
9401
9402         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9403         * sysdeps/i386/fpu/libm-test-ulps: Update.
9404
9405 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9406
9407         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9408         Add s_sinf-sse2, s_conf-sse2.
9409
9410         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
9411         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
9412         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
9413         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
9414
9415         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
9416         for using routine as __sinf_ia32.
9417         Use macro for function declaration and weak_alias.
9418         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
9419         for using routine as __cosf_ia32.
9420         Use macro for function declaration and weak_alias.
9421
9422         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
9423         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
9424
9425         * sysdeps/x86_64/fpu/s_sinf.S: New file.
9426         * sysdeps/x86_64/fpu/s_cosf.S: New file.
9427         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9428
9429         * math/libm-test.inc (cos_test): Add more test cases.
9430         (sin_test): Likewise.
9431         (sincos_test): Likewise.
9432
9433 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9434
9435         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
9436         (IFUNC_RESOLVE): Make pointers to the specialized implementations
9437         hidden.
9438         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
9439
9440 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
9441
9442         [BZ #14538]
9443         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
9444         first element of the GOT.
9445         (elf_machine_load_address): Return the difference between
9446         the runtime address of _DYNAMIC and elf_machine_dynamic ().
9447
9448 2012-09-01  Allan McRae  <allan@archlinux.org>
9449
9450         [BZ #13412]
9451         * configure.in (AWK): Require gawk version 3.0 or later.
9452         * configure: Regenerated.
9453
9454 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
9455
9456         * sysdeps/unix/sysv/linux/kernel-features.h
9457         (__ASSUME_POSIX_CPU_TIMERS): Remove.
9458         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
9459         [__NR_clock_getres]: Make code unconditional.
9460         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
9461         (clock_getcpuclockid): Remove code left unreachable by removal of
9462         conditionals.
9463         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
9464         code unconditional.
9465         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9466         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9467         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
9468         Make code unconditional.
9469         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9470         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9471         * sysdeps/unix/sysv/linux/clock_settime.c
9472         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
9473         conditional code.
9474         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
9475         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9476
9477 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
9478
9479         [BZ #14476]
9480         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
9481         scripts/test-installation.pl.
9482
9483         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
9484         and $ld_so_version if it is set.
9485
9486 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9487
9488         [BZ #14516]
9489         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
9490         failure if reading from procfs failed.
9491         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
9492
9493 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9494
9495         * sysdeps/unix/sysv/linux/kernel-features.h
9496         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
9497         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9498         Remove conditional code.
9499         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9500         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
9501         Remove conditional code.
9502         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9503         * sysdeps/unix/sysv/linux/i386/fxstat.c
9504         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9505         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9506         * sysdeps/unix/sysv/linux/i386/fxstatat.c
9507         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9508         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9509         * sysdeps/unix/sysv/linux/i386/lxstat.c
9510         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9511         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9512         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
9513         Remove conditional code.
9514         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9515         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9516         Remove conditional code.
9517         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9518         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
9519         <kernel-features.h>.
9520         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
9521         Remove.
9522         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
9523         Remove conditional code.
9524         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9525         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
9526         Remove conditional.
9527
9528 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
9529
9530         [BZ #5400]
9531         * NEWS: Add fixed bug number.
9532
9533 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9534
9535         [BZ #14519]
9536         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
9537         underflowing exponent in case of negative sign.
9538         * stdlib/tst-strtod-round-data: Add more tests.
9539         * stdlib/tst-strtod-round.c (tests): Regenerated.
9540
9541         [BZ #3479]
9542         * stdlib/strtod_l.c (NDIG): Remove.
9543         (HEXNDIG): Likewise.
9544         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
9545         smallest representable value.
9546         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
9547         lie within an exact representation of 1/2 ulp of the result.
9548         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
9549         unconditionally.
9550         (TENS_P9_IDX): Define unconditionally.
9551         (TENS_P9_SIZE): Likewise.
9552         (TENS_P10_IDX): Likewise.
9553         (TENS_P10_SIZE): Likewise.
9554         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
9555         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
9556         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
9557         entries for 10^2^13 and 10^2^14.
9558         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
9559         (TENS_P13_IDX): Define.
9560         (TENS_P13_SIZE): Likewise.
9561         (TENS_P14_IDX): Likewise.
9562         (TENS_P14_SIZE): Likewise.
9563         (_fpioconst_pow10): Change array size to
9564         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
9565         unconditional.
9566         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
9567         1024]: Add entries for 10^2^13 and 10^2^14.
9568         [LAST_POW10 > _LAST_POW10]: Remove #error.
9569         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
9570         (_fpioconst_pow10): Change array size to
9571         FPIOCONST_POW10_ARRAY_SIZE.
9572         * stdlib/gen-fpioconst.c: New file.
9573         * stdlib/gen-tst-strtod-round.c: Likewise.
9574         * stdlib/tst-strtod-round-data: Likewise.
9575         * stdlib/tst-strtod-round.c: Likewise.
9576         * stdlib/Makefile (tests): Add tst-strtod-round.
9577
9578         [BZ #14459]
9579         * stdlib/strtod_l.c: Include <stdint.h>.
9580         (NDEBUG): Do not define.
9581         (round_and_return): Change EXPONENT parameter to type intmax_t.
9582         Rearrange calculations to avoid internal overflow possibilities.
9583         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
9584         Rearrange calculations to avoid internal overflow possibilities.
9585         Assert that number fits inside MPNSIZE limbs.
9586         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
9587         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
9588         calculations and add assertions to avoid internal overflow
9589         possibilities.  Add casts to avoid signed/unsigned operations.
9590         * stdlib/tst-strtod-overflow.c: New file.
9591         * stdlib/Makefile (tests): Add tst-strtod-overflow.
9592
9593 2012-08-25  Marek Polacek  <polacek@redhat.com>
9594
9595         * time/time.h: Fix some typos in comments.
9596
9597 2012-08-23  Roland McGrath  <roland@hack.frob.com>
9598
9599         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
9600         * posix/tst-rfc3484-2.c: Likewise.
9601         * posix/tst-rfc3484-3.c: Likewise.
9602
9603 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
9604
9605         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
9606         (EF_ARM_ABI_FLOAT_HARD): Likewise.
9607
9608 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
9609
9610         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
9611         #include of fxstatat64.c.
9612
9613 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9614
9615         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
9616         * shadow/getspent_r.c: Likewise.
9617         * shadow/getspnam.c: Likewise.
9618         * shadow/getspnam_r.c: Likewise.
9619         * gshadow/getsgent.c: Likewise.
9620         * gshadow/getsgent_r.c: Likewise.
9621         * gshadow/getsgnam.c: Likewise.
9622         * gshadow/getsgnam_r.c: Likewise.
9623         * inet/getnetbyad.c: Likewise.
9624         * inet/getnetbyad_r.c: Likewise.
9625         * inet/getnetbynm.c: Likewise.
9626         * inet/getnetbynm_r.c: Likewise.
9627         * inet/getnetent.c: Likewise.
9628         * inet/getnetent_r.c: Likewise.
9629         * inet/getproto.c: Likewise.
9630         * inet/getproto_r.c: Likewise.
9631         * inet/getprtent.c: Likewise.
9632         * inet/getprtent_r.c: Likewise.
9633         * inet/getprtname.c: Likewise.
9634         * inet/getprtname_r.c: Likewise.
9635         * inet/getrpcbyname.c: Likewise.
9636         * inet/getrpcbyname_r.c: Likewise.
9637         * inet/getrpcbynumber.c: Likewise.
9638         * inet/getrpcbynumber_r.c: Likewise.
9639         * inet/getrpcent.c: Likewise.
9640         * inet/getrpcent_r.c: Likewise.
9641         * inet/getaliasent.c: Likewise.
9642         * inet/getaliasent_r.c: Likewise.
9643         * inet/getaliasname.c: Likewise.
9644         * inet/getaliasname_r.c: Likewise.
9645         * nscd/getgrgid_r.c: Likewise.
9646         * nscd/getgrnam_r.c: Likewise.
9647         * nscd/gethstbyad_r.c: Likewise.
9648         * nscd/gethstbynm3_r.c: Likewise.
9649         * nscd/getpwnam_r.c: Likewise.
9650         * nscd/getpwuid_r.c: Likewise.
9651         * nscd/getsrvbynm_r.c: Likewise.
9652         * nscd/getsrvbypt_r.c: Likewise.
9653         * nscd/gai.c: Likewise.
9654
9655         * configure.in (build_nscd): New substituted variable, set
9656         by --disable-build-nscd and defaults to $use_nscd.
9657         * configure: Regenerated.
9658         * config.make.in (build-nscd): New substituted variable.
9659         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
9660         Change conditional to require [$(build-nscd) = yes] as well.
9661         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
9662
9663         [BZ# 13696]
9664         * configure.in (use_nscd): New substituted variable, set by
9665         --disable-nscd.  If enabled, define USE_NSCD.
9666         * configure: Regenerated.
9667         * config.h.in: Add USE_NSCD.
9668         * config.make.in (use-nscd): New substituted variable.
9669         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
9670         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
9671         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
9672         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
9673         (CFLAGS-getgrnam_r.c): Likewise.
9674         (CFLAGS-initgroups.c): Likewise.
9675         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
9676         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
9677         Variables removed.
9678         * inet/getnetgrent_r.c
9679         (nscd_setnetgrent): New function, broken out of ...
9680         (setnetgrent): ... here.  Call it.
9681         (innetgr): Conditionalize nscd bits on [USE_NSCD].
9682         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
9683         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
9684         * nscd/Makefile (routines, aux): Move definitions after include of
9685         Makeconfig.  Conditionalize on [$(use-nscd) != no].
9686         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
9687         Conditionalize on [USE_NSCD].
9688         (is_nscd, nscd_init_cb): Likewise.
9689         (nss_load_library): Conditionalize init callback on [USE_NSCD].
9690         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
9691         * nss/nss_db/db-init.c: Likewise.
9692         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
9693         [USE_NSCD].
9694         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
9695         (make_request): Use it.
9696         (cache_valid_p): New function.
9697         (__check_pf): Use it.
9698         * NEWS: Add item for --disable-nscd.
9699
9700 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
9701
9702         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
9703         to support sed >= 4.2.1-20-ga9bf076.
9704         * configure: Regenerated.
9705
9706 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9707
9708         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
9709         Conditionalize whole body on [IREL].
9710
9711 2012-08-22  Jeff Law <law@redhat.com>
9712
9713         [BZ #14505]
9714         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
9715         if the family is PF_UNSPEC.
9716
9717 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
9718
9719         * Makerules (lib-version): Rename from V.
9720         (install-lib-nosubdir): Change V to lib-version.
9721
9722 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
9723
9724         [BZ #14252]
9725         * powerpc32/power6/wcschr.c: New file.
9726         * powerpc32/power6/wcscpy.c: New file.
9727         * powerpc32/power6/wcsrchr.c: New file.
9728         * powerpc64/power6/wcschr.c: New file.
9729         * powerpc64/power6/wcscpy.c: New file.
9730         * powerpc64/power6/wcsrchr.c: New file.
9731
9732 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9733
9734         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
9735         (two_way_short_needle): Use it.
9736         * string/strstr.c (AVAILABLE1_USES_J): Define.
9737         * string/strcasestr.c: Likewise.
9738
9739         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
9740         array references.
9741         * string/strcasestr.c (TOLOWER): Make side-effect safe.
9742
9743         [BZ #11607]
9744         * NEWS: Add an entry.
9745         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
9746         define their defaults.
9747         (two_way_short_needle): Detect end-of-string on-the-fly.
9748         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
9749         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
9750         * string/bug-strcasestr1.c: New test.
9751         * string/Makefile: Run it.
9752
9753 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9754
9755         [BZ #11607]
9756         * string/str-two-way.h (two_way_short_needle): Optimize matching of
9757         the first character.
9758
9759 2012-08-21  Roland McGrath  <roland@hack.frob.com>
9760
9761         * csu/elf-init.c (__libc_csu_irel): Function removed.
9762         * csu/libc-start.c (apply_irel): New function.
9763         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
9764
9765 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
9766
9767         * sysdeps/unix/sysv/linux/kernel-features.h
9768         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
9769         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
9770         <kernel-features.h>.
9771         [__NR_fadvise64_64]: Make code unconditional.
9772         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
9773         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9774         !__NR_fadvise64_64)]: Likewise.
9775         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9776         !__NR_fadvise64_64))]: Likewise.
9777         [__NR_fadvise64]: Make code unconditional.
9778         [!__NR_fadvise64]: Remove conditional code.
9779         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
9780         <kernel-features.h>.
9781         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9782         unconditional.
9783         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9784         conditional code.
9785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
9786         not include <kernel-features.h>.
9787         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9788         unconditional.
9789         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9790         conditional code.
9791         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
9792         include <kernel-features.h>.
9793         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9794         unconditional.
9795         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9796         conditional code.
9797
9798 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9799
9800         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
9801         slight instruction rearrangements per scrollpipe analysis.
9802         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
9803
9804 2012-08-20  Roland McGrath  <roland@hack.frob.com>
9805
9806         * manual/syslog.texi (syslog; vsyslog, closelog):
9807         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
9808         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
9809
9810         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
9811         DSOCAPS to match condition on defining it.
9812
9813 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
9814
9815         * sysdeps/unix/sysv/linux/kernel-features.h
9816         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
9817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
9818         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9819         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
9821         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9822         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
9824         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9825         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9826
9827         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
9828         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
9829
9830         * sysdeps/unix/sysv/linux/kernel-features.h
9831         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
9832         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
9833         unconditional.
9834         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9835         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
9836         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9837         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9838         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
9839         Make code unconditional.
9840         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9841         (__mmap64) [!__NR_mmap2]: Likewise.
9842         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
9843         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9844         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9845         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
9846         [__NR_mmap2]: Make code unconditional.
9847         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9848         (__mmap64) [!__NR_mmap2]: Likewise.
9849
9850 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9851
9852         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
9853
9854 2012-08-18  Andreas Jaeger  <aj@suse.de>
9855
9856         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
9857
9858 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9859
9860         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
9861         * include/unistd.h (__have_sock_cloexec): Likewise.
9862         (__have_pipe2): Likewise.
9863         (__have_dup3): Likewise.
9864
9865 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9866
9867         [BZ #9685]
9868         * include/unistd.h (__have_pipe2): Change define into an extern int.
9869         (__have_dup3): Likewise.
9870         * socket/have_sock_cloexec.c: Include fcntl.h.
9871         (__have_pipe2): New variable.
9872         (__have_dup3): Likewise.
9873
9874 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
9875
9876         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
9877
9878 2012-08-17  Marek Polacek  <polacek@redhat.com>
9879
9880         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
9881         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
9882
9883 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9884
9885         * configure.in: Add AC_SUBST for sysheaders.
9886         * configure: Regenerated.
9887         * config.make.in (sysheaders): New substituted variable.
9888
9889         * sysdeps/unix/mkfifo.c: Moved ...
9890         * sysdeps/posix/mkfifo.c: ... here.
9891         * sysdeps/unix/mkfifoat.c: Moved ...
9892         * sysdeps/posix/mkfifoat.c: ... here.
9893
9894         * sysdeps/unix/utime.c: Moved ...
9895         * sysdeps/posix/utime.c: ... here.
9896
9897         * sysdeps/unix/time.c: Moved ...
9898         * sysdeps/posix/time.c: ... here.
9899         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
9900         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
9901
9902         * sysdeps/unix/nice.c: Moved ...
9903         * sysdeps/posix/nice.c: ... here.
9904
9905         * sysdeps/unix/alarm.c: Moved ...
9906         * sysdeps/posix/alarm.c: ... here.
9907
9908         * intl/Makefile ($(codeset_mo)): Depend on the input file.
9909
9910 2012-08-17  Jeff Law <law@redhat.com>
9911
9912         * intl/Makefile (codeset_mo): New variable.
9913         ($(codeset_mo)): New target.
9914         (tst-codeset.out): Depend on that.  Remove explicit rule.
9915         (tst-gettext3.out, tst-gettext5.out): Likewise.
9916         (LOCPATH-ENV, tst-codeset-ENV): New variables.
9917         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
9918         * intl/tst-codeset.sh: Remove.
9919         * intl/tst-gettext3.sh: Likewise.
9920         * intl/tst-gettext5.sh: Likewise.
9921
9922 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9923
9924         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
9925         * sysdeps/unix/syscalls.list: ... here.
9926
9927         * sysdeps/posix/getaddrinfo.c
9928         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
9929         (gaiconf_init, gaiconf_reload): Use them.
9930         [!_STATBUF_ST_NSEC]
9931         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
9932         Define using time_t rather than struct timespec.
9933
9934         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
9935         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
9936         Macros removed.
9937         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
9938         [!NO_THREADS].
9939         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
9940         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
9941         Likewise.
9942
9943         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
9944         __libc_cleanup_push argument.
9945
9946         * bits/param.h: New file.
9947         * misc/sys/param.h: New file.
9948         * include/sys/param.h: New file.
9949         * misc/Makefile (headers): Add bits/param.h.
9950         * sysdeps/generic/sys/param.h: File removed.
9951         * sysdeps/unix/sysv/linux/bits/param.h: New file.
9952         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
9953         * sysdeps/mach/hurd/bits/param.h: New file.
9954         * sysdeps/mach/hurd/sys/param.h: File removed.
9955
9956         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
9957         last change.
9958
9959         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
9960         [_IO_MTSAFE_IO].
9961         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
9962         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
9963         New macros.
9964
9965         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
9966         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
9967         rather than -D_IO_MTSAFE_IO conditionally.
9968         * stdio-common/Makefile (CPPFLAGS): Likewise.
9969         * wcsmbs/Makefile (CPPFLAGS): Likewise.
9970         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
9971         Use $(libio-mtsafe).
9972         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
9973         of -D_IO_MTSAFE_IO.
9974         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
9975         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
9976         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
9977         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
9978         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
9979         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
9980         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
9981         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
9982         (CFLAGS-fread_u_chk.c): Likewise.
9983         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
9984         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
9985         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
9986         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
9987         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
9988         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
9989         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
9990         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
9991         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
9992
9993         * libio/Makefile: Test [$(libc-reentrant) = yes]
9994         instead of [$(filter %REENTRANT, $(defines)) nonempty].
9995
9996         * Makeconfig
9997         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
9998         * sysdeps/pthread/configure: File removed.
9999         * sysdeps/pthread/Makeconfig: New file.
10000         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10001         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10002
10003 2012-08-16  Gary Benson  <gbenson@redhat.com>
10004
10005         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10006         unmapping the first object in a namespace.
10007
10008 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10009
10010         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10011         (__internal_setnetgrent): ... this.  Add internal_function to
10012         definition.  Add libc_hidden_def.
10013         (setnetgrent): Update caller.
10014         (internal_endnetgrent): Renamed to ...
10015         (__internal_endnetgrent): ... this.  Add internal_function to
10016         definition.  Add libc_hidden_def.
10017         (endnetgrent): Update caller.
10018         (internal_getnetgrent_r): Renamed to ...
10019         (__internal_getnetgrent_r): ... this.  Add internal_function to
10020         definition.  Add libc_hidden_def.
10021         (__getnetgrent_r): Update caller.
10022         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10023
10024 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10025
10026         * stdlib/longlong.h: Update from GCC.
10027
10028 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10029
10030         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10031         on _QL, which is set by umul_ppmm but never used.
10032         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10033         variables, which are set by GMP macros but never used.
10034         * stdio-common/_itowa.c (_itowa): Likewise.
10035         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10036         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10037
10038 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10039
10040         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10041         struct La_sh_regs is not constant.
10042         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10043         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10044         and struct La_sparc64_regs are not constant.
10045
10046 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10047
10048         * sysdeps/unix/sysv/linux/kernel-features.h
10049         (__ASSUME_POSIX_TIMERS): Remove.
10050         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10051         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10052         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10053         Make code unconditional.
10054         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10055         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10056         Make code unconditional.
10057         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10058         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10059         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10060         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10061         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10062         Make code unconditional.
10063         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10064         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10065         (__libc_missing_posix_timers): Remove.
10066
10067 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10068
10069         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10070         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10071
10072         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10073
10074         * elf/dl-sym.c: Include <stdlib.h>.
10075
10076         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10077         constants, which avoids warnings in 32-bit builds.
10078
10079         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10080         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10081
10082         * misc/lseek.c: File moved to ...
10083         * io/lseek.c: ... here.
10084
10085         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10086
10087         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10088         shifting LEN more than 31 bits at once.
10089
10090 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10091
10092         [BZ #14195]
10093         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10094         segmentation fault for a case of two empty input strings.
10095         * string/test-strncasecmp.c (check1): Renamed to...
10096         (bz12205): ...this.
10097         (bz14195): Add new testcase for two empty input strings and N > 0.
10098         (test_main): Call new testcase, adapt for renamed function.
10099
10100 2012-08-15  Andreas Jaeger  <aj@suse.de>
10101
10102         [BZ #14090]
10103         * crypt/md5test2.c: New test, based on test supplied by Serge
10104         Belyshev <belyshev@depni.sinp.msu.ru>.
10105         * crypt/Makefile (xtests): Add md5test-giant..
10106         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10107
10108 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10109
10110         [BZ #14090]
10111         * crypt/md5.c (md5_process_block): Don't assume the buffer
10112         length is less than 2**32.
10113         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10114         length is less than 2**64.
10115
10116 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10117
10118         * string/str-two-way.h: Include <sys/param.h>.
10119         (MAX): Macro removed.
10120
10121         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10122         Move #define and #undef of memmove to just before and after
10123         including <string.h>.
10124
10125         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10126         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10127         and after including <string.h>.  Move declarations of
10128         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10129         to before #include "string/memmove.c".
10130
10131         * include/dirent.h: Declare __getdirentries.
10132
10133         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10134         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10135
10136 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10137
10138         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10139         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10140         * sysdeps/i386/configure: Regenerated.
10141         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10142         STABS_CURRENT_FILE, and STABS_FUN.
10143         (END): Remove call to STABS_FUN_END.
10144         (STABS_CURRENT_FILE1): Delete.
10145         (STABS_CURRENT_FILE): Likewise.
10146         (STABS_FUN): Likewise.
10147         (STABS_FUN_END): Likewise.
10148         (STABS_FUN2): Likewise.
10149         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10150         * sysdeps/x86_64/configure: Regenerated.
10151
10152 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10153
10154         * elf/dl-open.c: Include <atomic.h>.
10155         * elf/dl-lookup.c: Likewise.
10156
10157 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10158
10159         * sysdeps/unix/sysv/linux/kernel-features.h
10160         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10161         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10162         unconditionally.
10163         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10164         unconditionally.
10165         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10166         condition on __ASSUME_CLONE_THREAD_FLAGS.
10167
10168 2012-08-14  Andreas Jaeger  <aj@suse.de>
10169
10170         * sysdeps/i386/fpu/libm-test-ulps: Update.
10171
10172 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10173
10174         * include/atomic.h (atomic_exchange_and_add): Split into ...
10175         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10176         New atomic macros.
10177
10178 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10179
10180         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10181
10182 2012-08-13  Jeff Law <law@redhat.com>
10183
10184         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10185         null byte in the output string.
10186
10187 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10188
10189         * sysdeps/unix/sysv/linux/kernel-features.h
10190         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10191         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10192         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10193         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10194         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10195         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10196         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10197
10198 2012-08-09  Jeff Law <law@redhat.com>
10199
10200         [BZ #13939]
10201         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10202         When avoid_arena is set, don't retry in the that arena.  Pick the
10203         next one, whatever it might be.
10204         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10205         (arena_lock): Pass in new parameter to arena_get2.
10206         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10207         arena_get2.
10208         (__libc_malloc): Unify retrying after main arena failure with
10209         __libc_memalign version.
10210         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10211
10212 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10213
10214         [BZ #14166]
10215         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10216         to __redirect_strstr.
10217         (__strstr_sse42): Use typeof __redirect_strstr.
10218         (__strstr_ia32): Likewise.
10219         (__libc_strstr): New prototype.
10220         (strstr): Renamed to ...
10221         (__libc_strstr): This.
10222         (strstr): New strong alias of __libc_strstr.
10223         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10224         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10225         __redirect_time.
10226         Include <time.h>.
10227         (__libc_time): New prototype.
10228         (time_ifunc): Replace time with __libc_time.
10229         (time): New strong alias and hidden definition of __libc_time.
10230         (__GI_time): Remove strong alias.
10231         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10232         Include <stddef.h>.
10233         (memmove): Redefined to __redirect_memmove.
10234         (__memmove_sse2): Use typeof __redirect_memmove.
10235         (__memmove_ssse3): Likewise.
10236         (__memmove_ssse3_back): Likewise.
10237         (__libc_memmove): New prototype.
10238         (memmove): Renamed to ...
10239         (__libc_memmove): This.
10240         (memmove): New strong alias of __libc_memmove.
10241
10242 2012-08-08  Mark Salter  <msalter@redhat.com>
10243
10244         * elf/elf.h
10245         (R_MN10300_TLS_GD): Define.
10246         (R_MN10300_TLS_LD): Likewise.
10247         (R_MN10300_TLS_LDO): Likewise.
10248         (R_MN10300_TLS_GOTIE): Likewise.
10249         (R_MN10300_TLS_IE): Likewise.
10250         (R_MN10300_TLS_LE): Likewise.
10251         (R_MN10300_TLS_DTPMOD): Likewise.
10252         (R_MN10300_TLS_DTPOFF): Likewise.
10253         (R_MN10300_TLS_TPOFF): Likewise.
10254         (R_MN10300_SYM_DIFF): Likewise.
10255         (R_MN10300_ALIGN): Likewise.
10256         (R_MN10300_NUM): Update.
10257
10258 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10259
10260         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10261         Remove.
10262
10263 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10264
10265         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10266
10267         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10268         sysdeps/unix -> sysdeps/posix move.
10269         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10270
10271 2012-08-07      Allan McRae     <allan@archlinux.org>
10272
10273         [BZ #14303]
10274         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10275         (SUNOS_CPP): Likewise.
10276         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10277         not found.
10278         (open_input): Call CPP using execvp.
10279
10280 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10281
10282         * sysdeps/unix/sysv/linux/kernel-features.h
10283         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10284         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10285         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10286         (__ASSUME_WAITID_SYSCALL): Likewise.
10287         * sysdeps/unix/sysv/linux/dl-execstack.c
10288         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10289         code unconditional.
10290         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10291         conditional code.
10292         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10293         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10294         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10295         code.
10296         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10297         unconditional.
10298         [__ASSUME_WAITID_SYSCALL]: Likewise.
10299         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10300
10301 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10302
10303         * sysdeps/unix/closedir.c: Renamed to ...
10304         * sysdeps/posix/closedir.c: ... here.
10305         * sysdeps/unix/dirfd.c: Renamed to ...
10306         * sysdeps/posix/dirfd.c: ... here.
10307         * sysdeps/unix/dirstream.h: Renamed to ...
10308         * sysdeps/posix/dirstream.h: ... here.
10309         * sysdeps/unix/fdopendir.c: Renamed to ...
10310         * sysdeps/posix/fdopendir.c: ... here.
10311         * sysdeps/unix/opendir.c: Renamed to ...
10312         * sysdeps/posix/opendir.c: ... here.
10313         * sysdeps/unix/readdir.c: Renamed to ...
10314         * sysdeps/posix/readdir.c: ... here.
10315         * sysdeps/unix/readdir_r.c: Renamed to ...
10316         * sysdeps/posix/readdir_r.c: ... here.
10317         * sysdeps/unix/rewinddir.c: Renamed to ...
10318         * sysdeps/posix/rewinddir.c: ... here.
10319         * sysdeps/unix/seekdir.c: Renamed to ...
10320         * sysdeps/posix/seekdir.c: ... here.
10321         * sysdeps/unix/telldir.c: Renamed to ...
10322         * sysdeps/posix/telldir.c: ... here.
10323         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10324         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10325         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10326         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10327
10328         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10329         * bits/fcntl.h: ... here.
10330
10331         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10332         not 0.
10333         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10334         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
10335         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
10336         (struct flock): Move l_start, l_len to the beginning.
10337         Use __pid_t for l_pid.
10338         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
10339         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
10340         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
10341         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
10342         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
10343         [__USE_LARGEFILE64] (struct flock64): New type.
10344         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
10345
10346         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
10347         * bits/dirent.h: ... here.
10348
10349         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
10350         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
10351
10352 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10353
10354         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10355         Change from 2.6.0 to 2.6.16.
10356         * sysdeps/unix/sysv/linux/configure: Regenerated.
10357         * sysdeps/unix/sysv/linux/kernel-features.h
10358         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
10359         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
10360         version.
10361         (__ASSUME_UTIMES): Likewise.
10362         (__ASSUME_CLONE_STOPPED): Remove.
10363         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
10364         architectures, not kernel version.
10365         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
10366         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10367         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10368         (__ASSUME_WAITID_SYSCALL): Likewise.
10369         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
10370         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
10371         * README: State 2.6.16 as minimum Linux kernel version.  Do not
10372         refer to older versions.
10373
10374 2012-08-06  Roland McGrath  <roland@hack.frob.com>
10375
10376         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
10377         Define alphasort64 as an alias.
10378         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
10379         Define versionsort64 as an alias.
10380         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
10381         Define scandir64 as an alias.
10382         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
10383         Define scandirat64 as an alias.
10384         * dirent/alphasort64.c (alphasort64):
10385         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
10386         * dirent/versionsort64.c: Likewise.
10387         * dirent/scandir64.c: Likewise.
10388         * dirent/scandirat64.c: Likewise.
10389         * sysdeps/wordsize-64/alphasort.c: File removed.
10390         * sysdeps/wordsize-64/alphasort64.c: File removed.
10391         * sysdeps/wordsize-64/scandir.c: File removed.
10392         * sysdeps/wordsize-64/scandir64.c: File removed.
10393         * sysdeps/wordsize-64/scandirat.c: File removed.
10394         * sysdeps/wordsize-64/scandirat64.c: File removed.
10395         * sysdeps/wordsize-64/versionsort.c: File removed.
10396         * sysdeps/wordsize-64/versionsort64.c: File removed.
10397         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
10398         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
10399         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
10400         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
10401         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
10402         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
10403         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
10404         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
10405
10406         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
10407         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10408         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
10409         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10410         [defined __arch64__ || defined __sparcv9]
10411         (__INO_T_MATCHES_INO64_T): New macro.
10412         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10413         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
10414         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
10415         * sysdeps/unix/sysv/linux/bits/dirent.h
10416         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
10417         (_DIRENT_MATCHES_DIRENT64): New macro.
10418
10419         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
10420         Define lockf64 as an alias.
10421         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
10422         Define fseeko64 as an alias.
10423         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
10424         Define ftello64 as an alias.
10425         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
10426         Define _IO_fgetpos64 and fgetpos64 as aliases.
10427         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
10428         Define _IO_fsetpos64 and fsetpos64 as aliases.
10429         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
10430         Conditionalize body on this.
10431         * libio/fseeko64.c: Likewise.
10432         * libio/ftello64.c: Likewise.
10433         * libio/iofgetpos64.c: Likewise.
10434         * libio/iofsetpos64.c: Likewise.
10435         * sysdeps/wordsize-64/lockf.c: File removed.
10436         * sysdeps/wordsize-64/lockf64.c: File removed.
10437         * sysdeps/wordsize-64/fseeko.c: File removed.
10438         * sysdeps/wordsize-64/fseeko64.c: File removed.
10439         * sysdeps/wordsize-64/ftello.c: File removed.
10440         * sysdeps/wordsize-64/ftello64.c: File removed.
10441         * sysdeps/wordsize-64/iofgetpos.c: File removed.
10442         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
10443         * sysdeps/wordsize-64/iofsetpos.c: File removed.
10444         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
10445         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
10446         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
10447         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
10448         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
10449         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
10450         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
10451         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
10452         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
10453         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
10454         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
10455
10456         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10457         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10458         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
10459         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10460         [defined __arch64__ || defined __sparcv9]
10461         (__OFF_T_MATCHES_OFF64_T): New macro.
10462         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10463         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10464         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10465         (__OFF_T_MATCHES_OFF64_T): New macro.
10466
10467 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10468
10469         * stdlib/secure-getenv.c (__secure_getenv): Replace
10470         GLIBC_2_16 with GLIBC_2_17.
10471
10472 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10473
10474         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
10475         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
10476
10477 2012-08-03  David S. Miller  <davem@davemloft.net>
10478
10479         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10480
10481 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10482
10483         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
10484         Remove.
10485         (__ASSUME_CORRECT_SI_PID): Likewise.
10486         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
10487         (__ASSUME_TMPFS_NAME): Likewise.
10488         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
10489         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
10490         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
10491         (HAVE_AUX_SECURE): Make definition unconditional.
10492         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
10493         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
10494
10495 2012-08-03  Roland McGrath  <roland@hack.frob.com>
10496
10497         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
10498         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
10499         * sysdeps/mach/hurd/eloop-threshold.h: New file.
10500         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
10501         __eloop_threshold instead of SYMLOOP_MAX.
10502
10503         * sysdeps/generic/eloop-threshold.h: New file.
10504         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
10505         of MAXSYMLINKS.
10506         * elf/chroot_canon.c (chroot_canon): Likewise.
10507
10508 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10509
10510         [BZ #13717]
10511         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10512         Change to 2.6.0 everywhere.
10513         * sysdeps/unix/sysv/linux/configure: Regenerated.
10514         * sysdeps/unix/sysv/linux/kernel-features.h
10515         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
10516         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
10517         kernel versions.
10518         (__ASSUME_POSIX_TIMERS): Define unconditionally.
10519         (__ASSUME_FUTEX_REQUEUE): Remove.
10520         (__ASSUME_STATFS64): Define unconditionally.
10521         (__ASSUME_AT_SECURE): Likewise.
10522         (__ASSUME_CORRECT_SI_PID): Likewise.
10523         (__ASSUME_TGKILL): Define without depending on kernel version for
10524         i386.
10525         (__ASSUME_UTIMES): Likewise.
10526         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
10527         kernel version.
10528         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
10529         (__ASSUME_TMPFS_NAME): Likewise.
10530         * README: Update reference to Linux kernel versions.
10531
10532 2012-08-02  Marek Polacek  <polacek@redhat.com>
10533
10534         [BZ# 14150]
10535         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
10536         libc_cv_asm_type_prefix with %.
10537         * configure: Regenerated.
10538         * include/libc-symbols.h: Remove comment about
10539         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10540         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
10541         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
10542         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
10543         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
10544         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10545         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
10546         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
10547         * elf/tst-unique2mod1.c: Likewise.
10548         * elf/tst-unique1mod2.c: Likewise.
10549         * elf/tst-unique1mod1.c: Likewise.
10550         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
10551         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
10552         Replace ASM_TYPE_DIRECTIVE with .type.
10553         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10554         * sysdeps/i386/sysdep.h: Likewise.
10555         * sysdeps/x86_64/sysdep.h: Likewise.
10556         * sysdeps/sh/sysdep.h: Likewise.
10557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10558         Do not define ASM_TYPE_DIRECTIVE.
10559         * sysdeps/powerpc/sysdep.h: Likewise.
10560         * sysdeps/powerpc/powerpc32/sysdep.h:
10561         Replace ASM_TYPE_DIRECTIVE with .type.
10562         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
10563         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
10564         * sysdeps/i386/fpu/e_powf.S: Likewise.
10565         * sysdeps/i386/fpu/e_expl.S: Likewise.
10566         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10567         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10568         * sysdeps/i386/fpu/e_pow.S: Likewise.
10569         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10570         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10571         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10572         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10573         * sysdeps/i386/fpu/e_log2.S: Likewise.
10574         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10575         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10576         * sysdeps/i386/fpu/e_powl.S: Likewise.
10577         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10578         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10579         * sysdeps/i386/fpu/e_logl.S: Likewise.
10580         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10581         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10582         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10583         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10584         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10585         * sysdeps/i386/fpu/e_log.S: Likewise.
10586         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10587         * sysdeps/i386/fpu/e_logf.S: Likewise.
10588         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10589         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10590         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10591         * sysdeps/i386/fpu/e_log10.S: Likewise.
10592         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10593         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10594         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10595         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10596         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10597         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
10598         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10599         * sysdeps/i386/i686/strtok.S: Likewise.
10600         * sysdeps/i386/i386-mcount.S: Likewise.
10601         * sysdeps/i386/strtok.S: Likewise.
10602         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
10603         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10604         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10605         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10606         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10607         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10608         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10609         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10610         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10611         * sysdeps/x86_64/_mcount.S: Likewise.
10612         * sysdeps/x86_64/strtok.S: Likewise.
10613         * sysdeps/sh/_mcount.S: Likewise.
10614
10615 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10616
10617         * libio/iofopen.c: Include <fcntl.h>.
10618         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
10619         (_IO_fopen64, fopen64): Define as aliases.
10620         * libio/iofopen64.c: Include <fcntl.h>.
10621         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
10622         Conditionalize body on this.
10623         * sysdeps/wordsize-64/iofopen.c: File removed.
10624         * sysdeps/wordsize-64/iofopen64.c: File removed.
10625
10626 2012-08-01  Marek Polacek  <polacek@redhat.com>
10627
10628         * libc/Makeconfig: Use elf in place of binfmt-subdir.
10629         Use dlfcn directly instead of a variable.
10630         (binfmt-subdir): Do not define.
10631         (dlfcn): Likewise.
10632
10633 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
10634
10635         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
10636         Remove all definitions.
10637         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
10638         <kernel-features.h>.
10639         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10640         (miss_F_GETOWN_EX): Remove all definitions.
10641         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
10642         macro definition.
10643         [!__ASSUME_FCNTL64]: Remove conditional code.
10644         [__ASSUME_FCNTL64]: Make code unconditional.
10645         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
10646         <kernel-features.h>.
10647         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10648         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
10649         (lockf64) [__NR_fcntl64]: Make code unconditional.
10650         (lockf64) [__ASSUME_FCNTL64]: Likewise.
10651
10652         * sysdeps/unix/sysv/linux/kernel-features.h
10653         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
10654         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
10655         Make code unconditional.
10656         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10657         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
10659         [__NR_vfork]: Make code unconditional.
10660         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10661         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
10663         [__NR_vfork]: Make code unconditional.
10664         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10665         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10666
10667 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10668
10669         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
10670         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
10671
10672         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10673         Define mkstemp64 as an alias.
10674         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10675         Define mkstemps64 as an alias.
10676         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10677         Define mkostemp64 as an alias.
10678         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10679         Define mkostemps64 as an alias.
10680         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
10681         Conditionalize body on this.
10682         * misc/mkostemp64.c: Likewise.
10683         * misc/mkostemps64.c: Likewise.
10684         * misc/mkstemps64.c: Likewise.
10685         * sysdeps/wordsize-64/mkstemp64.c: File removed.
10686         * sysdeps/wordsize-64/mkostemp64.c: File removed.
10687         * sysdeps/wordsize-64/mkostemp.c: File removed.
10688         * sysdeps/wordsize-64/mkstemp.c: File removed.
10689         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
10690         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
10691         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
10692         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
10693
10694         [BZ #14138]
10695         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
10696         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
10697         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
10698         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
10699
10700         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
10701         compat_symbol macros from <shlib-compat.h> rather than the underlying
10702         default_symbol_version and symbol_version macros, so that DEFAULT
10703         lines in shlib-versions are respected.
10704         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
10705
10706 2012-08-01  Florian Weimer  <fweimer@redhat.com>
10707
10708         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
10709         Declare with warn_unused_result.
10710         (setgid, setregid, setegid, setresgid): Likewise.
10711         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
10712         Likewise.
10713         * WUR-REPORT: Remove set*id functions.
10714
10715 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
10716
10717         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
10718
10719 2012-07-31  Roland McGrath  <roland@hack.frob.com>
10720
10721         * include/sys/socket.h (__libc_accept, __libc_accept4):
10722         Add attribute_hidden.
10723         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
10724
10725         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
10726         use of PTR_MANGLE.
10727         * inet/getnetgrent_r.c (setup): Likewise.
10728
10729         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
10730
10731 2012-07-31  David S. Miller  <davem@davemloft.net>
10732
10733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10734
10735 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
10736
10737         [BZ #13629]
10738         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
10739         value between 1.0 and 2.0 and smaller part has absolute value less
10740         than 1.0.
10741         * math/s_clog10.c (__clog10): Likewise.
10742         * math/s_clog10f.c (__clog10f): Likewise.
10743         * math/s_clog10l.c (__clog10l): Likewise.
10744         * math/s_clogf.c (__clogf): Likewise.
10745         * math/s_clogl.c (__clogl): Likewise.
10746         * math/libm-test.inc (clog_test): Add more tests.
10747         (clog10_test): Likewise.
10748         * sysdeps/i386/fpu/libm-test-ulps: Update.
10749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10750
10751 2012-07-31  Florian Weimer  <fweimer@redhat.com>
10752
10753         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
10754         Exit with zero in case no suitable GID is found, and write a
10755         message to standard error.
10756
10757 2012-07-30  Roland McGrath  <roland@hack.frob.com>
10758
10759         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
10760         rather than to 1.
10761         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
10762         (MAXPATHLEN): Removed.
10763         (NOGROUP, NODEV): New macros.
10764         (setbit, clrbit, isset, isclr): New macros.
10765         (howmany, roundup, powerof2): New macros.
10766         (DEV_BSIZE): New macro.
10767
10768         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
10769         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
10770
10771         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
10772         definition on [!__NO_LONG_DOUBLE_MATH].
10773
10774         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
10775         PTR_MANGLE and PTR_DEMANGLE.
10776
10777         * socket/accept4.c (accept4): Rename to __libc_accept4.
10778         Define accept4 as a weak alias.
10779
10780         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
10781         on [_DIRENT_HAVE_D_TYPE].
10782         * io/ftw.c (ftw_dir): Likewise.
10783
10784         * io/xmknod.c (__xmknod): Don't check PATH for being null.
10785
10786         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
10787
10788         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
10789         Use the BSD numbers rather than the arbitrary ones we had.
10790         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
10791         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
10792         (SIGXCPU, SIGXFSZ): New macros.
10793         (_NSIG): Now 32.
10794
10795         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
10796         initializer on [_LIBC_REENTRANT].
10797
10798         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
10799         definitions inside [_POSIX_MAPPED_FILES].
10800
10801         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
10802
10803         * dirent/opendir.c: Include <fcntl.h>.
10804
10805         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
10806         (__libc_getspecific): Likewise.
10807         (__libc_key_create): Likewise.
10808
10809         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
10810         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
10811         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
10812         (tmpfile64): Define as alias.
10813         * sysdeps/wordsize-64/tmpfile.c: File removed.
10814         * sysdeps/wordsize-64/tmpfile64.c: File removed.
10815         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
10816         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
10817
10818         * stdio-common/vfscanf.c: Include <stdbool.h>.
10819         * nss/makedb.c: Likewise.
10820         * stdio-common/_i18n_number.h: Likewise.
10821         * argp/argp-help.c: Likewise.
10822         * posix/wordexp.c: Likewise.
10823         * sysdeps/posix/spawni.c: Likewise.
10824         * nss/nss_files/files-initgroups.c: Likewise.
10825         * stdio-common/reg-modifier.c: Include <stdlib.h>.
10826         * nss/nss_files/files-initgroups.c: Likewise.
10827         * nss/nss_db/db-netgrp.c: Likewise.
10828         * nss/nss_db/db-initgroups.c: Likewise.
10829         * io/fchmodat.c: Include <sys/stat.h>.
10830
10831         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
10832         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
10833
10834         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
10835         [HAVE_MMAP].
10836
10837         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
10838         Add multiple inclusion protection.
10839
10840 2012-07-27  David S. Miller  <davem@davemloft.net>
10841
10842         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10843
10844 2012-07-27  Gary Benson  <gbenson@redhat.com>
10845
10846         [BZ #14298]
10847         * elf/rtld.c: Include <stap-probe.h>.
10848         (dl_main): Added static probes "init_start" and "init_complete".
10849         * elf/dl-load.c: Include <stap-probe.h>.
10850         (lose): Take new parameter "nsid".
10851         Added static probe "map_failed".
10852         (_dl_map_object_from_fd): Pass namespace id to lose.
10853         Added static probe "map_start".
10854         (open_verify): Pass namespace id to lose.
10855         * elf/dl-open.c: Include <stap-probe.h>.
10856         (dl_open_worker) Added static probes "map_complete", "reloc_start"
10857         and "reloc_complete".
10858         * elf/dl-close.c: Include <stap-probe.h>.
10859         (_dl_close_worker): Added static probes "unmap_start" and
10860         "unmap_complete".
10861         * elf/rtld-debugger-interface.txt: New file documenting the above.
10862
10863 2012-07-26  Roland McGrath  <roland@hack.frob.com>
10864
10865         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
10866         rather than a string variable.
10867         * sunrpc/rpc_main.c (h_output): Likewise.
10868         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
10869
10870 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
10871
10872         * inet/check_native.c: New file.
10873
10874 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
10875
10876         [BZ #13629]
10877         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
10878         if larger part has absolute value 1.0.
10879         * math/s_clog10.c (__clog10): Likewise.
10880         * math/s_clog10f.c (__clog10f): Likewise.
10881         * math/s_clog10l.c (__clog10l): Likewise.
10882         * math/s_clogf.c (__clogf): Likewise.
10883         * math/s_clogl.c (__clogl): Likewise.
10884         * math/libm-test.inc (clog_test): Add more tests.
10885         (clog10_test): Likewise.
10886         * sysdeps/i386/fpu/libm-test-ulps: Update.
10887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10888
10889         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
10890         (pltexit): Likewise.
10891         (La_regs): Likewise.
10892         (La_retval): Likewise.
10893         (int_retval): Likewise.
10894         Update #error for removed macros to refer only to definitions in
10895         tst-audit.h.
10896         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
10897         macro.
10898         (pltexit): Likewise.
10899         (La_regs): Likewise.
10900         (La_retval): Likewise.
10901         (int_retval): Likewise.
10902         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
10903         macro.
10904         (pltexit): Likewise.
10905         (La_regs): Likewise.
10906         (La_retval): Likewise.
10907         (int_retval): Likewise.
10908         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
10909         macro.
10910         (pltexit): Likewise.
10911         (La_regs): Likewise.
10912         (La_retval): Likewise.
10913         (int_retval): Likewise.
10914         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
10915         macro.
10916         (pltexit): Likewise.
10917         (La_regs): Likewise.
10918         (La_retval): Likewise.
10919         (int_retval): Likewise.
10920         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
10921         macro.
10922         (pltexit): Likewise.
10923         (La_regs): Likewise.
10924         (La_retval): Likewise.
10925         (int_retval): Likewise.
10926         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
10927         macro.
10928         (pltexit): Likewise.
10929         (La_regs): Likewise.
10930         (La_retval): Likewise.
10931         (int_retval): Likewise.
10932         * sysdeps/generic/tst-audit.h: Update comment to refer only to
10933         macro definitions in tst-audit.h.
10934         * sysdeps/i386/tst-audit.h: New file.
10935         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
10936         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
10937         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
10938         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
10939         * sysdeps/sh/tst-audit.h: Likewise.
10940         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
10941         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
10942         * sysdeps/x86_64/tst-audit.h: Likewise.
10943
10944 2012-07-26  Andreas Jaeger  <aj@suse.de>
10945
10946         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
10947         ptrace.
10948
10949         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
10950         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
10951         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
10952         PTRACE_O_MASK.
10953         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
10954         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
10955         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
10956
10957         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
10958         value.
10959
10960         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
10961         _sigsys.
10962         (si_call_addr, si_syscall, si_arch): Define new macro.
10963         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
10964         _sigsys.
10965         (si_call_addr, si_syscall, si_arch): Define new marcro.
10966         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
10967         _sigsys.
10968         (si_call_addr, si_syscall, si_arch): Define new macro.
10969         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
10970         _sigsys.
10971         (si_call_addr, si_syscall, si_arch): Define new macro.
10972
10973 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
10974
10975         [BZ #13717]
10976         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10977         Change to 2.4.21 where previously 2.4.1.
10978         * sysdeps/unix/sysv/linux/configure: Regenerated.
10979         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
10980         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
10981         Linux kernel version.
10982         (__ASSUME_STD_AUXV): Remove.
10983         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
10984         kernel version.
10985         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
10986         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
10987         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
10988         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
10989         (__ASSUME_NETLINK_SUPPORT): Likewise.
10990         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
10991         (__no_netlink_support): Remove conditional definition.
10992         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
10993         Remove.
10994         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
10995         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
10996         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
10997         (if_nameindex_ioctl): Remove.
10998         (if_nameindex_netlink): Do not handle __no_netlink_support.
10999         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11000         code.
11001         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11002         Remove conditional code.
11003         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11004         code.
11005         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11006         unconditional.
11007         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11008         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11009         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11010         Remove.
11011         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11012         [!__ASSUME_STD_AUXV]: Remove conditional code.
11013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11014         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11015         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11017         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11018         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11019         code.
11020         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11022         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11023         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11024         conditional code.
11025         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11027         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11028         code.
11029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11030         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11031         conditional code.
11032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11033         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11034         code unconditional.
11035         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11036         conditional code.
11037         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11038         unconditional.
11039         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11040         conditional code.
11041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11042         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11043         unconditional.
11044         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11045         conditional code.
11046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11047         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11048         code unconditional.
11049         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11050         conditional code.
11051         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11052         unconditional.
11053         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11054         conditional code.
11055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11056         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11057         code unconditional.
11058         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11059         conditional code.
11060         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11061         unconditional.
11062         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11063         conditional code.
11064
11065 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11066
11067         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11068         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11069         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11070         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11071         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11072         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11073         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11074         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11075         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11076         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11077         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11078         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11079         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11080         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11081         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11082         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11083         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11084         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11085         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11086         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11087         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11088         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11089         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11090
11091 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11092
11093         * Versions.def: Add GLIBC_2.17.
11094         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11095         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11096         Introduce __libc_secure_getenv.
11097         * stdlib/Versions (2.17): Add secure_getenv
11098         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11099         * stdlib/secure-getenv.c: Rename __secure_getenv to
11100         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11101         symbol __secure_getenv for GLIBC_2.0.
11102         * stdlib/tst-secure-getenv.c: New.
11103         * stdlib/Makefile (tests): Add testcase.
11104         * manual/startup.texi (Environment Access): Document
11105         secure_getenv.
11106         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11107         __libc_secure_getenv.
11108         * inet/ruserpass.c (ruserpass): Likewise.
11109         * malloc/mtrace.c (mtrace): Likewise.
11110         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11111         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11112         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11113         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11114         HAVE_SECURE_GETENV.
11115         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11116         __secure_getenv to __libc_secure_getenv.
11117         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11119         Likewise.
11120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11121         Likewise.
11122         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11124         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11125         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11126         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11127         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11129
11130 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11131
11132         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11133         (struct La_i86_retval): Likewise.
11134         (struct La_x86_64_regs): Likewise.
11135         (struct La_x86_64_retval): Likewise.
11136         (struct La_x32_regs): Likewise.
11137         (struct La_x32_retval): Likewise.
11138         (struct La_ppc32_regs): Likewise.
11139         (struct La_ppc32_retval): Likewise.
11140         (struct La_ppc64_regs): Likewise.
11141         (struct La_ppc64_retval): Likewise.
11142         (struct La_sh_regs): Likewise.
11143         (struct La_sh_retval): Likewise.
11144         (struct La_s390_32_regs): Likewise.
11145         (struct La_s390_32_retval): Likewise.
11146         (struct La_s390_64_regs): Likewise.
11147         (struct La_s390_64_retval): Likewise.
11148         (struct La_sparc32_regs): Likewise.
11149         (struct La_sparc32_retval): Likewise.
11150         (struct La_sparc64_regs): Likewise.
11151         (struct La_sparc64_retval): Likewise.
11152         (struct audit_ifaces): Remove architecture-specific pltenter and
11153         pltexit members.
11154         * sysdeps/i386/ldsodefs.h: New file.
11155         * sysdeps/powerpc/ldsodefs.h: Likewise.
11156         * sysdeps/s390/ldsodefs.h: Likewise.
11157         * sysdeps/sh/ldsodefs.h: Likewise.
11158         * sysdeps/sparc/ldsodefs.h: Likewise.
11159         * sysdeps/x86_64/ldsodefs.h: Likewise.
11160
11161 2012-07-25  Marek Polacek  <polacek@redhat.com>
11162
11163         [BZ #6808]
11164         * math/libm-test.inc (yn_test): Add another test.
11165         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11166         to ERANGE when the result is +-Inf.
11167         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11168         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11169         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11170         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11171
11172 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11173
11174         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11175         equal to 0.
11176         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11177         clock_t.
11178         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11179
11180 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11181
11182         * configure.in <sysdeps resolving>: Correct printing
11183         Implies_before.
11184         * configure: Regenerate.
11185
11186 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11187
11188         * math/w_ilogb.c: Include <limits.h>.
11189         * math/w_ilogbl.c: Likewise.
11190
11191 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11192
11193         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11194         va_copy.  Document allowing for unavailable va_copy only as
11195         pre-C99 compatibility.
11196         * manual/string.texi (Copying and Concatenation): Use va_copy
11197         instead of __va_copy in concat example.
11198
11199 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11200
11201         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11202         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11203         it if not null.
11204
11205         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11206         with O_NOLINK passed to __file_name_lookup.
11207
11208         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11209         with O_NOLINK passed to __file_name_lookup.
11210
11211         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11212         negative N or less than NGIDS.
11213
11214         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11215         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11216         enough.  Use memcpy instead of strncpy.
11217
11218 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11219
11220         * elf/Makefile (check-data): Remove.
11221         (localplt.data): New vpath directive.
11222         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11223         instead of $(check-data).
11224         * scripts/data/localplt-generic.data: Move to ...
11225         * sysdeps/generic/localplt.data: ... here.
11226         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11227         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11228         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11230         ... here.
11231         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11233         ... here.
11234         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11235         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11236         ... here.
11237         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11238         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11239         ... here.
11240         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11241         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11242         ... here.
11243         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11244         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11245         ... here.
11246
11247 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11248
11249         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11250         PPC32 and PPC64 files.
11251         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11252         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11253
11254 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11255
11256         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11257         __makecontext_ret to ...
11258         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11259         ... here and call exit if uc_link is NULL.  New file.
11260         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11261         __makecontext_ret.S.
11262         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11263         __makecontext_ret to ...
11264         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11265         ... here and call exit if uc_link is NULL.  New file.
11266         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11267         __makecontext_ret.S.
11268
11269 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11270
11271         * elf/elf.h (R_390_IRELATIVE): New definition.
11272         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11273         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11274         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11275         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11276         (elf_machine_lazy_rel): Likewise.
11277         * sysdeps/s390/dl-irel.h: New file.
11278         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11279         * sysdeps/s390/s390-64/memset.S: New asm code.
11280         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11281         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11282         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11283         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11284         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11285         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11286         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11287         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11288         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11289         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11290         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11291         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11292         * sysdeps/s390/s390-32/memset.S: New asm code.
11293         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11294
11295 2012-07-17  Marek Polacek  <polacek@redhat.com>
11296
11297         [BZ #14349]
11298         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11299         * sysdeps/s390/s390-64/configure.in: Likewise.
11300         * sysdeps/sparc/configure.in: Likewise.
11301         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11302         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11303         * sysdeps/i386/configure.in: Likewise.
11304         * sysdeps/x86_64/configure.in: Likewise.
11305         * sysdeps/sh/configure.in: Likewise.
11306         * sysdeps/s390/s390-32/configure: Regenerated.
11307         * sysdeps/s390/s390-64/configure: Likewise.
11308         * sysdeps/x86_64/configure: Likewise.
11309         * sysdeps/sh/configure: Likewise.
11310         * sysdeps/powerpc/powerpc64/configure: Likewise.
11311         * sysdeps/powerpc/powerpc32/configure: Likewise.
11312         * sysdeps/sparc/configure: Likwise.
11313         * sysdeps/i386/configure: Likewise.
11314
11315         * elf/dl-open.c: Comment fixes.
11316
11317 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11318
11319         * Makefile [CXX] (check-data): Remove.
11320         [CXX] (c++-types.data): New vpath directive.
11321         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11322         vpath.  Do not allow for C++ type data being missing.
11323         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11324         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11325         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11326         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11327         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11328         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11329         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11331         ... here.
11332         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
11334         ... here.
11335         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
11336         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
11337         ... here.
11338         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
11339         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
11340         ... here.
11341         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
11342         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
11343         ... here.
11344         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
11345         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
11346         ... here.
11347         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
11348         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
11349         ... here.
11350         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
11351         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
11352
11353         * elf/tls-macros.h (TLS_LE): Move architecture-specific
11354         definitions to architecture-specific files.
11355         (TLS_IE): Likewise.
11356         (TLS_LD): Likewise.
11357         (TLS_GD): Likewise.
11358         * sysdeps/i386/tls-macros.h: New file.
11359         * sysdeps/powerpc/tls-macros.h: Likewise.
11360         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
11361         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
11362         * sysdeps/sh/tls-macros.h: Likewise.
11363         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
11364         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
11365         * sysdeps/x86_64/tls-macros.h: Likewise.
11366
11367 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11368
11369         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
11370         zero value for regular exit case.
11371
11372         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11373         (__start_context): Preserve zero value for regular exit case.
11374
11375 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11376             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11377
11378         * manual/setjmp.texi (setcontext): Clarify normal process
11379         termination when uc_link is the null pointer.
11380         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
11381         exit call.
11382
11383 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
11384
11385         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
11386         preprocessor.  Test for each exception mask separately.
11387
11388 2012-07-16  Andreas Jaeger  <aj@suse.de>
11389
11390         * po/ru.po: Update from translation team.
11391
11392 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
11393
11394         * conform/data/string.h-data (NULL): Use macro-constant.  Require
11395         equal to 0.
11396         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11397         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11398         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
11399         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
11400         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11401
11402 2012-07-13  Andreas Jaeger  <aj@suse.de>
11403
11404         * po/fr.po: Update from translation team.
11405
11406 2012-07-12  Marek Polacek  <polacek@redhat.com>
11407
11408         [BZ #14173]
11409         * math/libm-test.inc (yn_test): Add test for BZ #14173.
11410         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
11411         loop condition.
11412
11413 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
11414
11415         [BZ #13717]
11416         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11417         Change to 2.4.1 where previously 2.4.0.
11418         * sysdeps/unix/sysv/linux/configure: Regenerated.
11419         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
11420         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
11421         version.
11422         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
11423         (__ASSUME_AT_CLKTCK): Remove.
11424         (__ASSUME_AT_PAGESIZE): Likewise.
11425         (__ASSUME_AT_XID): Likewise.
11426         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
11427         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
11428         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
11429         unconditionally.
11430         (HAVE_AUX_PAGESIZE): Likewise.
11431         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
11432         [__ASSUME_AT_CLKTCK]: Make code unconditional.
11433         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
11434
11435 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
11436
11437         [BZ #14307]
11438         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
11439         the temporary buffer used to invoke __gethostbyname2_r,
11440         __gethostbyaddr_r and gethostbyname4_r to make room for struct
11441         host_data / struct gaih_addrtuple.
11442         * resolv/nss_dns/dns-host.c (global scope): Move definition of
11443         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
11444         header file nss/nsswitch.h.
11445         * nss/nsswitch.h (global scope): Add definition of implementation
11446         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
11447         resolv/nss_dns/dns-host.c).
11448
11449 2012-07-11  Andreas Jaeger  <aj@suse.de>
11450
11451         * po/fr.po: Update from translation team.
11452
11453         * po/sv.po: Update from translation team
11454         * po/fr.po: Another update from translation team.
11455
11456 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11457
11458         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
11459         for subnormals or multiply small sinh result by itself.
11460         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11461         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11462
11463 2012-07-11  David S. Miller  <davem@davemloft.net>
11464
11465         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11466
11467 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
11468
11469         [BZ #14347]
11470         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
11471         (INTERNAL_MARK): Shift it here.
11472
11473 2012-07-10  Marek Polacek  <polacek@redhat.com>
11474
11475         [BZ #14151]
11476         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
11477         libc_cv_asm_global_directive with .globl.
11478         * configure: Regenerated.
11479         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
11480         with .globl.
11481         * sysdeps/i386/configure: Regenerated.
11482         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
11483         with .globl.
11484         * sysdeps/x86_64/configure: Regenerated.
11485         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
11486         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
11487         * elf/tst-unique2mod2.c: Likewise.
11488         * elf/tst-unique2mod1.c: Likewise.
11489         * elf/tst-unique1mod2.c: Likewise.
11490         * elf/tst-unique1mod1.c: Likewise.
11491         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11492         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11493         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11494         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11495         * sysdeps/mach/sysdep.h: Likewise.
11496         * sysdeps/i386/sysdep.h: Likewise.
11497         * sysdeps/i386/i386-mcount.S: Likewise.
11498         * sysdeps/x86_64/_mcount.S: Likewise.
11499         * sysdeps/x86_64/sysdep.h: Likewise.
11500         * sysdeps/sh/_mcount.S: Likewise.
11501         * sysdeps/sh/sysdep.h: Likewise.
11502         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
11503         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
11504         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
11505         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11506         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
11507         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
11508         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
11509         * locale/localeinfo.h: Likewise.
11510         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
11511         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
11512
11513 2012-07-09  Roland McGrath  <roland@hack.frob.com>
11514
11515         [BZ #14336]
11516         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
11517         system".
11518         * manual/message.texi (The Uniforum approach): Likewise.
11519         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
11520         (glibc iconv Implementation): Likewise.
11521
11522 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
11523
11524         [BZ #14337]
11525         * math/s_clog.c (__clog): Avoid scaling a value down where that
11526         could result in underflow.
11527         * math/s_clog10.c (__clog10): Likewise.
11528         * math/s_clog10f.c (__clog10f): Likewise.
11529         * math/s_clog10l.c (__clog10l): Likewise.
11530         * math/s_clogf.c (__clogf): Likewise.
11531         * math/s_clogl.c (__clogl): Likewise.
11532         * math/libm-test.inc (clog_test): Add more tests.
11533         (clog10_test): Likewise.
11534         * sysdeps/i386/fpu/libm-test-ulps: Update.
11535         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11536
11537 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
11538
11539         [BZ #14283]
11540         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
11541         by 7 not 8 to examine high bit of fractional part.
11542
11543         [BZ #14042]
11544         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
11545         for call to __mcount_internal.
11546         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
11547         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
11548         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
11549
11550 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
11551
11552         [BZ #14154]
11553         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
11554         approximation for values within 0x1p-13f of an odd multiple of
11555         pi/4.
11556         * math/libm-test.inc (tan_test): Do not allow spurious underflow
11557         exception.  Add more tests.
11558         * sysdeps/i386/fpu/libm-test-ulps: Update.
11559
11560         [BZ #6778]
11561         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
11562         inputs and return -1 for them.  Do not check for +Inf in case not
11563         reachable for +Inf.
11564         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
11565         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
11566         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11567         and return -1 for them.  Do not check for +Inf in case not
11568         reachable for +Inf.
11569         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
11570         define.
11571         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11572         and return -1 for them.  Do not check for +Inf in case not
11573         reachable for +Inf.
11574         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
11575         spurious underflow.
11576         * sysdeps/i386/fpu/libm-test-ulps: Update.
11577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11578
11579 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
11580
11581         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
11582
11583 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
11584
11585         [BZ #14157]
11586         [BZ #14331]
11587         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
11588         could result in spurious underflow.  Scale down values above
11589         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
11590         * math/s_csqrtf.c (__csqrtf): Likewise.
11591         * math/s_csqrtl.c (__csqrtl): Likewise.
11592         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
11593         spurious underflow.
11594         * sysdeps/i386/fpu/libm-test-ulps: Update.
11595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11596
11597 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
11598
11599         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
11600         xopen-msg.sed.
11601         * catgets/xopen-msg.awk: New file.
11602         * catgets/xopen-msg.sed: Removed.
11603
11604         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
11605         po2text.sed.
11606         * intl/po2test.awk: New file.
11607         * intl/po2test.sed: Removed.
11608
11609 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
11610
11611         [BZ #14328]
11612         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
11613         or multiply small sinh result by itself.
11614         * math/s_ctanf.c (__ctanf): Likewise.
11615         * math/s_ctanh.c (__ctanh): Likewise.
11616         * math/s_ctanhf.c (__ctanhf): Likewise.
11617         * math/s_ctanhl.c (__ctanhl): Likewise.
11618         * math/s_ctanl.c (__ctanl): Likewise.
11619         * math/libm-test.inc (ctan_test_tonearest): New function.
11620         (ctan_test_towardzero): Likewise.
11621         (ctan_test_downward): Likewise.
11622         (ctan_test_upward): Likewise.
11623         (ctanh_test_tonearest): Likewise.
11624         (ctanh_test_towardzero): Likewise.
11625         (ctanh_test_downward): Likewise.
11626         (ctanh_test_upward): Likewise.
11627         (main): Call these new functions.
11628         * sysdeps/i386/fpu/libm-test-ulps: Update.
11629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11630
11631 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
11632
11633         * .gitignore: Delete /ports entry.
11634
11635 2012-07-03  Andreas Jaeger  <aj@suse.de>
11636
11637         * po/bg.po: Update from translation team.
11638         * po/cs.po: Likewise.
11639         * po/de.po: Likewise.
11640         * po/hr.po: Likewise.
11641         * po/nl.pl: Likewise.
11642         * po/pl.po: Likewise.
11643         * po/vi.po: Likewise.
11644
11645 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
11646
11647         * Makeconfig [!+link] (+link-before-libc): New variable.
11648         [!+link] (+link-after-libc): Likewise.
11649         [!+link] (+link-tests): Likewise.
11650         [!+link] (+link): Define in terms of $(+link-before-libc) and
11651         $(+link-after-libc).
11652         [!+link-static] (+link-static-before-libc): New variable.
11653         [!+link-static] (+link-static-after-libc): Likewise.
11654         [!+link-static] (+link-static-tests): Likewise.
11655         [!+link-static] (+link-static): Define in terms of
11656         $(+link-static-before-libc) and $(+link-static-after-libc).
11657         [build-shared] (link-libc-before-gnulib): New variable.
11658         [build-shared] (link-libc-tests): Likewise.
11659         [build-shared] (link-libc): Define in terms of
11660         $(link-libc-before-gnulib).
11661         [!build-shared] (link-libc-tests): New variable.
11662         (link-libc-static-tests): New variable.
11663         [!gnulib] (gnulib-arch): New variable.
11664         [!gnulib] (gnulib-tests): Likewise.
11665         [!gnulib] (static-gnulib-arch): Likewise.
11666         [!gnulib] (static-gnulib-tests): Likewise.
11667         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
11668         Define with "=" instead of ":=".
11669         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
11670         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
11671         * Rules (binaries-all-notests): New variable.
11672         (binaries-all-tests): Likewise.
11673         (binaries-static-notests): Likewise.
11674         (binaries-static-tests): Likewise.
11675         (binaries-all): Define using $(binaries-all-notests) and
11676         $(binaries-all-tests).
11677         (binaries-static): Define using $(binaries-static-notests) and
11678         $(binaries-static-tests).
11679         (binaries-shared-tests): New variable.
11680         (binaries-shared-notests): Likewise.
11681         (binaries-shared): Remove variable.
11682         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
11683         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
11684         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
11685         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
11686         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
11687         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
11688         * elf/Makefile (sln-modules): New variable.
11689         (extra-objs): Add $(sln-modules:=.o).
11690         (ldconfig-modules): Add static-stubs.
11691         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
11692         * elf/static-stubs.c: New file.
11693
11694         [BZ #14283]
11695         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
11696         by 7 not 8 to examine high bit of fractional part.  Use volatile
11697         variables when splitting into final array of floats if
11698         __FLT_EVAL_METHOD__ != 0.
11699         * math/libm-test.inc (cos_test): Add another test.
11700         (sin_test): Likewise.
11701         * sysdeps/i386/fpu/libm-test-ulps: Update.
11702
11703         [BZ #14273]
11704         * math/libm-test.inc (cosh_test): Add more tests.
11705
11706         * version.h (RELEASE): Set to "development".
11707         (VERSION): Set to "2.16.90".
11708
11709 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
11710
11711         * NEWS: Update copyright. Remove last-updated date.
11712         Mention math library bug fixes and timezone data changes.
11713         * README: Mention GNU/Hurd, x32, and HPPA support status.
11714
11715 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
11716
11717         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
11718
11719 2012-06-27  Andreas Jaeger  <aj@suse.de>
11720
11721         * manual/contrib.texi (Contributors): Add Samuel Thibault.
11722
11723 2012-06-25  Andreas Jaeger  <aj@suse.de>
11724
11725         * sysdeps/s390/fpu/libm-test-ulps: Update.
11726
11727 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
11728             Thomas Schwinge  <thomas@codesourcery.com>
11729
11730         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
11731         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
11732         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
11733         fanotify_mark.
11734
11735 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
11736
11737         * sysdeps/mach/start.c: Remove file.
11738         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
11739         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
11740         * sysdeps/sh/init-first.c: Likewise.
11741
11742         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
11743         registers for frame unwinding purposes, add CFI directives.
11744         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11745         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
11746         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11747         Likewise.
11748
11749         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
11750         __fortify_fail returning.
11751         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11752
11753         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
11754         sysdeps/sh/____longjmp_chk.S.
11755         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
11756         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
11757         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
11758         (gen-as-const-headers): Append sigaltstack-offsets.sym.
11759
11760         * sysdeps/sh/abort-instr.h: New file.
11761         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
11762         process in case exit returns.
11763
11764         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
11765         initialize the GOT register before use.
11766
11767         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
11768         calculation of ARGC > 4.
11769
11770         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
11771         meaningful names to some local labels.
11772
11773 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11774             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11775
11776         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
11777         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
11778         (__arch_compare_and_exchange_val_16_acq): Likewise.
11779         (__arch_compare_and_exchange_val_32_acq): Likewise.
11780         (atomic_exchange_and_add): Fix gUSA sequence.
11781         (atomic_add): Likewise.
11782         (atomic_add_negative): Likewise.
11783         (atomic_add_zero): Likewise.
11784         (atomic_bit_test_set): Likewise.
11785
11786 2012-06-22  Andreas Schwab  <schwab@redhat.com>
11787
11788         [BZ #13579]
11789         * include/link.h (struct link_map): Add l_free_initfini.
11790         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
11791         l_initfini.
11792         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
11793         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
11794         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
11795         set.
11796
11797 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
11798
11799         * configure.in: Use AC_LANG_SOURCE.
11800         * configure: Regenerate.
11801
11802 2012-06-22  Roland McGrath  <roland@hack.frob.com>
11803
11804         * configure.in (libc_cv_localstatedir): New substituted variable.
11805         * configure: Regenerated.
11806         * config.make.in (localstatedir): New variable, substituted from
11807         libc_cv_localstatedir.
11808         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
11809         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
11810         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
11811         * sysdeps/gnu/configure: Regenerated.
11812
11813 2012-06-21  Jeff Law  <law@redhat.com>
11814
11815         [BZ #14277]
11816         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
11817         free.  Simplify list management for _LIBC case.
11818
11819 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
11820
11821         [BZ #14273]
11822         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
11823         Clear sign bit of 64-bit integer value before comparing against
11824         overflow value.
11825
11826         * sysdeps/mach/configure: Regenerated.
11827
11828 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11829
11830         [BZ #14278]
11831         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
11832
11833 2012-06-21  Jeff Law  <law@redhat.com>
11834
11835         [BZ #13882]
11836         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
11837         uint16_t for elements in the "seen" array to avoid char overflows.
11838         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11839         * elf/dl-open.c (dl_open_worker): Likewise.
11840
11841 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
11842
11843         * scripts/list-sources.sh: Scan PORTS for translations.
11844         * po/libc.pot: Regenerated.
11845
11846 2012-06-21  Andreas Jaeger  <aj@suse.de>
11847
11848         [BZ #12194]
11849         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
11850         warning.
11851         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
11852         * bits/byteswap-16.h (__bswap_16): Likewise.
11853         * bits/byteswap.h (__bswap_constant_16): Likewise.
11854
11855 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11856
11857         [BZ #14117]
11858         * sysdeps/i386/fpu_control.h: Removed.
11859         * sysdeps/x86_64/fpu_control.h: Moved to ...
11860         * sysdeps/x86/fpu_control.h: Here.
11861
11862         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
11863         (_FPU_SETCW): Likewise.
11864
11865 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
11866
11867         [BZ #14117]
11868         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
11869         * sysdeps/x86/fpu/bits/mathinline.h: This.
11870         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
11871
11872         [BZ #14050]
11873         [BZ #14117]
11874         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
11875         functions if __x86_64__ is defined.
11876
11877 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
11878
11879         * string/endian.h: Add !__ASSEMBLER__ condition for including
11880         conversion interfaces.
11881
11882 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
11883
11884         [BZ #14241]
11885         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
11886         of ABS(x) in calculating zero to negative powers other than odd
11887         integers.
11888         * math/libm-test.inc (pow_test): Add more tests.
11889
11890 2012-06-15  Andreas Jaeger  <aj@suse.de>
11891
11892         * manual/contrib.texi (Contributors): Update entry of Liubov
11893         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
11894         Machado Filho.
11895
11896 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
11897
11898         * string/string.h: Add __wur to GNU version of strerror_r.
11899
11900 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11901
11902         [BZ #14229]
11903         * string/Makefile (tests): Add tst-strtok_r.
11904         * string/tst-strtok_r.c: New file.
11905         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
11906         RAX_LP/RDX_LP on SAVE_PTR.
11907
11908 2012-06-14  Roland McGrath  <roland@hack.frob.com>
11909
11910         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
11911
11912 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
11913
11914         * libm_test.inc (csqrt_test): Allow more spurious underflow
11915         exceptions.
11916         (j0_test): Likewise.
11917         (j1_test): Likewise.
11918         (y0_test): Likewise.
11919         (y1_test): Likewise.
11920
11921 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
11922
11923         * po/Makefile (libc.pot): Use UTF-8 charset.
11924
11925 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
11926
11927         [BZ #14210]
11928         Suppress sign-conversion warning from FD_SET.
11929         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
11930         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
11931         not unsigned long int.
11932         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
11933
11934 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11935
11936         [BZ #14050]
11937         [BZ #14117]
11938         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
11939         __extern_always_inline instead of __extern_inline.
11940         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
11941         (__signbit): Likewise.
11942         (__signbitl): Support C++ namespace.
11943         (lrintf): New inline function.
11944         (lrint): Likewise.
11945         (llrintf): Likewise.
11946         (llrint): Likewise.
11947         (fmaxf): Likewise.
11948         (fmax): Likewise.
11949         (fminf): Likewise.
11950         (fmin): Likewise.
11951         (rint): Likewise.
11952         (rintf): Likewise.
11953         (ceil): Likewise.
11954         (ceilf): Likewise.
11955         (floor): Likewise.
11956         (floorf): Likewise.
11957         (nearbyint): Likewise.
11958         (nearbyintf): Likewise.
11959
11960 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
11961
11962         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
11963         non-default versions.
11964
11965 2012-06-11  Roland McGrath  <roland@hack.frob.com>
11966
11967         [BZ #14218]
11968         * manual/argp.texi (Argp): Reword argp_parse description slightly.
11969
11970 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
11971
11972         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
11973         (FE_UPWARD, FE_DOWNWARD): Don't define.
11974         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
11975         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11976
11977         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
11978         reading it.
11979         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11980         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11981
11982 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11983
11984         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
11985         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
11986         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
11987         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
11988
11989 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
11990
11991         [BZ #14117]
11992         * sysdeps/i386/fpu/bits/fenv.h: Removed.
11993         * sysdeps/i386/fpu/Implies: New file.
11994         * sysdeps/x86_64/fpu/Implies: Likewise.
11995         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
11996         * sysdeps/x86/fpu/bits/fenv.h: This.
11997
11998         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
11999         __SSE_MATH__.
12000
12001 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12002
12003         [BZ #14134]
12004         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12005         character 0xffff that matches the last element of the
12006         conversion table.
12007
12008 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12009
12010         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12011         fmodl commit.
12012
12013 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12014
12015         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12016         values higher than 25.6283.
12017
12018 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12019
12020         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12021         subnormal exponent extraction and add some __builtin_expect.
12022         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12023         Fix for subnormal mantissa calculation.
12024
12025 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12026
12027         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12028         cpu2 is -1 and errno is not ENOSYS.
12029
12030 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12031
12032         [BZ #14117]
12033         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12034         * sysdeps/x86/bits/string.h: This.
12035         * sysdeps/x86_64/bits/string.h: Removed.
12036
12037         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12038         if not compiling for x86-64, but compiling for >= i486.
12039
12040         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12041         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12042
12043         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12044         New macro from Linux kernel 3.4.0.
12045         (FP_XSTATE_MAGIC2): Likewise.
12046         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12047         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12048         (struct _fpx_sw_bytes): New struct.
12049         (struct _xsave_hdr): Likewise.
12050         (struct _ymmh_state): Likewise.
12051         (struct _xstate): Likewise.
12052
12053         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12054         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12055         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12056         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12057         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12058         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12059
12060         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12061         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12062         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12063         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12064         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12065         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12066
12067 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12068
12069         [BZ #13743]
12070         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12071         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12072         (sysdep_headers): Include sys/platform/ppc.h.
12073         * sysdeps/powerpc/test-gettimebase.c: Test for
12074         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12075         * manual/Makefile (appendices): Include platform.texi.
12076         * manual/contrib.texi (Contributors): Update @node pointers.
12077         * manual/maint.texi (Maintenance): Likewise.
12078         (Platform): New node.
12079         * manual/platform.texi: New file.  Document the new features.
12080
12081 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12082             Jakub Jelinek  <jakub@redhat.com>
12083
12084         [BZ #14188]
12085         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12086         where __builtin_expect is unavailable.
12087
12088 2012-06-03  David S. Miller  <davem@davemloft.net>
12089
12090         * stdlib/longlong.h: Updated from GCC.
12091
12092 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12093
12094         [BZ #14042]
12095         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12096         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12097         __mcount_internal.
12098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12099         (GLIBC_2.16): Likewise.
12100
12101 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12102
12103         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12104
12105 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12106
12107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12108         (default-abi): New variable.
12109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12110         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12111         variable.
12112         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12113         Likewise.
12114         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12115         Likewise.
12116         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12117         Likewise.
12118
12119         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12120         definition.  Document in comment.
12121
12122 2012-06-01  David S. Miller  <davem@davemloft.net>
12123
12124         * stdlib/longlong.h: Updated from GCC.
12125
12126 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12127
12128         [BZ #14117]
12129         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12130         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12131         sys/debugreg.h sys/io.h here.
12132         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12133         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12134         sys/io.h.
12135         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12136         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12137         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12138         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12139         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12140         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12141
12142         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12143         Define only if __x86_64__ is defined.
12144
12145 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12146
12147         [BZ #14048]
12148         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12149         Use int64_t for variable i.
12150         * math/libm-test.inc (fmod_test): Add more tests.
12151
12152         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12153         z computation is not scheduled after fetestexcept.
12154         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12155         Use math_force_eval instead of asm to ensure calculation scheduled
12156         before exception test.
12157         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12158         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12159
12160 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12161
12162         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12163         computation is not scheduled after fetestexcept.
12164
12165 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12166
12167         [BZ #14117]
12168         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12169         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12170
12171 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12172
12173         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12174         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12175
12176 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12177
12178         [BZ #14117]
12179         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12180         <bits/wordsize.h>.
12181         (__WCHAR_MIN): Support __WORDSIZE == 64.
12182         (__WCHAR_MAX): Likewise.
12183
12184         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12185         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12186
12187         [BZ #14183]
12188         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12189         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12190
12191         [BZ #14117]
12192         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12193         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12194
12195         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12196         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12197
12198         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12199         Defined to 1 if __x86_64__ isn't defined.
12200         (_STAT_VER_LINUX_OLD): New.
12201         (st_atime): Remove duplicate.
12202         (st_mtime): Likewise.
12203         (st_ctime): Likewise.
12204
12205 2012-05-31  David S. Miller  <davem@davemloft.net>
12206
12207         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12208         entries.
12209
12210 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12211
12212         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12213         gen-libm-test.pl.
12214
12215         [BZ #14132]
12216         * elf/dl-reloc.c: Include <_itoa.h>.
12217         (_dl_reloc_bad_type): Remove use of INTUSE.
12218         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12219         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12220         * stdio-common/psiginfo.c (psiginfo): Likewise.
12221         * stdio-common/psignal.c (psignal): Likewise.
12222         * string/strsignal.c (strsignal): Likewise.
12223         * include/signal.h (_sys_siglist): Declare hidden proto.
12224         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12225         INTVARDEF with libc_hidden_data_def.
12226         * stdio-common/itoa-udigits.c: Likewise.
12227         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12228         (_itoa_lower_digits_internal): Remove declaration.
12229         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12230         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12231         (_sys_sigabbrev_internal): Remove aliases.
12232         (_sys_siglist): Define hidden alias.
12233
12234 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12235
12236         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12237         bits/sysctl.h.
12238
12239 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12240
12241         [BZ #14117]
12242         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12243         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12244
12245         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12246         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12247         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12248         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12249         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12250         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12251
12252         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12253         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12254         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12255
12256         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12257         with __addr.
12258         (insw): Likewise.
12259         (insl): Likewise.
12260         (outsb): Likewise.
12261         (outsw): Likewise.
12262         (outsl): Likewise.
12263
12264         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12265         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12266         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12267
12268         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12269         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12270         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12271         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12272         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12273         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12274
12275         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12276         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12277
12278         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12279         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12280
12281         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12282         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12283         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12284
12285         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12286         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12287         to ...
12288         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12289
12290         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12291         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12292         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12293
12294         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12295         for x86-64.
12296         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12297
12298 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12299
12300         * math/math.h (M_El): Use two more decimal places.
12301         (M_LOG2El): Likewise.
12302         (M_LOG10El): Likewise.
12303         (M_LN2l): Likewise.
12304         (M_LN10l): Likewise.
12305         (M_PIl): Likewise.
12306         (M_PI_2l): Likewise.
12307         (M_PI_4l): Likewise.
12308         (M_1_PIl): Likewise.
12309         (M_2_PIl): Likewise.
12310         (M_2_SQRTPIl): Likewise.
12311         (M_SQRT2l): Likewise.
12312         (M_SQRT1_2l): Likewise.
12313
12314 2012-05-31  David S. Miller  <davem@davemloft.net>
12315
12316         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12317         values between float registers.
12318         * sysdeps/sparc/sparc64/memset.S: Likewise.
12319         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12320
12321 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12322
12323         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12324         -D_FORTIFY_SOURCE=1.
12325         (CPPFLAGS-tst-longjmp_chk.c): Define.
12326         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12327         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12328         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12329         CFLAGS-tst-wchar-h.c.
12330
12331 2012-05-31  Marek Polacek  <polacek@redhat.com>
12332
12333         [BZ #14132]
12334         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
12335         __endmntent_internal): Remove declaration.
12336         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
12337         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
12338         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
12339
12340 2012-05-30  David S. Miller  <davem@davemloft.net>
12341
12342         * sysdeps/sparc/sparc32/soft-fp/q_util.c
12343         (___Q_simulate_exceptions): Use real FP ops rather than writing
12344         into the %fsr.
12345         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
12346         Likewise.
12347
12348 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12349
12350         [BZ #14117]
12351         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
12352         * sysdeps/x86/bits/xtitypes.h: This.
12353
12354         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
12355         * sysdeps/x86/bits/wordsize.h: This.
12356
12357         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
12358         * sysdeps/x86/bits/huge_vall.h: This.
12359
12360         * sysdeps/i386/bits/select.h: Removed.
12361         * sysdeps/x86_64/bits/select.h: Renamed to ...
12362         * sysdeps/x86/bits/select.h: This.
12363
12364         * sysdeps/i386/bits/setjmp.h: Removed.
12365         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
12366         * sysdeps/x86/bits/setjmp.h: This.
12367
12368         * sysdeps/i386/bits/mathdef.h: Removed.
12369         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
12370         * sysdeps/x86/bits/mathdef.h: This.
12371
12372 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
12373
12374         [BZ #14132]
12375         * include/sys/socket.h (__connect_internal)
12376         (__libc_sa_len_internal): Remove declaration.
12377         (__connect, __libc_sa_len): Declare hidden_proto.
12378         (SA_LEN): Remove use of INTUSE.
12379         * socket/connect.c: Add libc_hidden_def.
12380         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
12381         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
12382         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
12383         alias.
12384         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12385         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12386         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
12387         of adding _internal alias.
12388
12389 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12390
12391         [BZ #14117]
12392         * sysdeps/i386/bits/link.h: Removed.
12393         * sysdeps/i386/bits/linkmap.h: Likewise.
12394         * sysdeps/x86_64/bits/link.h: Renamed to ...
12395         * sysdeps/x86/bits/link.h: This.
12396         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
12397         * sysdeps/x86/bits/linkmap.h: This.
12398
12399         * sysdeps/i386/bits/endian.h: Removed.
12400         * sysdeps/x86_64/bits/endian.h: Renamed to ...
12401         * sysdeps/x86/bits/endian.h: This.
12402
12403         * sysdeps/i386/bits/byteswap.h: Removed.
12404         * sysdeps/i386/bits/byteswap-16.h: Likewise.
12405         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
12406         * sysdeps/x86/bits/byteswap.h: This.
12407         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
12408         * sysdeps/x86/bits/byteswap-16.h: This.
12409         * sysdeps/i386/Implies: Add x86.
12410         * sysdeps/x86_64/Implies: Likewise.
12411
12412 2012-05-30  David S. Miller  <davem@davemloft.net>
12413
12414         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
12415         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
12416         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
12417         (FP_TRAPPING_EXCEPTIONS): Define.
12418         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
12419         (FP_TRAPPING_EXCEPTIONS): Define.
12420         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
12421         subnormals only when inexact has been signalled or underflow
12422         exceptions are enabled.
12423         (_FP_PACK_CANONICAL): Likewise.
12424
12425 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12426
12427         [BZ #14183]
12428         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
12429         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
12430
12431 2012-05-30  Richard Henderson  <rth@twiddle.net>
12432
12433         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
12434         with #ifndef NOT_IN_libc.
12435
12436         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
12437         marked to avoid plt entry.
12438
12439 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12440
12441         [BZ #14112]
12442         * Makeconfig (default-abi): New macro.
12443         (abi-includes): Likewise.
12444         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
12445         $(abi-$(default-abi)-lib-soname) for soname if defined.
12446         ($(common-objpfx)gnu/lib-names.stmp): Generate from
12447         abi-variants.
12448         * Makefile (installed-stubs): Likewise.
12449         * include/stubs-biarch.h: Removed.
12450         * scripts/lib-names.awk: Only handle one library at a time.
12451         * scripts/soversions.awk: Remove WORDSIZE support.
12452         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
12453         entries.
12454         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
12455         Removed.
12456         (syscall-list-default-condition): Likewise.
12457         (syscall-list-default-condition): Likewise.
12458         (syscall-list-includes): Likewise.
12459         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
12460         syscall-list-* with abi-*.  Handle undefined abi-variants.
12461         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
12462         * sysdeps/unix/sysv/linux/i386/Implies: New file.
12463         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
12464         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
12465         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
12466         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
12467         Removed.
12468         (syscall-list-32-options): Likewise.
12469         (syscall-list-32-condition): Likewise.
12470         (syscall-list-64-options): Likewise.
12471         (syscall-list-64-condition): Likewise.
12472         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
12473         macro.
12474         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
12475         Renamed to ...
12476         (abi-*): This.
12477         (abi-64-ld-soname): New macro.
12478         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
12479         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
12480         Renamed to ...
12481         (abi-*): This.
12482         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
12483         * sysdeps/x86_64/x32/shlib-versions: Likewise.
12484
12485 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
12486
12487         * sysdeps/unix/sysv/linux/kernel-features.h
12488         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
12489         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
12490         include <kernel-features.h>.
12491         [!__NR_ftruncate64]: Remove conditional code.
12492         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12493         [__NR_ftruncate64]: Make code unconditional.
12494         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12495         * sysdeps/unix/sysv/linux/truncate64.c: Do not
12496         include <kernel-features.h>.
12497         [!__NR_ftruncate64]: Remove conditional code.
12498         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12499         [__NR_ftruncate64]: Make code unconditional.
12500         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
12502         include <kernel-features.h>.
12503         [!__NR_ftruncate64]: Remove conditional code.
12504         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12505         [__NR_ftruncate64]: Make code unconditional.
12506         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
12508         include <kernel-features.h>.
12509         [!__NR_ftruncate64]: Remove conditional code.
12510         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12511         [__NR_ftruncate64]: Make code unconditional.
12512         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12513
12514         * configure.in (libc_cv_fpie): Weaken to a compile test using
12515         LIBC_TRY_CC_OPTION.
12516         * configure: Regenerated.
12517
12518 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12519
12520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
12521         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
12522         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
12523         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
12524         Refreshed.
12525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
12526         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
12527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
12528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
12529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
12530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
12531         Refreshed.
12532
12533 2012-05-27  David S. Miller  <davem@davemloft.net>
12534
12535         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
12536         (___Q_zero): New.
12537         (__Q_simulate_exceptions): Return void.  Change to simulate
12538         exceptions by writing into the %fsr.
12539         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
12540         (__Qp_handle_exceptions): Likewise.
12541         (numbers): Delete.
12542         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
12543         __Qp_handle_exceptions.
12544         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
12545         __Qp_handle_exceptions.
12546         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12547         as unused and give dummy FP_RND_NEAREST initializer.
12548         (FP_INHIBIT_RESULTS): Define.
12549         (___Q_simulate_exceptions): Update declaration.
12550         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
12551         formatting.
12552         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12553         as unused and give dummy FP_RND_NEAREST initializer.
12554         (__Qp_handle_exceptions): Update declaration.
12555         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
12556         formatting.
12557
12558 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
12559
12560         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
12561         the temporary FPU control word.
12562         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
12563         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
12564         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
12565         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12566         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
12567         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
12568         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
12569         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12570         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
12571         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12572         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12573
12574 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12575
12576         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
12577         fields.
12578
12579 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
12580
12581         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
12582         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
12583         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
12584         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
12585         Likewise.
12586         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
12587         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
12588         Likewise.
12589
12590 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
12591
12592         * po/h.po: Update from translation team.
12593
12594 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
12595
12596         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
12597
12598         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
12599         handling of denormals.
12600         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
12601         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
12602         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
12603         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
12604         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12605         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
12606         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
12607         Likewise.
12608
12609 2012-05-26  Marek Polacek  <polacek@redhat.com>
12610
12611         [BZ #14152]
12612         * math/libm-test.inc (fma_test): Don't always expect underflow
12613         exception.
12614
12615 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12616
12617         [BZ #12416]
12618         * elf/tst-execstack.c: Include stackinfo.h.
12619         (do_test): Adjust test case to ensure that pthread_getattr_np
12620         behaviour remains the same after marking stack executable.
12621
12622 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12623
12624         * sysdeps/unix/sysv/linux/kernel-features.h
12625         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
12626         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
12627         kernel-features.h.
12628         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12629         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12630         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
12631         kernel-features.h.
12632         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12633         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12634
12635 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12636
12637         * configure.in: Define the default includes to being none.
12638         * configure: Regenerated.
12639
12640 2012-05-25  Roland McGrath  <roland@hack.frob.com>
12641
12642         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
12643         * sysdeps/x86_64/setjmp.S: Likewise.
12644         * sysdeps/i386/bsd-setjmp.S: Likewise.
12645         * sysdeps/i386/bsd-_setjmp.S: Likewise.
12646         * sysdeps/i386/setjmp.S: Likewise.
12647         * sysdeps/i386/__longjmp.S: Likewise.
12648         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
12649         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
12650
12651         * include/stap-probe.h: New file.
12652         * configure.in: Handle --enable-systemtap.
12653         * configure: Regenerated.
12654         * config.h.in (USE_STAP_PROBE): New #undef.
12655         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
12656         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
12657         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
12658
12659 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12660
12661         [BZ #13717]
12662         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12663         to 2.4.0 where earlier.
12664         * sysdeps/unix/sysv/linux/configure: Regenerated.
12665         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12666         <kernel-features.h>.
12667         [__ASSUME_32BITUIDS]: Make code unconditional.
12668         [!__ASSUME_32BITUIDS]: Remove conditional code.
12669         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
12670         <kernel-features.h>.
12671         [__ASSUME_32BITUIDS]: Make code unconditional.
12672         [!__ASSUME_32BITUIDS]: Remove conditional code.
12673         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
12674         [__ASSUME_32BITUIDS]: Make code unconditional.
12675         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
12676         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
12677         <kernel-features.h>.
12678         [__ASSUME_32BITUIDS]: Make code unconditional.
12679         [!__ASSUME_32BITUIDS]: Remove conditional code.
12680         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
12681         <kernel-features.h>.
12682         [__ASSUME_32BITUIDS]: Make code unconditional.
12683         [!__ASSUME_32BITUIDS]: Remove conditional code.
12684         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
12685         <kernel-features.h>.
12686         [__ASSUME_32BITUIDS]: Make code unconditional.
12687         [!__ASSUME_32BITUIDS]: Remove conditional code.
12688         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
12689         <kernel-features.h>.
12690         [__ASSUME_32BITUIDS]: Make code unconditional.
12691         [!__ASSUME_32BITUIDS]: Remove conditional code.
12692         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
12693         <kernel-features.h>.
12694         [__ASSUME_32BITUIDS]: Make code unconditional.
12695         [!__ASSUME_32BITUIDS]: Remove conditional code.
12696         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
12697         <kernel-features.h>.
12698         [__ASSUME_32BITUIDS]: Make code unconditional.
12699         [!__ASSUME_32BITUIDS]: Remove conditional code.
12700         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
12701         <kernel-features.h>.
12702         [__ASSUME_32BITUIDS]: Make code unconditional.
12703         [!__ASSUME_32BITUIDS]: Remove conditional code.
12704         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
12705         <kernel-features.h>.
12706         [__ASSUME_32BITUIDS]: Make code unconditional.
12707         [!__ASSUME_32BITUIDS]: Remove conditional code.
12708         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
12709         <kernel-features.h>.
12710         [__ASSUME_32BITUIDS]: Make code unconditional.
12711         [!__ASSUME_32BITUIDS]: Remove conditional code.
12712         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
12713         <kernel-features.h>.
12714         [__ASSUME_32BITUIDS]: Make code unconditional.
12715         [!__ASSUME_32BITUIDS]: Remove conditional code.
12716         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
12717         <kernel-features.h>.
12718         [__NR_setresgid] (__setresgid): Do not declare.
12719         [__ASSUME_32BITUIDS]: Make code unconditional.
12720         [!__ASSUME_32BITUIDS]: Remove conditional code.
12721         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
12722         <kernel-features.h>.
12723         [__NR_setresuid] (__setresuid): Do not declare.
12724         [__ASSUME_32BITUIDS]: Make code unconditional.
12725         [!__ASSUME_32BITUIDS]: Remove conditional code.
12726         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
12727         <kernel-features.h>.
12728         [__ASSUME_32BITUIDS]: Make code unconditional.
12729         [!__ASSUME_32BITUIDS]: Remove conditional code.
12730         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
12731         <kernel-features.h>.
12732         [__ASSUME_32BITUIDS]: Make code unconditional.
12733         [!__ASSUME_32BITUIDS]: Remove conditional code.
12734         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
12735         <kernel-features.h>.
12736         [__ASSUME_32BITUIDS]: Make code unconditional.
12737         [!__ASSUME_32BITUIDS]: Remove conditional code.
12738         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
12739         <kernel-features.h>.
12740         [__ASSUME_32BITUIDS]: Make code unconditional.
12741         [!__ASSUME_32BITUIDS]: Remove conditional code.
12742         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
12743         <kernel-features.h>.
12744         [__ASSUME_32BITUIDS]: Make code unconditional.
12745         [!__ASSUME_32BITUIDS]: Remove conditional code.
12746         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
12747         <kernel-features.h>.
12748         [__ASSUME_32BITUIDS]: Make code unconditional.
12749         [!__ASSUME_32BITUIDS]: Remove conditional code.
12750         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
12751         <kernel-features.h>.
12752         [__ASSUME_32BITUIDS]: Make code unconditional.
12753         [!__ASSUME_32BITUIDS]: Remove conditional code.
12754         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
12755         <kernel-features.h>.
12756         [__ASSUME_32BITUIDS]: Make code unconditional.
12757         [!__ASSUME_32BITUIDS]: Remove conditional code.
12758         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
12759         <kernel-features.h>.
12760         [__ASSUME_32BITUIDS]: Make code unconditional.
12761         [!__ASSUME_32BITUIDS]: Remove conditional code.
12762         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
12763         <kernel-features.h>.
12764         [__ASSUME_32BITUIDS]: Make code unconditional.
12765         [!__ASSUME_32BITUIDS]: Remove conditional code.
12766         * sysdeps/unix/sysv/linux/kernel-features.h
12767         (__ASSUME_SETRESUID_SYSCALL): Remove.
12768         (__ASSUME_SETRESGID_SYSCALL): Likewise.
12769         (__ASSUME_32BITUIDS): Likewise.
12770         (__ASSUME_LDT_WORKS): Likewise.
12771         (__ASSUME_O_DIRECTORY): Likewise.
12772         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
12773         architecture but not kernel version.
12774         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
12775         (__ASSUME_MMAP2_SYSCALL): Likewise.
12776         (__ASSUME_STAT64_SYSCALL): Likewise.
12777         (__ASSUME_IPC64): Likewise.
12778         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
12779         <kernel-features.h>.
12780         [__ASSUME_32BITUIDS]: Make code unconditional.
12781         [!__ASSUME_32BITUIDS]: Remove conditional code.
12782         * sysdeps/unix/sysv/linux/opendir.c: Do not include
12783         <kernel-features.h>.
12784         [__ASSUME_O_DIRECTORY]: Make code unconditional.
12785         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
12786         132096]: Remove conditional code.
12787         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
12788         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12789         <kernel-features.h>.
12790         [__ASSUME_32BITUIDS]: Make code unconditional.
12791         [!__ASSUME_32BITUIDS]: Remove conditional code.
12792         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12793         <kernel-features.h>.
12794         [__ASSUME_32BITUIDS]: Make code unconditional.
12795         [!__ASSUME_32BITUIDS]: Remove conditional code.
12796         * sysdeps/unix/sysv/linux/setegid.c: Do not include
12797         <kernel-features.h>.
12798         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
12799         unconditional.
12800         (__setresgid): Do not declare.
12801         [__ASSUME_32BITUIDS]: Make code unconditional.
12802         [!__ASSUME_32BITUIDS]: Remove conditional code.
12803         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
12804         <kernel-features.h>.
12805         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
12806         unconditional.
12807         (__setresuid): Do not declare.
12808         [__ASSUME_32BITUIDS]: Make code unconditional.
12809         [!__ASSUME_32BITUIDS]: Remove conditional code.
12810         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
12811         <kernel-features.h>.
12812         [__ASSUME_32BITUIDS]: Make code unconditional.
12813         [!__ASSUME_32BITUIDS]: Remove conditional code.
12814         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
12815         <kernel-features.h>.
12816         [__ASSUME_32BITUIDS]: Make code unconditional.
12817         [!__ASSUME_32BITUIDS]: Remove conditional code.
12818
12819 2012-05-25  Richard Henderson  <rth@twiddle.net>
12820
12821         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
12822         dl_hwcap to ifunc resolver.
12823         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
12824         elf_ifunc_invoke.
12825         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
12826         dl_hwcap to ifunc resolver.
12827         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
12828
12829 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12830
12831         [BZ #14153]
12832         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
12833         for |x| <= 2**-26, not 2**-57.
12834         * math/libm-test.inc (acos_test): Do not allow spurious underflow
12835         exception.
12836
12837 2012-05-24  Jeff Law  <law@redhat.com>
12838
12839         * stdio-common/Makefile (tests): Add bug25.
12840         * stdio-common/bug25.c: New test.
12841
12842 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12843
12844         [BZ #13576]
12845         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
12846         multiple of MALLOC_ALIGNMENT in size.
12847         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
12848
12849 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12850
12851         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
12852         Require >= 256.
12853         (FILENAME_MAX): Use macro-int-constant.
12854         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
12855         (_IOFBF): Use macro-int-constant.
12856         (_IOLBF): Likewise.
12857         (_IONBF): Likewise.
12858         (SEEK_CUR): Likewise.
12859         (SEEK_END): Likewise.
12860         (SEEK_SET): Likewise.
12861         (TMP_MAX): Likewise.
12862         (EOF): Use macro-int-constant.  Require < 0.
12863         (NULL): Use macro-constant.  Require == 0.
12864         (stdin): Require type to be FILE *.
12865         (stdout): Likewise.
12866         (stderr): Likewise.
12867         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
12868         macro-int-constant.
12869         (EXIT_SUCCESS): Likewise.
12870         (NULL): Use macro-constant.  Require == 0.
12871         (RAND_MAX): Use macro-int-constant.
12872         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
12873         [C99-based standards] (strtof): Require function.
12874         [C99-based standards] (strtold): Likewise.
12875         [C99-based standards] (strtoll): Likewise.
12876         [C99-based standards] (strtoull): Likewise.
12877         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12878         [ISO || ISO99 || ISO11] (limits.h): Likewise.
12879         [ISO || ISO99 || ISO11] (math.h): Likewise.
12880         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
12881         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12882         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12883
12884 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
12885
12886         [BZ #14132]
12887         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
12888         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
12889         * intl/dgettext.c (DCGETTEXT): Likewise.
12890         * intl/gettext.c (DCGETTEXT): Likewise.
12891         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
12892         * posix/regex_internal.h (gettext): Likewise.
12893         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
12894         Remove declaration.
12895         * include/argz.h (__argz_count_internal)
12896         (__argz_stringify_internal): Remove declaration.
12897         (__argz_count, __argz_stringify): Declare hidden proto.
12898         * intl/dcgettext.c: Remove use of INTDEF.
12899         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
12900         * string/argz-stringify.c: Likewise.
12901         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12902         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12903         Declare hidden proto.
12904         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12905         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12906         Declare hidden proto.
12907         * include/stdio.h (__asprintf_internal): Don't declare.
12908         (__asprintf): Don't define as macro.  Declare hidden proto.
12909         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
12910         (__fsetlocking): Declare hidden proto.
12911         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
12912         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
12913         hidden proto.
12914         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
12915         (_IO_setlinebuf): Remove use of INTUSE.
12916         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
12917         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
12918         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
12919         Remove declaration.
12920         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
12921         (_IO_do_flush): Remove use of INTUSE.
12922         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
12923         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
12924         (_IO_adjust_column, _IO_least_wmarker)
12925         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
12926         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
12927         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
12928         (_IO_default_doallocate, _IO_wdefault_doallocate)
12929         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
12930         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
12931         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
12932         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
12933         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
12934         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
12935         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
12936         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
12937         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
12938         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
12939         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
12940         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
12941         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
12942         proto.
12943         (_IO_flush_all_internal, _IO_adjust_column_internal)
12944         (_IO_default_uflow_internal, _IO_default_finish_internal)
12945         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
12946         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
12947         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
12948         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
12949         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
12950         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
12951         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
12952         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
12953         (_IO_file_close_internal, _IO_file_close_it_internal)
12954         (_IO_file_underflow_internal, _IO_file_overflow_internal)
12955         (_IO_file_init_internal, _IO_file_attach_internal)
12956         (_IO_file_fopen_internal, _IO_file_read_internal)
12957         (_IO_file_sync_internal, _IO_file_seek_internal)
12958         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
12959         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
12960         (_IO_str_underflow_internal, _IO_str_overflow_internal)
12961         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
12962         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
12963         (_IO_list_all_internal, _IO_link_in_internal)
12964         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
12965         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
12966         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
12967         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
12968         (_IO_do_write_internal, _IO_padn_internal)
12969         (_IO_getline_info_internal, _IO_getline_internal)
12970         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
12971         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
12972         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
12973         (_IO_vfscanf_internal, _IO_vfprintf_internal)
12974         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
12975         (_IO_init_internal, _IO_un_link_internal): Don't declare.
12976         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
12977         with libc_hidden_ver, remove use of INTUSE.
12978         * libio/genops.c: Likewise.
12979         * libio/freopen.c: Likewise.
12980         * libio/freopen64.c: Likewise.
12981         * libio/iofclose.c: Likewise.
12982         * libio/iofdopen.c: Likewise.
12983         * libio/iofflush.c: Likewise.
12984         * libio/iofflush_u.c: Likewise.
12985         * libio/iofgets.c: Likewise.
12986         * libio/iofgets_u.c: Likewise.
12987         * libio/iofopen.c: Likewise.
12988         * libio/iofopncook.c: Likewise.
12989         * libio/iofread.c: Likewise.
12990         * libio/iofread_u.c: Likewise.
12991         * libio/ioftell.c: Likewise.
12992         * libio/iofwrite.c: Likewise.
12993         * libio/iogetline.c: Likewise.
12994         * libio/iogets.c: Likewise.
12995         * libio/iogetwline.c: Likewise.
12996         * libio/iopadn.c: Likewise.
12997         * libio/iopopen.c: Likewise.
12998         * libio/ioseekoff.c: Likewise.
12999         * libio/ioseekpos.c: Likewise.
13000         * libio/iosetbuffer.c: Likewise.
13001         * libio/iosetvbuf.c: Likewise.
13002         * libio/ioungetc.c: Likewise.
13003         * libio/ioungetwc.c: Likewise.
13004         * libio/iovdprintf.c: Likewise.
13005         * libio/iovsprintf.c: Likewise.
13006         * libio/iovsscanf.c: Likewise.
13007         * libio/memstream.c: Likewise.
13008         * libio/obprintf.c: Likewise.
13009         * libio/oldfileops.c: Likewise.
13010         * libio/oldiofclose.c: Likewise.
13011         * libio/oldiofdopen.c: Likewise.
13012         * libio/oldiofopen.c: Likewise.
13013         * libio/oldiopopen.c: Likewise.
13014         * libio/oldstdfiles.c: Likewise.
13015         * libio/putc.c: Likewise.
13016         * libio/setbuf.c: Likewise.
13017         * libio/setlinebuf.c: Likewise.
13018         * libio/stdfiles.c: Likewise.
13019         * libio/strops.c: Likewise.
13020         * libio/vasprintf.c: Likewise.
13021         * libio/vscanf.c: Likewise.
13022         * libio/vsnprintf.c: Likewise.
13023         * libio/vswprintf.c: Likewise.
13024         * libio/wfiledoalloc.c: Likewise.
13025         * libio/wfileops.c: Likewise.
13026         * libio/wgenops.c: Likewise.
13027         * libio/wmemstream.c: Likewise.
13028         * libio/wstrops.c: Likewise.
13029         * libio/__fpurge.c: Likewise.
13030         * libio/__fsetlocking.c: Likewise.
13031         * assert/assert.c: Likewise.
13032         * debug/fgets_chk.c: Likewise.
13033         * debug/fgets_u_chk.c: Likewise.
13034         * debug/fread_chk.c: Likewise.
13035         * debug/fread_u_chk.c: Likewise.
13036         * debug/gets_chk.c: Likewise.
13037         * debug/obprintf_chk.c: Likewise.
13038         * debug/vasprintf_chk.c: Likewise.
13039         * debug/vdprintf_chk.c: Likewise.
13040         * debug/vsnprintf_chk.c: Likewise.
13041         * debug/vsprintf_chk.c: Likewise.
13042         * malloc/mtrace.c: Likewise.
13043         * misc/error.c: Likewise.
13044         * misc/syslog.c: Likewise.
13045         * stdio-common/asprintf.c: Likewise.
13046         * stdio-common/fxprintf.c: Likewise.
13047         * stdio-common/getw.c: Likewise.
13048         * stdio-common/isoc99_fscanf.c: Likewise.
13049         * stdio-common/isoc99_scanf.c: Likewise.
13050         * stdio-common/isoc99_vfscanf.c: Likewise.
13051         * stdio-common/isoc99_vscanf.c: Likewise.
13052         * stdio-common/isoc99_vsscanf.c: Likewise.
13053         * stdio-common/printf-prs.c: Likewise.
13054         * stdio-common/printf_fp.c: Likewise.
13055         * stdio-common/printf_fphex.c: Likewise.
13056         * stdio-common/printf_size.c: Likewise.
13057         * stdio-common/putw.c: Likewise.
13058         * stdio-common/scanf.c: Likewise.
13059         * stdio-common/sprintf.c: Likewise.
13060         * stdio-common/tmpfile.c: Likewise.
13061         * stdio-common/vfprintf.c: Likewise.
13062         * stdio-common/vfscanf.c: Likewise.
13063         * stdlib/strfmon_l.c: Likewise.
13064         * sunrpc/openchild.c: Likewise.
13065         * sunrpc/xdr_stdio.c: Likewise.
13066         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13067         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13068
13069 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13070
13071         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13072
13073         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13074         in the third column, to generate for the shared library an IFUNC
13075         that uses _dl_vdso_vsym.
13076         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13077         * Makeconfig (object-suffixes-noshared): New variable.
13078
13079         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13080         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13081         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13082         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13083
13084         [BZ #14132]
13085         * include/sys/time.h (__gettimeofday): Remove macro.
13086         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13087         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13088         Remove INTDEF.
13089         (__gettimeofday): Add libc_hidden_def.
13090         (gettimeofday): Add libc_hidden_weak.
13091         * sysdeps/mach/gettimeofday.c: Likewise.
13092         * sysdeps/posix/gettimeofday.c: Likewise.
13093         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13094         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13095         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13096         (__gettimeofday_internal): Remove strong_alias.
13097         (__gettimeofday): Add libc_hidden_def.
13098         (gettimeofday): Add libc_hidden_weak.
13099         * sysdeps/unix/syscalls.list (gettimeofday):
13100         Remove __gettimeofday_internal alias.
13101
13102 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13103             H.J. Lu  <hongjiu.lu@intel.com>
13104
13105         [BZ #12495]
13106         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13107         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13108         (largebin_index_32_big): New.
13109         (largebin_index): Use it for 16-byte alignment.
13110         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13111         correction with front_misalign.
13112
13113 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13114
13115         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13116         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13117         Likewise.
13118         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13119         Likewise.
13120         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13121         Likewise.
13122         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13123         Likewise.
13124         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13125         Likewise.
13126         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13127         Likewise.
13128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13129         Likewise.
13130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13131         Likewise.
13132         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13133         Likewise.
13134         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13135         Likewise.
13136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13137         Likewise.
13138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13139         Likewise.
13140
13141         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13142         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13143
13144 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13145
13146         [BZ #10846]
13147         [BZ #14036]
13148         * math/libm-test.inc (exp_test): Add test from bug 14036.
13149         (pow_test): Add test from bug 10846.
13150
13151         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13152         and other flags.
13153         (special_function): Do not include flags in test name.
13154         (parse_args): Likewise.
13155         * sysdeps/i386/fpu/libm-test-ulps: Update.
13156         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13157         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13158         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13160
13161         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13162         exceptions.
13163         * math/libm-test.inc ("Philosophy"): Update comment about
13164         exception testing.
13165         (UNDERFLOW_EXCEPTION): New macro.
13166         (UNDERFLOW_EXCEPTION_OK): Likewise.
13167         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13168         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13169         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13170         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13171         (INVALID_EXCEPTION_OK): Update value.
13172         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13173         (OVERFLOW_EXCEPTION_OK): Likewise.
13174         (IGNORE_ZERO_INF_SIGN): Likewise.
13175         (test_exceptions): Handle underflow exceptions.
13176         (acos_test): Update for underflow exception expectations.
13177         (cexp_test): Likewise.
13178         (clog_test): Likewise.
13179         (clog10_test): Likewise.
13180         (csqrt_test): Likewise.
13181         (ctan_test): Likewise.
13182         (ctanh_test): Likewise.
13183         (exp_test): Likewise.
13184         (exp10_test): Likewise.
13185         (exp2_test): Likewise.
13186         (expm1_test): Likewise.
13187         (fma_test): Likewise.
13188         (j0_test): Likewise.
13189         (jn_test): Likewise.
13190         (nexttoward_test): Likewise.
13191         (pow_test): Likewise.
13192         (scalbn_test): Likewise.
13193         (scalbln_test): Likewise.
13194         (tan_test): Likewise.
13195         (y1_test): Likewise.
13196         * sysdeps/i386/fpu/libm-test-ulps: Update.
13197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13198
13199 2012-05-23  David S. Miller  <davem@davemloft.net>
13200
13201         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13202         (__libc_sigaction): Remove unused local variables.
13203
13204 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13205
13206         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13207
13208 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13209
13210         mktime: avoid signed integer overflow
13211         * time/mktime.c (__mktime_internal): Do not mishandle the case
13212         where diff == INT_MIN.
13213
13214         mktime: simplify computation of average
13215         * time/mktime.c (ranged_convert): Use new time_t_avg function
13216         instead of rolling our own (probably-slower) code.
13217
13218         mktime: do not assume signed right shift propagates sign bit
13219         * time/mktime.c (isdst_differ): New static function.
13220         (__mktime_internal): No need to normalize tm_isdst now.
13221         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13222         tm_isdst values.
13223
13224         mktime: merge another wrapv change from gnulib
13225         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13226         from some compilers.
13227
13228         mktime: remove incorrect attempt at unusual arithmetics
13229         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13230         The code didn't really work on such machines anyway.
13231         (TYPE_MINIMUM): Assume two's complement.
13232         (twos_complement_arithmetic): Verify that long_int and time_t
13233         are two's complement (or unsigned, in the latter case).
13234
13235         mktime: check signed shifts on long_int and time_t, too
13236         * time/mktime.c (SHR): Check that shifts work as desired
13237         on the types long_int and time_t too, as SHR is used on
13238         such types.
13239
13240         mktime: do not assume 'long' is wide enough
13241         * time/mktime.c (verify): Move decl up.
13242         (long_int): New type.
13243         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13244         to remove assumption in the code that 'long' is wide enough to
13245         store year values.  This assumption is not true on x32 and on
13246         some non-glibc platforms.
13247
13248         mktime: merge wrapv change from gnulib
13249         * time/mktime.c (WRAPV): New macro.
13250         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13251         (guess_time_tm, __mktime_internal): Do not assume that signed
13252         integer overflow wraps around; modern compilers generate code
13253         where this assumption is no longer valid.
13254
13255 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13256
13257         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13258         Replace "jmp L(pseudo_end)" with "ret".
13259         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13260         Likewise.
13261
13262 2012-05-23  Andreas Jaeger  <aj@suse.de>
13263
13264         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13265         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13266
13267 2012-05-23  Andreas Jaeger  <aj@suse.de>
13268             Maximilian Attems  <max@stro.at>
13269
13270         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13271         New macros.
13272
13273 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13274
13275         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13276         code so that pseudo_end is just ret and the stack pointer is
13277         correct also for static library in error case.
13278
13279 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13280
13281         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13282         move to syscalls.list.
13283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13287
13288         * manual/install.texi (Running make install): Do not mention Linux
13289         kernel version for which pt_chown is not needed.
13290         (Linux): Do not mention problems with nscd with 2.0 kernels.
13291         * INSTALL: Regenerated.
13292
13293 2012-05-23  Andreas Jaeger  <aj@suse.de>
13294
13295         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13296         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13297         macro.
13298         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13299         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13300         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13301         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13302         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13303         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13304         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13305         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13306         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13307         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13308         * sysdeps/unix/sysv/linux/bits/in.h
13309         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13310
13311 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13312
13313         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13314         (PREPARE_VERSION): Just use assert instead, it will be elided
13315         under [NDEBUG] anyway.
13316
13317 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13318
13319         * sysdeps/unix/sysv/linux/Makefile: Include
13320         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13321         (sysdep_routines): Remove sysctl.
13322         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13323         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13324         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13325         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13326         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13327
13328 2012-05-22  Andreas Jaeger  <aj@suse.de>
13329
13330         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13331         that pseudo_end is just ret and the stack pointer is correct also
13332         for static library in error case.
13333
13334 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
13335
13336         [BZ #14122]
13337         * nss/nsswitch.c (defconfig_entries): New variable.
13338         (__nss_database_lookup): Don't leak defconfig entries.
13339         (nss_parse_service_list): Don't leak on error paths.
13340         (free_database_entries): New function.
13341         (free_defconfig): New function.
13342         (free_mem): Move common code to free_database_entries.
13343
13344 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13345
13346         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
13347         Add arch_prctl.
13348         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
13349
13350         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
13351         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
13352         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
13353         New macro.
13354         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
13355         (INTERNAL_SYSCALL_TYPES): Likewise.
13356         (LOAD_ARGS_TYPES_[1-6]): Likewise.
13357         (LOAD_REGS_TYPES_[1-6]): Likewise.
13358         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
13359         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
13360
13361 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13362
13363         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
13364         copysignl for GLIBC_2_0.
13365         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
13366         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
13367         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
13368         logbl for GLIBC_2_0.
13369         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
13370         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
13371
13372 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13373
13374         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
13375         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13376
13377         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13378         Use "neg %eax".
13379
13380         * time/mktime.c: Update copyright years.
13381
13382 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13383
13384         mktime: merge comment-quoting-style change from gnulib
13385         * time/mktime.c: Quote 'like this' in comments.
13386         The GNU coding standards suggest that we no longer quote `like this',
13387         as "`" and "'" are typically rendered asymmetrically nowadays.
13388         The typical gnulib style is to quote 'like this' when quoting
13389         code, and "like this" when quoting English.
13390
13391         * time/mktime.c (compile-command): Add "-I.".
13392
13393         mktime: merge mktime-internal.h change from gnulib
13394         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
13395
13396         mktime: merge time_r change from gnulib
13397         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
13398
13399         mktime: merge DEBUG change from gnulib
13400         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
13401         case system <time.h> has a #define.
13402
13403         mktime: merge <sys/types.h> change from gnulib
13404         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
13405         since <time.t> is now guaranteed to define time_t.
13406
13407         mktime: merge HAVE_CONFIG_H change from gnulib
13408         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
13409
13410 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13411
13412         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13413         Use "neg %eax".
13414
13415         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
13416         __rlim_t cast.
13417         (struct rusage): Use anonymous union to pad each field to
13418         __syscall_slong_t.
13419
13420 2012-05-21  David S. Miller  <davem@davemloft.net>
13421
13422         * Makefules (o-iterator): Remove .s cases.
13423         (compile-command.s): Delete.
13424         (COMPILE.s): Delete.
13425         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
13426
13427 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
13428
13429         * configure.in (libc_cv_predef_stack_protector): Only consider
13430         "foobar" and "__stack_chk_fail" lines in libc_undefs.
13431         * configure: Regenerated.
13432
13433 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13434
13435         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13436         New macro.  Use R*LP on int and pointer.
13437         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
13438         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
13439         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
13440         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
13441
13442         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
13443         [__WORDSIZE_TIME64_COMPAT32] instead of
13444         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
13445         (struct utmp): Likewise.
13446         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
13447         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
13448         Renamed to ...
13449         (__WORDSIZE_TIME64_COMPAT32): This.
13450         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
13451         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
13452         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
13453         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
13454         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
13455         (__WORDSIZE_TIME64_COMPAT32): New macro.
13456
13457 2012-05-21  Andreas Jaeger  <aj@suse.de>
13458
13459         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
13460         only if [SHARED]. Add prototype for __wcschr_ia32.
13461
13462 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13463
13464         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
13465         of %rbp unmolested in the jmp_buf while mangling the low bits.
13466         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
13467         unmolested high bits of %rbp while demangling the low bits.
13468         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13469
13470 2012-05-21  Andreas Jaeger  <aj@suse.de>
13471
13472         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
13473         * sunrpc/svc_simple.c: Use it for registerrpc.
13474         * sunrpc/xcrypt.c: Use it for passwd2des.
13475
13476         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
13477
13478 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13479
13480         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
13481         Don't define if [__SYSCALL_WORDSIZE != 32].
13482         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
13483         New macro.
13484
13485 2012-05-21  Bruno Haible  <bruno@clisp.org>
13486             Andreas Jaeger  <aj@suse.de>
13487
13488         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
13489         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
13490         inptr and inend for must_buffer_ch.
13491         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
13492         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
13493         * stdio-common/Makefile (tests): Remove bug15.
13494         (bug15-ENV): Remove macro.
13495         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
13496         anymore.
13497
13498 2012-05-19  Andreas Jaeger  <aj@suse.de>
13499             Roland McGrath  <roland@hack.frob.com>
13500
13501         * manual/contrib.texi: Completely rewritten. It contains now an
13502         alphabetical list of contributors and their contributions.
13503
13504 2012-05-21  Richard Henderson  <rth@twiddle.net>
13505
13506         * misc/getauxval.c (__getauxval): Use unsigned long int.
13507         * misc/sys/auxv.h: Include <sys/cdefs.h>.
13508         (getauxval): Use unsigned long int.
13509
13510 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13511
13512         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13513
13514 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13515
13516         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
13517         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
13518         __alignof__ (long double).
13519
13520 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13521
13522         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13523
13524 2012-05-20  Richard Henderson  <rth@twiddle.net>
13525
13526         * misc/getauxval.c: New file.
13527         * misc/sys/auxv.h: New file.
13528         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
13529         (routines): Add getauxval.
13530         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
13531         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
13532         * elf/dl-sysdep.c (_dl_auxv): Remove.
13533         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
13534         * elf/dl-support.c (_dl_auxv): New variable.
13535         (_dl_aux_init): Initialize it.
13536         * manual/startup.texi (Auxiliary Vector): New node.
13537         * sysdeps/generic/bits/hwcap.h: New file.
13538         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
13539         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
13540         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
13541         * sysdeps/sparc/sysdep.h: ... here.  Include it.
13542         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
13543         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
13544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13545         Update.
13546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
13547         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
13548         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
13549         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
13550         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13551         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13552         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
13553         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
13554
13555 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13556
13557         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13558
13559 2012-05-19  David S. Miller  <davem@davemloft.net>
13560
13561         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13562
13563 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13564
13565         [BZ #14123]
13566         * math/s_ccosh.c: Include <float.h>
13567         (__ccosh): Avoid internal overflow calculating sinh and cosh
13568         values before multiplying by sin and cos values.
13569         * math/s_ccoshf.c: Likewise.
13570         * math/s_ccoshl.c: Likewise.
13571         * math/s_csin.c: Likewise.
13572         * math/s_csinf.c: Likewise.
13573         * math/s_csinl.c: Likewise.
13574         * math/s_csinh.c: Likewise.
13575         * math/s_csinhf.c: Likewise.
13576         * math/s_csinhl.c: Likewise.
13577         * math/libm-test.inc (ccos_test): Add more tests.
13578         (ccosh_test): Likewise.
13579         (csin_test): Likewise.
13580         (csinh_test): Likewise.
13581         * sysdeps/i386/fpu/libm-test-ulps: Update.
13582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13583
13584 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13585
13586         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
13587         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
13588
13589         * sysdeps/x86_64/x32/_itoa.h: Add comment.
13590
13591 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13592
13593         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
13594         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
13595         * sysdeps/powerpc/soft-fp/Versions: Likewise.
13596         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
13597         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
13598         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
13599         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
13600         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
13601         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
13602         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
13603         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
13604         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
13605         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
13606         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
13607         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
13608         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
13609         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
13610         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
13611         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
13612         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
13613         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
13614         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
13615         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
13616         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
13617         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
13618         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
13619         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
13620         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
13621         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
13622         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
13623         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
13624
13625 2012-05-18  Andreas Jaeger  <aj@suse.de>
13626
13627         * csu/.gitignore: Delete.
13628
13629 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13630
13631         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
13632         (timex): Use __syscall_slong_t.
13633
13634 2012-05-18  Andreas Jaeger  <aj@suse.de>
13635             Carlos O'Donell  <carlos_odonell@mentor.com>
13636
13637         * manual/install.texi (Configuring and compiling): Update
13638         description about files modified in the source directory.
13639         * INSTALL: Regenerated.
13640
13641 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13642
13643         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
13644         value.  Use "or" to set return value to -1.
13645         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
13646         negate return value.
13647
13648 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13649
13650         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
13651         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
13652         failure if the compiler has Graphite support disabled.
13653         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
13654         Likewise.
13655         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
13656         CFLAGS-memmove.c): Likewise.
13657         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
13658         Likewise.
13659
13660 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13661
13662         * sysdeps/x86_64/x32/_itoa.h: New file.
13663
13664         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
13665         getdents system call only if kernel and user dirents have the
13666         same d_ino and d_off.
13667
13668         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
13669         LLONG_MAX != LONG_MAX.
13670         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13671         (_fitoa_word): Likewise.
13672
13673         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
13674         years.
13675         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
13676         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
13677         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
13678
13679         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
13680         include <bits/wordsize.h>.  Check __x86_64__ instead of
13681         __WORDSIZE.
13682         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
13683         if __x86_64__ is defined.  Use anonymous union on fpstate.
13684
13685         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
13686         anonymous union.
13687
13688 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
13689
13690         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
13691         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
13692         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
13693         Refer to _rtld_local_ro instead of _rtld_global_ro.
13694         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
13695         Likewise.
13696         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
13697         Likewise.
13698         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
13699         Likewise.
13700         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
13701         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
13702         of _rtld_global, and rtld_progname instead of _dl_argv[0].
13703
13704         * sysdeps/powerpc/powerpc32/dl-machine.c
13705         (__elf_machine_runtime_setup) [PROF]: Don't reference
13706         _dl_prof_resolve.
13707
13708 2012-05-18  Andreas Jaeger  <aj@suse.de>
13709
13710         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
13711         function only available for GCCs before 3.4 since GCC 3.4
13712         introduced a builtin.
13713         (lrint): Likewise.
13714         (llrintf): Likewise.
13715         (llrint): Likewise.
13716         (fmaxf): Likewise.
13717         (fmax): Likewise.
13718         (fminf): Likewise.
13719         (fmin): Likewise.
13720         (rint): Likewise.
13721         (rintf): Likewise.
13722         (nearbyint): Likewise.
13723         (nearbyintf): Likewise.
13724         (ceil): Likewise.
13725         (ceilf): Likewise.
13726         (floor): Likewise.
13727         (floorf): Likewise.
13728
13729 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13730
13731         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
13732         on both fields and cast pointer to __syscall_ulong_t.
13733
13734         * bits/types.h (__fsword_t): New type.
13735         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
13736         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
13737         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13738         (__FSWORD_T_TYPE): Likewise.
13739         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13740         (__FSWORD_T_TYPE): Likewise.
13741         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13742         (__FSWORD_T_TYPE): Likewise.
13743         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
13744         (__FSWORD_T_TYPE): Likewise.
13745         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
13746         __SWORD_TYPE with __fsword_t.
13747         (statfs64): Likewise.
13748
13749 2012-05-17  David S. Miller  <davem@davemloft.net>
13750
13751         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
13752
13753 2012-05-17  Andreas Jaeger  <aj@suse.de>
13754
13755         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
13756         warning.
13757
13758 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13759
13760         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
13761
13762 2012-05-17  Andreas Jaeger  <aj@suse.de>
13763
13764         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
13765         when it is used.
13766
13767 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13768
13769         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
13770
13771 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13772
13773         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
13774         * sysdeps/x86_64/tst-mallocalign1.c: New file.
13775
13776 2012-05-17  Andreas Jaeger  <aj@suse.de>
13777             Carlos O'Donell  <carlos_odonell@mentor.com>
13778
13779         [BZ #14059]
13780         * sysdeps/x86_64/multiarch/init-arch.h
13781         (bit_YMM_Usable): Rename to...
13782         (bit_AVX_Usable): ... this.
13783         (bit_FMA4_Usable): New macro.
13784         (bit_XMM_state): New macro.
13785         (bit_YMM_state): New macro.
13786         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
13787         [__ASSEMBLER__] (index_AVX_Usable): ... this.
13788         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
13789         (CPUID_OSXSAVE): New macro.
13790         (CPUID_AVX): New macro.
13791         (CPUID_FMA4): New macro.
13792         (index_YMM_Usable): Rename to...
13793         (index_AVX_Usable): ... this.
13794         (HAS_AVX): Use HAS_ARCH_FEATURE.
13795         (HAS_FMA4): Likewise.
13796         (HAS_YMM_USABLE): Remove.
13797         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13798         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
13799         are present.
13800         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
13801         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
13802         * sysdeps/x86_64/multiarch/Makefile: Likewise.
13803         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
13804         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
13805
13806 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13807
13808         * math/libm-test.c: Support platforms without multiple rounding modes.
13809         * math/bug-nextafter.c: Support platforms without FP exceptions.
13810         * math/bug-nexttoward.c: Likewise.
13811         * math/test-fenv.c: Likewise.
13812         * math/test-misc.c: Likewise.
13813         * stdlib/bug-getcontext.c: Likewise.
13814
13815 2012-05-17  Andreas Jaeger  <aj@suse.de>
13816
13817         * manual/examples/search.c (critter_cmp): Change signature to
13818         avoid warnings.
13819         * manual/string.texi (Collation Functions): Likewise.
13820
13821 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13822
13823         * bits/types.h: Fold copyright years.
13824         * bits/typesizes.h: Likewise.
13825         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
13826         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
13827         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
13828         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
13829         * time/time.h: Likewise.
13830
13831 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
13832
13833         [BZ #208]
13834         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
13835         in instead of returning them.  Return void.
13836         (__libc_mallinfo): Accumulate over all arenas.
13837         (__malloc_stats): Adjust for change in int_mallinfo interface.
13838
13839 2012-05-16  Roland McGrath  <roland@hack.frob.com>
13840
13841         [BZ #10375]
13842         * configure.in (NM): Add AC_CHECK_TOOL for it.
13843         (libc_extra_cflags): New substituted variable.
13844         Check for -fstack-protector being used implicitly.
13845         * configure: Regenerated.
13846         * config.make.in (config-extra-cflags): New variable,
13847         gets @libc_extra_cflags@.
13848         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
13849
13850         [BZ #10375]
13851         * configure.in: Check for _FORTIFY_SOURCE being predefined.
13852         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
13853         * configure: Regenerated.
13854         * config.make.in (CPPUNDEFS): New substituted variable.
13855         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
13856         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
13857         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
13858
13859 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13860
13861         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
13862         (mq_attr): Use __syscall_slong_t.
13863
13864 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13865
13866         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
13867         Check __x86_64__ instead of __WORDSIZE.
13868         (_STAT_VER_LINUX): Likewise.
13869         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
13870         __syscall_ulong_t and __syscall_slong_t.
13871         (stat64): Likewise.
13872
13873 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13874
13875         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
13876
13877 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13878
13879         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
13880
13881 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13882
13883         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
13884         __syscall_ulong_t.
13885
13886         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
13887         include <bits/wordsize.h>.  Check __x86_64__ instead of
13888         __WORDSIZE.
13889         (greg_t): Use "__extension__ long long int" if __x86_64__ is
13890         defined.
13891         (mcontext_t): Replace "unsigned long" with "unsigned long long".
13892
13893         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
13894         include <bits/wordsize.h>.  Check __x86_64__ instead of
13895         __WORDSIZE.
13896         (user_regs_struct): Use "__extension__ unsigned long long"
13897         instead of "unsigned long" if __x86_64__ is defined.
13898         (user): Likewise.  Pad after pointer field if __ILP32__ is
13899         defined.
13900
13901 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
13902
13903         * configure.in (makeinfo): Require version 4.5 or later.  Allow
13904         versions 5 to 9.
13905         * configure: Regenerated.
13906         * manual/install.texi (texinfo): Increase version requirement to
13907         4.5 or later.
13908         * INSTALL: Regenerated.
13909
13910         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
13911
13912 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13913
13914         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
13915
13916         * sysdeps/x86_64/x32/ffs.c: New file.
13917
13918         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
13919         __syscall_ulong_t.
13920         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
13921         defined.  Use __syscall_ulong_t.
13922         (shminfo): Use __syscall_ulong_t.
13923         (shm_info): Likewise.
13924
13925         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
13926         __syscall_ulong_t.
13927
13928         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
13929         <bits/wordsize.h>.
13930         (msgqnum_t): Use __syscall_ulong_t.
13931         (msglen_t): Likewise.
13932         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
13933         __syscall_ulong_t.
13934
13935         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
13936         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13937
13938         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
13939
13940         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
13941         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
13942
13943         * sysvipc/sys/msg.h (msgbuf): Replace long int with
13944         __syscall_slong_t.
13945
13946         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
13947         include <bits/wordsize.h>.  Check __x86_64__ instead of
13948         __WORDSIZE.
13949
13950         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
13951         "unsigned long long int" if __x86_64__ is defined.
13952         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
13953
13954         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
13955         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13956         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
13957
13958         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
13959         <stdint.h>.
13960         (GET_PC): Cast to uintptr_t first.
13961         (GET_FRAME): Likewise.
13962         (GET_STACK): Likewise.
13963
13964         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
13965         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
13966         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
13967         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
13968         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
13969         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
13970         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
13971         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
13972         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
13973         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
13974         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
13975         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
13976         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
13977         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
13978         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
13979         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
13980         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
13981         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
13982         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
13983         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
13984         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
13985         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
13986         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
13987         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
13988         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
13989         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
13990         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
13991         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
13992         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
13993
13994 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
13995
13996         * Makerules (+depfiles): Also collect depfiles from .oS in
13997         $(extra-objs).
13998         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
13999         .oS, $(libnldbl-routines)).
14000
14001         * Makerules (native-compile-mkdep-flags): Define.
14002         * sunrpc/Makefile (extra-objs): Add $(addprefix
14003         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14004         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14005         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14006         calling $(make-target-directory).
14007
14008 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14009
14010         * bits/types.h (__snseconds_t): Removed.
14011         * time/time.h (struct timespec): Replace __snseconds_t with
14012         __syscall_slong_t.
14013         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14014         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14015         Likewise.
14016         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14017         (__SNSECONDS_T_TYPE): Likewise.
14018         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14019         (__SNSECONDS_T_TYPE): Likewise.
14020         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14021         (__SNSECONDS_T_TYPE): Likewise.
14022
14023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14024
14025         * sysdeps/mach/hurd/bits/typesizes.h
14026         (__SYSCALL_SLONG_TYPE): New macro.
14027         (__SYSCALL_ULONG_TYPE): Likewise.
14028
14029 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14030
14031         * bits/types.h (__syscall_slong_t): New type.
14032         (__syscall_ulong_t): Likewise.
14033
14034         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14035         (__SYSCALL_ULONG_TYPE): Likewise.
14036         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14037         (__SYSCALL_SLONG_TYPE): Likewise.
14038         (__SYSCALL_ULONG_TYPE): Likewise.
14039         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14040         (__SYSCALL_SLONG_TYPE): Likewise.
14041         (__SYSCALL_ULONG_TYPE): Likewise.
14042         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14043         (__SYSCALL_SLONG_TYPE): Likewise.
14044         (__SYSCALL_ULONG_TYPE): Likewise.
14045
14046 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14047
14048         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14049         Add sigaltstack-offsets.sym.
14050         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14051         <sigaltstack-offsets.h>.
14052         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14053         longjmp_msg pointer.
14054         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14055         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14056         signal stack.
14057         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14058
14059 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14060
14061         * elf/stackguard-macros.h: Remove file.
14062         * sysdeps/generic/stackguard-macros.h: New file.
14063         * sysdeps/i386/stackguard-macros.h: Likewise.
14064         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14065         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14066         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14067         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14068         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14069         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14070         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14071         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14072         <elf/stackguard-macros.h>.
14073
14074         [BZ #14109]
14075         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14076         __aligned__ in attribute.
14077         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14078         (gregset_t): Likewise.
14079
14080 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14081
14082         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14083         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14084         * sysdeps/x86_64/x32/Implies-after: New file.
14085
14086 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14087
14088         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14089         and access return value for _dl_profile_fixup.  Use R10_LP to
14090         load frame size.
14091
14092 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14093
14094         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14095
14096 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14097
14098         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14099         * sysdeps/x86_64/x32/sysdep.h: New file.
14100
14101 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14102
14103         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14104         * sysdeps/x86_64/setjmp.S: Likewise.
14105
14106 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14107
14108         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14109         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14110         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14111         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14112         remove unused global constant.
14113
14114 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14115
14116         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14117         include of <not-cancel.h>.
14118
14119 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14120
14121         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14122
14123 2012-05-15  Jeff Law  <law@redhat.com>
14124             Andreas Jaeger  <aj@suse.de>
14125
14126         [BZ #13594]
14127         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14128         out from...
14129         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14130         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14131         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14132         code changing __hst_map_handle.map.
14133
14134 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14135
14136         * configure.in (sysnames): Look for Implies-before and Implies-after
14137         files.
14138         * configure: Regenerated.
14139
14140 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14141
14142         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14143         8-byte data alignment with LP_SIZE alignment.
14144
14145 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14146
14147         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14148         into R10_LP.
14149
14150 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14151
14152         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14153
14154 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14155
14156         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14157         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14158         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14159         Likewise.
14160         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14161
14162 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14163
14164         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14165         (stackinfo_sub_sp): Likewise.
14166
14167 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14168
14169         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14170         RAX_LP.
14171
14172 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14173
14174         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14175         into R*_LP.
14176
14177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14178
14179         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14180         sizes into R*_LP.
14181
14182 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14183
14184         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14185
14186 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14187
14188         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14189         into R11_LP and load __x86_64_shared_cache_size_half into
14190         R8_LP.
14191
14192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14193
14194         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14195         R8_LP.
14196
14197 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14198
14199         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14200         logb for POWER7.
14201         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14202         logbf for POWER7.
14203         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14204         logbl for POWER7.
14205         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14206         powerpc32/power7/fpu/s_logb.c via #include.
14207         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14208         powerpc32/power7/fpu/s_logbf.c via #include.
14209         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14210         powerpc32/power7/fpu/s_logbl.c via #include.
14211
14212 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14213
14214         * README.libm: Remove file.
14215
14216 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14217
14218         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14219         count for x32.  Use R*_LP and omit operand-size suffix.
14220
14221 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14222
14223         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14224         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14225         * sysdeps/x86_64/x32/shlib-versions: New file.
14226
14227 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14228
14229         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14230         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14231         Use _dl_fatal_printf instead.
14232
14233 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14234
14235         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14236         set if not set by the user.  Do not allow for being unset.
14237         * sysdeps/unix/sysv/linux/configure: Regenerated.
14238
14239 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14240
14241         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14242         the `q' suffix from lea and replace .quad with ASM_ADDR.
14243
14244 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14245
14246         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14247         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14248         instead of $17.
14249         (PTR_DEMANGLE): Likewise.
14250
14251 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14252
14253         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14254         (LP_OP): Likewise.
14255         (ASM_ADDR): Likewise.
14256         (RAX_LP): Likewise.
14257         (RBP_LP): Likewise.
14258         (RBX_LP): Likewise.
14259         (RCX_LP): Likewise.
14260         (RDI_LP): Likewise.
14261         (RSI_LP): Likewise.
14262         (RSP_LP): Likewise.
14263         (R8_LP): Likewise.
14264         (R9_LP): Likewise.
14265         (R10_LP): Likewise.
14266         (R10_LP): Likewise.
14267         (R11_LP): Likewise.
14268         (R12_LP): Likewise.
14269         (R13_LP): Likewise.
14270         (R14_LP): Likewise.
14271         (R15_LP): Likewise.
14272
14273 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14274
14275         * sysdeps/x86_64/x32/dl-machine.h: New file.
14276
14277 2012-05-14  Andreas Jaeger  <aj@suse.de>
14278
14279         * manual/Makefile (subdir): Remove export of subdir.
14280         (all): Remove target.
14281         (.PHONY): Remove all from list.
14282         (mkinstalldirs): Remove.
14283         (.PHONY): Remove installdirs from list.
14284         ($(inst_infodir)/libc.info): Use make-target-directory.
14285         (installdirs): Remove.
14286         (subdir_%): Remove.
14287         (glibc-targets): Remove.
14288         (lib): Remove.
14289         (stubs): Remove.
14290         ($(objpfx)stubs ../po/manual.pot): Remove.
14291         ($(objpfx)stamp%): Remove.
14292         (make-target-directory): Remove.
14293         (subdir_install): Remove.
14294         (routines): Remove.
14295         (aux): Remove.
14296         (sources): Remove.
14297         (objects): Remove.
14298         (headers): Remove.
14299
14300         [BZ #13750]
14301         * manual/.gitignore: Remove, it's not needed anymore.
14302         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14303         all files in it.
14304         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14305         directory.
14306         (texis): Renamed to $(objpfx)texis.
14307         (texis-path): New, contains path to generated files.
14308         (chapters.%): Use texis-path for complete path, add extra argument
14309         libc-texinfo.sh.
14310         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14311         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14312         (summary,texi, stamp-summary): Use complete path of
14313         files. Generate files in build dir.
14314         (dir-add.texi): Build in build dir.
14315         (libm-err.texi,stamp-libm-err): Likewise.
14316         (version.texi, stamp-version): Likewise.
14317         (.%c.texi): Likewise.
14318         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14319         (mostlyclean): Remove target.
14320         (realclean): Remove target.
14321         (generated): Add new variable with contents from mostlyclean and
14322         realclean, remove entries duplicated in common-mostlyclean, add
14323         stamp-libm-err and stamp-version.
14324         (generated-dirs): Add libc directory.
14325         ($(inst_infodir)/libc.info): Install files from build dir.
14326
14327         * manual/install.texi (Configuring and compiling): Adjust since
14328         the info files are not part of the tar ball anymore.
14329
14330 2012-05-14  Andreas Jaeger  <aj@suse.de>
14331
14332         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14333         variable.
14334
14335 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14336
14337         [BZ #13717]
14338         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14339         to 2.2.0 where earlier.
14340         * sysdeps/unix/sysv/linux/configure: Regenerated.
14341         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
14342         Remove conditional code.
14343         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
14344         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
14345         Remove conditional code.
14346         [!__NR_lchown]: Likewise.
14347         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14348         [__NR_lchown]: Likewise.
14349         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
14350         comment referencing __ASSUME_LCHOWN_SYSCALL.
14351         * sysdeps/unix/sysv/linux/i386/sigaction.c
14352         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14353         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14354         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
14355         Remove conditional code.
14356         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
14357         (__protocol_available): Remove #if 0 code.
14358         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
14359         conditional code.
14360         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
14361         * sysdeps/unix/sysv/linux/kernel-features.h
14362         (__ASSUME_GETCWD_SYSCALL): Don't define.
14363         (__ASSUME_REALTIME_SIGNALS): Likewise.
14364         (__ASSUME_PREAD_SYSCALL): Likewise.
14365         (__ASSUME_PWRITE_SYSCALL): Likewise.
14366         (__ASSUME_POLL_SYSCALL): Likewise.
14367         (__ASSUME_LCHOWN_SYSCALL): Likewise.
14368         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
14369         non-SPARC.
14370         (__ASSUME_SIOCGIFNAME): Don't define.
14371         (__ASSUME_MSG_NOSIGNAL): Likewise.
14372         (__ASSUME_SENDFILE): Define unconditionally.
14373         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
14374         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
14375         conditional code.
14376         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
14377         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
14378         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14379         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14380         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
14381         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14382         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
14384         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14385         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
14387         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14388         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
14390         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14391         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
14393         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14394         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
14396         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14397         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
14399         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14400         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
14402         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14403         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
14405         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14406         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14407         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
14408         Remove conditional code.
14409         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14410         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14411         Remove conditional code.
14412         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14413         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
14414         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
14415         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14416         Remove conditional code.
14417         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14418         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
14419         Remove conditional code.
14420         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14421         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
14422         Remove conditional code.
14423         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14424         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14425         Remove conditional code.
14426         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14427         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14428         Remove conditional code.
14429         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14430         * sysdeps/unix/sysv/linux/sh/pwrite64.c
14431         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14432         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14433         * sysdeps/unix/sysv/linux/sigaction.c
14434         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14435         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14436         * sysdeps/unix/sysv/linux/sigpending.c
14437         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14438         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14439         * sysdeps/unix/sysv/linux/sigprocmask.c
14440         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14441         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14442         * sysdeps/unix/sysv/linux/sigsuspend.c
14443         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14444         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14445         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14446         (__libc_missing_rt_sigs): Remove.
14447         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
14448         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
14449         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
14450         Remove conditional code.
14451         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
14452         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
14453         return 1.
14454         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
14455         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
14456         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
14457         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
14458
14459 2012-05-14  Andreas Jaeger  <aj@suse.de>
14460
14461         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
14462         it's not used in glibc.
14463         (__coshm1): Likewise.
14464         (__acosh1p): Likewise.
14465         (__sgn): Likewise.
14466
14467         * manual/string.texi (Copying and Concatenation): Add missing
14468         variable in concat example.
14469         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
14470
14471 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14472
14473         [BZ #14103]
14474         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
14475         __builtin_clzl with __builtin_clzll.
14476
14477 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14478
14479         [BZ #14104]
14480         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
14481         libc_freeres_ptr.
14482
14483 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14484
14485         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
14486         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
14487         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
14488         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
14489
14490 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
14491
14492         * NEWS: Update ia64 info.
14493
14494 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
14495
14496         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
14497         used as bcopy.
14498
14499 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
14500
14501         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
14502         * sysdeps/unix/syscalls.list (dup3): Likewise.
14503         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
14504         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
14505
14506 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14507
14508         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
14509         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
14510
14511 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14512
14513         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
14514         thread pointer.
14515         (TLS_IE): Use mov/add instead of movq/addq to load thread
14516         pointer.
14517         (TLS_GD_PREFIX): New.
14518         (TLS_GD): Use it.
14519
14520 2012-05-11  David S. Miller  <davem@davemloft.net>
14521
14522         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
14523         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
14524         (_FPU_SETCW): Likewise.
14525
14526 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14527
14528         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
14529         is 32-byte aligned.
14530
14531 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
14532
14533         [BZ #11837]
14534         * iconvdata/gb18030.c: Update tables.
14535         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
14536         characters specially.
14537         (BODY for TO_LOOP): Add encoding of missing ranges.
14538
14539 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
14540
14541         [BZ #13673]
14542         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
14543         * sysdeps/mach/hurd/dup3.c: Likewise.
14544         * sysdeps/mach/hurd/readlinkat.c: Likewise.
14545         * sysdeps/powerpc/memmove.c:: Likewise.
14546
14547 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14548
14549         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
14550         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
14551
14552 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14553
14554         * elf/elf.h (R_X86_64_RELATIVE64): New.
14555         (R_X86_64_NUM): Updated.
14556         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14557         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
14558         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
14559         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
14560         tst-quad1pie tst-quad2pie
14561         (modules-names): Add tst-quadmod1 tst-quadmod2.
14562         ($(objpfx)tst-quad1): New dependency.
14563         ($(objpfx)tst-quad2): Likewise.
14564         ($(objpfx)tst-quad1pie): Likewise.
14565         ($(objpfx)tst-quad2pie): Likewise.
14566         * sysdeps/x86_64/tst-quad1.c: New file.
14567         * sysdeps/x86_64/tst-quad1pie.c: New file.
14568         * sysdeps/x86_64/tst-quad2.c: Likewise.
14569         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
14570         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
14571         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
14572         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
14573         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
14574
14575 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14576
14577         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
14578         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
14579         * streams/stropts.h (t_scalar_t): Define type.
14580
14581         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
14582         (_PATH_PRESERVE): Set to "/var/lib".
14583         (_PATH_RWHODIR): Set to "/var/spool/rwho".
14584
14585         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
14586         instead of int.
14587
14588         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
14589         if __dir_mkfile succeeded.
14590
14591         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
14592         checking for _hurd_dtablesize.  Unlock it right after having
14593         finished _hurd_dtable allocation.
14594
14595 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14596
14597         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
14598         * sysdeps/mach/hurd/configure: Regenerated.
14599         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
14600         special-casing to...
14601         * sysdeps/gnu/configure.in: ... this new file.
14602         * sysdeps/unix/sysv/linux/configure: Regenerated.
14603         * sysdeps/gnu/configure: New generated file.
14604
14605         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
14606         for Linux: use nsec instead of usec, as well as:
14607         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
14608         members of type struct timespec.
14609         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
14610         New macros.
14611         (struct stat64): Likewise.
14612         (_STATBUF_ST_NSEC): New macro.
14613         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
14614
14615         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
14616         __strtoul_internal rather than strtoul.
14617
14618 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14619
14620         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
14621         and reject them.
14622
14623 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14624
14625         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
14626         which preserves existing values.
14627         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
14628
14629 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14630
14631         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
14632         TIMEOUT values.  Return EINVAL for NFDS values either negative or
14633         greater than FD_SETSIZE.
14634
14635 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14636
14637         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
14638         allocated, call __vm_protect to finish enabling the existing space, and
14639         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
14640         allocate the remainder.
14641
14642 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14643
14644         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
14645         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
14646
14647 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14648
14649         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
14650         sysdeps/mach/hurd/readlink.c.
14651
14652         * posix/tst-sysconf.c (posix_options): Only use
14653         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
14654         _POSIX_SYNCHRONIZED_IO when they are defined
14655         * sysdeps/mach/hurd/bits/posix_opt.h:
14656         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
14657         (_XOPEN_REALTIME): Undefine macro.
14658         (_XOPEN_REALTIME_THREADS): Undefine macro.
14659         (_XOPEN_SHM): Undefine macro.
14660         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
14661         macro to -1.
14662         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
14663         macro to -1.
14664         (_POSIX_ASYNC_IO): Undefine macro.
14665         (_POSIX_PRIORITIZED_IO): Undefine macro.
14666         (_POSIX_SPIN_LOCKS): Define macro to -1.
14667
14668         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
14669         SA_NODEFER, SA_RESETHAND.
14670         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
14671         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
14672         F_DUPFD_CLOEXEC.
14673
14674 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14675
14676         * elf/Makefile (pldd-modules): Define unconditionally.
14677
14678 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14679
14680         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
14681
14682 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14683
14684         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
14685         Return ENOENT when name is empty.
14686         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
14687
14688 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14689
14690         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
14691
14692         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
14693
14694 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14695
14696         Fix mlock in all cases except non-readable pages.
14697         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
14698         instead of VM_PROT_ALL as parameter to __vm_wire function.
14699
14700         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
14701         (__mkdir): When path is `/', just fail with EEXIST.
14702         * sysdeps/mach/hurd/mkdirat.c: Likewise.
14703
14704 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14705
14706         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
14707         <sys/uio.h> (for writev).
14708         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
14709         and <sys/param.h> (for MIN).
14710
14711 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14712
14713         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
14714         REQUESTED_TIME.  Properly set the remaining time and return EINTR
14715         if interrupted.
14716
14717 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14718
14719         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
14720         Depend on against $(link-rpcuserlibs).
14721
14722 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14723
14724         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
14725         (__libc_stack_end): Do not use attribute_relro.
14726         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
14727         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
14728         to libthread-provided value.
14729         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
14730         attribute_relro.
14731
14732 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14733
14734         [BZ #3748]
14735         * bits/libc-lock.h (__libc_once_get): New macro.
14736         * sysdeps/mach/bits/libc-lock.h: Likewise.
14737         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
14738         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
14739         instead of using implementation details.
14740
14741         * libio/fileops.c: Unconditionally include <kernel-features.h>.
14742         * libio/freopen.c: Likewise.
14743         * libio/freopen64.c: Likewise.
14744         * misc/syslog.c: Likewise.
14745         * nscd/connections.c: Likewise.
14746         * nscd/netgroupcache.c: Likewise.
14747         * sysdeps/posix/getcwd.c: Likewise.
14748
14749 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14750
14751         * math/w_ilogbf.c: Add #include <limits.h>.
14752
14753 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14754
14755         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
14756         path instead of returning without unlocking.
14757
14758         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
14759         immediate-write ioctls.
14760         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
14761
14762 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14763
14764         * sysdeps/mach/hurd/i386/init-first.c (init): Use
14765         __builtin_frame_address instead of making assumptions about the
14766         location of the return address relative to DATA.  Force early load of
14767         the return address.
14768         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
14769         __builtin_frame_address.
14770
14771         dup3 for GNU Hurd.
14772         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
14773         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
14774         implement dup3 and do some further code clean-ups.
14775         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
14776         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
14777
14778 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14779
14780         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
14781
14782         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
14783         HURD_CRITICAL_END around holding _hurd_dtable_lock.
14784         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
14785         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
14786         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
14787         d->port.lock.
14788
14789         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
14790         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
14791         when handler == SIG_ERR, not when handler != SIG_ERR.
14792
14793 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14794
14795         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
14796         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
14797         definitions.
14798
14799         accept4 for GNU Hurd.
14800         * include/sys/socket.h (__libc_accept4): New prototype.
14801         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
14802         to implement __libc_accept4.
14803         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
14804         __libc_accept4.
14805         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
14806
14807         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
14808         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
14809         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
14810         signal-defines.sym.
14811
14812 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14813
14814         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
14815
14816 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14817
14818         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
14819         assertion on O_CLOEXEC flag.
14820         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
14821         * hurd/intern-fd.c: Likewise.
14822         * hurd/port2fd.c: Likewise.
14823
14824 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14825
14826         [BZ #3906]
14827         * bits/in.h (IPV6_PKTINFO): Define new macro.
14828         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
14829
14830 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14831
14832         [BZ #13954]
14833         [BZ #13955]
14834         [BZ #13956]
14835         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
14836         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14837         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
14838         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14839         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14840         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14841         * math/libm-test.inc (logb_test) : Additional logb tests.
14842
14843 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
14844             Andreas Jaeger  <aj@suse.de>
14845
14846         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
14847         * configure: Regenerated.
14848         * config.h.in (LINK_OBSOLETE_RPC): New macro.
14849         * config.make.in (link-obsolete-rpc): New substituted variable.
14850         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
14851         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
14852         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14853         (shared-only-routines): Don't set it under [link-obsolete-rpc],
14854         so that libc.a contains the symbols.
14855         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14856         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
14857         * sunrpc/auth_none.c: Likewise.
14858         * sunrpc/auth_unix.c: Likewise.
14859         * sunrpc/authdes_prot.c: Likewise.
14860         * sunrpc/authuxprot.c: Likewise.
14861         * sunrpc/clnt_gen.c: Likewise.
14862         * sunrpc/clnt_perr.c: Likewise.
14863         * sunrpc/clnt_raw.c: Likewise.
14864         * sunrpc/clnt_simp.c: Likewise.
14865         * sunrpc/clnt_tcp.c: Likewise.
14866         * sunrpc/clnt_udp.c: Likewise.
14867         * sunrpc/clnt_unix.c: Likewise.
14868         * sunrpc/des_crypt.c: Likewise.
14869         * sunrpc/des_soft.c: Likewise.
14870         * sunrpc/get_myaddr.c: Likewise.
14871         * sunrpc/key_call.c: Likewise.
14872         * sunrpc/key_prot.c: Likewise.
14873         * sunrpc/netname.c: Likewise.
14874         * sunrpc/pm_getmaps.c: Likewise.
14875         * sunrpc/pm_getport.c: Likewise.
14876         * sunrpc/pmap_clnt.c: Likewise.
14877         * sunrpc/pmap_prot.c: Likewise.
14878         * sunrpc/pmap_prot2.c: Likewise.
14879         * sunrpc/pmap_rmt.c: Likewise.
14880         * sunrpc/publickey.c: Likewise.
14881         * sunrpc/rpc_cmsg.c: Likewise.
14882         * sunrpc/rpc_common.c: Likewise.
14883         * sunrpc/rpc_dtable.c: Likewise.
14884         * sunrpc/rpc_prot.c: Likewise.
14885         * sunrpc/rpc_thread.c: Likewise.
14886         * sunrpc/rtime.c: Likewise.
14887         * sunrpc/svc.c: Likewise.
14888         * sunrpc/svc_auth.c: Likewise.
14889         * sunrpc/svc_raw.c: Likewise.
14890         * sunrpc/svc_run.c: Likewise.
14891         * sunrpc/svc_tcp.c: Likewise.
14892         * sunrpc/svc_udp.c: Likewise.
14893         * sunrpc/svc_unix.c: Likewise.
14894         * sunrpc/svcauth_des.c: Likewise.
14895         * sunrpc/xcrypt.c: Likewise.
14896         * sunrpc/xdr.c: Likewise.
14897         * sunrpc/xdr_array.c: Likewise.
14898         * sunrpc/xdr_float.c: Likewise.
14899         * sunrpc/xdr_intXX_t.c: Likewise.
14900         * sunrpc/xdr_mem.c: Likewise.
14901         * sunrpc/xdr_rec.c: Likewise.
14902         * sunrpc/xdr_ref.c: Likewise.
14903         * sunrpc/xdr_sizeof.c: Likewise.
14904         * sunrpc/xdr_stdio.c: Likewise.
14905
14906 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14907
14908         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
14909         change.  Update copyright years.
14910
14911 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14912
14913         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
14914
14915 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
14916             Joseph Myers  <joseph@codesourcery.com>
14917             Paul Pluzhnikov  <ppluzhnikov@google.com>
14918
14919         [BZ #14012]
14920         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
14921         requiring rpcgen.
14922         [cross-compiling] (extra-libs): Likewise.
14923         [cross-compiling] (extra-libs-others): Likewise.
14924         [cross-compiling] (librpcsvc-routines): Likewise.
14925         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
14926         [cross-compiling] (omit-deps): Likewise.
14927         (sunrpc-CPPFLAGS): New variable.
14928         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
14929         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
14930         (cross-rpcgen-objs): New variable.
14931         (extra-objs): Append $(cross-rpcgen-objs).
14932         ($(cross-rpcgen-objs)): New rule.
14933         ($(objpfx)cross-rpcgen): Likewise.
14934         (rpcgen-cmd): Define to use $(built-program-file).  Expand
14935         comment.
14936         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
14937         ($(objpfx)x%.stmp): Likewise.
14938         * sunrpc/proto.h [IS_IN_build] (_): Define.
14939         [IS_IN_build] (_libc_intl_domainname): Likewise.
14940
14941 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14942
14943         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
14944         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
14945         and R_X86_64_TPOFF64.
14946
14947 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14948
14949         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
14950         sysdeps/unix/sysv/syscalls.list.
14951         (stime): Likewise.
14952         (utime): Likewise.
14953         * sysdeps/unix/sysv/syscalls.list: Remove file.
14954
14955 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14956
14957         [BZ #3440]
14958         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
14959         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
14960         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
14961         (__LC_IDENTIFICATION): Make these macros useful in #if
14962         expressions, as required by C99.
14963
14964 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
14965
14966         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
14967         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
14968         after this.
14969
14970 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14971
14972         * stdlib/longlong.h: Updated from GCC.
14973
14974 2012-05-09  Andreas Jaeger  <aj@suse.de>
14975
14976         * nscd/nscd.c (run_modes): Make named enum, reorder so that
14977         default is first entry.
14978         (run_mode): Set type.
14979         (main): Remove informal message about syslog.
14980         (options): Fix typo.
14981
14982         [BZ #14053]
14983         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
14984         to asm.
14985         (lrint): Likewise.
14986         (llrintf): Likewise.
14987         (llrint): Likewise.
14988         (rint): Likewise.
14989         (rintf): Likewise.
14990         (nearbyint): Likewise.
14991         (nearbyintf): Likewise.
14992
14993 2012-05-09  Andreas Jaeger  <aj@suse.de>
14994             Pedro Alves  <palves@redhat.com>
14995
14996         * nscd/nscd.c (run_mode): Use enum.
14997         (main): Cleanup coding style issue.
14998
14999 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15000             Andreas Jaeger  <aj@suse.de>
15001
15002         * nscd/nscd.c (go_background): Replaced with...
15003         (run_mode): ... this.
15004         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15005         (options): Add -F --foreground.
15006         (main): Implement it.
15007         (parse_opt): Parse it.
15008
15009 2012-05-09  Andreas Jaeger  <aj@suse.de>
15010
15011         [BZ #14083]
15012         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15013         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15014         -Wconversion warning.
15015         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15016         Likewise.
15017
15018 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15019
15020         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15021         == 0.
15022         (LC_ALL): Use macro-int-constant.
15023         (LC_COLLATE): Likewise.
15024         (LC_CTYPE): Likewise.
15025         (LC_MESSAGES): Likewise.
15026         (LC_MONETARY): Likewise.
15027         (LC_NUMERIC): Likewise.
15028         (LC_TIME): Likewise.
15029         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15030         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15031         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15032         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15033         Specify type.
15034         [C99-based standards] (float_t): Expect type.
15035         [C99-based standards] (double_t): Expect type.
15036         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15037         type.
15038         [C99-based standards] (HUGE_VALL): Likewise.
15039         [C99-based standards] (INFINITY): Likewise.
15040         [C99-based standards] (NAN): Likewise.
15041         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15042         [C99-based standards] (FP_NAN): Likewise.
15043         [C99-based standards] (FP_NORMAL): Likewise.
15044         [C99-based standards] (FP_SUBNORMAL): Likewise.
15045         [C99-based standards] (FP_ZERO): Likewise.
15046         [C99-based standards] (FP_FAST_FMA): Use
15047         optional-macro-int-constant.  Specify type.  Require == 1.
15048         [C99-based standards] (FP_FAST_FMAF): Likewise.
15049         [C99-based standards] (FP_FAST_FMAL): Likewise.
15050         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15051         [C99-based standards] (FP_ILOGBNAN): Likewise.
15052         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15053         Specify type.
15054         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15055         [C99-based standards] (math_errhandling): Specify type.
15056         [ISO99 || ISO11] (signgam): Do not allow.
15057         [non-C99-based standards] (copysignf): Do not allow.
15058         [non-C99-based standards] (exp2f): Likewise.
15059         [non-C99-based standards] (log2f): Likewise.
15060         [non-C99-based standards] (modff): Allow.
15061         [non-C99-based standards] (erff): Do not allow.
15062         [non-C99-based standards] (erfcf): Likewise.
15063         [non-C99-based standards] (gammaf): Likewise.
15064         [non-C99-based standards] (hypotf): Likewise.
15065         [non-C99-based standards] (j0f): Likewise.
15066         [non-C99-based standards] (j1f): Likewise.
15067         [non-C99-based standards] (jnf): Likewise.
15068         [non-C99-based standards] (lgammaf): Likewise.
15069         [non-C99-based standards] (tgammaf): Likewise.
15070         [non-C99-based standards] (y0f): Likewise.
15071         [non-C99-based standards] (y1f): Likewise.
15072         [non-C99-based standards] (ynf): Likewise.
15073         [non-C99-based standards] (isnanf): Likewise.
15074         [non-C99-based standards] (acoshf): Likewise.
15075         [non-C99-based standards] (asinhf): Likewise.
15076         [non-C99-based standards] (atanhf): Likewise.
15077         [non-C99-based standards] (cbrtf): Likewise.
15078         [non-C99-based standards] (expm1f): Likewise.
15079         [non-C99-based standards] (ilogbf): Likewise.
15080         [non-C99-based standards] (log1pf): Likewise.
15081         [non-C99-based standards] (logbf): Likewise.
15082         [non-C99-based standards] (nextafterf): Likewise.
15083         [non-C99-based standards] (remainderf): Likewise.
15084         [non-C99-based standards] (rintf): Likewise.
15085         [non-C99-based standards] (scalbf): Likewise.
15086         [non-C99-based standards] (copysignl): Likewise.
15087         [non-C99-based standards] (exp2l): Likewise.
15088         [non-C99-based standards] (log2l): Likewise.
15089         [non-C99-based standards] (modfl): Allow.
15090         [non-C99-based standards] (erfl): Do not allow.
15091         [non-C99-based standards] (erfcl): Likewise.
15092         [non-C99-based standards] (gammal): Likewise.
15093         [non-C99-based standards] (hypotl): Likewise.
15094         [non-C99-based standards] (j0l): Likewise.
15095         [non-C99-based standards] (j1l): Likewise.
15096         [non-C99-based standards] (jnl): Likewise.
15097         [non-C99-based standards] (lgammal): Likewise.
15098         [non-C99-based standards] (tgammal): Likewise.
15099         [non-C99-based standards] (y0l): Likewise.
15100         [non-C99-based standards] (y1l): Likewise.
15101         [non-C99-based standards] (ynl): Likewise.
15102         [non-C99-based standards] (isnanl): Likewise.
15103         [non-C99-based standards] (acoshl): Likewise.
15104         [non-C99-based standards] (asinhl): Likewise.
15105         [non-C99-based standards] (atanhl): Likewise.
15106         [non-C99-based standards] (cbrtl): Likewise.
15107         [non-C99-based standards] (expm1l): Likewise.
15108         [non-C99-based standards] (ilogbl): Likewise.
15109         [non-C99-based standards] (log1pl): Likewise.
15110         [non-C99-based standards] (logbl): Likewise.
15111         [non-C99-based standards] (nextafterl): Likewise.
15112         [non-C99-based standards] (remainderl): Likewise.
15113         [non-C99-based standards] (rintl): Likewise.
15114         [non-C99-based standards] (scalbl): Likewise.
15115         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15116         [non-C99-based standards] (FP_*): Do not allow.
15117         [C99-based standards] (FP_*): Change to
15118         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15119         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15120         allow.
15121         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15122         (SIG_ERR): Likewise.
15123         [X/Open-based standards] (SIG_HOLD): Likewise.
15124         (SIG_IGN): Likewise.
15125         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15126         positive value.
15127         (SIGFPE): Likewise.
15128         (SIGILL): Likewise.
15129         (SIGINT): Likewise.
15130         (SIGSEGV): Likewise.
15131         (SIGTER): Likewise.
15132         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15133         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15134         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15135         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15136         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15137         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15138         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15139         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15140         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15141         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15142         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15143         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15144         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15145         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15146         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15147         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15148         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15149         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15150         [X/Open-based standards] (SIGTRAP): Likewise.
15151         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15152         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15153         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15154         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15155         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15156         allow.
15157
15158 2012-05-08  Ian Wienand  <ianw@vmware.com>
15159
15160         [BZ #14080]
15161         * time/tzset.c (__tzset_parse_tz): Update default rules for
15162         daylight time changes in the Energy Policy Act of 2005.
15163
15164 2012-05-09  Andreas Jaeger  <aj@suse.de>
15165
15166         [BZ #13983]
15167         * elf/ldconfig.c (parse_conf): Change string to make clear that
15168         ldconfig only issued a warning if ld.so.conf does not exist.
15169
15170 2012-05-08  David S. Miller  <davem@davemloft.net>
15171
15172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15173         movxtod instead of popping the value on the stack.
15174
15175         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15176
15177 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15178
15179         * config.h.in: Add HAVE_ARM_PCS_VFP.
15180
15181 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15182
15183         [BZ #13979]
15184         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15185         checking but the checks are disabled for any reason.
15186
15187 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15188
15189         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15190         and ELF64_R_TYPE with ELFW(R_TYPE).
15191
15192 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15193
15194         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15195         (ulimit): Likewise.
15196
15197         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15198         (settimeofday): Likewise.
15199
15200 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15201
15202         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15203         a struct th_u2 inside the union, and move tu_block/tu_code into
15204         a new th_u3 union of tu_block/tu_code inside of that.  Move
15205         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15206         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15207         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15208         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15209         (th_stuff): Change to th_u1.tu_stuff.
15210         (th_data): Define.
15211         (th_msg): Change to th_u1.th_u2.tu_data.
15212
15213 2012-05-07  David S. Miller  <davem@davemloft.net>
15214
15215         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15216
15217         [BZ #14074]
15218         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15219         (SETUP_PIC_REG): Use it.
15220         (SETUP_PIC_REG_LEAF): Use it.
15221
15222 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15223
15224         [BZ #13885]
15225         [BZ #13923]
15226         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15227         USE_AS_EXPM1L.
15228         (EXPL_FINITE): Likewise.
15229         (FLDLOG): Likewise.
15230         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15231         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15232         e_expl.S.
15233         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15234         USE_AS_EXPM1L.
15235         (EXPL_FINITE): Likewise.
15236         (FLDLOG): Likewise.
15237         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15238         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15239         e_expl.S.
15240         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15241         test of -max_value argument for long double.
15242         * sysdeps/i386/fpu/libm-test-ulps: Update.
15243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15244
15245 2012-05-06  David S. Miller  <davem@davemloft.net>
15246
15247         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15248         quad soft-float symbols whose references which are compiler
15249         generated.
15250         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15251
15252 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15253
15254         [BZ #13884]
15255         [BZ #13914]
15256         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15257         USE_AS_EXP10L.
15258         (EXPL_FINITE): Likewise.
15259         (FLDLOG): Likewise.
15260         (c0): Likewise.
15261         (c1): Likewise.
15262         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15263         Adjust comments for base varying.
15264         (__expl_finite): Change alias to EXPL_FINITE.
15265         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15266         e_expl.S.
15267         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15268         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15269         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15270         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15271         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15272         USE_AS_EXP10L.
15273         (EXPL_FINITE): Likewise.
15274         (FLDLOG): Likewise.
15275         (c0): Likewise.
15276         (c1): Likewise.
15277         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15278         Adjust comments for base varying.
15279         (__expl_finite): Change alias to EXPL_FINITE.
15280         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15281         tests for bugs.
15282         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15283
15284         [BZ #14064]
15285         * math/libm-test.inc (check_float_internal): Correct ulp
15286         calculation for subnormal expected results.
15287
15288 2012-05-06  Andreas Jaeger  <aj@suse.de>
15289
15290         * Makeconfig (+math-flags): New, set to -frounding-math.
15291         (+cflags): Add +math-flags so that all of glibc gets compiled with
15292         it.
15293
15294         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15295
15296 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15297
15298         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15299         Disable one test.
15300
15301         [BZ #13787]
15302         [BZ #13922]
15303         [BZ #14036]
15304         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15305         (__ieee754_expl): Allow for and saturate large arguments.
15306         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15307         (u_threshold): Likewise.
15308         (__exp): Call __ieee754_exp before checking for overflow and
15309         underflow.
15310         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15311         (u_threshold): Likewise.
15312         (__expf): Call __ieee754_expf before checking for overflow and
15313         underflow.
15314         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15315         (u_threshold): Likewise.
15316         (__expl): Call __ieee754_expl before checking for overflow and
15317         underflow.
15318         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15319         (__ieee754_expl): Allow for and saturate large arguments.
15320         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15321         missing overflow exception on overflow.
15322         (expm1_test): Do not allow missing overflow exception on overflow.
15323
15324         * sysdeps/i386/fpu/e_expl.c: Move to ...
15325         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15326         rather than using inline asm.
15327         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15328         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15329         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15330
15331         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15332         (nice): Likewise.
15333         (poll): Likewise.
15334         (signal): Likewise.
15335         (time): Likewise.
15336         (times): Likewise.
15337
15338 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15339
15340         * sysdeps/unix/syscalls.list (adjtime): Add entry from
15341         sysdeps/unix/common/syscalls.list.
15342         (fchmod): Likewise.
15343         (fchown): Likewise.
15344         (ftruncate): Likewise.
15345         (getrusage): Likewise.
15346         (gettimeofday): Likewise.
15347         (setpgid): Likewise.
15348         (setregid): Likewise.
15349         (setreuid): Likewise.
15350         (sigaction): Likewise.
15351         (truncate): Likewise.
15352         (vhangup): Likewise.
15353         * sysdeps/unix/common/syscalls.list: Remove file.
15354         * sysdeps/unix/bsd/Implies: Don't include unix/common.
15355         * sysdeps/unix/sysv/linux/Implies: Likewise.
15356
15357 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15358
15359         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
15360         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
15361         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
15362         Moved to ...
15363         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
15364         Here.
15365         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
15366         to ...
15367         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
15368         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
15369         to ...
15370         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
15371         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
15372         to ...
15373         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
15374         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
15375         to ...
15376         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
15377         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
15378         to ...
15379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
15380         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
15381         to ...
15382         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
15383         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
15384         to ...
15385         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15386         Here.
15387         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
15388         to ...
15389         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
15390         Here.
15391         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
15392         to ...
15393         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
15394         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
15395         Moved to ...
15396         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
15397         Here.
15398         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
15399         to ...
15400         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
15401
15402 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15403
15404         * sysdeps/unix/common/bits/dirent.h: Remove file.
15405         * sysdeps/unix/common/bits/fcntl.h: Likewise.
15406
15407         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
15408         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
15409         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
15410         * sysdeps/unix/bsd/isatty.c: Likewise.
15411         * sysdeps/unix/bsd/tcdrain.c: Likewise.
15412         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
15413         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
15414
15415 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15416
15417         [BZ #13563]
15418         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
15419         long double comparison inaccuracies.
15420         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15421         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15422
15423 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
15424
15425         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
15426         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
15427
15428 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15429
15430         [BZ #14049]
15431         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
15432         nonzero digits before rounding a hex value.
15433         * stdlib/tst-strtod.c (tests): Add another test.
15434
15435 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15436
15437         * sysdeps/s390/fpu/libm-test-ulps: Update.
15438
15439 2012-05-03  Andreas Jaeger  <aj@suse.de>
15440
15441         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
15442         does not get optimized out.
15443         (malloc_opt_barrier): New.
15444
15445 2012-05-03  Andreas Jaeger  <aj@suse.de>
15446             Roland McGrath  <roland@hack.frob.com>
15447
15448         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
15449         intermediate file deletion.
15450         (generated): Add .symlist files.
15451
15452 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
15453
15454         [BZ #13775]
15455         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
15456         Redirect under this condition.
15457         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15458         [__USE_GNU] (__dprintf_chk): Not under this condition.
15459         [__USE_GNU] (__vdprintf_chk): Likewise.
15460         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
15461         under this condition.
15462         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15463         [__USE_XOPEN2K8] (dprintf): Define under this condition.
15464         [__USE_XOPEN2K8] (vdprintf): Likewise.
15465         [__USE_GNU] (__dprintf_chk): Not under this condition.
15466         [__USE_GNU] (__vdprintf_chk): Likewise.
15467         [__USE_GNU] (dprintf): Likewise.
15468         [__USE_GNU] (vdprintf): Likewise.
15469
15470 2012-05-03  Roland McGrath  <roland@hack.frob.com>
15471
15472         * elf/Makefile (common-generated): Set this instead of generated for
15473         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
15474         $(all-built-dso)-derived lists.
15475
15476 2012-05-03  Andreas Jaeger  <aj@suse.de>
15477
15478         * sysdeps/i386/fpu/libm-test-ulps: Update.
15479
15480         * FAQ: Removed.
15481         * FAQ.in: Likewise.
15482         * scripts/gen-FAQ.pl: Likewise.
15483         * manual/install.texi (Installation): Point to online location of
15484         FAQ.
15485         * Makefile (files-for-dist): Remove FAQ.
15486         (FAQ): Remove.
15487
15488 2012-05-02  Allan McRae  <allan@archlinux.org>
15489
15490         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
15491         (LDFLAGS-reldepmod5.so): Likewise.
15492         (LDFLAGS-reldep6mod1.so): Likewise.
15493         (LDFLAGS-reldep6mod4.so): Likewise.
15494         (LDFLAGS-reldep8mod3.so): Likewise.
15495         (LDFLAGS-unload4mod1.so): Likewise.
15496         (LDFLAGS-unload4mod2.so): Likewise.
15497         (LDFLAGS-tst-initorder): Likewise.
15498         (LDFLAGS-tst-initordera2.so): Likewise.
15499         (LDFLAGS-tst-initordera3.so): Likewise.
15500         (LDFLAGS-tst-initordera4.so): Likewise.
15501         (LDFLAGS-tst-initorderb2.so): Likewise.
15502         (LDFLAGS-noload): Likewise.
15503         (LDFLAGS-next): Likewise.
15504         (LDFLAGS-order2mod1.so): Likewise.
15505         (LDFLAGS-order2mod2.so): Likewise.
15506         (LDFLAGS-tst-initorder2): Likewise.
15507         (LDFLAGS-tst-initorder2a.so): Likewise.
15508         (LDFLAGS-tst-initorder2b.so): Likewise.
15509         (LDFLAGS-tst-initorder2c.so): Likewise.
15510         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
15511
15512 2012-05-02  David S. Miller  <davem@davemloft.net>
15513
15514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15515
15516 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
15517
15518         [BZ #14055]
15519         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
15520
15521 2012-05-02  Andreas Jaeger  <aj@suse.de>
15522
15523         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
15524         since we manipulate rounding mode.
15525         (CPPFLAGS-test-idouble.c): Likewise.
15526         (CPPFLAGS-test-ifloat.c): Likewise.
15527         (CFLAGS-test-ldouble.c): Likewise.
15528         (CFLAGS-test-double.c): Likewise.
15529         (CFLAGS-test-float.c): Likewise.
15530         (CFLAGS-test-misc.c): Likewise.
15531         (CFLAGS-test-test-fenv.c): Likewise.
15532
15533 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15534
15535         [BZ #2550]
15536         [BZ #2570]
15537         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
15538         comparisons to determine direction to adjust input.
15539
15540 2012-05-01  Roland McGrath  <roland@hack.frob.com>
15541
15542         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
15543         output to the target.
15544
15545         * scripts/localplt.awk: New file.
15546         * elf/Makefile ($(objpfx)check-localplt): Target removed.
15547         (check-localplt-CFLAGS): Variable removed.
15548         ($(all-built-dso:=.jmprel)): New static pattern rule.
15549         (generated): Add those targets.
15550         (localplt-built-dso): New variable.
15551         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
15552
15553         * elf/check-localplt.c: File removed.
15554
15555         * scripts/check-execstack.awk: New file.
15556         * elf/Makefile ($(objpfx)check-execstack): Target removed.
15557         (check-execstack-CFLAGS): Variable removed.
15558         ($(objpfx)check-execstack.h): Target removed.
15559         ($(objpfx)execstack-default): New target.
15560         (generated): Add that instead of check-execstack.h.
15561         ($(all-built-dso:=.phdr)): New static pattern rule.
15562         (generated): Add those targets.
15563         * elf/check-execstack.c: File removed.
15564
15565         * scripts/check-textrel.awk: New file.
15566         * elf/Makefile ($(objpfx)check-textrel): Target removed.
15567         (check-textrel-CFLAGS): Variable removed.
15568         (all-built-dso): Use := to define.o
15569         ($(all-built-dso:=.dyn)): New static pattern rule.
15570         (generated): Add those targets.
15571         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
15572         * config.make.in (READELF): New substituted variable.
15573         * elf/check-textrel.c: File removed.
15574
15575 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
15576
15577         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15578         allow.
15579         * conform/data/ctype.h-data [C99-based standards] (isblank):
15580         Expect function.
15581         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
15582         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
15583         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15584         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
15585         Specify type.  Require positive value.
15586         (EILSEQ): Likewise.
15587         (ERANGE): Likewise.
15588         [ISO || POSIX] (EILSEQ): Do not expect.
15589         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
15590         Specify type.  Require positive value.
15591         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
15592         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
15593         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
15594         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
15595         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
15596         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
15597         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
15598         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
15599         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
15600         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
15601         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
15602         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
15603         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
15604         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
15605         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
15606         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
15607         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
15608         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
15609         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
15610         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
15611         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
15612         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
15613         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
15614         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
15615         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
15616         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
15617         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
15618         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
15619         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
15620         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
15621         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
15622         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
15623         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
15624         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
15625         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
15626         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
15627         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
15628         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
15629         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
15630         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
15631         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
15632         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
15633         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
15634         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
15635         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
15636         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
15637         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
15638         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
15639         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
15640         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
15641         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
15642         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
15643         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
15644         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
15645         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
15646         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
15647         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
15648         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
15649         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
15650         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
15651         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
15652         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
15653         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
15654         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
15655         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
15656         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
15657         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
15658         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
15659         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
15660         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
15661         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
15662         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
15663         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
15664         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
15665         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
15666         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
15667         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
15668         Require >= 2.
15669         (FLT_ROUNDS): Expect as macro, not constant.
15670         (FLT_MANT_DIG): Use macro-int-constant.
15671         (DBL_MANT_DIG): Likewise.
15672         (LDBL_MANT_DIG): Likewise.
15673         (FLT_DIG): Likewise.
15674         (DBL_DIG): Likewise.
15675         (LDBL_DIG): Likewise.
15676         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
15677         (DBL_MIN_EXP): Likewise.
15678         (LDBL_MIN_EXP): Likewise.
15679         (FLT_MAX_EXP): Use macro-int-constant.
15680         (DBL_MAX_EXP): Likewise.
15681         (LDBL_MAX_EXP): Likewise.
15682         (FLT_MAX_10_EXP): Likewise.
15683         (DBL_MAX_10_EXP): Likewise.
15684         (LDBL_MAX_10_EXP): Likewise.
15685         (FLT_MAX): Use macro-constant.
15686         (DBL_MAX): Likewise.
15687         (LDBL_MAX): Likewise.
15688         (FLT_EPSILON): Use macro-constant.  Give upper bound.
15689         (DBL_EPSILON): Likewise.
15690         (LDBL_EPSILON): Likewise.
15691         (FLT_MIN): Likewise.
15692         (DBL_MIN): Likewise.
15693         (LDBL_MIN): Likewise.
15694         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
15695         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
15696         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
15697         [ISO11] (FLT_HAS_SUBNORM): Likewise.
15698         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
15699         [ISO11] (DBL_DECIMAL_DIG): Likewise.
15700         [ISO11] (FLT_DECIMAL_DIG): Likewise.
15701         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
15702         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
15703         [ISO11] (FLT_TRUE_MIN): Likewise.
15704         [ISO11] (LDBL_TRUE_MIN): Likewise.
15705         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15706         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
15707         (SCHAR_MIN): Use macro-int-constant.  Specify type.
15708         (SCHAR_MAX): Likewise.
15709         (UCHAR_MAX): Likewise.
15710         (CHAR_MIN): Likewise.
15711         (CHAR_MAX): Likewise.
15712         (MB_LEN_MAX): Use macro-int-constant.
15713         (SHRT_MIN): Use macro-int-constant.  Specify type.
15714         (SHRT_MAX): Likewise.
15715         (USHRT_MAX): Likewise.
15716         (INT_MAX): Likewise.
15717         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
15718         bound negative.
15719         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15720         bound with "U".
15721         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15722         bound with "L".
15723         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
15724         bound negative.  Suffix upper bound with "L".
15725         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15726         bound with "UL".
15727         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
15728         Specify type.
15729         [C99-based standards] (LLONG_MAX): Likewise.
15730         [C99-based standards] (ULLONG_MAX): Likewise.
15731         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
15732         == 0.
15733         [ISO11] (max_align_t): Require type.
15734         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15735
15736         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
15737         from $CFLAGS, without defining away __attribute__ calls.
15738         (checknamespace): Use $CFLAGS_namespace.
15739
15740         * conform/conformtest.pl (@keywords): Only include C99 keywords
15741         for standards based on C99 or C11.
15742
15743         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
15744         Disable tests.
15745         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
15746         UNIX98]: Likewise.
15747
15748         * conform/conformtest.pl: Handle "macro-int-constant" and test for
15749         usability of symbols in #if.
15750
15751         * conform/conformtest.pl: If macro or constant types start
15752         "promoted:", expect the symbol to be of the following type
15753         promoted by the integer promotions.
15754
15755         * conform/conformtest.pl: Parse all "constant" and "macro" lines
15756         in one place.  Also handle "macro-constant".
15757
15758         * conform/conformtest.pl: Only accept expected macro values with
15759         "==".  Parse all "macro" lines in one place.
15760         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
15761
15762         * conform/conformtest.pl: Handle braced types on "constant" lines
15763         instead of handling "typed-constant".
15764         * conform/data/signal.h-data: Use "constant" instead of
15765         "typed-constant".
15766
15767         * conform/conformtest.pl: Handle "optional-" at start of lines in
15768         one place rather than duplicating several cases.  Handle each
15769         format of "macro" line with initial "optional-".
15770
15771         * conform/conformtest.pl: Only accept expected constant or
15772         optional-constant values with "==".  Parse all "constant" lines in
15773         one place.  Parse all "optional-constant" lines in one place.
15774         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
15775         * conform/data/fmtmsg.h-data: Likewise.
15776         * conform/data/netinet/in.h-data: Likewise.
15777         * conform/data/tar.h-data: Likewise.
15778         * conform/data/limits.h-data: Use "==" form on "constant" and
15779         "optional-constant" lines.
15780
15781         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
15782         Use -std=c99 for XOPEN2K.
15783         (@knownproblems): Remove.
15784         (newtoken): Don't check %isknown.
15785
15786         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
15787         Do not expect macro.
15788         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
15789         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
15790         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
15791         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
15792         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
15793         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
15794         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
15795         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
15796         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
15797         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
15798         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
15799         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
15800         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
15801         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
15802         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
15803         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
15804         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
15805         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
15806         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
15807         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
15808         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
15809         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
15810         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
15811         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
15812         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
15813         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
15814         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
15815         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
15816         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
15817         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
15818         [XPG3] (acosh): Likewise.
15819         [XPG3] (asinh): Likewise.
15820         [XPG3] (atanh): Likewise.
15821         [XPG3] (cbrt): Likewise.
15822         [XPG3] (expm1): Likewise.
15823         [XPG3] (ilogb): Likewise.
15824         [XPG3] (log1p): Likewise.
15825         [XPG3] (logb): Likewise.
15826         [XPG3] (nextafter): Likewise.
15827         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
15828         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
15829         [XPG3] (remainder): Likewise.
15830         [XPG3] (rint): Likewise.
15831         [XPG3 || XPG4 || UNIX98] (round): Likewise.
15832         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
15833         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
15834         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
15835         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
15836         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
15837         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
15838         [UNIX98 || XOPEN2K] (scalb): Expect.
15839         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
15840         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
15841         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
15842         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
15843         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
15844         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
15845         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
15846         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
15847         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
15848         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
15849         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
15850         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
15851         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
15852         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
15853         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
15854         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
15855         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
15856         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
15857         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
15858         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
15859         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
15860         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
15861         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
15862         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
15863         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
15864         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
15865         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
15866         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
15867         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
15868         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
15869         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
15870         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
15871         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
15872         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
15873         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
15874         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
15875         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
15876         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
15877         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
15878         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
15879         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
15880         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
15881         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
15882         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
15883         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
15884         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
15885         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
15886         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
15887         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
15888         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
15889         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
15890         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
15891         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
15892         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
15893         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
15894         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
15895         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
15896         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
15897         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
15898         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
15899         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
15900         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
15901         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
15902         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
15903         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
15904         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
15905         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
15906         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
15907         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
15908         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
15909         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
15910         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
15911         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
15912         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
15913         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
15914         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
15915         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
15916         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
15917         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
15918         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
15919         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
15920         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
15921         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
15922         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
15923         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
15924         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
15925         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
15926         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
15927         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
15928         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
15929         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
15930         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
15931         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
15932         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
15933         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
15934         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
15935         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
15936         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
15937         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
15938         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
15939         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
15940         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
15941         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
15942         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
15943         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
15944         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
15945         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
15946         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
15947         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
15948         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
15949         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
15950         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
15951         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
15952         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
15953         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
15954         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
15955         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
15956         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
15957         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
15958         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
15959         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
15960         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
15961         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
15962         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
15963         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
15964         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
15965         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
15966         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
15967         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
15968         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
15969         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
15970         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
15971         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
15972         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
15973         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
15974         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
15975         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
15976
15977         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
15978         _XOPEN_SOURCE_EXTENDED for XPG4.
15979
15980         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
15981
15982         * Makeconfig (localtime): Remove variable.
15983         (inst_localtime-file): Likewise.
15984
15985 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15986
15987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
15988         Update.
15989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15990         Update.
15991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
15992         Update.
15993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15994         Update.
15995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
15996         Update.
15997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
15998         Update.
15999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16000         Update.
16001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16002         Update.
16003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16004         Update.
16005
16006 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16007
16008         [BZ #2550]
16009         [BZ #2570]
16010         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16011         comparisons to determine direction to adjust input.
16012         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16013         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16014         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16015         Likewise.
16016         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16017         Likewise.
16018         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16019         Likewise.
16020         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16021         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16022         Likewise.
16023         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16024         Likewise.
16025         * math/libm-test.inc (nexttoward_test): Add more tests.
16026
16027 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16028
16029         [BZ #14040]
16030         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16031         in version GLIBC_2.1, not GLIBC_2.0.
16032         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16033         Likewise.
16034
16035 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16036
16037         [BZ #13942]
16038         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16039         (1 - x) * (1 + x).
16040         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16041         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16042         * math/libm-test.inc (acos_test): Add more tests.
16043         (asin_test): Likewise.
16044         * sysdeps/i386/fpu/libm-test-ulps: Update.
16045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16046
16047         [BZ #14034]
16048         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16049         of square root.
16050         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16051         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16052         * math/libm-test.inc (acos_test_tonearest): New function.
16053         (acos_test_towardzero): Likewise.
16054         (acos_test_downward): Likewise.
16055         (acos_test_upward): Likewise.
16056         (asin_test_tonearest): Likewise.
16057         (asin_test_towardzero): Likewise.
16058         (asin_test_downward): Likewise.
16059         (asin_test_upward): Likewise.
16060         (main): Call the new functions.
16061         * sysdeps/i386/fpu/libm-test-ulps: Update.
16062         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16063
16064         [BZ #13884]
16065         [BZ #13924]
16066         * math/e_exp10.c: Include <float.h>.
16067         (__ieee754_exp10): Handle underflow here rather than multiplying
16068         large negative argument by M_LN10.
16069         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16070         of __ieee754_expf.
16071         * math/e_exp10l.c: Include <float.h>.
16072         (__ieee754_exp10l): Handle underflow here rather than multiplying
16073         large negative argument by M_LN10l.
16074         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16075         spurious overflow exception on underflow.
16076
16077 2012-04-29  Marek Polacek  <polacek@redhat.com>
16078
16079         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16080         (__fortify_function): New macro.
16081         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16082         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16083         __extern_always_inline.
16084         * libio/bits/stdio2.h: Likewise.
16085         * libio/bits/stdio.h: Likewise.
16086         * string/string.h: Likewise.
16087         * string/bits/string3.h: Likewise.
16088         * include/stdio.h: Likewise.
16089         * stdlib/bits/stdlib.h: Likewise.
16090         * stdlib/stdlib.h: Likewise.
16091         * rt/bits/mqueue2.h: Likewise.
16092         * rt/mqueue.h: Likewise.
16093         * posix/bits/unistd.h: Likewise.
16094         * posix/unistd.h: Likewise.
16095         * io/bits/poll2.h: Likewise.
16096         * io/bits/fcntl2.h: Likewise.
16097         * io/fcntl.h: Likewise.
16098         * io/sys/poll.h: Likewise.
16099         * misc/bits/syslog.h: Likewise.
16100         * misc/bits/syslog-ldbl.h: Likewise.
16101         * misc/sys/syslog.h: Likewise.
16102         * socket/bits/socket2.h: Likewise.
16103         * socket/sys/socket.h: Likewise.
16104         * debug/tst-chk1.c: Likewise.
16105         * wcsmbs/bits/wchar2.h: Likewise.
16106         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16107         * wcsmbs/wchar.h: Likewise.
16108
16109 2012-04-29  Andreas Jaeger  <aj@suse.de>
16110
16111         * Makerules (tests): Remove enable-check-abi protection.
16112         (check-abi-warn): Remove.
16113         (check-abi-%): Remove check-abi-warn usage.
16114
16115         * configure.in: Remove check-abi configure option.
16116         * configure: Regenerated.
16117         * config.make.in (enable-check-abi): Remove.
16118
16119 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16120
16121         [BZ #14033]
16122         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16123         double functions to double *_finite functions.
16124
16125         [BZ #13941]
16126         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16127         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16128         LDBL_MIN_EXP.
16129         * stdio-common/Makefile (tests): Add tst-sprintf3.
16130         * stdio-common/tst-sprintf3.c: New file.
16131
16132         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16133         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16134
16135 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16136
16137         * conform/conformtest.pl: Remove duplicate typed-constant
16138         handling.
16139
16140 2012-04-28  David S. Miller  <davem@davemloft.net>
16141
16142         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16143         (check-abi-%): Remove AWK script prerequisite and explicit
16144         abilist directory.
16145         (check-abi): Rewrite to just diff the symlist with the abilist.
16146         (config-tls, config-abi-config): Delete, no longer used.
16147         (update-abi-%): Remove AWK script and explicit abilist directory.
16148         (update-abi): Rewrite to simply compare and conditionally copy the
16149         symlist and the sysdep abilist file.  Remove update-abi-config
16150         checks.
16151         * abilist/ld.abilist: Remove.
16152         * abilist/libBrokenLocale.abilist: Remove.
16153         * abilist/libanl.abilist: Remove.
16154         * abilist/libcrypt.abilist: Remove.
16155         * abilist/libdl.abilist: Remove.
16156         * abilist/librt.abilist: Remove.
16157         * abilist/libthread_db.abilist: Remove.
16158         * abilist/libutil.abilist: Remove.
16159         * scripts/extract-abilist.awk: Remove.
16160         * scripts/merge-abilist.awk: Remove.
16161         * sysdeps/generic/libcidn.abilist: New file.
16162         * sysdeps/generic/libnss_compat.abilist: New file.
16163         * sysdeps/generic/libnss_db.abilist: New file.
16164         * sysdeps/generic/libnss_dns.abilist: New file.
16165         * sysdeps/generic/libnss_files.abilist: New file.
16166         * sysdeps/generic/libnss_hesiod.abilist: New file.
16167         * sysdeps/generic/libnss_nis.abilist: New file.
16168         * sysdeps/generic/libnss_nisplus.abilist: New file.
16169         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16170         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16171         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16172         file.
16173         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16174         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16175         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16176         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16177         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16178         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16179         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16180         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16181         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16182         file.
16183         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16184         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16185         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16186         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16187         file.
16188         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16189         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16190         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16191         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16192         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16193         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16194         file.
16195         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16196         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16197         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16198         file.
16199         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16200         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16201         New file.
16202         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16203         New file.
16204         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16205         New file.
16206         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16207         New file.
16208         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16209         New file.
16210         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16211         New file.
16212         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16213         New file.
16214         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16215         New file.
16216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16217         New file.
16218         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16219         New file.
16220         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16221         New file.
16222         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16223         New file.
16224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16225         New file.
16226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16227         file.
16228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16229         New file.
16230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16231         New file.
16232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16233         file.
16234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16235         New file.
16236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16237         New file.
16238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16239         file.
16240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16241         New file.
16242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16243         New file.
16244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16245         New file.
16246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16247         New file.
16248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16249         New file.
16250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16251         New file.
16252         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16253         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16254         file.
16255         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16256         New file.
16257         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16258         file.
16259         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16260         file.
16261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16262         file.
16263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16264         file.
16265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16266         file.
16267         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16268         New file.
16269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16270         file.
16271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16272         file.
16273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16274         New file.
16275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16276         file.
16277         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16279         file.
16280         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16281         New file.
16282         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16283         file.
16284         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16285         file.
16286         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16287         file.
16288         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16289         file.
16290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16291         file.
16292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16293         New file.
16294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16295         file.
16296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16297         file.
16298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16299         New file.
16300         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16301         file.
16302         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16303         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16304         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16305         file.
16306         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16307         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16308         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16309         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16310         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16311         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16312         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16313         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16314         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16315         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16316         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16317         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16318         file.
16319         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16320         New file.
16321         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16322         file.
16323         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16324         file.
16325         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16326         file.
16327         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16328         file.
16329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16330         file.
16331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16332         New file.
16333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
16334         New file.
16335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
16336         file.
16337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
16338         New file.
16339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
16340         file.
16341         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
16342         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
16343         file.
16344         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
16345         New file.
16346         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
16347         file.
16348         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
16349         file.
16350         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
16351         file.
16352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
16353         file.
16354         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
16355         file.
16356         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16357         New file.
16358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
16359         New file.
16360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
16361         file.
16362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
16363         New file.
16364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
16365         file.
16366
16367 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16368
16369         * conform/conformtest.pl: Fix typo in handling typed-constant from
16370         allow-header.
16371
16372 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16373
16374         * README: Cut down references to pre-2.6 Linux kernels and
16375         Linuxthreads.  Update lists of configurations in libc and ports
16376         and sort alphabetically.  Say "or newer" with Linux kernel version
16377         requirements.
16378
16379         * config.h.in [IS_IN_build]: Allow compiling without optimization.
16380
16381 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16382
16383         [BZ #887]
16384         * math/libm-test.inc (logb_test_downward): New test to expose
16385         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
16386         rounding mode.
16387
16388 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16389
16390         [BZ #14027]
16391         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
16392         to be done.
16393         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
16394         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
16395
16396 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
16397
16398         * sysdeps/unix/i386/brk.S: Remove file.
16399         * sysdeps/unix/i386/dl-brk.S: Likewise.
16400         * sysdeps/unix/i386/pipe.S: Likewise.
16401         * sysdeps/unix/i386/sigreturn.S: Likewise.
16402         * sysdeps/unix/i386/syscall.S: Likewise.
16403         * sysdeps/unix/i386/vfork.S: Likewise.
16404         * sysdeps/unix/i386/wait.S: Likewise.
16405
16406         * sysdeps/unix/common/tcsendbrk.c: Move to ...
16407         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
16408
16409         * configure.in (arm*-none*): Do not allow without
16410         --enable-hacker-mode.
16411         (netbsd*): Remove case setting base_os.
16412         (386bsd*): Likewise.
16413         (freebsd*): Likewise.
16414         (bsdi*): Likewise.
16415         (osf*): Likewise.
16416         (sunos*): Likewise.
16417         (ultrix*): Likewise.
16418         (newsos*): Likewise.
16419         (dynix*): Likewise.
16420         (*bsd*): Likewise.
16421         (sysv*): Likewise.
16422         (isc*): Likewise.
16423         (esix*): Likewise.
16424         (sco*): Likewise.
16425         (minix*): Likewise.
16426         (irix4*): Likewise.
16427         (irix6*): Likewise.
16428         (solaris[2-9]*): Likewise.
16429         (none): Likewise.
16430         * configure: Regenerated.
16431
16432 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16433
16434         [BZ #11521]
16435         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
16436         overflow or cancellation in calculating denominator.
16437         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
16438         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
16439         down expression to avoid unexpected rounding in newer GCCs.
16440         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
16441
16442 2012-04-26  David S. Miller  <davem@davemloft.net>
16443
16444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
16445         long-double compat symbols.
16446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
16450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16451         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
16452         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
16453         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
16454         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
16455         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
16456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
16457         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
16458         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
16459
16460 2012-04-25  David S. Miller  <davem@davemloft.net>
16461
16462         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
16463         HWCAP_* values only after the memory barriers have been defined.
16464         (atomic_full_barrier): Define.
16465         (atomic_read_barrier): Define.
16466         (atomic_write_barrier): Define.
16467
16468 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16469
16470         * shlib-versions: Add libgcc_s version information.
16471         * sysdeps/generic/libgcc_s.h: Remove.
16472         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
16473         libgcc_s.h.
16474         * sysdeps/gnu/unwind-resume.c: Likewise.
16475         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
16476
16477 2012-04-25  David S. Miller  <davem@davemloft.net>
16478
16479         * sysdeps/unix/sparc/brk.S: Delete.
16480         * sysdeps/unix/sparc/dl-brk.S: Delete.
16481         * sysdeps/unix/sparc/pipe.S: Delete.
16482         * sysdeps/unix/sparc/sysdep.S: Delete.
16483         * sysdeps/unix/sparc/sysdep.h: Delete.
16484         * sysdeps/unix/sparc/vfork.S: Delete.
16485         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
16486         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
16487         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
16488         ret_ERRVAL, r0, r1, MOVE): Define.
16489         (JUMPTARGET): Remove.
16490         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
16491         sysdeps/unix/sparc/sysdep.h
16492         (ENTRY, END): Remove.
16493         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16494
16495 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
16496
16497         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
16498         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
16499         -DIS_IN_build.
16500
16501         * timezone/README: Update upstream location and email address for
16502         tzcode and tzdata.
16503         * timezone/zdump.c: Update from tzcode 2012b.
16504         * timezone/zic.c: Likewise.
16505
16506         * configure.in (libc_cv_as_needed): Remove test.
16507         * configure: Regenerated.
16508         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
16509         conditional definition.
16510         [$(have-as-needed) != yes] (no-as-needed): Likewise.
16511         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
16512         * config.make.in (have-as-needed): Remove variable.
16513
16514 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
16515             Paul Pluzhnikov  <ppluzhnikov@google.com>
16516
16517         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
16518         strings correctly.
16519
16520 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16521
16522         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
16523         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
16524         * sysdeps/sh/strlen.S: Likewise.
16525
16526 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16527
16528         * sysdeps/unix/fork.S: Remove file.
16529         * sysdeps/unix/i386/fork.S: Likewise.
16530         * sysdeps/unix/sparc/fork.S: Likewise.
16531
16532         * sysdeps/unix/system.c: Remove file.
16533         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
16534
16535         * sysdeps/unix/getegid.S: Remove file.
16536         * sysdeps/unix/geteuid.S: Likewise.
16537
16538 2012-04-24  Roland McGrath  <roland@hack.frob.com>
16539
16540         * scripts/check-localplt.awk: New file.
16541         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
16542         of diff.
16543         * scripts/data/localplt-generic.data: Add a comment.
16544
16545         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
16546         NODE when __dir_mkfile failed.
16547         * sysdeps/mach/hurd/symlinkat.c: Likewise.
16548         Reported by Ludovic Courtès <ludo@gnu.org>.
16549
16550 2012-04-24  Andreas Jaeger  <aj@suse.de>
16551
16552         * Makerules (common-clean): Also remove gen-as-const-headers
16553         files.
16554
16555 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16556
16557         * Makerules (native-compile): Do not change working directory for
16558         build.  Use $(OUTPUT_OPTION) in command.
16559         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
16560
16561 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16562
16563         [BZ #13886]
16564         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
16565         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
16566         * math/libm-test.inc (floor_test): Add more tests.
16567         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
16568
16569 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16570
16571         * sysdeps/unix/getdents.c: Remove file.
16572         * sysdeps/unix/sysv/getdents.c: Likewise.
16573         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
16574
16575         * sysdeps/unix/syscalls.list (madvise): Add syscall from
16576         sysdeps/unix/mman/syscalls.list.
16577         (mmap): Likewise.
16578         (mprotect): Likewise.
16579         (msync): Likewise.
16580         (munmap): Likewise.
16581         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
16582         * sysdeps/unix/mman/syscalls.list: Remove.
16583         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
16584
16585         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
16586         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
16587         * configure: Regenerated.
16588         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
16589         $(libgcc_s_suffix).
16590         * config.make.in (libgcc_s_suffix): Remove variable.
16591
16592 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
16593
16594         * sysdeps/unix/sysv/gethostname.c: Move to ...
16595         * sysdeps/posix/gethostname.c: ... here.
16596
16597         * sysdeps/unix/execve.S: Remove file.
16598
16599         * sysdeps/unix/_exit.S: Remove file.
16600
16601 2012-04-23  Andreas Jaeger  <aj@suse.de>
16602
16603         [BZ #13739]
16604         * manual/Makefile: Remove make dist support, there's no
16605         need for a stand-alone documentation tar ball.
16606         (TEXI2DVI): Define always, it's not in Makeconfig.
16607         (dist): Removed.
16608         (tar-it): Removed.
16609         (edition): Removed.
16610         (glibc-doc-$(edition).tar): Removed
16611         (%.Z): Removed.
16612         (%.gz): Removed.
16613         (%.uu): Removed.
16614         (ETAGS): Remove, it's in Makeconfig.
16615         (move-if-change): Remove, it's in Makeconfig.
16616
16617 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
16618
16619         [BZ #13970]
16620         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
16621         (strtod, strtof, strtold, strtol, strtoul, strtoq)
16622         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
16623         (strtod_l, strtof_l, strtold_l): Remove __wur.
16624         It is not necessarily an error to ignore strtol's return value.
16625         One can reliably look at the stored endptr to decide whether
16626         the number had valid syntax.
16627
16628 2012-04-21  Andreas Jaeger  <aj@suse.de>
16629
16630         [BZ #13739]
16631         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
16632
16633 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
16634
16635         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
16636         * sysdeps/unix/sysv/Versions: Remove file.
16637
16638 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16639
16640         [BZ #13927]
16641         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16642
16643 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
16644
16645         [BZ #7064]
16646         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
16647         version from __vm86.
16648
16649 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
16650
16651         * sysdeps/unix/common/lxstat.c: Remove file.
16652         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
16653
16654         * sysdeps/unix/sysv/Makefile: Remove file.
16655
16656         * sysdeps/unix/sysv/direct.h: Remove file.
16657
16658         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
16659         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
16660         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
16661         * sysdeps/unix/sysv/bits/signum.h: Likewise.
16662         * sysdeps/unix/sysv/bits/stat.h: Likewise.
16663         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
16664         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
16665
16666         * sysdeps/unix/sysv/setrlimit.c: Remove file.
16667
16668         * sysdeps/unix/xmknod.c: Remove file.
16669         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
16670
16671         * sysdeps/unix/sysv/settimeofday.c: Remove file.
16672
16673         * sysdeps/unix/sysv/i386/time.S: Remove file.
16674
16675         * sysdeps/unix/fxstat.c: Remove file.
16676         * sysdeps/unix/xstat.c: Likewise.
16677         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
16678
16679         * sysdeps/unix/sysv/sigaction.c: Remove file.
16680
16681         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
16682         (sysdep_headers): Remove variable.
16683         [termio.h not in sysdep_headers] (generated): Likewise.
16684         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
16685         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
16686         * sysdeps/unix/sysv/tcdrain.c: Likewise.
16687         * sysdeps/unix/sysv/tcflow.c: Likewise.
16688         * sysdeps/unix/sysv/tcflush.c: Likewise.
16689         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
16690         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
16691         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
16692         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
16693         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
16694
16695         * sysdeps/unix/siglist.c: Remove file.
16696
16697         * sysdeps/unix/getppid.S: Remove file.
16698
16699         * sysdeps/unix/mkdir.c: Remove file.
16700         * sysdeps/unix/rmdir.c: Likewise.
16701
16702 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
16703
16704         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
16705         ERR_MAX value.
16706         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
16707         errlist-compat value.
16708
16709 2012-04-18  David S. Miller  <davem@davemloft.net>
16710
16711         * sysdeps/generic/memcopy.h (reg_char): Delete.
16712         * debug/strcat_chk.c: Use char, not reg_char.
16713         * debug/strcpy_chk.c: Likewise.
16714         * debug/strncat_chk.c: Likewise.
16715         * debug/strncpy_chk.c: Likewise.
16716         * string/memchr.c: Likewise.
16717         * string/memrchr.c: Likewise.
16718         * string/rawmemchr.c: Likewise.
16719         * string/strcat.c: Likewise.
16720         * string/strchr.c: Likewise.
16721         * string/strchrnul.c: Likewise.
16722         * string/strcmp.c: Likewise.
16723         * string/strcpy.c: Likewise.
16724         * string/strncat.c: Likewise.
16725         * string/strncmp.c: Likewise.
16726         * string/strncpy.c: Likewise.
16727
16728 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16729
16730         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
16731         __builtin_memcopy is called when src and dest ranges are known to not
16732         overlap.
16733
16734 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16735
16736         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
16737         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
16738         fwd_align_merge macro call.
16739         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
16740         bwd_align_merge macro call.
16741         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16742
16743 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16744
16745         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
16746         bwd_align_merge macros.
16747         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
16748         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
16749         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16750
16751 2012-04-18  David S. Miller  <davem@davemloft.net>
16752
16753         * sysdeps/sparc/sparc64/memcopy.h: Delete.
16754
16755 2012-04-18  Andreas Jaeger  <aj@suse.de>
16756
16757         [BZ# 6794]
16758         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
16759         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
16760         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16761
16762         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
16763         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
16764         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16765
16766         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
16767         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
16768         Adjust for changed ldbl-128 files.
16769
16770         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
16771         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
16772         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16773
16774 2012-04-17  David S. Miller  <davem@davemloft.net>
16775
16776         * sysdeps/sparc/sparc32/memcopy.h: Delete.
16777
16778 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
16779
16780         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
16781         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
16782         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
16783         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
16784         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
16785         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
16786
16787 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16788
16789         [BZ #6794]
16790         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
16791         * math/libm-test.inc: Add ilogb errno and exception tests.
16792         * math/w_ilogb.c: New file: ilogb wrapper.
16793         * math/w_ilogbf.c: New file: ilogbf wrapper.
16794         * math/w_ilogbl.c: New file: ilogbl wrapper.
16795         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
16796         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
16797         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
16798         exception being thrown with 0.0 as argument.
16799         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
16800         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
16801         exception being thrown with 0.0 as argument.
16802         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
16803         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16804         exception being thrown with 0.0 as argument.
16805         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
16806         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16807         exception being thrown with 0.0 as argument.
16808         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
16809         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
16810         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
16811         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
16812         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
16813         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
16814         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
16815         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
16816         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
16817
16818 2012-04-17  Petr Baudis  <pasky@ucw.cz>
16819
16820         * include/sys/uio.h: Change __vector to __iovec to avoid clash
16821         with altivec.
16822
16823 2012-04-16  Marek Polacek  <polacek@redhat.com>
16824
16825         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
16826
16827 2012-04-16  Marek Polacek  <polacek@redhat.com>
16828
16829         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
16830         operands of fdivp instruction.
16831
16832 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16833
16834         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
16835         * elf/tst-auditmod3b.c: Likewise.
16836         * elf/tst-auditmod4b.c: Likewise.
16837         * elf/tst-auditmod5b.c: Likewise.
16838         * elf/tst-auditmod6b.c: Likewise.
16839         * elf/tst-auditmod6c.c: Likewise.
16840         * elf/tst-auditmod7b.c: Likewise.
16841         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
16842         * sysdeps/x86_64/preconfigure.in: Likewise.
16843         * sysdeps/x86_64/preconfigure: Regenerated.
16844
16845 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16846
16847         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
16848         __ILP32__.
16849
16850 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
16851
16852         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16853         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
16854
16855 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
16856
16857         [BZ #13973]
16858         * locale/iso-639.def: Fix gl language name. Spotted by
16859         Yaron Shahrabani.
16860
16861 2012-04-12  Roland McGrath  <roland@hack.frob.com>
16862
16863         [BZ #2074]
16864         * libio/libio.h (__io_write_fn): Update comment.
16865
16866 2012-04-12  Petr Baudis  <pasky@ucw.cz>
16867
16868         [BZ #2074]
16869         * stdio.texi (Hook Functions): The user provided writer function
16870         is not allowed to return -1.
16871
16872 2012-04-11  David S. Miller  <davem@davemloft.net>
16873
16874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16875
16876 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
16877
16878         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
16879         Add a leading slash to rtkaio.
16880
16881 2012-04-11  Jim Meyering  <meyering@redhat.com>
16882
16883         [BZ #11959]
16884         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
16885         It is not necessarily an error to ignore fwrite's return
16886         value.  One can reliably use ferror to test for errors after
16887         the fact.
16888
16889 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16890
16891         * bits/types.h (__snseconds_t): New type.
16892         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
16893
16894         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
16895         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16896         (__SNSECONDS_T_TYPE): Likewise.
16897         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16898         (__SNSECONDS_T_TYPE): Likewise.
16899         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16900         (__SNSECONDS_T_TYPE): Likewise.
16901
16902 2012-04-10  Andreas Jaeger  <aj@suse.de>
16903
16904         [BZ #2636]
16905         * manual/time.texi (Processor Time): Return type of times is
16906         elapsed real time since an arbitrary point in the past.
16907         (CPU Time): Move CLK_TCK from here...
16908         (Processor Time): ...to here.  Correct description.
16909         * manual/conf.texi (Constants for Sysconf): Correct description of
16910         _SC_CLK_TCK.
16911
16912 2012-04-10  David S. Miller  <davem@davemloft.net>
16913
16914         [BZ #13967]
16915         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
16916         where the is a gap between DT_REL(A) and DT_JMPREL.
16917
16918 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16919
16920         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
16921         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16922         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16923
16924 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16925
16926         * elf/dl-support.c (_dl_inhibit_cache): New variable.
16927         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
16928         (dl_main): Handle --inhibit-cache.
16929         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
16930         _dl_inhibit_cache.
16931         * elf/dl-load.c (_dl_map_object): Use it.
16932         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
16933
16934 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16935
16936         [BZ #13872]
16937         * sysdeps/i386/fpu/e_powl.S (p78): New object.
16938         (__ieee754_powl): Saturate large exponents rather than testing for
16939         overflow of y*log2(x).
16940         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16941         * math/libm-test.inc (pow_test): Do not permit spurious overflow
16942         exceptions.
16943
16944         [BZ #11521]
16945         * math/s_ctan.c: Include <float.h>.
16946         (__ctan): Avoid internal overflow or cancellation in calculating
16947         denominator.
16948         * math/s_ctanf.c: Likewise.
16949         * math/s_ctanl.c: Likewise.
16950         * math/s_ctanh.c: Likewise.
16951         * math/s_ctanhf.c: Likewise.
16952         * math/s_ctanhl.c: Likewise.
16953         * math/libm-test.inc (ctan_test): Add more tests.
16954         (ctanh_test): Likewise.
16955         * sysdeps/i386/fpu/libm-test-ulps: Update.
16956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16957
16958 2012-04-09  Andreas Jaeger  <aj@suse.de>
16959
16960         [BZ #6894]
16961         * manual/filesys.texi (Directory Entries): Mention that d_namlen
16962         is an optional BSD extension.
16963
16964         [BZ #10254]
16965         * manual/stdio.texi (Opening Streams): Document additional fopen
16966         parameters.
16967
16968 2012-04-09  Roland McGrath  <roland@hack.frob.com>
16969
16970         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
16971         %eax without telling the compiler.
16972
16973 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
16974
16975         [BZ # 13963]
16976         * manual/install.texi: Use sourceware.org.
16977
16978 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16979
16980         [BZ #13873]
16981         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
16982         (__ieee754_pow): Generate overflow and underflow using huge*huge
16983         and tiny*tiny rather than just returning constant infinity or zero
16984         for large exponents.
16985         * math/libm-test.inc (pow_test): Require overflow exceptions for
16986         applicable cases of large exponents.
16987
16988         [BZ #706]
16989         * sysdeps/i386/fpu/e_pow.S (p10): New object.
16990         (__ieee754_pow): Use iterative multiplication algorithm only for
16991         integer exponents with absolute value below 1024.  Check for odd
16992         integer exponents when using algorithm for real exponents.
16993         * math/libm-test.inc (pow_test): Add more tests.
16994         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16995
16996 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
16997
16998         [BZ #13705]
16999         * math/libm-test.inc (exp_test): Do not allow overflow exception
17000         on underflow test.
17001
17002 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17003
17004         [BZ #13705]
17005         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17006         instead of __kernel_standard_f.
17007
17008 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17009
17010         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17011         * sysdeps/x86_64/memset_chk.S: Likewise.
17012
17013 2012-04-08  Andreas Jaeger  <aj@suse.de>
17014
17015         [BZ #10153]
17016         * manual/startup.texi (Environment Access): Describe return value
17017         for putenv and setenv.
17018
17019         [BZ #6895]
17020         * manual/filesys.texi (Directory Entries): Add description for
17021         DT_LNK.
17022
17023         [BZ #6890]
17024         * manual/filesys.texi (Directory Entries): Clarify that it's file
17025         system not operating system in the description of DT_UNKNOWN.
17026
17027         [BZ #6578]
17028         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17029
17030 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17031
17032         [BZ #6649]
17033         * manual/llio.texi (Opening and Closing Files): Add cross
17034         reference to explain mode argument.
17035
17036 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17037
17038         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17039         * sysdeps/x86_64/memset_chk.S: Likewise.
17040
17041 2012-04-07  David S. Miller  <davem@davemloft.net>
17042
17043         * elf/elf.h (R_SPARC_WDISP10): Define.
17044         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17045         R_SPARC_SIZE32.
17046         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17047         R_SPARC_SIZE64 and R_SPARC_H34.
17048
17049 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17050
17051         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17052         conditions and remove no longer applicable assertion.
17053
17054 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17055
17056         * bits/byteswap.h: Include <features.h>.
17057         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17058         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17059
17060 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17061
17062         * bits/byteswap.h (__bswap_16): Removed.
17063         Include <bits/byteswap-16.h> to get __bswap_16.
17064         * sysdeps/i386/bits/byteswap.h: Likewise.
17065         * sysdeps/s390/bits/byteswap.h: Likewise.
17066         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17067         * bits/byteswap-16.h: New file.
17068         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17069         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17070         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17071         * string/Makefile (headers): Add bits/byteswap-16.h.
17072
17073 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17074
17075         [BZ #13895]
17076         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17077         extra indirection.
17078         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17079         * nss/tst-nss-static.c: New.
17080
17081 2012-04-06  Robert Millan  <rmh@gnu.org>
17082
17083         [BZ #6486]
17084         * manual/llio.texi (File Position Primitive): lseek
17085         refers to WHENCE when it really means OFFSET.
17086
17087 2012-04-06  Andreas Jaeger  <aj@suse.de>
17088
17089         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17090         strncmp declarations.
17091
17092         * abilist/libc.abilist: Add __poll and __ppoll.
17093
17094 2012-04-05  David S. Miller  <davem@davemloft.net>
17095
17096         * scripts/check-local-headers.sh: Accept a host triplet in the
17097         path matched by the exclude regexp.
17098
17099         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17100         definition.
17101         * sysdeps/powerpc/powerpc32/dl-machine.h
17102         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17103         * sysdeps/s390/s390-32/dl-machine.h
17104         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17105         * sysdeps/sparc/sparc32/dl-machine.h
17106         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17107         * sysdeps/sparc/sparc64/dl-machine.h
17108         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17109
17110         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17111         lazy binding.
17112         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17113         undefined symbol errors.
17114
17115         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17116         DT_NEEDED entries.
17117
17118 2012-04-05  Michael Matz  <matz@suse.de>
17119
17120         [BZ #13592]
17121         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17122
17123 2012-04-05  Andreas Jaeger  <aj@suse.de>
17124
17125         [BZ #13908]
17126         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17127         comment.
17128
17129 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17130
17131         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17132         which ROUND is no valid rounding mode.
17133
17134 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17135
17136         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17137         read again.
17138         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17139
17140 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17141
17142         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17143         an exception using FPU order intentionally.
17144
17145 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17146
17147         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17148         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17149         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17150         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17151
17152 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17153
17154         [BZ #12340]
17155         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17156         EINVAL when BUFLEN is too smal.
17157
17158 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17159
17160         [BZ #13553]
17161         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17162         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17163
17164 2012-04-03  Andreas Jaeger  <aj@suse.de>
17165
17166         [BZ #13938]
17167         * manual/setjmp.texi (System V contexts): Fix sentence.
17168
17169         [BZ #13926]
17170         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17171         New macro for this case.
17172         [!__GNUC__] (__bswap_64): New inline function for this case.
17173         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17174         * bits/byteswap.h: Likewise.
17175         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17176         ull, guard with __GLIBC_HAVE_LONG_LONG.
17177
17178         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17179         __GLIBC_HAVE_LONG_LONG.
17180
17181         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17182         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17183
17184 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17185
17186         [BZ #13691]
17187         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17188         inptr and inend, rather than using last_ch.
17189
17190 2012-04-02  David S. Miller  <davem@davemloft.net>
17191
17192         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17193         * stdio-common/printf-parse.h (read_int): Change return type to
17194         'int', return -1 on INT_MAX overflow.
17195         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17196         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17197         overflows INT_MAX.  Check for overflow of in-format-string precision
17198         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17199         SIZE_MAX not INT_MAX for integer overflow test.
17200         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17201         skip the construct in the format string but do not record anything.
17202         * stdio-common/bug22.c: Adjust to test both width/prevision
17203         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17204         explicitly for proper errno values.
17205
17206 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17207
17208         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17209         CHAR_MAX.
17210         * string/test-strcmp.c [! WIDE]: Likewise.
17211         * time/tst-mktime2.c: Likewise for INT_MAX.
17212         * string/test-string.h: #include <sys/param.h> for MIN.
17213
17214         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17215         * sysdeps/i386/init-first.c (init): Likewise.
17216         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17217         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17218         * sysdeps/sh/init-first.c (init): Likewise.
17219
17220 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17221
17222         * po/ru.po: Update from translation team.
17223         * po/vi.po: Likewise.
17224
17225 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17226
17227         * resolv/nss_dns/dns-host.c: Merge copyright years.
17228
17229 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17230
17231         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17232         Optimize memcpy with prefetch if
17233         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17234         src, dst pointers have unequal 16 byte alignments.
17235
17236 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17237
17238         [BZ #13928]
17239         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17240         from a CNAME entry and return the minimum ttl for the query.
17241         (gaih_getanswer_slice): Likewise.
17242
17243 2012-03-30  Jeff Law  <law@redhat.com>
17244
17245         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17246         due to long keys.
17247         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17248         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17249
17250         * resolv/nss_dns/dns-host.c: Update copyright year.
17251
17252 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17253
17254         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17255         requests to save a system call.  Fix check that all bytes are sent.
17256
17257         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17258         comments for sendmmsg.
17259
17260 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17261
17262         [BZ #13691]
17263         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17264         with only 1 character between 0x0041 and 0x01b0.
17265         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17266         * wcsmbs/tst-mbsnrtowcs.c: New file.
17267
17268 2012-03-29  David S. Miller  <davem@davemloft.net>
17269
17270         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17271         small copies by hand.
17272
17273 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17274
17275         [BZ #13761]
17276         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17277         _nss_compat_initgroups_dyn): Fall back to malloc/free
17278         for large group memberships.
17279
17280 2012-03-28  David S. Miller  <davem@davemloft.net>
17281
17282         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17283         that branches into memcpy.
17284         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17285         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17286         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17287         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17288         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17289         bits.
17290         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17291         implementation too.
17292         * sysdeps/sparc/mempcpy.S: New file.
17293
17294         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17295         the IFUNC routine in the libc case.
17296         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17297
17298         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17299         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17300         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17301         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17302         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17303         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17304         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17305         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17306
17307         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17308         loop to 256 bytes instead of 64 bytes and fix test signedness.
17309
17310         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17311         * sysdeps/sparc/sparc32/Makefile: rather than here...
17312         * sysdeps/sparc/sparc64/Makefile: and here.
17313
17314 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17315
17316         * malloc/mallocbug.c: Avoid warnings about unused variables.
17317
17318 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17319
17320         [BZ #13760]
17321         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17322         in the right place. Discard and retry query if response is
17323         larger than input buffer size.
17324
17325 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17326
17327         [BZ #369]
17328         [BZ #2678]
17329         [BZ #3866]
17330         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17331         x for large integer exponent.
17332         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17333         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
17334         sign of result as needed afterwards.
17335         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
17336         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
17337         result for underflowing pow the same as for overflow.
17338         (__kernel_standard_l): Handle powl overflow and underflow here
17339         rather than calling __kernel_standard.
17340         * math/libm-test.inc (pow_test): Add more tests.
17341
17342         [BZ #3868]
17343         [BZ #13879]
17344         [BZ #13910]
17345         [BZ #13911]
17346         [BZ #13912]
17347         [BZ #13913]
17348         [BZ #13915]
17349         [BZ #13916]
17350         [BZ #13917]
17351         [BZ #13918]
17352         [BZ #13919]
17353         [BZ #13920]
17354         [BZ #13921]
17355         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
17356         * sysdeps/ieee754/k_standard.c: Include <float.h>.
17357         (__kernel_standard_l): New function.
17358         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
17359         __kernel_standard.
17360         * math/w_acosl.c (__acosl): Likewise.
17361         * math/w_asinl.c (__asinl): Likewise.
17362         * math/w_atan2l.c (__atan2l): Likewise.
17363         * math/w_atanhl.c (__atanhl): Likewise.
17364         * math/w_coshl.c (__coshl): Likewise.
17365         * math/w_exp10l.c (__exp10l): Likewise.
17366         * math/w_exp2l.c (__exp2l): Likewise.
17367         * math/w_fmodl.c (__fmodl): Likewise.
17368         * math/w_hypotl.c (__hypotl): Likewise.
17369         * math/w_j0l.c (__j0l, __y0l): Likewise.
17370         * math/w_j1l.c (__j1l, __y1l): Likewise.
17371         * math/w_jnl.c (__jnl, __ynl): Likewise.
17372         * math/w_lgammal.c (__lgammal): Likewise.
17373         * math/w_log10l.c (__log10l): Likewise.
17374         * math/w_log2l.c (__log2l): Likewise.
17375         * math/w_logl.c (__logl): Likewise.
17376         * math/w_powl.c (__powl): Likewise.
17377         * math/w_remainderl.c (__remainderl): Likewise.
17378         * math/w_scalbl.c (sysv_scalbl): Likewise.
17379         * math/w_sinhl.c (__sinhl): Likewise.
17380         * math/w_sqrtl.c (__sqrtl): Likewise.
17381         * math/w_tgammal.c (__tgammal): Likewise.
17382         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
17383         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
17384         * math/libm-test.inc (acos_test): Add more tests.
17385         (acosh_test): Likewise.
17386         (asin_test): Likewise.
17387         (atanh_test): Likewise.
17388         (exp_test): Likewise.
17389         (exp10_test): Likewise.
17390         (exp2_test): Likewise.
17391         (expm1_test): Likewise.
17392         (lgamma_test): Likewise.
17393         (log_test): Likewise.
17394         (log10_test): Likewise.
17395         (log1p_test): Likewise.
17396         (log2_test): Likewise.
17397         (pow_test): Do not allow some spurious overflow exceptions.
17398         (sqrt_test): Add more tests.
17399         (tgamma_test): Likewise.
17400         (y0_test): Likewise.
17401         (y1_test): Likewise.
17402         (yn_test): Likewise.
17403
17404 2012-03-27  Anton Blanchard  <anton@samba.org>
17405
17406         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
17407         MAP_HUGETLB.
17408         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17409         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17410         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17411
17412 2012-03-27  David S. Miller  <davem@davemloft.net>
17413
17414         * conform/Makefile: Run run-conformtest.sh using $(BASH).
17415
17416         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
17417         have-as-vis3 check.
17418
17419 2012-03-27  Andreas Jaeger  <aj@suse.de>
17420
17421         * sysdeps/x86_64/elf/configure.in: Moved to ...
17422         * sysdeps/x86_64/configure.in: ... here.
17423         * sysdeps/x86_64/elf/start.S: Moved to ...
17424         * sysdeps/x86_64/start.S: ... here.
17425         * sysdeps/x86_64/elf/configure: Delete.
17426
17427         * sysdeps/x86_64/configure.in: Merge contents from
17428         sysdeps/i386/configure.in (without i686 check).
17429
17430         * sysdeps/i386/elf/Versions: Merge into ...
17431         * sysdeps/i386/Versions: ... this.
17432         * sysdeps/i386/elf/Versions: Delete file.
17433         * sysdeps/i386/elf/start.S: Moved to ...
17434         * sysdeps/i386/start.S: ...here.
17435         * sysdeps/i386/elf/configure.in: Merge into...
17436         * sysdeps/i386/configure.in: ...here.
17437         * sysdeps/i386/elf/configure.in: Delete file.
17438         * sysdeps/i386/elf/configure: Delete file.
17439
17440         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
17441         * debug/backtracesyms.c: ... here.
17442         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
17443         * debug/backtracesymsfd.c: ... here.
17444         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
17445         * sysdeps/generic/ifunc-sel.h: ... here.
17446
17447         * sysdeps/unix/i386/start.c: Delete file.
17448         * sysdeps/unix/sparc/start.c: Delete file.
17449         * sysdeps/unix/start.c: Delete file.
17450
17451         * sysdeps/sh/elf/configure.in: Moved to ...
17452         * sysdeps/sh/configure.in: ... here.
17453         * sysdeps/sh/elf/start.S: Moved to ...
17454         * sysdeps/sh/start.S: ... here.
17455         * sysdeps/sh/elf/configure: Delete file.
17456
17457         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
17458         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
17459         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
17460         * sysdeps/powerpc/powerpc64/entry.h: ... here.
17461         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
17462         * sysdeps/powerpc/powerpc64/start.S: here.
17463         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
17464         * sysdeps/powerpc/powerpc64/Makefile: ... this.
17465         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
17466         * sysdeps/powerpc/powerpc64/configure.in: ... this.
17467         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
17468
17469         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
17470         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
17471         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
17472         * sysdeps/powerpc/powerpc32/start.S: ... here.
17473         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
17474         * sysdeps/powerpc/powerpc32/configure.in: ... this.
17475         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
17476
17477         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
17478         * sysdeps/powerpc/ifunc-sel.h: ... here.
17479         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
17480         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
17481
17482         * sysdeps/sparc/elf/configure.in: Moved to ...
17483         * sysdeps/sparc/configure.in: ... here.
17484         * sysdeps/sparc/elf/configure: Delete file.
17485         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
17486         * sysdeps/sparc/sparc32/start.S: ... here.
17487         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
17488         * sysdeps/sparc/sparc64/start.S: ... here.
17489         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
17490         * sysdeps/sparc/sparc32/Makefile: ... this.
17491         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
17492         * sysdeps/sparc/sparc64/Makefile: ... this.
17493
17494         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
17495         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
17496         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
17497         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
17498         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
17499         * sysdeps/s390/s390-32/setjmp.S: ... here.
17500         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
17501         * sysdeps/s390/s390-32/configure.in: ... here.
17502         * sysdeps/s390/s390-32/elf/configure: Delete file.
17503         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
17504         * sysdeps/s390/s390-32/start.S: ... here.
17505
17506         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
17507         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
17508         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
17509         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
17510         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
17511         * sysdeps/s390/s390-64/setjmp.S: ... here.
17512         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
17513         * sysdeps/s390/s390-64/configure.in: ... here
17514         * sysdeps/s390/s390-64/elf/configure: Delete file.
17515         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
17516         * sysdeps/s390/s390-64/start.S: ... here.
17517         * sysdeps/s390/s390-64/elf/configure: Delete.
17518
17519         * configure.in: Remove support for elf directories in sysdeps.
17520
17521         * configure: Regenerated.
17522         * sysdeps/i386/configure: Regenerated.
17523         * sysdeps/powerpc/powerpc32/configure: Regenerated.
17524         * sysdeps/powerpc/powerpc64/configure: Regenerated.
17525         * sysdeps/s390/s390-32/configure: Regenerated.
17526         * sysdeps/s390/s390-64/configure: Regenerated.
17527         * sysdeps/sh/configure: Regenerated.
17528         * sysdeps/sparc/configure: Regenerated.
17529         * sysdeps/x86_64/configure: Regenerated.
17530
17531 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
17532
17533         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17534
17535         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
17536         denormal result into account.
17537
17538 2012-03-25  Roland McGrath  <roland@hack.frob.com>
17539
17540         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
17541         Reported by Allan McRae <allan@archlinux.org>.
17542
17543 2012-03-23  Jeff Law  <law@redhat.com>
17544
17545         * nss/getnssent.c (__nss_getent): Fix typo.
17546
17547 2012-03-23  David S. Miller  <davem@davemloft.net>
17548
17549         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17550
17551 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
17552
17553         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
17554         to pad to uint64_t for each field.
17555         (dl_tls_index): Replace unsigned long with uint64_t.
17556
17557 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
17558         Paul Pluzhnikov  <ppluzhnikov@google.com>
17559
17560         [BZ #6528]
17561         * grp/Makefile (otherlibs): Don't set it.
17562         * inet/Makefile (otherlibs): Likewise.
17563         * login/Makefile (otherlibs): Likewise.
17564         * nscd/Makefile (otherlibs): Likewise.
17565         * posix/Makefile (otherlibs): Likewise.
17566         * pwd/Makefile (otherlibs): Likewise.
17567         * rt/Makefile (otherlibs): Likewise.
17568         * sunrpc/Makefile (otherlibs): Likewise.
17569         * nss/Makefile (otherlibs): Likewise.
17570         Add libnss_files to routines and static-only-routines.
17571         ($(objpfx)getent): Remove rule.
17572         * resolv/Makefile: Add libnss_dns and libresolv to routines and
17573         static-only-routines.
17574
17575 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17576
17577         [BZ #13892]
17578         * math/s_cexp.c: Include <float.h>.
17579         (__cexp): Handle exp result overflowing not necessarily
17580         overflowing both real and imaginary parts of result.
17581         * math/s_cexpf.c: Likewise.
17582         * math/s_cexpl.c: Likewise.
17583         * math/libm-test.inc (cexp_test): Add more tests.
17584         * sysdeps/i386/fpu/libm-test-ulps: Update.
17585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17586
17587 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17588
17589         * include/link.h (ELFW): New macro.
17590         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
17591         Replace ELF64_R_TYPE with ELFW(R_TYPE).
17592
17593 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17594
17595         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
17596         with uint64_t.
17597
17598 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17599
17600         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
17601         declaration.
17602         (struct La_x32_retval): Likewise.
17603
17604 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17605
17606         * sysdeps/x86_64/preconfigure.in: New file.
17607         * sysdeps/x86_64/preconfigure: New generated file.
17608
17609 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17610
17611         [BZ #13824]
17612         * math/e_exp2l.c: Include <float.h>.
17613         (__ieee754_exp2l): Handle overflow and underflow cases
17614         separately.  Only pass fractional part of argument to
17615         __ieee754_expl.
17616         * math/libm-test.inc (exp2_test): Add more tests.
17617
17618         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
17619         negating x to take absolute value.
17620         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17621         Likewise.
17622         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
17623         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17624         Likewise.
17625         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
17626         computing low part if x was negated.
17627         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17628
17629 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17630
17631         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
17632         la_x32_gnu_pltexit.
17633         (pltexit): Cast int_retval to ptrdiff_t.
17634         * elf/tst-auditmod3b.c: Likewise.
17635         * elf/tst-auditmod4b.c: Likewise.
17636         * elf/tst-auditmod5b.c: Likewise.
17637         * elf/tst-auditmod6b.c: Likewise.
17638         * elf/tst-auditmod6c.c: Likewise.
17639         * elf/tst-auditmod7b.c: Likewise.
17640
17641         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
17642         and x32_gnu_pltexit.
17643
17644         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
17645         __ELF_NATIVE_CLASS.
17646         (La_x32_regs): New macro.
17647         (La_x32_retval): Likewise.
17648         (la_x32_gnu_pltenter): New function prototype.
17649         (la_x32_gnu_pltexit): Likewise.
17650
17651 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
17652
17653         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
17654         exponent.
17655
17656         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17657
17658         * configure.in (libc_cv_cc_nofma): Check for option to disable
17659         generation of FMA instructions.
17660         * configure: Regenerate.
17661         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
17662         * sysdeps/ieee754/dbl-64/Makefile: New file.
17663         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17664         Remove brandred-fma4.
17665         (CFLAGS-brandred-fma4.c): Remove.
17666         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
17667         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
17668         define.
17669         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
17670         define.
17671
17672 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17673
17674         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
17675         LLONG_MAX != LONG_MAX.
17676         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17677         (_fitoa_word): Likewise.
17678         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
17679         LLONG_MAX != LONG_MAX.
17680         * stdio-common/_itowa.h: Include <_itoa.h>.
17681         (_itowa_word): Use _ITOA_WORD_TYPE on value.
17682         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
17683         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
17684         only if not defined.
17685         (_ITOA_WORD_TYPE): Likewise.
17686         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17687         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
17688
17689 2012-03-21  David S. Miller  <davem@davemloft.net>
17690
17691         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17692
17693 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17694
17695         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
17696         of x86_64 when setting libc_cv_slibdir, libdir and
17697         libc_cv_localedir.
17698         * sysdeps/unix/sysv/linux/configure: Regenerated.
17699
17700 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17701
17702         * manual/lang.texi (Old Varargs): Remove section.
17703         (How Variadic): Update menu.
17704         (va_start): Do not mention varargs.h.
17705
17706 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17707             Joseph Myers  <joseph@codesourcery.com>
17708
17709         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
17710         link test.
17711         * configure: Regenerated.
17712
17713 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17714
17715         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
17716         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
17717         conformtest.pl
17718
17719 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17720
17721         * NOTES: Remove.
17722         * Makefile (files-for-dist): Remove NOTES.
17723         (NOTES): Remove rule.
17724         * README: Don't refer to NOTES.
17725         * manual/creature.texi: Don't include macros.texi.
17726         * manual/intro.texi (creature.texi): Remove comment referring to
17727         NOTES.
17728
17729         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
17730         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
17731         * configure: Regenerated.
17732         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
17733         LIBC_TRY_CC_OPTION.
17734         (libc_cv_as_i686): Likewise.
17735         (libc_cv_cc_avx): Likewise.
17736         (libc_cv_cc_sse2avx): Likewise.
17737         (libc_cv_cc_fma4): Likewise.
17738         (libc_cv_cc_novzeroupper): Likewise.
17739         * sysdeps/i386/configure: Regenerated.
17740
17741         [BZ #13883]
17742         * sysdeps/i386/fpu/s_cexp.S: Remove.
17743         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
17744         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
17745         * math/libm-test.inc (cexp_test): Add more tests.
17746         * sysdeps/i386/fpu/libm-test-ulps: Update.
17747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17748
17749 2012-03-21  Allan McRae  <allan@archlinux.org>
17750
17751         * timezone/Makefile: Do not install iso3166.tab and zone.tab
17752
17753 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17754
17755         [BZ #13871]
17756         * math/w_exp2.c: Do not include <float.h>.
17757         (o_threshold, u_threshold): Remove.
17758         (__exp2): Calculate result before checking finiteness and calling
17759         __kernel_standard.
17760         * math/w_exp2f.c: Likewise.
17761         * math/w_exp2l.c: Likewise.
17762         * math/libm-test.inc (exp2_test): Require overflow exception for
17763         1e6 input.
17764
17765         [BZ #3866]
17766         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
17767         range of signed 64-bit integers before using fistpll.  Remove
17768         checks for whether integers fit in mantissa bits.
17769         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
17770         the range of signed 32-bit integers before using fistpl.  Remove
17771         checks for whether integers fit in mantissa bits.
17772         * sysdeps/i386/fpu/e_powl.S (p64): New object.
17773         (__ieee754_powl): Test for y outside the range of signed 64-bit
17774         integers before using fistpll.  Reduce 64-bit values to 63-bit
17775         ones as needed.
17776         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
17777         divide-by-zero is raised for zero to large negative powers.
17778         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
17779         (__ieee754_powl): Test for y outside the range of signed 64-bit
17780         integers before using fistpll.  Reduce 64-bit values to 63-bit
17781         ones as needed.
17782         * math/libm-test.inc (pow_test): Add more tests.
17783
17784 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17785
17786         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
17787         <stdio-common/_itoa.h>.
17788         * debug/segfault.c: Likewise.
17789         * elf/dl-cache.c: Likewise.
17790         * elf/dl-minimal.c: Likewise.
17791         * elf/dl-misc.c: Likewise.
17792         * elf/dl-sysdep.c: Likewise.
17793         * elf/dl-version.c: Likewise.
17794         * elf/rtld.c: Likewise.
17795         * hurd/hurdsock.c: Likewise.
17796         * hurd/lookup-retry.c: Likewise.
17797         * malloc/malloc.c: Likewise.
17798         * malloc/mtrace.c: Likewise.
17799         * nscd/nscd_getgr_r.c: Likewise.
17800         * nscd/nscd_getpw_r.c: Likewise.
17801         * nscd/nscd_getserv_r.c: Likewise.
17802         * posix/getopt_init.c: Likewise.
17803         * posix/wordexp.c: Likewise.
17804         * stdio-common/_itoa.c: Likewise.
17805         * stdio-common/printf_fphex.c: Likewise.
17806         * stdio-common/vfprintf.c: Likewise.
17807         * string/_strerror.c: Likewise.
17808         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
17809         * sysdeps/i386/i686/hp-timing.h: Likewise.
17810         * sysdeps/mach/_strerror.c: Likewise.
17811         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
17812         * sysdeps/mach/hurd/sethostid.c: Likewise.
17813         * sysdeps/mach/hurd/xmknodat.c: Likewise.
17814         * sysdeps/mach/xpg-strerror.c: Likewise.
17815         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
17816         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
17817         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
17818         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
17819         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
17820         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
17821         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
17822         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
17823         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
17824         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
17825         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
17826         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
17827         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
17828         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17829         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17830         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
17831         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
17832         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
17833         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
17834         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
17835         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
17836
17837         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
17838
17839         * stdio-common/_itoa.h: Moved to ...
17840         * sysdeps/generic/_itoa.h: Here.
17841
17842         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
17843
17844         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
17845         instead of "_itoa.h" and "_itowa.h".
17846         * stdio-common/vfprintf.: Likewise.
17847
17848 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17849
17850         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
17851         <bits/wordsize.h>.
17852         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
17853         (__signbit): Likwise.
17854         (llrintf): Likwise.
17855         (llrint): Likwise.
17856
17857 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17858
17859         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
17860         __WORDSIZE != 64.
17861
17862 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
17863
17864         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
17865         OVERFLOW_EXCEPTION_OK.
17866         * math/libm-test.inc ("Philosophy"): Update comment about
17867         exception testing.
17868         (OVERFLOW_EXCEPTION): Define.
17869         (OVERFLOW_EXCEPTION_OK): Likewise.
17870         (INVALID_EXCEPTION_OK): Renumber.
17871         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17872         (IGNORE_ZERO_INF_SIGN): Likewise.
17873         (test_exceptions): Handle FE_OVERFLOW.
17874         (exp10_test): Expect overflow exceptions.
17875         (exp2_test): Likewise.
17876         (expm1_test): Likewise.
17877         (nextafter_test): Likewise.
17878         (pow_test): Likewise.
17879         (scalbn_test): Likewise.
17880         (scalbln_test): Likewise.
17881
17882 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17883
17884         * sysdeps/x86_64/bits/atomic.h
17885         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
17886         64bit integer.
17887         (atomic_exchange_acq): Likewise.
17888         (__arch_exchange_and_add_body): Likewise.
17889         (__arch_add_body): Likewise.
17890         (atomic_add_negative): Likewise.
17891         (atomic_add_zero): Likewise.
17892
17893 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17894
17895         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
17896         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
17897
17898 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17899
17900         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
17901         Check __x86_64__ instead of __WORDSIZE.
17902
17903 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17904
17905         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
17906
17907 2012-03-19  David S. Miller  <davem@davemloft.net>
17908
17909         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17910
17911         * sysdeps/sparc/fpu/fenv_private.h: New file.
17912         * sysdeps/sparc/fpu/math_private.h: Use it.
17913         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
17914         Remove.
17915         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
17916         (libc_feholdexcept_setroundl): Remove.
17917         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
17918         Remove.
17919         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
17920         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
17921
17922 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17923
17924         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
17925         int64_t instead of long int.
17926         (INSERT_WORDS64): Likwise.
17927
17928 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17929
17930         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
17931         _Unwind_GetCFA return to _Unwind_Ptr first.
17932
17933 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
17934
17935         [BZ #13629]
17936         * math/s_clog.c: Include <float.h>.
17937         (__clog): Scale large or subnormal inputs.
17938         * math/s_clogf.c: Likewise.
17939         * math/s_clogl.c: Likewise.
17940         * math/s_clog10.c: Include <float.h>.
17941         (M_LOG10_2): Define.
17942         (__clog10): Scale large or subnormal inputs.
17943         * math/s_clog10f.c: Likewise.
17944         * math/s_clog10l.c: Likewise.
17945         * math/libm-test.inc (clog_test): Add more tests.
17946         (clog10_test): Likewise.
17947         * sysdeps/i386/fpu/libm-test-ulps: Update.
17948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17949
17950         [BZ #11451]
17951         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
17952         x and y.
17953         * math/libm-test.inc (atan2_test): Add another test.
17954
17955         * Makerules (common-objdir-compile): Remove.
17956         * sysdeps/unix/Makefile (config-generated): Do not add
17957         $(unix-generated) to variable.
17958         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
17959         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
17960         Remove rule.
17961         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
17962         Likewise.
17963         [generic bits/local_lim.h] (before-compile): Do not append to
17964         variable.
17965         [generic bits/local_lim.h] (common-generated): Likewise.
17966         [generic sys/param.h] (before-compile): Do not append to variable.
17967         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
17968         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
17969         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
17970         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
17971         include.
17972         [generic sys/param.h] (sys/param.h-includes): Remove variable.
17973         [generic sys/param.h] (sys/param.h-includes): Remove rule.
17974         [generic sys/param.h] ($(addprefix
17975         $(common-objpfx),$(sys/param.h-includes))): Likewise.
17976         [generic sys/param.h] (common-generated): Do not append to
17977         variable.
17978         [generic sys/param.h] (sysdep_headers): Likewise.
17979         [generic bits/errno.h] (before-compile): Do not append to
17980         variable.
17981         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
17982         rule.
17983         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
17984         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
17985         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
17986         [generic bits/errno.h] (common-generated): Do not append to
17987         variable.
17988         [generic bits/ioctls.h] (before-compile): Do not append to
17989         variable.
17990         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
17991         rule.
17992         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
17993         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
17994         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
17995         rule.
17996         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
17997         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
17998         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
17999         [generic bits/ioctls.h] (common-generated): Do not append to
18000         variable.
18001         [generic sys/syscall.h] (syscall.h): Remove variable.
18002         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18003         rule.
18004         [generic sys/syscall.h] (before-compile): Do not append to
18005         variable.
18006         [generic sys/syscall.h] (common-generated): Likewise.
18007         * sysdeps/unix/errnos-tmpl.c: Remove file.
18008         * sysdeps/unix/errnos.awk: Likewise.
18009         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18010         * sysdeps/unix/ioctls.awk: Likewise.
18011         * sysdeps/unix/mk-local_lim.c: Likewise.
18012         * sysdeps/unix/snarf-ioctls: Likewise.
18013
18014 2012-03-19  Richard Henderson  <rth@twiddle.net>
18015
18016         * sysdeps/i386/fpu/fenv_private.h: New file.
18017         * sysdeps/i386/fpu/math_private.h: Use it.
18018         (math_opt_barrier, math_force_eval): Remove.
18019         (libc_feholdexcept_setround_53bit): Remove.
18020         (libc_feupdateenv_53bit): Remove.
18021         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18022         (math_opt_barrier, math_force_eval): Remove.
18023         (libc_feholdexcept): Remove.
18024         (libc_feholdexcept_setround): Remove.
18025         (libc_fetestexcept, libc_fesetenv): Remove.
18026         (libc_feupdateenv_test): Remove.
18027         (libc_feupdateenv, libc_feholdsetround): Remove.
18028         (libc_feresetround): Remove.
18029
18030         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18031         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18032
18033         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18034         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18035         (libc_feupdateenv_testl): New.
18036         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18037         (libc_feupdateenv_testf): New.
18038         (libc_feupdateenv): Use libc_feupdateenv_test.
18039         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18040         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18041
18042         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18043         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18044         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18045         (libc_feresetround_noex): New.
18046         (libc_feresetround_noexf): New.
18047         (libc_feresetround_noexl): New.
18048         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18049         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18050         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18051         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18052         SET_RESTORE_ROUND.
18053         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18054         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18055         (__cos): Likewise.
18056         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18057         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18058         SET_RESTORE_ROUND_NOEX.
18059         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18060         SET_RESTORE_ROUND_NOEXF.
18061         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18062         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18063         (libc_feholdsetroundf): New.
18064         (libc_feresetround, libc_feresetroundf): New.
18065
18066         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18067         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18068         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18069
18070         * sysdeps/generic/math_private.h: Include <fenv.h>.
18071         (default_libc_feholdexcept): New.
18072         (default_libc_feholdexcept_setround): New.
18073         (default_libc_fesetenv, default_libc_feupdateenv): New.
18074         (libc_feholdexcept): Only define if undefined.
18075         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18076         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18077         (libc_feholdexcept_setroundl): Likewise.
18078         (libc_feholdexcept_setround_53bit): Likewise.
18079         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18080         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18081         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18082         (libc_feupdateenv_53bit): Likewise.
18083         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18084         (libc_feholdexcept): Convert from macro to inline function.
18085         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18086         (libc_fesetenv, libc_feupdateenv): Likewise.
18087
18088         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18089         not previously defined.
18090         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18091         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18092         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18093         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18094         * sysdeps/ieee754/flt-32/math_private.h: New file.
18095         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18096         math_private.h below SET_FLOAT_WORD.
18097         (__isnan, __isinf_ns, __finite): Remove.
18098         (__isnanf, __isinf_nsf, __finitef): Remove.
18099
18100 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18101
18102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18103
18104 2012-03-17  David S. Miller  <davem@davemloft.net>
18105
18106         [BZ #6471]
18107         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18108         for 2.16.
18109
18110 2012-03-16  David S. Miller  <davem@davemloft.net>
18111
18112         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18113         warnings.
18114
18115         [BZ #6471]
18116         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18117         properly.
18118         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18119         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18120         sysdep_routines when subdir is sysvipc.
18121         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18122         __getshmlba helper.
18123
18124         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18125
18126 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18127
18128         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18129         [__LP64__].
18130
18131 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18132
18133         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18134         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18135         (__lround): Renamed to ...
18136         (__llround): This.  Replace long int with long long int.
18137         Define lround functions as aliases of llround functions.
18138         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18139
18140 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18141
18142         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18143         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18144         adresses to uintptr_t.  Replace "long int" and "unsigned long
18145         int" with "greg_t" on va_arg.
18146
18147 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18148
18149         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18150         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18151
18152         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18153         Move e_machine check before EI_CLASS check.  Handle x32
18154         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18155         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18156         SKIP_EM_IA_64 and include
18157         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18158
18159         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18160         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18161         (add_system_dir): New macro.
18162
18163         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18164         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18165
18166 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18167
18168         [BZ #2551]
18169         [BZ #2552]
18170         [BZ #2553]
18171         [BZ #2554]
18172         [BZ #2562]
18173         [BZ #2563]
18174         [BZ #2565]
18175         [BZ #2566]
18176         [BZ #2576]
18177         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18178         (y0): Likewise.
18179         * math/w_j0f.c (j0f): Likewise.
18180         (y0f): Likewise.
18181         * math/w_j0l.c (__j0l): Likewise.
18182         (__y0l): Likewise.
18183         * math/w_j1.c (j1): Likewise.
18184         (y1): Likewise.
18185         * math/w_j1f.c (j1f): Likewise.
18186         (y1f): Likewise.
18187         * math/w_j1l.c (__j1l): Likewise.
18188         (__y1l): Likewise.
18189         * math/w_jn.c (jn): Likewise.
18190         (yn): Likewise.
18191         * math/w_jnf.c (jnf): Likewise.
18192         (ynf): Likewise.
18193         * math/w_jnl.c (__jnl): Likewise.
18194         (__ynl): Likewise.
18195         * math/libm-test.inc (j0_test): Add more tests.
18196         (j1_test): Likewise.
18197         (jn_test): Likewise.  Add trailing semicolon to existing test.
18198         (y0_test): Likewise.
18199         (y1_test): Likewise.
18200         * sysdeps/i386/fpu/libm-test-ulps: Update.
18201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18202
18203         [BZ #13851]
18204         [BZ #13854]
18205         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18206         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18207         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18208         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18209         (__tanl): Set errno for infinite argument.
18210         * sysdeps/i386/fpu/mptan.c: Remove.
18211         * sysdeps/i386/fpu/s_tan.S: Likewise.
18212         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18213         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18214         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18215         * math/libm-test.inc (tan_test): Add more tests and enable more
18216         tests for double and long double.
18217         * sysdeps/i386/fpu/libm-test-ulps: Update.
18218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18219
18220 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18221
18222         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18223         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18224
18225 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18226
18227         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18228         * configure.in: Use it for both main tree and add-ons.
18229         * configure: Regenerated.
18230
18231 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18232
18233         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18234
18235 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18236
18237         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18238         in comment.
18239
18240         [BZ #13851]
18241         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18242         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18243         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18244         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18245         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18246         infinite argument.
18247         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18248         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18249         != 0 for prec == 2.
18250         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18251         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18252         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18253         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18254         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18255         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18256         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18257         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18258         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18259         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18260         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18261         * math/libm-test.inc (cos_test): Add more tests and enable more
18262         tests for long double.
18263         (sin_test): Likewise.
18264         (sincos_test): Likewise.
18265         * sysdeps/i386/fpu/libm-test-ulps: Update.
18266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18267
18268 2012-03-16  David S. Miller  <davem@davemloft.net>
18269
18270         * sysdeps/sparc/fpu/math_private.h: New file.
18271
18272 2012-03-15  David S. Miller  <davem@davemloft.net>
18273
18274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18275         file.
18276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18278         file.
18279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18280         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18281         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18282         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18283         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18284         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18285         sysdep routines.
18286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18287
18288         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18289         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18290
18291         * sysdeps/sparc/sparc-ifunc.h: New file.
18292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18293         sparc-ifunc.h
18294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18296         Likewise.
18297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18298         Likewise.
18299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18303         Likewise.
18304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18309         Likewise.
18310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18311         Likewise.
18312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18316         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18317         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18318         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18319         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18320         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18321         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18322         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18323         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18324         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18325         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18326         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18327         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18328         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18329         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18330         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18331         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18332         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18333         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
18334         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
18335         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
18336
18337 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18338
18339         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
18340         scaling.
18341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18342
18343 2012-03-15  Andreas Jaeger  <aj@suse.de>
18344
18345         [BZ #13852]
18346         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
18347         ieee754/flt-32 implementation for sin, cos and sincos.
18348         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
18349         * sysdeps/i386/fpu/s_cosf.S: Likewise.
18350         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
18351         * sysdeps/i386/fpu/s_sinf.S: Likewise.
18352         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
18353         ieee754/flt-32 implementation for tan.
18354
18355         * math/libm-test.inc (cos_test): Enable some large input tests for
18356         float as well
18357         (sin_test): Likewise.
18358         (sincos_test): Likewise.
18359         (tan_test): Add tests for large input.
18360
18361         * sysdeps/i386/fpu/libm-test-ulps: Update.
18362
18363 2012-03-15  Andreas Jaeger  <aj@suse.de>
18364
18365         [BZ #13658]
18366         * math/libm-test.inc (cos_test): Add more test cases.
18367         (sin_test): Likewise.
18368         (sincos_test): Likewise.
18369
18370 2012-03-15  Andreas Jaeger  <aj@suse.de>
18371
18372         [BZ #13837]
18373         * math/libm-test.inc (cos_test): Add a test case for large input
18374         value.
18375         (sin_test): Likewise.
18376         (sincos_test): Likewise.
18377
18378 2012-03-15  Andreas Jaeger  <aj@suse.de>,
18379         Joseph Myers  <joseph@codesourcery.com>
18380
18381         [BZ #13658]
18382         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
18383         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
18384         * sysdeps/i386/fpu/branred.c: Likewise.
18385         * sysdeps/i386/fpu/dosincos.c: Likewise.
18386         * sysdeps/i386/fpu/mpa.c: Likewise.
18387         * sysdeps/i386/fpu/s_cos.S: Likewise.
18388         * sysdeps/i386/fpu/s_sin.S: Likewise.
18389         * sysdeps/i386/fpu/s_sincos.S: Likewise.
18390         * sysdeps/i386/fpu/sincos32.c: Likewise.
18391
18392         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
18393         Define.
18394         (libc_feupdateenv_53bit): Define.
18395         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
18396         Define.
18397         (libc_feupdateenv_53bit): Define.
18398
18399         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
18400         53 bit (without extend i386 double precision).
18401
18402         * math/libm-test.inc (sincos_test): Add tests for large input.
18403         (sin): Likewise.
18404         (cos): Likewise.
18405
18406         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
18407
18408 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18409
18410         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18411
18412 2012-03-15  David S. Miller  <davem@davemloft.net>
18413
18414         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
18415         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
18416         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
18417         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
18418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
18419         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
18420         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
18421         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
18422         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
18423         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
18424         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
18425         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
18426         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
18427         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
18428         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
18429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
18430         file.
18431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
18432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
18433         file.
18434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
18435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
18436         file.
18437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
18438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
18439         file.
18440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
18441         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
18442         fmin/fmax sysdep routines.
18443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18444
18445 2012-03-14  David S. Miller  <davem@davemloft.net>
18446
18447         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
18448         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
18449         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
18450         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
18451         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
18452         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
18453         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
18454         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
18455         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
18456         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
18457         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
18458         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
18459         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
18460         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
18461         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
18462         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
18463         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
18464         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
18465         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
18466         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
18467         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
18468         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
18469         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
18470         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
18471         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
18472         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
18473         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
18474         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
18475         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
18476         routines.
18477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
18478         file.
18479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
18480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
18481         file.
18482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
18483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
18484         file.
18485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
18486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
18487         file.
18488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
18489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
18490         file.
18491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
18492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
18493         file.
18494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
18495         file.
18496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
18497         file.
18498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
18499         file.
18500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
18501         New file.
18502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
18503         file.
18504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
18505         file.
18506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
18507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
18508         file.
18509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
18510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
18511         file.
18512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
18513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
18514         file.
18515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
18516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
18517         VIS3 routines.
18518
18519         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
18520         New file.
18521
18522         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18523
18524         * sysdeps/sparc/configure.in: New file.
18525         * sysdeps/sparc/configure: Generate.
18526         * configure.in (libc_cv_sparc_as_vis3): Substitute.
18527         * configure: Regenerate.
18528         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
18529         * config.make.in (have-as-vis3): New.
18530         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
18531         available use -Av9d instead of -Av9a.
18532         * sysdeps/sparc/sparc64/Makefile: Likewise.
18533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
18534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
18535         New file.
18536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
18537         file.
18538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
18539         New file.
18540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
18541         file.
18542         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
18543         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
18544         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
18545         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
18546         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
18547
18548         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
18549         fzeros/fnegs to load 0x80000000 into a float register instead of
18550         using the stack.
18551         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
18552
18553 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18554
18555         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18556         bits/syscall.h.
18557         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
18558         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
18559         ($(inst_includedir)/bits/syscall.h): Remove rule.
18560         ($(objpfx)bits/syscall.d): Include instead of
18561         $(objpfx)syscall-list.d.
18562         (generated): Change syscall-list.h and syscall-list.d to
18563         bits/syscall.h and bits/syscall.d.
18564
18565 2012-03-14  Roland McGrath  <roland@hack.frob.com>
18566
18567         [BZ #13846]
18568         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
18569
18570 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18571
18572         [BZ #13841]
18573         * math/s_csqrt.c: Include <float.h>.
18574         (__csqrt): Scale large or subnormal inputs.
18575         * math/s_csqrtf.c: Likewise.
18576         * math/s_csqrtl.c: Likewise.
18577         * math/libm-test.inc (csqrt_test): Add more tests.
18578         * sysdeps/i386/fpu/libm-test-ulps: Update.
18579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18580
18581         [BZ #13840]
18582         * math/libm-test.inc (hypot_test): Add more tests.
18583
18584 2012-03-13  David S. Miller  <davem@davemloft.net>
18585
18586         [BZ #13840]
18587         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
18588         double-precision for the calculation instead of scaling.
18589
18590 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
18591
18592         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
18593         manipulate bits before adding and subtracting TWO52[sx].
18594         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
18595         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
18596         Likewise.
18597         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
18598
18599 2012-03-13  David S. Miller  <davem@davemloft.net>
18600
18601         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
18602         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
18603         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
18604         rtld-global-offsets.h
18605         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18606
18607         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
18608         large parameters.
18609
18610         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
18611
18612         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
18613         'err' in the ifdef scope in which it is actually used.
18614
18615         * nss/nss_db/db-init.c: Include string.h
18616
18617 2012-03-12  David S. Miller  <davem@davemloft.net>
18618
18619         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18620         masking out of the most significant byte of random value used.
18621         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18622         Fix coding style in previous change.
18623
18624         * sysdeps/unix/sysv/linux/kernel-features.h
18625         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
18626         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
18627         expression.
18628         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
18629         later.
18630
18631 2012-03-11  David S. Miller  <davem@davemloft.net>
18632
18633         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
18634         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
18635         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
18636         for 'resultvar' otherwise things get truncated on 64-bit.
18637
18638         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18639         Fix masking out of the most significant byte of random value used.
18640
18641         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18642
18643 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
18644
18645         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18646
18647 2012-03-09  David S. Miller  <davem@davemloft.net>
18648
18649         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
18650         variables with appropriate CPP guards.
18651         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
18652         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
18653         on resulting framesize and the management of the outregs buffer for pltexit.
18654         Preserve floating point return values across _dl_call_pltexit call.
18655         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
18656         framesize and the management of the outregs buffer for pltexit.
18657         Preserve floating point return values across _dl_call_pltexit
18658         call.
18659         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
18660         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
18661         (print_exit): Fix format string for return register value.
18662
18663 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
18664
18665         * sunrpc/Makefile (others): Add rpcgen.
18666         ($(objpfx)rpcgen): Remove special build rule and dependency on
18667         libc.
18668         * sunrpc/rpcgen.c: New file.
18669
18670 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
18671
18672         [BZ #13673]
18673         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
18674         * stdio-common/bug-vfprintf-nargs.c: Likewise.
18675         * sysdeps/i386/crti.S: Likewise.
18676         * sysdeps/i386/crtn.S: Likewise.
18677         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
18678         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
18679         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
18680         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
18681         * sysdeps/sh/crti.S: Likewise.
18682         * sysdeps/sh/crtn.S: Likewise.
18683         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
18684
18685         [BZ #13673]
18686         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
18687         with URL.
18688         * locale/programs/locfile-kw.gperf: Likewise.
18689         * locale/programs/charmap-kw.h: Regenerated.
18690         * locale/programs/locfile-kw.h: Likewise.
18691
18692         [BZ #13673]
18693         * intl/plural.y: Replace FSF snail mail address with URL.
18694         * intl/plural.c: Regenerated.
18695
18696 2012-03-09  Richard Henderson  <rth@twiddle.net>
18697
18698         * include/math_private.h: Remove file.
18699         * math/math_private.h: Move file ...
18700         * sysdeps/generic/math_private.h: ... here.
18701
18702         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
18703         * sysdeps/powerpc/fpu/math_private.h: Likewise.
18704         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18705
18706         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
18707         and <math_private.h>.
18708         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18709         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18710         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18711         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18712         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18713         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
18714         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
18715         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18716         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
18717         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18718         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18719         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18720         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18721         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18722         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
18723         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18724         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18725         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18726         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18727         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18728         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18729         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
18730         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
18731         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18732         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
18733         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
18734         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18735         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18736         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18737         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18738         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18739         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18740         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
18741         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
18742         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
18743         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18744         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18745         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
18746         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
18747         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18748         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
18749         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
18750         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
18751         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
18752         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
18753         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
18754         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18755         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
18756         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18757         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
18758         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18759         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
18760         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
18761         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18762         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
18763         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
18764         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18765         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
18766         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
18767         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
18768         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18769         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
18770         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18771         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18772         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
18773         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
18774         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
18775         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18776         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
18777         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
18778         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18779         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
18780         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18781         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18782         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
18783         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
18784         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
18785         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18786         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
18787         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
18788         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18789         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18790         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18791         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
18792         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18793         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
18794         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
18795         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
18796         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
18797         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18798         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18799         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
18800         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18801         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18802         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
18803         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
18804         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18805         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18806         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18807         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18808         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
18809         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
18810         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
18811         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
18812         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18813         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
18814         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18815         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
18816         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18817         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18818         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18819         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18820         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18821         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18822         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
18823         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18824         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18825         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18826         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18827         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18828         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18829         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18830         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18831         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
18832         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18833         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18834         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
18835         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
18836         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18837         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18838         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
18839         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18840         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18841         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18842         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
18843         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18844         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18845         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18846         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
18847         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
18848         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18849         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18850         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18851         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
18852         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
18853         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18854         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18855         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18856         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
18857         * sysdeps/ieee754/k_standard.c: Likewise.
18858         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
18859         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
18860         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18861         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
18862         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18863         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
18864         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
18865         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18866         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
18867         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18868         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18869         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
18870         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
18871         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
18872         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
18873         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18874         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
18875         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
18876         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18877         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
18878         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18879         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18880         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18881         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18882         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18883         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
18884         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18885         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18886         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18887         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18888         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18889         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18890         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18891         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18892         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
18893         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18894         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18895         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
18896         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
18897         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18898         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
18899         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
18900         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18901         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18902         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
18903         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
18904         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18905         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18906         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18907         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18908         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18909         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
18910         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18911         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
18912         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18913         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18914         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
18915         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
18916         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18917         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18918         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18919         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
18920         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18921         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
18922         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18923         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18924         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
18925         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18926         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
18927         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
18928         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18929         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18930         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
18931         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
18932         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
18933         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18934         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
18935         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
18936         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18937         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
18938         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18939         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18940         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18941         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18942         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18943         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18944         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18945         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
18946         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
18947         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18948         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
18949         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18950         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
18951         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
18952         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18953         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18954         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
18955         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
18956         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
18957         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
18958         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18959         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18960         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18961         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18962         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
18963         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18964         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18965         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
18966         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
18967         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18968         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18969         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18970         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
18971         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18972         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
18973         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18974         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
18975         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18976         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18977         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18978         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18979         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
18980         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18981         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18982         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18983         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
18984         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18985         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18986         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18987         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18988         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18989         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18990         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18991         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
18992         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
18993         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
18994         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
18995         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
18996         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18997         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
18998         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
18999         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19000         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19001         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19002         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19003         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19004         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19005         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19006         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19007         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19008         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19009         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19010         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19011         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19012         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19013         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19014         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19015         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19016         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19017         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19018         * sysdeps/ieee754/s_lib_version.c: Likewise.
19019         * sysdeps/ieee754/s_matherr.c: Likewise.
19020         * sysdeps/ieee754/s_signgam.c: Likewise.
19021         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19022         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19023         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19024         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19025         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19026         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19027         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19028         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19029         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19030         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19031         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19032         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19033         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19034         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19035         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19036         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19037         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19038         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19039         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19040         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19041         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19042
19043 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19044
19045         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19046         * sunrpc/rpc_main.c: Likewise.
19047         * sunrpc/rpc_svcout.c: Likewise.
19048
19049 2012-03-09  David S. Miller  <davem@davemloft.net>
19050
19051         * include/math_private.h: New file.
19052
19053 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19054
19055         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19056         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19057         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19058         from <bits/socket_type.h>.
19059         (enum __socket_type): Don't define here.
19060         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19061         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19062         bits/socket_type.h.
19063
19064         [BZ #13566]
19065         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19066         checking __USE_GNU.
19067
19068         * Makerules ($(inst_includedir)/%.h): New rule.
19069         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19070         (install-others): Remove variable setting.
19071         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19072
19073 2012-03-08  Richard Henderson  <rth@twiddle.net>
19074
19075         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19076         from macro to inline function; merge with the
19077         !__LIBC_INTERNAL_MATH_INLINES version.
19078         (__ieee754_sqrtf): Likewise.
19079
19080         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19081         to inline function.
19082         (__rintf, __floor, __floorf): Likewise.
19083
19084         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19085         macro to inline function.
19086         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19087
19088         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19089         not <math/math_private.h>.
19090
19091 2012-03-08  David S. Miller  <davem@davemloft.net>
19092
19093         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19094         copyright year.
19095         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19096
19097 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19098
19099         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19100         normalization.
19101         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19102         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19103
19104 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19105
19106         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19107         be defined individually, they must be defined as a block.  Define
19108         S for printing a string instead of hidint the different by using a
19109         macro for adding the 'l'.
19110         * stdio-common/tst-fphex-wide.c: Adjust.
19111
19112 2012-03-07  Marek Polacek  <polacek@redhat.com>
19113
19114         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19115
19116 2012-03-08  Marek Polacek  <polacek@redhat.com>
19117
19118         [BZ #13806]
19119         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19120         * stdio-common/tst-fphex.c: Define a few macros to make the
19121         test reusable.  Use them.
19122         * stdio-common/tst-fphex-wide.c: New file.
19123
19124 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19125
19126         [BZ #6911]
19127         * manual/macros.texi (gnusystems): New macro.
19128         (nongnusystems): Likewise.
19129         (gnulinuxhurdsystems): Likewise.
19130         (gnuhurdsystems): Likewise..
19131         (gnulinuxsystems): Likewise.
19132         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19133         variants of the GNU system, not "GNU system".
19134         * manual/conf.texi: Likewise.
19135         * manual/errno.texi: Likewise.  Update example of errno macro
19136         expansion.
19137         * manual/filesys.texi: Likewise.
19138         (getumask): Document as specific to GNU/Hurd.
19139         * manual/install.texi: Likewise.  Reword some references to
19140         GNU/Linux.
19141         * manual/intro.texi: Likewise.
19142         * manual/io.texi: Likewise.
19143         (File Name Portability): Detail which constraints are inapplicable
19144         to all GNU systems and which are only inapplicable to GNU/Hurd.
19145         * manual/job.texi: Likewise.
19146         * manual/llio.texi: Likewise.
19147         (O_NOCTTY): Document as present on GNU/Linux.
19148         * manual/maint.texi: Likewise.
19149         * manual/memory.texi: Likewise.
19150         * manual/pattern.texi: Likewise.
19151         * manual/pipe.texi: Likewise.
19152         * manual/process.texi: Likewise.
19153         * manual/resource.texi: Likewise.
19154         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19155         child on GNU/Hurd.
19156         * manual/setjmp.texi: Likewise.
19157         * manual/signal.texi: Likewise.
19158         * manual/startup.texi: Likewise.
19159         * manual/stdio.texi: Likewise.
19160         * manual/terminal.texi: Likewise.
19161         (ONLCR): Document as POSIX.
19162         (OXTABS): Document availability on GNU/Linux as XTABS.
19163         (ONOEOT): Document availability separately from other bits.
19164         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19165         * manual/time.texi: Likewise.
19166         * manual/users.texi: Likewise.
19167         * INSTALL: Regenerated.
19168         * sysdeps/gnu/errlist.c: Regenerated.
19169
19170         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19171         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19172         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19173         puts.
19174         * configure: Regenerated.
19175
19176 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19177
19178         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19179         default includes instead of AC_HEADER_CHECK.
19180         * sysdeps/i386/configure: Regenerated.
19181
19182         [BZ #10716]
19183         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19184         * math/s_cacoshf.c (__cacoshf): Likewise.
19185         * math/s_cacoshl.c (__cacoshl): Likewise.
19186         * math/s_casinh.c (__casinh): Set signs of result from argument.
19187         * math/s_casinhf.c (__casinhf): Likewise.
19188         * math/s_casinhl.c (__casinhl): Likewise.
19189         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19190         (casinh_test): Add more tests.
19191         * sysdeps/i386/fpu/libm-test-ulps: Update.
19192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19193
19194 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19195
19196         * po/zh_TW.po: Update from translation team.
19197
19198         * login/Makefile (distribute): Remove variable.
19199         * catgets/Makefile: Likewise.
19200         * mach/Makefile: Likewise.
19201         * malloc/Makefile: Likewise.
19202         * misc/Makefile: Likewise.
19203         * iconv/Makefile: Likewise.
19204         * nscd/Makefile: Likewise.
19205         * hurd/Makefile: Likewise.
19206         * manual/Makefile: Likewise.
19207         * locale/Makefile: Likewise.
19208         * intl/Makefile: Likewise.
19209         * conform/Makefile: Likewise.
19210         * nss/Makefile: Likewise.
19211         * time/Makefile: Likewise.
19212         * soft-fp/Makefile: Likewise.
19213         * dirent/Makefile: Likewise.
19214         * gmon/Makefile: Likewise.
19215         * po/Makefile: Likewise.
19216         * rt/Makefile: Likewise.
19217         * socket/Makefile: Likewise.
19218         * math/Makefile: Likewise.
19219         * signal/Makefile: Likewise.
19220         * debug/Makefile: Likewise.
19221         * elf/Makefile: Likewise.
19222         * timezone/Makefile: Likewise.
19223         * stdlib/Makefile: Likewise.
19224         * iconvdata/Makefile: Likewise.
19225         * sunrpc/Makefile: Likewise.
19226         * io/Makefile: Likewise.
19227         * argp/Makefile: Likewise.
19228         * inet/Makefile: Likewise.
19229         * hesiod/Makefile: Likewise.
19230         * grp/Makefile: Likewise.
19231         * csu/Makefile: Likewise.
19232         * wctype/Makefile: Likewise.
19233         * crypt/Makefile: Likewise.
19234         * libio/Makefile: Likewise.
19235         * string/Makefile: Likewise.
19236         * nis/Makefile: Likewise.
19237         * resolv/Makefile: Likewise.
19238         * stdio-common/Makefile: Likewise.
19239         * wcsmbs/Makefile: Likewise.
19240         * dlfcn/Makefile: Likewise.
19241         * posix/Makefile: Likewise.
19242
19243         [BZ #6959]
19244         * timezone/Makefile: Don't install timezone files, just the programs
19245         and scripts.
19246
19247 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19248
19249         * nss/databases.def: Add missing gshadow entry.
19250
19251         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19252
19253 2012-03-06  Marek Polacek  <polacek@redhat.com>
19254
19255         [BZ #13726]
19256         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19257         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19258         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19259         * stdio-common/tst-long-dbl-fphex.c: New file.
19260
19261 2012-03-06  David S. Miller  <davem@davemloft.net>
19262
19263         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19264         (set_obp_int): New function.
19265         (get_obp_int): New function.
19266         (__get_clockfreq_via_dev_openprom): Likewise.
19267         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19268         Avoid unused variable warnings on 'val' and use builtin_expect.
19269         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19270         __builtin_expect.
19271         (INLINE_CLONE_SYSCALL): Likewise.
19272
19273 2012-03-05  David S. Miller  <davem@davemloft.net>
19274
19275         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19276
19277 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19278
19279         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19280
19281         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19282         only for |x| >= 40.
19283         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19284
19285 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19286
19287         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19288         Replace gettimeofday with __vdso_gettimeofday.
19289
19290         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19291         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19292         __vdso_clock_gettime and __vdso_getcpu.
19293
19294         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19295         time with __vdso_time.
19296
19297 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19298
19299         * manual/lang.texi (size_t): Note types to which size_t may be
19300         equivalent with the GNU C Library, but do not describe when
19301         differences between them are significant.
19302
19303 2012-03-05  Andreas Jaeger  <aj@suse.de>
19304
19305         * sysdeps/i386/fpu/libm-test-ulps: Update.
19306
19307 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19308
19309         [BZ #3976]
19310         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19311         (__ieee754_pow): Save and restore rounding mode and use
19312         round-to-nearest for main computations.
19313         * math/libm-test.inc (pow_test_tonearest): New function.
19314         (pow_test_towardzero): Likewise.
19315         (pow_test_downward): Likewise.
19316         (pow_test_upward): Likewise.
19317         (main): Call the new functions.
19318         * sysdeps/i386/fpu/libm-test-ulps: Update.
19319         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19320
19321         [BZ #3976]
19322         * math/libm-test.inc (cosh_test_tonearest): New function.
19323         (cosh_test_towardzero): Likewise.
19324         (cosh_test_downward): Likewise.
19325         (cosh_test_upward): Likewise.
19326         (sinh_test_tonearest): Likewise.
19327         (sinh_test_towardzero): Likewise.
19328         (sinh_test_downward): Likewise.
19329         (sinh_test_upward): Likewise.
19330         (main): Call the new functions.
19331         * sysdeps/i386/fpu/libm-test-ulps: Update.
19332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19333
19334 2012-03-05  Tom de Vries  <tom@codesourcery.com>
19335
19336         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
19337         default stack guard is set in last bytes.
19338         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
19339
19340 2012-03-05  Kees Cook  <keescook@chromium.org>
19341
19342         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
19343
19344         [BZ #13656]
19345         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
19346         possibly allocate from heap instead of stack.
19347         * stdio-common/bug-vfprintf-nargs.c: New file.
19348         * stdio-common/Makefile (tests): Add nargs overflow test.
19349
19350 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
19351
19352         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19353
19354 2012-03-03  Marek Polacek  <polacek@redhat.com>
19355
19356         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
19357         * math/math_private.h: Likewise.
19358         * stdlib/tst-strtod.c: Likewise.
19359         * sysdeps/i386/i486/bits/atomic.h: Likewise.
19360         * sysdeps/x86_64/bits/atomic.h: Likewise.
19361
19362 2012-03-02  David S. Miller  <davem@davemloft.net>
19363
19364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
19365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
19366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
19367         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
19368         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
19369         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
19370         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
19371         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
19372
19373 2012-03-02  Roland McGrath  <roland@hack.frob.com>
19374
19375         [BZ #13792]
19376         * manual/examples/README: New file, says the example source files
19377         can be used under GPL>=2.
19378         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
19379         line containing just "*/".
19380         * manual/examples/add.c: Add copyright header (GPL>=2).
19381         * manual/examples/argp-ex1.c: Likewise.
19382         * manual/examples/argp-ex2.c: Likewise.
19383         * manual/examples/argp-ex3.c: Likewise.
19384         * manual/examples/argp-ex4.c: Likewise.
19385         * manual/examples/atexit.c: Likewise.
19386         * manual/examples/db.c: Likewise.
19387         * manual/examples/dir.c: Likewise.
19388         * manual/examples/dir2.c: Likewise.
19389         * manual/examples/execinfo.c: Likewise.
19390         * manual/examples/filecli.c: Likewise.
19391         * manual/examples/filesrv.c: Likewise.
19392         * manual/examples/fmtmsgexpl.c: Likewise.
19393         * manual/examples/genpass.c: Likewise.
19394         * manual/examples/inetcli.c: Likewise.
19395         * manual/examples/inetsrv.c: Likewise.
19396         * manual/examples/isockad.c: Likewise.
19397         * manual/examples/longopt.c: Likewise.
19398         * manual/examples/memopen.c: Likewise.
19399         * manual/examples/memstrm.c: Likewise.
19400         * manual/examples/mkfsock.c: Likewise.
19401         * manual/examples/mkisock.c: Likewise.
19402         * manual/examples/mygetpass.c: Likewise.
19403         * manual/examples/pipe.c: Likewise.
19404         * manual/examples/popen.c: Likewise.
19405         * manual/examples/rprintf.c: Likewise.
19406         * manual/examples/search.c: Likewise.
19407         * manual/examples/select.c: Likewise.
19408         * manual/examples/setjmp.c: Likewise.
19409         * manual/examples/sigh1.c: Likewise.
19410         * manual/examples/sigusr.c: Likewise.
19411         * manual/examples/stpcpy.c: Likewise.
19412         * manual/examples/strdupa.c: Likewise.
19413         * manual/examples/strftim.c: Likewise.
19414         * manual/examples/strncat.c: Likewise.
19415         * manual/examples/subopt.c: Likewise.
19416         * manual/examples/swapcontext.c: Likewise.
19417         * manual/examples/termios.c: Likewise.
19418         * manual/examples/testopt.c: Likewise.
19419         * manual/examples/testpass.c: Likewise.
19420         * manual/examples/timeval_subtract.c: Likewise.
19421
19422         [BZ #13792]
19423         * manual/time.texi (Elapsed Time): Move timeval_subtract example
19424         function to ...
19425         * manual/timeval_subtract.c.texi: ... here, new file.
19426
19427 2012-03-02  David S. Miller  <davem@davemloft.net>
19428
19429         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
19430
19431 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
19432
19433         [BZ #3976]
19434         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
19435         (__sin): Save and restore rounding mode and use round-to-nearest
19436         for all computations.
19437         (__cos): Save and restore rounding mode and use round-to-nearest
19438         for all computations.
19439         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
19440         <fenv.h>.
19441         (tan): Save and restore rounding mode and use round-to-nearest for
19442         all computations.
19443         * math/libm-test.inc (cos_test_tonearest): New function.
19444         (cos_test_towardzero): Likewise.
19445         (cos_test_downward): Likewise.
19446         (cos_test_upward): Likewise.
19447         (sin_test_tonearest): Likewise.
19448         (sin_test_towardzero): Likewise.
19449         (sin_test_downward): Likewise.
19450         (sin_test_upward): Likewise.
19451         (tan_test_tonearest): Likewise.
19452         (tan_test_towardzero): Likewise.
19453         (tan_test_downward): Likewise.
19454         (tan_test_upward): Likewise.
19455         (main): Call the new functions.
19456         * sysdeps/i386/fpu/libm-test-ulps: Update.
19457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19458
19459         [BZ #10135]
19460         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
19461         small n, then large n, before computing and testing k+n.
19462         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
19463         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
19464         Likewise.
19465         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
19466         Likewise.
19467         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
19468         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
19469         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
19470         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
19471         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
19472         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
19473         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
19474         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
19475         * math/libm-test.inc (scalbn_test): Add more tests.
19476         (scalbln_test): Likewise.
19477
19478         * manual/filesys.texi (mode_t): Describe constraints on size and
19479         signedness, not exact equivalence to a particular type.
19480         (ino_t): Likewise.
19481         (ino64_t): Likewise.
19482         (dev_t): Likewise.
19483         (nlink_t): Likewise.
19484         (blkcnt_t): Likewise.
19485         (blkcnt64_t): Likewise.
19486         * manual/llio.texi (off_t): Likewise.
19487
19488         [BZ #3976]
19489         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
19490         (__ieee754_exp): Save and restore rounding mode and use
19491         round-to-nearest for all computations.
19492         * math/libm-test.inc (exp_test_tonearest): New function.
19493         (exp_test_towardzero): Likewise.
19494         (exp_test_downward): Likewise.
19495         (exp_test_upward): Likewise.
19496         (main): Call the new functions.
19497         * sysdeps/i386/fpu/libm-test-ulps: Update.
19498         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19499
19500 2012-03-01  Chris Demetriou  <cgd@google.com>
19501
19502         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
19503         have predictable order.
19504
19505 2012-03-01  David S. Miller  <davem@davemloft.net>
19506
19507         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
19508
19509         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
19510         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
19511         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
19512         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
19513
19514         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
19515         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
19516         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
19517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
19518         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
19519         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
19520         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
19521         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
19522         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
19523
19524         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19525
19526         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
19527         * sysdeps/sparc/fpu/libm-test-ulps: to here.
19528         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
19529
19530         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
19531         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
19532         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
19533         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
19534         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
19535         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
19536         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
19537         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
19538         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
19539         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
19540         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
19541         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19542         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
19543         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
19544         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
19545         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
19546         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
19547         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
19548         * sysdeps/sparc/elf/configure: Regenerated.
19549
19550 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
19551
19552         * configure.in (AS, LD): Require binutils 2.20 or later.
19553         * configure: Regenerated.
19554         * manual/install.texi (Tools for Compilation): Give binutils 2.20
19555         as required minimum version.
19556         * INSTALL: Regenerated.
19557
19558         [BZ #2541]
19559         [BZ #4108]
19560         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
19561         before squaring exponent.
19562         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
19563         bottom long double and 27 bits of top long double before squaring
19564         exponent.
19565         * math/libm-test.inc (erfc_test): Add more tests.
19566         * sysdeps/i386/fpu/libm-test-ulps: Update.
19567         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19569
19570 2012-03-01  Kai Tietz  <ktietz@redhat.com>
19571
19572         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
19573         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
19574         containing bit-fields.
19575         * soft-fp/extended.h (_FP_UNION_E): Likewise.
19576         * soft-fp/single.h (_FP_UNION_S): Likewise.
19577         * soft-fp/double.h (_FP_UNION_D): Likewise.
19578
19579 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19580
19581         [BZ #13786]
19582         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
19583         not include ../strcmp.S.
19584         [USE_AS_STRNCASECMP_L]: Likewise.
19585         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
19586         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
19587         * sysdeps/i386/i686/multiarch/strncase_l-c.c
19588         (__strncasecmp_l_ia32): Define as alias to
19589         __strncasecmp_l_nonascii.
19590
19591         [BZ #5794]
19592         * math/libm-test.inc (expm1_test): Add test for bug 5794.
19593         * sysdeps/i386/fpu/libm-test-ulps: Update.
19594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19595
19596         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
19597         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19598
19599 2012-02-29  Jeff Law  <law@redhat.com>
19600
19601         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
19602         out of bounds read.
19603
19604 2012-02-29  Marek Polacek  <polacek@redhat.com>
19605
19606         [BZ #13706]
19607         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
19608         * elf/Makefile: Add rules to run tst-unused-dep.out.
19609
19610 2012-02-28  David S. Miller  <davem@davemloft.net>
19611
19612         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
19613         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
19614         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
19615         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
19616         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
19617         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
19618
19619 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19620
19621         * math/libm-test.inc (llround_test): Move one test from
19622         lround_test.  Use TEST_f_L in moved test.
19623         (lround_test): Move misplaced test to llround_test.  Add testcase
19624         from bug 2561.
19625
19626 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
19627
19628         * sysdeps/x86_64/fpu/e_expf.S: New file.
19629         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
19630
19631 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
19632
19633         [BZ #13637]
19634         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
19635         of remain_len that may cause incomplete multi-byte character and
19636         false match.
19637         * posix/bug-regex33.c: New file.
19638         * posix/Makefile (tests): Add bug-regex33.
19639
19640 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
19641
19642         * manual/macros.texi: New file.
19643         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
19644         * manual/libc.texinfo: Include macros.texi.
19645         * manual/creatute.texi: Likewise.
19646         * manual/install.texi: Likewise.
19647         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
19648         @glibcadj{} in references to the GNU C Library.
19649         * manual/charset.texi: Likewise.
19650         * manual/conf.texi: Likewise.
19651         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
19652         when not using those macros.
19653         * manual/creature.texi: Likewise.
19654         * manual/crypt.texi: Likewise.
19655         * manual/errno.texi: Likewise.
19656         * manual/filesys.texi: Likewise.
19657         * manual/header.texi: Likewise.
19658         * manual/install.texi: Likewise.
19659         * manual/intro.texi: Likewise.
19660         * manual/io.texi: Likewise.
19661         * manual/job.texi: Likewise.
19662         * manual/lang.texi: Likewise.
19663         * manual/libc.texiinfo: Likewise.
19664         * manual/llio.texi: Likewise.
19665         * manual/locale.texi: Likewise.
19666         * manual/maint.texi: Likewise.
19667         * manual/math.texi: Likewise.
19668         * manual/memory.texi: Likewise.
19669         * manual/message.texi: Likewise.
19670         * manual/nss.texi: Likewise.
19671         * manual/pattern.texi: Likewise.
19672         * manual/process.texi: Likewise.
19673         * manual/resource.texi: Likewise.
19674         * manual/search.texi: Likewise.
19675         * manual/setjmp.texi: Likewise.
19676         * manual/signal.texi: Likewise.
19677         * manual/socket.texi: Likewise.
19678         * manual/startup.texi: Likewise.
19679         * manual/stdio.texi: Likewise.
19680         * manual/string.texi: Likewise.
19681         * manual/sysinfo.texi: Likewise.
19682         * manual/syslog.texi: Likewise.
19683         * manual/terminal.texi: Likewise.
19684         * manual/time.texi: Likewise.
19685         * manual/users.texi: Likewise.
19686         * INSTALL: Regenerated.
19687         * NOTES: Regenerated.
19688         * sysdeps/gnu/errlist.c: Regenerated.
19689
19690 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
19691
19692         * include/dirent.h: Include <dirstream.h> before
19693         <dirent/dirent.h>.
19694
19695 2012-02-28  David S. Miller  <davem@davemloft.net>
19696
19697         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
19698         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
19699         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
19700         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
19701
19702 2012-02-27  David S. Miller  <davem@davemloft.net>
19703
19704         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
19705         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
19706         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
19707         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
19708
19709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
19710         frame pointer instead of stack pointer relative arg slot.
19711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19712         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19713         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19714
19715 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
19716
19717         [BZ #3992]
19718         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
19719
19720 2012-02-27  David S. Miller  <davem@davemloft.net>
19721
19722         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
19723         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19724         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
19725         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
19726         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19727         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19728         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
19729         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
19730
19731 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19732
19733         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
19734         later.  Allow versions 5-9.
19735         * configure: Regenerated.
19736         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
19737         required minimum version and 4.6 as recommended version.  Do not
19738         mention bugs in GCC 2.7 and 2.8.
19739         * INSTALL: Regenerated.
19740
19741 2012-02-27  David S. Miller  <davem@davemloft.net>
19742
19743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
19744         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
19745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
19746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
19747         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
19748         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
19749         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
19750         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
19751
19752         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
19753         manipulate bits before adding and subtracting TWO112[sx].
19754         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
19755
19756 2012-02-27  Roland McGrath  <roland@hack.frob.com>
19757
19758         [BZ #13775]
19759         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
19760         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
19761         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
19762         being in POSIX, because they are in 1003.1-2008.
19763
19764         * rt/tst-aio.c: Include <fcntl.h>.
19765         * rt/tst-aio7.c: Likewise.
19766         * rt/tst-aio64.c: Likewise.
19767
19768         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
19769
19770 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19771
19772         * manual/install.texi (--with-headers): Describe headers as
19773         interface headers, not private headers.
19774         (Specific advice for GNU/Linux systems): Describe use of headers
19775         from "make headers_install", not private headers from older
19776         kernels.
19777         * INSTALL: Regenerated.
19778         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
19779         Change to 2.6.19.
19780         * sysdeps/unix/sysv/linux/configure: Regenerated.
19781
19782         * manual/llio.texi (fclean): Remove documentation.
19783
19784         * manual/Makefile (libc-texi-generated): New variable.  Include
19785         version.texi.
19786         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
19787         $(libc-texi-generated), not duplicated list of files.
19788         (version.texi, stamp-version): New rules.
19789         (realclean): Remove $(libc-texi-generated), not individual files
19790         from that list.  Do not remove dir-add.texinfo.
19791         * manual/libc.texinfo: Comment out uses of edition numbers and
19792         references to printed manual.  Remove last-updated dates.
19793         (EDITION): Comment out.
19794         (ISBN): Likewise.
19795         (VERSION, UPDATED): Remove.
19796         (version.texi): Include.
19797
19798 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
19799
19800         * sysdeps/posix/spawni.c: Include <signal.h>.
19801         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
19802         * sysdeps/pthread/aio_fsync.c: Likewise.
19803
19804 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
19805
19806         * conform/Makefile (tests): Run only when not cross-compiling and
19807         when fast-check is not defined.
19808
19809         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
19810         * conform/data/limits.h-data: Fixes for POSIX2008.
19811         * conform/run-conformtest.sh: Run all tests.
19812         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
19813         headers.
19814         * include/bits/dlfcn.h: Likewise.
19815         * include/langinfo.h: Likewise.
19816         * include/monetary.h: Likewise.
19817         * include/sys/poll.h: Likewise.
19818
19819         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
19820         for __USE_GNU.
19821         * posix/spawn.h: Define __need_sigset_t.
19822         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
19823         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
19824         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
19825         to get sigevent_t only.
19826         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
19827         only for __USE_GNU.
19828         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19829         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
19830         process_vm_writev only for __USE_GNU.
19831         * termios/termios.h: Declare tcgetsid also for POSIX2008.
19832
19833         * conform/Makefile: For now ignore errors from run-conformtest.
19834         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
19835         POSIX to avoid namespace pollution.  Don't prepend headers.
19836         * conform/data/aio.h-data: Fixes for POSIX testing.
19837         * conform/data/fcntl.h-data: Likewise.
19838         * conform/data/glob.h-data: Likewise.
19839         * conform/data/grp.h-data: Likewise.
19840         * conform/data/pthread.h-data: Likewise.
19841         * conform/data/pwd.h-data: Likewise.
19842         * conform/data/signal.h-data: Likewise.
19843         * conform/data/spawn.h-data: Likewise.
19844         * conform/data/stdio.h-data: Likewise.
19845         * conform/data/stdlib.h-data: Likewise.
19846         * conform/data/stropts.h-data: Likewise.
19847         * conform/data/sys/mman.h-data: Likewise.
19848         * conform/data/sys/stat.h-data: Likewise.
19849         * conform/data/sys/types.h-data: Likewise.
19850         * conform/data/sys/wait.h-data: Likewise.
19851         * conform/data/time.h-data: Likewise.
19852         * conform/data/unistd.h-data: Likewise.
19853         * conform/data/utime.h-data: Likewise.
19854
19855         * io/sys/stat.h: fchmod was always in POSIX.
19856         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
19857         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
19858         * rt/aio.h: Define __need_timespec before including <time.h>.
19859         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
19860         struct.  Add forward declaration of pthread_attr_t and use it in
19861         sigevent.
19862         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19863         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19864         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
19865         always remove CLK_TCK definition.
19866
19867 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
19868
19869         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
19870
19871 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
19872
19873         * conform/run-conformtest.sh: New file.
19874         * conform/Makefile: Run run-conformtest for tests.
19875         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
19876         support.
19877
19878         * conform/data/uchar.h-data: New file.
19879         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
19880         * conform/data/arpa/inet.h-data: Likewise.
19881         * conform/data/assert.h-data: Likewise.
19882         * conform/data/complex.h-data: Likewise.
19883         * conform/data/cpio.h-data: Likewise.
19884         * conform/data/ctype.h-data: Likewise.
19885         * conform/data/dirent.h-data: Likewise.
19886         * conform/data/dlfcn.h-data: Likewise.
19887         * conform/data/errno.h-data: Likewise.
19888         * conform/data/fcntl.h-data: Likewise.
19889         * conform/data/float.h-data: Likewise.
19890         * conform/data/fmtmsg.h-data: Likewise.
19891         * conform/data/fnmatch.h-data: Likewise.
19892         * conform/data/ftw.h-data: Likewise.
19893         * conform/data/glob.h-data: Likewise.
19894         * conform/data/grp.h-data: Likewise.
19895         * conform/data/iconv.h-data: Likewise.
19896         * conform/data/inttypes.h-data: Likewise.
19897         * conform/data/langinfo.h-data: Likewise.
19898         * conform/data/libgen.h-data: Likewise.
19899         * conform/data/limits.h-data: Likewise.
19900         * conform/data/locale.h-data: Likewise.
19901         * conform/data/math.h-data: Likewise.
19902         * conform/data/monetary.h-data: Likewise.
19903         * conform/data/mqueue.h-data: Likewise.
19904         * conform/data/ndbm.h-data: Likewise.
19905         * conform/data/net/if.h-data: Likewise.
19906         * conform/data/netdb.h-data: Likewise.
19907         * conform/data/netinet/in.h-data: Likewise.
19908         * conform/data/nl_types.h-data: Likewise.
19909         * conform/data/poll.h-data: Likewise.
19910         * conform/data/pthread.h-data: Likewise.
19911         * conform/data/pwd.h-data: Likewise.
19912         * conform/data/regex.h-data: Likewise.
19913         * conform/data/sched.h-data: Likewise.
19914         * conform/data/search.h-data: Likewise.
19915         * conform/data/semaphore.h-data: Likewise.
19916         * conform/data/setjmp.h-data: Likewise.
19917         * conform/data/signal.h-data: Likewise.
19918         * conform/data/spawn.h-data: Likewise.
19919         * conform/data/stdarg.h-data: Likewise.
19920         * conform/data/stdio.h-data: Likewise.
19921         * conform/data/stdlib.h-data: Likewise.
19922         * conform/data/string.h-data: Likewise.
19923         * conform/data/strings.h-data: Likewise.
19924         * conform/data/stropts.h-data: Likewise.
19925         * conform/data/sys/ipc.h-data: Likewise.
19926         * conform/data/sys/mman.h-data: Likewise.
19927         * conform/data/sys/msg.h-data: Likewise.
19928         * conform/data/sys/resource.h-data: Likewise.
19929         * conform/data/sys/select.h-data: Likewise.
19930         * conform/data/sys/sem.h-data: Likewise.
19931         * conform/data/sys/shm.h-data: Likewise.
19932         * conform/data/sys/socket.h-data: Likewise.
19933         * conform/data/sys/stat.h-data: Likewise.
19934         * conform/data/sys/statvfs.h-data: Likewise.
19935         * conform/data/sys/time.h-data: Likewise.
19936         * conform/data/sys/timeb.h-data: Likewise.
19937         * conform/data/sys/times.h-data: Likewise.
19938         * conform/data/sys/types.h-data: Likewise.
19939         * conform/data/sys/uio.h-data: Likewise.
19940         * conform/data/sys/un.h-data: Likewise.
19941         * conform/data/sys/utsname.h-data: Likewise.
19942         * conform/data/sys/wait.h-data: Likewise.
19943         * conform/data/syslog.h-data: Likewise.
19944         * conform/data/tar.h-data: Likewise.
19945         * conform/data/termios.h-data: Likewise.
19946         * conform/data/utime.h-data: Likewise.
19947         * conform/data/utmpx.h-data: Likewise.
19948         * conform/data/varargs.h-data: Likewise.
19949         * conform/data/wchar.h-data: Likewise.
19950         * conform/data/wctype.h-data: Likewise.
19951         * conform/data/wordexp.h-data: Likewise.
19952
19953         * include/stropts.h: New file.
19954         * include/uchar.h: New file.
19955         * include/aio.h: Changes to allow conformtest.pl to use the headers.
19956         * include/assert.h: Likewise.
19957         * include/ctype.h: Likewise.
19958         * include/dirent.h: Likewise.
19959         * include/dlfcn.h: Likewise.
19960         * include/fcntl.h: Likewise.
19961         * include/fnmatch.h: Likewise.
19962         * include/glob.h: Likewise.
19963         * include/grp.h: Likewise.
19964         * include/libio.h: Likewise.
19965         * include/locale.h: Likewise.
19966         * include/math.h: Likewise.
19967         * include/net/if.h: Likewise.
19968         * include/netdb.h: Likewise.
19969         * include/netinet/in.h: Likewise.
19970         * include/pthread.h: Likewise.
19971         * include/pwd.h: Likewise.
19972         * include/regex.h: Likewise.
19973         * include/sched.h: Likewise.
19974         * include/search.h: Likewise.
19975         * include/setjmp.h: Likewise.
19976         * include/signal.h: Likewise.
19977         * include/stdio.h: Likewise.
19978         * include/stdlib.h: Likewise.
19979         * include/string.h: Likewise.
19980         * include/sys/cdefs.h: Likewise.
19981         * include/sys/mman.h: Likewise.
19982         * include/sys/msg.h: Likewise.
19983         * include/sys/resource.h: Likewise.
19984         * include/sys/select.h: Likewise.
19985         * include/sys/socket.h: Likewise.
19986         * include/sys/stat.h: Likewise.
19987         * include/sys/statvfs.h: Likewise.
19988         * include/sys/time.h: Likewise.
19989         * include/sys/times.h: Likewise.
19990         * include/sys/uio.h: Likewise.
19991         * include/sys/utsname.h: Likewise.
19992         * include/sys/wait.h: Likewise.
19993         * include/termios.h: Likewise.
19994         * include/time.h: Likewise.
19995         * include/ulimit.h: Likewise.
19996         * include/unistd.h: Likewise.
19997         * include/utime.h: Likewise.
19998         * include/wchar.h: Likewise.
19999         * include/wctype.h: Likewise.
20000         * include/wordexp.h: Likewise.
20001
20002         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20003
20004         * time/time.h: TIME_UTC must be a macro.
20005         Make timespec_get available for ISO C11 only as well.
20006
20007 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20008
20009         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20010         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20011
20012 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20013
20014         * configure.in: Use -o not -a in test for unsupported multi-arch.
20015
20016 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20017
20018         * manual/texinfo.tex: Update to version 2012-01-19.16.
20019
20020 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20021
20022         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20023
20024 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20025
20026         [BZ #13738]
20027         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20028         * manual/fdl-1.3.texi: New file.
20029         * manual/fdl-1.1.texi: File removed.
20030
20031         [BZ #13738]
20032         * manual/libc.texinfo (FDL_VERSION): New @set.
20033         Use it for mention of FDL in cover text.
20034         (Documentation License): Use it in @include file name.
20035
20036 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20037             Roland McGrath  <roland@hack.frob.com>
20038
20039         [BZ #5461]
20040         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20041         not LONG_LONG_MAX and LONG_LONG_MIN.
20042         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20043         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20044         name.
20045         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20046
20047 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20048
20049         [BZ #2547]
20050         [BZ #11365]
20051         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20052         manipulate bits before adding and subtracting TWO23[sx].
20053         * math/libm-test.inc (nearbyint_test): Add more tests.
20054
20055 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20056
20057         [BZ #2548]
20058         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20059         bits before adding and subtracting TWO23[sx].
20060         * math/libm-test.inc (rint_test): Add more tests.
20061         (rint_test_tonearest): Likewise.
20062         (rint_test_towardzero): Likewise.
20063         (rint_test_downward): Likewise.
20064         (rint_test_upward: Likewise.
20065
20066 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20067
20068         [BZ #10110]
20069         * include/stdc-predef.h: New file.  Extracted from features.h.
20070         * include/features.h: Include stdc-predef.h.
20071         * Makefile (headers): Add stdc-predef.h.
20072         * CONFORMANCE (Compiler limitations): Update.
20073
20074 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20075
20076         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20077
20078 2012-02-21  David S. Miller  <davem@davemloft.net>
20079
20080         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20081         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20082
20083 2012-02-20  David S. Miller  <davem@davemloft.net>
20084
20085         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20086         using a normal save/restore sequence, rather than allocating a
20087         dummy stack frame just to store a frame pointer and restore.
20088         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20089
20090 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20091
20092         * manual/install.texi: Fix stray word in line-wrapped comment.
20093
20094 2012-02-20  David S. Miller  <davem@davemloft.net>
20095
20096         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20097         both binutils and gcc support GOTDATA.
20098
20099         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20100         "rd %pc" in the PIC register setup sequences.
20101
20102         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20103         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20104         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20105         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20106         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20107         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20108         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20109         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20110         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20111         (SYSCALL_ERROR_HANDLER): Likewise.
20112         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20113         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20114         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20115         (SYSCALL_ERROR_HANDLER): Likewise.
20116
20117         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20118         (HAVE_GCC_GOTDATA): New.
20119         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20120         relocation support in both binutils and gcc.
20121         * sysdeps/sparc/elf/configure: Regenerate.
20122
20123         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20124         * sysdeps/sparc/sparc32/elf/configure: Delete.
20125         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20126         * sysdeps/sparc/sparc64/elf/configure: Delete.
20127         * sysdeps/sparc/elf/configure.in: New file.
20128         * sysdeps/sparc/elf/configure: Generate.
20129
20130         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20131         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20132         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20133         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20134         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20135
20136 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20137
20138         * manual/install.texi: Do not mention specific glibc version
20139         numbers.
20140         * manual/libc.texinfo (VERSION, UPDATED): Update.
20141         (@copying): Use @copyright{} and range of years.
20142
20143 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20144
20145         [BZ #13695]
20146         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20147         [crti.S not in sysdirs] (generated): Do not append.
20148         [crti.S not in sysdirs] (omit-deps): Likewise.
20149         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20150         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20151         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20152         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20153         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20154         Likewise.
20155         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20156         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20157         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20158         * csu/defs.awk: Remove file.
20159         * sysdeps/generic/initfini.c: Likewise.
20160         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20161         variable.
20162         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20163         Likewise.
20164
20165 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20166
20167         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20168         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20169         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20170         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20171         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20172         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20173         <bits/epoll.h>.
20174         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20175         (__EPOLL_PACKED): Define to empty if not defined by
20176         <bits/epoll.h>.
20177         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20178         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20179         bits/epoll.h.
20180
20181 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20182
20183         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20184         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20185         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20186         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20187         <bits/timerfd.h>.
20188         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20189         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20190         bits/timerfd.h.
20191
20192 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20193
20194         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20195         in C locale.
20196         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20197         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20198         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20200
20201 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20202
20203         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20204         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20205
20206 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20207
20208         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20209         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20210         defined.
20211         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20212         Likewise.
20213         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20214         entry for 2.16.
20215
20216 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20217
20218         * math/w_acos.c: Use non-signaling floating-point comparisons.
20219         * math/w_acosf.c: Likewise.
20220         * math/w_acosh.c: Likewise.
20221         * math/w_acoshf.c: Likewise.
20222         * math/w_acoshl.c: Likewise.
20223         * math/w_acosl.c: Likewise.
20224         * math/w_asin.c: Likewise.
20225         * math/w_asinf.c: Likewise.
20226         * math/w_asinl.c: Likewise.
20227         * math/w_atanh.c: Likewise.
20228         * math/w_atanhf.c: Likewise.
20229         * math/w_atanhl.c: Likewise.
20230         * math/w_exp2.c: Likewise.
20231         * math/w_exp2f.c: Likewise.
20232         * math/w_exp2l.c: Likewise.
20233         * math/w_j0.c: Likewise.
20234         * math/w_j0f.c: Likewise.
20235         * math/w_j0l.c: Likewise.
20236         * math/w_j1.c: Likewise.
20237         * math/w_j1f.c: Likewise.
20238         * math/w_j1l.c: Likewise.
20239         * math/w_jn.c: Likewise.
20240         * math/w_jnf.c: Likewise.
20241         * math/w_log.c: Likewise.
20242         * math/w_log10.c: Likewise.
20243         * math/w_log10f.c: Likewise.
20244         * math/w_log10l.c: Likewise.
20245         * math/w_log2.c: Likewise.
20246         * math/w_log2f.c: Likewise.
20247         * math/w_log2l.c: Likewise.
20248         * math/w_logf.c: Likewise.
20249         * math/w_logl.c: Likewise.
20250         * math/w_sqrt.c: Likewise.
20251         * math/w_sqrtf.c: Likewise.
20252         * math/w_sqrtl.c: Likewise.
20253         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20254         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20255         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20256         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20257         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20258
20259 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20260
20261         [BZ #9739]
20262         * manual/string.texi (strnlen): Use correct parameter name in
20263         equivalent expression.
20264
20265 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20266
20267         [BZ #11174]
20268         * manual/users.texi (seteuid): Consistently use neweuid for
20269         argument name.
20270
20271 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20272
20273         [BZ #13704]
20274         * manual/nss.texi (Services in the NSS configuration): Correct
20275         list of services in example configuration file.
20276
20277 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20278
20279         [BZ #11322]
20280         * manual/arith.texi: Remove statements about negative zero
20281         behaving identically to zero.
20282
20283 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20284
20285         [BZ #5993]
20286         * manual/install.texi: Do not document upgrading from libc5.
20287
20288 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20289
20290         [BZ #4596]
20291         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20292
20293 2012-02-18  David S. Miller  <davem@davemloft.net>
20294
20295         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20296         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20297         %o7 across the call.
20298         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20299         instead.
20300         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20301         SETUP_PIC_REG_LEAF.
20302         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20303         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20304         * sysdeps/sparc/crtn.S: Likewise.
20305
20306 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20307
20308         * aout/Makefile: Remove.
20309
20310 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20311
20312         [BZ #13058]
20313         * manual/examples/argp-ex1.c (main): Format definition in GNU
20314         style.
20315         * manual/examples/argp-ex2.c (main): Likewise.
20316         * manual/examples/argp-ex3.c (main): Likewise.
20317         * manual/examples/argp-ex4.c (main): Likewise.
20318         * manual/examples/longopt.c (main): Use new-style prototype
20319         definition.
20320         * manual/examples/strncat.c (main): Specify return type and use
20321         (void) for arguments.
20322         * manual/examples/subopt.c (main): Use char **argv argument.
20323
20324 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20325
20326         [BZ #5077]
20327         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20328         rounding modes.
20329
20330 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20331
20332         [BZ #6907]
20333         * manual/string.texi (strchr): Change when strchrnul is
20334         recommended.
20335
20336 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
20337
20338         [BZ #174]
20339         * manual/locale.texi (setlocale): Document LOCPATH.
20340
20341 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20342
20343         [BZ #10210]
20344         * manual/process.texi (execle): Move @dots{} before last argument.
20345
20346 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
20347
20348         [BZ #12047]
20349         * manual/charset.texi (Generic Charset Conversion): Fix typo
20350         (LC_TYPE -> LC_CTYPE).
20351
20352 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
20353
20354         [BZ #5805]
20355         * manual/arith.texi (scalbn): Use @var{} on parameter names.
20356         (scalbnf): Likewise.
20357         (scalbnl): Likewise.
20358         (scalbln): Likewise.
20359         (scalblnf): Likewise.
20360         (scalblnl): Likewise.
20361         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
20362         (vwarnx): Likewise.
20363         (verr): Likewise.
20364         (verrx): Likewise.
20365         * manual/filesys.texi (telldir): Use braces around return type.
20366         * manual/llio.texi (mmap): Add space after comma.
20367         (mmap64): Likewise.
20368         * manual/math.texi (jn): Use @var{} on parameter names.
20369         (jnf): Likewise.
20370         (jnl): Likewise.
20371         (yn): Likewise.
20372         (ynf): Likewise.
20373         (ynl): Likewise.
20374         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
20375         line.
20376         * manual/resource.texi (ulimit): Use @dots{} instead of literal
20377         "...".
20378         (sched_get_priority_min): Remove semicolon on @deftypefun line.
20379         (sched_get_priority_max): Likewise.
20380         * manual/signal.texi (sigvec): Add space after comma.
20381         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
20382         names.
20383         (if_indextoname): Likewise.
20384         (if_freenameindex): Likewise.
20385         (sendto): Use ',' instead of '.' in prototype.
20386         * manual/startup.texi (syscall): Use @dots{} instead of literal
20387         "...".
20388         * manual/stdio.texi (__fpending): Separate initial words of
20389         paragraph from @deftypefun line.
20390         * manual/syslog.texi (syslog): Use @dots{} instead of literal
20391         "...".
20392         (vsyslog): Use @var{} on parameter names.
20393         * manual/terminal.texi (stty): Use @var{} on parameter names.
20394         * manual/users.texi (getutmp): Use @var{} on parameter names.
20395         (getutmpx): Likewise.
20396
20397 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20398
20399         [BZ #6884]
20400         * manual/stdio.texi (fopen): Fix typos in description of
20401         ",ccs=STRING".
20402
20403 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
20404
20405         [BZ #4026]
20406         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
20407         get clock_id definition.
20408
20409 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
20410
20411         [BZ #4822]
20412         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
20413         (madvise): Cast every argument to void on its own.
20414
20415 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20416
20417         [BZ #9902]
20418         * manual/startup.texi (Exit Status): Fix typo.
20419
20420 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20421
20422         [BZ #10140]
20423         * manual/examples/argp-ex1.c: Include <stdlib.h>.
20424         * manual/examples/argp-ex2.c: Likewise.
20425         * manual/examples/argp-ex3.c: Likewise.
20426
20427 2012-02-16  Richard Henderson  <rth@redhat.com>
20428
20429         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
20430         * sysdeps/s390/s390-32/initfini.c: Remove.
20431         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
20432         * sysdeps/s390/s390-64/initfini.c: Remove.
20433
20434 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20435
20436         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
20437         compiler output for sysdeps/generic/initfini.c.
20438         * sysdeps/sh/elf/initfini.c: Remove file.
20439
20440 2012-02-16  David S. Miller  <davem@davemloft.net>
20441
20442         [BZ #11494]
20443         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
20444
20445         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
20446         * sysdeps/sparc/crti.S: New file.
20447         * sysdeps/sparc/crtn.S: New file.
20448         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
20449         * sysdeps/sparc/sparc64/Makefile: Likewise.
20450
20451 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
20452
20453         [BZ #3335]
20454         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
20455
20456 2012-02-15  Roland McGrath  <roland@hack.frob.com>
20457
20458         [BZ #4822]
20459         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
20460
20461         * mach/devstream.c (cookie_io_functions_t): Macro removed.
20462         (write, read, close): Likewise.
20463         Patch by Aurelien Jarno <aurelien@aurel32.net>.
20464
20465 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
20466
20467         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
20468         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
20469         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
20470         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
20471         <bits/signalfd.h>.
20472         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
20473         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20474         bits/signalfd.h.
20475
20476 2012-02-14  Marek Polacek  <polacek@redhat.com>
20477
20478         * sysdeps/x86_64/crti.S: New file.
20479         * sysdeps/x86_64/crtn.S: New file.
20480         * sysdeps/x86_64/elf/initfini.c: Remove file.
20481
20482 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20483
20484         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
20485         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
20486         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
20487         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
20488         <bits/inotify.h>.
20489         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
20490         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20491         bits/inotify.h.
20492
20493 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20494
20495         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
20496         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
20497         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
20498         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
20499         <bits/eventfd.h>.
20500         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
20501         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20502         bits/eventfd.h.
20503
20504 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
20505
20506         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
20507         __feraiseexcept instead of feraiseexcept.
20508
20509         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
20510         nanosleep invocations.
20511         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
20512         strings, and add error checking for a nanosleep invocations.
20513
20514 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         Replace FSF snail mail address with URLs, as per GNU coding standards.
20517         Most of the snail mail addresses were wrong anyway, and omitting
20518         them makes the source code easier to maintain.  Almost all of the
20519         changes are to license notices and to locale LC_IDENTIFICATION
20520         addresses, except for this one:
20521         * manual/libc.texinfo: In "Published by", give the FSF's URL,
20522         not its snail mail address.
20523
20524 2012-02-09  Richard Henderson  <rth@twiddle.net>
20525
20526         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
20527         of kernel-features.h.
20528
20529         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
20530
20531 2012-02-08  Marek Polacek  <polacek@redhat.com>
20532
20533         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
20534         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
20535         * sysdeps/gnu/_G_config.h: Likewise.
20536         * sysdeps/generic/_G_config.h: Likewise.
20537
20538 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
20539
20540         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
20541         tests.
20542         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20543
20544         * sysdeps/powerpc/powerpc32/crti.S: New file.
20545         * sysdeps/powerpc/powerpc32/crtn.S: New file.
20546         * sysdeps/powerpc/powerpc64/crti.S: New file.
20547         * sysdeps/powerpc/powerpc64/crtn.S: New file.
20548
20549         * Makeconfig (have-initfini): Don't set.
20550         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
20551         * configure.in (nopic_initfini): Don't substitute.
20552         * config.h.in (HAVE_INITFINI): Don't #undef.
20553         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
20554         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
20555
20556 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
20557
20558         Support crti.S and crtn.S provided directly by architectures.
20559         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
20560         [crti.S in sysdirs] (omit-deps): Likewise.
20561         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
20562         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
20563         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
20564         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
20565         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
20566         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
20567         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
20568         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
20569         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
20570         compiler output for sysdeps/generic/initfini.c.
20571         * sysdeps/i386/elf/Makefile: Remove file.
20572         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
20573
20574 2012-02-07  Marek Polacek  <polacek@redhat.com>
20575
20576         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
20577         * sysdeps/gnu/_G_config.h: Likewise.
20578         * sysdeps/mach/hurd/_G_config.h: Likewise.
20579
20580 2012-02-07  Marek Polacek  <polacek@redhat.com>
20581
20582         * math/Makefile (tests): Add tst-CMPLX2.
20583         * math/tst-CMPLX2.c: New file.
20584
20585 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
20586
20587         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20588
20589         * math/libm-test.inc (jn_test): Add missing L suffix.
20590
20591 2012-02-06  Marek Polacek  <polacek@redhat.com>
20592
20593         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
20594         * sysdeps/i386/fpu/e_powf.S: Likewise.
20595         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20596         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
20597         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20598         * sysdeps/i386/fpu/e_pow.S: Likewise.
20599         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20600         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20601         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20602         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20603         * sysdeps/i386/fpu/e_log2.S: Likewise.
20604         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20605         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20606         * sysdeps/i386/fpu/e_powl.S: Likewise.
20607         * sysdeps/i386/fpu/s_log1p.S: Likewise.
20608         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20609         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20610         * sysdeps/i386/fpu/e_logl.S: Likewise.
20611         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20612         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
20613         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20614         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20615         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20616         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20617         * sysdeps/i386/fpu/e_log.S: Likewise.
20618         * sysdeps/i386/fpu/s_cexp.S: Likewise.
20619         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20620         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
20621         * sysdeps/i386/fpu/e_logf.S: Likewise.
20622         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20623         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20624         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
20625         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20626         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
20627         * sysdeps/i386/fpu/e_log10.S: Likewise.
20628         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20629         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20630         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20631         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20632         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20633         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20634         * sysdeps/i386/asm-syntax.h: Likewise.
20635         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20636         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20637         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20638         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
20639         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
20640         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20641         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20642         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20643         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20644         * sysdeps/powerpc/sysdep.h: Likewise.
20645         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20646         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20647
20648 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20649
20650         [BZ #411]
20651         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
20652
20653 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20654
20655         * sysdeps/i386/sysdep.h: Include <features.h>.
20656         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
20657         version.
20658
20659 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
20660
20661         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
20662         Define.
20663         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
20664         LOAD_PIC_REG_STR.
20665
20666 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20667
20668         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
20669         (SETUP_PIC_REG): Use GET_PC_THUNK.
20670         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
20671         macro.
20672
20673 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20674
20675         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
20676         for non-PIC compilation.
20677         (SETUP_PIC_REG): Add .p2align directive.
20678         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
20679         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
20680         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20681         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20682         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
20683         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20684         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
20685         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20686         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20687         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20688         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20689         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20690         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20691         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20692         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20693         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
20694         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
20695         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20696         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20697         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20698         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20699         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
20700         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20701         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20702         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
20703         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
20704         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20705         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
20706         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20707         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20708         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20709         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20710         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20711         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20712         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20713         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20714         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20715         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20716         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20717         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20718         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20719
20720 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20721
20722         * math/tst-CMPLX.c: Include <stdio.h>.
20723
20724 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
20725
20726         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
20727         float.
20728         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
20729         * sysdeps/sparc/bits/mathdef.h: Likewise.
20730
20731 2012-01-31  Marek Polacek  <polacek@redhat.com>
20732
20733         * libio/libio.h: Don't define _PARAMS.
20734         * locale/programs/config.h: Don't define PARAMS.
20735         * stdlib/strtol_l.c: Likewise.
20736         (__strtol_l): Remove PARAMS from the prototype.
20737
20738 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
20739
20740         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
20741         names.  Just use the correct names.  Remove unnecessary wrapper
20742         functions.
20743         * malloc/arena.c: Likewise.
20744         * malloc/hooks.c: Likewise.
20745
20746         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
20747         ARENA_TEST says not to.  Simplify test for creation of a new arena.
20748         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
20749
20750 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
20751
20752         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
20753         into tail calls.
20754         (update_get_addr): New function.
20755         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
20756         GET_ADDR_MODULE parameter.
20757
20758 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20759
20760         * crypt/cert.c: Remove __STDC__ conditionals.
20761         * crypt/crypt-entry.c: Likewise.
20762         * crypt/crypt_util.c: Likewise.
20763         * libio/filedoalloc.c: Likewise.
20764         * libio/fileops.c: Likewise.
20765         * libio/genops.c: Likewise.
20766         * libio/iofclose.c: Likewise.
20767         * libio/iofdopen.c: Likewise.
20768         * libio/iofopen.c: Likewise.
20769         * libio/iofopen64.c: Likewise.
20770         * libio/iogetdelim.c: Likewise.
20771         * libio/iopopen.c: Likewise.
20772         * libio/obprintf.c: Likewise.
20773         * libio/oldfileops.c: Likewise.
20774         * libio/oldiofclose.c: Likewise.
20775         * libio/oldiofdopen.c: Likewise.
20776         * libio/oldiofopen.c: Likewise.
20777         * libio/oldiopopen.c: Likewise.
20778         * libio/wfiledoalloc.c: Likewise.
20779         * libio/wgenops.c: Likewise.
20780         * locale/programs/xmalloc.c: Likewise.
20781         * misc/syslog.c: Likewise.
20782         * stdio-common/xbug.c: Likewise.
20783         * string/memchr.c: Likewise.
20784         * string/memcmp.c: Likewise.
20785         * string/memrchr.c: Likewise.
20786         * string/rawmemchr.c: Likewise.
20787         * sysdeps/posix/getcwd.c: Likewise.
20788         * time/strftime_l.c: Likewise.
20789
20790 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20791
20792         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
20793         * config.make.in (config-cflags-sse2avx): Define.
20794         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
20795         Fix typo.
20796
20797 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
20798
20799         * scripts/config.guess: Update from upstream config git repository.
20800         * scripts/config.sub: Likewise.
20801
20802 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
20803
20804         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
20805         (EM_NUM): Update.
20806         (R_TILEPRO_*, R_TILEGX_*): New macros.
20807
20808         * scripts/firstversions.awk: Fix bug in version range handling.
20809
20810         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
20811
20812         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
20813
20814         * include/sys/epoll.h: New file.
20815         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
20816         libc_hidden_def.
20817
20818 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
20819
20820         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
20821         Avoid unnecessary __WORDSIZE == 64 test.
20822         (fmaxf): Use VEX format if possible.
20823         (fmax): Likewise.
20824         (fminf): Likewise.
20825         (fmin): Likewise.
20826
20827         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
20828         * math/math_private.h: Remove libc_fegetround* and
20829         libc_fesetround*.
20830         * sysdeps/i386/configure.in: Check for -msse2avx.
20831         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
20832         also if SSE2AVX is defined.
20833         Remove libc_fegetround* and libc_fesetround*.
20834         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
20835         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
20836         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
20837         of HAS_YMM_USABLE.
20838         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20839         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20840         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20841         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20842         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20843
20844         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
20845
20846 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20847
20848         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
20849         size is not set.
20850         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20851
20852 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
20853
20854         [BZ #13618]
20855         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
20856         relocation.
20857         * Makeconfig (libm): Define.
20858         * elf/Makefile: Add rules to build and run tst-relsort1.
20859         * elf/tst-relsort1.c: New file.
20860         * elf/tst-relsort1mod1.c: New file.
20861         * elf/tst-relsort1mod2.c: New file.
20862
20863 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
20864
20865         * math/s_ldexp.c: Remove __STDC__ conditionals.
20866         * math/s_ldexpf.c: Likewise.
20867         * math/s_ldexpl.c: Likewise.
20868         * math/s_nextafter.c: Likewise.
20869         * math/s_nexttowardf.c: Likewise.
20870         * math/s_significand.c: Likewise.
20871         * math/s_significandf.c: Likewise.
20872         * math/s_significandl.c: Likewise.
20873         * math/w_jnl.c: Likewise.
20874         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20875         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20876         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20877         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20878         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20879         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20880         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
20881         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20882         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20883         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20884         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20885         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20886         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20887         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20888         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20889         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20890         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20891         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20892         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20893         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20894         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20895         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20896         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20897         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20898         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20899         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20900         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20901         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20902         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20903         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20904         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20905         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20906         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20907         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20908         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20909         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20910         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20911         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20912         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20913         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20914         * sysdeps/ieee754/k_standard.c: Likewise.
20915         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20916         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20917         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20918         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20919         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20920         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20921         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20922         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20923         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20924         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20925         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20926         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20927         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20928         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20929         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20930         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20931         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20932         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20933         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20934         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20935         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20936         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20937         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20938         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20939         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20940         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20941         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20942         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20943         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20944         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20945         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20946         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
20947         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20948         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20949         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20950         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20951         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
20952         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20953         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20954         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
20955         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
20956         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20957         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
20958         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
20959         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20960         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
20961         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
20962         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20963         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20964         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
20965         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
20966         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20967         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20968         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20969         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20970         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20971         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
20972         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20973         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20974         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20975         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20976         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20977         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20978         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20979         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20980         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20981         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20982         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20983         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20984         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20985         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20986         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20987         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20988         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20989         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20990         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20991         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20992         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20993         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20994         * sysdeps/ieee754/s_matherr.c: Likewise.
20995         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20996         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20997         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20998         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20999
21000 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21001
21002         * crypt/md5.h: Remove __STDC__ conditionals.
21003         * libio/libioP.h: Likewise.
21004         * locale/programs/config.h: Likewise.
21005         * sysdeps/generic/sysdep.h: Likewise.
21006         * sysdeps/i386/asm-syntax.h: Likewise.
21007         * sysdeps/s390/asm-syntax.h: Likewise.
21008         * sysdeps/unix/sysdep.h: Likewise.
21009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21011
21012 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21013
21014         * libio/libio.h: Remove __STDC__ conditionals.
21015         * malloc/obstack.h: Likewise.
21016         * math/complex.h: Likewise.
21017         * math/math.h: Likewise.
21018         * sysdeps/generic/_G_config.h: Likewise.
21019         * sysdeps/gnu/_G_config.h: Likewise.
21020         * sysdeps/mach/hurd/_G_config.h: Likewise.
21021         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21022         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21023         * sysdeps/sparc/bits/mathdef.h: Likewise.
21024
21025 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21026
21027         [BZ #13583]
21028         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21029         Clean up HAS_* macros.
21030         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21031         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21032         possible.
21033         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21034         HAS_AVX.
21035         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21036         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21037         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21038         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21039         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21040
21041 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21042
21043         * elf/tst-unique3.cc (gets): Remove declaration.
21044         * elf/tst-unique3lib.cc (gets): Likewise.
21045         * elf/tst-unique3lib2.cc (gets): Likewise.
21046         * elf/tst-unique4.cc (gets): Likewise.
21047
21048 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21049
21050         * include/stdio.h: Add C++ protection.  Add gets declarations and
21051         definitions.
21052         * debug/tst-chk1.c: Don't declare gets here.
21053         * stdio-common/tst-gets.c: Likewise.
21054
21055 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21056
21057         * posix/glob: Remove directory.
21058
21059 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21060
21061         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21062
21063 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21064
21065         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21066         of the non-standard EPFNOSUPPORT.
21067
21068 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21069
21070         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21071         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21072         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21073
21074 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21075
21076         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21077
21078 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21079
21080         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21081         transient errors.
21082         * nscd/grpcache.c (cache_addgr): Likewise.
21083         * nscd/hstcache.c (cache_addhst): Likewise.
21084         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21085         * nscd/pwdcache.c (cache_addpw): Likewise.
21086         * nscd/servicescache.c (cache_addserv): Likewise.
21087
21088 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21089
21090         * malloc/malloc.c: Various cleanups.
21091         * malloc/hooks.c: Likewise.
21092
21093         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21094         * stdlib/bug-fmtmsg1.c: New file.
21095
21096         * stdlib/fmtmsg.c (init): Add missing unlock.
21097         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21098
21099 2012-01-12  Marek Polacek  <polacek@redhat.com>
21100
21101         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21102         and _GNU_SOURCE.
21103
21104 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21105
21106         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21107         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21108         macro to ensure uniqueness of label name.
21109         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21110         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21111
21112 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21113
21114         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21115
21116         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21117         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21118         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21119         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21120
21121 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21122
21123         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21124
21125         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21126         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21127         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21128
21129         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21130
21131         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21132         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21133         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21134         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21135
21136         * math/bits/math-finite.h: Add ldexp support.
21137
21138 2012-01-10  Marek Polacek  <polacek@redhat.com>
21139
21140         * locale/programs/localedef.h (show_archive_content): Add noreturn
21141         attribute.
21142
21143 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21144
21145         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21146
21147 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21148
21149         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21150
21151         * io/Makefile (headers): Add bits/poll2.h.
21152
21153 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21154
21155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21156         typo #include statement.
21157
21158 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21159
21160         * include/sys/cdefs.h: Define __attribute_alloc_size.
21161         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21162         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21163         * elf/pldd.c: Likewise.
21164         * iconv/iconv_charmap.c: Likewise.
21165         * iconv/iconvconfig.c: Likewise.
21166         * iconv/strtab.c: Likewise.
21167         * locale/programs/locale.c: Likewise.
21168         * locale/programs/localedef.h: Likewise.
21169         * locale/programs/simple-hash.c: Likewise.
21170         * nscd/nscd.h: Likewise.
21171         * nss/makedb.c: Likewise.
21172         * sysdeps/generic/ldconfig.h: Likewise.
21173         * locale/programs/localedef.c: Remove xmalloc prototype.
21174         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21175
21176 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21177
21178         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21179         appropriate.
21180
21181 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21182
21183         * math/Makefile (tests): Add tst-CMPLX.
21184         * math/tst-CMPLX.c: New file.
21185
21186         * math/complex.h (CMPLXL): Fix typo.
21187
21188         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21189         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21190         GLIBC_2.16.
21191         * debug/tst-chk1.c: Add poll and ppoll tests.
21192         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21193         * include/sys/poll.h: Add hidden proto for ppoll.
21194         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21195         * sysdeps/mach/hurd/ppoll.c: Likewise.
21196         * io/ppoll.c: Likewise.
21197         * debug/poll_chk.c: New file.
21198         * debug/ppoll_chk.c: New file.
21199         * include/bits/poll2.h: New file.
21200         * io/bits/poll2.h: New file.
21201
21202         [BZ #1350]
21203         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21204
21205         * configure.in: static is always set to yes.  Remove.
21206         * config.make.in: Don't set build-static.
21207         * Makeconfig: Remove use of build-static.
21208         * dlfcn/Makefile: Likewise.
21209         * elf/Makefile: Likewise.
21210         * math/Makefile: Likewise.
21211         * misc/Makefile: Likewise.
21212         * nptl/Makefile: Likewise.
21213         * sysdeps/mach/hurd/Makefile: Likewise.
21214
21215         * configure.in: PWD_P is not used anymore.
21216         * config.make.in: Remove PWD_P entry.
21217
21218         * configure.in: Remove last remnants of RANLIB.
21219         No need to check for signed size_t anymore.
21220         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21221         and IA-64.
21222         Remove __builtin_expect test because we require at least gcc 3.4.
21223         * aclocal.m4: Likewise.
21224
21225         * wcsmbs/mbrtoc16.c: Implement using towc function.
21226         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21227         * wcsmbs/wcsmbsload.c: Likewise.
21228         * iconv/gconv_simple.c: Likewise.
21229         * iconv/gconv_int.h: Likewise.
21230         * iconv/gconv_builtin.h: Likewise.
21231         * iconv/iconv_prog.c: Remove CHAR16 handling.
21232
21233         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21234
21235         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21236
21237         * configure.in: Remove --with-elf and --enable-bounded options.
21238         Dont set base_machine for ia64.  More non-ELF conditions removed.
21239         Remove testing and setting of leading underscore information.
21240         * config.make.in (build-bounded): Set to no.
21241         * config.h.in: Remove NO_UNDERSCORES entry.
21242         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21243         them.
21244         * csu/start.c: Remove !NO_UNDERSCORE code.
21245         * locale/localeinfo.h: Likewise.
21246         * sysdeps/generic/machine-gmon.h: Likewise.
21247         * sysdeps/generic/sysdep.h: Likewise.
21248         * sysdeps/i386/sysdep.h: Likewise.
21249         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21250         * sysdeps/mach/sysdep.h: Likewise.
21251         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21252         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21253         * sysdeps/sh/sysdep.h: Likewise.
21254         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21255         * sysdeps/unix/i386/sysdep.S: Likewise.
21256         * sysdeps/unix/sparc/start.c: Likewise.
21257         * sysdeps/unix/sparc/sysdep.S: Likewise.
21258         * sysdeps/unix/sparc/sysdep.h: Likewise.
21259         * sysdeps/unix/start.c: Likewise.
21260         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21261         * sysdeps/x86_64/sysdep.h: Likewise.
21262
21263 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21264
21265         [BZ #13553]
21266         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21267         for non-gcc.
21268         * argp/argp-fmtstream.h: Use const instead __const.
21269         * argp/argp.h: Likewise.
21270         * assert/assert.h: Likewise.
21271         * bits/fenv.h: Likewise.
21272         * bits/sched.h: Likewise.
21273         * bits/sigset.h: Likewise.
21274         * bits/sigthread.h: Likewise.
21275         * catgets/nl_types.h: Likewise.
21276         * conform/data/pthread.h-data: Likewise.
21277         * crypt/crypt-private.h: Likewise.
21278         * crypt/crypt.h: Likewise.
21279         * crypt/crypt_util.c: Likewise.
21280         * ctype/ctype.h: Likewise.
21281         * debug/execinfo.h: Likewise.
21282         * debug/mbsnrtowcs_chk.c: Likewise.
21283         * debug/mbsrtowcs_chk.c: Likewise.
21284         * debug/wcsnrtombs_chk.c: Likewise.
21285         * debug/wcsrtombs_chk.c: Likewise.
21286         * debug/wcstombs_chk.c: Likewise.
21287         * dirent/dirent.h: Likewise.
21288         * dlfcn/dlfcn.h: Likewise.
21289         * elf/neededtest4.c: Likewise.
21290         * grp/grp.h: Likewise.
21291         * gshadow/gshadow.h: Likewise.
21292         * iconv/gconv.h: Likewise.
21293         * iconv/gconv_int.h: Likewise.
21294         * iconv/gconv_simple.c: Likewise.
21295         * iconv/iconv.h: Likewise.
21296         * iconv/loop.c: Likewise.
21297         * iconv/skeleton.c: Likewise.
21298         * include/aio.h: Likewise.
21299         * include/aliases.h: Likewise.
21300         * include/argz.h: Likewise.
21301         * include/arpa/inet.h: Likewise.
21302         * include/assert.h: Likewise.
21303         * include/dirent.h: Likewise.
21304         * include/dlfcn.h: Likewise.
21305         * include/execinfo.h: Likewise.
21306         * include/fcntl.h: Likewise.
21307         * include/fenv.h: Likewise.
21308         * include/glob.h: Likewise.
21309         * include/grp.h: Likewise.
21310         * include/libintl.h: Likewise.
21311         * include/mntent.h: Likewise.
21312         * include/netdb.h: Likewise.
21313         * include/pwd.h: Likewise.
21314         * include/rpc/netdb.h: Likewise.
21315         * include/sched.h: Likewise.
21316         * include/search.h: Likewise.
21317         * include/shadow.h: Likewise.
21318         * include/signal.h: Likewise.
21319         * include/stdio.h: Likewise.
21320         * include/stdlib.h: Likewise.
21321         * include/string.h: Likewise.
21322         * include/sys/socket.h: Likewise.
21323         * include/sys/stat.h: Likewise.
21324         * include/sys/statfs.h: Likewise.
21325         * include/sys/statvfs.h: Likewise.
21326         * include/sys/syslog.h: Likewise.
21327         * include/sys/time.h: Likewise.
21328         * include/sys/uio.h: Likewise.
21329         * include/time.h: Likewise.
21330         * include/unistd.h: Likewise.
21331         * include/utmp.h: Likewise.
21332         * include/wchar.h: Likewise.
21333         * include/wctype.h: Likewise.
21334         * inet/aliases.h: Likewise.
21335         * inet/arpa/inet.h: Likewise.
21336         * inet/netinet/ether.h: Likewise.
21337         * inet/netinet/in.h: Likewise.
21338         * intl/libintl.h: Likewise.
21339         * io/bits/fcntl2.h: Likewise.
21340         * io/fcntl.h: Likewise.
21341         * io/ftw.h: Likewise.
21342         * io/sys/poll.h: Likewise.
21343         * io/sys/stat.h: Likewise.
21344         * io/sys/statfs.h: Likewise.
21345         * io/sys/statvfs.h: Likewise.
21346         * io/utime.h: Likewise.
21347         * libio/bits/stdio.h: Likewise.
21348         * libio/bits/stdio2.h: Likewise.
21349         * libio/libio.h: Likewise.
21350         * libio/libioP.h: Likewise.
21351         * libio/stdio.h: Likewise.
21352         * locale/lc-ctype.c: Likewise.
21353         * locale/locale.h: Likewise.
21354         * login/utmp.h: Likewise.
21355         * malloc/arena.c: Likewise.
21356         * malloc/malloc.c: Likewise.
21357         * malloc/malloc.h: Likewise.
21358         * malloc/mcheck.c: Likewise.
21359         * malloc/mtrace.c: Likewise.
21360         * math/bits/mathcalls.h: Likewise.
21361         * math/fenv.h: Likewise.
21362         * math/math_private.h: Likewise.
21363         * misc/bits/error.h: Likewise.
21364         * misc/bits/syslog.h: Likewise.
21365         * misc/err.h: Likewise.
21366         * misc/error.h: Likewise.
21367         * misc/fstab.h: Likewise.
21368         * misc/mntent.h: Likewise.
21369         * misc/regexp.h: Likewise.
21370         * misc/search.h: Likewise.
21371         * misc/sgtty.h: Likewise.
21372         * misc/sys/mman.h: Likewise.
21373         * misc/sys/syslog.h: Likewise.
21374         * misc/sys/uio.h: Likewise.
21375         * misc/sys/xattr.h: Likewise.
21376         * misc/ttyent.h: Likewise.
21377         * nis/rpcsvc/ypclnt.h: Likewise.
21378         * nss/nss.h: Likewise.
21379         * posix/bits/unistd.h: Likewise.
21380         * posix/fnmatch.h: Likewise.
21381         * posix/glob.h: Likewise.
21382         * posix/sched.h: Likewise.
21383         * posix/spawn.h: Likewise.
21384         * posix/sys/wait.h: Likewise.
21385         * posix/unistd.h: Likewise.
21386         * posix/wordexp.h: Likewise.
21387         * pwd/pwd.h: Likewise.
21388         * resolv/netdb.h: Likewise.
21389         * resource/sys/resource.h: Likewise.
21390         * rt/aio.h: Likewise.
21391         * rt/bits/mqueue2.h: Likewise.
21392         * rt/mqueue.h: Likewise.
21393         * shadow/shadow.h: Likewise.
21394         * signal/signal.h: Likewise.
21395         * socket/send.c: Likewise.
21396         * socket/sendto.c: Likewise.
21397         * socket/sys/socket.h: Likewise.
21398         * stdio-common/printf.h: Likewise.
21399         * stdlib/bits/stdlib.h: Likewise.
21400         * stdlib/fmtmsg.h: Likewise.
21401         * stdlib/monetary.h: Likewise.
21402         * stdlib/stdlib.h: Likewise.
21403         * stdlib/ucontext.h: Likewise.
21404         * streams/stropts.h: Likewise.
21405         * string/argz.h: Likewise.
21406         * string/bits/string2.h: Likewise.
21407         * string/string.h: Likewise.
21408         * string/strings.h: Likewise.
21409         * sunrpc/rpc/auth.h: Likewise.
21410         * sunrpc/rpc/auth_des.h: Likewise.
21411         * sunrpc/rpc/clnt.h: Likewise.
21412         * sunrpc/rpc/netdb.h: Likewise.
21413         * sunrpc/rpc/pmap_clnt.h: Likewise.
21414         * sunrpc/rpc/xdr.h: Likewise.
21415         * sysdeps/generic/inttypes.h: Likewise.
21416         * sysdeps/generic/net/if.h: Likewise.
21417         * sysdeps/generic/sys/swap.h: Likewise.
21418         * sysdeps/gnu/net/if.h: Likewise.
21419         * sysdeps/gnu/utmpx.h: Likewise.
21420         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
21421         * sysdeps/i386/i486/bits/string.h: Likewise.
21422         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
21423         * sysdeps/s390/bits/string.h: Likewise.
21424         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
21425         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
21426         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
21427         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
21428         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
21429         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
21430         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
21431         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
21432         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
21433         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
21434         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
21435         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
21436         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
21437         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
21438         * sysdeps/unix/sysv/linux/readv.c: Likewise.
21439         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
21440         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
21441         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21442         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
21443         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
21444         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21445         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
21446         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
21447         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
21448         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
21449         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
21450         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
21451         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21452         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
21453         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
21454         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
21455         * sysvipc/sys/ipc.h: Likewise.
21456         * sysvipc/sys/msg.h: Likewise.
21457         * sysvipc/sys/sem.h: Likewise.
21458         * sysvipc/sys/shm.h: Likewise.
21459         * termios/termios.h: Likewise.
21460         * time/sys/time.h: Likewise.
21461         * time/time.h: Likewise.
21462         * wcsmbs/bits/wchar2.h: Likewise.
21463         * wcsmbs/uchar.h: Likewise.
21464         * wcsmbs/wchar.h: Likewise.
21465         * wctype/wctype.h: Likewise.
21466
21467         [BZ #13551]
21468         * Makeconfig: Remove all but ELF support including AIX support.
21469         * Makerules: Likewise.
21470         * config.h.in: Likewise.
21471         * config.make.in: Likewise.
21472         * configure: Likewise.
21473         * configure.in: Likewise.
21474         * csu/Makefile: Likewise.
21475         * csu/version.c: Likewise.
21476         * debug/Makefile: Likewise.
21477         * dlfcn/Makefile: Likewise.
21478         * elf/Makefile: Likewise.
21479         * extra-lib.mk: Likewise.
21480         * iconv/Makefile: Likewise.
21481         * include/libc-symbols.h: Likewise.
21482         * include/shlib-compat.h: Likewise.
21483         * resolv/Makefile: Likewise.
21484         * resolv/res_libc.c: Likewise.
21485         * rt/Makefile: Likewise.
21486         * sysdeps/i386/asm-syntax.h: Likewise.
21487         * sysdeps/i386/sysdep.h: Likewise.
21488         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21489         * sysdeps/mach/sysdep.h: Likewise.
21490         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
21491         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
21492         * sysdeps/s390/asm-syntax.h: Likewise.
21493         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21494         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21495         * sysdeps/sh/sysdep.h: Likewise.
21496         * sysdeps/unix/sparc/sysdep.h: Likewise.
21497         * sysdeps/wordsize-32/divdi3.c: Likewise.
21498         * sysdeps/x86_64/sysdep.h: Likewise.
21499
21500         * argp/Versions: Remove _argp_unlock_xxx.
21501
21502         [BZ #13559]
21503         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
21504         * abilist/libBrokenLocale.abilist: Likewise.
21505         * abilist/libanl.abilist: Likewise.
21506         * abilist/libc.abilist: Likewise.
21507         * abilist/libcrypt.abilist: Likewise.
21508         * abilist/libdl.abilist: Likewise.
21509         * abilist/libm.abilist: Likewise.
21510         * abilist/libnsl.abilist: Likewise.
21511         * abilist/libpthread.abilist: Likewise.
21512         * abilist/libresolv.abilist: Likewise.
21513         * abilist/librt.abilist: Likewise.
21514         * abilist/libthread_db.abilist: Likewise.
21515         * abilist/libutil.abilist: Likewise.
21516         * abilist/libnss_db.abilist: New file.
21517
21518         * scripts/abilist.awk: Add support for indirect functions.
21519
21520         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
21521
21522         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
21523
21524         * shlib-versions: Remove entries for ports architectures.
21525
21526         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
21527         files in ports.
21528         * elf/stackguard-macros.h: Remove support for IA-64.
21529         * elf/tst-auditmod1.c: Likewise.
21530         * sysdeps/generic/ldsodefs.h: Likewise.
21531
21532         * sysdeps/unix/sysv/linux/configure.in: Ports should define
21533         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
21534         configure files.
21535
21536         [BZ #13552]
21537         * configure.in: Remove --enable-omitfp support.
21538         * FAQ.in: Adjust.
21539         * config.make.in: Likewise.
21540         * Makeconfig: Likewise.
21541         * manual/install.texi: Likewise.
21542
21543         In case anyone cares, the IA-64 architecture could move to ports.
21544         * sysdeps/ia64/*: Removed.
21545         * sysdeps/unix/sysv/linux/ia64/*: Removed.
21546         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
21547
21548         [BZ #13555]
21549         * configure.in: Remove entries for unsupported architectures.
21550
21551         [BZ #13533]
21552         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
21553         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
21554         routines.
21555         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
21556         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
21557         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
21558         fall back to using wcrtomb.
21559         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
21560         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
21561         renaming.
21562         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
21563         * wcsmbs/tst-c16c32-1.c: New file.
21564
21565         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
21566         local variable.
21567
21568         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
21569
21570         * elf/tst-unique3.cc: Add explicit declaration of gets.
21571         * elf/tst-unique3lib.cc: Likewise.
21572         * elf/tst-unique3lib2.cc: Likewise.
21573         * elf/tst-unique4.cc: Likewise.
21574
21575         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
21576
21577 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
21578
21579         [BZ #13566]
21580         * assert/assert.h (static_assert): Don't define for C++.
21581         * libio/stdio.h (gets): Do declare for C++ <= C++11.
21582         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
21583
21584 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
21585
21586         * iconv/loop.c (single loop): Fix assertion in storing of
21587         remaining bytes.
21588
21589         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
21590
21591 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
21592
21593         * posix/getconf.c: Update copyright year.
21594         * nss/getent.c: Likewise.
21595         * nss/makedb.c: Likewise.
21596         * iconv/iconvconfig.c: Likewise.
21597         * iconv/iconv_prog.c: Likewise.
21598         * elf/ldconfig.c: Likewise.
21599         * elf/pldd.c: Likewise.
21600         * elf/sotruss.ksh: Likewise.
21601         * catgets/gencat.c: Likewise.
21602         * csu/version.c: Likewise.
21603         * elf/ldd.bash.in: Likewise.
21604         * elf/sprof.c (print_version): Likewise.
21605         * locale/programs/locale.c: Likewise.
21606         * locale/programs/localedef.c: Likewise.
21607         * login/programs/pt_chown.c: Likewise.
21608         * nscd/nscd.c (print_version): Likewise.
21609         * debug/xtrace.sh: Likewise.
21610         * malloc/memusage.sh: Likewise.
21611         * malloc/mtrace.pl: Likewise.
21612         * debug/catchsegv.sh: Likewise.
21613
21614 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
21615
21616         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
21617         pure attribute.
21618
21619 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
21620
21621         [BZ #13533]
21622         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
21623         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
21624         transformations.
21625         * iconv/gconv_int.h: Likewise.
21626         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
21627         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
21628         from libc for GLIBC_2.16.
21629         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
21630         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
21631         * wcsmbs/uchar.h: Really define mbstate_t.
21632         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
21633         * wcsmbs/c16rtomb.c: New file.
21634         * wcsmbs/mbrtoc16.c: New file.
21635         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
21636         for C/POSIX locale.
21637         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
21638         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
21639
21640         * wcsmbs/wchar.h: Add missing __restrict.
21641
21642 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21643
21644         [BZ #13532]
21645         * time/Makefile (routines): Add timespec_get.
21646         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
21647         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
21648         timespec for ISO C11.
21649         * time/timespec_get.c: New file.
21650         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
21651         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
21652
21653         [BZ #13531]
21654         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
21655         * stdlib/stdlib.h: Declare aligned_alloc.
21656         * Versions.def: Add GLIBC_2.16 for libc.
21657         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
21658
21659         [BZ 13527]
21660         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
21661         ISO C11.
21662
21663         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
21664         code.
21665
21666         [BZ #13528]
21667         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
21668
21669         [BZ #13529]
21670         * assert/assert.h (static_assert): Define.
21671
21672         * version.h: Update for 2.16 development version.
21673
21674         [BZ #13526]
21675         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
21676         _ISOC11_SOURCE.
21677
21678         * version.h (RELEASE): Bump for 2.15 release.
21679         * include/features.h (__GLIBC_MINOR__): Bump to 15.
21680
21681         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
21682         Patch by Marek Polacek <mpolacek@redhat.com>.
21683
21684         * bits/byteswap.h: Protect long long constants with __extension__.
21685         * sysdeps/i386/bits/byteswap.h: Likewise.
21686         * sysdeps/ia64/bits/byteswap.h: Likewise.
21687         * sysdeps/s390/bits/byteswap.h: Likewise.
21688         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21689
21690 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21691
21692         [BZ #13540]
21693         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
21694         destination buffer.
21695         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
21696
21697 2011-12-23  Marek Polacek  <polacek@redhat.com>
21698
21699         * elf/dl-addr.c (determine_info): Add inline keyword.
21700         * elf/tst-auditmod4b.c (check_avx): Likewise.
21701         * elf/tst-auditmod6b.c (check_avx): Likewise.
21702         * elf/tst-auditmod6c.c (check_avx): Likewise.
21703         * elf/tst-auditmod7b.c (check_avx): Likewise.
21704
21705 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21706
21707         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
21708         !__SSE_MATH__.
21709
21710 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21711
21712         [BZ #13540]
21713         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
21714         processing for last bytes.
21715
21716 2011-08-06  Bruno Haible  <bruno@clisp.org>
21717
21718         [BZ #13061]
21719         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
21720         U+0385, not to U+1FEE.
21721
21722         [BZ #13062]
21723         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
21724         entry for U+00A5 U+0301.
21725
21726 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21727
21728         [BZ #13166]
21729         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
21730         buffer for the output is too small.
21731
21732         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
21733         optimization.
21734
21735         [BZ #13185]
21736         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
21737         SSE flags if possible.
21738
21739 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21740
21741         [BZ #13540]
21742         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
21743         processing for last bytes.
21744
21745 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
21746
21747         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
21748         (syscall-list-default-options, syscall-list-default-condition)
21749         (syscall-list-includes): Define.
21750         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
21751         list of ABIs and options and #if conditions for each ABI.  Do not
21752         handle common syscalls between ABIs specially.
21753         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
21754         Remove.
21755         (syscall-list-variants, syscall-list-32bit-options)
21756         (syscall-list-32bit-condition, syscall-list-64bit-options)
21757         (syscall-list-64bit-condition): Define.
21758         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
21759         (syscall-list-variants, syscall-list-32bit-options)
21760         (syscall-list-32bit-condition, syscall-list-64bit-options)
21761         (syscall-list-64bit-condition): Define.
21762         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
21763         Remove.
21764         (syscall-list-variants, syscall-list-32bit-options)
21765         (syscall-list-32bit-condition, syscall-list-64bit-options)
21766         (syscall-list-64bit-condition): Define.
21767         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
21768         Remove.
21769         (syscall-list-variants, syscall-list-32bit-options)
21770         (syscall-list-32bit-condition, syscall-list-64bit-options)
21771         (syscall-list-64bit-condition): Define.
21772
21773 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21774
21775         * locale/iso-639.def: Add brx entry.
21776
21777         [BZ #13328]
21778         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
21779         Proposed by Mariusz_Cukr <marcukr@op.pl>.
21780
21781         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
21782         __feraiseexcept_renamed.
21783
21784 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21785
21786         [BZ #13538]
21787         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
21788         EPOLLET with unsigned values.
21789         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21790         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21791
21792         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
21793         to large cancellation.
21794         * math/s_cacoshf.c: Likewise.
21795         * math/s_cacoshl.c: Likewise.
21796
21797 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
21798
21799         [BZ #13305]
21800         [BZ #12786]
21801         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
21802         * math/s_cacoshf.c: Likewise.
21803         * math/s_cacoshl.c: Likewise.
21804
21805 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21806
21807         [BZ #13439]
21808         * iconv/gconv.h: Define __GCONV_SWAP.
21809         * iconvdata/unicode.c: The swap bit must be stored in __flags.
21810         * iconvdata/utf-16.c: Likewise.
21811         * iconvdata/utf-32.c: Likewise.
21812
21813 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
21814
21815         [BZ #13524]
21816         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
21817         numerator after shifting it by one limb.
21818
21819 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21820
21821         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
21822         under [__USE_EXTERN_INLINES].
21823
21824 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21825
21826         [BZ #13446]
21827         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
21828
21829 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21830
21831         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
21832         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
21833         optimized code.
21834         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
21835         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
21836         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
21837         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
21838         for strncasecmp/strncasecmp_l compilation.
21839         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
21840         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
21841
21842 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
21843
21844         [BZ #13484]
21845         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
21846         of __asm__.
21847
21848 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21849
21850         [BZ #13506]
21851         * time/tzfile.c (__tzfile_read): Check values from file header.
21852
21853 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
21854
21855         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
21856         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
21857         * powerpc/powerpc32/dl-start.S: Likewise.
21858         * powerpc/powerpc32/elf/start.S: Likewise.
21859         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
21860         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
21861         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
21862         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
21863         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
21864         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
21865         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
21866         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
21867         * powerpc/powerpc32/fpu/s_round.S: Likewise.
21868         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
21869         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
21870         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
21871         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
21872         * powerpc/powerpc32/memset.S: Likewise.
21873         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
21874         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
21875         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
21876         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
21877         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
21878         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
21879         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
21880         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
21881         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
21882         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
21883         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
21884         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21885         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21886
21887 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21888
21889         * math/libm-test.inc: Added more nearbyint tests.
21890         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
21891         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
21892         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
21893         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
21894
21895 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
21896
21897         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
21898         FD_CLOEXEC.
21899
21900 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21901
21902         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
21903         Add wcscpy-ssse3 wcscpy-c.
21904         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
21905         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
21906         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
21907         * sysdeps/x86_64/wcschr.S: New file.
21908         * sysdeps/x86_64/wcsrchr.S: New file.
21909         * string/test-strcmp.c: Remove checking of wcscmp function for
21910         wrong alignments.
21911         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
21912         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
21913         wcsrchr-sse2 wcsrchr-c.
21914         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
21915         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
21916         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
21917         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
21918         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
21919         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
21920         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
21921         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
21922         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
21923         * wcsmbc/wcschr.c (WCSCHR): New macro.
21924
21925 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21926
21927         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
21928         * wcsmbs/test-wcsrchr.c: New file.
21929         * string/test-strrchr.c: Add wcsrchr support.
21930         (WIDE): New macro.
21931         * wcsmbs/test-wcscpy.c: New file.
21932         * string/test-strcpy.c: Add wcscpy support.
21933         (WIDE): New macro.
21934
21935 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
21936
21937         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
21938         the inner loop.
21939
21940 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
21941
21942         [BZ #13472]
21943         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
21944
21945 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
21946
21947         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
21948         Minor optimizations.
21949
21950         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
21951         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
21952         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21953
21954 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
21955
21956         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
21957         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
21958         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
21959         for gcc to avoid warnings.
21960         * inet/Makefile (tests): Add tst-checks.
21961         * inet/tst-checks.c: New file.
21962
21963         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
21964         warning.
21965
21966         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
21967         __wmemcmp_sse2.
21968
21969         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
21970         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
21971
21972         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
21973
21974 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
21975
21976         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
21977         problem.
21978
21979         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
21980
21981 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
21982
21983         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
21984         conditional on GCC version.
21985         (__arch_compare_and_exchange_val_8_acq)
21986         (__arch_compare_and_exchange_val_16_acq)
21987         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
21988         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
21989         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
21990
21991 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
21992
21993         * sysdeps/sh/backtrace.c: New file.
21994
21995 2011-12-02  Andreas Schwab  <schwab@redhat.com>
21996
21997         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
21998         parenthesis.
21999
22000 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22001
22002         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22003         falling back to utime.
22004
22005 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22006
22007         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22008         expectations for float.
22009
22010 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22011
22012         * locale/weight.h (findidx): Add parameter len.
22013         * locale/weightwc.h (findidx): Likewise.
22014         * posix/fnmatch_loop.c (FCT): Adjust caller.
22015         * posix/regcomp.c (build_equiv_class): Likewise.
22016         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22017         * posix/regexec.c (check_node_accept_bytes): Likewise.
22018         * string/strcoll_l.c (STRCOLL): Likewise.
22019         * string/strxfrm_l.c (STRXFRM): Likewise.
22020
22021 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22022
22023         * Makefile.in: Remove CVSOPT handling.
22024         * configure.in: Remove use of AC_REVISION.
22025         * iconvdata/Makefile (distribute): No need to filter out CVS.
22026         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22027         handling.
22028
22029 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22030
22031         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22032         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22033         [USE_AS_STRNCASECMP_L]: Likewise.
22034         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22035         NO_TLS_DIRECT_SEG_REFS.
22036         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22037         Fix argument offsets for non-PIC.
22038         [USE_AS_STRNCASECMP_L]: Likewise.
22039         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22040         NO_TLS_DIRECT_SEG_REFS.
22041
22042 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22043
22044         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22045         O_CLOEXEC.
22046         * locale/loadlocale.c (_nl_load_locale): Likewise.
22047
22048 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22049
22050         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22051         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22052         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22053         (SYSCALL_GETTIME): Set errno on error.
22054
22055         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22056         count references to noai6ai_cached.
22057
22058 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22059
22060         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22061
22062         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22063         FD_CLOEXEC for /proc/self/maps.
22064
22065         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22066         FD_CLOEXEC for /proc/meminfo.
22067
22068         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22069         gai.conf.
22070
22071         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22072         FD_CLOEXEC for given file.
22073
22074         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22075
22076         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22077         FD_CLOEXEC for /etc/hosts.
22078         (_gethtent): Likewise.
22079
22080         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22081
22082         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22083         cancellation and set FD_CLOEXEC for /etc/netgroup.
22084
22085         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22086         reading /etc/publickey.
22087
22088         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22089         allow cancellation when reading /etc/group.
22090
22091         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22092         cancellation.
22093         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22094
22095         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22096         when using data file.
22097
22098         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22099
22100         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22101         (write_nis_obj): Use "c" and "e" in fopen.
22102
22103         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22104
22105         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22106
22107         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22108
22109         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22110
22111         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22112         locale.alias.
22113
22114         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22115
22116         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22117
22118         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22119
22120         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22121         file parsing and set FD_CLOEXEC.
22122
22123 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22124
22125         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22126
22127 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22128
22129         * malloc/arena.c (arena_get2): Don't call reused_arena when
22130         _int_new_arena failed.
22131
22132 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22133
22134         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22135         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22136         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22137         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22138         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22139         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22140         to compile strcasecmp and strncasecmp.
22141         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22142         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22143
22144         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22145
22146 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22147
22148         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22149         locale-defines.sym to gen-as-const-headers.
22150         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22151         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22152         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22153         to compile strcasecmp and strncasecmp.
22154         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22155         strcasecmp_l and strncasecmp_l.
22156         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22157         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22158         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22159         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22160         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22161         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22162         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22163         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22164         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22165         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22166         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22167
22168 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22169
22170         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22171         result of SYSDEP_GETTIME_CPU to retval.
22172         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22173         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22174
22175         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22176         variable.
22177
22178         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22179         mantissa words.
22180         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22181
22182         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22183         from unused variable.
22184
22185         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22186         DWARF definitions.
22187         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22188         for assembling.
22189
22190         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22191         over namespaces.
22192
22193         * sunrpc/rpc_prot.c (rejected): Fix case value.
22194
22195         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22196         unsigned long long int to avoid warnings in shift.
22197
22198         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22199         of use of trans.
22200         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22201         variable tmp.
22202
22203         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22204         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22205         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22206
22207         * nis/nis_table.c (nis_list): Use variable of correct type for
22208         result of __follow_path call.
22209
22210 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22211
22212         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22213         of math functions ceil, trunc, floor, round, and sqrt, when
22214         avaliable on the platform.
22215         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22216         name clash.
22217         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22218         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22219         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22220
22221 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22222
22223         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22224         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22225
22226 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22227
22228         * include/unistd.h: Fix __readlink return type.
22229         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22230
22231 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22232
22233         * stdlib/ucontext.h: Undo last change for makecontext.
22234
22235 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22236
22237         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22238
22239         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22240         * setjmp/setjmp.h: Mark functions as non-leaf.
22241         * setjmp/bits/setjmp2.h: Likewise.
22242         * stdlib/ucontext.h: Likewise.
22243
22244 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22245
22246         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22247         (reused_arena): Don't check arena limit.
22248         (arena_get2): Atomically check arena limit.
22249
22250 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22251
22252         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22253         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22254
22255         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22256         instructions.
22257
22258 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22259
22260         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22261         handler when locking.
22262
22263         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22264         Fix size of allocated buffer.
22265
22266 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22267
22268         [BZ #10103]
22269         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22270         declarations for long double functions.
22271         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22272
22273         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22274
22275 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22276
22277         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22278         installed.
22279
22280         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22281         is disabled.
22282
22283 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22284
22285         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22286
22287 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22288
22289         * include/alloca.h (stackinfo_alloca_round): Define.
22290         (extend_alloca): Use it.
22291         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22292         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22293         here.
22294
22295         * scripts/check-local-headers.sh: Ignore libaudit.h.
22296
22297         * nscd/Makefile (extra-objs): Make recursively expanded.
22298
22299 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22300
22301         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22302         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22303
22304         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22305         * posix/tst-rfc3484-2.c: Likewise.
22306         * posix/tst-rfc3484-3.c: Likewise.
22307
22308         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22309         process_vm_writev.
22310         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22311         process_vm_writev.
22312         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22313         process_vm_writev from libc using GLIBC_2.15 version.
22314
22315         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22316
22317 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22318
22319         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22320         stack usage.
22321
22322 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22323
22324         [BZ #13367]
22325         * nss/getent.c (initgroups_keys): Show error message in case no group
22326         names are given.
22327
22328         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22329         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22330         __bump_nl_timestamp.
22331         * nscd/connections (nscd_init): When host database is served open
22332         netlink socket and request notification about configuration changes.
22333         (main_loop_poll): Track netlink file descriptor and bump timestamp
22334         in case data becomes available.
22335         (main_loop_epoll): Likewise.
22336         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
22337         (database_pers_head): Add extra_data fileds.
22338         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
22339         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
22340         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
22341         Adjust caller.
22342         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
22343         in6ai data, call __free_in6ai.
22344         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
22345         Add -DHAVE_NETLINK.
22346         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
22347         interface information.  Reuse previous data if netlink timestamp
22348         is not changed.
22349         (__bump_nl_timestamp): New function.
22350         (__free_in6ai): New function.
22351
22352 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
22353
22354         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
22355         close_not_cancel_no_status here.
22356         (__check_pf): Reorganize code a bit to not call close twice if OOM.
22357
22358 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22359
22360         [BZ #13276]
22361         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
22362         return value.
22363
22364         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
22365         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
22366         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
22367
22368 2011-07-03  Andreas Jaeger  <aj@suse.de>
22369
22370         [BZ #10709]
22371         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
22372         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
22373         * math/libm-test.inc (sin_test): Add test case.
22374
22375 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22376
22377         [BZ #13337]
22378         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
22379         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22380
22381         * elf/chroot_canon.c (chroot_canon): Cleanups.
22382
22383         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
22384
22385         [BZ #13335]
22386         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
22387         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22388
22389         * string/test-strchr.c: Make usable for strchrnul testing.
22390         * string/test-strchrnul.c: New file.
22391         * string/Makefile (strop-tests): Add strchrnul.
22392
22393         * po/it.po: Update from translation team.
22394         * po/es.po: Likewise.
22395
22396 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
22397
22398         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
22399         the three constants needed as parameters.  Drop the others.
22400         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
22401         __m128i_strloadu_tolower.
22402         Create and initialize variable zero and use it in all the places
22403         where _mm_setzero_si128 was used.
22404
22405         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
22406         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
22407         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
22408         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
22409         anymore.
22410         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
22411         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
22412         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
22413         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
22414         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
22415         __mpranred, __mptan.
22416         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
22417         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
22418         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
22419         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
22420         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
22421         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
22422         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
22423         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
22424         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
22425
22426 2011-10-28  Andreas Schwab  <schwab@redhat.com>
22427
22428         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
22429         redefine if SHARED.
22430         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
22431
22432         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
22433         wide char related routines to wcsmbs subdir.
22434
22435 2011-10-27  Andreas Schwab  <schwab@redhat.com>
22436
22437         [BZ #13344]
22438         * misc/sys/cdefs.h (__THROWNL): Define.
22439         * posix/unistd.h: Use __THREADNL instead of __THREAD
22440         for memory synchronization functions.
22441
22442 2011-10-26  Roland McGrath  <roland@hack.frob.com>
22443
22444         [BZ #13349]
22445         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
22446         doesn't exist.
22447         * manual/stdio.texi (Obstack Streams): Node removed.
22448
22449 2011-10-26  Andreas Schwab  <schwab@redhat.com>
22450
22451         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
22452         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22453         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22454
22455         * math/math_private.h (math_force_eval): Allow non-addressable
22456         arguments.
22457         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
22458
22459 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22460
22461         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
22462         file is not needed.
22463
22464         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
22465         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
22466         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22467         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22468         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22469         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22470         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22471         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
22472         Add AVX variants.
22473         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
22474         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
22475         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
22476         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
22477         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
22478         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
22479         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
22480         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
22481         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
22482         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
22483         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
22484         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
22485         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
22486         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
22487         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
22488         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
22489         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
22490         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
22491         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
22492
22493         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
22494         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
22495
22496         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
22497         place.  Use VEX encoding when compiling for AVX.
22498
22499 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22500
22501         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
22502         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
22503
22504         * string/test-strchr.c (do_test): Don't generate NUL bytes.
22505
22506 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22507
22508         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
22509         useless if() expression.
22510         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
22511         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
22512         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
22513         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22514         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
22515         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22516         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22517         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22518         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
22519         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22520         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
22521         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22522         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
22523         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22524         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
22525         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22526         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
22527         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
22528         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
22529
22530         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
22531
22532 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22533
22534         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
22535         condition.
22536         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22537
22538 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22539
22540         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
22541         .text section.  Avoid duplicate constants.
22542         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
22543         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22544         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22545         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22546         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22547         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22548         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22549         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22550         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
22551         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
22552         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
22553         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22554         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
22555         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
22556         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
22557         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
22558         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
22559         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
22560         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
22561         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22562         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
22563         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
22564         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22565         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
22566         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
22567         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
22568         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
22569         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
22570         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
22571         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
22572         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
22573         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
22574         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22575         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
22576         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
22577         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
22578         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
22579         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
22580         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
22581         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
22582         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
22583         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
22584         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
22585         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22586         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
22587
22588 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
22589
22590         * sysdeps/x86_64/dla.h: Move to ...
22591         * sysdeps/x86_64/fpu/dla.h: ...here.
22592         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
22593         situations.  Use __builtin_fma only for gcc 4.6 and up.
22594
22595         * config.make.in: Add have-mfma4 entry.
22596         * configure.in: Substitute libc_cv_cc_fma4.
22597         * math/Makefile (dbl-only-routines): Add sincostab.
22598         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
22599         Use __sincostab not sincos.
22600         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
22601         name is a macro.
22602         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22603         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22604         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22605         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
22606         using __copysign.
22607         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
22608         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
22609         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
22610         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
22611         and __inv.
22612         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
22613         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
22614         __copysign.
22615         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
22616         define aliases when function name is a macro.
22617         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
22618         sysdeps/ieee754/dbl-64/sincos.tbl.
22619         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
22620         fma4-enabled routines.
22621         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
22622         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
22623         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
22624         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
22625         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
22626         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
22627         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
22628         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
22629         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
22630         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
22631         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
22632         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
22633         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
22634         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
22635         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
22636         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
22637         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
22638         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
22639         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
22640         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
22641         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
22642         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
22643         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
22644         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
22645         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
22646         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
22647         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
22648         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
22649         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
22650         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
22651
22652         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
22653         rename.
22654         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22655         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22656         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22657         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22658         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22659         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22660         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22661         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22662
22663 2011-10-24  Andreas Schwab  <schwab@redhat.com>
22664
22665         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
22666
22667 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22668
22669         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
22670
22671         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
22672         prediction.
22673         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
22674
22675         * string/strnlen.c: Don't define STRNLEN, reverse logic.
22676         Remove unused variable magic_bits.
22677         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
22678
22679         * string/strnlen.c: Define and use STRNLEN macro.
22680         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
22681         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
22682         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
22683         * wcsmbs/wcslen.c: Define and use WCSLEN.
22684         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
22685         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
22686         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
22687         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
22688         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
22689         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
22690         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22691
22692 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22693
22694         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22695         strnlen-sse2-no-bsf.
22696         Rename strlen-no-bsf to strlen-sse2-no-bsf.
22697         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
22698         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
22699         Add strnlen support.
22700         (USE_AS_STRNLEN): New macro.
22701         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
22702         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
22703         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
22704         * sysdeps/x86_64/wcslen.S: New file.
22705
22706 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22707
22708         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22709         XMM-moves are used for copying on small sizes.
22710
22711 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22712
22713         * wcsmbs/Makefile (strop-tests): Add wcschr.
22714         * wcsmbs/test-wcschr.c: New file.
22715         * string/test-strchr.c: Update.
22716         Add wcschr support.
22717         (WIDE): New macro.
22718
22719 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22720
22721         * wcsmbs/Makefile (strop-tests): Add wcslen.
22722         * wcsmbs/test-wcslen.c: New file.
22723         * string/test-strlen.c: Update.
22724         Add wcslen support.
22725         (WIDE): New macro.
22726
22727 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22728
22729         * po/it.po: Update from translation team.
22730
22731 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22732
22733         * sysdeps/x86_64/wcscmp.S: Update.
22734         Fix wrong comparison semantics.
22735         wcscmp shall use signed comparison not unsigned.
22736         Don't use substraction to avoid overflow bug.
22737         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
22738         * wcsmbc/wcscmp.c: Likewise.
22739         * string/test-strcmp.c: Likewise.
22740         Add new tests to check cases with negative values.
22741
22742 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22743
22744         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
22745         * sysdeps/x86_64/dla.h: ...here.  New file.
22746         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
22747         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22748         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22749         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22750         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22751         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22752         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22753         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22754         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22755
22756 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
22757
22758         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
22759         __ynl_finite aliases.
22760
22761 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22762
22763         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22764
22765         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
22766         define DLA_FMA.
22767         [DLA_FMA] (EMULV): Use DLA_FMA.
22768         [DLA_FMA] (MUL12): Use EMULV.
22769         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
22770         that are not needed.
22771         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22772         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22773         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22774         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22775         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22776         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22777         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22778
22779 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
22780
22781         * math/s_nan.c: Undef __nan.
22782         * math/s_nanf.c: Undef __nanf.
22783         * math/s_nanl.c: Undef __nanl.
22784         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
22785         "math_private.h".
22786
22787 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22788
22789         * math/s_catan.c: Add branch predictions.
22790         * math/s_catanf.c: Likewise.
22791         * math/s_catanh.c: Likewise.
22792         * math/s_catanhf.c: Likewise.
22793         * math/s_catanhl.c: Likewise.
22794         * math/s_catanl.c: Likewise.
22795         * math/s_cexp.c: Likewise.
22796         * math/s_cexpf.c: Likewise.
22797         * math/s_cexpl.c: Likewise.
22798         * math/s_clog.c: Likewise.
22799         * math/s_clog10.c: Likewise.
22800         * math/s_clog10f.c: Likewise.
22801         * math/s_clog10l.c: Likewise.
22802         * math/s_clogf.c: Likewise.
22803         * math/s_clogl.c: Likewise.
22804         * math/s_csqrt.c: Likewise.
22805         * math/s_csqrtf.c: Likewise.
22806         * math/s_csqrtl.c: Likewise.
22807         * math/s_ctanf.c: Likewise.
22808         * math/s_ctanh.c: Likewise.
22809         * math/s_ctanhf.c: Likewise.
22810         * math/s_ctanhl.c: Likewise.
22811         * math/s_ctanl.c: Likewise.
22812
22813         * math/math_private.h: Define __nan, __nanf, __nanl.
22814         * math/s_cacosh.c: Include <math_private.h>.
22815         * math/s_cacoshl.c: Likewise.
22816         * math/s_casinh.c: Likewise.
22817         * math/s_casinhf.c: Likewise.
22818         * math/s_casinhl.c: Likewise.
22819         * math/s_ccos.c: Rely entire on ccosh.
22820         * math/s_ccosf.c: Rely entire on ccoshf.
22821         * math/s_ccosl.c: Rely entirely on ccoshl.
22822         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
22823         Remove tests for FE_INVALID.
22824         * math/s_ccoshf.c: Likewise.
22825         * math/s_ccoshl.c: Likewise.
22826         * math/s_csin.c: Likewise.
22827         * math/s_csinf.c: Likewise.
22828         * math/s_csinh.c Likewise.
22829         * math/s_csinhf.c: Likewise.
22830         * math/s_csinhl.c: Likewise.
22831         * math/s_csinl.c: Likewise.
22832         * math/s_ctan.c: Likewise.
22833         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
22834         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
22835         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
22836
22837 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
22838
22839         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
22840         compilation problems.
22841
22842         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
22843         __builtin_expect.
22844
22845 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
22846
22847         * sysdeps/i386/configure.in: Test for -mfma4 option.
22848         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
22849         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
22850         COMMON_CPUID_INDEX_80000001.
22851         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
22852         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
22853         use it if FMA3 is not supported.
22854         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
22855
22856         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
22857         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
22858
22859 2011-10-20  Andreas Schwab  <schwab@redhat.com>
22860
22861         [BZ #12892]
22862         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
22863         it would create a cycle with a link time dependency.
22864
22865 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
22866
22867         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
22868         instruction.
22869         * string/Makefile (strop-tests): Add rawmemchr.
22870         * string/test-rawmemchr.c: New file.
22871
22872         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
22873         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
22874         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
22875         when compiling str{,n}casecmp and when AVX is available.  Hook up
22876         new optimized code in initializers.
22877
22878 2011-10-19  Andreas Schwab  <schwab@redhat.com>
22879
22880         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
22881         __feraiseexcept instead of feraiseexcept.
22882
22883 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
22884
22885         * math/math_private.h: Define defaults for libc_fetestexcept and
22886         libc_feupdateenv.
22887         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
22888         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
22889         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
22890         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22891         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
22892         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22893         libc_fetestexcept and libc_feupdateenv.
22894
22895         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
22896         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
22897         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
22898         * sysdeps/x86_64/fpu/math_private.h: Define special version of
22899         libc_feholdexcept_setround.
22900
22901         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
22902         Add s_nearbyint-c and s_nearbyintf-c.
22903         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
22904         nearbyintf inlines.
22905         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
22906         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
22907         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
22908         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
22909
22910         * math/math_private.h: Define defaults for libc_fegetround,
22911         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
22912         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
22913         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
22914         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
22915         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
22916         standard functions.
22917         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
22918         Remove comments and hacks for old compiler versions.
22919         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22920         libc_fegetround, libc_fesetround, libc_feholdexcept, and
22921         libc_feholdexceptl.
22922
22923 2011-10-18  Andreas Schwab  <schwab@redhat.com>
22924
22925         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
22926         (__feraiseexcept_renamed): Add __NTH.
22927         (feraiseexcept): Add __NTH.  Rename local variables to fix
22928         namespace violations.
22929
22930 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
22931
22932         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
22933
22934         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
22935
22936         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
22937         recently added interfaces.
22938         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
22939
22940         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
22941         about macro parameter expansion.
22942
22943         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
22944         __NO_MATH_INLINES is defined.  Cleanups.
22945
22946         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
22947         and __floorf is target has SSE4.1.
22948         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
22949         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
22950         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
22951         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
22952
22953         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
22954         name.
22955         (floorf): Likewise.
22956
22957         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
22958
22959 2011-10-17  Andreas Schwab  <schwab@redhat.com>
22960
22961         * misc/sys/cdefs.h: Fix last change.
22962
22963         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
22964         database lookup.
22965
22966 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
22967
22968         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
22969
22970         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
22971         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22972         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
22973         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22974         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22975         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
22976         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22977         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22978         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
22979         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
22980         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
22981         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
22982         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
22983         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
22984         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
22985         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
22986         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
22987         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
22988         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
22989         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
22990         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
22991         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
22992
22993         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
22994         ceil, ceilf, floor, floorf.
22995
22996         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
22997         Perform IRELATIVE relocations last.
22998
22999         * elf/do-rel.h: Add another parameter nrelative, replacing the
23000         local variable with the same name.  Change name of the function
23001         to end in Rel or Rela (uppercase).
23002         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23003         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23004         elf_dynamic_do_##reloc function.
23005
23006 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23007
23008         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23009         is sufficient, at least on modern CPUs.
23010
23011         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23012
23013         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23014         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23015
23016         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23017         __expl_finite.
23018         * math/bits/math-finite.h: Add entries for exp.
23019         * math/e_expl.c: Add __*_finite alias.
23020         * sysdeps/i386/fpu/e_exp.S: Likewise.
23021         * sysdeps/i386/fpu/e_expf.S: Likewise.
23022         * sysdeps/i386/fpu/e_expl.c: Likewise.
23023         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23024         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23025         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23026         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23027         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23028         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23029         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23030
23031         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23032         is sufficient, at least on modern CPUs.
23033
23034         * ctype/ctype-info.c (__ctype_init): Define.
23035         * include/ctype.h (__ctype_init): Declare.
23036         (__ctype_b_loc): The variable is always initialized.
23037         (__ctype_toupper_loc): Likewise.
23038         (__ctype_tolower_loc): Likewise.
23039         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23040         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23041
23042 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23043
23044         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23045
23046         * configure.in: Also look in $cxxmachine/include for C++ system
23047         headers.
23048
23049 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23050
23051         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23052         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23053         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23054         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23055         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23056         (USE_AS_WMEMCMP): New macro.
23057         Fixing indents.
23058         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23059         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23060         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23061         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23062         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23063         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23064         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23065         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23066         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23067         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23068         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23069         (USE_AS_WMEMCMP): New macro.
23070         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23071         * sysdeps/string/test-memcmp.c: Update.
23072         Fix simple_wmemcmp.
23073         Add new tests.
23074         * wcsmbs/wmemcmp.c: Update.
23075         (WMEMCMP): New macro.
23076         Fix overflow bug.
23077
23078 2011-10-12  Andreas Jaeger  <aj@suse.de>
23079
23080         [BZ #13268]
23081         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23082
23083 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23084
23085         * libio/iofwide.c (do_length): Avoid warning.
23086
23087         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23088
23089 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23090
23091         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23092
23093         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23094         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23095         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23096         * sysdeps/i386/i686/fpu/e_log.S: New file.
23097         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23098         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23099
23100         * ctype/ctype.h: Add support for inlined isXXX functions when
23101         compiling C++ code.
23102
23103 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23104
23105         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23106
23107         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23108
23109 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23110
23111         [BZ #13291]
23112         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23113
23114 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23115
23116         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23117         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23118         feraiseexcept.
23119
23120         * sysdeps/x86_64/memrchr.S: Check for zero size.
23121
23122         * string/stratcliff.c: Add memrchr tests.
23123
23124 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23125
23126         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23127         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23128         rawmemchr-sse2 rawmemchr-sse2-bsf.
23129         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23130         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23131         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23132         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23133         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23134         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23135         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23136         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23137         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23138         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23139         * string/memrchr.c (MEMRCHR): New macro.
23140
23141 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23142
23143         Add integration with gcc's -ffinite-math-only and optimize wrapper
23144         functions in libm.
23145         * Versions.def: Define GLIBC_2.15 version for libm.
23146         * math/Makefile (headers): Add bits/math-finite.h.
23147         * math/bits/math-finite.h: New file.
23148         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23149         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23150         * math/e_acoshl.c: Add __*_finite alias.
23151         * math/e_acosl.c: Likewise.
23152         * math/e_asinl.c: Likewise.
23153         * math/e_atan2l.c: Likewise.
23154         * math/e_atanhl.c: Likewise.
23155         * math/e_coshl.c: Likewise.
23156         * math/e_exp10.c: Likewise.
23157         * math/e_exp10f.c: Likewise.
23158         * math/e_exp10l.c: Likewise.
23159         * math/e_exp2l.c: Likewise.
23160         * math/e_fmodl.c: Likewise.
23161         * math/e_gammal_r.c: Likewise.
23162         * math/e_hypotl.c: Likewise.
23163         * math/e_j0l.c: Likewise.
23164         * math/e_j1l.c: Likewise.
23165         * math/e_jnl.c: Likewise.
23166         * math/e_lgammal_r.c: Likewise.
23167         * math/e_log10l.c: Likewise.
23168         * math/e_log2l.c: Likewise.
23169         * math/e_logl.c: Likewise.
23170         * math/e_powl.c: Likewise.
23171         * math/e_sinhl.c: Likewise.
23172         * math/e_sqrtl.c: Likewise.
23173         * math/e_scalb.c: Completely rewritten and optimized.
23174         * math/e_scalbf.c: Likewise.
23175         * math/e_scalbl.c: Likewise.
23176         * math/w_acos.c: Likewise.
23177         * math/w_acosf.c: Likewise.
23178         * math/w_acosl.c: Likewise.
23179         * math/w_acosh.c: Likewise.
23180         * math/w_acoshf.c: Likewise.
23181         * math/w_acoshl.c: Likewise.
23182         * math/w_asin.c: Likewise.
23183         * math/w_asinf.c: Likewise.
23184         * math/w_asinl.c: Likewise.
23185         * math/w_atan2.c: Likewise.
23186         * math/w_atan2f.c: Likewise.
23187         * math/w_atan2l.c: Likewise.
23188         * math/w_atanh.c: Likewise.
23189         * math/w_atanhf.c: Likewise.
23190         * math/w_atanhl.c: Likewise.
23191         * math/w_exp10.c: Likewise.
23192         * math/w_exp10f.c: Likewise.
23193         * math/w_exp10l.c: Likewise.
23194         * math/w_fmod.c: Likewise.
23195         * math/w_fmodf.c: Likewise.
23196         * math/w_fmodl.c: Likewise.
23197         * math/w_j0.c: Likewise.
23198         * math/w_j0f.c: Likewise.
23199         * math/w_j0l.c: Likewise.
23200         * math/w_j1.c: Likewise.
23201         * math/w_j1f.c: Likewise.
23202         * math/w_j1l.c: Likewise.
23203         * math/w_jn.c: Likewise.
23204         * math/w_jnf.c: Likewise.
23205         * math/w_log.c: Likewise.
23206         * math/w_logf.c: Likewise.
23207         * math/w_logl.c: Likewise.
23208         * math/w_log10.c: Likewise.
23209         * math/w_log10f.c: Likewise.
23210         * math/w_log10l.c: Likewise.
23211         * math/w_log2.c: Likewise.
23212         * math/w_log2f.c: Likewise.
23213         * math/w_log2l.c: Likewise.
23214         * math/w_pow.c: Likewise.
23215         * math/w_powf.c: Likewise.
23216         * math/w_powl.c: Likewise.
23217         * math/w_remainder.c: Likewise.
23218         * math/w_remainderf.c: Likewise.
23219         * math/w_remainderl.c: Likewise.
23220         * math/w_scalb.c: Likewise.
23221         * math/w_scalbf.c: Likewise.
23222         * math/w_scalbl.c: Likewise.
23223         * math/w_sqrt.c: Likewise.
23224         * math/w_sqrtf.c: Likewise.
23225         * math/w_sqrtl.c: Likewise.
23226         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23227         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23228         used.
23229         * math/math_private.h: Declare __kernel_standard_f.
23230         * math/w_cosh.c: Remove cruft and optimize a bit.
23231         * math/w_coshf.c: Likewise.
23232         * math/w_coshl.c: Likewise.
23233         * math/w_exp2.c: Likewise.
23234         * math/w_exp2f.c: Likewise.
23235         * math/w_exp2l.c: Likewise.
23236         * math/w_hypot.c: Likewise.
23237         * math/w_hypotf.c: Likewise.
23238         * math/w_hypotl.c: Likewise.
23239         * math/w_lgamma.c: Likewise.
23240         * math/w_lgamma_r.c: Likewise.
23241         * math/w_lgammaf.c: Likewise.
23242         * math/w_lgammaf_r.c: Likewise.
23243         * math/w_lgammal.c: Likewise.
23244         * math/w_lgammal_r.c: Likewise.
23245         * math/w_sinh.c: Likewise.
23246         * math/w_sinhf.c: Likewise.
23247         * math/w_sinhl.c: Likewise.
23248         * math/w_tgamma.c: Likewise.
23249         * math/w_tgammaf.c: Likewise.
23250         * math/w_tgammal.c: Likewise.
23251         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23252         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23253         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23254         Minor optimizations.  Pretty printing.  Remove cruft.
23255         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23256         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23257         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23258         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23259         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23260         * sysdeps/i386/fpu/e_asin.S: Likewise.
23261         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23262         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23263         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23264         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23265         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23266         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23267         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23268         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23269         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23270         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23271         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23272         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23273         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23274         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23275         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23276         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23277         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23278         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23279         * sysdeps/i386/fpu/e_log.S: Likewise.
23280         * sysdeps/i386/fpu/e_log10.S: Likewise.
23281         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23282         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23283         * sysdeps/i386/fpu/e_log2.S: Likewise.
23284         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23285         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23286         * sysdeps/i386/fpu/e_logf.S: Likewise.
23287         * sysdeps/i386/fpu/e_logl.S: Likewise.
23288         * sysdeps/i386/fpu/e_pow.S: Likewise.
23289         * sysdeps/i386/fpu/e_powf.S: Likewise.
23290         * sysdeps/i386/fpu/e_powl.S: Likewise.
23291         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23292         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23293         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23294         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23295         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23296         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23297         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23298         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23299         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23300         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23301         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23302         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23303         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23304         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23305         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23306         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23307         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23308         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23309         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23310         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23311         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23312         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23313         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23314         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23315         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23316         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23317         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23318         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23319         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23320         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23321         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23322         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23323         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23324         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23325         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23326         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23327         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23328         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23329         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23330         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23331         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23332         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23333         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23334         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23335         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23336         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23337         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23338         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23339         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23340         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23341         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23342         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23343         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23344         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23345         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23346         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23347         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23348         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23349         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
23350         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23351         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23352         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23353         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23354         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23355         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23356         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23357         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23358         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23359         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23360         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23361         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23362         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23363         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23364         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23365         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23366         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23367         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23368         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
23369         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23370         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23371         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23372         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23373         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23374         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23375         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23376         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23377         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23378         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23379         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23380         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23381         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23382         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
23383         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23384         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23385         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23386         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23387         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23388         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23389         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23390         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23391         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23392         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23393         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
23394         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23395         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23396         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23397         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
23398         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
23399         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
23400         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
23401         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
23402         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
23403         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
23404         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
23405         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
23406         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
23407         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23408         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
23409         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
23410         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
23411         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
23412         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
23413         (__isnanf): Likewise.
23414         (__isinf_ns): Likewise.
23415         (__isinf_nsf): Likewise.
23416         (__finite): Likewise.
23417         (__finitef): Likewise.
23418         (__ieee754_sqrt): Define as macro.
23419         (__ieee754_sqrtf): Define as macro.
23420         (__ieee754_sqrtl): Define as macro.
23421         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
23422         inlined copy.
23423         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
23424         __FINITE_MATH_ONLY__ consistent.
23425         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
23426
23427 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
23428
23429         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
23430         of rawmemchr.
23431
23432         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
23433
23434 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
23435
23436         * po/ja.po: Update from translation team.
23437
23438 2011-10-08  Roland McGrath  <roland@hack.frob.com>
23439
23440         * locale/programs/locarchive.c (prepare_address_space): New function.
23441         (create_archive, enlarge_archive, open_archive): Use it.
23442
23443         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
23444         inside [SHARED], where it is used.
23445
23446         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
23447
23448         * nss/getent.c (netgroup_keys): Remove unused variable.
23449         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
23450
23451 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
23452
23453         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
23454         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
23455         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
23456         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
23457         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
23458         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
23459         * math/Makefile (libm-calls): Add s_isinf_ns.
23460         * math/divtc3.c: Use __isinf_nsl instead of isinf.
23461         * math/multc3.c: Likewise.
23462         * math/s_casin.c: Likewise.
23463         * math/s_casinf.c: Likewise.
23464         * math/s_casinl.c: Likewise.
23465         * math/s_ccos.c: Likewise.
23466         * math/s_ccosf.c: Likewise.
23467         * math/s_ccosl.c: Likewise.
23468         * math/s_ctan.c: Likewise.
23469         * math/s_ctanf.c: Likewise.
23470         * math/s_ctanh.c: Likewise.
23471         * math/s_ctanhf.c: Likewise.
23472         * math/s_ctanhl.c: Likewise.
23473         * math/s_ctanl.c: Likewise.
23474         * math/w_fmod.c: Likewise.
23475         * math/w_fmodf.c: Likewise.
23476         * math/w_fmodl.c: Likewise.
23477         * math/w_remainder.c: Likewise.
23478         * math/w_remainderf.c: Likewise.
23479         * math/w_remainderl.c: Likewise.
23480         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
23481         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
23482         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
23483         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
23484         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
23485         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
23486         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
23487         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
23488
23489         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
23490         of the number.
23491         * stdio-common/printf_fphex.c: Likewise.
23492         * stdio-common/printf_size.c: Likewise.
23493
23494         * math/e_exp10.c: Include math_private.h using <...> not "...".
23495         * math/e_exp10f.c: Likewise.
23496         * math/e_exp10l.c: Likewise.
23497         * math/e_exp2l.c: Likewise.
23498         * math/e_j0l.c: Likewise.
23499         * math/e_j1l.c: Likewise.
23500         * math/e_jnl.c: Likewise.
23501         * math/e_lgammal_r.c: Likewise.
23502         * math/e_rem_pio2l.c: Likewise.
23503         * math/e_scalb.c: Likewise.
23504         * math/e_scalbf.c: Likewise.
23505         * math/e_scalbl.c: Likewise.
23506         * math/k_cosl.c: Likewise.
23507         * math/k_sinl.c: Likewise.
23508         * math/k_tanl.c: Likewise.
23509         * math/s_cacoshf.c: Likewise.
23510         * math/s_catan.c: Likewise.
23511         * math/s_catanf.c: Likewise.
23512         * math/s_catanh.c: Likewise.
23513         * math/s_catanhf.c: Likewise.
23514         * math/s_catanhl.c: Likewise.
23515         * math/s_catanl.c: Likewise.
23516         * math/s_ccosh.c: Likewise.
23517         * math/s_ccoshf.c: Likewise.
23518         * math/s_ccoshl.c: Likewise.
23519         * math/s_cexp.c: Likewise.
23520         * math/s_cexpf.c: Likewise.
23521         * math/s_cexpl.c: Likewise.
23522         * math/s_clog.c: Likewise.
23523         * math/s_clog10.c: Likewise.
23524         * math/s_clog10f.c: Likewise.
23525         * math/s_clog10l.c: Likewise.
23526         * math/s_clogf.c: Likewise.
23527         * math/s_clogl.c: Likewise.
23528         * math/s_csin.c: Likewise.
23529         * math/s_csinf.c: Likewise.
23530         * math/s_csinh.c: Likewise.
23531         * math/s_csinhf.c: Likewise.
23532         * math/s_csinhl.c: Likewise.
23533         * math/s_csinl.c: Likewise.
23534         * math/s_csqrt.c: Likewise.
23535         * math/s_csqrtf.c: Likewise.
23536         * math/s_csqrtl.c: Likewise.
23537         * math/s_ctan.c: Likewise.
23538         * math/s_ctanf.c: Likewise.
23539         * math/s_ctanh.c: Likewise.
23540         * math/s_ctanhf.c: Likewise.
23541         * math/s_ctanhl.c: Likewise.
23542         * math/s_ctanl.c: Likewise.
23543         * math/s_ldexp.c: Likewise.
23544         * math/s_ldexpf.c: Likewise.
23545         * math/s_ldexpl.c: Likewise.
23546         * math/s_significand.c: Likewise.
23547         * math/s_significandf.c: Likewise.
23548         * math/s_significandl.c: Likewise.
23549         * math/w_acos.c: Likewise.
23550         * math/w_acosf.c: Likewise.
23551         * math/w_acosh.c: Likewise.
23552         * math/w_acoshf.c: Likewise.
23553         * math/w_acoshl.c: Likewise.
23554         * math/w_acosl.c: Likewise.
23555         * math/w_asin.c: Likewise.
23556         * math/w_asinf.c: Likewise.
23557         * math/w_asinl.c: Likewise.
23558         * math/w_atan2.c: Likewise.
23559         * math/w_atan2f.c: Likewise.
23560         * math/w_atan2l.c: Likewise.
23561         * math/w_atanh.c: Likewise.
23562         * math/w_atanhf.c: Likewise.
23563         * math/w_atanhl.c: Likewise.
23564         * math/w_cosh.c: Likewise.
23565         * math/w_coshf.c: Likewise.
23566         * math/w_coshl.c: Likewise.
23567         * math/w_dremf.c: Likewise.
23568         * math/w_exp10.c: Likewise.
23569         * math/w_exp10f.c: Likewise.
23570         * math/w_exp10l.c: Likewise.
23571         * math/w_exp2.c: Likewise.
23572         * math/w_exp2f.c: Likewise.
23573         * math/w_fmod.c: Likewise.
23574         * math/w_fmodf.c: Likewise.
23575         * math/w_fmodl.c: Likewise.
23576         * math/w_hypot.c: Likewise.
23577         * math/w_hypotf.c: Likewise.
23578         * math/w_hypotl.c: Likewise.
23579         * math/w_j0.c: Likewise.
23580         * math/w_j0f.c: Likewise.
23581         * math/w_j0l.c: Likewise.
23582         * math/w_j1.c: Likewise.
23583         * math/w_j1f.c: Likewise.
23584         * math/w_j1l.c: Likewise.
23585         * math/w_jn.c: Likewise.
23586         * math/w_jnf.c: Likewise.
23587         * math/w_jnl.c: Likewise.
23588         * math/w_lgamma.c: Likewise.
23589         * math/w_lgamma_r.c: Likewise.
23590         * math/w_lgammaf.c: Likewise.
23591         * math/w_lgammaf_r.c: Likewise.
23592         * math/w_lgammal.c: Likewise.
23593         * math/w_lgammal_r.c: Likewise.
23594         * math/w_log.c: Likewise.
23595         * math/w_log10.c: Likewise.
23596         * math/w_log10f.c: Likewise.
23597         * math/w_log10l.c: Likewise.
23598         * math/w_log2.c: Likewise.
23599         * math/w_log2f.c: Likewise.
23600         * math/w_log2l.c: Likewise.
23601         * math/w_logf.c: Likewise.
23602         * math/w_logl.c: Likewise.
23603         * math/w_pow.c: Likewise.
23604         * math/w_powf.c: Likewise.
23605         * math/w_powl.c: Likewise.
23606         * math/w_remainder.c: Likewise.
23607         * math/w_remainderf.c: Likewise.
23608         * math/w_remainderl.c: Likewise.
23609         * math/w_scalb.c: Likewise.
23610         * math/w_scalbf.c: Likewise.
23611         * math/w_scalbl.c: Likewise.
23612         * math/w_sinh.c: Likewise.
23613         * math/w_sinhf.c: Likewise.
23614         * math/w_sinhl.c: Likewise.
23615         * math/w_sqrt.c: Likewise.
23616         * math/w_sqrtf.c: Likewise.
23617         * math/w_sqrtl.c: Likewise.
23618         * math/w_tgamma.c: Likewise.
23619         * math/w_tgammaf.c: Likewise.
23620         * math/w_tgammal.c: Likewise.
23621
23622         * po/ja.po: Update from translation team.
23623
23624 2011-09-29  Andreas Jaeger  <aj@suse.de>
23625
23626         [BZ #13179]
23627         * sunrpc/netname.c (netname2host): Fix logic.
23628
23629         [BZ #6779]
23630         [BZ #6783]
23631         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
23632         correctly.
23633         * math/w_remainder.c (__remainder): Likewise.
23634         * math/w_remainderf.c (__remainderf): Likewise.
23635         * math/libm-test.inc (remainder_test): Add test cases.
23636
23637 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23638
23639         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
23640         sdiv_qrnnd.
23641
23642 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23643
23644         * string/test-memcmp.c: Avoid unncessary #defines.
23645         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23646
23647 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23648
23649         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
23650         Use new sse2 version for core i3 - i7 as it's faster
23651         than sse42 version.
23652         (bit_Prefer_PMINUB_for_stringop): New.
23653         * sysdeps/x86_64/rawmemchr.S: Update.
23654         Replace with faster SSE2 version.
23655         * sysdeps/x86_64/memrchr.S: New file.
23656         * sysdeps/x86_64/memchr.S: Update.
23657         Replace with faster SSE2 version.
23658
23659 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
23660
23661         * elf/dl-load.c (lose): Add cast to avoid warning.
23662
23663 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23664
23665         * po/ca.po: Update from translation team.
23666
23667         * inet/getnetgrent_r.c: Hook up nscd.
23668         * nscd/Makefile (routines): Add nscd_netgroup.
23669         (nscd-modules): Add netgroupcache.
23670         (CFLAGS-netgroupcache.c): Define.
23671         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
23672         (cache_search): Add const to second parameter.
23673         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
23674         INNETGR.
23675         (dbs): Add netgrdb entry.
23676         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
23677         (verify_persistent_db): Handle netgrdb.
23678         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
23679         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
23680         GETFDNETGR.
23681         (netgroup_response_header): Define.
23682         (innetgroup_response_header): Define.
23683         (datahead): Add netgroup_response_header and innetgroup_response_header
23684         elements.
23685         * nscd/nscd.conf: Add entries for netgroup cache.
23686         * nscd/nscd.h (dbtype): Add netgrdb.
23687         (_PATH_NSCD_NETGROUP_DB): Define.
23688         (netgroup_iov_disabled): Declare.
23689         (xmalloc, xcalloc, xrealloc): Move declarations here.
23690         (cache_search): Adjust prototype.
23691         Add netgroup-related prototypes.
23692         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
23693         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
23694         (__nscd_innetgr): Declare.
23695         * nscd/selinux.c (perms): Use access_vector_t as element type and
23696         add netgroup-related initializers.
23697         * nscd/netgroupcache.c: New file.
23698         * nscd/nscd_netgroup.c: New file.
23699         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
23700         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
23701         For four parameters use innetgr.
23702         * nss/nss_files/files-init.c: Add definition and callback for netgr.
23703         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
23704         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
23705         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
23706
23707         * nscd/connections.c (register_traced_file): Don't register file
23708         for disabled databases.
23709
23710 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
23711
23712         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
23713
23714         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
23715         from tree and freeing node.
23716
23717 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
23718
23719         * nss/nsswitch.c (__nss_database_lookup): Handle
23720         nss_parse_service_list out of memory case.
23721
23722 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
23723
23724         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
23725         out of memory case.
23726
23727 2011-10-04  Andreas Schwab  <schwab@redhat.com>
23728
23729         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
23730         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
23731         pass it down.
23732         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
23733         elf_machine_rela, elf_machine_lazy_rel.
23734         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
23735         (ELF_DYNAMIC_DO_REL): Likewise.
23736         (ELF_DYNAMIC_DO_RELA): Likewise.
23737         (ELF_DYNAMIC_RELOCATE): Likewise.
23738         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
23739         to ELF_DYNAMIC_DO_REL.
23740         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
23741         (dl_main): In trace mode always set __RTLD_NOIFUNC.
23742         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
23743         elf_machine_rela.
23744         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
23745         skip_ifunc, don't call ifunc function if non-zero.
23746         (elf_machine_rela): Likewise.
23747         (elf_machine_lazy_rel): Likewise.
23748         (elf_machine_lazy_rela): Likewise.
23749         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
23750         (elf_machine_lazy_rel): Likewise.
23751         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
23752         Likewise.
23753         (elf_machine_lazy_rel): Likewise.
23754         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23755         Likewise.
23756         (elf_machine_lazy_rel): Likewise.
23757         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
23758         (elf_machine_lazy_rel): Likewise.
23759         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
23760         (elf_machine_lazy_rel): Likewise.
23761         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
23762         (elf_machine_lazy_rel): Likewise.
23763         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
23764         (elf_machine_lazy_rel): Likewise.
23765         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
23766         (elf_machine_lazy_rel): Likewise.
23767         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
23768         (elf_machine_lazy_rel): Likewise.
23769
23770 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
23771
23772         * nss/nss_files/files-init.c (_nss_files_init): Use static
23773         initialization for all the *_traced_file variables.
23774
23775 2011-09-28  Andreas Schwab  <schwab@redhat.com>
23776
23777         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23778
23779 2011-09-27  Roland McGrath  <roland@hack.frob.com>
23780
23781         [BZ #13226]
23782         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
23783
23784 2011-09-27  Andreas Schwab  <schwab@redhat.com>
23785
23786         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23787         Reread the line before reparsing it.
23788
23789 2011-09-26  Andreas Schwab  <schwab@redhat.com>
23790
23791         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
23792
23793 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
23794             Maxim Kuvyrkov  <maxim@codesourcery.com>
23795             Joseph Myers  <joseph@codesourcery.com>
23796
23797         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
23798         if needed for __stack_chk_guard.
23799
23800 2011-09-19  Roland McGrath  <roland@hack.frob.com>
23801
23802         * sysdeps/posix/spawni.c (script_execute): Always define it.
23803         It will be optimized away if unused.
23804         (maybe_script_execute): New function.
23805         (__spawni): Call it.
23806
23807         * Makerules: Don't include tls.make.
23808         (config-tls): Always set to thread.
23809         * tls.make.c: File removed.
23810
23811 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
23812
23813         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
23814         * config.make.in (CPPFLAGS-config): New substituted variable.
23815
23816 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23817
23818         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
23819
23820         [BZ #13192]
23821         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
23822         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
23823
23824 2011-09-15  Roland McGrath  <roland@hack.frob.com>
23825
23826         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
23827         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
23828         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
23829         (CALL_FAIL): Likewise.
23830         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
23831         (CALL_FAIL): Macro removed.
23832         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
23833
23834 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23835
23836         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
23837         for __FINITE_MATH_ONLY__ == 1.
23838
23839 2011-09-15  Andreas Schwab  <schwab@redhat.com>
23840
23841         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
23842         __ieee754_sqrt instead of sqrt.
23843         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
23844         __ieee754_sqrtf instead of sqrtf.
23845         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
23846         __floorf instead of floorf.
23847         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
23848         __floorf, __truncf instead of floorf, truncf.
23849
23850 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
23851
23852         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
23853
23854         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
23855         __extern_always_inline.
23856         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
23857         32-bit.
23858
23859 2011-09-14  Andreas Schwab  <schwab@redhat.com>
23860
23861         * elf/rtld.c (dl_main): Also relocate in dependency order when
23862         doing symbol dependency testing.
23863
23864 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
23865
23866         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23867         Always define `refsym'.
23868
23869 2011-09-13  Andreas Schwab  <schwab@redhat.com>
23870
23871         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
23872         (__FD_ELT): Renamed from __FDELT.
23873         * misc/bits/select2.h (__FD_ELT): Likewise.
23874         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
23875         __FD_MASK instead of __FDELT, __FDMASK.
23876         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23877         Likewise.
23878         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23879         Likewise.
23880
23881         * elf/Makefile (gen-ldd): Fix pattern.
23882
23883         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
23884         (init_tls): Likewise.
23885
23886 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
23887
23888         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
23889
23890 2011-09-12  Andreas Schwab  <schwab@redhat.com>
23891
23892         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
23893         `struct cmsghdr *' instead of `void *'.
23894         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
23895         Likewise.
23896
23897 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
23898
23899         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
23900         if non-absolute.
23901         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
23902         ldd_rewrite_script.
23903
23904 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
23905
23906         * configure.in: Remove --with-tls option.
23907         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
23908         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
23909         out in case it is missing.
23910         * sysdeps/ia64/elf/configure.in: Likewise.
23911         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
23912         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
23913         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
23914         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
23915         * sysdeps/sh/elf/configure.in: Likewise.
23916         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
23917         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
23918         * sysdeps/x86_64/elf/configure.in: Likewise.
23919         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
23920         * sysdeps/mach/hurd/tls.h: Likewise.
23921
23922         [BZ #13067]
23923         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
23924
23925         [BZ #13090]
23926         * configure.in: Fix use of AC_INIT.
23927
23928         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
23929
23930 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
23931
23932         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
23933         __set_errno.
23934         * malloc/hooks.c: Likewise.
23935
23936         [BZ #11929]
23937         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
23938         variables statically.
23939         (narenas): Initialize.
23940         (list_lock): Initialize.
23941         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
23942         initializtion of main_arena and list_lock.  Small cleanups.
23943         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
23944         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
23945         Add initializers to main_arena and mp_.
23946         (malloc_state): Remove pagesize member.  Change all users to use
23947         GLRO(dl_pagesize).
23948
23949         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
23950         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
23951         is always initialized.
23952
23953         * malloc/malloc.c: Removed unused configurations and dead code.
23954         * malloc/arena.c: Likewise.
23955         * malloc/hooks.c: Likewise.
23956         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
23957
23958         * include/tls.h: Removed.  USE___THREAD must always be defined.
23959         * bits/libc-tsd.h: Don't handle !USE___THREAD.
23960         * elf/dl-libc.c: Likewise.
23961         * elf/dl-tsd.c: Likewise.
23962         * include/errno.h: Likewise.
23963         * include/netdb.h: Likewise.
23964         * include/resolv.h: Likewise.
23965         * inet/herrno-loc.c: Likewise.
23966         * inet/herrno.c: Likewise.
23967         * malloc/arena.c: Likewise.
23968         * malloc/hooks.c: Likewise.
23969         * malloc/malloc.c: Likewise.
23970         * resolv/res-state.c: Likewise.
23971         * resolv/res_libc.c: Likewise.
23972         * sysdeps/i386/dl-machine.h: Likewise.
23973         * sysdeps/ia64/dl-machine.h: Likewise.
23974         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
23975         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23976         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
23977         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
23978         * sysdeps/sh/dl-machine.h: Likewise.
23979         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
23980         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
23981         * sysdeps/unix/i386/sysdep.S: Likewise.
23982         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23983         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23984         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23985         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23986         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23987         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23988         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23989         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23990         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23991         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23992         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23993         * sysdeps/x86_64/dl-machine.h: Likewise.
23994         * tls.make.c: Likewise.
23995
23996         * configure.in: Remove --with-__thread option.  Make tests for
23997         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
23998         tls_model attribute fail if no support is available.  Remove
23999         USE_IN_LIBIO.
24000         * Makeconfig: Adjust for dropped configure option.  All features are
24001         now mandatory.
24002         * Makerules: Likewise.
24003         * Versions.def: Likewise.
24004         * argp/argp-fmtstream.c: Likewise.
24005         * argp/argp-fmtstream.h: Likewise.
24006         * argp/argp-help.c: Likewise.
24007         * assert/assert.c: Likewise.
24008         * config.h.in: Likewise.
24009         * config.make.in: Likewise.
24010         * configure: Likewise.
24011         * configure.in: Likewise.
24012         * csu/Versions: Likewise.
24013         * csu/init.c: Likewise.
24014         * elf/tst-audit2.c: Likewise.
24015         * elf/tst-tls10.c: Likewise.
24016         * elf/tst-tls10.h: Likewise.
24017         * elf/tst-tls11.c: Likewise.
24018         * elf/tst-tls12.c: Likewise.
24019         * elf/tst-tls14.c: Likewise.
24020         * elf/tst-tlsmod11.c: Likewise.
24021         * elf/tst-tlsmod12.c: Likewise.
24022         * elf/tst-tlsmod13.c: Likewise.
24023         * elf/tst-tlsmod13a.c: Likewise.
24024         * elf/tst-tlsmod14a.c: Likewise.
24025         * elf/tst-tlsmod15b.c: Likewise.
24026         * elf/tst-tlsmod16a.c: Likewise.
24027         * elf/tst-tlsmod16b.c: Likewise.
24028         * elf/tst-tlsmod7.c: Likewise.
24029         * elf/tst-tlsmod8.c: Likewise.
24030         * elf/tst-tlsmod9.c: Likewise.
24031         * gmon/gmon.c: Likewise.
24032         * grp/fgetgrent_r.c: Likewise.
24033         * grp/putgrent.c: Likewise.
24034         * hurd/fopenport.c: Likewise.
24035         * include/libc-symbols.h: Likewise.
24036         * include/tls.h: Likewise.
24037         * intl/gettextP.h: Likewise.
24038         * intl/loadinfo.h: Likewise.
24039         * locale/global-locale.c: Likewise.
24040         * locale/localeinfo.h: Likewise.
24041         * mach/devstream.c: Likewise.
24042         * malloc/arena.c: Likewise.
24043         * malloc/set-freeres.c: Likewise.
24044         * misc/err.c: Likewise.
24045         * misc/getttyent.c: Likewise.
24046         * misc/mntent_r.c: Likewise.
24047         * posix/getopt.c: Likewise.
24048         * posix/wordexp.c: Likewise.
24049         * pwd/fgetpwent_r.c: Likewise.
24050         * resolv/Versions: Likewise.
24051         * resolv/res_hconf.c: Likewise.
24052         * shadow/fgetspent_r.c: Likewise.
24053         * shadow/putspent.c: Likewise.
24054         * stdio-common/printf_fphex.c: Likewise.
24055         * stdio-common/tmpfile.c: Likewise.
24056         * stdlib/abort.c: Likewise.
24057         * stdlib/fmtmsg.c: Likewise.
24058         * sunrpc/auth_unix.c: Likewise.
24059         * sunrpc/clnt_perr.c: Likewise.
24060         * sunrpc/clnt_tcp.c: Likewise.
24061         * sunrpc/clnt_udp.c: Likewise.
24062         * sunrpc/clnt_unix.c: Likewise.
24063         * sunrpc/openchild.c: Likewise.
24064         * sunrpc/svc_simple.c: Likewise.
24065         * sunrpc/svc_tcp.c: Likewise.
24066         * sunrpc/svc_udp.c: Likewise.
24067         * sunrpc/svc_unix.c: Likewise.
24068         * sunrpc/xdr.c: Likewise.
24069         * sunrpc/xdr_array.c: Likewise.
24070         * sunrpc/xdr_rec.c: Likewise.
24071         * sunrpc/xdr_ref.c: Likewise.
24072         * sunrpc/xdr_stdio.c: Likewise.
24073
24074 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24075
24076         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24077
24078 2011-07-03  Andreas Jaeger  <aj@suse.de>
24079
24080         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24081         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24082         regenerate with gen-libm-tests.pl.
24083
24084 2010-05-12  Petr Baudis  <pasky@suse.cz>
24085
24086         [BZ #11589]
24087         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24088         around j0() zero points by switching to j1().
24089         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24090         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24091         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24092         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24093
24094 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24095
24096         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24097         instead of 0.
24098         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24099         instead of 0.
24100         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24101         Patch in part by Pavel Roskin <proski@gnu.org>.
24102
24103         [BZ #13138]
24104         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24105         realloc.
24106         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24107         Free memory block if necessary.
24108
24109         [BZ #12847]
24110         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24111         be NULL.  Don't lock in this case.
24112
24113 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24114
24115         * elf/elf.h (ELFOSABI_GNU): New macro.
24116         (ELFOSABI_LINUX): Define to that.
24117
24118 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24119
24120         * string/strncat.c (strncat): Undef the symbol in case it has been
24121         defined in bits/string.h.
24122
24123 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24124
24125         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24126
24127         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24128         link map.
24129
24130 2011-08-17  Andreas Jaeger  <aj@suse.de>
24131
24132         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24133
24134 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24135             Ian Lance Taylor  <iant@google.com>
24136
24137         * math/libm-test.inc (lround_test): New testcase.
24138         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24139
24140 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24141
24142         * Makefile: Remove support for automatic cvs check-ins.
24143         * Makerules: Likewise.
24144         * config.make.in: Likewise.
24145         * configure.in: Likewise.
24146         * intl/Makefile: Likewise.
24147         * locale/Makefile: Likewise.
24148         * po/Makefile: Likewise.
24149         * posix/Makefile: Likewise.
24150         * sysdeps/gnu/Makefile: Likewise.
24151         * sysdeps/mach/hurd/Makefile: Likewise.
24152         * sysdeps/sparc/sparc32/Makefile: Likewise.
24153
24154         [BZ #13118]
24155         * posix/Makefile (bug-regex32-ENV): Define.
24156         Patch by John Stanley <jpsinthemix@verizon.net>.
24157
24158         * misc/Makefile (headers): Add bits/select2.h.
24159         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24160         * misc/bits/select2.h: New file.
24161         * include/bits/select2.h: New file.
24162         * debug/Makefile (routines): Add fdelt_chk.
24163         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24164         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24165         FD_ISSET.
24166         * debug/fdelt_chk.c: New file.
24167
24168         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24169         * wcsmbs/test-wmemcmp.c: Likewise.
24170         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24171         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24172
24173 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24174
24175         * string/Makefile (strop-tests): Add memcmp.
24176         * string/test-wmemcmp.c: New file.
24177         * string/test-memcmp.c: Add wmemcmp support.
24178
24179 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24180
24181         [BZ #13153]
24182         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24183         2011-07-19 change.
24184
24185         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24186         garbage value in a __mach_port_mod_refs call in the cases of the
24187         task-self and thread-self ports.
24188
24189 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24190
24191         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24192
24193 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24194
24195         * elf/dl-load.c (lose): Check for non-null L.
24196
24197 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24198
24199         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24200
24201         * elf/dl-libc.c (dlerror_run): Pass back error code from
24202         dl_catch_error.
24203
24204         [BZ #13123]
24205         * elf/dl-load.c (lose): Free l_origin if it is valid.
24206
24207         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24208         names.
24209         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24210         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24211         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24212         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24213         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24214         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24215
24216 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24217
24218         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24219         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24220         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24221         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24222         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24223         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24224         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24225         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24226         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24227         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24228
24229 2011-08-15  Alan Modra  <amodra@gmail.com>
24230
24231         [BZ #13092]
24232         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24233         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24234         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24235         ppc_mcount to static-only-routines.
24236         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24237         __mcount_internal.
24238         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24239         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24240
24241 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24242
24243         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24244         for finite and infinity parameters.
24245
24246 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24247
24248         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24249         and add nop instructions for throughput optimization.
24250         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24251
24252 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24253
24254         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24255         aligned copy for power7 with vector-scalar instructions.
24256         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24257
24258 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24259
24260         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24261         AVX check.
24262
24263 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24264
24265         [BZ #13144]
24266         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24267         last change.
24268
24269 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24270
24271         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24272         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24273         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24274         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24275         clock_gettime.
24276
24277 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24278
24279         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24280         Forgot to demangle the pointer.
24281
24282         * sysdeps/i386/sysdep.h: Define atom_text_section.
24283         * sysdeps/x86_64/sysdep.h: Likewise.
24284         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24285         section with atom_text_section.
24286         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24287         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24288         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24289         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24290         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24291
24292         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24293         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24294         already be defined.  Change to take two parameters and don't assign
24295         result to variable.  Adjust all users.
24296         Define INTERNAL_GETTIME if not already defined.
24297         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24298         call.
24299         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24300         HAVE_CLOCK_GETTIME_VSYSCALL.
24301         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24302
24303         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24304         gettimeofday vsyscall, just use time.
24305
24306 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24307
24308         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24309         <errno.h>.
24310
24311 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24312
24313         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24314         syscall on x86-64.
24315         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24316         syscall.
24317         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24318         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24319         syscall if possible.
24320
24321 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24322
24323         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24324         e_ident.  Don't pass to find_mapsXX.
24325         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24326
24327 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24328
24329         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24330         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24331         * sysdeps/x86_64/multiarch/strchr.S: Update.
24332         Check bit_slow_BSF bit.
24333         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24334         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
24335         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
24336
24337 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24338
24339         [BZ #13134]
24340         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
24341         before glibc 2.15.
24342         (tryshell): Define.
24343         (__spawni): Change last parameter to be flag.  Test
24344         SPAWN_XFLAGS_USE_PATH flag to use path or not.
24345         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
24346         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
24347         * posix/spawni.c: Likewise.
24348         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
24349         * posix/spawnp.c: Likewise.  Change normal version to use
24350         SPAWN_XFLAGS_USE_PATH.
24351         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
24352         SPAWN_XFLAGS_TRY_SHELL.
24353
24354         [BZ #13150]
24355         * posix/glob.h: Remove gcc 1.x support.
24356
24357         [BZ #13068]
24358         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
24359
24360 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24361
24362         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24363         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
24364         strrchr-sse2-bsf
24365         * sysdeps/i386/i686/multiarch/strchr.S: New file.
24366         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
24367         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
24368         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
24369         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
24370         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
24371
24372 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24373
24374         * sysdeps/x86_64/wcscmp.S: New file.
24375
24376         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
24377         wcscmp-c wcscmp-sse2
24378         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
24379         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
24380         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
24381         * wcsmbs/wcscmp.c: Allow renaming.
24382
24383 2011-09-05  David S. Miller  <davem@davemloft.net>
24384
24385         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
24386         stack slot, rather than the struct return pointer slot.
24387         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
24388         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
24389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
24390         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
24391
24392 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24393
24394         * po/ja.po: Update from translation team.
24395
24396         [BZ #13144]
24397         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
24398         kernel in 64-bit binaries.
24399
24400 2011-09-01  David S. Miller  <davem@davemloft.net>
24401
24402         * elf/elf.h (HWCAP_SPARC_*): Move to..
24403         * sysdeps/sparc/sysdep.h: this new file and add new values.
24404         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
24405         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
24406         _DL_HWCAP_COUNT to 24.
24407         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
24408         entries.
24409         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
24410         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
24411         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
24412         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
24413         instead of magic constants.
24414         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24415
24416 2011-08-31  David S. Miller  <davem@davemloft.net>
24417
24418         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
24419         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
24420         Reimplement to do errno handling inline.
24421         (SYSCALL_ERROR_HANDLER): New macro.
24422         (__SYSCALL_STRING): Do not do errno handling in asm.
24423         (__CLONE_SYSCALL_STRING): Delete.
24424         (__INTERNAL_SYSCALL_STRING): Delete.
24425         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
24426         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
24427         (PSEUDO): Reimplement to do errno handling inline.
24428         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
24429         (SYSCALL_ERROR_HANDLER): New macro.
24430         (__SYSCALL_STRING): Do not do errno handling in asm.
24431         (__CLONE_SYSCALL_STRING): Delete.
24432         (__INTERNAL_SYSCALL_STRING): Delete.
24433         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
24434         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
24435         i386.
24436         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
24437         (inline_syscall*): Add 'err' argument.
24438         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
24439         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
24440         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
24441         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
24442
24443         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
24444         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
24445
24446 2011-08-30  Andreas Schwab  <schwab@redhat.com>
24447
24448         * elf/rtld.c (dl_main): Relocate objects in dependency order.
24449
24450 2011-08-29  Jiri Olsa <jolsa@redhat.com>
24451
24452         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
24453         directive.
24454
24455 2011-08-24  David S. Miller  <davem@davemloft.net>
24456
24457         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
24458
24459 2011-08-24  Andreas Schwab  <schwab@redhat.com>
24460
24461         * elf/Makefile: Add rules to build and run unload8 test.
24462         * elf/unload8.c: New file.
24463         * elf/unload8mod1.c: New file.
24464         * elf/unload8mod1x.c: New file.
24465         * elf/unload8mod2.c: New file.
24466         * elf/unload8mod3.c: New file.
24467
24468         * elf/dl-close.c (_dl_close_worker): Reset private search list if
24469         it wasn't used.
24470
24471 2011-08-23  David S. Miller  <davem@davemloft.net>
24472
24473         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
24474         subtract stack bias.
24475         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
24476         %sp not %fp in calculations.
24477         (_JMPBUF_UNWINDS_ADJ): Likewise.
24478
24479         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
24480         (aio_suspend): Call it to force an exception region around the
24481         AIO_MISC_WAIT() invocation.
24482
24483 2011-08-23  Andreas Schwab  <schwab@redhat.com>
24484
24485         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
24486         backslash.
24487
24488 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
24489
24490         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
24491         protection macro.
24492         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
24493         and <dl-machine.h>.
24494         (Elf64_FuncDesc): Remove.
24495
24496 2011-08-22  David S. Miller  <davem@davemloft.net>
24497
24498         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
24499         sigaltstack check, add missing cfi directives.
24500         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
24501         missing cfi directives, and sigaltstack handling.
24502
24503 2011-08-16  Andreas Schwab  <schwab@redhat.com>
24504
24505         [BZ #11724]
24506         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
24507         object is seen twice.
24508         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24509
24510         * elf/Makefile (distribute): Add tst-initorder2.c.
24511         (tests): Add tst-initorder2.
24512         (modules-names): Add tst-initorder2a tst-initorder2b
24513         tst-initorder2c tst-initorder2d.  Add rules to build them.
24514         ($(objpfx)tst-initorder2.out): New rule.
24515         * elf/tst-initorder2.c: New file.
24516         * elf/tst-initorder2.exp: New file.
24517
24518 2011-08-22  Andreas Schwab  <schwab@redhat.com>
24519
24520         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
24521
24522         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
24523         dependencies back to end of function.
24524
24525         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
24526         $(elfobjdir)/ld.so.
24527
24528 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
24529
24530         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
24531         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
24532         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
24533         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
24534         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
24535         of __vdso_gettimeofday.
24536         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
24537         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
24538         attribute_hidden.
24539         (_libc_vdso_platform_setup): Remove initialization of
24540         __vdso_gettimeofday and __vdso_time.
24541
24542 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24543
24544         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
24545         and fgetc_unlocked.
24546         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
24547         getc_unlocked.
24548
24549         * elf/dl-open.c (add_to_global): Report additions to the global scope
24550         for LD_DEBUG=scopes.
24551         (dl_open_worker): Also print scope of newly loaded dependencies.
24552         (_dl_show_scope): Indicate if there is no scope.
24553
24554         [BZ #13114]
24555         * stdio-common/Makefile (tests): Add bug24.
24556         * stdio-common/bug24.c: New file.
24557
24558 2011-08-19  Andreas Jaeger  <aj@suse.de>
24559
24560         [BZ #13114]
24561         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
24562         non-existant file when using close-on-exec mode.
24563
24564 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24565
24566         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
24567         the very first instruction.
24568
24569         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
24570         the CFI state in the end.
24571         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
24572         inclusion of dl-trampoline.h.
24573         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
24574
24575 2011-08-19  Andreas Schwab  <schwab@redhat.com>
24576
24577         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
24578         expectations for long double.
24579
24580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
24581         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
24582
24583 2011-08-14  David S. Miller  <davem@davemloft.net>
24584
24585         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
24586         artificual limit depends upon the system page size.
24587
24588 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24589
24590         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
24591         * resolv/Makefile: Define CFLAGS-libresolv.
24592
24593 2011-08-17  Andreas Schwab  <schwab@redhat.com>
24594
24595         * nss/makedb.c (compute_tables): Make variables used in nested
24596         function static.
24597
24598 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24599
24600         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
24601         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
24602         if buffer was too small.
24603
24604         * elf/pldd.c (main): Attach to all threads in the process.
24605         Rewrite /proc handling to use *at functions.
24606
24607 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
24608
24609         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
24610         specifies first scope to show.
24611         (dl_open_worker): Update callers.  Move printing scope of new
24612         object to before the relocation.
24613         * elf/rtld.c (dl_main): Update _dl_show_scope call.
24614         * sysdeps/generic/ldsodefs.h: Update declaration.
24615
24616         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
24617         string for the scope number.
24618
24619 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
24620
24621         * nscd/servicescache.c (cache_addserv): Make sure written is always
24622         initialized.
24623
24624 2011-08-14  Roland McGrath  <roland@hack.frob.com>
24625
24626         * sysdeps/i386/i486/bits/atomic.h
24627         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
24628         statement expression, so as to suppress "set but not used" warning.
24629         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
24630
24631         * string/strncat.c (STRNCAT): Use prototype definition.
24632
24633         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
24634         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
24635         -Iprograms here.
24636         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
24637         (localedef-modules): Add localedef.
24638         (locale-modules): Add locale.
24639
24640         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
24641         * elf/rtld.c (dl_main): Invert order of assignment in last change,
24642         to avoid a warning.
24643
24644 2011-08-14  David S. Miller  <davem@davemloft.net>
24645
24646         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
24647         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
24648
24649 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
24650
24651         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
24652         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
24653         * elf/rtld.c (dl_main): Set l_name of vDSO.
24654         Call _dl_show_scope when DL_DEBUG_SCOPES.
24655         (process_dl_debug): Recognize scopes flag and also set it for all.
24656         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
24657         Declare _dl_show_scope.
24658
24659         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
24660         (do_dlopen): Pass caller_dlopen to dl_open.
24661         (__libc_dlopen_mode): Initialize caller_dlopen.
24662
24663         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
24664         of libc.  Make tolower call locale-independent.  Optimize a bit by
24665         using isdigit instead of isalnum.
24666         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
24667
24668 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
24669
24670         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
24671         was a dependency or dynamically loaded.
24672
24673 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
24674
24675         * intl/l10nflist.c: Allow architecture-specific pop function.
24676         * sysdeps/x86_64/l10nflist.c: New file.
24677
24678         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
24679         classification.
24680
24681 2011-08-10  Andreas Schwab  <schwab@redhat.com>
24682
24683         * include/dirent.h: Add libc_hidden_proto for scandirat and
24684         scandirat64.  Don't declare __scandirat64.
24685         * dirent/scandirat.c: Add libc_hidden_def.
24686         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
24687         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
24688
24689 2011-08-10  David S. Miller  <davem@davemloft.net>
24690
24691         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
24692         enum.
24693         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24694         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24695         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24696
24697 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
24698
24699         * Versions.def [libc]: Add GLIBC_2.15.
24700         * dirent/Makefile (routines): Add scandirat and scandirat64.
24701         * dirent/Versions [libc]: Export scandirat and scandirat64 for
24702         GLIBC_2.15.
24703         * dirent/dirent.h: Declare scandirat and scandirat64.
24704         * dirent/scandirat.c: New file.
24705         * dirent/scandirat64.c: New file.
24706         * sysdeps/wordsize-64/scandirat.c: New file.
24707         * sysdeps/wordsize-64/scandirat64.c: New file.
24708         * dirent/opendir.c: Define opendirat.
24709         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
24710         using scandirat.
24711         * dirent/scandir64.c: Adjust for scandir.c change.
24712         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
24713         __scandirat64, and __scandir_cancel_handler.
24714         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
24715         additional parameter and use openat instead of open (outside of ld.so).
24716         Add new __opendir as wrapper around __opendirat.
24717         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
24718         here without requiring old scandirat implementation.
24719
24720 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
24721
24722         * dirent/scandir.c (cancel_handler): Renamed to
24723         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
24724         defined.  Adjust users.
24725         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
24726         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
24727
24728 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
24729
24730         * string/test-string.h (IMPL): Use __STRING to expand name and then
24731         stringify it.
24732
24733         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
24734         of cleanups.
24735
24736 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24737
24738         * string/Makefile: Update.
24739         (strop-tests): Append strncat.
24740         * string/test-wcscmp.c: New file.
24741         New comprehensive test for wcscmp.
24742         * string/test-strcmp.c: Update.
24743         (WIDE): New define.
24744
24745 2011-07-22  Andreas Schwab  <schwab@redhat.com>
24746
24747         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
24748         line.
24749
24750 2011-07-26  Andreas Schwab  <schwab@redhat.com>
24751
24752         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
24753         encoding to ACE if AI_IDN.
24754
24755 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
24756
24757         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
24758         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
24759
24760 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24761
24762         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
24763         Fix overflow bug in strncat.
24764         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24765
24766         * string/test-strncat.c: Update.
24767         Add new tests for checking overflow bugs.
24768
24769 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24770
24771         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24772         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
24773         * sysdeps/i386/i686/multiarch/strcat.S: New file.
24774         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
24775         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
24776         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
24777         * sysdeps/i386/i686/multiarch/strncat.S: New file.
24778         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
24779         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
24780
24781         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
24782         (USE_AS_STRCAT): Define.
24783         Add strcat and strncat support.
24784         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24785
24786 2011-07-25  Andreas Schwab  <schwab@redhat.com>
24787
24788         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
24789         __n bigger than INT_MAX+1.
24790         (__strncmp_g): Likewise.
24791
24792 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
24793
24794         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
24795         * libio/stido.h: Likewise.
24796
24797         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
24798         (AF_NFC): Define.
24799         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
24800         (AF_NFC): Define.
24801
24802         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
24803         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24804         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24805         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24806         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24807
24808         [BZ #13021]
24809         * scripts/test-installation.pl: Don't expect libnss_test1 to be
24810         installed.
24811
24812         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
24813         typo.
24814         (_dl_x86_64_save_sse): Likewise.
24815
24816 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
24817
24818         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
24819         OSXSAVE.
24820         (_dl_x86_64_save_sse): Likewise.
24821
24822         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
24823
24824         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
24825
24826 2011-07-21  Andreas Schwab  <schwab@redhat.com>
24827
24828         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
24829         change.
24830         (_dl_x86_64_save_sse): Use correct AVX check.
24831
24832 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24833
24834         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
24835         bug in strncpy/strncat.
24836         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24837
24838 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
24839
24840         * string/tester.c (test_strcat): Add tests for different alignments
24841         of source and destination.
24842         (test_strncat): Likewise.
24843
24844 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24845
24846         [BZ #12852]
24847         * posix/glob.c (glob): Check passed in values before using them in
24848         expressions to avoid some overflows.
24849         (glob_in_dir): Likewise.
24850
24851         [BZ #13007]
24852         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
24853         check for AVX enablement so that we don't crash with old kernels and
24854         new hardware.
24855         * elf/tst-audit4.c: Add same checks here.
24856         * elf/tst-audit6.c: Likewise.
24857
24858         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
24859
24860 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
24861
24862         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
24863
24864 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24865
24866         * po/cs.po: Update from translation team.
24867         * po/bg.po: Likewise.
24868
24869 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
24870
24871         * misc/sys/cdefs.h: Add support for const attribute.
24872         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
24873         to gnu_dev_{major,minor,makedev} functions.
24874
24875 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
24876
24877         * intl/dcigettext.c (get_output_charset): Add missing bracket.
24878
24879 2011-07-20  Andreas Schwab  <schwab@redhat.com>
24880
24881         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
24882         strlen results.
24883
24884 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24885
24886         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
24887         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
24888         register in order to avoid conflicts with the soft frame pointer
24889         being held in r11 when necessary.
24890         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24891         (INTERNAL_VSYSCALL_NCS): Likewise.
24892
24893 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
24894
24895         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
24896         * elf/dl-fini.c (_dl_fini): Adjust caller.
24897         * elf/dl-close.c (_dl_close_worker): Likewise.
24898         * sysdeps/generic/ldsodefs.h: Adjust declaration.
24899
24900 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24901
24902         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
24903         "aux_cache->nlibs < 0".
24904
24905         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
24906         in the reload-count case.
24907
24908 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24909
24910         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24911         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
24912         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
24913         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
24914         * sysdeps/x86_64/multiarch/strcat.S: New file.
24915         * sysdeps/x86_64/multiarch/strncat.S: New file.
24916         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
24917         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
24918         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
24919         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
24920         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
24921         (USE_AS_STRCAT): Define.
24922         Add strcat and strncat support.
24923         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24924         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24925         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
24926         * string/strncat.c: Update.
24927         (USE_AS_STRNCAT): Define.
24928         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24929         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
24930         and i7.
24931         * sysdeps/x86_64/multiarch/init-arch.h
24932         (bit_Prefer_PMINUB_for_stringop): New.
24933         (index_Prefer_PMINUB_for_stringop): Likewise.
24934         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
24935         bit_Prefer_PMINUB_for_stringop.
24936
24937 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24938
24939         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
24940         buffer64.
24941         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
24942         of casting of buffer.
24943         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
24944         buffer32 and buffer64.
24945         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
24946         writes instead of casting of buffer.
24947         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
24948         buffer32.
24949         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
24950         casting of buffer.
24951
24952 2011-07-19  Andreas Schwab  <schwab@redhat.com>
24953
24954         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
24955
24956 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24957
24958         * nscd/nscd.c (termination_handler): Don't do anything for a database
24959         if it has not yet been initialized.
24960
24961 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24962
24963         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24964
24965 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24966
24967         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24968
24969 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24970
24971         * po/nl.po: Update from translation team.
24972         * po/sv.po: Likewise.
24973
24974 2011-07-16  Roland McGrath  <roland@hack.frob.com>
24975
24976         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
24977         now disallowed by GCC.
24978
24979         * configure.in (use-default-link): Default to yes if a test -shared
24980         link meets our qualifications.
24981         * configure: Regenerated.
24982
24983         * config.make.in (output-format): New variable.
24984         * configure.in: Check for ld --print-output-format support.
24985         * configure: Regenerated.
24986         * Makerules ($(common-objpfx)format.lds)
24987         [$(output-format) != unknown]: Just use $(output-format),
24988         instead of the linker-script munging.
24989
24990 2011-07-14  Roland McGrath  <roland@hack.frob.com>
24991
24992         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
24993         of $(common-objpfx)shlib.lds.
24994         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
24995
24996         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
24997         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
24998
24999         * configure.in (-z relro check): Adjust test code to add a large
25000         writable data section after it.
25001         * configure: Regenerated.
25002
25003 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25004
25005         * configure.in (-z relro check): Fix test code to make the variable
25006         truly const.
25007         * configure: Regenerated.
25008
25009 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25010
25011         * nscd/nscd.h (struct traced_file): Define.
25012         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25013         elements.  Add traced_files.
25014         (inotify_fd): Declare.
25015         (register_traced_file): Declare.
25016         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25017         (inotify_fd): Export.
25018         (resolv_conf_descr): Remove.
25019         (nscd_init): Move inotify descriptor creation to main.
25020         Don't register files for notification here.
25021         (register_traced_file): New function.
25022         (invalidate_cache): Don't use reset_res to determine whether to call
25023         res_init, go through the list of registered files.
25024         (main_loop_poll): The inotify descriptors are now stored in the
25025         structures for the traced files.
25026         (main_loop_epoll): Likewise
25027         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25028         to __nss_disable_nscd.
25029         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25030         for a database anymore.  Check the records for all the registered
25031         files instead.
25032         * nss/Makefile (libnss_files-routines): Add files-init.
25033         (libnss_db-routines): Add db-init.
25034         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25035         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25036         * nss/nss_db/db-init.c: New file.
25037         * nss/nss_files/files-init.c: New file.
25038         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25039         __nss_lookup_function.
25040         (__nss_lookup_function): Call nss_load_library.
25041         (nss_load_all_libraries): New function.
25042         (__nss_disable_nscd): Take parameter with callback function for files
25043         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25044         used for the cached services.
25045         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25046         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25047         options for features to all the files in nscd.
25048
25049         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25050
25051 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25052
25053         * csu/elf-init.c (__libc_csu_init): Comment typo.
25054
25055 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25056
25057         * po/pl.po: Update from translation team.
25058         * po/ja.po: Likewise.
25059         * po/ru.po: Likewise.
25060         * po/ko.po: Likewise.
25061         * po/fr.po: Likewise.
25062
25063 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25064
25065         * configure.in (.ctors/.dtors header and trailer check):
25066         Use an empirical test on a built program.
25067         * configure: Regenerated.
25068
25069         * configure.in (-z relro check): Use an empirical test on a built DSO.
25070         Detect, but do not require, on ia64.
25071         * configure: Regenerated.
25072
25073         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25074         Update tests that use readelf to use $READELF instead.
25075         * configure: Regenerated.
25076
25077 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25078
25079         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25080         if the result is not used.
25081
25082 2011-07-05  Andreas Jaeger  <aj@suse.de>
25083
25084         [BZ#9696]
25085         * stdlib/tst-strtod.c: Add testcase.
25086
25087 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25088
25089         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25090         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25091         The latter has a higher limit.  Take additional parameter to pass to
25092         the new function.
25093         (__pathconf): Pass file to __statfs_link_max.
25094         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25095         __statfs_link_max.
25096         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25097         __statfs_link_max.
25098
25099         [BZ #12868]
25100         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25101         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25102         Handle Lustre.
25103         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25104         (__statfs_filesize_max): Likewise.
25105         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25106
25107 2011-07-05  Andreas Jaeger  <aj@suse.de>
25108
25109         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25110
25111 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25112
25113         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25114         `status' variable.
25115         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25116         Likewise.
25117
25118 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25119
25120         * Makefile (strop-tests): Add strncat.
25121         * string/test-strncat.c: New file.
25122
25123 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25124
25125         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25126
25127 2011-06-21  Andreas Jaeger  <aj@suse.de>
25128
25129         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25130         Copy rule from iconvdata/Makefile.
25131
25132 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25133
25134         [BZ #12922]
25135         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25136         but no long options are defined, just return 'W'.
25137
25138 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25139
25140         [BZ #9696]
25141         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25142
25143 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25144
25145         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25146         netgroups to read.
25147         (innetgr): Likewise.
25148
25149 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25150
25151         * config.make.in (install_root): Default to $(DESTDIR).
25152
25153 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25154
25155         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25156
25157 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25158
25159         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25160
25161         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25162         containing directory rather than embedding absolute directory names.
25163
25164         * scripts/check-local-headers.sh: Rewritten using awk.
25165         Match by word, not by line.  Print error messages for matches.
25166         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25167
25168         * Makerules [shlib-lds-flags empty]:
25169         ($(common-objpfx)libc_pic.opts): New target.
25170         ($(common-objpfx)libc_pic.os.clean): New target.
25171         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25172
25173         * config.make.in (OBJCOPY): New variable.
25174         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25175         * configure: Regenerated.
25176
25177         * config.make.in (use-default-link): New variable.
25178         * configure.in (use_default_link): Grok --with-default-link to set it.
25179         * configure: Regenerated.
25180         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25181         (shlib-lds, shlib-lds-flags): Define to empty.
25182
25183         * Makerules (shlib-lds): New variable.
25184         (shlib-lds-flags): New variable.
25185         (build-shlib, build-moduile, build-module-asneeded): Use it.
25186         ($(common-objpfx)libc.so): Use $(shlib-lds).
25187         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25188         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25189
25190         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25191         DT_FLAGS/DT_FLAGS_1 with zero flags.
25192
25193         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25194         linker script munging.
25195
25196 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25197
25198         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25199         as 128-bit value.
25200         * crypt/sha512.c (sha512_process_block): Perform total addition using
25201         128-bit if possible.
25202         (__sha512_finish_ctx): Likewise.
25203         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25204         as 64-bit value.
25205         * crypt/sha256.c (SWAP64): Define.
25206         (sha256_process_block): Perform total addition using 64-bit if
25207         possible.
25208         (__sha256_finish_ctx): Likewise.
25209
25210 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25211
25212         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25213         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25214         * nscd/hstcache.c (cache_addhst): Likewise.
25215         * nscd/grpcache.c (cache_addgr): Likewise.
25216         * nscd/aicache.c (addhstaiX): Likewise
25217         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25218
25219 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25220
25221         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25222         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25223         * nscd/hstcache.c (cache_addhst): Likewise.
25224         * nscd/grpcache.c (cache_addgr): Likewise.
25225         * nscd/aicache.c (addhstaiX): Likewise
25226
25227 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25228
25229         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25230         domain only when needed.
25231
25232 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25233
25234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25235         is always restored.
25236
25237 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25238
25239         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25240         are re-adding the entry.
25241         * nscd/servicescache.c (cache_addserv): Likewise.
25242
25243 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25244
25245         * sysdeps/generic/dl-irel.h: fix protection against multiple
25246         inclusions.
25247         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25248
25249 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25250
25251         [BZ #12935]
25252         * malloc/memusage.sh: Fix quoting in message.
25253         * debug/xtrace.sh: Likewise.
25254
25255         * configure.in: Remove support for --experimental-malloc option, make
25256         it the default.
25257         * config.make.in: Likewise.
25258         * malloc/Makefile: Likewise.
25259
25260 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25261
25262         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25263         two-byte characters.
25264
25265 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25266
25267         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25268         AC_CACHE_CHECK invocation.
25269         * configure: Regenerated.
25270
25271         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25272
25273 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25274
25275         [BZ #12350]
25276         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25277         bit from old_res_options.
25278
25279         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25280
25281         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25282         value type for setfct.
25283
25284 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25285
25286         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25287         __gettimeofday instead of gettimeofday.
25288
25289 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25290
25291         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25292
25293 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25294
25295         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25296
25297         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25298         info.
25299
25300 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25301
25302         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25303         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25304         strcpy-sse2-unaligned strncpy-sse2-unaligned
25305         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25306         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25307         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25308         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25309         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25310         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25311         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25312         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25313         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25314         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25315         (STRCPY): Support SSE2 and SSSE3 versions.
25316
25317 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25318
25319         [BZ #12874]
25320         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25321         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25322         kernels which artificially limit size of requests.
25323
25324 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25325
25326         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25327         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25328         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25329         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25330         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25331         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25332         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25333         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
25334         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
25335         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
25336         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
25337         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
25338         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
25339         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
25340         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
25341         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25342         Enable unaligned load optimization for Intel Core i3, i5 and i7
25343         processors.
25344         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
25345         Define.
25346         (index_Fast_Unaligned_Load): Define.
25347         (HAS_FAST_UNALIGNED_LOAD): Define.
25348
25349 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
25350
25351         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
25352
25353 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25354
25355         [BZ #12907]
25356         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
25357         until it is clear that the information is realy needed.
25358         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
25359
25360 2011-06-22  Andreas Schwab  <schwab@redhat.com>
25361
25362         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
25363
25364 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25365
25366         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25367         /sys/devices/system/cpu/online if it is usable.
25368
25369         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
25370         reading the information from the /proc filesystem to once a second.
25371
25372 2011-06-21  Andreas Jaeger  <aj@suse.de>
25373
25374         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
25375         NULL after inclusion of kernel headers.
25376
25377 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
25378
25379         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
25380         calls to internal_setent.
25381
25382         [BZ #12885]
25383         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
25384         addresses using gethostbyname4_r ignore IPv4 addresses.
25385
25386         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
25387         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
25388
25389         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
25390
25391 2011-06-20  David S. Miller  <davem@davemloft.net>
25392
25393         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
25394         inclusions.
25395         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
25396
25397         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
25398         (elf_irel): Use it.
25399         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
25400         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
25401         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
25402         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
25403         * sysdeps/x86_64/dl-irel.h: Likewise.
25404
25405         * elf/dl-runtime.c: Use elf_ifunc_invoke.
25406         * elf/dl-sym.c: Likewise.
25407
25408 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25409
25410         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
25411         need to dereference resplen2.
25412
25413 2011-06-14  Andreas Schwab  <schwab@redhat.com>
25414
25415         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
25416
25417 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25418
25419         * Makeconfig: Define vardbdir and inst_vardbdir.
25420         * nss/Makefile: Add rules to install db-Makefile.
25421
25422         * nss/nss_db/db-XXX.c: Cleanup.
25423
25424         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
25425         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
25426         GLIBC_PRIVATE.
25427         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
25428         * nss/makedb.c: Implement -g option to specify that value strings
25429         are generated and should not be added to table iterated over for
25430         get*ent calls.
25431         * nss/nss_db/db-initgroups.c: New file.
25432
25433         * nss/getent.c: Add support for initgroups lookups through getgrouplist
25434         interface.
25435
25436         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
25437         (internal_getgrouplist): Adjust to name change.
25438         Update use_initgroups_entry if this is not the first call.
25439         * nss/databases.def: Add initgroups entry.
25440
25441         * nss/makedb.c (compute_tables): Check result of multiple hash table
25442         sizes to minimize maximum chain length.
25443
25444 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
25445
25446         * Versions.def: Add entry for libnss_db.
25447         * shlib-versions: Likewise.
25448         * nss/Makefile: Add rules to build libnss_db.
25449         * nss/Versions: Add libnss_db information.  Organize libnss_files
25450         entries better.
25451         * nss/db-Makefile: Add gshadow support.  Change rules for the new
25452         makedb progra.  Some minor improvements to generate smaller files.
25453         * nss/nss_db/nss_db.h: Move NSS database header data structures to
25454         here from...
25455         * nss/makedb.c: ...here.
25456         Improve database format to be smaller and require less memory at
25457         runtime.
25458         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
25459         db anymore.
25460         * nss/nss_db/db-netgrp.c: Likewise.
25461         * nss/nss_db/db-open.c: Likewise.
25462         * nss/nss_files/flies-XXX.x: Adjust comments.
25463         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
25464         * nss/nss_files/files-grp.c: Likewise.
25465         * nss/nss_files/files-hosts.c: Likewise.
25466         * nss/nss_files/files-network.c: Likewise.
25467         * nss/nss_files/files-proto.c: Likewise.
25468         * nss/nss_files/files-pwd.c: Likewise.
25469         * nss/nss_files/files-rpc.c: Likewise.
25470         * nss/nss_files/files-service.c: Likewise.
25471         * nss/nss_files/files-sgrp.c: Likewise.
25472         * nss/nss_files/files-spwd.c: Likewise.
25473         * nss/nss_db/db-alias.c: Removed.
25474         * nss/nss_db/dummy-db.h: Removed.
25475
25476 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
25477
25478         * nss/makedb.c: Rewritten to not use database library.
25479         * nss/Makefile: Update to build new makedb program.
25480
25481 2011-06-14  Andreas Jaeger  <aj@suse.de>
25482
25483         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
25484         memset declaration.
25485
25486 2011-06-10  Andreas Schwab  <schwab@redhat.com>
25487
25488         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
25489         tmpbuf.
25490
25491 2011-06-10  Roland McGrath  <roland@hack.frob.com>
25492
25493         * Makerules (shlib.lds): Fail if the linker script comes out empty.
25494         * elf/Makefile ($(objpfx)ld.so): Likewise.
25495
25496         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
25497         Don't list ld.so twice in dependencies.
25498
25499         * posix/bug-regex31.c: Include <stdlib.h>.
25500
25501         * nscd/hstcache.c (cache_addhst): Remove unused variable.
25502
25503         * nis/nss_compat/compat-spwd.c
25504         (getspent_next_nss_netgr): Remove unused variable.
25505         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
25506
25507         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
25508         nonmembers" output to use the right array.
25509
25510         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
25511
25512         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
25513
25514         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
25515         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
25516         * catgets/gencat.c (read_input_file): Likewise.
25517         * locale/programs/locarchive.c (enlarge_archive): Likewise.
25518
25519         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
25520         variable definition inside #if's controlling its use.
25521
25522         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
25523
25524         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
25525
25526         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
25527
25528         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
25529         unreachable code.
25530
25531         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
25532
25533         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
25534         * configure: Regenerated.
25535
25536         * Makerules: Revert last change.
25537         * elf/Makefile: Likewise.
25538
25539 2011-06-09  Roland McGrath  <roland@hack.frob.com>
25540
25541         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
25542         * elf/Makefile ($(objpfx)librtld.os): Likewise.
25543         (reloc-link): Likewise.
25544
25545 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
25546
25547         * elf/Makefile: Add rules to build pldd.
25548         * elf/pldd.c: New file.
25549         * elf/pldd-xx.c: New file.
25550
25551 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
25552
25553         * version.h: Update for 2.15 development version.
25554
25555 2011-06-07  David S. Miller  <davem@davemloft.net>
25556
25557         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
25558         ifuncs.
25559         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
25560         elf_machine_lazy_rel): Likewise.
25561         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
25562         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
25563         elf_machine_lazy_rel): Likewise.
25564         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
25565         dl_hwcap via passed in argument.
25566         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
25567         Likewise.
25568
25569 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25570
25571         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
25572
25573 2011-06-06  Roland McGrath  <roland@hack.frob.com>
25574
25575         [BZ #12849]
25576         * manual/fdl-1.1.texi: New file, verbatim from:
25577         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
25578         * manual/lgpl-2.1.texi: New file, verbatim from:
25579         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
25580         * manual/Makefile (licenses): New variable, list those new file names.
25581         (texis): Use it.
25582         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
25583
25584         * manual/fdl.texi: File removed.
25585         * manual/lesser.texi: File removed.
25586         * manual/libc.texinfo (Copying, Documentation License):
25587         Use new @include file names, put @appendix directive before @include.
25588
25589 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
25590
25591         [BZ #12841]
25592         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
25593         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
25594         (mq_open): Add __NTH.
25595
25596 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
25597
25598         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25599         Assume Intel Core i3/i5/i7 processor if AVX is available.
25600
25601 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25602
25603         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
25604         typo.
25605
25606 2011-05-31  Andreas Schwab  <schwab@redhat.com>
25607
25608         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
25609         memory.  Use alloca_account.  Fix memory leak when retrying.
25610
25611 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25612
25613         * version.h (RELEASE): Bump for 2.14 release.
25614         * include/features.h (__GLIBC_MINOR__): Bump to 14.
25615
25616         * config.make.in (RANLIB): Remove entry.
25617
25618 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
25619
25620         * po/Makefile (po-sed-cmd): Add ksh to extensions.
25621         (libc.pot): Work around missing support for .ksh extension in xgettext.
25622
25623         [BZ #12684]
25624         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
25625         if both request failed.
25626         (send_dg): In case of server errors clear resplen or *resplen2.
25627
25628         [BZ #12454]
25629         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
25630         when there are multiple maps.
25631         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
25632         (_dl_fini): Remove test here.
25633
25634         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
25635
25636 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
25637
25638         [BZ #12350]
25639         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
25640         bit from old_res_options.
25641         (gaih_inet): Likewise.
25642
25643         [BZ #11099]
25644         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
25645         as signed.
25646
25647         * resolv/res_init.c (res_setoptions): Make the code more compact.
25648
25649         [BZ #11558]
25650         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
25651         set RES_USEVC.
25652
25653         [BZ #11634]
25654         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
25655
25656         * malloc/malloc.h: Mark malloc hook variables as deprecated.
25657
25658         [BZ #11781]
25659         * malloc/malloc.h: Declare malloc hook variables as volatile.
25660
25661         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
25662         in last patch.
25663
25664         [BZ #11799]
25665         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
25666         raise in the comment.
25667         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25668         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25669         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
25670
25671 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
25672
25673         [BZ #12811]
25674         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
25675         grow the buffers more if it already has to be sufficient.
25676         (build_wcs_upper_buffer): Likewise.
25677         * posix/regexec.c (check_matching): Likewise.
25678         (clean_state_log_if_needed): Likewise.
25679         (extend_buffers): Don't enlarge buffers beyond size of the input
25680         buffer.
25681         Patches mostly by Emil Wojak <emil@wojak.eu>.
25682         * posix/bug-regex32.c: New file.
25683         * posix/Makefile (tests): Add bug-regex32.
25684
25685         * locale/findlocale.c (_nl_find_locale): Return right away if
25686         _nl_explode_name failed.
25687         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
25688
25689         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
25690
25691         * debug/xtrace.sh: Unify messages.
25692         * malloc/memusage.sh: Likewise.
25693
25694         [BZ #12813]
25695         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
25696         time symbol from vDSO.  Substitute with vsyscall if not available.
25697         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
25698         __vdso_time.
25699
25700         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
25701         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
25702         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
25703         Add sendmmsg and internal_sendmmsg.
25704         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
25705         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
25706         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
25707
25708         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
25709         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
25710         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
25711
25712 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
25713
25714         [BZ #12813]
25715         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
25716         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
25717         available.
25718         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
25719         __vdso_getcpu.
25720
25721         [BZ #12814]
25722         * iconvdata/Makefile (tests): Add bug-iconv9.
25723         * iconvdata/bug-iconv9.c: New file.
25724
25725 2011-05-27  Andreas Schwab  <schwab@redhat.com>
25726
25727         [BZ #12814]
25728         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
25729
25730 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
25731
25732         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25733         (struct user_regs_struct): Change intcs field back to cs.
25734
25735 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
25736
25737         * po/ja.po: Update from translation team.
25738
25739 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
25740
25741         [BZ #12795]
25742         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
25743         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
25744
25745 2011-05-20  Andreas Schwab  <schwab@redhat.com>
25746
25747         * stdlib/longlong.h: Update from GCC.
25748
25749 2011-05-23  Andreas Schwab  <schwab@redhat.com>
25750
25751         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
25752         parameter name.
25753         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
25754         Add parameter name.
25755         (__sysconf): Pass it down.
25756
25757 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
25758
25759         [BZ #12671]
25760         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
25761         some situations.
25762         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
25763         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
25764         add in in __libc_use_alloca calls.  Adjust callers.
25765         (glob): Use malloc in some situations.
25766
25767         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
25768         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
25769         pltexit.
25770
25771 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
25772
25773         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
25774         and CLOCK_BOOTTIME_ALARM.
25775
25776         [BZ #12782]
25777         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
25778         is returned.
25779
25780         * string/_strerror.c (__strerror_r): Print negative errors as signed
25781         numbers.
25782
25783         [BZ #12777]
25784         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
25785         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
25786         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
25787
25788         * configure.in: Fix typo in redirection and correct removal of test
25789         files in two cases.
25790
25791         [BZ #12788]
25792         * locale/setlocale.c (new_composite_name): Fix test to check for
25793         identical name of all categories.
25794
25795         [BZ #12792]
25796         * libio/filedoalloc.c (local_isatty): New function.
25797         (_IO_file_doallocate): Use local_isatty.
25798         * stdio-common/perror.c (perror): In case a new stream is used
25799         forward the stream error.
25800         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
25801         error flag.
25802
25803 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
25804
25805         [BZ #11869]
25806         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
25807         alloca.
25808         * include/alloca.h (extend_alloca_account): Define.
25809
25810         [BZ #11857]
25811         * posix/regex.h: Fix comments with documentation of user-accessible
25812         fields after compilation and describe correct free'ing of pattern
25813         after re_compile_pattern.
25814         Patch by Reuben Thomas <rrt@sc3d.org>.
25815
25816 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
25817
25818         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
25819         and -mno-altivec to prevent the compiler from using Altivec and/or
25820         VSX instructions when the corresponding registers are not available.
25821
25822 2011-05-19  Andreas Schwab  <schwab@redhat.com>
25823
25824         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
25825
25826 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
25827
25828         * libio/freopen.c (freopen): Use __dup2, not dup2.
25829         * libio/freopen64.c (freopen64): Likewise.
25830
25831 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
25832
25833         [BZ #12775]
25834         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
25835         * math/Makefile (tests): Add test-powl.
25836         (CFLAGS-test-powl.c): Define.
25837         * math/test-powl.c: New file.
25838
25839 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
25840
25841         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
25842
25843 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
25844
25845         [BZ #11837]
25846         * iconvdata/gb18030.c: Update to GB18020-2005.
25847
25848 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
25849
25850         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
25851         RE_SYNTAX_POSIX_AWK): Update to match recent development.
25852         Patch by Aharon Robbins <arnold@skeeve.com>.
25853
25854         [BZ #11892]
25855         * stdlib/putenv.c (putenv): Don't always create copy of the variable
25856         on the stack.
25857
25858         [BZ #11895]
25859         * misc/pselect.c (__pselect): Handle timeout value errors hidden
25860         through underflows.
25861
25862         [BZ #12766]
25863         * misc/error.c (error_at_line): Ensure file_name and old_file_name
25864         point to strings before performing equality test for error_one_per_line
25865         mode.
25866
25867         [BZ #11697]
25868         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
25869
25870         [BZ #11820]
25871         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25872         (struct user_fpregs_struct): Avoid __uint*_t types.
25873
25874         [BZ #6420]
25875         * malloc/mtrace.c (tr_where): Add additional parameter to point to
25876         symbol info.  Use it instead of calling _dl_addr locally.
25877         (lock_and_info): New function.
25878         (tr_freehook): Call lock_and_info and pass symbol info as additional
25879         parameter to tr_where.
25880         (tr_mallochook): Likewise.
25881         (tr_reallochook): Likewise.
25882         (tr_memalignhook): Likewise.
25883
25884         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
25885         used and couldn't be at all thread-safe.
25886
25887 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
25888
25889         * libio/freopen.c (freopen): Don't close old file descriptor
25890         before the new one is opened.  Instead dup the new file descriptor
25891         to the old one after the new stream is created.
25892         * libio/freopen64.c (freopen64): Likewise.
25893         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
25894         * libio/fileops.c (_IO_new_file_close_it): Handle new
25895         _IO_FLAGS2_NOCLOSE flag.
25896         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
25897         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
25898         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
25899         _IO_FLAGS2_NOCLOSE flag.
25900         * include/unistd.h: Add hidden_proto for dup3.
25901         Define __have_dup3.
25902         * io/dup3.c: Define hidden symbol.
25903         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
25904
25905         [BZ #7101]
25906         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
25907         when an incomplete long option is used.
25908         * posix/tst-getopt_long1.c: New file.
25909         * posix/Makefile (tests): Add tst-getopt_long1.
25910
25911         [BZ #10138]
25912         * scripts/config.guess: Update from autoconf-2.68.
25913         * scripts/config.sub: Likewise.
25914
25915         [BZ #10157]
25916         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
25917         tests into ...
25918         (has_cpuclock): ...this.  New function.
25919         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
25920         macro here based on has_cpuclock code.
25921
25922         [BZ #10149]
25923         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25924         First byte (not low byte) is now always NUL.
25925         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
25926
25927         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25928         Use non-cancelable interfaces.
25929
25930         [BZ #9809]
25931         * locale/iso-639.def: Add entry for Sorani.
25932
25933         [BZ #11901]
25934         * include/stdlib.h: Move include protection to the right place.
25935         Define abort_msg_s.  Declare __abort_msg with it.
25936         * stdlib/abort.c (__abort_msg): Adjust type.
25937         * assert/assert.c (__assert_fail_base): New function.  Majority
25938         of code from __assert_fail.  Allocate memory for __abort_msg with
25939         mmap.
25940         (__assert_fail): Now call __assert_fail_base.
25941         * assert/assert-perr.c: Remove bulk of implementation.  Use
25942         __assert_fail_base.
25943         * include/assert.hL Declare __assert_fail_base.
25944         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
25945         mmap.
25946         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
25947
25948 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
25949
25950         [BZ #11952]
25951         [BZ #12453]
25952         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
25953         until all modules are registered in the DTV.
25954         * elf/Makefile: Add rules to build and run tst-tls19.
25955         * elf/tst-tls19.c: New file.
25956         * elf/tst-tls19mod1.c: New file.
25957         * elf/tst-tls19mod2.c: New file.
25958         * elf/tst-tls19mod3.c: New file.
25959         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
25960
25961         [BZ #12083]
25962         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
25963         correctly.
25964
25965         [BZ #12601]
25966         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
25967         two-byte sequence errors.
25968         * iconvdata/Makefile (tests): Add bug-iconv8.
25969         * iconvdata/bug-iconv8.c: New file.
25970
25971         [BZ #12626]
25972         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
25973         buf2 definition.
25974
25975         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
25976
25977         [BZ #12432]
25978         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
25979         (dummy_getcfa): New function.
25980         (init): Get _Unwind_GetCFA address, use dummy if not found.
25981         (backtrace_helper): In recursion check, also check whether CFA changes.
25982         (__backtrace): Completely initialize arg.
25983
25984         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
25985         storing incomplete byte sequence in state object.  Avoid testing for
25986         guaranteed too small input if we know there is enough data available.
25987
25988 2011-05-11  Andreas Schwab  <schwab@redhat.com>
25989
25990         * Makeconfig (+link-pie): Indent.
25991         * Rules (binaries-pie): Define if $(have-fpie) and
25992         $(build-shared).
25993         (binaries-shared): Also filter out $(binaries-pie).
25994         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
25995         * nscd/Makefile (others-pie): Add nscd.
25996         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
25997         ($(objpfx)nscd): Remove command override.
25998         * login/Makefile (others-pie): Add pt_chown.
25999         ($(objpfx)pt_chown): Remove command override.
26000         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26001         remove command overrides.
26002
26003 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26004
26005         * libio/tst_putwc.c: Fix error messages.
26006
26007         [BZ #12724]
26008         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26009         currently writing and seek to current position when not.
26010         * libio/Makefile (tests): Add bug-fclose1.
26011         * libio/bug-fclose1.c: New file.
26012
26013 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26014
26015         [BZ #12511]
26016         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26017         don't set DF_1_NODELETE here.
26018         (do_lookup_x): When entering new entry test for copy relocation
26019         and if necessary set DF_1_NODELETE flag.
26020         * elf/tst-unique4.cc: New file.
26021         * elf/tst-unique4.h: New file.
26022         * elf/tst-unique4lib.cc: New file.
26023         * elf/Makefile: Add rules to build and run tst-unique4.
26024         Patch by Piotr Bury <pbury@goahead.com>.
26025
26026 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26027
26028         [BZ #12052]
26029         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26030
26031         [BZ #12625]
26032         * misc/mntent_r.c (addmntent): Flush the stream after the output
26033
26034         [BZ #12393]
26035         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26036         (is_trusted_path_normalize): Skip initial colon.  Append slash
26037         to empty buffer.  Duplicate is_trusted_path code but allow
26038         constructed patch to be prefix.
26039         (is_dst): Allow $ORIGIN followed by /.
26040         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26041         Correct testing of result of is_trusted_path_normalize
26042         (decompose_rpath): Fix warning.
26043
26044 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26045
26046         [BZ #11257]
26047         * grp/initgroups.c (internal_getgrouplist): When we found the service
26048         list through the initgroups entry in nsswitch.conf do not always
26049         continue on a successful lookup.  Don't always use the
26050         __nss_group_database value if it is set.
26051         * nss/nsswitch.conf (initgroups): Change action for successful db
26052         lookup to continue for compatibility.
26053
26054 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26055
26056         [BZ #11532]
26057         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26058         and CP774 modules.
26059         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26060         and CP774 modules.
26061         * iconvdata/tst-tables.sh: Likewise.
26062         * iconvdata/cp770.c: New file.
26063         * iconvdata/cp771.c: New file.
26064         * iconvdata/cp772.c: New file.
26065         * iconvdata/cp773.c: New file.
26066         * iconvdata/cp774.c: New file.
26067         * iconvdata/testdata/CP770: New file.
26068         * iconvdata/testdata/CP770..UTF8: New file.
26069         * iconvdata/testdata/CP771: New file.
26070         * iconvdata/testdata/CP771..UTF8: New file.
26071         * iconvdata/testdata/CP772: New file.
26072         * iconvdata/testdata/CP772..UTF8: New file.
26073         * iconvdata/testdata/CP773: New file.
26074         * iconvdata/testdata/CP773..UTF8: New file.
26075         * iconvdata/testdata/CP774: New file.
26076         * iconvdata/testdata/CP774..UTF8: New file.
26077
26078         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26079         END CHARMAP line.
26080         * iconvdata/gen-8bit-gap.sh: Likewise.
26081         * iconvdata/gen-8bit.sh: Likewise.
26082
26083         * locale/iso-639.def: Add ary entry.
26084
26085         [BZ #11258]
26086         * locale/C-translit.h.in: Add U20A1 transliteration.
26087
26088         [BZ #12178]
26089         * locale/iso-639.def: Add wae entry.
26090         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26091
26092         [BZ #12545]
26093         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26094         for n.
26095
26096         [BZ #12711]
26097         * locale/C-translit.h.in: Add entry for U20B9.
26098         Patch by pravin.d.s@gmail.com.
26099
26100 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26101
26102         [BZ #12713]
26103         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26104         ENAMETOOLONG use generic getcwd.
26105         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26106         in rtld.  Use *stat64.
26107         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26108         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26109         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26110         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26111         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26112         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26113         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26114         __fstatat64 macros.
26115         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26116         * dirent/rewinddir.c: Add libc_hidden_def.
26117         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26118         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26119
26120         * include/dirent.h (__alloc_dir): Add flags parameter.
26121         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26122         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26123         __alloc_dir.
26124         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26125         from fdopendir if O_CLOEXEC is already set.
26126
26127 2011-03-15  Alan Modra  <amodra@gmail.com>
26128
26129         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26130         l_tls_firstbyte_offset non-zero.  Save padding offset in
26131         l_tls_firstbyte_offset for later use.
26132         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26133         freeing static tls block.
26134
26135 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26136
26137         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26138         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26139         being defined by the kernel headers.
26140
26141 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26142
26143         [BZ #12734]
26144         * resolv/resolv.h: Define RES_NOTLDQUERY.
26145         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26146         no-tld-query and set RES_NOTLDQUERY.
26147         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26148         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26149         modern BIND to search name as TLD unless forbidden.
26150
26151 2011-05-07  Petr Baudis  <pasky@suse.cz>
26152             Ulrich Drepper  <drepper@gmail.com>
26153
26154         [BZ #12393]
26155         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26156         (is_trusted_path): ...to here.
26157         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26158         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26159         using is_trusted_path_normalize() in setuid scripts.
26160
26161 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26162
26163         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26164         __BEGIN/__END_DECLS.
26165
26166 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26167
26168         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26169         NSS_STATUS_NOTFOUND if no record was found.
26170
26171 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26172
26173         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26174         (headers-not-in-tirpc): Remove rpc/netdb.h
26175         * resolv/netdb.h: Revert last change.
26176
26177 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26178
26179         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26180         circular dependency between libgcc.a and libc.a.
26181
26182 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26183
26184         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26185         * nis/Makefile: Don't install rpcsvc/*.
26186         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26187         instead of <rpc/types.h>.
26188         (MAXHOSTNAMELEN): Define.
26189
26190 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26191
26192         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26193
26194 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26195
26196         [BZ #12714]
26197         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26198         gethostbyname4_r when IPv6 results are possible.
26199
26200 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26201
26202         [BZ #12723]
26203         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26204         _PC_PIPE_BUF handling.
26205
26206 2011-04-30  Bruno Haible  <bruno@clisp.org>
26207
26208         [BZ #12717]
26209         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26210         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26211         to 'int'.
26212         * inet/getnameinfo.c (getnameinfo): Likewise.
26213
26214 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26215
26216         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26217         to groups setting in database lookup.
26218         * nss/nsswitch.conf: Add initgroups entry.
26219
26220 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26221
26222         [BZ #12685]
26223         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26224         mode string.
26225         Patch by Eric Blake <eblake@redhat.com>.
26226
26227 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26228
26229         * sunrpc/Makefile (need-export-routines): Add svc_run.
26230         (routines): Remove svc_run.
26231         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26232         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26233         * sunrpc/svc_run.c (svc_run): Likewise.
26234         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26235
26236 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26237
26238         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26239         problem in reallocation in last patch.
26240
26241 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26242
26243         * sunrpc/Makefile: Move inclusion of Rules.
26244
26245 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26246
26247         * nss/nss_files/files-initgroups.c: New file.
26248         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26249         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26250         _nss_files_initgroups_dyn.
26251
26252 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26253
26254         * elf/elf.h (R_ARM_IRELATIVE): Define.
26255
26256 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26257
26258         * po/ru.po: Update from translation team.
26259
26260 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26261
26262         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26263         dependencies.
26264
26265 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26266
26267         [BZ #12653]
26268         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26269         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26270         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26271         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26272         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26273
26274 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26275
26276         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26277         differing bytes.
26278         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26279         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26280         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26281
26282 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26283
26284         [BZ #12420]
26285         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26286         storing it.
26287         * stdlib/bug-getcontext.c: New file.
26288         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26289
26290 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26291
26292         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26293         instructions into .machine "z9-109".
26294         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26295         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26296
26297 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26298
26299         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26300         between environment variables and auxiliary vector.
26301
26302 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26303
26304         * Makefile: Add rules to build linkobj/libc.so.
26305         * include/libc-symbols.h: Define libc_hidden_nolink.
26306         * include/rpc/auth.h: Mark functions which are to be hidden.
26307         * include/rpc/auth_des.h: Likewise.
26308         * include/rpc/auth_unix.h: Likewise.
26309         * include/rpc/clnt.h: Likewise.
26310         * include/rpc/des_crypt.h: Likewise.
26311         * include/rpc/key_prot.h: Likewise.
26312         * include/rpc/pmap_clnt.h: Likewise.
26313         * include/rpc/pmap_prot.h: Likewise.
26314         * include/rpc/pmap_rmt.h: Likewise.
26315         * include/rpc/rpc_msg.h: Likewise.
26316         * include/rpc/svc.h: Likewise.
26317         * include/rpc/svc_auth.h: Likewise.
26318         * include/rpc/xdr.h: Likewise.
26319         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26320         * nss/Makefile: Likewise.
26321         * sunrpc/Makefile: Don't install headers.  Build library with normal
26322         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26323         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26324         for the compat linking library.  Remove use of INTDEF/INTUSE.
26325         * sunrpc/auth_none.c: Likewise.
26326         * sunrpc/auth_unix.c: Likewise.
26327         * sunrpc/authdes_prot.c: Likewise.
26328         * sunrpc/authuxprot.c: Likewise.
26329         * sunrpc/clnt_gen.c: Likewise.
26330         * sunrpc/clnt_perr.c: Likewise.
26331         * sunrpc/clnt_raw.c: Likewise.
26332         * sunrpc/clnt_simp.c: Likewise.
26333         * sunrpc/clnt_tcp.c: Likewise.
26334         * sunrpc/clnt_udp.c: Likewise.
26335         * sunrpc/clnt_unix.c: Likewise.
26336         * sunrpc/des_crypt.c: Likewise.
26337         * sunrpc/des_soft.c: Likewise.
26338         * sunrpc/get_myaddr.c: Likewise.
26339         * sunrpc/key_call.c: Likewise.
26340         * sunrpc/key_prot.c: Likewise.
26341         * sunrpc/netname.c: Likewise.
26342         * sunrpc/pm_getmaps.c: Likewise.
26343         * sunrpc/pm_getport.c: Likewise.
26344         * sunrpc/pmap_clnt.c: Likewise.
26345         * sunrpc/pmap_prot.c: Likewise.
26346         * sunrpc/pmap_prot2.c: Likewise.
26347         * sunrpc/pmap_rmt.c: Likewise.
26348         * sunrpc/publickey.c: Likewise.
26349         * sunrpc/rpc_cmsg.c: Likewise.
26350         * sunrpc/rpc_common.c: Likewise.
26351         * sunrpc/rpc_dtable.c: Likewise.
26352         * sunrpc/rpc_prot.c: Likewise.
26353         * sunrpc/rpc_thread.c: Likewise.
26354         * sunrpc/rtime.c: Likewise.
26355         * sunrpc/svc.c: Likewise.
26356         * sunrpc/svc_auth.c: Likewise.
26357         * sunrpc/svc_authux.c: Likewise.
26358         * sunrpc/svc_raw.c: Likewise.
26359         * sunrpc/svc_run.c: Likewise.
26360         * sunrpc/svc_simple.c: Likewise.
26361         * sunrpc/svc_tcp.c: Likewise.
26362         * sunrpc/svc_udp.c: Likewise.
26363         * sunrpc/svc_unix.c: Likewise.
26364         * sunrpc/svcauth_des.c: Likewise.
26365         * sunrpc/xcrypt.c: Likewise.
26366         * sunrpc/xdr.c: Likewise.
26367         * sunrpc/xdr_array.c: Likewise.
26368         * sunrpc/xdr_float.c: Likewise.
26369         * sunrpc/xdr_intXX_t.c: Likewise.
26370         * sunrpc/xdr_mem.c: Likewise.
26371         * sunrpc/xdr_rec.c: Likewise.
26372         * sunrpc/xdr_ref.c: Likewise.
26373         * sunrpc/xdr_sizeof.c: Likewise.
26374         * sunrpc/xdr_stdio.c: Likewise.
26375
26376 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
26377
26378         [BZ #12650]
26379         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
26380         * sysdeps/ia64/dl-tls.h: Likewise.
26381         * sysdeps/powerpc/dl-tls.h: Likewise.
26382         * sysdeps/s390/dl-tls.h: Likewise.
26383         * sysdeps/sh/dl-tls.h: Likewise.
26384         * sysdeps/sparc/dl-tls.h: Likewise.
26385         * sysdeps/x86_64/dl-tls.h: Likewise.
26386         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
26387
26388 2011-03-14  Andreas Schwab  <schwab@redhat.com>
26389
26390         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
26391         rpath element also skip the following colon.
26392         (expand_dynamic_string_token): Add is_path parameter and pass
26393         down to DL_DST_REQUIRED and _dl_dst_substitute.
26394         (decompose_rpath): Call expand_dynamic_string_token with
26395         non-zero is_path.  Ignore empty rpaths.
26396         (_dl_map_object_from_fd): Call expand_dynamic_string_token
26397         with zero is_path.
26398
26399 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
26400
26401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26402         Make cancelable.
26403
26404 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
26405
26406         [BZ #12655]
26407         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
26408         Patch by Filipe David Manana <fdmanana@apache.org>.
26409
26410 2011-04-07  Andreas Schwab  <schwab@redhat.com>
26411
26412         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
26413         Maintain aligned stack.
26414         (CHECK_RSP): Remove unused macro.
26415
26416 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
26417
26418         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
26419         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
26420
26421 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
26422
26423         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
26424
26425         * include/features.h: Mention __USE_XOPEN2K8 in comment.
26426
26427 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
26428
26429         [BZ #12518]
26430         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
26431         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
26432         * sysdeps/x86_64/memmove.c: New file.
26433         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
26434         (memcpy): Renamed to ...
26435         (__new_memcpy): This.
26436         (memcpy): Provide GLIBC_2_14 memcpy.
26437         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
26438         (memcpy): Provide GLIBC_2_2_5 memcpy.
26439
26440 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26441
26442         [BZ #12631]
26443         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
26444
26445 2011-03-30  Andreas Schwab  <schwab@redhat.com>
26446
26447         * misc/syncfs.c: New file.
26448         * misc/Makefile (routines): Add syncfs.
26449         * posix/unistd.h: Declare syncfs.
26450         * sysdeps/unix/syscalls.list: Add syncfs.
26451
26452 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26453
26454         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
26455         open_by_handle_at.
26456         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26457         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26458         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26459         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26460         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26461         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
26462         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26463
26464 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26465
26466         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
26467         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26468         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
26469         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26470         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26471         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26472         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26473
26474         * io/Makefile: Compile fallocate.c, fallocate64.c, and
26475         sync_file_range.c with -fexceptions.
26476         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
26477         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
26478         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
26479         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
26480         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
26481         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26482         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
26483         sync_file_range as cancellation point
26484         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
26485         now a wrapper around __call_sync_file_range with cancellation handling.
26486         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
26487         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
26488         function name to __call_sync_file_range.
26489         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
26490         Add call_sync_file_range.
26491
26492 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26493
26494         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26495         bits/timex.h.
26496
26497 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26498
26499         * iconv/iconv.h: Fix typo in comment.
26500         * io/fcntl.h: Likewise.
26501         * libio/stdio.h: Likewise.
26502         * posix/spawn.h: Likewise.
26503         * posix/unistd.h: Likewise.
26504         * stdlib/stdlib.h: Likewise.
26505         * time/time.h: Likewise.
26506         * wcsmbs/wchar.h: Likewise.
26507
26508         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
26509         open_by_handle): Add.
26510         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
26511         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
26512         Augment a few comments.
26513         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26514         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26515         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26516         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26517         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26518         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
26519         open_by_handle.
26520
26521         * io/fcntl.h (AT_EMPTY_PATH): Define.
26522
26523 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
26524
26525         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
26526         * sysdeps/unix/sysv/linux/bits/time.h: New file.
26527         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
26528         to...
26529         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
26530         * Versions.def: Add GLIBC_2.14.
26531         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
26532         Export.
26533
26534 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
26535
26536         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
26537         round counter.
26538         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26539
26540 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26541
26542         [BZ #12597]
26543         * string/test-strncmp.c (do_page_test): New function.
26544         (check2): Likewise.
26545         (test_main): Call check2.
26546         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
26547
26548 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
26549
26550         [BZ #12587]
26551         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
26552         Handle cache information in CPU leaf 4.
26553         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26554
26555 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
26556
26557         [BZ #12583]
26558         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
26559         character representation.
26560         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
26561
26562 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
26563
26564         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
26565         END(__isnan) to END(__isnanf) to match function entry point/label
26566         EALIGN(__isnanf,...).
26567
26568 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26569
26570         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
26571
26572 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
26573
26574         [BZ #12510]
26575         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
26576         copy from the symbol referenced in the relocation to initialize the
26577         used variable.
26578         Patch by Piotr Bury <pbury@goahead.com>.
26579         * elf/Makefile: Add rules to build and tst-unique3.
26580         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
26581         * elf/tst-unique3.cc: New file.
26582         * elf/tst-unique3.h: New file.
26583         * elf/tst-unique3lib.cc: New file.
26584         * elf/tst-unique3lib2.cc: New file.
26585
26586         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
26587
26588 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
26589
26590         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
26591         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
26592         to _start.
26593
26594 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
26595
26596         * elf/dl-load.c (_dl_map_object): If we are looking for the first
26597         to-be-loaded object along a path to loader is ld.so.
26598
26599 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26600             Ulrich Drepper  <drepper@gmail.com>
26601
26602         * sysdeps/x86_64/memset.S: After aligning destination, code
26603         branches to different locations depending on the value of
26604         misalignment, when multiarch is enabled. Fix this.
26605
26606 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26607
26608         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
26609         Set _x86_64_preferred_memory_instruction for AMD processsors.
26610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26611         Set bit_Prefer_SSE_for_memop for AMD processors.
26612
26613 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
26614
26615         * libio/fmemopen.c (fmemopen): Optimize a bit.
26616
26617 2011-03-03  Andreas Schwab  <schwab@redhat.com>
26618
26619         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
26620
26621 2011-03-03  Roland McGrath  <roland@redhat.com>
26622
26623         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
26624
26625 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
26626
26627         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
26628         __bzero_ultra1 instead of __memset_ultra1.
26629
26630 2011-02-23  Andreas Schwab  <schwab@redhat.com>
26631             Ulrich Drepper  <drepper@gmail.com>
26632
26633         [BZ #12509]
26634         * include/link.h (struct link_map): Add l_orig_initfini.
26635         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
26636         returning unsuccessfully.
26637         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
26638         close of a file loaded at startup, restore the original l_initfini
26639         list.
26640         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
26641         list, store the pointer.
26642         * elf/Makefile ($(objpfx)noload-mem): New rule.
26643         (noload-ENV): Define.
26644         (tests): Add $(objpfx)noload-mem.
26645         * elf/noload.c: Include <memcheck.h>.
26646         (main): Call mtrace.  Close all opened handles.
26647
26648 2011-02-17  Andreas Schwab  <schwab@redhat.com>
26649
26650         [BZ #12454]
26651         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
26652         dependencies are missing.
26653
26654 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26655
26656         Fix __if_freereq crash: Unlike the generic version which uses free,
26657         Hurd needs munmap.
26658         * sysdeps/mach/hurd/ifreq.h: New file.
26659
26660 2011-01-27  Petr Baudis  <pasky@suse.cz>
26661             Ulrich Drepper  <drepper@gmail.com>
26662
26663         [BZ 12445]#
26664         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
26665         to extend_alloca().
26666         * stdio-common/bug23.c: New file.
26667         * stdio-common/Makefile (tests): Add bug23.
26668
26669 2010-09-28  Andreas Schwab  <schwab@redhat.com>
26670             Ulrich Drepper  <drepper@gmail.com>
26671
26672         [BZ #12489]
26673         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
26674         before performing relro protection.  At old place add assertion
26675         to make sure nothing changed.
26676
26677 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
26678             Glauber de Oliveira Costa  <glommer@gmail.com>
26679
26680         * elf/elf.h: Add new ARM TLS relocs.
26681
26682 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
26683
26684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
26685         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
26686         cast from r3.
26687         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
26688         'tests' variable.
26689         * sysdeps/wordsize-64/tst-writev.c: New file.
26690
26691 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
26692
26693         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
26694         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
26695         insns in _dl_start to prevent a TOC reference before relocs are
26696         resolved.
26697
26698 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
26699
26700         [BZ #12469]
26701         * Makeconfig: Remove RANLIB definition.
26702         * Makerules: Don't use RANLIB.
26703         * aclocal.m4: Remove ranlib test.
26704         * configure.in: No need to check for ranlib.
26705         * elf/rtld-Rules: Don't use RANLIB.
26706
26707 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26708
26709         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
26710         protection macro.
26711         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
26712         inclusion protection macro.
26713
26714         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
26715         SIGRTMIN and SIGRTMAX and print information in that case only when
26716         SIGRTMIN is defined.
26717
26718 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
26719
26720         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
26721         arginfo fn returning -1.
26722
26723         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
26724         and thousands string is zero terminated.
26725
26726 2011-02-03  Andreas Schwab  <schwab@redhat.com>
26727
26728         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
26729         sysdeps/unix/sysv/linux/bits/socket.h.
26730
26731 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26732
26733         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
26734         (__CPU_COUNT): Remove old macros.
26735         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
26736         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
26737         (__CPU_ALLOC, __CPU_FREE): Add macros.
26738         (__sched_cpualloc, __sched_cpufree): Add declarations.
26739
26740 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
26741
26742         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
26743         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
26744         * nscd/aicache.c (addhstaiX): Return timeout of added value.
26745         (readdhstai): Return value of addhstaiX call.
26746         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
26747         (addgrbyX): Return value returned by cache_addgr.
26748         (readdgrbyname): Return value returned by addgrbyX.
26749         (readdgrbygid): Likewise.
26750         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
26751         (addpwbyX): Return value returned by cache_addpw.
26752         (readdpwbyname): Return value returned by addhstbyX.
26753         (readdpwbyuid): Likewise.
26754         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
26755         (addservbyX): Return value returned by cache_addserv.
26756         (readdservbyname): Return value returned by addservbyX:
26757         (readdservbyport): Likewise.
26758         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
26759         (addhstbyX): Return value returned by cache_addhst.
26760         (readdhstbyname): Return value returned by addhstbyX.
26761         (readdhstbyaddr): Likewise.
26762         (readdhstbynamev6): Likewise.
26763         (readdhstbyaddrv6): Likewise.
26764         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
26765         (readdinitgroups): Return value returned by addinitgroupsX.
26766         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
26767         (prune_cache): Keep track of timeout value of re-added entries.
26768         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
26769         * nscd/nscd.h: Adjust prototypes of readd* functions.
26770
26771 2011-02-04  Roland McGrath  <roland@redhat.com>
26772
26773         * nis/nis_server.c (nis_servstate): Use the right name for 0.
26774         (nis_stats): Likewise.
26775         * nis/nis_modify.c (nis_modify): Likewise.
26776         * nis/nis_remove.c (nis_remove): Likewise.
26777         * nis/nis_add.c (nis_add): Likewise.
26778
26779         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
26780
26781         * posix/fnmatch_loop.c: Add some consts.
26782
26783         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
26784
26785 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26786
26787         [BZ #12460]
26788         * config.make.in (config-cflags-novzeroupper): Define.
26789         * configure.in: Substitute libc_cv_cc_novzeroupper.
26790         * elf/Makefile (AVX-CFLAGS): Define.
26791         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
26792         (CFLAGS-tst-auditmod4a.c): Likewise.
26793         (CFLAGS-tst-auditmod4b.c): Likewise.
26794         (CFLAGS-tst-auditmod6b.c): Likewise.
26795         (CFLAGS-tst-auditmod6c.c): Likewise.
26796         (CFLAGS-tst-auditmod7b.c): Likewise.
26797         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
26798
26799 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
26800
26801         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
26802         function to the callback.
26803         Patch partly by Jiri Olsa <jolsa@redhat.com>.
26804
26805 2011-02-02  Andreas Schwab  <schwab@redhat.com>
26806
26807         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
26808         of errno.
26809
26810 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
26811
26812         [BZ #11724]
26813         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
26814         of constructors.
26815         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
26816         of destructors.
26817         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
26818
26819         [BZ #11724]
26820         * elf/Makefile: Add rules to build and run new test.
26821         * elf/tst-initorder.c: New file.
26822         * elf/tst-initorder.exp: New file.
26823         * elf/tst-initordera1.c: New file.
26824         * elf/tst-initordera2.c: New file.
26825         * elf/tst-initordera3.c: New file.
26826         * elf/tst-initordera4.c: New file.
26827         * elf/tst-initorderb1.c: New file.
26828         * elf/tst-initorderb2.c: New file.
26829         * elf/tst-order-a1.c: New file.
26830         * elf/tst-order-a2.c: New file.
26831         * elf/tst-order-a3.c: New file.
26832         * elf/tst-order-a4.c: New file.
26833         * elf/tst-order-b1.c: New file.
26834         * elf/tst-order-b2.c: New file.
26835         * elf/tst-order-main.c: New file.
26836         New test case by George Gensure <werkt0@gmail.com>.
26837
26838 2010-10-01  Andreas Schwab  <schwab@redhat.com>
26839
26840         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26841         decoding ACE if AI_CANONIDN.
26842
26843 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
26844
26845         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
26846
26847 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
26848
26849         * version.h (RELEASE): Bump for 2.13 release.
26850         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
26851
26852         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
26853
26854         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
26855         MADV_NOHUGEPAGE.
26856         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
26857         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
26858         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26859         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26860         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26861         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
26862
26863         * posix/getconf.c: Update copyright year.
26864         * catgets/gencat.c: Likewise.
26865         * csu/version.c: Likewise.
26866         * debug/catchsegv.sh: Likewise.
26867         * debug/xtrace.sh: Likewise.
26868         * elf/ldconfig.c: Likewise.
26869         * elf/ldd.bash.in: Likewise.
26870         * elf/sprof.c (print_version): Likewise.
26871         * iconv/iconv_prog.c: Likewise.
26872         * iconv/iconvconfig.c: Likewise.
26873         * locale/programs/locale.c: Likewise.
26874         * locale/programs/localedef.c: Likewise.
26875         * malloc/memusage.sh: Likewise.
26876         * malloc/mtrace.pl: Likewise.
26877         * nscd/nscd.c (print_version): Likewise.
26878         * nss/getent.c: Likewise.
26879
26880         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
26881         PF_CAIF, and PF_ALG.
26882         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26883
26884 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
26885
26886         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
26887         (modules-names): Use them.
26888         (ifunc-test-modules, ifunc-pie-tests): Define.
26889         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
26890         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
26891         (test-extras): Likewise.
26892         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
26893         $(compile-command.c).
26894         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
26895         (all-built-dso): Define.
26896         (check-textrel.out, check-execstack.out): Depend on it.
26897
26898         * configure.in: Don't override --enable-multi-arch.
26899
26900 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
26901
26902         [BZ #6812]
26903         * nscd/hstcache.c (tryagain): Define.
26904         (cache_addhst): Return tryagain not notfound for temporary errors.
26905         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
26906         failed.
26907
26908 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
26909
26910         [BZ #10563]
26911         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
26912         to make the syscall.
26913         * sysdeps/unix/sysv/linux/setgroups.c: New file.
26914
26915         [BZ #12378]
26916         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
26917         and fall back to matching as normal character if the string ends before
26918         the matching ']' is found.  This is what POSIX requires.
26919         * posix/testfnm.c: Adjust test result.
26920         * posix/globtest.sh: Adjust test result.  Add new test.
26921         * posix/tst-fnmatch.input: Likewise.
26922         * posix/tst-fnmatch2.c: Add new test.
26923
26924 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
26925
26926         * elf/Makefile (check-execstack): Revert last change.  Depend on
26927         check-execstack.h.
26928         (check-execstack.h): New target.
26929         (generated): Add check-execstack.h.
26930         * elf/check-execstack.c: Include "check-execstack.h".
26931         (main): Revert last change.
26932         (handle_file): Return zero if GNU_STACK is absent and
26933         DEFAULT_STACK_PERMS doesn't include PF_X.
26934
26935 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
26936
26937         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
26938         in child fails because the descriptor is already closed.
26939         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
26940         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
26941         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
26942
26943         [BZ #12397]
26944         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
26945         syscall.
26946
26947         [BZ #10484]
26948         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
26949         temporary buffer used to handle multi lookups locally.
26950         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
26951
26952 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26953
26954         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
26955         loader is ld.so.
26956
26957 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
26958
26959         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
26960         alignment for SSE2.
26961
26962 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26963
26964         [BZ #12394]
26965         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
26966         characters.  When rounding increased number of integer digits recompute
26967         number of groups.
26968         * stdio-common/tst-grouping.c: New file.
26969         * stdio-common/Makefile: Add rules to build and run tst-grouping.
26970
26971 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
26972
26973         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
26974         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
26975
26976         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
26977         void.
26978         * bits/select.h: Likewise.
26979
26980 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
26981
26982         * po/ja.po: Update from translation team.
26983
26984 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
26985
26986         [BZ #11155]
26987         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
26988         implementation just like for lxstat, fxstatat, et al.
26989
26990 2010-12-27  Jim Meyering  <meyering@redhat.com>
26991
26992         [BZ #12348]
26993         * posix/regexec.c (build_trtable): Return failure indication upon
26994         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26995
26996 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
26997
26998         [BZ #12201]
26999         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27000         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27001         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27002         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27003
27004         [BZ #12207]
27005         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27006
27007         [BZ #12204]
27008         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27009         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27010
27011 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27012
27013         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27014         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27015         script has SORT_BY_INIT_PRIORITY.
27016         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27017         NO_CTORS_DTORS_SECTIONS is defined.
27018         * elf/soinit.c: Likewise.
27019         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27020         NO_CTORS_DTORS_SECTIONS is defined.
27021         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27022         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27023         * sysdeps/sh/init-first.c: Likewise.
27024         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27025
27026 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27027
27028         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27029         always use the slow path.
27030
27031 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27032
27033         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27034         similar rule which adds the sysdep directories to the header search in
27035         order to pick up the correct platform stackinfo.h.
27036         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27037         perform test if it is, otherwise return successfully without testing.
27038         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27039         DEFAULT_STACK_PERMS define in stackinfo.h.
27040         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27041         defined in stackinfo.h.
27042         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27043         DEFAULT_STACK_PERMS defined in stackinfo.h.
27044         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27045         * sysdeps/ia64/stackinfo.h: Likewise.
27046         * sysdeps/s390/stackinfo.h: Likewise.
27047         * sysdeps/sh/stackinfo.h: Likewise.
27048         * sysdeps/sparc/stackinfo.h: Likewise.
27049         * sysdeps/x86_64/stackinfo.h: Likewise.
27050         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27051         PF_X for powerpc64.  Retain PF_X for powerpc32.
27052
27053 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27054
27055         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27056         accurately.
27057         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27058         GETDENTS_64BIT_ALIGNED.
27059
27060 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27061
27062         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27063
27064 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27065
27066         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27067         _GNU_SOURCE.
27068
27069         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27070         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27071         Remove __restrict.
27072         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27073         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27074
27075 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27076
27077         [BZ #11655]
27078         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27079         are initialized.
27080
27081 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27082
27083         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27084
27085 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27086
27087         * po/it.po: Update from translation team.
27088
27089 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27090
27091         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27092         unused codes.
27093
27094 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27095
27096         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27097
27098 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27099
27100         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27101         specially.
27102         (gaih_getanswer_slice): Likewise.
27103
27104 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27105
27106         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27107
27108 2010-05-31  Petr Baudis  <pasky@suse.cz>
27109
27110         [BZ #11149]
27111         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27112         silently even in the chroot mode.
27113
27114 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27115
27116         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27117         last patch a bit.  Pretty printing
27118
27119 2010-05-31  Petr Baudis <pasky@suse.cz>
27120
27121         [BZ #10085]
27122         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27123         initialization of skip_initgroups_dyn.
27124
27125 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27126
27127         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27128         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27129
27130 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27131
27132         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27133
27134 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27135
27136         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27137         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27138         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27139         ($(objpfx)tst-fnmatch-mem): New rule.
27140         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27141         * posix/tst-fnmatch.c (main): Call mtrace.
27142
27143 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27144
27145         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27146         Support Intel processor model 6 and model 0x2c.
27147
27148 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27149
27150         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27151           signed comparison.
27152
27153 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27154
27155         [BZ #12205]
27156         * string/test-strncasecmp.c (check_result): New function.
27157         (do_one_test): Use it.
27158         (check1): New function.
27159         (test_main): Use it.
27160         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27161         Support strcasecmp and strncasecmp.
27162
27163 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27164
27165         [BZ #12194]
27166         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27167         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27168
27169 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27170
27171         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27172         IFUNC support.
27173         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27174         memset-x86-64.
27175         * sysdeps/x86_64/multiarch/bzero.S: New file.
27176         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27177         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27178         * sysdeps/x86_64/multiarch/memset.S: New file.
27179         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27180         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27181         Set bit_Prefer_SSE_for_memop for Intel processors.
27182         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27183         Define.
27184         (index_Prefer_SSE_for_memop): Define.
27185         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27186
27187 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27188
27189         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27190         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27191
27192 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27193
27194         [BZ #12191]
27195         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27196         (__x86_64_raw_data_cache_size_half): Likewise.
27197         (__x86_64_raw_shared_cache_size): Likewise.
27198         (__x86_64_raw_shared_cache_size_half): Likewise.
27199
27200         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27201         (__x86_64_raw_data_cache_size_half): Likewise.
27202         (__x86_64_raw_shared_cache_size): Likewise.
27203         (__x86_64_raw_shared_cache_size_half): Likewise.
27204         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27205         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27206         and __x86_64_raw_shared_cache_size_half.  Round
27207         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27208         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27209         to multiple of 256 bytes.
27210
27211 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27212
27213         [BZ #12167]
27214         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27215         of inacessible symlinks.  Verify result of symlink before returning it.
27216         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27217         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27218
27219 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27220
27221         * math/math.h (isinf): Fix typo in comment.
27222
27223 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27224
27225         * po/da.po: Update from translation team.
27226
27227 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27228
27229         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27230         is added to the list.
27231
27232 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27233             Ulrich Drepper  <drepper@gmail.com>
27234
27235         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27236         the global list here.  Move code to...
27237         (_dl_add_to_namespace_list): ...here.  New function.
27238         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27239         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27240         * elf/dl-load.c (lose): Don't remove the element from the list.
27241         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27242         (_dl_map_object): Likewise.
27243
27244 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27245
27246         [BZ #12159]
27247         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27248         into all bytes of SSE register.
27249         Patch by Richard Li <richardpku@gmail.com>.
27250
27251 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27252
27253         [BZ #12140]
27254         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27255         perturbing.
27256
27257 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27258
27259         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27260         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27261         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27262         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27264         submachine.
27265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27266
27267 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27268
27269         * include/dlfcn.h (__RTLD_SECURE): Define.
27270         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27271         mode & __RTLD_SECURE instead.
27272         (open_path): Rename preloaded parameter to secure.
27273         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27274         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27275         * elf/dl-deps.c (openaux): Likewise.
27276         * elf/rtld.c (struct map_args): Remove is_preloaded.
27277         (map_doit): Don't use it.
27278         (dl_main): Likewise.
27279         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27280         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27281
27282 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27283
27284         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27285         (sysd-rules-targets): Remove duplicates.
27286         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27287         rtld-%.$o dependency.
27288
27289 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27290
27291         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27292         _dl_map_object do it.
27293
27294 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27295
27296         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27297         fast fma builtins, define the macros in the C99 standard.
27298         (FP_FAST_FMAF): Likewise.
27299         (FP_FAST_FMAL): Likewise.
27300         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27301
27302         * bits/mathdef.h: Update copyright year.
27303         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27304
27305 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27306
27307         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27308         builtins, define the macros in the C99 standard.
27309         (FP_FAST_FMAF): Likewise.
27310         (FP_FAST_FMAL): Likewise.
27311         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27312         multiply/add.
27313         (FP_FAST_FMAF): Likewise.
27314
27315 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27316
27317         [BZ #3268]
27318         * math/libm-test.inc (fma_test): Some new testcases.
27319         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27320         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27321         y and infinite z.  Do multiplication by C already in long double.
27322         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27323         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27324         y and infinite z.  Do bitwise or of inexact bit into u.d.
27325         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27326         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27327         * sysdeps/i386/fpu/s_fma.S: Removed.
27328         * sysdeps/i386/fpu/s_fmal.S: Removed.
27329
27330 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27331
27332         [BZ #3268]
27333         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
27334         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
27335         computation is not scheduled after fetestexcept.  Fix value
27336         of minimum denormal long double.
27337
27338 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
27339
27340         [BZ #3268]
27341         * math/libm-test.inc (fma_test): Add some more tests.
27342         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
27343         correctly.
27344
27345 2010-10-15  Andreas Schwab  <schwab@redhat.com>
27346
27347         * scripts/data/localplt-s390-linux-gnu.data: New file.
27348         * scripts/data/localplt-s390x-linux-gnu.data: New file.
27349
27350 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
27351
27352         [BZ #3268]
27353         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
27354         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
27355         instead of dbl-64.
27356         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
27357         inlines.
27358         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
27359         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
27360         if one of x and y is very large and the other is subnormal.
27361         * sysdeps/s390/fpu/s_fmaf.c: New file.
27362         * sysdeps/s390/fpu/s_fma.c: New file.
27363         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
27364         * sysdeps/powerpc/fpu/s_fma.S: New file.
27365         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
27366         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
27367         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
27368
27369 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
27370
27371         [BZ #3268]
27372         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
27373         fma tests.
27374         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
27375         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
27376         * sysdeps/i386/i686/multiarch/s_fma.c: Include
27377         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
27378         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
27379         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
27380         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
27381
27382 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
27383
27384         [BZ #12078]
27385         * posix/regcomp.c (parse_branch): One more memory leak plugged.
27386         * posix/bug-regex31.input: Add test case.
27387
27388 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27389
27390         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
27391         * posix/bug-regex31.input: New file.
27392
27393         [BZ #12078]
27394         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
27395         (parse_sub_exp): Fix last change, use postorder.
27396
27397         * posix/bug-regex31.c: New file.
27398         * posix/Makefile: Add rules to build and run bug-regex31.
27399
27400         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
27401
27402         [BZ #12078]
27403         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
27404
27405         [BZ #12108]
27406         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
27407         to have entries in sys_siglist.
27408
27409         [BZ #12093]
27410         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
27411         be NULL.
27412
27413 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
27414
27415         [BZ #3268]
27416         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
27417         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
27418         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27419         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
27420         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
27421         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
27422         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
27423         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
27424         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
27425         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
27426         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
27427         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
27428         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
27429         * math/ftestexcept.c (fetestexcept): Likewise.
27430         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
27431         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
27432         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
27433         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
27434         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
27435         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
27436         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
27437
27438 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27439
27440         [BZ #12107]
27441         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
27442         newline.
27443
27444 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
27445
27446         * string/bug-strstr1.c: New file.
27447         * string/Makefile: Add rules to build and run bug-strstr1.
27448
27449 2010-10-05  Eric Blake  <eblake@redhat.com>
27450
27451         [BZ #12092]
27452         * string/str-two-way.h (two_way_long_needle): Always clear memory
27453         when skipping input due to the shift table.
27454
27455 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
27456
27457         [BZ #12005]
27458         * malloc/mcheck.c: Handle large requests.
27459
27460         [BZ #12077]
27461         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
27462         for strncmp and strncasecmp.
27463         * string/stratcliff.c: Add tests for strcmp and strncmp.
27464         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
27465
27466 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27467
27468         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
27469         __set_fpscr.
27470
27471 2010-09-30  Andreas Jaeger  <aj@suse.de>
27472
27473         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
27474         (CGROUP_SUPER_MAGIC): Define.
27475         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27476         Handle btrfs and cgroup file systems.
27477         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
27478         Likewise.
27479
27480 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
27481
27482         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
27483         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
27484
27485 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27486
27487         [BZ #12067]
27488         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
27489         trying to locate the ELF header.
27490
27491 2010-09-27  Andreas Schwab  <schwab@redhat.com>
27492
27493         [BZ #11611]
27494         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
27495         Mask out sign-bit copies when constructing f_fsid.
27496
27497 2010-09-24  Petr Baudis <pasky@suse.cz>
27498
27499         * debug/stack_chk_fail_local.c: Add missing licence exception.
27500         * debug/warning-nop.c: Likewise.
27501
27502 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
27503
27504         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
27505         implementing getdents64 using getdents syscall, set d_type if
27506         __ASSUME_GETDENTS32_D_TYPE.
27507
27508 2010-09-16  Andreas Schwab  <schwab@redhat.com>
27509
27510         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
27511         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
27512
27513 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
27514
27515         [BZ #12037]
27516         * posix/unistd.h: Undo change of feature selection for ftruncate from
27517         2010-01-11.
27518
27519 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
27520
27521         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
27522         detection.
27523
27524 2010-09-20  Andreas Schwab  <schwab@redhat.com>
27525
27526         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
27527         fanotify_mark.
27528         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27529
27530 2010-09-14  Andreas Schwab  <schwab@redhat.com>
27531
27532         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
27533         variables after CHECK_SP call.
27534         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
27535
27536 2010-09-13  Andreas Schwab  <schwab@redhat.com>
27537             Ulrich Drepper  <drepper@redhat.com>
27538
27539         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
27540         re-relocationg ld.so.
27541         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
27542         _dl_init_paths call.
27543         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
27544         here anymore.
27545
27546 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
27547
27548         * resolv/res_init.c (__res_vinit): Count the default server we added.
27549
27550 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
27551             Ulrich Drepper  <drepper@redhat.com>
27552
27553         [BZ #11968]
27554         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
27555         (____longjmp_chk): Use %ebx for saving value across system call.
27556         Add unwind info.
27557
27558 2010-09-06  Andreas Schwab  <schwab@redhat.com>
27559
27560         * manual/Makefile: Don't mix pattern rules with normal rules.
27561
27562 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27563
27564         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
27565         operation.
27566         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
27567         * libio/iofopncook.c (_IO_cookie_init): Likewise.
27568         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
27569         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
27570         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
27571         Likewise.
27572
27573 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
27574
27575         [BZ #11979]
27576         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
27577         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
27578
27579 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
27580
27581         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
27582         * sysdeps/x86_64/addmul_1.S: Likewise.
27583         * sysdeps/x86_64/lshift.S: Likewise.
27584         * sysdeps/x86_64/mul_1.S: Likewise.
27585         * sysdeps/x86_64/rshift.S: Likewise.
27586         * sysdeps/x86_64/sub_n.S: Likewise.
27587         * sysdeps/x86_64/submul_1.S: Likewise.
27588
27589 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27590
27591         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
27592         Define __sched_param instead of SCHED_* and sched_param when
27593         <bits/sched.h> is included with __need_schedparam defined.
27594         * bits/sched.h [__need_schedparam]
27595         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
27596         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
27597         (__defined_schedparam): Define to 1.
27598         (__sched_param): New structure, identical to sched_param.
27599         (__need_schedparam): Undefine.
27600
27601 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
27602
27603         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
27604         (epoll_create1): Declare.
27605
27606         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
27607
27608 2010-08-31  Andreas Schwab  <schwab@redhat.com>
27609
27610         [BZ #7066]
27611         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
27612         shifting retval into place.
27613
27614 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
27615
27616         * nis/rpcsvc/nis.h: Update copyright notice.
27617         * nis/rpcsvc/nis.x: Likewise.
27618         * nis/rpcsvc/nis_callback.h: Likewise.
27619         * nis/rpcsvc/nis_callback.x: Likewise.
27620         * nis/rpcsvc/nis_object.x: Likewise.
27621         * nis/rpcsvc/nis_tags.h: Likewise.
27622         * nis/rpcsvc/yp.h: Likewise.
27623         * nis/rpcsvc/yp.x: Likewise.
27624         * nis/rpcsvc/ypupd.h: Likewise.
27625         * nis/yp_xdr.c: Likewise.
27626         * nis/ypupdate_xdr.c: Likewise.
27627
27628         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
27629         mainly the body of pmap_getport.  Add parameters to specify timeouts.
27630         (pmap_getport): Use __libc_rpc_getport.
27631         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
27632         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
27633         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
27634
27635 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
27636
27637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
27638         fanotify_mark.
27639
27640 2010-08-27  Roland McGrath  <roland@redhat.com>
27641
27642         * sysdeps/i386/i686/multiarch/Makefile
27643         (CFLAGS-varshift.c): New variable.
27644
27645 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
27646
27647         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
27648         * sysdeps/i386/i686/multiarch/varshift.c: New file.
27649
27650         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
27651
27652         * sysdeps/x86_64/strlen.S: Minimal code improvement.
27653
27654 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
27655
27656         * sysdeps/x86_64/strlen.S: Unroll the loop.
27657         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27658         strlen-sse2 strlen-sse2-bsf.
27659         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
27660         __strlen_no_bsf if bit_Slow_BSF is set.
27661         (__strlen_sse42): Removed.
27662         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
27663         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
27664
27665 2010-08-25  Roland McGrath  <roland@redhat.com>
27666
27667         * sysdeps/x86_64/multiarch/varshift.S: File removed.
27668         * sysdeps/x86_64/multiarch/varshift.c: New file.
27669         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
27670         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
27671         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
27672         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27673
27674 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27675
27676         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27677         strlen-sse2 strlen-sse2-bsf.
27678         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
27679         __strlen_sse2_bsf if bit_Slow_BSF is unset.
27680         (__strlen_sse2): Removed.
27681         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
27682         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
27683         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
27684         bit_Slow_BSF for Atom.
27685         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
27686         (index_Slow_BSF): Define.
27687         (HAS_SLOW_BSF): Define.
27688
27689 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
27690
27691         [BZ #10851]
27692         * resolv/res_init.c (__res_vinit): When no server address at all
27693         is given default to loopback.
27694
27695 2010-08-24  Roland McGrath  <roland@redhat.com>
27696
27697         * configure.in: Remove config-name.h generation.
27698         * configure: Regenerated.
27699         * config-name.in: File removed.
27700         * scripts/config-uname.sh: New file.
27701         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
27702         ($(objdir)config-name.h): New target.
27703
27704         * sunrpc/rpc_parse.h: Avoid nested comment.
27705
27706 2010-08-24  Richard Henderson  <rth@redhat.com>
27707             Ulrich Drepper  <drepper@redhat.com>
27708             H.J. Lu  <hongjiu.lu@intel.com>
27709
27710         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
27711         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
27712         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
27713         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
27714         _mm_alignr_epi8 with _mm_loadu_si128.
27715         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
27716         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
27717         (__m128i_shift_right): Removed.
27718         * sysdeps/i386/i686/multiarch/varshift.h: New file.
27719         * sysdeps/i386/i686/multiarch/varshift.S: New file.
27720         * sysdeps/x86_64/multiarch/varshift.h: New file.
27721         * sysdeps/x86_64/multiarch/varshift.S: New file.
27722
27723 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
27724
27725         * configure.in: Move assembler checks to before sysdep dir checking.
27726
27727 2010-08-20  Petr Baudis  <pasky@suse.cz>
27728
27729         * LICENSES: Sync the sunrpc license.
27730
27731 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
27732
27733         * sunrpc/auth_des.c: Update copyright notice once again.
27734         * sunrpc/auth_none.c: Likewise.
27735         * sunrpc/auth_unix.c: Likewise.
27736         * sunrpc/authdes_prot.c: Likewise.
27737         * sunrpc/authuxprot.c: Likewise.
27738         * sunrpc/bindrsvprt.c: Likewise.
27739         * sunrpc/clnt_gen.c: Likewise.
27740         * sunrpc/clnt_perr.c: Likewise.
27741         * sunrpc/clnt_raw.c: Likewise.
27742         * sunrpc/clnt_simp.c: Likewise.
27743         * sunrpc/clnt_tcp.c: Likewise.
27744         * sunrpc/clnt_udp.c: Likewise.
27745         * sunrpc/clnt_unix.c: Likewise.
27746         * sunrpc/des_crypt.c: Likewise.
27747         * sunrpc/des_soft.c: Likewise.
27748         * sunrpc/get_myaddr.c: Likewise.
27749         * sunrpc/getrpcport.c: Likewise.
27750         * sunrpc/key_call.c: Likewise.
27751         * sunrpc/key_prot.c: Likewise.
27752         * sunrpc/openchild.c: Likewise.
27753         * sunrpc/pm_getmaps.c: Likewise.
27754         * sunrpc/pm_getport.c: Likewise.
27755         * sunrpc/pmap_clnt.c: Likewise.
27756         * sunrpc/pmap_prot.c: Likewise.
27757         * sunrpc/pmap_prot2.c: Likewise.
27758         * sunrpc/pmap_rmt.c: Likewise.
27759         * sunrpc/rpc/auth.h: Likewise.
27760         * sunrpc/rpc/auth_unix.h: Likewise.
27761         * sunrpc/rpc/clnt.h: Likewise.
27762         * sunrpc/rpc/des_crypt.h: Likewise.
27763         * sunrpc/rpc/key_prot.h: Likewise.
27764         * sunrpc/rpc/netdb.h: Likewise.
27765         * sunrpc/rpc/pmap_clnt.h: Likewise.
27766         * sunrpc/rpc/pmap_prot.h: Likewise.
27767         * sunrpc/rpc/pmap_rmt.h: Likewise.
27768         * sunrpc/rpc/rpc.h: Likewise.
27769         * sunrpc/rpc/rpc_des.h: Likewise.
27770         * sunrpc/rpc/rpc_msg.h: Likewise.
27771         * sunrpc/rpc/svc.h: Likewise.
27772         * sunrpc/rpc/svc_auth.h: Likewise.
27773         * sunrpc/rpc/types.h: Likewise.
27774         * sunrpc/rpc/xdr.h: Likewise.
27775         * sunrpc/rpc_clntout.c: Likewise.
27776         * sunrpc/rpc_cmsg.c: Likewise.
27777         * sunrpc/rpc_common.c: Likewise.
27778         * sunrpc/rpc_cout.c: Likewise.
27779         * sunrpc/rpc_dtable.c: Likewise.
27780         * sunrpc/rpc_hout.c: Likewise.
27781         * sunrpc/rpc_main.c: Likewise.
27782         * sunrpc/rpc_parse.c: Likewise.
27783         * sunrpc/rpc_parse.h: Likewise.
27784         * sunrpc/rpc_prot.c: Likewise.
27785         * sunrpc/rpc_sample.c: Likewise.
27786         * sunrpc/rpc_scan.c: Likewise.
27787         * sunrpc/rpc_scan.h: Likewise.
27788         * sunrpc/rpc_svcout.c: Likewise.
27789         * sunrpc/rpc_tblout.c: Likewise.
27790         * sunrpc/rpc_util.c: Likewise.
27791         * sunrpc/rpc_util.h: Likewise.
27792         * sunrpc/rpcinfo.c: Likewise.
27793         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
27794         * sunrpc/rpcsvc/key_prot.x: Likewise.
27795         * sunrpc/rpcsvc/klm_prot.x: Likewise.
27796         * sunrpc/rpcsvc/mount.x: Likewise.
27797         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
27798         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
27799         * sunrpc/rpcsvc/rex.x: Likewise.
27800         * sunrpc/rpcsvc/rstat.x: Likewise.
27801         * sunrpc/rpcsvc/rusers.x: Likewise.
27802         * sunrpc/rpcsvc/sm_inter.x: Likewise.
27803         * sunrpc/rpcsvc/spray.x: Likewise.
27804         * sunrpc/rpcsvc/yppasswd.x: Likewise.
27805         * sunrpc/rtime.c: Likewise.
27806         * sunrpc/svc.c: Likewise.
27807         * sunrpc/svc_auth.c: Likewise.
27808         * sunrpc/svc_authux.c: Likewise.
27809         * sunrpc/svc_raw.c: Likewise.
27810         * sunrpc/svc_run.c: Likewise.
27811         * sunrpc/svc_simple.c: Likewise.
27812         * sunrpc/svc_tcp.c: Likewise.
27813         * sunrpc/svc_udp.c: Likewise.
27814         * sunrpc/svc_unix.c: Likewise.
27815         * sunrpc/svcauth_des.c: Likewise.
27816         * sunrpc/xcrypt.c: Likewise.
27817         * sunrpc/xdr.c: Likewise.
27818         * sunrpc/xdr_array.c: Likewise.
27819         * sunrpc/xdr_float.c: Likewise.
27820         * sunrpc/xdr_mem.c: Likewise.
27821         * sunrpc/xdr_rec.c: Likewise.
27822         * sunrpc/xdr_ref.c: Likewise.
27823         * sunrpc/xdr_sizeof.c: Likewise.
27824         * sunrpc/xdr_stdio.c: Likewise.
27825
27826         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
27827         handling.
27828
27829 2010-08-19  Andreas Schwab  <schwab@redhat.com>
27830
27831         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
27832
27833 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
27834
27835         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
27836         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
27837         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
27838         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
27839         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
27840         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
27841         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
27842         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
27843         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
27844         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
27845         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
27846         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
27847         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
27848         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
27849
27850 2010-07-26  Anton Blanchard  <anton@samba.org>
27851
27852         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
27853         * malloc/arena.c (heap_trim): Likewise.
27854
27855 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
27856
27857         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
27858         here.  Not...
27859         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
27860         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
27861
27862 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27863
27864         * sysdeps/i386/elf/Makefile: New file.
27865
27866 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27867
27868         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
27869         from fanotify_init.
27870         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
27871         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27872
27873 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
27874
27875         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
27876         of strncasecmp_l.
27877         * sysdeps/multiarch/strcmp.S: Likewise.
27878
27879 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
27880
27881         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27882         strncase_l-nonascii.
27883         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27884         Add strncase_l-ssse3.
27885         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
27886         * sysdeps/x86_64/strcmp.S: Likewise.
27887         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
27888         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
27889         * sysdeps/x86_64/strncase.S: New file.
27890         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
27891         * sysdeps/x86_64/strncase_l.S: New file.
27892         * string/Makefile (strop-tests): Add strncasecmp.
27893         * string/test-strncasecmp.c: New file.
27894
27895         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
27896         warning.
27897
27898         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
27899         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
27900
27901 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27902
27903         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
27904
27905 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
27906
27907         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
27908         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
27909         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
27910
27911 2010-05-01  Alan Modra  <amodra@gmail.com>
27912
27913         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
27914         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
27915         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
27916         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
27917         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
27918         tidying.  Don't tail-call __sigjmp_save for static lib.
27919         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
27920         save location.
27921         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
27922         (CALL_MCOUNT): Add eh info, and nop after bl.
27923         (TAIL_CALL_SYSCALL_ERROR): New macro.
27924         (PSEUDO_RET): Use it.
27925         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
27926         Correct save location of integer regs and cr.
27927         (_dl_profile_resolve): Correct cr save location.  Delete nops
27928         after bl when SHARED.  Reduce cfi size a little by better
27929         placement of cfi directives.
27930         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
27931         make a stack frame.  Instead use parm save area as a temp.
27932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
27933         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
27934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
27935         Don't make a stack frame for parent, use parm save area.
27936         Increase child stack frame to 112 bytes.  Don't save unused reg,
27937         and adjust reg usage.  Set up cfi on error recovery and
27938         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
27939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
27940         (__makecontext): Add dummy nop after jump to exit.
27941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
27942         Use correct parm save area and cr save, reduce stack frame.
27943         Correct cfi for possible PSEUDO_RET frame setup.
27944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
27945         Branch to local label emitted by PSEUDO_RET rather than
27946         __syscall_error.
27947
27948 2010-08-12  Andreas Schwab  <schwab@redhat.com>
27949
27950         [BZ #11904]
27951         * locale/programs/locale.c (print_assignment): New function.
27952         (show_locale_vars): Use it.
27953
27954 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
27955
27956         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
27957         field.
27958         (struct statfs64): Likewise.
27959         (_STATFS_F_FLAGS): Define.
27960         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
27961         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27962         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
27963         (ST_VALID): Define locally.
27964         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
27965         __statvfs_getflags, use the provided value.
27966         * sysdeps/unix/sysv/linux/kernel-features.h: Define
27967         __ASSUME_STATFS_F_FLAGS.
27968
27969         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
27970
27971         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
27972         Add sys/fanotify.h.
27973         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
27974         fanotify_mask for GLIBC_2.13.
27975         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
27976         fanotify_init and fanotify_mark.
27977         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27978         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
27979
27980         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
27981         Add prlimit.
27982         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
27983         prlimit64 for GLIBC_2.13.
27984         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
27985         prlimit64.
27986         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
27987         syscall.
27988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
27989         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27990         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
27991         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
27992         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
27993         add prlimit alias.
27994         * sysdeps/unix/sysv/linux/prlimit.c: New file.
27995
27996         [BZ #11903]
27997         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
27998         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
27999
28000         * nss/Makefile: Add rules to build and run tst-nss-test1.
28001         * shlib-versions: Add entry for libnss_test1.
28002         * nss/nss_test1.c: New file.
28003         * nss/tst-nss-test1.c: New file.
28004
28005         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28006         (__nss_configure_lookup): Set appropriate entry in
28007         __nss_configure_lookup to true.
28008         * nss/nsswitch.h: Define enum with indeces of databases in
28009         databases and __nss_database_custom arrays.  Declare
28010         __nss_database_custom.
28011         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28012         to avoid using nscd when custom rules are installed.
28013         * nss/getXXbyYY_r.c: Likewise.
28014         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28015
28016         * nss/nss_files/files-parse.c: Whitespace fixes.
28017
28018 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28019
28020         [BZ #11883]
28021         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28022         * posix/fnmatch_loop.c: Likewise.
28023
28024 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28025
28026         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28027         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28028         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28029         * Versions.def [GLIBC_2.13]: Add.
28030
28031 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28032
28033         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28034         Also fail if tpwd after pwuid call is NULL.
28035
28036 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28037
28038         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28039         when converting to ms.
28040
28041 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28042
28043         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28044         EOPNOTSUPP errors with ENOTTY.
28045         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28046         EOPNOTSUPP errors with ENOTTY.
28047
28048 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28049
28050         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28051         Add strcasecmp_l-ssse3.
28052         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28053         strcasecmp.
28054         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28055         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28056         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28057
28058 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28059
28060         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28061
28062         * string/Makefile (strop-tests): Add strcasecmp.
28063         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28064         strcasecmp_l-nonascii.
28065         (gen-as-const-headers): Add locale-defines.sym.
28066         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28067         * sysdeps/x86_64/strcasecmp.S: New file.
28068         * sysdeps/x86_64/strcasecmp_l.S: New file.
28069         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28070         * sysdeps/x86_64/locale-defines.sym: New file.
28071         * string/test-strcasecmp.c: New file.
28072
28073         * string/test-strcasestr.c: Test both ends of the range of characters.
28074         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28075
28076 2010-07-29  Roland McGrath  <roland@redhat.com>
28077
28078         [BZ #11856]
28079         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28080
28081 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28082
28083         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28084         for ld.so.
28085
28086 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28087
28088         * manual/memory.texi (Malloc Tunable Parameters): Document
28089         M_PERTURB.
28090
28091 2010-07-26  Roland McGrath  <roland@redhat.com>
28092
28093         [BZ #11840]
28094         * configure.in (-fgnu89-inline check): Set and substitute
28095         gnu89_inline, not libc_cv_gnu89_inline.
28096         * configure: Regenerated.
28097         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28098
28099 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28100
28101         * string/test-strnlen.c: New file.
28102         * string/Makefile (strop-tests): Add strnlen.
28103         * string/tester.c (test_strnlen): Add a few more test cases.
28104         * string/tst-strlen.c: Better error reporting.
28105
28106         * sysdeps/x86_64/strnlen.S: New file.
28107
28108 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28109
28110         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28111         lower-latency instructions.
28112
28113 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28114
28115         * string/test-strcasestr.c: New file.
28116         * string/test-strstr.c: New file.
28117         * string/Makefile (strop-tests): Add strstr and strcasestr.
28118         * string/str-two-way.h: Don't undefine MAX.
28119         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28120
28121 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28122
28123         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28124         strcasestr-nonascii.
28125         (CFLAGS-strcasestr-nonascii.c): Define.
28126         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28127         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28128         Remove unused attribute.
28129
28130 2010-07-20  Roland McGrath  <roland@redhat.com>
28131
28132         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28133         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28134         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28135         like LD_HWCAP_MASK can disable hwcaps.
28136
28137 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28138
28139         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28140
28141 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28142
28143         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28144         call in strcasestr.
28145         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28146         __strcasestr_sse42_nonascii.
28147         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28148         strcasestr-nonascii.c.
28149         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28150
28151 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28152
28153         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28154         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28155         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28156         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28157
28158 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28159
28160         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28161         fcntl.
28162
28163 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28164
28165         [BZ #11577]
28166         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28167         dl_signal_cerror.
28168
28169 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28170
28171         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28172         _PC_PIPE_BUF using F_GETPIPE_SZ.
28173
28174 2010-07-05  Roland McGrath  <roland@redhat.com>
28175
28176         * manual/arith.texi (Rounding Functions): Fix rint description
28177         implicit in round description.
28178
28179 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28180
28181         * elf/Makefile: Fix linking for a few tests to make recent linker
28182         happy.
28183
28184 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28185
28186         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28187         $(common-objpfx)libc_nonshared.a.
28188
28189 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28190
28191         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28192         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28193         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28194         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28195         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28196         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28197         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28198         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28213         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28214         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28215         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28216         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28217         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28218         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28219         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28220         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28221         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28222         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28223         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28224         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28239
28240 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28241
28242         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28243         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28244         * string/memmove.c (memmove): Renamed to ...
28245         (MEMMOVE): ...this.  Default to memmove.
28246         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28247         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28248         (END_CHK): Define.
28249         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28250         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28251         mempcpy-ssse3-back memmove-ssse3-back.
28252         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28253         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28254         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28255         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28256         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28257         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28258         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28259         * sysdeps/x86_64/multiarch/memmove.c: New file.
28260         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28261         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28262         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28263         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28264         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28265         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28266         Define.
28267         (index_Fast_Copy_Backward): Define.
28268         (HAS_ARCH_FEATURE): Define.
28269         (HAS_FAST_REP_STRING): Define.
28270         (HAS_FAST_COPY_BACKWARD): Define.
28271
28272 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28273
28274         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28275         Restore proper fallback handling.
28276
28277 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28278
28279         [BZ #11701]
28280         * posix/group_member.c (__group_member): Correct checking loop.
28281
28282         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28283         OOM in getpwuid_r correctly.  Return error number when the caller
28284         should return, otherwise -1.
28285         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28286         call returning > 0 value.
28287         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28288
28289 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28290
28291         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28292         libc_nonshared.a from targets in modules-names.
28293
28294 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28295
28296         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28297         requires it.
28298
28299 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28300
28301         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28302         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28303         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28304         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28305
28306 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28307
28308         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28309
28310 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28311
28312         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28313         and F_GETPIPE_SZ.
28314         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28315         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28316         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28317         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28318         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28319         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28320
28321 2010-06-14  Roland McGrath  <roland@redhat.com>
28322
28323         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28324
28325 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28326
28327         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28328         __REDIRECT followed by __THROW.
28329         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28330         * posix/getopt.h (getopt): Likewise.
28331
28332 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28333
28334         * hurd/lookup-at.c (__file_name_lookup_at): Accept
28335         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
28336         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
28337         in AT_FLAGS.
28338         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
28339         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
28340
28341 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
28342
28343         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
28344
28345 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
28346
28347         [BZ #11640]
28348         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28349         Properly check family and model.
28350
28351 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
28352
28353         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
28354
28355 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
28356
28357         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
28358
28359 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
28360
28361         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
28362         symbol reference.
28363
28364 2010-05-19  Andreas Schwab  <schwab@redhat.com>
28365
28366         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
28367         symbol reference.
28368
28369 2010-05-21  Andreas Schwab  <schwab@redhat.com>
28370
28371         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
28372         and internal_recvmmsg.
28373         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
28374         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
28375         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
28376         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
28377
28378         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
28379         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
28380         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
28381
28382 2010-05-20  Andreas Schwab  <schwab@redhat.com>
28383
28384         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
28385
28386 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
28387
28388         POWER7 optimizations.
28389         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
28390         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
28391
28392 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
28393
28394         * version.h: Update for 2.13 development version.
28395
28396 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
28397
28398         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
28399         exceptions.  Return 0.
28400
28401 2010-05-07  Roland McGrath  <roland@redhat.com>
28402
28403         * elf/ldconfig.c (main): Add a const.
28404
28405 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
28406
28407         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
28408         (args_options): Add no-idn option.
28409         (ahosts_keys_int): Add idn_flags to ai_flags.
28410         (parse_option): Handle 'i' option to clear idn_flags.
28411
28412         * malloc/malloc.c (_int_free): Possible race in the most recently
28413         added check.  Only act on the data if no current modification
28414         happened.
28415
28416 See ChangeLog.17 for earlier changes.