PowerPC: fix hypot/hypof FP exceptions
[platform/upstream/glibc.git] / ChangeLog
1 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         [BZ #15418]
4         [BZ #15419]
5         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
6         internal tests.
7         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8
9 2013-05-06  Roland McGrath  <roland@hack.frob.com>
10
11         * elf/dl-writev.h: New file.
12         * elf/dl-misc.c: Include it.
13         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
14         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
15
16 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
17
18         * math/libm-test.inc (noXFails): Remove variable.
19         (noXPasses): Likewise.
20         (BUILD_COMPLEX_INT): Remove macro.
21         (print_screen): Remove xfail argument.
22         (print_screen_max_error): Likewise.
23         (update_stats): Likewise.
24         (print_max_error): Likewise.  Update calls to other affected
25         functions.
26         (print_complex_max_error): Likewise.
27         (test_single_exception): Update calls to print_screen.
28         (test_single_errno): Likewise.
29         (check_float_internal): Remove xfail argument.  Update calls to
30         other affected functions.
31         (check_float): Likewise.
32         (check_complex): Likewise.
33         (check_int): Likewise.
34         (check_long): Likewise.
35         (check_bool): Likewise.
36         (check_longlong): Likewise.
37         (main): Don't print noXFails and noXPasses.
38         * math/gen-libm-test.pl (top level): Don't mention expected
39         failure handling in comment.
40         (new_test): Don't handle expected failures.
41         (parse_args): Don't mention expected failure handling in comment.
42         (generate_testfile): Don't handle expected failures.
43         (parse_ulps): Likewise.
44         (print_ulps_file): Likewise.
45         (get_failure): Remove function.
46         (output_test): Don't handle expected failures.
47         * make/README.libm-test: Don't mention expected failure handling.
48
49         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
50         (minus_zero): Likewise.
51         (plus_infty): Likewise.
52         (minus_infty): Likewise.
53         (qnan_value): Likewise.
54         (max_value): Likewise.
55         (min_value): Likewise.
56         (min_subnorm_value): Likewise.
57         (initialize): Do not initialize those variables dynamically.
58
59 2013-05-03  Roland McGrath  <roland@hack.frob.com>
60
61         * io/open.c (__open_2): Moved to ...
62         * io/open_2.c: ... this new file.
63         * io/open64.c (__open64_2): Moved to ...
64         * io/open64_2.c: ... this new file.
65         * io/openat.c (__openat_2): Moved to ...
66         * io/openat_2.c: ... this new file.
67         * io/openat64.c (__openat64_2): Moved to ...
68         * io/openat64_2.c: ... this new file.
69         * io/Makefile (routines): Add them.
70         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
71         * sysdeps/unix/sysv/linux/open_2.c: File removed.
72         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
73         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
74         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
75         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
76         (__openat64): Add hidden_ver.
77         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
78         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
79
80         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
81         Separately conditionalize setting of GLRO(dl_sysinfo) so
82         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
83         as well, but the actual setting is only under [NEED_DL_SYSINFO].
84
85 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86
87         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
88         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
89         definition.
90         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
91         * sysdeps/unix/sysv/linux/powerpc/init-first.c
92         (_libc_vdso_platform_setup): Add __vdso_time initialization.
93         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
94         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
95
96 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
97
98         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
99         test signgam value.
100
101         * math/libm-test.inc (hypot_test): Do not use
102         IGNORE_ZERO_INF_SIGN.
103
104 2013-05-03  Andreas Jaeger  <aj@suse.de>
105
106         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
107         Linux 3.9.
108         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
109         (PF_MAX): Adjust for VSOCK change.
110
111 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
112
113         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
114
115 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
116
117         [BZ #15264]
118         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
119         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
120         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
121
122 2013-05-02  David S. Miller  <davem@davemloft.net>
123
124         * sysdeps/sparc/fpu/libm-test-ulps: Update.
125
126 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
127
128         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
129
130 2013-05-01  Roland McGrath  <roland@hack.frob.com>
131
132         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
133
134 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
135
136         [BZ #14952]
137         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
138         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
139         Use __attribute__ ((__gnu_inline__)).
140         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
141         Don't use __attribute__ ((__gnu_inline__)).
142
143 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
144
145         [BZ #15423]
146         * math/s_catan.c (__catan): Handle small real or imaginary part of
147         input specially to avoid spurious underflow.
148         * math/s_catanf.c (__catanf): Likewise.
149         * math/s_catanh.c (__catanh): Likewise.
150         * math/s_catanhf.c (__catanhf): Likewise.
151         * math/s_catanhl.c (__catanhl): Likewise.
152         * math/s_catanl.c (__catanl): Likewise.
153         * math/libm-test.inc (catan_test): Add more tests.
154         (catanh_test): Likewise.
155         * sysdeps/i386/fpu/libm-test-ulps: Update.
156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
157
158 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
159
160         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
161
162 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
163
164         [BZ #15416]
165         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
166         accurately for denominator in atan2.
167         * math/s_catanf.c (__catanf): Likewise.
168         * math/s_catanh.c (__catanh): Likewise.
169         * math/s_catanhf.c (__catanhf): Likewise.
170         * math/s_catanhl.c (__catanhl): Likewise.
171         * math/s_catanl.c (__catanl): Likewise.
172         * math/libm-test.inc (catan_test): Add more tests.
173         (catanh_test): Likewise.
174         * sysdeps/i386/fpu/libm-test-ulps: Update.
175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
176
177 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
178
179         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
180
181         * benchtests/Makefile (bench): Remove slow benchmarks.
182         * benchtests/atan-inputs: Add slow benchmark inputs.
183         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
184         (BENCH_FUNC): Accept variant offset.
185         (VARIANT): Define.
186         * benchtests/bench-skeleton.c (main): Run benchmark for each
187         variant.
188         * benchtests/cos-inputs: Add slow benchmark inputs.
189         * benchtests/exp-inputs: Likewise.
190         * benchtests/pow-inputs: Likewise.
191         * benchtests/sin-inputs: Likewise.
192         * benchtests/slowatan-inputs: Remove.
193         * benchtests/slowatan.c: Remove.
194         * benchtests/slowcos-inputs: Remove.
195         * benchtests/slowcos.c: Remove.
196         * benchtests/slowexp-inputs: Remove.
197         * benchtests/slowexp.c: Remove.
198         * benchtests/slowpow-inputs: Remove.
199         * benchtests/slowpow.c: Remove.
200         * benchtests/slowsin-inputs: Remove.
201         * benchtests/slowsin.c: Remove.
202         * benchtests/slowtan-inputs: Remove.
203         * benchtests/slowtan.c: Remove.
204         * benchtests/tan-inputs: Add slow benchmark inputs.
205         * scripts/bench.pl: Parse comments and directives.
206
207         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
208         in CPPFLAGS.
209         ($(objpfx)bench-%.c): Remove *-ITER.
210         * benchtests/bench-modf.c: Remove definition of ITER.
211         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
212         (main): Loop for DURATION seconds instead of fixed number of
213         iterations.
214         * scripts/bench.pl: Don't expect iterations in parameters.
215
216 2013-04-29  Roland McGrath  <roland@hack.frob.com>
217
218         * io/fchdir.c (__fchdir): Renamed from fchdir.
219         (fchdir): Define as weak alias.
220
221 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
222
223         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
224         (ERRNO_EDOM): Likewise.
225         (ERRNO_ERANGE): Likewise.
226         (noErrnoTests): New variable.
227         (init_max_error): Set errno to 0.
228         (test_single_errno): New function.
229         (test_errno): Likewise.
230         (check_float_internal): Call test_errno.  Set errno to 0.
231         (check_complex): Refer to errno tests in comment.
232         (check_int): Call test_errno.  Set errno to 0.
233         (check_long): Likewise.
234         (check_bool): Likewise.
235         (check_longlong): Likewise.
236         (cos_test): Use ERRNO_* flags for errno tests instead of
237         check_int.
238         (expm1_test): Likewise.
239         (fmod_test): Likewise.
240         (ilogb_test): Likewise.
241         (lgamma_test): Likewise.
242         (pow_test): Likewise.
243         (remainder_test): Likewise.
244         (sin_test): Likewise.
245         (tan_test): Likewise.
246         (yn_test): Likewise.
247         (initialize): Set errno to 0.
248         (main): Print number of errno tests.
249         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
250
251 2013-04-29  Andreas Jaeger  <aj@suse.de>
252
253         [BZ #15084]
254         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
255         and RES_USEVC.
256
257         [BZ #15085]
258         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
259         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
260         unimplemented.
261
262         [BZ #15380]
263         * stdlib/random.c (__initstate): Return NULL if
264         __initstate fails.
265
266         [BZ #15086]
267         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
268         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
269         RES_SNGLKUPREOP.
270
271 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
272
273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
274
275 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
276
277         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
278         of individual tests.
279         (casin_test): Likewise.
280         (casinh_test): Likewise.
281
282 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
283
284         [BZ #15409]
285         * math/s_catan.c (__catan): Handle arguments with large real or
286         imaginary part separately without squaring.
287         * math/s_catanf.c (__catanf): Likewise.
288         * math/s_catanh.c (__catanh): Likewise.
289         * math/s_catanhf.c (__catanhf): Likewise.
290         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
291         and redefine.
292         (__catanhl): Handle arguments with large real or imaginary part
293         separately without squaring.
294         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
295         and redefine.
296         (__catanl): Handle arguments with large real or imaginary part
297         separately without squaring.
298         * math/libm-test.inc (catan_test): Add more tests.
299         (catanh_test): Likewise.
300         * sysdeps/i386/fpu/libm-test-ulps: Update.
301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
302
303 2013-04-27  Andreas Jaeger  <aj@suse.de>
304
305         [BZ #15007]
306         * stdlib/stdlib.h: Update guards for qecvt.
307         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
308         <stdlib.h>.
309
310 2013-04-27  Allan McRae  <allan@archlinux.org>
311
312         * sysdeps/i386/fpu/libm-test-ulps: Update.
313
314 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
315
316         [BZ #15406]
317         * math/s_catan.c: Include <float.h>.
318         (__catan): Ensure underflow exception occurs for underflowed
319         result.
320         * math/s_catanf.c: Include <float.h>.
321         (__catanf): Ensure underflow exception occurs for underflowed
322         result.
323         * math/s_catanh.c: Include <float.h>.
324         (__catanh): Ensure underflow exception occurs for underflowed
325         result.
326         * math/s_catanhf.c: Include <float.h>.
327         (__catanhf): Ensure underflow exception occurs for underflowed
328         result.
329         * math/s_catanhl.c: Include <float.h>.
330         (__catanhl): Ensure underflow exception occurs for underflowed
331         result.
332         * math/s_catanl.c: Include <float.h>.
333         (__catanl): Ensure underflow exception occurs for underflowed
334         result.
335         * math/libm-test.inc (catan_test): Add more tests.
336         (catanh_test): Likewise.
337
338         [BZ #15405]
339         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
340         underflowed result.
341         * math/s_ccoshf.c (__ccoshf): Likewise.
342         * math/s_ccoshl.c (__ccoshl): Likewise.
343         * math/s_csin.c (__csin): Likewise.
344         * math/s_csinf.c (__csinf): Likewise.
345         * math/s_csinh.c (__csinh): Likewise.
346         * math/s_csinhf.c (__csinhf): Likewise.
347         * math/s_csinhl.c (__csinhl): Likewise.
348         * math/s_csinl.c (__csinl): Likewise.
349         * math/libm-test.inc (ccos_test): Add more tests.
350         (ccosh_test): Likewise.
351         (csin_test): Likewise.
352         (csinh_test): Likewise.
353
354 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
355
356         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
357         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
358         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
359         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
360         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
361         powerpc/power5+/fpu folders.
362         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
363
364
365 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
366
367         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
368
369 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
370
371         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
372         additions to variable.
373         [$(config-machine) = x86_64] (modules-names): Likewise.
374         ($(objpfx)tst-audit3): Remove dependency.
375         ($(objpfx)tst-audit3.out): Likewise.
376         ($(objpfx)tst-audit4): Likewise.
377         ($(objpfx)tst-audit4.out): Likewise.
378         ($(objpfx)tst-audit5): Likewise.
379         ($(objpfx)tst-audit5.out): Likewise.
380         ($(objpfx)tst-audit6): Likewise.
381         ($(objpfx)tst-audit6.out): Likewise.
382         ($(objpfx)tst-audit7): Likewise.
383         ($(objpfx)tst-audit7.out): Likewise.
384         (tst-audit3-ENV): Remove variable.
385         (tst-audit4-ENV): Likewise.
386         (tst-audit5-ENV): Likewise.
387         (tst-audit6-ENV): Likewise.
388         (tst-audit7-ENV): Likewise.
389         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
390         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
391         addition to variable.
392         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
393         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
394         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
395         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
396         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
397         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
398         tst-audit3, tst-audit4 and tst-audit5.
399         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
400         tst-audit6 and tst-audit7.
401         [$(subdir) = elf] (modules-names): Add audit modules for those
402         tests.
403         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
404         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
405         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
406         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
407         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
408         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
409         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
410         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
411         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
412         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
413         [$(subdir) = elf] (tst-audit3-ENV): New variable.
414         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
415         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
416         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
417         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
418         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
419         Likewise.
420         [$(subdir) = elf && $(config-cflags-avx) = yes]
421         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
422         [$(subdir) = elf && $(config-cflags-avx) = yes]
423         (CFLAGS-tst-auditmod4a.c): Likewise.
424         [$(subdir) = elf && $(config-cflags-avx) = yes]
425         (CFLAGS-tst-auditmod4b.c): Likewise.
426         [$(subdir) = elf && $(config-cflags-avx) = yes]
427         (CFLAGS-tst-auditmod6b.c): Likewise.
428         [$(subdir) = elf && $(config-cflags-avx) = yes]
429         (CFLAGS-tst-auditmod6c.c): Likewise.
430         [$(subdir) = elf && $(config-cflags-avx) = yes]
431         (CFLAGS-tst-auditmod7b.c): Likewise.
432         * elf/tst-audit3.c: Move to ...
433         * sysdeps/x86_64/tst-audit3.c: ... here.
434         * elf/tst-audit4.c: Move to ...
435         * sysdeps/x86_64/tst-audit4.c: ... here.
436         * elf/tst-audit5.c: Move to ...
437         * sysdeps/x86_64/tst-audit5.c: ... here.
438         * elf/tst-audit6.c: Move to ...
439         * sysdeps/x86_64/tst-audit6.c: ... here.
440         * elf/tst-audit7.c: Move to ...
441         * sysdeps/x86_64/tst-audit7.c: ... here.
442         * elf/tst-auditmod3a.c: Move to ...
443         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
444         * elf/tst-auditmod3b.c: Move to ...
445         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
446         * elf/tst-auditmod4a.c: Move to ...
447         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
448         * elf/tst-auditmod4b.c: Move to ...
449         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
450         * elf/tst-auditmod5a.c: Move to ...
451         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
452         * elf/tst-auditmod5b.c: Move to ...
453         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
454         * elf/tst-auditmod6a.c: Move to ...
455         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
456         * elf/tst-auditmod6b.c: Move to ...
457         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
458         * elf/tst-auditmod6c.c: Move to ...
459         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
460         * elf/tst-auditmod7a.c: Move to ...
461         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
462         * elf/tst-auditmod7b.c: Move to ...
463         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
464
465 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
466
467         [BZ #15366]
468         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
469         define unconditionally.
470         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
471         define unconditionally.
472         (INT8_C, INT16_C, etc.): Likewise.
473
474 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
475
476         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
477         __ehdr_start with hidden visibility.
478
479         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
480
481 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
482
483         * math/libm-test.inc (cos_test): Use accurate hex constants.
484         (sincost_test): Likewise.
485
486 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
487
488         * math/libm-test.inc (catan_test): Add more tests.
489         (catanh_test): Likewise.
490
491         * math/s_catanf.c (__catanf): Use suffixed floating-point
492         constants.
493         * math/s_catanhf.c (__catanhf): Likewise.
494         * math/s_catanhl.c (__catanhl): Likewise.
495         * math/s_catanl.c (__catanl): Likewise.
496
497         [BZ #15394]
498         * math/s_catan.c (__catan): Calculate imaginary part of result
499         with log1p not log unless computing log of number close to 0.
500         * math/s_catanf.c (__catanf): Likewise.
501         * math/s_catanl.c (__catanl): Likewise.
502         * math/s_catanh.c (__catanh): Calculate real part of result with
503         log1p not log unless computing log of number close to 0.
504         * math/s_catanhf.c (__catanhf): Likewise.
505         * math/s_catanhl.c (__catanhl): Likewise.
506         * math/libm-test.inc (catan_test): Add more tests.
507         (catanh_test): Likewise.
508         * sysdeps/i386/fpu/libm-test-ulps: Update.
509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
510
511 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
512
513         * benchtests/Makefile: Mention files in which fast and slow
514         paths of math functions are implemented.
515
516 2013-04-23  Roland McGrath  <roland@hack.frob.com>
517
518         * sysdeps/posix/timespec_get.c: New file.
519
520 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
521
522         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
523         POWER.
524         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
525         for POWER.
526         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
527         powerpc/power5/fpu folders.
528         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
529         * benchtests/Makefile: Add modf testcase.
530         * benchtests/bench-modf.c: New file: Benchmark test for mo
531
532 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
533
534         [BZ #14888]
535         * time/Makefile (tests): Add tst-strptime-whitespace.
536         * time/strptime_l.c (get_number): Use ISSPACE.
537         (__strptime_internal): Likewise.
538         * time/tst-strptime-whitespace.c: New test case.
539
540 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
541
542         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
543         member.
544         (_nss_files_init): Set it here.
545
546 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
547
548         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
549         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
550         unsigned.
551
552 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
553
554         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
555
556 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
557
558         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
559         size just once.
560
561 2013-04-21  David S. Miller  <davem@davemloft.net>
562
563         * po/ru.po: Update Russion translation from translation project.
564
565 2013-04-17  Adam Conrad  <adconrad@0c3.net>
566
567         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
568         and setfsgid.
569
570 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
571
572         * configure.in: Remove i386 configure warning. Remove i386 case.
573         * configure: Regenerate.
574         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
575         Add example to error message.
576         * sysdeps/i386/configure: Regenerate.
577
578 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
579
580         * benchtests/Makefile (bench): Add cos, tan, slowcos and
581         slowtan.
582         * benchtests/cos-inputs: New file.
583         * benchtests/slowcos-inputs: New file.
584         * benchtests/slowcos.c: New file.
585         * benchtests/slowtan-inputs: New file.
586         * benchtests/slowtan.c: New file.
587         * benchtests/tan-inputs: New file.
588
589 2013-04-16  Roland McGrath  <roland@hack.frob.com>
590
591         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
592         considered kosher.
593
594 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
595
596         * benchtests/Makefile: Include cppflags-iterator.mk to add
597         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
598
599         * Makefile.in (bench-clean): New target.
600         * benchtests/Makefile (bench-clean): Likewise.
601
602 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
603
604         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
605
606 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
607
608         * stdio-common/tstdiomisc.c: Fix coding-style violation.
609
610 2013-04-15  Andreas Schwab  <schwab@suse.de>
611
612         * nscd/grpcache.c (cache_addgr): Properly check for short write.
613         * nscd/initgrcache.c (addinitgroupsX): Likewise.
614         * nscd/pwdcache.c (cache_addpw): Likewise.
615         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
616         more than recsize.
617
618 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
619
620         * benchtests/Makefile (bench): Write all output to
621         bench-out.tmp together.
622
623 2013-04-15  Andreas Schwab  <schwab@suse.de>
624
625         * nscd/nscd.c (main): Don't fork again after closing files.
626
627 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
628
629         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
630
631         * benchtests/Rules (bench-deps): Collect dependencies into a
632         single variable.  Add Makefile to dependencies.
633         ($(objpfx)bench-%.c): Depend on bench-deps.
634
635 2013-04-12  Roland McGrath  <roland@hack.frob.com>
636             Xavier Roche  <roche+kml2@exalead.com>
637
638         [BZ #15361]
639         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
640         just that it's a file descriptor.
641         * manual/llio.texi (Synchronizing AIO Operations): Update description
642         for EBADF error from aio_fsync.
643
644 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
645
646         * Rules (bench): Move target definition...
647         * benchtests/Makefile: ... here.
648
649 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
650
651         * math/libm-test.inc (cos_test): Fix PI/2 test.
652         (sincos_test): Likewise.
653         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
654         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
655
656 2013-04-11  Andreas Schwab  <schwab@suse.de>
657
658         [BZ #13988]
659         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
660         accept exponent character only when digits were seen.
661         * stdio-common/Makefile (tests): Add bug26.
662         * stdio-common/bug26.c: New file.
663
664         [BZ #14293]
665         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
666         non-freeable.
667
668 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
669
670         * Makeconfig (rtld-prefix): Define built linker prefix.
671         * Rules (run-bench): Use it.
672         * math/Makefile (run-regen-ulps): Likewise.
673
674         * Rules (bench): Remove eval.
675
676 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
677             Roland McGrath  <roland@hack.frob.com>
678             Ondrej Bilka  <neleai@seznam.cz>
679
680         [BZ #15346]
681         * time/getdate.c: Include ctype.h and alloca.h.
682         (__getdate_r): Trim leading and trailing spaces of input.
683         * time/tst-getdate.c (tests): Add tests with leading and
684         trailing spaces.
685
686 2013-04-08  Roland McGrath  <roland@hack.frob.com>
687
688         [BZ #14280]
689         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
690         when computing value.
691
692 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
693
694         * math/README.libm-test (How can I generate "libm-test-ulps"?):
695         Use testrun.sh to run libm tests.
696
697         [BZ #15309]
698         * elf/dl-open.c (dl_open_worker): memset all of seen array.
699
700 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
701
702         [BZ #15264]
703         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
704
705 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
706
707         * Makefile.in (regen-ulps): New target.
708         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
709         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
710         [ifneq (no,$(PERL)] (regen-ulps): New target.
711         [ifeq (no,$(PERL)] (regen-ulps): New target.
712         * math/libm-test.inc (ulps_file_name): Define.
713         (output_dir): New variable.
714         (options): Add "output-dir" option.
715         (parse_opt): Handle 'o' case.
716         (main): If output_dir is non-NULL use it as a prefix
717         otherwise use "".
718         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
719
720 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
721
722         [BZ #10060, #10062]
723         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
724         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
725         fail configure if __sync_val_compare_and_swap is not inlined.
726         * sysdeps/i386/configure: Regenerate.
727         * configure.in: Build for i686 when configured for i386.
728         * configure: Regenerate.
729         * README: Remove i386 reference.
730
731 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
732
733         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
734         * sysdeps/s390/s390-64/sysdep.h: Likewise.
735
736 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
737
738         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
739         (lmsnanval): New variables.
740         (F): Add conversion tests.
741         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
742         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
743
744         * stdio-common/tstdiomisc.c (F): Properly collect individual
745         tests' results.
746
747         [BZ #14686, #15336]
748         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
749         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
750         Instead, use input NaN values or generate a qNaN by arithmetic
751         operation.  Also fix bugs to comply with the standard.
752         * math/libm-test.inc (remainder_test): Add more tests.
753
754         [BZ #15335, #15342]
755         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
756         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
757         input NaN values or generate a qNaN by arithmetic operation.
758
759         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
760         unreachable code.
761
762         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
763         definitions.
764
765 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
766
767         [BZ #14478]
768         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
769         underflowed result.
770         * math/s_cexpf.c (__cexpf): Likewise.
771         * math/s_cexpl.c (__cexpl): Likewise.
772         * math/libm-test.inc (cexp_test): Add more tests.
773
774 2013-04-03  Andreas Schwab  <schwab@suse.de>
775
776         [BZ #15330]
777         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
778         order arrays from heap if bigger than alloca cutoff.
779
780 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
781
782         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
783         (SNAN_TESTS_double): Refer to GCC PR56831.
784         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
785         GCC PR56828.
786
787 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
788
789         * Rules (bench): Move bench.out after the run is complete.
790
791         * Rules (bench): Echo currently running benchmark.
792
793         * benchtests/Makefile (bench): Add atan and slowatan.
794         * benchtests/atan-inputs: New file.
795         * benchtests/slowatan-inputs: New file.
796         * benchtests/slowatan.c: New file.
797
798         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
799         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
800         its value.
801
802         [BZ #15305]
803         * sysdeps/unix/sysv/linux/kernel-features.h
804         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
805         __ASSUME_XFS_RESTRICTED_CHOWN.
806         * sysdeps/unix/sysv/linux/pathconf.c
807         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
808         Save and restore errno.
809
810 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
811
812         [BZ #15327]
813         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
814         arguments using __kernel_casinh.
815         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
816         arguments using __kernel_casinhf.
817         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
818         arguments using __kernel_casinhl.
819         * math/libm-test.inc (cacosh_test): Add more tests.
820         * sysdeps/i386/fpu/libm-test-ulps: Update.
821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
822
823 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
824
825         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
826         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
827
828         * bench/Makefile (bench): Add sin and slowsin.
829         * benchtests/sin-inputs: New file.
830         * benchtests/slowsin-inputs: New file.
831         * benchtests/slowsin.c: New file.
832
833         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
834         (bench): Add slowexp and slowpow.
835         (exp-ITER): Increase iterations.
836         (pow-ITER): Likewise.
837         * benchtests/exp-inputs: Change input.
838         * benchtests/pow-inputs: Likewise.
839         * benchtests/slowexp-inputs: New file.
840         * benchtests/slowexp.c: New file.
841         * benchtests/slowpow-inputs: New file.
842         * benchtests/slowpow.c: New file.
843
844 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
845
846         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
847         instructions.
848         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
849         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
850         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
851         * benchtests/Makefile: Add rint benchtest.
852         * benchtests/rint-inputs: Input for rint benchtest.
853
854 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
855
856         * Versions.def (libm): Add GLIBC_2.18.
857         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
858         hidden libm prototypes.
859         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
860         * math/Makefile (libm-calls): Add s_issignaling.
861         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
862         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
863         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
864         declaration.
865         * math/math.h [__USE_GNU] (issignaling): New macro.
866         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
867         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
868         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
869         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
870         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
871         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
872         * manual/arith.texi (issignaling): New section.
873         * manual/libm-err-tab.pl (@all_functions): Update comment.
874         * math/gen-libm-test.pl (parse_args): Apply special handling for
875         issignaling.
876         * math/libm-test.inc (print_float, issignaling_test): New
877         functions.
878         (check_float_internal): Add issignaling checks.
879         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
880         default definition.
881         * sysdeps/powerpc/math-tests.h: New file.
882         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
883         tests.
884         * math/test-snan.c (TEST_FUNC): Likewise.
885
886 2013-03-30  David S. Miller  <davem@davemloft.net>
887
888         * po/de.po: Update from translation team.
889
890 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
891
892         [BZ #10357]
893         * math/k_casinh.c (__kernel_casinh): Handle arguments with
894         imaginary part less than 1.0 and real part less than 0.5
895         specially.
896         * math/k_casinhf.c (__kernel_casinhf): Likewise.
897         * math/k_casinhl.c (__kernel_casinhl): Likewise.
898         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
899         (cacos_test): Add more tests.
900         (casin_test): Likewise.
901         (casinh_test): Likewise.
902         * sysdeps/i386/fpu/libm-test-ulps: Update.
903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
904
905 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
906
907         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
908         ONE with its value.
909
910         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
911         (__pow_mp): Replace ONE and MONE with their values.
912         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
913         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
914         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
915         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
916         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
917         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
918
919         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
920
921         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
922         (__pow_mp): Replace ZERO and MZERO with their values.
923         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
924         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
925         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
926         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
927         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
928         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
929         (__sqr): Likewise.
930
931         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
932
933         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
934
935 2013-03-28  Roland McGrath  <roland@hack.frob.com>
936
937         * include/stdlib.h [!SHARED] (__call_tls_dtors):
938         Declare with __attribute__ ((weak)).
939         * stdlib/exit.c (__libc_atexit) [!SHARED]:
940         Call __call_tls_dtors only if it's not NULL.
941
942 2013-03-28  Roland McGrath  <roland@hack.frob.com>
943
944         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
945         didn't do it already, then set _dl_phdr and _dl_phnum based on the
946         magic __ehdr_start linker symbol if it's defined.
947         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
948         them up here if it was already done.
949
950         * elf/dl-support.c (_dl_phdr): Make pointer to const.
951         (_dl_aux_init): Use const in cast when setting it.
952         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
953         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
954         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
955
956         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
957         Declare them here.
958         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
959         * csu/libc-tls.c: Nor here.
960         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
961
962         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
963         (__libc_message): Never call vsyslog.
964
965 2013-03-28  Alan Modra  <amodra@gmail.com>
966
967         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
968         Define as empty.
969         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
970         Likewise.
971
972 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
973
974         [BZ #15214]
975         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
976         underflow.
977         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
978
979 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
980
981         [BZ #15304]
982         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
983         Don't add gid passed as argument.
984
985         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
986
987 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
988
989         [BZ #15307]
990         * math/k_casinh.c (__kernel_casinh): Handle arguments with
991         imaginary part between 1.0 and 1.5 and real part less than 0.5
992         specially.
993         * math/k_casinhf.c (__kernel_casinhf): Likewise.
994         * math/k_casinhl.c (__kernel_casinhl): Likewise.
995         * math/libm-test.inc (cacos_test): Add more tests.
996         (casin_test): Likewise.
997         (casinh_test): Likewise.
998         * sysdeps/i386/fpu/libm-test-ulps: Update.
999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1000
1001 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1002
1003         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
1004         constants.
1005         (norm): Likewise.
1006         (denorm): Likewise.
1007         (__dbl_mp): Likewise.
1008         (add_magnitudes): Likewise.
1009         (sub_magnitudes): Likewise.
1010         (__add): Likewise.
1011         (__sub): Likewise.
1012         (__mul): Likewise.
1013         (__sqr): Likewise.
1014         (__inv): Likewise.
1015         (__dvd): Likewise.
1016
1017         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
1018         commented code.
1019         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
1020         (__dubcos): Likewise.
1021         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
1022         (__ieee754_acos): Likewise.
1023         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
1024         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
1025         (__exp1): Likewise.
1026         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
1027         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1028         (log1): Likewise.
1029         (my_log2): Likewise.
1030         (checkint): Likewise.
1031         * sysdeps/ieee754/dbl-64/e_remainder.c
1032         (__ieee754_remainder): Likewise.
1033         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
1034         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
1035         (bsloww): Likewise.
1036         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
1037
1038         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1039         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
1040         MANTISSA_STORE_T to store computations on mantissa.  Use
1041         macros for rounding and division.
1042         (denorm): Likewise.
1043         (__dbl_mp): Likewise.
1044         (add_magnitudes): Likewise.
1045         (sub_magnitudes): Likewise.
1046         (__mul): Likewise.
1047         (__sqr): Likewise.
1048         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1049         powers of two in terms of TWOPOW macro.
1050         (mp_no): Make type of mantissa as MANTISSA_T.
1051         [!RADIXI]: Define RADIXI.
1052         [!TWO52]: Define TWO52.
1053         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1054
1055 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1056
1057         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
1058         llroundl symbol when building for PPC32.
1059
1060 2013-03-24  Mark H Weaver  <mhw@netris.org>
1061
1062         * manual/arith.texi (Normalization Functions): Fix prototypes for
1063         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
1064
1065 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1066
1067         [BZ #13889]
1068         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
1069         high value to check if expl overflow.
1070         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
1071         to check for underflow and overflow.
1072         * math/libm-test.inc: Add exp test.
1073
1074 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
1075
1076         [BZ #11120]
1077         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
1078         with NOT_IN_libc.
1079
1080 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1081
1082         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
1083         symbol.
1084
1085 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1086
1087         * math/gen-libm-test.pl (parse_args, special_functions): Properly
1088         wrap blocks consisting of several statements.
1089
1090         * sysdeps/generic/math-tests.h: New file.
1091         * sysdeps/i386/fpu/math-tests.h: Likewise.
1092         * math/test-snan.c: Include it.
1093         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
1094
1095 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1096
1097         [BZ #15285]
1098         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
1099         (__ieee754_j0l): Do not improve calculations using cos of twice
1100         input for inputs above LDBL_MAX / 2.0L.
1101         (__ieee754_y0l): Likewise.
1102         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
1103         (__ieee754_j1l): Do not improve calculations using cos of twice
1104         input for inputs above LDBL_MAX / 2.0L.
1105         (__ieee754_y1l): Likewise.
1106         * math/libm-test.inc (j0_test): Add another test.
1107         (j1_test): Likewise.
1108         (y0_test): Likewise.
1109         (y1_test): Likewise.
1110         * sysdeps/i386/fpu/libm-test-ulps: Update.
1111
1112 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1113
1114         * Rules ($(objpfx)bench-%.c): Include code from a C source
1115         file.
1116
1117 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
1118
1119         [BZ #15287]
1120         * math/k_casinh.c (__kernel_casinh): Handle arguments with
1121         imaginary part 1.0 and real part less than 0.5 specially.
1122         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1123         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1124         * math/libm-test.inc (cacos_test): Add more tests.
1125         (casin_test): Likewise.
1126         (casinh_test): Likewise.
1127         * sysdeps/i386/fpu/libm-test-ulps: Update.
1128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1129
1130 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1131
1132         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1133         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1134
1135 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1136
1137         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1138         * config.make.in (config-cflags-sse4): Remove variable.
1139         (config-cflags-avx): Likewise.
1140         (config-cflags-sse2avx): Likewise.
1141         (config-cflags-novzeroupper): Likewise.
1142         (config-asflags-i686): Likewise.
1143         (have-mfma4): Likewise.
1144         (have-as-vis3): Likewise.
1145         (MIG): Likewise.
1146         * configure.in (MIG): Do not AC_SUBST.
1147         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1148         (libc_cv_cc_sse4): Do not AC_SUBST.
1149         (libc_cv_cc_avx): Likewise.
1150         (libc_cv_cc_sse2avx): Likewise.
1151         (libc_cv_cc_novzeroupper): Likewise.
1152         (libc_cv_cc_fma4): Likewise.
1153         (libc_cv_as_i686): Likewise.
1154         (libc_cv_sparc_as_vis3): Likewise.
1155         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1156         LIBC_CONFIG_VAR.
1157         (config-asflags-i686): Likewise.
1158         (config-cflags-avx): Likewise.
1159         (config-cflags-sse2avx): Likewise.
1160         (have-mfma4): Likewise.
1161         (config-cflags-novzeroupper): Likewise.
1162         * sysdeps/mach/configure.in (MIG): Likewise.
1163         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1164         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1165         LIBC_CONFIG_VAR.
1166         (config-cflags-avx): Likewise.
1167         (config-cflags-sse2avx): Likewise.
1168         (have-mfma4): Likewise.
1169         (config-cflags-novzeroupper): Likewise.
1170         * configure: Regenerated.
1171         * sysdeps/i386/configure: Likewise.
1172         * sysdeps/mach/configure: Likewise.
1173         * sysdeps/sparc/configure: Likewise.
1174         * sysdeps/x86_64/configure: Likewise.
1175
1176 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1177
1178         [BZ #14812]
1179         * locale/programs/localedef.c (options): Put N_ translation marker
1180         on argument names, not just descriptions.
1181
1182 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1183
1184         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1185
1186 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1187
1188         [BZ #14176]
1189         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1190
1191 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1192
1193         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1194         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1195         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1196         [!BEFORE_ABORT] (before_abort): New function.
1197         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1198         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1199         (writev_for_fatal): New function.
1200         (WRITEV_FOR_FATAL): New macro; call that.
1201         (backtrace_and_maps): New function.
1202         (BEFORE_ABORT): New macro; call that.
1203         (struct str_list): Type removed.
1204         (__libc_message, __libc_fatal): Functions removed.
1205         Include <sysdeps/posix/libc_fatal.c> instead.
1206
1207 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1208
1209         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1210         constants.
1211         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1212         double constants.
1213
1214 2013-03-19  Andreas Schwab  <schwab@suse.de>
1215
1216         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1217         * sysdeps/gnu/configure: Regenerate.
1218
1219         * configure.in: Substitute libc_cv_rtlddir.
1220         * configure: Regenerate.
1221         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1222         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1223         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1224         * elf/Makefile (install-others, CFLAGS-interp.c)
1225         (ldso_install, common-ldd-rewrite): Likewise.
1226         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1227         $(inst_slibdir)/$(rtld-installed-name).
1228         * scripts/rellns-sh: Add -p option.
1229         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1230         for source.
1231
1232 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1233
1234         * manual/nptl.texi: Renamed to ...
1235         * manual/threads.texi: ... this.
1236         * manual/Makefile (chapters): Update.
1237
1238 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1239
1240         [BZ #14812]
1241         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1242         on argument names, not just descriptions.
1243         * malloc/memusagestat.c (options): Likewise.
1244         * nss/getent.c (options): Likewise.
1245
1246 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1247
1248         [BZ #14812]
1249         * iconv/iconv_prog.c (options): Put N_ translation marker
1250         on argument names, not just descriptions.
1251         * iconv/iconvconfig.c (options): Likewise.
1252
1253 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1254
1255         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1256         implementation which is faster on all x86_64 architectures.
1257         Tested on AMD, Intel Nehalem, SNB, IVB.
1258         * sysdeps/x86_64/strnlen.S: Likewise.
1259
1260         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1261         Remove all multiarch strlen and strnlen versions.
1262         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1263         Remove strlen and strnlen related parts.
1264
1265         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1266         Inline strlen part.
1267         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1268
1269         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1270         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1271         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1272         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1273         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1274         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1275
1276 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1277
1278         * manual/memory.texi (Malloc Tunable Parameters):
1279         Sort parameters alphabetically. Add comments for missing entries.
1280
1281 2013-03-17  David S. Miller  <davem@davemloft.net>
1282
1283         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1284
1285 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1286
1287         [BZ #15283]
1288         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1289         for arguments at most half maximum finite value.
1290         * math/libm-test.inc (j0_test): Add more tests.
1291         (j1_test): Likewise.
1292         (y0_test): Likewise.
1293         (y1_test): Likewise.
1294         * sysdeps/i386/fpu/libm-test-ulps: Update.
1295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1296
1297         [BZ #14155]
1298         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1299         1 / x and functions P and Q for arguments above 0x1p256L.
1300         (__ieee754_y0l): Likewise.
1301         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1302         (__ieee754_y1l): Likewise.
1303         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1304         (j1_test): Likewise.
1305         (y0_test): Likewise.
1306         (y1_test): Likewise.
1307
1308 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1309
1310         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1311         variable.
1312
1313 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1314
1315         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1316         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1317         zero since it's initialized to EXEC_PAGESIZE.
1318
1319         * sysdeps/unix/sysv/linux/ldsodefs.h
1320         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1321         * sysdeps/generic/ldsodefs.h: ... here.
1322
1323 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1324
1325         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1326
1327         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1328         math/test-snan.c.
1329         * math/test-snan.c: Renamed from
1330         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1331         * math/Makefile (tests): Add test-snan.
1332         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1333         test-powerpc-snan.
1334
1335         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1336         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1337         functions.
1338         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1339         __builtin_nan family of functions.
1340         * math/libm-test.inc (initialize): Initialize qnan_value with
1341         __builtin_nan family of functions.
1342         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
1343         Remove variables.
1344         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
1345         Remove functions.
1346         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
1347         storage class.  Initialize qNaN_var and sNaN_var with
1348         __builtin_nan and __builtin_nans families of functions,
1349         respectively.
1350
1351         * math/libm-test.inc (acosh_test): Also test with qNaN input.
1352         (sqrt_test): Remove duplicate test with qNaN input.
1353         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
1354         (round_test, signbit_test, significand_test): Note missing +/-Inf
1355         as well as qNaN tests.
1356
1357         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
1358         qNaN_var.  Fix a few strings, too.
1359         * math/libm-test.inc (nan_value): Rename to qnan_value.
1360         * math/gen-libm-test.pl (%beautify): Adjust to that.
1361         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
1362         * math/test-misc.c (main): Likewise.
1363         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
1364         to __qnan_bytes, and __qnan_union, respectively.
1365         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
1366         Likewise.
1367         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
1368         and lqnanval, respectively.
1369         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
1370         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
1371         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
1372         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
1373
1374         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
1375         * math/test-misc.c (main) [__x86_64__]: Enable test for long
1376         doubles.
1377
1378         * math/test-misc.c (main): Fix copy'n'pastos.
1379         * misc/tst-efgcvt.c (special): Likewise.
1380
1381         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
1382         Remove declarations.
1383
1384 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1385
1386         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
1387         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
1388         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
1389         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
1390
1391 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1392
1393         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
1394         macro to return vdso values correctly in IFUNC implementations.
1395         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
1396         Optimization by using IFUNC.
1397
1398 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1399             Richard Henderson  <rth@redhat.com>
1400             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1401
1402         * Makefile.in (bench): New target.
1403         * NEWS: Mention the benchmark framework.
1404         * Rules (bench): Likewise.
1405         (binaries-bench): Generate binaries for functions to
1406         benchmark.
1407         * benchtests/Makefile: New makefile for benchmark tests.
1408         * benchtests/bench-skeleton.c: New skeleton file for benchmark
1409         programs.
1410         * benchtests/exp-inputs: New input file for EXP function.
1411         * benchtests/pow-inputs: New input file for POW function.
1412         * scripts/bench.pl: New script to generate source files for
1413         benchmark programs.
1414
1415 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1416
1417         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1418         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
1419         computations on mantissa.  Use macros for rounding and
1420         division.
1421         (denorm): Likewise.
1422         (__dbl_mp): Likewise.
1423         (add_magnitudes): Likewise.
1424         (sub_magnitudes): Likewise.
1425         (__mul): Likewise.
1426         (__sqr): Likewise.
1427         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1428         powers of two in terms of TWOPOW macro.
1429         (mp_no): Make type of mantissa as MANTISSA_T.
1430         [!RADIXI]: Define RADIXI.
1431         [!TWO52]: Define TWO52.
1432         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1433
1434         * manual/nptl.texi (cindex): Modify threads to pthreads.
1435
1436 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
1437
1438         * sysdeps/x86_64/preconfigure: Regenerated.
1439
1440 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
1441
1442         [BZ #14155]
1443         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
1444         0x1p28 and above.
1445         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
1446         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
1447         0x1p28 and above.
1448         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
1449         * math/libm-test.inc (j0_test): Do not allow one spurious
1450         underflow exception.
1451         (y1_test): Likewise.
1452
1453 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1454
1455         * manual/Makefile (chapters): Add nptl.
1456         * manual/debug.texi (Debugging Support): Add link to Threads
1457         chapter.
1458         * manual/nptl.texi: New file.
1459
1460         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
1461
1462 2013-03-14  Petr Baudis  <pasky@ucw.cz>
1463
1464         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
1465         for non-NULL pointer before the memory validity test. Pointed
1466         out by Holger Brunck <holger.brunck@keymile.com>.
1467
1468 2013-03-13  Andreas Schwab  <schwab@suse.de>
1469
1470         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
1471         instead of .os.
1472
1473 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
1474
1475         * timezone/zic.c: Update from tzcode 2013b.
1476
1477 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
1478
1479         * manual/install.texi (Configuring and compiling):
1480         Mention i686 and i586.
1481         * INSTALL: Regenerate.
1482
1483 2013-03-12  Roland McGrath  <roland@hack.frob.com>
1484
1485         * sysdeps/init_array/elf-init.c: New file.
1486         * csu/elf-init.c
1487         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
1488         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
1489
1490         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
1491         __gmon_start__ as global, but as static with a .preinit_array pointer.
1492         * sysdeps/init_array/gmon-start.c: New file.  Use that.
1493         * sysdeps/init_array/crti.S: New file, empty except for comments.
1494         * sysdeps/init_array/crtn.S: Likewise.
1495
1496 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
1497
1498         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
1499         definining bcopy.
1500         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1501         Remove Prefer_SSE_for_memop.
1502         * sysdeps/x86_64/multiarch/init-arch.h: Remove
1503         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
1504         HAS_PREFER_SSE_FOR_MEMOP.
1505         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1506         memset-x86-64.
1507         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1508         Remove bzero, memset ifunc support.
1509         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
1510         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
1511         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1512         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1513
1514 2013-03-11  Andreas Schwab  <schwab@suse.de>
1515
1516         [BZ #15234]
1517         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
1518         by SHLIB_COMPAT.
1519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
1520         (GLIBC_2.16): Remove pthread_atfork.
1521
1522 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
1523
1524         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
1525         (ptestcases.h): Likewise.
1526
1527 2013-03-08  Roland McGrath  <roland@hack.frob.com>
1528
1529         * Makeconfig ($(common-objpfx)config.status): Depend on
1530         sysdeps/*/preconfigure{,.in} too.
1531
1532 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
1533
1534         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
1535         (__free_hook): Use void * instead of __malloc_ptr_t.
1536         (__malloc_hook): Likewise.
1537         (__realloc_hook): Likewise.
1538         (__memalign_hook): Likewise.
1539         (__after_morecore_hook): Likewise.
1540         * malloc/arena.c (save_malloc_hook): Likewise.
1541         (save_free_hook): Likewise.
1542         * malloc/hooks.c (malloc_hook_ini): Likewise.
1543         (realloc_hook_ini): Likewise.
1544         (memalign_hook_ini): Likewise.
1545         * malloc/malloc.c (malloc_hook_ini): Likewise.
1546         (realloc_hook_ini): Likewise.
1547         (memalign_hook_ini): Likewise.
1548         (__free_hook): Likewise.
1549         (__malloc_hook): Likewise.
1550         (__realloc_hook): Likewise.
1551         (__memalign_hook): Likewise.
1552         (__libc_malloc): Likewise.
1553         (__libc_free): Likewise.
1554         (__libc_realloc): Likewise.
1555         (__libc_memalign): Likewise.
1556         (__libc_valloc): Likewise.
1557         (__libc_pvalloc): Likewise.
1558         (__libc_calloc): Likewise.
1559         (__posix_memalign): Likewise.
1560         * malloc/morecore.c (__sbrk): Likewise.
1561         (__default_morecore): Likewise.
1562
1563         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
1564
1565         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
1566         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
1567         __malloc_ptrdiff_t.
1568
1569         * malloc/malloc.h (__malloc_size_t): Remove macro.
1570         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
1571         __malloc_size_t.
1572         (old_memalign_hook): Likewise.
1573         (old_realloc_hook): Likewise.
1574         (struct hdr): Likewise.
1575         (flood): Likewise.
1576         (mallochook): Likewise.
1577         (memalignhook): Likewise.
1578         (reallochook): Likewise.
1579         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
1580         (tr_old_realloc_hook): Likewise.
1581         (tr_old_memalign_hook): Likewise.
1582         (tr_mallochook): Likewise.
1583         (tr_reallochook): Likewise.
1584         (tr_memalignhook): Likewise.
1585
1586 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1587
1588         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
1589         default_ldbl_pack and using as default implementation.
1590         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
1591         implementation.
1592         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
1593         redundant definition.
1594         (ldbl_insert_mantissa): Likewise.
1595         (ldbl_canonicalize): Likewise.
1596         (ldbl_nearbyint): Likewise.
1597         (ldbl_pack): Rename to ldbl_pack_ppc.
1598         (ldbl_unpack): Rename to ldbl_unpack_ppc.
1599         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
1600         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
1601
1602 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
1603
1604         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
1605         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
1606         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
1607         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
1608         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
1609         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
1610         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
1611         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
1612
1613 2013-03-07  Andreas Jaeger  <aj@suse.de>
1614
1615         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1616         bits/mman-linux.h.
1617
1618 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1619
1620         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
1621         Include mpa.h and declare __MPEXP.
1622         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
1623         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1624         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1625         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
1626         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1627         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1628         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
1629
1630         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
1631         (__slowpow): Use long double EXPL and LOGL functions to
1632         compute POW.
1633         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1634         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1635         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
1636         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1637         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1638         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
1639
1640         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
1641         intermediate variable to calculate exponent.
1642         (__sqr): Likewise.
1643         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1644         Likewise.
1645         (__sqr): Likewise.
1646
1647         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
1648         [!NO__SQR]: Define __sqr.
1649         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
1650         and NO__SQR.  Remove all code except __mul and __sqr.  Include
1651         sysdeps/ieee754/dbl-64/mpa.c.
1652         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1653
1654         [BZ #12723]
1655         * posix/Makefile (tests): Add tst-pathconf.
1656         * posix/tst-pathconf.c: New test case.
1657         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
1658         _PC_PIPE_BUF.
1659         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1660
1661 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
1662
1663         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
1664
1665 2013-03-06  Andreas Jaeger  <aj@suse.de>
1666
1667         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
1668         definition via __MAP_ANONYMOUS.
1669
1670         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
1671         it's not part of Linux headers.
1672
1673         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
1674         (MAP_HUGE_MASK): Define.
1675
1676         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1677         Define.
1678         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1679         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1680         Define.
1681         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1682         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1683         Define.
1684         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1685         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
1686         Define.
1687         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1688
1689         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
1690         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
1691         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
1692         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
1693         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
1694         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
1695
1696         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1697         Handle f2fs.
1698
1699         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1700         Handle f2fs and efivarfs.
1701
1702         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
1703         f2fs.
1704
1705         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
1706         (EFIVARFS_MAGIC): Add.
1707         (F2FS_LINK_MAX): Add.
1708
1709 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1710
1711         * stdio-common/vfprintf.c: Replace __builtin_expect with
1712         __glibc_unlikely.
1713
1714 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
1715
1716         [BZ #13550]
1717         * sysdeps/generic/bp-sym.h: Remove file.
1718         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
1719         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
1720         <bp-sym.h> and <bp-asm.h>.
1721         (__longjmp): Don't use BP_SYM.
1722         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
1723         and <bp-asm.h>.
1724         (memcpy): Don't use BP_SYM.
1725         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
1726         <bp-sym.h> and <bp-asm.h>.
1727         (memcpy): Don't use BP_SYM.
1728         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
1729         <bp-asm.h>.
1730         (memcpy): Don't use BP_SYM.
1731         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
1732         <bp-asm.h>.
1733         (memset): Don't use BP_SYM.
1734         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1735         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1736         (__bzero): Don't use BP_SYM.
1737         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1738         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1739         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
1740         <bp-sym.h> and <bp-asm.h>.
1741         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1742         pointers.
1743         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
1744         <bp-sym.h> and <bp-asm.h>.
1745         (memcpy): Don't use BP_SYM.
1746         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
1747         <bp-sym.h> and <bp-asm.h>.
1748         (memset): Don't use BP_SYM.
1749         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1750         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1751         (__bzero): Don't use BP_SYM.
1752         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1753         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1754         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
1755         <bp-sym.h> and <bp-asm.h>.
1756         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1757         pointers.
1758         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
1759         <bp-sym.h> and <bp-asm.h>.
1760         (memcpy): Don't use BP_SYM.
1761         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
1762         <bp-sym.h> and <bp-asm.h>.
1763         (memset): Don't use BP_SYM.
1764         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1765         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1766         (__bzero): Don't use BP_SYM.
1767         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1768         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1769         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
1770         <bp-sym.h> and <bp-asm.h>.
1771         (__memchr): Don't use BP_SYM.
1772         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
1773         <bp-sym.h> and <bp-asm.h>.
1774         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1775         pointers.
1776         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
1777         <bp-sym.h> and <bp-asm.h>.
1778         (memcpy): Don't use BP_SYM.
1779         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
1780         <bp-sym.h> and <bp-asm.h>.
1781         (__mempcpy): Don't use BP_SYM.
1782         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
1783         <bp-sym.h> and <bp-asm.h>.
1784         (__memrchr): Don't use BP_SYM.
1785         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
1786         <bp-sym.h> and <bp-asm.h>.
1787         (memset): Don't use BP_SYM.
1788         (__bzero): Likewise.
1789         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
1790         <bp-sym.h> and <bp-asm.h>.
1791         (__rawmemchr): Don't use BP_SYM.
1792         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
1793         <bp-sym.h> and <bp-asm.h>.
1794         (__STRCMP): Don't use BP_SYM.
1795         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
1796         <bp-sym.h> and <bp-asm.h>.
1797         (strchr): Don't use BP_SYM.
1798         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
1799         <bp-sym.h> and <bp-asm.h>.
1800         (__strchrnul): Don't use BP_SYM.
1801         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
1802         <bp-sym.h> and <bp-asm.h>.
1803         (strlen): Don't use BP_SYM.
1804         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
1805         <bp-sym.h> and <bp-asm.h>.
1806         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1807         pointers.
1808         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
1809         <bp-sym.h> and <bp-asm.h>.
1810         (__strnlen): Don't use BP_SYM.
1811         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
1812         <bp-sym.h> and <bp-asm.h>.
1813         (__GI__setjmp): Don't use BP_SYM.
1814         (_setjmp): Likewise.
1815         (__sigsetjmp): Likewise.
1816         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
1817         (L(start_addresses)): Don't use BP_SYM.
1818         (_start): Likewise.
1819         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
1820         <bp-asm.h>.
1821         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
1822         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
1823         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1824         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1825         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
1826         <bp-asm.h>.
1827         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
1828         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
1829         about bounded pointers.
1830         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1831         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1832         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
1833         <bp-asm.h>.
1834         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1835         about bounded pointers.  Remove GKM FIXME comments.
1836         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1837         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
1838         <bp-asm.h>.
1839         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
1840         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
1841         Remove GKM FIXME comments.
1842         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1843         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1844         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
1845         <bp-asm.h>.
1846         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1847         about bounded pointers.  Remove GKM FIXME comment.
1848         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
1849         and <bp-asm.h>.
1850         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1851         pointers.
1852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
1853         <bp-sym.h> and <bp-asm.h>.
1854         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
1855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
1856         <bp-sym.h> and <bp-asm.h>.
1857         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
1858         comment.
1859
1860 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1861
1862         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
1863         call free(NULL).
1864
1865 2013-03-05  David S. Miller  <davem@davemloft.net>
1866
1867         * po/es.po: Update from translation team.
1868
1869 2013-03-05  Andreas Jaeger  <aj@suse.de>
1870
1871         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
1872         <bits/mman-linux.h>.
1873         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1874         is fine.
1875         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
1876         <bits/mman-linux.h> to end of file.
1877         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1878         is fine.
1879         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
1880         <bits/mman-linux.h> to end of file.
1881         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1882         is fine.
1883         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
1884         <bits/mman-linux.h> to end of file.
1885
1886         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
1887         (MCL_CURRENT, MCL_FUTURE): Define here.
1888
1889 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1890
1891         [BZ #15232]
1892         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
1893         attribute_hidden.
1894         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1895
1896 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1897
1898         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
1899         fourth parameter needed for rt_sigprocmask syscall.
1900         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
1901         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1902         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1903         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1904         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1905         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
1906
1907 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
1908
1909         [BZ #13550]
1910         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
1911         comment about bounded pointers.
1912         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
1913         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
1914
1915 2013-03-04  Andreas Jaeger  <aj@suse.de>
1916
1917         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
1918         common definitions.
1919
1920         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
1921         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
1922         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
1923         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1924         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1925         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1926
1927 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1928
1929         [BZ #15055]
1930         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
1931         __ieee754_sqrl instead of __sqrl.
1932
1933 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
1934
1935         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
1936         * sysdeps/powerpc/fpu_control.h: ... here.
1937         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
1938         * sysdeps/powerpc/bits/fenvinline.h: ... here.
1939         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
1940         * sysdeps/powerpc/bits/mathinline.h: ... here.
1941
1942 2013-03-01  Roland McGrath  <roland@hack.frob.com>
1943
1944         * elf/dl-hwcaps.c (_dl_important_hwcaps):
1945         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
1946         to just [NEED_DL_SYSINFO_DSO].
1947         * elf/dl-support.c: Likewise.
1948         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
1949         * elf/rtld.c (dl_main): Likewise.
1950         * elf/setup-vdso.h (setup_vdso): Likewise.
1951         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
1952         * sysdeps/unix/sysv/linux/dl-sysdep.c
1953         (_dl_discover_osversion): Likewise.
1954
1955 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
1956
1957         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
1958         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1959
1960 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
1961
1962         * NEWS: Mention libm performance improvements and non-x86 PI
1963         futex support.
1964
1965         * csu/libc-start.c (__pthread_initialize_minimal): Change
1966         function arguments.
1967         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1968
1969 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
1970
1971         [BZ #13550]
1972         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
1973         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
1974         <bp-sym.h> and <bp-asm.h>.
1975         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1976         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
1977         and <bp-asm.h>.
1978         (memcpy): Don't use BP_SYM.
1979         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
1980         <bp-asm.h>.
1981         (__mpn_add_n): Don't use BP_SYM.
1982         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
1983         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
1984         and <bp-asm.h>.
1985         (__mpn_addmul_1): Don't use BP_SYM.
1986         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1987         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
1988         <bp-sym.h>.
1989         (_setjmp): Don't use BP_SYM.
1990         (__novmx_setjmp): Likewise.
1991         (__GI__setjmp): Likewise.
1992         (__vmx_setjmp): Likewise.
1993         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
1994         <bp-sym.h>.
1995         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
1996         (__bzero): Don't use BP_SYM.
1997         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1998         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1999         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
2000         <bp-sym.h> and <bp-asm.h>.
2001         (memcpy): Don't use BP_SYM.
2002         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
2003         <bp-sym.h> and <bp-asm.h>.
2004         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2005         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
2006         <bp-sym.h> and <bp-asm.h>.
2007         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
2008         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
2009         <bp-asm.h>.
2010         (__mpn_lshift): Don't use BP_SYM.
2011         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2012         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
2013         <bp-asm.h>.
2014         (memset): Don't use BP_SYM.
2015         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
2016         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
2017         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
2018         <bp-asm.h>.
2019         (__mpn_mul_1): Don't use BP_SYM.
2020         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2021         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
2022         <bp-sym.h> and <bp-asm.h>.
2023         (memcmp): Don't use BP_SYM.
2024         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
2025         <bp-sym.h> and <bp-asm.h>.
2026         (memcpy): Don't use BP_SYM.
2027         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
2028         <bp-sym.h> and <bp-asm.h>.
2029         (memset): Don't use BP_SYM.
2030         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
2031         <bp-sym.h> and <bp-asm.h>.
2032         (strncmp): Don't use BP_SYM.
2033         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
2034         <bp-sym.h> and <bp-asm.h>.
2035         (memcpy): Don't use BP_SYM.
2036         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
2037         <bp-sym.h> and <bp-asm.h>.
2038         (memset): Don't use BP_SYM.
2039         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
2040         <bp-sym.h> and <bp-asm.h>.
2041         (__memchr): Don't use BP_SYM.
2042         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
2043         <bp-sym.h> and <bp-asm.h>.
2044         (memcmp): Don't use BP_SYM.
2045         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
2046         <bp-sym.h> and <bp-asm.h>.
2047         (memcpy): Don't use BP_SYM.
2048         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
2049         <bp-sym.h> and <bp-asm.h>.
2050         (__mempcpy): Don't use BP_SYM.
2051         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
2052         <bp-sym.h> and <bp-asm.h>.
2053         (__memrchr): Don't use BP_SYM.
2054         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
2055         <bp-sym.h> and <bp-asm.h>.
2056         (memset): Don't use BP_SYM.
2057         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
2058         <bp-sym.h> and <bp-asm.h>.
2059         (__rawmemchr): Don't use BP_SYM.
2060         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
2061         <bp-sym.h> and <bp-asm.h>.
2062         (__STRCMP): Don't use BP_SYM.
2063         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
2064         <bp-sym.h> and <bp-asm.h>.
2065         (strchr): Don't use BP_SYM.
2066         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
2067         <bp-sym.h> and <bp-asm.h>.
2068         (__strchrnul): Don't use BP_SYM.
2069         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
2070         <bp-sym.h> and <bp-asm.h>.
2071         (strlen): Don't use BP_SYM.
2072         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
2073         <bp-sym.h> and <bp-asm.h>.
2074         (strncmp): Don't use BP_SYM.
2075         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
2076         <bp-sym.h> and <bp-asm.h>.
2077         (__strnlen): Don't use BP_SYM.
2078         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
2079         <bp-asm.h>.
2080         (__mpn_rshift): Don't use BP_SYM.
2081         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2082         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
2083         <bp-sym.h> and <bp-asm.h>.
2084         (__sigsetjmp): Don't use BP_SYM.
2085         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
2086         (L(start_addresses)): Don't use BP_SYM.
2087         (_start): Likewise.
2088         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
2089         <bp-asm.h>.
2090         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
2091         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2092         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2093         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
2094         <bp-asm.h>.
2095         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
2096         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2097         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2098         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
2099         <bp-asm.h>.
2100         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2101         comments.
2102         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2103         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
2104         <bp-asm.h>.
2105         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
2106         FIXME comments.
2107         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2108         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
2109         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
2110         <bp-asm.h>.
2111         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
2112         comment.
2113         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
2114         and <bp-asm.h>.
2115         (strncmp): Don't use BP_SYM,
2116         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
2117         <bp-asm.h>.
2118         (__mpn_sub_n): Don't use BP_SYM.
2119         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2120         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
2121         and <bp-asm.h>.
2122         (__mpn_submul_1): Don't use BP_SYM.
2123         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2125         <bp-sym.h> and <bp-asm.h>.
2126         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2128         <bp-sym.h> and <bp-asm.h>.
2129         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2130         comment.
2131
2132 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2133
2134         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2135         Use ZK to minimize writes to Z.
2136         (sub_magnitudes): Simplify code a bit.
2137         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2138         Use ZK to minimize writes to Z.
2139         (sub_magnitudes): Simplify code a bit.
2140
2141 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2142
2143         * csu/gmon-start.c: Add special exception to license text.
2144
2145 2013-02-27  Richard Henderson  <rth@redhat.com>
2146
2147         * scripts/config.guess: Update from config.git.
2148         * scripts/config.sub: Likewise.
2149
2150 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2151
2152         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2153
2154         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2155
2156         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2157
2158         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2159
2160         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2161
2162 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2163
2164         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2165         [$(build-shared = yes].
2166
2167 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2168
2169         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2170         (__mul): Reduce iterations for calculating mantissa.
2171
2172         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2173         MPTWO.
2174         (__mpranred): Likewise.
2175
2176         [BZ #15160]
2177         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2178         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2179
2180 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2181
2182         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2183         Define __attribute__.
2184
2185 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2186
2187         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2188         unused.
2189         * posix/regex_internal.h (__attribute): Remove.
2190         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2191         (re_string_context_at): Likewise.
2192         (bitset_not): Use __attribute__ and mark function as possibly
2193         unused.
2194         (bitset_merge): Likewise.
2195         (bitset_mask): Likewise.
2196         (re_string_char_size_at): Likewise.
2197         (re_string_wchar_at): Likewise.
2198         (re_string_elem_size_at): Likewise.
2199
2200 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2201
2202         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2203         code.
2204         (cc32): Likewise.
2205
2206         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2207         (__acr): Likewise.
2208         (__cpy): Likewise.
2209         (norm): Likewise.
2210         (denorm): Likewise.
2211         (__dbl_mp): Likewise.
2212         (add_magnitudes): Likewise.
2213         (sub_magnitudes): Likewise.
2214         (__mul): Likewise.
2215         (__inv): Likewise.
2216
2217         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2218         style.
2219
2220         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2221         style.
2222
2223         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2224         code.
2225
2226         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2227         up changes with default code.
2228         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2229         Likewise.
2230
2231 2013-02-24  Allan McRae  <allan@archlinux.org>
2232
2233         * manual/socket.texi (The Internet Namespace): Order menu items
2234         to match that in the file.
2235
2236         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2237         node listing of the info page menu.
2238
2239 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2240
2241         [BZ #13550]
2242         * sysdeps/i386/bp-asm.h: Remove file.
2243         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2244         (PARMS): Do not use macros from bp-asm.h.
2245         (S1): Likewise.
2246         (S2): Likewise.
2247         (SIZE): Likewise.
2248         (__mpn_add_n): Do not use BP_SYM
2249         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2250         "bp-asm.h".
2251         (PARMS): Do not use macros from bp-asm.h.
2252         (S1): Likewise.
2253         (SIZE): Likewise.
2254         (__mpn_addmul_1): Do not use BP_SYM
2255         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2256         "bp-asm.h".
2257         (PARMS): Do not use macros from bp-asm.h.
2258         (SIGMSK): Likewise.
2259         (_setjmp): Likewise.  Do not use BP_SYM.
2260         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2261         "bp-asm.h".
2262         (PARMS): Do not use macros from bp-asm.h.
2263         (SIGMSK): Likewise.
2264         (setjmp): Likewise.  Do not use BP_SYM.
2265         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2266         "bp-asm.h".
2267         (PARMS): Do not use macros from bp-asm.h.
2268         (__frexp): Do not use BP_SYM.
2269         (frexp): Likewise.
2270         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2271         "bp-asm.h".
2272         (PARMS): Do not use macros from bp-asm.h.
2273         (__frexpf): Do not use BP_SYM.
2274         (frexpf): Likewise.
2275         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2276         "bp-asm.h".
2277         (PARMS): Do not use macros from bp-asm.h.
2278         (__frexpl): Do not use BP_SYM.
2279         (frexpl): Likewise.
2280         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2281         "bp-asm.h".
2282         (PARMS): Do not use macros from bp-asm.h.
2283         (__remquo): Do not use BP_SYM.
2284         (remquo): Likewise.
2285         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2286         "bp-asm.h".
2287         (PARMS): Do not use macros from bp-asm.h.
2288         (__remquof): Do not use BP_SYM.
2289         (remquof): Likewise.
2290         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2291         "bp-asm.h".
2292         (PARMS): Do not use macros from bp-asm.h.
2293         (__remquol): Do not use BP_SYM.
2294         (remquol): Likewise.
2295         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2296         "bp-asm.h".
2297         (PARMS): Do not use macros from bp-asm.h.
2298         (DEST): Likewise.
2299         (SRC): Likewise.
2300         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2301         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2302         "bp-asm.h".
2303         (PARMS): Do not use macros from bp-asm.h.
2304         (strlen): Do not use BP_SYM.
2305         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2306         "bp-asm.h".
2307         (PARMS): Do not use macros from bp-asm.h.
2308         (S1): Likewise.
2309         (S2): Likewise.
2310         (SIZE): Likewise.
2311         (__mpn_add_n): Do not use BP_SYM.
2312         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2313         "bp-asm.h".
2314         (PARMS): Do not use macros from bp-asm.h.
2315         (S1): Likewise.
2316         (SIZE): Likewise.
2317         (__mpn_addmul_1): Do not use BP_SYM.
2318         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2319         weak_alias.
2320         (bzero): Likewise.
2321         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2322         "bp-asm.h".
2323         (PARMS): Do not use macros from bp-asm.h.
2324         (S): Likewise.
2325         (SIZE): Likewise.
2326         (__mpn_lshift): Do not use BP_SYM.
2327         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2328         "bp-asm.h".
2329         (PARMS): Do not use macros from bp-asm.h.
2330         (DEST): Likewise.
2331         (SRC): Likewise.
2332         (LEN): Likewise.
2333         (memcpy): Likewise.  Do not use BP_SYM.
2334         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2335         libc_hidden_def and weak_alias.
2336         (mempcpy): Do not use BP_SYM in weak_alias.
2337         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2338         "bp-asm.h".
2339         (PARMS): Do not use macros from bp-asm.h.
2340         (DEST): Likewise.
2341         (LEN): Likewise.
2342         [!BZERO_P] (CHR): Likewise.
2343         (memset): Likewise.  Do not use BP_SYM.
2344         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
2345         "bp-asm.h".
2346         (PARMS): Do not use macros from bp-asm.h.
2347         (S1): Likewise.
2348         (SIZE): Likewise.
2349         (__mpn_mul_1): Do not use BP_SYM.
2350         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
2351         "bp-asm.h".
2352         (PARMS): Do not use macros from bp-asm.h.
2353         (S): Likewise.
2354         (SIZE): Likewise.
2355         (__mpn_rshift): Do not use BP_SYM.
2356         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
2357         "bp-asm.h".
2358         (PARMS): Do not use macros from bp-asm.h.
2359         (STR): Likewise.
2360         (CHR): Likewise.
2361         (strchr): Likewise.  Do not use BP_SYM.
2362         (index): Do not use BP_SYM in weak_alias.
2363         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
2364         "bp-asm.h".
2365         (PARMS): Do not use macros from bp-asm.h.
2366         (DEST): Likewise.
2367         (SRC): Likewise.
2368         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
2369         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
2370         "bp-asm.h".
2371         (PARMS): Do not use macros from bp-asm.h.
2372         (strlen): Do not use BP_SYM.
2373         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
2374         "bp-asm.h".
2375         (PARMS): Do not use macros from bp-asm.h.
2376         (S1): Likewise.
2377         (S2): Likewise.
2378         (SIZE): Likewise.
2379         (__mpn_sub_n): Do not use BP_SYM.
2380         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
2381         "bp-asm.h".
2382         (PARMS): Do not use macros from bp-asm.h.
2383         (S1): Likewise.
2384         (SIZE): Likewise.
2385         (__mpn_submul_1): Do not use BP_SYM.
2386         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
2387         "bp-asm.h".
2388         (PARMS): Do not use macros from bp-asm.h.
2389         (S1): Likewise.
2390         (S2): Likewise.
2391         (SIZE): Likewise.
2392         (__mpn_add_n): Do not use BP_SYM.
2393         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
2394         weak_alias.
2395         (bzero): Likewise.
2396         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
2397         "bp-asm.h".
2398         (PARMS): Do not use macros from bp-asm.h.
2399         (BLK2): Likewise.
2400         (LEN): Likewise.
2401         (memcmp): Do not use BP_SYM.
2402         (bcmp): Do not use BP_SYM in weak_alias.
2403         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
2404         "bp-asm.h".
2405         (PARMS): Do not use macros from bp-asm.h.
2406         (DEST): Likewise.
2407         (SRC): Likewise.
2408         (LEN): Likewise.
2409         (memcpy): Likewise.  Do not use BP_SYM.
2410         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
2411         "bp-asm.h".
2412         (PARMS): Do not use macros from bp-asm.h.
2413         (DEST): Likewise.
2414         (SRC): Likewise.
2415         (LEN): Likewise.
2416         (memmove): Likewise.  Do not use BP_SYM.
2417         * sysdeps/i386/i686/mempcpy.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         (SRC): Likewise.
2422         (LEN): Likewise.
2423         (__mempcpy): Likewise.  Do not use BP_SYM.
2424         (mempcpy): Do not use BP_SYM in weak_alias.
2425         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
2426         "bp-asm.h".
2427         (PARMS): Do not use macros from bp-asm.h.
2428         (DEST): Likewise.
2429         (LEN): Likewise.
2430         [!BZERO_P] (CHR): Likewise.
2431         (memset): Likewise.  Do not use BP_SYM.
2432         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
2433         "bp-asm.h".
2434         (PARMS): Do not use macros from bp-asm.h.
2435         (STR2): Likewise.
2436         (strcmp): Do not use BP_SYM.
2437         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
2438         "bp-asm.h".
2439         (PARMS): Do not use macros from bp-asm.h.
2440         (STR): Likewise.
2441         (DELIM): Likewise.
2442         [USE_AS_STRTOK_R] (SAVE): Likewise.
2443         (FUNCTION): Likewise.  Do not use BP_SYM.
2444         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
2445         aliases.
2446         (strtok_r): Likewise.
2447         (__GI___strtok_r): Likewise.
2448         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2449         (PARMS): Do not use macros from bp-asm.h.
2450         (S): Likewise.
2451         (SIZE): Likewise.
2452         (__mpn_lshift): Do not use BP_SYM.
2453         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2454         (PARMS): Do not use macros from bp-asm.h.
2455         (STR): Likewise.
2456         (CHR): Likewise.
2457         (__memchr): Do not use BP_SYM.
2458         (memchr): Do not use BP_SYM in weak_alias.
2459         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2460         (PARMS): Do not use macros from bp-asm.h.
2461         (BLK2): Likewise.
2462         (LEN): Likewise.
2463         (memcmp): Do not use BP_SYM.
2464         (bcmp): Do not use BP_SYM in weak_alias.
2465         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
2466         (PARMS): Do not use macros from bp-asm.h.
2467         (S1): Likewise.
2468         (SIZE): Likewise.
2469         (__mpn_mul_1): Do not use BP_SYM.
2470         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
2471         "bp-asm.h".
2472         (PARMS): Do not use macros from bp-asm.h.
2473         (STR): Likewise.
2474         (CHR): Likewise.
2475         (__rawmemchr): Do not use BP_SYM.
2476         (rawmemchr): Do not use BP_SYM in weak_alias.
2477         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2478         (PARMS): Do not use macros from bp-asm.h.
2479         (S): Likewise.
2480         (SIZE): Likewise.
2481         (__mpn_rshift): Do not use BP_SYM.
2482         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2483         (PARMS): Do not use macros from bp-asm.h.
2484         (SIGMSK): Likewise.
2485         (__sigsetjmp): Likewise.  Do not use BP_SYM.
2486         * sysdeps/i386/start.S: Do not include "bp-sym.h".
2487         (_start): Do not use BP_SYM.
2488         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
2489         (PARMS): Do not use macros from bp-asm.h.
2490         (DEST): Likewise.
2491         (SRC): Likewise.
2492         (__stpcpy): Likewise.  Do not use BP_SYM.
2493         (stpcpy): Do not use BP_SYM in weak_alias.
2494         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
2495         "bp-asm.h".
2496         (PARMS): Do not use macros from bp-asm.h.
2497         (DEST): Likewise.
2498         (SRC): Likewise.
2499         (LEN): Likewise.
2500         (__stpncpy): Likewise.  Do not use BP_SYM.
2501         (stpncpy): Do not use BP_SYM in weak_alias.
2502         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2503         (PARMS): Do not use macros from bp-asm.h.
2504         (STR): Likewise.
2505         (CHR): Likewise.
2506         (strchr): Likewise.  Do not use BP_SYM.
2507         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
2508         "bp-asm.h".
2509         (PARMS): Do not use macros from bp-asm.h.
2510         (STR): Likewise.
2511         (CHR): Likewise.
2512         (__strchrnul): Likewise.  Do not use BP_SYM.
2513         (strchrnul): Do not use BP_SYM in weak_alias.
2514         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
2515         "bp-asm.h".
2516         (PARMS): Do not use macros from bp-asm.h.
2517         (STOP): Likewise.
2518         (strcspn): Do not use BP_SYM.
2519         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
2520         "bp-asm.h".
2521         (PARMS): Do not use macros from bp-asm.h.
2522         (STR): Likewise.
2523         (STOP): Likewise.
2524         (strpbrk): Likewise.  Do not use BP_SYM.
2525         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
2526         "bp-asm.h".
2527         (PARMS): Do not use macros from bp-asm.h.
2528         (STR): Likewise.
2529         (CHR): Likewise.
2530         (strrchr): Likewise.  Do not use BP_SYM.
2531         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
2532         (PARMS): Do not use macros from bp-asm.h.
2533         (SKIP): Likewise.
2534         (strspn): Do not use BP_SYM.
2535         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
2536         (PARMS): Do not use macros from bp-asm.h.
2537         (STR): Likewise.
2538         (DELIM): Likewise.
2539         (SAVE): Likewise.
2540         (FUNCTION): Likewise.  Do not use BP_SYM.
2541         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
2542         aliases.
2543         (strtok_r): Likewise.
2544         (__GI___strtok_r): Likewise.
2545         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2546         (PARMS): Do not use macros from bp-asm.h.
2547         (S1): Likewise.
2548         (S2): Likewise.
2549         (SIZE): Likewise.
2550         (__mpn_sub_n): Do not use BP_SYM.
2551         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
2552         "bp-asm.h".
2553         (PARMS): Do not use macros from bp-asm.h.
2554         (S1): Likewise.
2555         (SIZE): Likewise.
2556         (__mpn_submul_1): Do not use BP_SYM.
2557         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
2558         <bp-sym.h>.
2559         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
2560         and <bp-asm.h>.
2561         (PARMS): Do not use macros from bp-asm.h.
2562         (FLAGS): Likewise.
2563         (PTID): Likewise.
2564         (TLS): Likewise.
2565         (CTID): Likewise.
2566         (__clone): Do not use BP_SYM.
2567         (clone): Do not use BP_SYM in weak_alias.
2568         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
2569         and <bp-asm.h>.
2570         (PARMS): Do not use macros from bp-asm.h.
2571         (LEN): Likewise.
2572         (__mmap64): Do not use BP_SYM.
2573         (mmap64): Do not use BP_SYM in weak_alias.
2574         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2575         <bp-sym.h> and <bp-asm.h>.
2576         (PARMS): Do not use macros from bp-asm.h.
2577         (__posix_fadvise64_l64): Do not use BP_SYM.
2578         * sysdeps/unix/sysv/linux/i386/semtimedop.S
2579         (PARMS): Do not use macros from bp-asm.h.
2580         (NSOPS): Likewise.
2581         (semtimedop): Do not use BP_SYM.
2582         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
2583         and <bp-asm.h>.
2584
2585 2013-02-21  Allan McRae  <allan@archlinux.org>
2586
2587         * manual/message.texi (Charset conversion in gettext):
2588         Move @end statement to beginning of line.
2589
2590 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2591
2592         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
2593         static.
2594         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2595         Likewise.
2596
2597         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
2598         (denorm): Likewise.
2599         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
2600         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
2601
2602 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2603
2604         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
2605         tail-call to the resolved function if pltexit isn't needed.
2606
2607 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2608
2609         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
2610         or Y being zero as being unlikely.
2611         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2612         Likewise.
2613
2614 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
2615
2616         * manual/nss.texi (System Databases and Name Service Switch):
2617         Remove frobnicate @pxref.
2618
2619 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2620
2621         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2622         __attribute__ ((unused)) to __attribute__ ((__unused__)).
2623
2624 2013-02-20  Petr Machata  <pmachata@redhat.com>
2625
2626         * elf/elf.h (R_ARM_TARGET1): New macro.
2627         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
2628         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
2629         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
2630         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
2631         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
2632         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
2633         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
2634         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
2635         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
2636         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
2637         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
2638         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
2639         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
2640         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
2641         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
2642         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
2643         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
2644         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
2645         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
2646         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
2647         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
2648         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
2649         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
2650         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
2651         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
2652         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
2653         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
2654         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
2655         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
2656         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
2657         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
2658         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
2659         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
2660         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
2661         (R_ARM_THM_GOT_BREL12): Likewise.
2662         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
2663         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
2664         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
2665         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
2666         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
2667         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
2668         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
2669         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
2670         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
2671
2672 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2673
2674         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2675         __attribute_used__ to __attribute__ ((unused)).
2676
2677 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2678
2679         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
2680         powerpc mpa.c.
2681         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
2682         comment formatting.
2683         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
2684
2685 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
2686
2687         [BZ #13550]
2688         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
2689         Remove macro.
2690         (ENTER): Remove both macro definitions.
2691         (LEAVE): Likewise.
2692         (CHECK_BOUNDS_LOW): Likewise.
2693         (CHECK_BOUNDS_HIGH): Likewise.
2694         (CHECK_BOUNDS_BOTH): Likewise.
2695         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
2696         (RETURN_BOUNDED_POINTER): Likewise.
2697         (RETURN_NULL_BOUNDED_POINTER): Likewise.
2698         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
2699         (POP_ERRNO_LOCATION_RETURN): Likewise.
2700         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
2701         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2702         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
2703         macros.
2704         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2705         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
2706         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
2707         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
2708         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
2709         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
2710         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
2711         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
2712         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
2713         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2714         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2715         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
2716         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2717         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
2718         removed macros.
2719         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2720         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
2721         macros.
2722         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2723         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
2724         * sysdeps/i386/i586/memset.S (memset): Likewise.
2725         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
2726         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2727         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
2728         macros.
2729         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2730         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
2731         Change uses of L(2) to L(out).
2732         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
2733         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2734         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
2735         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2736         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
2737         removed macros.
2738         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2739         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
2740         macros.
2741         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2742         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
2743         (RETURN): Do not use macro LEAVE.
2744         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
2745         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2746         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
2747         * sysdeps/i386/i686/memset.S (memset): Likewise.
2748         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2749         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
2750         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2751         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
2752         Likewise.
2753         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2754         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
2755         L(1_2) and L(1_3) into L(1).
2756         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2757         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
2758         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2759         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
2760         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2761         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
2762         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
2763         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2764         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
2765         macros.
2766         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
2767         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2768         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
2769         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
2770         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2771         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2772         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
2773         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
2774         * sysdeps/i386/strcspn.S (strcspn): Likewise.
2775         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2776         * sysdeps/i386/strrchr.S (strrchr): Likewise.
2777         * sysdeps/i386/strspn.S (strspn): Likewise.
2778         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
2779         conditional code.
2780         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2781         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
2782         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2783         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
2784         L(1_3) into L(1_1).
2785         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
2786         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2787         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
2788         macros.
2789         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2790
2791 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
2792
2793         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
2794         macro.
2795
2796 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2797
2798         * math/atest-exp.c (exp_mpn): Remove ROUND.
2799         * math/atest-exp2.c (exp_mpn): Likewise.
2800         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
2801
2802         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
2803         * stdlib/tst-tls-atexit-lib.c: Likewise.
2804         * stdlib/tst-tls-atexit.c: Likewise.
2805
2806 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2807
2808         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
2809         and __attribute_alloc_size__.
2810
2811 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2812
2813         * include/programs/xmalloc.h: Change __attribute_alloc_size to
2814         __attribute_alloc_size__.
2815         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
2816         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
2817
2818 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2819
2820         * include/programs/xmalloc.h: New file.
2821         * catgets/gencat.c: Include it.
2822         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
2823         * elf/pldd.c: Likewise.
2824         * iconv/iconv_charmap.c: Likewise.
2825         * iconv/iconvconfig.c: Likewise.
2826         * iconv/strtab.c: Likewise.
2827         * locale/programs/locale.c: Likewise.
2828         * locale/programs/localedef.h: Likewise.
2829         * locale/programs/simple-hash.c: Likewise.
2830         * nscd/nscd.h: Likewise.
2831         * nss/makedb.c: Likewise.
2832         * sysdeps/generic/ldconfig.h: Likewise.
2833
2834 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2835
2836         * Versions.def: Add GLIBC_2.18.
2837         * include/link.h (struct link_map): New member l_tls_dtor_count.
2838         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
2839         (__call_tls_dtors): Likewise.
2840         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
2841         __cxa_thread_atexit_impl.
2842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2843         Likewise.
2844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2845         Likewise.
2846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
2847         Likewise.
2848         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
2849         Likewise.
2850         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2851         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
2852         Likewise.
2853         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
2854         Likewise.
2855         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2856         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2857         Likewise.
2858         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
2859         (tests): Add test case tst-tls-atexit.
2860         (modules-names): Add shared library for tst-tls-atexit.
2861         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
2862         (GLIBC_PRIVATE): Add __call_tls_dtors.
2863         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
2864         for libstdc++.
2865         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
2866         * stdlib/tst-tls-atexit.c: New test case.
2867         * stdlib/tst-tls-atexit-lib.c: New test case.
2868
2869         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
2870
2871         * elf/Versions (ld): Add _dl_find_dso_for_object.
2872         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
2873         * elf/dl-open.c (_dl_find_dso_for_object): New function.
2874         (dl_open_worker): Use _dl_find_dso_for_object.
2875         * elf/dl-sym.c (do_sym): Likewise.
2876         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
2877
2878 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2879
2880         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
2881         Syntactic changes only.
2882         (_dl_runtime_profile): Do a tail-call to the resolved function.
2883
2884 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
2885
2886         [BZ #13550]
2887         * sysdeps/x86_64/bp-asm.h: Remove file.
2888         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
2889         <bp-sym.h> and <bp-asm.h>.
2890         (__clone): Do not use BP_SYM.
2891         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
2892         <bp-sym.h> and <bp-asm.h>.
2893         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2894         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
2895         "bp-asm.h".
2896         (_setjmp): Do not use BP_SYM.
2897         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
2898         "bp-asm.h".
2899         (setjmp): Do not use BP_SYM.
2900         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
2901         libc_hidden_def.
2902         (mempcpy): Do not use BP_SYM in weak_alias.
2903         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
2904         "bp-asm.h".
2905         (strchr): Do not use BP_SYM.
2906         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
2907         "bp-asm.h".
2908         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
2909         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
2910         (_start): Do not use BP_SYM.
2911         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
2912         "bp-asm.h".
2913         (strcat): Do not use BP_SYM.
2914         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
2915         "bp-asm.h".
2916         (STRCMP): Do not use BP_SYM.
2917         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
2918         "bp-asm.h".
2919         (STRCPY): Do not use BP_SYM.
2920         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
2921         "bp-asm.h".
2922         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
2923         "bp-asm.h".
2924         (FUNCTION): Do not use BP_SYM.
2925         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
2926         weak_alias.
2927         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
2928
2929 2013-02-17  Andreas Jaeger  <aj@suse.de>
2930
2931         * time/Versions: Sort entries.
2932         * string/Versions: Likewise.
2933         * resolv/Versions: Likewise.
2934         * posix/Versions: Likewise.
2935         * iconv/Versions: Likewise.
2936         * elf/Versions: Likewise.
2937         * wcsmbs/Versions: Likewise.
2938
2939 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2940
2941         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
2942         loop termination condition.
2943
2944         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
2945         variable to calculate EZ.
2946         (__sqr): Likewise.
2947
2948         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
2949         the lower precision input.
2950
2951 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
2952
2953         [BZ #13550]
2954         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
2955         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
2956         (run-via-rtld-prefix): Do not handle %-bp tests.
2957         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
2958         (all-object-suffixes): Remove .ob.
2959         (bppfx): Remove variable.
2960         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
2961         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
2962         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
2963         [$(build-bounded) = yes] (libtype.ob): Likewise.
2964         * Makerules (elide-routines.ob): Remove variable.
2965         (do-tests-clean): Do not handle *-bp.out.
2966         (common-mostlyclean): Do not handle *-bp and *-bp.out.
2967         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
2968         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
2969         (tests): Do not include $(tests-bp.out).
2970         (xtests): Do not include $(xtests-bp.out).
2971         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
2972         [$(build-bounded) = yes] ($(addprefix
2973         $(objpfx),$(binaries-bounded))): Remove rule.
2974         ($(objpfx)%-bp.out): Remove rule.
2975         * config.make.in (build-bounded): Remove variable.
2976         * crypt/Makefile [$(build-bounded) = yes]
2977         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
2978         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
2979         append to variable.
2980         [$(build-bounded) = yes] (install-lib): Likewise.
2981         [$(build-bounded) = yes] (generated): Likewise.
2982         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
2983         Remove rule.
2984         * intl/Makefile [$(build-bounded) = yes]
2985         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
2986         * math/Makefile [$(build-bounded) = yes]
2987         ($(tests:%=$(objpfx)%-bp): Likewise.
2988         * misc/Makefile [$(build-bounded) = yes]
2989         ($(objpfx)tst-tsearch-bp): Likewise.
2990         * nptl/Makeconfig (bounded-thread-library): Remove variable.
2991         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
2992         Remove dependency.
2993         * string/Makefile (o-objects.ob): Remove variable.
2994         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
2995         (CFLAGS-.ob): Remove variable.
2996         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
2997         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
2998         both definitions of variable.
2999         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
3000         (ASFLAGS-.ob): Remove variable.
3001
3002 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
3003
3004         [BZ #13550]
3005         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
3006         Remove __BOUNDED_POINTERS__ from condition.
3007         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
3008         * string/bits/string2.h [!__NO_STRING_INLINES &&
3009         !__BOUNDED_POINTERS__]: Likewise.
3010         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
3011         Likewise.
3012         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
3013         Remove conditional code.
3014         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
3015         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
3016         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
3017         condition.
3018
3019         [BZ #13550]
3020         * csu/libc-start.c: Do not include <bp-sym.h>.
3021         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
3022         * elf/dl-open.c: Do not include <bp-sym.h>.
3023         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
3024         * math/fegetenv.c: Do not include <bp-sym.h>.
3025         (fegetenv): Do not use BP_SYM in versioned symbols.
3026         * nptl/sysdeps/pthread/bits/libc-lockP.h
3027         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
3028         <bp-sym.h>.
3029         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3030         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
3031         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3032         (__pthread_mutex_destroy): Likewise.
3033         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3034         (__pthread_mutex_lock): Likewise.
3035         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3036         (__pthread_mutex_trylock): Likewise.
3037         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3038         (__pthread_mutex_unlock): Likewise.
3039         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3040         (__pthread_mutexattr_init): Likewise.
3041         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3042         (__pthread_mutexattr_destroy): Likewise.
3043         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3044         (__pthread_mutexattr_settype): Likewise.
3045         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3046         (__pthread_rwlock_init): Likewise.
3047         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3048         (__pthread_rwlock_destroy): Likewise.
3049         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3050         (__pthread_rwlock_rdlock): Likewise.
3051         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3052         (__pthread_rwlock_tryrdlock): Likewise.
3053         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3054         (__pthread_rwlock_wrlock): Likewise.
3055         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3056         (__pthread_rwlock_trywrlock): Likewise.
3057         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3058         (__pthread_rwlock_unlock): Likewise.
3059         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3060         (__pthread_key_create): Likewise.
3061         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3062         (__pthread_setspecific): Likewise.
3063         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3064         (__pthread_getspecific): Likewise.
3065         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
3066         Likewise.
3067         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3068         (_pthread_cleanup_push_defer): Likewise.
3069         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3070         (_pthread_cleanup_pop_restore): Likewise.
3071         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
3072         (pthread_setcancelstate): Likewise.
3073         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
3074         <bp-sym.h>.
3075         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
3076         (memchr): Do not use BP_SYM in weak_alias.
3077         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
3078         (fegetenv): Do not use BP_SYM in versioned symbols.
3079         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
3080         (fesetenv): Do not use BP_SYM in versioned symbols.
3081         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3082         (feupdateenv): Do not use BP_SYM in versioned symbols.
3083         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3084         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3085         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
3086         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
3087         (open64): Do not use BP_SYM in weak_alias.
3088         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
3089         (fegetenv): Do not use BP_SYM in versioned symbols.
3090         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
3091         (fesetenv): Do not use BP_SYM in versioned symbols.
3092         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
3093         (feupdateenv): Do not use BP_SYM in versioned symbols.
3094         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
3095         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
3096         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
3097         (feraiseexcept): Do not use BP_SYM in versioned symbols.
3098         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
3099         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
3100         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
3101         <bp-sym.h>.
3102         (__libc_start_main): Do not use BP_SYM.
3103
3104 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3105
3106         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
3107         redundant return line.
3108         (norm): Likewise.
3109         (denorm): Likewise.
3110         (dbl_mp): Likewise.
3111         (sub_magnitudes): Likewise.
3112         (__add): Likewise.
3113         (__sub): Likewise.
3114         (__mul): Likewise.
3115         (__inv): Likewise.
3116         (__dvd): Likewise.
3117         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
3118         (norm): Likewise.
3119         (denorm): Likewise.
3120         (dbl_mp): Likewise.
3121         (sub_magnitudes): Likewise.
3122         (__add): Likewise.
3123         (__sub): Likewise.
3124         (__mul): Likewise.
3125         (__inv): Likewise.
3126         (__dvd): Likewise.
3127
3128         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3129         instead of __mul.
3130         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3131         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3132         (cc32): Likewise.
3133
3134         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3135         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3136         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3137         of __mul for squares.
3138         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3139         function
3140         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3141         Likewise.
3142         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3143         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3144
3145 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3146
3147         [BZ #13550]
3148         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3149         code.
3150         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3151         prototype or function definition.  Rename ubp_* variables and
3152         parameters.  Remove argv definitions conditional on
3153         [__BOUNDED_POINTERS__].
3154         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3155         * elf/dl-runtime.c (_dl_fixup): Likewise.
3156         * include/set-hooks.h (RUN_HOOK): Likewise.
3157         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3158         definition.
3159         * string/strcpy.c (strcpy): Do not use __unbounded.
3160         * sysdeps/generic/frame.h (struct layout): Likewise.
3161         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3162         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3163         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3164         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3165         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3166         (__backtrace): Likewise.
3167         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3168         use __ptrvalue.
3169         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3170         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3171         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3172         Likewise.
3173         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3174         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3175         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3176         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3177         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3178         Do not use __unbounded.
3179         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3180         Rename __unboundedrlimits parameter to rlimits in prototype.
3181         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3182         Do not use __unbounded.
3183         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3184         not use __ptrvalue.
3185         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3186         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3187         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3188         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3189         __ptrvalue or __unbounded.
3190         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3191         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3192         use __unbounded.
3193         (__new_msgctl): Do not use __ptrvalue.
3194         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3195         __unbounded.
3196         (__libc_msgrcv): Do not use __ptrvalue.
3197         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3198         startup_info): Do not use __unbounded.
3199         (__libc_start_main): Likewise.  Rename ubp_* variables and
3200         parameters.  Remove argv definitions conditional on
3201         [__BOUNDED_POINTERS__].
3202         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3203         __ptrvalue.
3204         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3205         use __unbounded.
3206         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3207         or __ptrvalue.
3208         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3209         use __unbounded.
3210         (__new_shmctl): Do not use __ptrvalue.
3211         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3212         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3213         Likewise.
3214         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3215         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3216         (__libc_sigaction): Likewise.
3217         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3218         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3219         Likewise.
3220         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3221
3222 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3223
3224         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3225
3226         * string/mempcpy.c: Implement by calling memcpy.
3227
3228 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3229
3230         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3231
3232         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3233         evaluation.
3234
3235         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3236         values in the mantissa.
3237
3238         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3239         minimize writes to Z.
3240         (sub_magnitudes): Simplify code a bit.
3241
3242 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3243
3244         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3245         from the message.  The linker prefixes all warnings with that already.
3246
3247 2013-02-12  Andreas Schwab  <schwab@suse.de>
3248
3249         [BZ #15078]
3250         * posix/regexec.c (extend_buffers): Add parameter min_len.
3251         (check_matching): Pass minimum needed length.
3252         (clean_state_log_if_needed): Likewise.
3253         (get_subexp): Likewise.
3254         * posix/Makefile (tests): Add bug-regex34.
3255         (bug-regex34-ENV): Define.
3256         * posix/bug-regex34.c: New file.
3257
3258         [BZ #11561]
3259         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3260         elements compare against the byte sequence of it, not its name.
3261         * posix/Makefile (tests): Add bug-regex35.
3262         (bug-regex35-ENV): Define.
3263         * posix/bug-regex35.c: New file.
3264
3265 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3266
3267         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3268         comment.
3269         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3270         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3271         (CHECK_EOL): Add undef.
3272
3273 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3274
3275         * bits/stdlib-bsearch.h: New file.
3276         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3277         * stdlib/stdlib.h: Likewise.
3278
3279 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3280
3281         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3282         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3283         declaration.
3284         * manual/search.texi (Array Search Function): Add missing const in
3285         lfind prototype.
3286         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3287         declaration to use rlim_t.
3288         (Basic Scheduling Functions): Remove erroneous const from
3289         sched_getparam prototype.  Remove erroneous * from
3290         sched_get_priority_max and sched_get_priority_min prototypes.
3291         (Resource Usage): Fix summary @comment on vtimes to refer to
3292         sys/vtimes.h rather than vtimes.h.
3293         Add missing *s in vtimes prototype.
3294         (Limits on Resources): Fix ulimit prototype to return long int.
3295         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3296         prototypes to use long int rather than double.
3297         (BSD Random): Fix initstate and setstate to use char *, not void *.
3298         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3299         prototype to make second argument 'struct aiocb64 *const[]'.
3300         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3301         (Status of AIO Operations): Remove erroneous const in aio_return and
3302         aio_return64 prototypes.
3303         (Synchronizing I/O): Fix sync prototype to return void.
3304         * manual/startup.texi (Suboptions): Remove an erroneous const in
3305         getsubopt prototype.
3306         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3307         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3308         use size_t rather than int.
3309         (Scanning All Users): Likewise for getpwent_r.
3310         (Setting Groups): Add missing const to setgroups prototype.
3311         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3312         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3313         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3314         'const void *' rather than 'const char *'.
3315         (Host Address Functions): Likewise for inet_ntop.
3316         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3317         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3318         ssize_t for return value.
3319         (Sending Data): Likewise for send, sendto, sendmsg.
3320         (Socket Option Functions): Add a missing const in setsockopt prototype.
3321         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3322         use wchar_t for the argument.
3323         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3324         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3325         take no arguments.
3326         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3327         double/float/long double for second argument.
3328         Fix return types of significand, significandf, significandl.
3329         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3330         argument in fchmod prototype.
3331         (File Owner): Use uid_t and gid_t in fchown prototype.
3332         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3333         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3334         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3335         use 'const struct dirent **' as argument types to CMP function pointer
3336         argument.
3337         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3338         (File Times): Fix summary magic @comment for struct utimbuf and utime
3339         to refer to utime.h, not time.h.
3340         * manual/string.texi (Argz Functions): Add missing const in
3341         argz_extract and argz_next prototypes.
3342         (Finding Tokens in a String): Likewise for basename.
3343         (String/Array Comparison): Fix typo in wcscasecmp prototype.
3344         (Copying and Concatenation): Fix typo in wmemmove prototype.
3345         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
3346         (Signal Stack): Remove erroneous const in sigstack prototype.
3347         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
3348         prototype.
3349         (Simple Calendar Time): Likewise for stime.
3350         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
3351         prototype.
3352         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
3353         say sys/sysctl.h instead.
3354         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
3355         and vsyslog prototypes.
3356
3357 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3358
3359         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
3360         Remove.
3361
3362 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3363
3364         * misc/sys/mman.h: Fix typo in mremap comment.
3365
3366 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3367
3368         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
3369         the '\0' terminator.
3370
3371 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3372
3373         [BZ #13550]
3374         * debug/segfault.c: Don't include <bp-checks.h>.
3375         * sysdeps/generic/bp-checks.h: Remove file.
3376         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
3377         (__GETDENTS): Don't use CHECK_N.
3378         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
3379         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3380         (__getgroups): Don't use CHECK_N.
3381         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3382         (setgroups): Don't use CHECK_N.
3383         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
3384         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3385         (__libc_msgrcv): Don't use CHECK_N.
3386         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
3387         (__libc_msgsnd): Don't use CHECK_N.
3388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
3389         <bp-checks.h>.
3390         (__libc_pread): Don't use CHECK_N.
3391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
3392         include <bp-checks.h>.
3393         (__libc_pread64): Don't use CHECK_N.
3394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
3395         include <bp-checks.h>.
3396         (__libc_pwrite): Don't use CHECK_N.
3397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
3398         include <bp-checks.h>.
3399         (__libc_pwrite64): Don't use CHECK_N.
3400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
3401         <bp-checks.h>.
3402         (__libc_pread): Don't use CHECK_N.
3403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
3404         include <bp-checks.h>.
3405         (__libc_pread64): Don't use CHECK_N.
3406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
3407         include <bp-checks.h>.
3408         (__libc_pwrite): Don't use CHECK_N.
3409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
3410         include <bp-checks.h>.
3411         (__libc_pwrite64): Don't use CHECK_N.
3412         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
3413         (do_pread): Don't use CHECK_N.
3414         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
3415         (do_pread64): Don't use CHECK_N.
3416         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
3417         (do_pwrite): Don't use CHECK_N.
3418         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
3419         (do_pwrite64): Don't use CHECK_N.
3420         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
3421         (__libc_readv): Don't use CHECK_N.
3422         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
3423         (semop): Don't use CHECK_N.
3424         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
3425         <bp-checks.h>.
3426         (semtimedop): Don't use CHECK_N.
3427         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
3428         (__libc_pread): Don't use CHECK_N.
3429         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
3430         <bp-checks.h>.
3431         (__libc_pread64): Don't use CHECK_N.
3432         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
3433         <bp-checks.h>.
3434         (__libc_pwrite): Don't use CHECK_N.
3435         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
3436         <bp-checks.h>.
3437         (__libc_pwrite64): Don't use CHECK_N.
3438         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
3439         <bp-checks.h>.
3440         (__libc_msgrcv): Don't use CHECK_N.
3441         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
3442         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
3443         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
3444         (__libc_writev): Don't use CHECK_N.
3445
3446 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3447
3448         * string/strcpy.c: Removed unused variable.
3449
3450         * Makeconfig (+sysdep-includes): Define with := rather than =.
3451         Use an existing include/ subdir of each sysdeps dir before it.
3452
3453 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3454
3455         * nscd/connection.c (register_traced_file): Comment function.
3456         [HAVE_INOTIFY] (union __inev): Define.
3457         [HAVE_INOTIFY] (inotify_check_files): New function.
3458         [HAVE_INOTIFY] (clear_db_cache): Likewise.
3459         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
3460         clear_db_cache.
3461         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
3462
3463 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3464
3465         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
3466         loaded if not already and that a failure is permanent.
3467
3468 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3469
3470         [BZ #15006]
3471         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
3472         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
3473
3474 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3475
3476         [BZ #13550]
3477         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
3478         (CHECK_1_NULL_OK): Likewise.
3479         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
3480         (__fxstat): Do not use CHECK_1.
3481         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3482         <bp-checks.h>.
3483         (___fxstat64): Do not use CHECK_1.
3484         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
3485         <bp-checks.h>.
3486         (__fxstatat): Do not use CHECK_1.
3487         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
3488         <bp-checks.h>.
3489         (__fxstatat64): Do not use CHECK_1.
3490         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
3491         <bp-checks.h>.
3492         (__fxstat): Do not use CHECK_1.
3493         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
3494         <bp-checks.h>.
3495         (__fxstatat): Do not use CHECK_1.
3496         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3497         <bp-checks.h>.
3498         (__getresgid): Do not use CHECK_1.
3499         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3500         <bp-checks.h>.
3501         (__getresuid): Do not use CHECK_1.
3502         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
3503         <bp-checks.h>.
3504         (__lxstat): Do not use CHECK_1.
3505         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3506         <bp-checks.h>.
3507         (__old_msgctl): Do not use CHECK_1.
3508         (__new_msgctl): Likewise.
3509         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
3510         <bp-checks.h>.
3511         (__new_setrlimit): Do not use CHECK_1.
3512         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3513         <bp-checks.h>.
3514         (__old_shmctl): Do not use CHECK_1.
3515         (__new_shmctl): Likewise.
3516         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
3517         <bp-checks.h>.
3518         (__xstat): Do not use CHECK_1.
3519         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
3520         (__lxstat): Do not use CHECK_1.
3521         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3522         <bp-checks.h>.
3523         (___lxstat64): Do not use CHECK_1.
3524         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
3525         (__old_msgctl): Do not use CHECK_1.
3526         (__new_msgctl): Likewise.
3527         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
3528         <bp-checks.h>.
3529         (__gettimeofday): Do not use CHECK_1.
3530         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
3531         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
3532         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
3533         <bp-checks.h>.
3534         (__gettimeofday): Do not use CHECK_1.
3535         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
3536         (__old_shmctl): Do not use CHECK_1_NULL_OK.
3537         (__new_shmctl): Do not use CHECK_1.
3538         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
3539         <bp-checks.h>.
3540         (do_sigtimedwait): Do not use CHECK_1.
3541         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
3542         <bp-checks.h>.
3543         (do_sigwaitinfo): Do not use CHECK_1.
3544         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
3545         <bp-checks.h>.
3546         (msgctl): Do not use CHECK_1.
3547         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
3548         <bp-checks.h>.
3549         (shmctl): Do not use CHECK_1.
3550         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
3551         (ustat): Do not use CHECK_1.
3552         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
3553         <bp-checks.h>.
3554         (__fxstat): Do not use CHECK_1.
3555         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
3556         <bp-checks.h>.
3557         (__fxstatat): Do not use CHECK_1.
3558         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
3559         <bp-checks.h>.
3560         (__lxstat): Do not use CHECK_1.
3561         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
3562         <bp-checks.h>.
3563         (__xstat): Do not use CHECK_1.
3564         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
3565         (__xstat): Do not use CHECK_1.
3566         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
3567         (___xstat64): Do not use CHECK_1.
3568
3569         [BZ #13550]
3570         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
3571         definitions.
3572         (CHECK_BOUNDS_HIGH): Likewise.
3573         * string/strcpy.c: Do not include <bp-checks.h>.
3574         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
3575
3576 2013-02-07  Roland McGrath  <roland@hack.frob.com>
3577
3578         * nscd/nscd-client.h (__nscd_drop_map_ref):
3579         Add __attribute__ ((unused)).
3580         * nis/nss-nisplus.h (niserr2nss): Likewise.
3581
3582         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
3583         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
3584
3585         * csu/libc-tls.c (init_static_tls, init_slotinfo):
3586         Remove inline keyword.
3587         * include/rounding-mode.h (round_away): Likewise.
3588         * libio/wfileops.c (adjust_wide_data): Likewise.
3589         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
3590         (__m128i_strloadu_tolower): Likewise.
3591         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
3592         (__m128i_strloadu_tolower): Likewise.
3593         * time/mktime.c (ydhms_diff): Likewise.
3594         * locale/elem-hash.h (elem_hash): Likewise.
3595         * locale/setlocale.c (setdata): Likewise.
3596         * posix/regex_internal.h (re_string_char_size_at): Likewise.
3597         (re_string_wchar_at): Likewise.
3598         (bitset_not, bitset_merge, bitset_mask): Likewise.
3599         [!(__GNUC__ > 3)] (inline): Remove macro.
3600         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
3601         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
3602         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
3603         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
3604         * string/memcmp.c (memcmp_bytes): Likewise.
3605         * locale/programs/locarchive.c (compute_hashval): Likewise.
3606         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
3607         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
3608         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
3609         * nss/getent.c (print_rpc, print_protocols): Likewise.
3610         (print_passwd, print_group, print_aliases): Likewise.
3611         * nis/nss-nisplus.h (niserr2nss): Likewise.
3612         * nscd/connections.c (restart_p): Likewise.
3613         Change return type to bool.
3614
3615 2013-02-05  Roland McGrath  <roland@hack.frob.com>
3616
3617         * Makeconfig (all-Depend-files): Add existing
3618         $(sorted-subdirs:=/Depend) files.
3619         (all-subdirs): Remove nss.
3620         * sysdeps/unix/inet/Subdirs: Add it here instead.
3621         * hesiod/Depend: New file.
3622
3623         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
3624         instead of calling alloca.
3625
3626         * io/lseek.c (__lseek): Rename to __libc_lseek.
3627         Define __lseek as an alias.
3628
3629         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
3630
3631 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
3632
3633         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
3634         else clause and remove check for non-standard endianness.
3635
3636 2013-02-04  David S. Miller  <davem@davemloft.net>
3637
3638         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3639
3640 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
3641
3642         [BZ #13550]
3643         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
3644         (__ubp_memchr): Remove prototype.
3645         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
3646         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3647         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
3648         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3649         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3650         Remove alias.
3651         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
3652         (__ubp_memchr): Likewise.
3653         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
3654         (__ubp_memchr): Likewise.
3655         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
3656         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
3657         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
3658         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
3659         CHECK_STRING.
3660         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
3661         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
3662         (__getcwd): Do not use CHECK_STRING.
3663         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3664         <bp-checks.h>.
3665         (__real_chown): Do not use CHECK_STRING.
3666         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
3667         <bp-checks.h>.
3668         (fchownat): Do not use CHECK_STRING.
3669         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
3670         CHECK_STRING.
3671         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3672         <bp-checks.h>.
3673         (__lchown): Do not use CHECK_STRING.
3674         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3675         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3676         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3677         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
3678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3679         include <bp-checks.h>.
3680         (truncate64): Do not use CHECK_STRING.
3681         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3682         <bp-checks.h>.
3683         (__real_chown): Do not use CHECK_STRING.
3684         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3685         <bp-checks.h>.
3686         (__lchown): Do not use CHECK_STRING.
3687         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3688         <bp-checks.h>.
3689         (__chown): Do not use CHECK_STRING.
3690         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
3691         <bp-checks.h>.
3692         (truncate64): Do not use CHECK_STRING.
3693         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
3694         Likewise.
3695         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
3696         (__xmknod): Do not use CHECK_STRING.
3697         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
3698         <bp-checks.h>.
3699         (__xmknodat): Do not use CHECK_STRING.
3700         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3701         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
3702
3703 2013-02-04  Andreas Schwab  <schwab@suse.de>
3704
3705         [BZ #14142]
3706         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
3707         * include/netdb.h: Likewise for h_errno.
3708         * elf/tst-stackguard1.c: Include <tls.h>.
3709
3710 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3711
3712         * elf/link.h (struct link_map): Extend the l_addr comment.
3713         * include/link.h (struct link_map): Likewise.
3714
3715 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
3716
3717         [BZ #13550]
3718         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
3719         (BOUNDED_1): Remove macro.
3720         * debug/backtrace.c: Don't include <bp-checks.h>.
3721         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
3722         (__backtrace): Likewise.
3723         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
3724         <bp-checks.h>.
3725         (__backtrace): Don't use BOUNDED_1.
3726         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
3727         <bp-checks.h>.
3728         (__backtrace): Don't use BOUNDED_1.
3729         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
3730         (__backtrace): Don't use BOUNDED_1.
3731         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
3732         (shmat): Don't use BOUNDED_N.
3733
3734 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
3735
3736         [BZ #13550]
3737         * sysdeps/generic/bp-start.h: Remove file.
3738         * csu/libc-start.c: Don't include <bp-start.h>.
3739         (LIBC_START_MAIN): Set up __environ directly instead of using
3740         INIT_ARGV_and_ENVIRON.
3741         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
3742         <bp-start.h>.
3743
3744         [BZ #13550]
3745         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
3746         definitions.
3747         (CHECK_FCNTL): Likewise.
3748         (CHECK_N_PAGES): Likewise.
3749
3750         [BZ #13550]
3751         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
3752         definitions.
3753         (CHECK_SIGSET_NULL_OK): Likewise.
3754         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
3755         <bp-checks.h>.
3756         (sigpending): Don't use CHECK_SIGSET.
3757         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
3758         <bp-checks.h>.
3759         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3760         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
3761         <bp-checks.h>.
3762         (do_sigsuspend): Don't use CHECK_SIGSET.
3763         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
3764         use CHECK_SIGSET.
3765         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
3766         (do_sigwait): Don't use CHECK_SIGSET.
3767         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
3768         use CHECK_SIGSET.
3769         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
3770         include <bp-checks.h>.
3771         (sigpending): Don't use CHECK_SIGSET.
3772         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
3773         include <bp-checks.h>.
3774         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3775         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
3776         <bp-checks.h>.
3777         (sigpending): Don't use CHECK_SIGSET.
3778         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
3779         <bp-checks.h>.
3780         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3781
3782         [BZ #13550]
3783         * sysdeps/generic/bp-semctl.h: Remove file.
3784         * sysdeps/unix/sysv/linux/i386/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/semctl.c: Don't include <bp-checks.h>
3789         and <bp-semctl.h>.
3790         (__old_semctl): Don't use CHECK_SEMCTL.
3791         (__new_semctl): Likewise.
3792         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
3793         <bp-checks.h> and <bp-semctl.h>.
3794         (__old_semctl): Don't use CHECK_SEMCTL.
3795         (__new_semctl): Likewise.
3796         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
3797         <bp-checks.h> and <bp-semctl.h>.
3798         (semctl): Don't use CHECK_SEMCTL.
3799
3800         [BZ #13550]
3801         * Makerules (elide-bp-thunks): Remove variable.
3802         (elide-routines.oS): Don't use $(elide-bp-thunks).
3803         (elide-routines.os): Likewise.
3804         (elide-routines.o): Likewise.
3805         (elide-routines.op): Likewise.
3806         (elide-routines.og): Likewise.
3807         (objects): Don't use $(bp-thunks).
3808         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
3809         include.
3810         (common-generated): Do not add s-proto-bp.d.
3811         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
3812         (int): Likewise.
3813         (typ): Likewise.
3814         Do not generate makefile rules for bounded-pointer thunks.
3815         * sysdeps/generic/bp-thunks.h: Remove file.
3816         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3817         * sysdeps/unix/s-proto-bp.S: Likewise.
3818
3819         [BZ #15062]
3820         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
3821         parts of result separately when argument is not close to line from
3822         -i to i and one part of argument is small.
3823         * math/k_casinhf.c (__kernel_casinhf): Likewise.
3824         * math/k_casinhl.c (__kernel_casinhl): Likewise.
3825         * math/libm-test.inc (cacos_test): Add more tests.
3826         (casin_test): Likewise.
3827         (casinh_test): Likewise.
3828         * sysdeps/i386/fpu/libm-test-ulps: Update.
3829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3830
3831 2013-01-31  David S. Miller  <davem@davemloft.net>
3832
3833         * po/de.po: Update from translation team.
3834
3835 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3836
3837         * time/tzfile.c: Include stdint.h for SIZE_MAX.
3838
3839 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
3840
3841         * configure.in (_AC_PROG_CC_C89): New definition.
3842         * configure: Regenerate.
3843
3844         * configure.in (AC_PROG_CPP): New definition.
3845         * configure: Regenerate.
3846
3847 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3848
3849         * debug/tst-backtrace.h: New file.
3850         * debug/tst-backtrace2.c: Include tst-backtrace.h.
3851         (ret): Remove variable.
3852         (x): Likewise.
3853         (FAIL): Remove macro.
3854         (NO_INLINE): Likewise.
3855         (fn1): Use match function instead of strstr.
3856         * debug/tst-backtrace3.c: Include tst-backtrace.h.
3857         (ret): Remove variable.
3858         (x): Likewise.
3859         (FAIL): Remove macro.
3860         (NO_INLINE): Likewise.
3861         (fn): Use match function instead of strstr.
3862         * debug/tst-backtrace4.c: Include tst-backtrace.h.
3863         (ret): Remove variable.
3864         (x): Likewise.
3865         (FAIL): Remove macro.
3866         (NO_INLINE): Likewise.
3867         (handle_signal): Use match function instead of strstr.
3868         * debug/tst-backtrace5.c: Include tst-backtrace.h.
3869         (ret): Remove variable.
3870         (x): Likewise.
3871         (FAIL): Remove macro.
3872         (NO_INLINE): Likewise.
3873         (handle_signal): Use match function instead of strstr.
3874
3875 2013-01-23  Roland McGrath  <roland@hack.frob.com>
3876
3877         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
3878
3879 2013-01-23  David S. Miller  <davem@davemloft.net>
3880
3881         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3882         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
3883         argument of CAS if possible.
3884         * sysdeps/sparc/sparc64/bits/atomic.h
3885         (__arch_compare_and_exchange_val_32_acq): Likewise.
3886         (__arch_compare_and_exchange_val_64_acq): Likewise.
3887
3888 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
3889
3890         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
3891         * sysdeps/posix/ulimit.c: ... this.
3892         Include <limits.h>.
3893         * sysdeps/unix/bsd/ulimit.c: Remove file.
3894
3895 2013-01-23  Adam Conrad  <adconrad@0c3.net>
3896
3897         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
3898         (LDFLAGS-tst-array5): Likewise.
3899
3900 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3901
3902         [BZ #15036]
3903         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
3904         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
3905         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
3906         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
3907
3908 2013-01-21  David S. Miller  <davem@davemloft.net>
3909
3910         * sysdeps/sparc/backtrace.c: New file.
3911         * sysdeps/sparc/sparc32/backtrace.h: New file.
3912         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
3913         * sysdeps/sparc/sparc64/backtrace.h: New file.
3914         * sysdeps/sparc/sparc64/backtrace.c: Delete.
3915         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
3916         -funwind-tables.
3917
3918 2013-01-21  Andreas Schwab  <schwab@suse.de>
3919
3920         [BZ #15020]
3921         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
3922         closed its stdout.
3923
3924 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
3925
3926         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
3927         "mpa2.h".
3928         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3929
3930 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
3931             Mark Mitchell  <mark@codesourcery.com>
3932             Tom de Vries  <tom@codesourcery.com>
3933             Paul Pluzhnikov  <ppluzhnikov@google.com>
3934
3935         * debug/tst-backtrace2.c: New file.
3936         * debug/tst-backtrace3.c: Likewise.
3937         * debug/tst-backtrace4.c: Likewise.
3938         * debug/tst-backtrace5.c: Likewise.
3939         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
3940         (CFLAGS-tst-backtrace3.c): Likewise.
3941         (CFLAGS-tst-backtrace4.c): Likewise.
3942         (CFLAGS-tst-backtrace5.c): Likewise.
3943         (LDFLAGS-tst-backtrace2): Likewise.
3944         (LDFLAGS-tst-backtrace3): Likewise.
3945         (LDFLAGS-tst-backtrace4): Likewise.
3946         (LDFLAGS-tst-backtrace5): Likewise.
3947         (tests): Add new tests tst-backtrace2, tst-backtrace3,
3948         tst-backtrace4 and tst-backtrace5.
3949
3950 2013-01-18  Anton Blanchard  <anton@samba.org>
3951             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3952
3953         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
3954         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
3955         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
3956         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
3957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3958         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
3959         "+r" and remove output regs list as redundant.  Add explicit inline
3960         asm to specify register of return val to work around compiler codegen
3961         bug.  Remove (int) cast on return value.  Add return type parameter to
3962         use in macro so that this macro does not truncate return value for
3963         64-bit values.
3964         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
3965         pass to INTERNAL_VSYSCALL_NCS.
3966         (INLINE_VSYSCALL): Add 'long int' as return type to
3967         INTERNAL_VSYSCALL_NCS macro invocation.
3968         (INTERNAL_VSYSCALL): Add 'long int' as return type to
3969         INTERNAL_VSYSCALL_NCS macro invocation.
3970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3971
3972 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3973
3974         [BZ #14496]
3975         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
3976         Fix application of SIMD FP exception mask.
3977
3978         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
3979         mp_no from a power of two.
3980         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
3981         __mpexp_twomm1.  Use __pow_mp.
3982
3983         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
3984         multiplication.
3985
3986 2013-01-17  David S. Miller  <davem@davemloft.net>
3987
3988         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3989
3990 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3991
3992         [BZ #15023]
3993         * include/complex.h: Condition contents on [!_COMPLEX_H].
3994         (__kernel_casinhf): New prototype.
3995         (__kernel_casinh): Likewise.
3996         (__kernel_casinhl): Likewise.
3997         * math/Makefile (libm_calls): Add k_casinh.
3998         * math/k_casinh.c: New file.
3999         * math/k_casinhf.c: Likewise.
4000         * math/k_casinhl.c: Likewise.
4001         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
4002         finite nonzero arguments.
4003         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
4004         finite nonzero arguments.
4005         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
4006         finite nonzero arguments.
4007         * math/s_casinh.c: Do not include <float.h>.
4008         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
4009         * math/s_casinhf.c: Do not include <float.h>.
4010         (__casinhf): Move code for finite nonzero arguments to
4011         k_casinhf.c.
4012         * math/s_casinhl.c: Do not include <float.h>.
4013         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
4014         redefine.
4015         (__casinhl): Move code for finite nonzero arguments to
4016         k_casinhl.c.
4017         * math/libm-test.inc (cacos_test): Add more tests.
4018         * sysdeps/i386/fpu/libm-test-ulps: Update.
4019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4020
4021 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
4022
4023         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
4024         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
4025         [!HAVE_MREMAP]: Remove [defined linux] case.
4026         * malloc/arena.c: Do not include <malloc-sysdep.h>.
4027
4028 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4029
4030         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
4031
4032 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
4033
4034         * elf/elf.h (R_386_SIZE32): New relocation.
4035         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
4036         R_386_SIZE32.
4037         (elf_machine_rela): Likewise.
4038         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
4039         R_X86_64_SIZE64 and R_X86_64_SIZE32.
4040
4041 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
4042
4043         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
4044         (FP_FAST_FMA): Do not define.
4045         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
4046         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
4047         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
4048         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
4049         !_SOFT_FLOAT]: Likewise.
4050         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
4051         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
4052         value.
4053         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
4054         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
4055         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
4056         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
4057         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
4058         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
4059         file.
4060
4061 2013-01-16  Andreas Schwab  <schwab@suse.de>
4062
4063         [BZ #14327]
4064         * include/stdlib.h (__mktemp): Add declaration.
4065         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
4066         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
4067
4068 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4069
4070         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
4071         definitions.
4072         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4073         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
4074         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
4075         definitions here.
4076         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
4077         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
4078         definitions.
4079         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
4080         and ONE.
4081         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
4082         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
4083         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
4084         definitions.
4085         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
4086         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
4087         definitions.
4088         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4089
4090         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
4091
4092 2013-01-15  David S. Miller  <davem@davemloft.net>
4093
4094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4095         trunc{,f} to libm-sysdep_routes.
4096         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
4098         file.
4099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
4100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
4101         file.
4102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
4103         file.
4104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
4105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
4106         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
4107         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
4108         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
4109         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
4110         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
4111         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
4112
4113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4114         nearbyint{,f} to libm-sysdep_routes.
4115         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
4117         New file.
4118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
4119         file.
4120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
4121         New file.
4122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4123         file.
4124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4126         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4127         file.
4128         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4129         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4130         file.
4131         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4132         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4133         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4134
4135         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4136         libc_feholdexcept and libc_fesetenv.
4137
4138 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4139
4140         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4141
4142 2013-01-14  David S. Miller  <davem@davemloft.net>
4143
4144         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4145         (SPARC_ASM_VIS2_IFUNC): Likewise.
4146         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4148         use of 'siam' instruction.
4149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4150         Likewise.
4151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4152         Likewise.
4153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4154         Likewise.
4155         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4156         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4157         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4158         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4160         file.
4161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4162         file.
4163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4164         file.
4165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4166         file.
4167         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4168         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4169         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4170         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4172         new VIS2 routines.
4173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4176         Likewise.
4177         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4178         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4179         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4180         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4182         routines to libm-sysdep_routines.
4183         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4184
4185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4186         fdim/fdimf to libm-sysdep_routines.
4187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4188         file.
4189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4191         file.
4192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4193         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4194         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4195         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4196         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4197         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4198         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4199
4200 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4201
4202         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4203         to optimize copies.
4204
4205         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4206         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4207         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4208
4209         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4210         local variable MPTWO.
4211         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4212         Likewise.
4213
4214 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4215
4216         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4217         GLOB_NOESCAPE.
4218
4219 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4220
4221         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4222
4223 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4224
4225         * manual/pattern.texi (glob_t): Document gl_flags.
4226         (glob64_t): Likewise.
4227
4228 2013-01-11  David S. Miller  <davem@davemloft.net>
4229
4230         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4231         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4232         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4233         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4234         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4235         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4236         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4237         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4238         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4239         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4240         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4241         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4242         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4243
4244         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4245         sparc V9 rather than using V8 code.
4246         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4247         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4248
4249         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4250         Move to...
4251         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4252         Here.
4253
4254 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4255
4256         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4257         not in the main loop.
4258         * configure: Regenerated.
4259
4260 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4261
4262         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4263         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4264         to just #else.
4265         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4266         [!__GLIBC_HAVE_LONG_LONG] case.
4267         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4268         condition to just #else.
4269         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4270         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4271         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4272         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4273         unconditional.
4274         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4275         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4276         #elif condition to just #else.
4277         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4278         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4279         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4280         #elif condition to just #else.
4281
4282 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4283
4284         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4285         (EF_MIPS_ARCH_64): Fix value.
4286         (EF_MIPS_ARCH_32R2): New.
4287         (EF_MIPS_ARCH_64R2): New.
4288
4289 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4290
4291         * Makeconfig (+link-pie-before-libc): New.
4292         (+link-pie-after-libc): Likewise.
4293         (+link-pie-tests): Likewise.
4294         (+link-pie): Rewritten.
4295         (link-before-libc): Remove $(config-LDFLAGS).
4296         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4297         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4298         (config-LDFLAGS): Renamed to ...
4299         (rtld-LDFLAGS): This.
4300         (rtld-tests-LDFLAGS): New macro.
4301         (link-libc-rpath-link): Likewise.
4302         (link-libc-tests-rpath-link): Likewise.
4303         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4304         (link-libc): Prepand $(link-libc-rpath-link).
4305         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4306         (test-program-prefix): New macro.
4307         (test-via-rtld-prefix): Likewise.
4308         (test-program-cmd): Likewise.
4309         (host-test-program-cmd): Likewise.
4310         * Makefile ($(common-objpfx)testrun.sh): Replace
4311         $(run-program-prefix) with $(test-program-prefix).
4312         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4313         $(rtld-LDFLAGS).
4314         ($(common-objpfx)shlib.lds): Likewise.
4315         (build-module-helper): Likewise.
4316         ($(common-objpfx)format.lds): Likewise.
4317         * Rules (binaries-pie-tests): New.
4318         (binaries-pie-notests): Likewise.
4319         (binaries-pie): Rewritten.
4320         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4321         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4322         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4323         (make-test-out): Replace $(host-built-program-cmd) with
4324         $(host-test-program-cmd).
4325         * config.make.in (build-hardcoded-path-in-tests): New variable.
4326         * configure.in (--enable-hardcoded-path-in-tests): New configure
4327         option.
4328         (hardcoded_path_in_tests): New AC_SUBST.
4329         * configure: Regenerated.
4330         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4331         $(built-program-cmd) with $(test-program-cmd).
4332         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4333         (test_program_cmd): This.
4334         * elf/Makefile ($(objpfx)order.out): Run test with
4335         $(test-program-prefix).
4336         ($(objpfx)order2.out): Likewise.
4337         ($(objpfx)tst-initorder.out): Likewise.
4338         ($(objpfx)tst-initorder2.out): Likewise.
4339         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4340         $(test-program-cmd).
4341         ($(objpfx)tst-array1-static.out): Likewise.
4342         ($(objpfx)tst-array2.out): Likewise.
4343         ($(objpfx)tst-array3.out): Likewise.
4344         ($(objpfx)tst-array4.out): Likewise.
4345         ($(objpfx)tst-array5.out): Likewise.
4346         ($(objpfx)tst-array5-static.out): Likewise.
4347         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
4348         $(test-program-cmd).
4349         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
4350         $(run-program-prefix) with $(test-program-prefix).
4351         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
4352         (test_program_prefix): This.
4353         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
4354         $(run-program-prefix) with $(test-program-prefix).
4355         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
4356         (test_program_prefix): This.
4357         * iconvdata/tst-tables.sh: Likewise.
4358         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
4359         $(run-program-prefix) with $(test-program-prefix).
4360         ($(objpfx)tst-translit.out): Likewise.
4361         ($(objpfx)tst-gettext2.out): Likewise.
4362         ($(objpfx)tst-gettext4.out): Likewise.
4363         ($(objpfx)tst-gettext6.out): Likewise.
4364         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
4365         (test_program_prefix): This.
4366         * intl/tst-gettext2.sh: Likewise.
4367         * intl/tst-gettext4.sh  Likewise.
4368         * intl/tst-gettext6.sh: Likewise.
4369         * intl/tst-translit.sh: Likewise.
4370         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
4371         with $(test-program-cmd).
4372         * libio/Makefile ($(objpfx)test-freopen.out): Replace
4373         $(run-program-prefix) with $(test-program-prefix).
4374         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
4375         (test_program_prefix): This.
4376         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
4377         $(run-program-prefix) with $(test-program-prefix).
4378         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
4379         (test_program_prefix): This.
4380         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
4381         * posix/Makefile ($(objpfx)globtest.out): Replace
4382         $(run-via-rtld-prefix) and $(test-wrapper) with
4383         $(test-program-prefix) and $(test-via-rtld-prefix).
4384         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
4385         $(test-program-prefix).
4386         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
4387         $(host-test-program-cmd).
4388         (tst-spawn-ARGS): Likewise.
4389         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
4390         $(test-program-prefix).
4391         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
4392         (test_via_rtld_prefix): This.
4393         (test_wrapper): Renamed to ...
4394         (test_program_prefix): This.
4395         (run_program_prefix): Replaced by test_program_prefix.
4396         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
4397         (test_program_prefix): This.
4398         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
4399         with $(host-test-program-cmd).
4400         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
4401         $(run-program-prefix) with $(test-program-prefix).
4402         ($(objpfx)tst-printf.out): Likewise.
4403         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
4404         $(test-program-cmd).
4405         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
4406         (test_program_prefix): This.
4407         * stdio-common/tst-unbputc.sh: Likewise.
4408         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
4409         $(run-program-prefix) with $(test-program-prefix).
4410         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
4411         (test_program_prefix): This.
4412         * string/Makefile ($(objpfx)tst-svc.out):  Replace
4413         $(built-program-cmd) with $(test-program-cmd).
4414
4415 2013-01-11  Andreas Jaeger  <aj@suse.de>
4416
4417         [BZ #15003]
4418         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
4419         value. Sync with Linux 3.7.
4420
4421 2013-01-10  David S. Miller  <davem@davemloft.net>
4422
4423         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
4424         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4425         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4426
4427 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4428
4429         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
4430         never set.
4431         * configure: Regenerated.
4432
4433 2013-01-10  David S. Miller  <davem@davemloft.net>
4434
4435         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4436         sparc V9 rather than using V8 code.
4437         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4438         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4439
4440 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4441
4442         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
4443         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
4444         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
4445         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
4446         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
4447         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
4448         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
4449         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
4450         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
4451         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
4452         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
4453         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
4454         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
4455         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
4456         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
4457         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
4458         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
4459         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
4460         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
4461         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
4462         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
4463         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
4464         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
4465         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
4466         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
4467         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
4468         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
4469
4470 2013-01-10  David S. Miller  <davem@davemloft.net>
4471
4472         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4473
4474 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4475
4476         * posix/Makefile (tests-static): New variable.
4477         (tests): Add $(tests-static).
4478         (tst-exec-static-ARGS): New variable.
4479         (tst-spawn-static-ARGS): Likewise.
4480         * posix/tst-exec-static.c: New file.
4481         * posix/tst-spawn-static.c: Likewise.
4482         * posix/tst-exec.c: Support run directly.
4483         * posix/tst-spawn.c: Likewise.
4484
4485 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
4486
4487         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
4488         long.
4489         * math/bits/mathcalls.h (llrint): Likewise.
4490         (llround): Likewise.
4491         * stdlib/stdlib.h (struct drand48_data): Likewise.
4492         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
4493         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
4494         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
4495         Likewise.
4496         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
4497         Likewise.
4498         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
4499         (elf_greg_t): Likewise.
4500         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
4501         (__jmp_buf): Likewise.
4502         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
4503         definitions.
4504         (llrint): Likewise, for all definitions.
4505         (llrintl): Likewise.
4506
4507         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
4508         Remove [__GNUC__] condition.
4509         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
4510         condition to just [__USE_ISOC99].
4511         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
4512
4513 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4514
4515         [BZ #14200]
4516         * sysdeps/unix/sysv/linux/x86/bits/environments.h
4517         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
4518         defined.
4519         (_POSIX_V6_ILP32_OFF32): Likewise.
4520         (_XBS5_ILP32_OFF32): Likewise.
4521         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
4522         (__ILP32_OFFBIG_LDFLAGS): Likewise.
4523
4524 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4525
4526         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
4527
4528         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
4529         doubles __mpexp_twomm1.  Adjust usage.
4530         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
4531         Remove.
4532
4533 2013-01-10  Andreas Schwab  <schwab@suse.de>
4534
4535         [BZ #14964]
4536         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
4537         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
4538
4539 2013-01-09  David S. Miller  <davem@davemloft.net>
4540
4541         [BZ #15003]
4542         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
4543         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
4544         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
4545         TCP_FASTOPEN): Define.
4546         (tcp_repair_opt): New structure.
4547         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
4548         enum values.
4549         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
4550         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
4551         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
4552         (tcp_cookie_transactions): New structure.
4553
4554 2013-01-09  Anton Blanchard  <anton@samba.org>
4555
4556         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
4557         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
4558         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
4559         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
4560
4561 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
4562
4563         * include/features.h (__USE_ANSI): Remove.
4564
4565 2013-01-09  Roland McGrath  <roland@hack.frob.com>
4566
4567         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
4568
4569         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
4570
4571 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
4572
4573         * sysdeps/s390/fpu/libm-test-ulps: Update.
4574
4575         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4576
4577         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
4578         (__acr): Likewise.
4579         (__cpy): Likewise.
4580         (norm): Likewise.
4581         (denorm): Likewise.
4582         (__mp_dbl): Likewise.
4583         (__dbl_mp): Likewise.
4584         (add_magnitudes): Likewise.
4585         (sub_magnitudes): Likewise.
4586         (__add): Likewise.
4587         (__sub): Likewise.
4588         (__mul): Likewise.
4589         (__inv): Likewise.
4590         (__dvd): Likewise.
4591         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
4592         (__acr): Likewise.
4593         (__cpy): Likewise.
4594         (norm): Likewise.
4595         (denorm): Likewise.
4596         (__mp_dbl): Likewise.
4597         (__dbl_mp): Likewise.
4598         (add_magnitudes): Likewise.
4599         (sub_magnitudes): Likewise.
4600         (__add): Likewise.
4601         (__sub): Likewise.
4602         (__mul): Likewise.
4603         (__inv): Likewise.
4604         (__dvd): Likewise.
4605         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
4606         (__acr): Likewise.
4607         (__cpy): Likewise.
4608         (norm): Likewise.
4609         (denorm): Likewise.
4610         (__mp_dbl): Likewise.
4611         (__dbl_mp): Likewise.
4612         (add_magnitudes): Likewise.
4613         (sub_magnitudes): Likewise.
4614         (__add): Likewise.
4615         (__sub): Likewise.
4616         (__mul): Likewise.
4617         (__inv): Likewise.
4618         (__dvd): Likewise.
4619
4620 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
4621
4622         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
4623         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
4624         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
4625         2 && __USE_EXTERN_INLINES]: Likewise.
4626
4627 2013-01-08  Andreas Jaeger  <aj@suse.de>
4628
4629         [BZ# 14985]
4630         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
4631         Remove.
4632         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4633         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4634
4635 2013-01-07  Anton Blanchard  <anton@samba.org>
4636
4637         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
4638         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4639         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
4640         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4641         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
4642         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4643         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
4644         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4646         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4647         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4648         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4649         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4650         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4651         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4652         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4653         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4654         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4655         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4656         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
4657         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4658         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
4659         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4660         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4661         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
4662         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
4663         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4664         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
4665         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
4666         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4667         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4668         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4669         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4670         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4671         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4672         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4673         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4674         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4675         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
4676         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
4677         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
4678         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4679         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4680
4681 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
4682
4683         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
4684         (__MALLOC_PMT): Likewise.
4685         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
4686         [__GNUC__], only on [_LIBC].
4687         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4688         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
4689         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4690         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
4691         forward declaration.
4692         (realloc_hook_ini): Likewise.
4693         (memalign_hook_ini): Likewise.
4694         (__libc_memalign): Do not use __MALLOC_PMT in variable
4695         declaration.
4696         (__libc_valloc): Likewise.
4697         (__libc_pvalloc): Likewise.
4698         (__libc_calloc): Likewise.
4699         (__posix_memalign): Likewise.
4700
4701         [BZ #14996]
4702         * math/s_casinh.c: Include <float.h>.
4703         (__casinh): Do not do computation with squaring and square root
4704         for large arguments.
4705         * math/s_casinhf.c: Include <float.h>.
4706         (__casinhf): Do not do computation with squaring and square root
4707         for large arguments.
4708         * math/s_casinhl.c: Include <float.h>.
4709         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
4710         (__casinhl): Do not do computation with squaring and square root
4711         for large arguments.
4712         * math/libm-test.inc (casin_test): Add more tests.
4713         (casinh_test): Likewise.
4714         * sysdeps/i386/fpu/libm-test-ulps: Update.
4715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4716
4717 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
4718
4719         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
4720         (__x86_64_raw_data_cache_size): Likewise.
4721         (__x86_64_data_cache_size_half): Likewise.
4722         (__x86_64_raw_data_cache_size_half): Likewise.
4723         (__x86_64_shared_cache_size): Likewise.
4724         (__x86_64_raw_shared_cache_size): Likewise.
4725         (__x86_64_shared_cache_size_half): Likewise.
4726         (__x86_64_raw_shared_cache_size_half): Likewise.
4727         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
4728         to ...
4729         (__x86_data_cache_size): This.
4730         (__x86_64_raw_data_cache_size): Renamed to ...
4731         (__x86_raw_data_cache_size): This.
4732         (__x86_64_data_cache_size_half): Renamed to ...
4733         (__x86_data_cache_size_half): This.
4734         (__x86_64_raw_data_cache_size_half): Renamed to ...
4735         (__x86_raw_data_cache_size_half): This.
4736         (__x86_64_shared_cache_size): Renamed to ...
4737         (__x86_shared_cache_size): This.
4738         (__x86_64_raw_shared_cache_size): Renamed to ...
4739         (__x86_raw_shared_cache_size): This.
4740         (__x86_64_shared_cache_size_half): Renamed to ...
4741         (__x86_shared_cache_size_half): This.
4742         (__x86_64_raw_shared_cache_size_half): Renamed to ...
4743         (__x86_raw_shared_cache_size_half): This.
4744         * sysdeps/x86_64/memcpy.S: Updated.
4745         * sysdeps/x86_64/memset.S: Likewise.
4746         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4747         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4748         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4749
4750 2013-01-04  David S. Miller  <davem@davemloft.net>
4751
4752         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4753
4754 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
4755
4756         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
4757         1 to avoid redefinition warning.
4758         (__USE_GNU): Don't define.
4759         (init_signaling_nan): Protoize.
4760
4761         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4762
4763 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4764
4765         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
4766         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
4767         (__cpymn): Likewise.
4768         (norm): Remove commented code.
4769         (denorm): Likewise.
4770         (__mp_dbl): Likewise.
4771         (__inv): Likewise.
4772         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
4773         (__cpymn): Likewise.
4774         (norm): Remove commented code.
4775         (denorm): Likewise.
4776         (__mp_dbl): Likewise.
4777         (__inv): Likewise.
4778
4779         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
4780         mp_no value for 1.0 and 2.0.
4781         (norm): Use RADIXI instead of radixi.d.
4782         (denorm): Likewise.
4783         (__mul): Use 0.0 instead of zero.d.
4784         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
4785         mp_no value for 1.0 and 2.0.
4786         (norm): Use RADIXI instead of radixi.d.
4787         (denorm): Likewise.
4788         (__mul): Use 0.0 instead of zero.d.
4789
4790 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
4791
4792         [BZ #14994]
4793         * math/s_casinh.c (__casinh): Reduce finite argument to first
4794         quadrant then set signs of results at the end.
4795         * math/s_casinhf.c (__casinhf): Likewise.
4796         * math/s_casinhl.c (__casinhl): Likewise.
4797         * math/libm-test.inc (casin_test): Add more tests.
4798         (casinh_test): Likewise.
4799         * sysdeps/i386/fpu/libm-test-ulps: Update.
4800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4801
4802 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4803
4804         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
4805
4806         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
4807
4808         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
4809         declarations.
4810         (denorm): Likewise.
4811         (__mp_dbl): Likewise.
4812         (__inv): Likewise.
4813
4814         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
4815         and adjust the header comment.
4816
4817         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
4818         variable name from declaration.
4819
4820 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
4821
4822         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4823         Initialize COMMON_CPUID_INDEX_7 element.
4824         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
4825         (CPUID_RTM): Likewise.
4826         (HAS_RTM): Likewise.
4827         (COMMON_CPUID_INDEX_7): New enum.
4828
4829 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
4830
4831         [BZ #14981]
4832         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
4833         size is zero, record memory as freed.
4834
4835 2013-01-03  Andreas Jaeger  <aj@suse.de>
4836
4837         * po/ia.po: Add new Interlingua translation.
4838
4839 2012-01-03  Allan McRae  <allan@archlinux.org>
4840
4841         * locale/programs/localedef.c: Fix description of '--posix' flag.
4842
4843 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
4844
4845         * NEWS: Update dates in second copyright notice.
4846         * README: Update copyright dates in example.
4847         * manual/libc.texinfo: Update copyright dates.
4848         * scripts/test-installation.pl: Update copyright date in --version
4849         output.
4850
4851         * hurd/ctty-input.c: Fix copyright notice formatting.
4852         * hurd/ctty-output.c: Likewise.
4853         * hurd/dtable.c: Likewise.
4854         * hurd/hurd-raise.c: Likewise.
4855         * hurd/hurdprio.c: Likewise.
4856         * hurd/msgportdemux.c: Likewise.
4857         * misc/sys/file.h: Likewise.
4858         * misc/sys/ioctl.h: Likewise.
4859         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
4860         * sysdeps/mach/hurd/chdir.c: Likewise.
4861         * sysdeps/mach/hurd/fchdir.c: Likewise.
4862         * sysdeps/mach/hurd/rename.c: Likewise.
4863         * sysdeps/mach/hurd/rmdir.c: Likewise.
4864         * sysdeps/mach/hurd/seekdir.c: Likewise.
4865         * sysdeps/mach/hurd/setsid.c: Likewise.
4866         * sysdeps/posix/wait3.c: Likewise.
4867
4868         * All files with FSF copyright notices: Update copyright dates
4869         using scripts/update-copyrights.
4870         * intl/plural.c: Regenerated.
4871         * locale/programs/charmap-kw.h: Likewise.
4872         * locale/programs/locfile-kw.h: Likewise.
4873
4874 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
4875
4876         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
4877         four values.
4878
4879         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
4880         calculation loop and add branch prediction.
4881
4882         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
4883         check access beyond bounds of m1np.
4884
4885         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4886         MPTWO.
4887         (__inv): Remove local variable MPTWO to use the global
4888         constant.
4889         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
4890         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4891         variable MPTWO.
4892         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
4893         MP3HALFS static const.
4894
4895 2013-01-01  David S. Miller  <davem@davemloft.net>
4896
4897         * po/ca.po: Update from translation team.
4898
4899 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
4900
4901         * scripts/update-copyrights: New file.
4902         * Makeconfig: Reformat copyright notice.
4903         * ctype/ctype.h: Likewise.
4904         * debug/swprintf_chk.c: Likewise.
4905         * elf/dl-cache.c: Likewise.
4906         * elf/dl-debug.c: Likewise.
4907         * elf/dl-object.c: Likewise.
4908         * grp/initgroups.c: Likewise.
4909         * hurd/Makefile: Likewise.
4910         * hurd/hurd/signal.h: Likewise.
4911         * hurd/hurdfault.c: Likewise.
4912         * hurd/hurdioctl.c: Likewise.
4913         * hurd/hurdlookup.c: Likewise.
4914         * hurd/intr-msg.c: Likewise.
4915         * iconv/gconv_open.c: Likewise.
4916         * libio/swprintf.c: Likewise.
4917         * locale/lc-ctype.c: Likewise.
4918         * locale/nl_langinfo.c: Likewise.
4919         * mach/Machrules: Likewise.
4920         * mach/Makefile: Likewise.
4921         * malloc/obstack.h: Likewise.
4922         * manual/Makefile: Likewise.
4923         * manual/tsort.awk: Likewise.
4924         * misc/bits/stab.def: Likewise.
4925         * nis/nis_print_group_entry.c: Likewise.
4926         * nis/nis_table.c: Likewise.
4927         * nis/nss_compat/compat-pwd.c: Likewise.
4928         * nis/nss_compat/compat-spwd.c: Likewise.
4929         * po/Makefile: Likewise.
4930         * posix/fnmatch.c: Likewise.
4931         * posix/regex.h: Likewise.
4932         * resolv/Makefile: Likewise.
4933         * resolv/nss_dns/dns-network.c: Likewise.
4934         * resolv/res_hconf.c: Likewise.
4935         * scripts/gen-sorted.awk: Likewise.
4936         * soft-fp/soft-fp.h: Likewise.
4937         * stdio-common/printf.h: Likewise.
4938         * stdlib/monetary.h: Likewise.
4939         * stdlib/random.c: Likewise.
4940         * stdlib/random_r.c: Likewise.
4941         * sysdeps/generic/Makefile: Likewise.
4942         * sysdeps/gnu/Makefile: Likewise.
4943         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4944         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4945         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4946         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4947         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4948         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4949         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4950         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4951         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4952         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4953         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4954         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4955         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4956         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4957         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4958         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4959         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4960         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4961         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4962         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4963         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4964         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4965         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4966         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
4967         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
4968         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
4969         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4970         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
4971         * sysdeps/mach/hurd/errnos.awk: Likewise.
4972         * sysdeps/mach/hurd/fork.c: Likewise.
4973         * sysdeps/mach/hurd/getcwd.c: Likewise.
4974         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
4975         * sysdeps/mach/hurd/mmap.c: Likewise.
4976         * sysdeps/mach/hurd/utimes.c: Likewise.
4977         * sysdeps/mach/hurd/xmknod.c: Likewise.
4978         * sysdeps/posix/profil.c: Likewise.
4979         * sysdeps/posix/readdir_r.c: Likewise.
4980         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4981         * sysdeps/powerpc/bits/setjmp.h: Likewise.
4982         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
4983         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4984         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4985         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4986         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4987         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4988         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4989         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4990         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4991         * sysdeps/pthread/lio_listio.c: Likewise.
4992         * sysdeps/sparc/dl-procinfo.h: Likewise.
4993         * sysdeps/unix/i386/sysdep.S: Likewise.
4994         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4995         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
4996         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4997         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4999         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
5000         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
5001         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5002         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
5003         * sysdeps/wordsize-32/divdi3.c: Likewise.
5004         * time/sys/time.h: Likewise.
5005         * wcsmbs/Makefile: Likewise.
5006
5007 2013-01-01  David S. Miller  <davem@davemloft.net>
5008
5009         * po/fr.po: Update from translation team.
5010
5011         * catgets/gencat.c: Update copyright year.
5012         * csu/version.c: Likewise.
5013         * debug/catchsegv.sh: Likewise.
5014         * debug/pcprofiledump.c: Likewise.
5015         * debug/xtrace.sh: Likewise.
5016         * elf/ldconfig.c: Likewise.
5017         * elf/ldd.bash.in: Likewise.
5018         * elf/pldd.c: Likewise.
5019         * elf/sotruss.ksh: Likewise.
5020         * elf/sprof.c: Likewise.
5021         * iconv/iconv_prog.c: Likewise.
5022         * iconv/iconvconfig.c: Likewise.
5023         * locale/programs/locale.c: Likewise.
5024         * locale/programs/localedef.c: Likewise.
5025         * login/programs/pt_chown.c: Likewise.
5026         * malloc/memusage.sh: Likewise.
5027         * malloc/memusagestat.c: Likewise.
5028         * malloc/mtrace.pl: Likewise.
5029         * nscd/nscd.c: Likewise.
5030         * nss/getent.c: Likewise.
5031         * nss/makedb.c: Likewise.
5032         * posix/getconf.c: Likewise.
5033
5034 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5035
5036         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
5037         numbers.
5038
5039 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
5040
5041         * math/bits/mathcalls.h (modf): Use __nonnull.
5042
5043 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5044
5045         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
5046         (split): Use macro CN instead of the bare value.
5047         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
5048         could be used.
5049         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
5050         instead of the bare value.
5051         (power1): Likewise.
5052
5053 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5054
5055         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
5056         __ATAN_TWOM.
5057         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5058
5059         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
5060         their values.
5061         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
5062         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5063         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
5064         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
5065
5066 2012-12-28  Andreas Jaeger  <aj@suse.de>
5067
5068         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
5069         values are from Linux 3.7.
5070
5071         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
5072         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
5073
5074 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5075
5076         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
5077         TRUE case.
5078
5079         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
5080         (norm): Likewise.
5081         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
5082         variables with preprocessor constants.
5083         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
5084         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
5085         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
5086
5087 2012-12-27  Bruno Haible  <bruno@clisp.org>
5088
5089         [BZ #14317]
5090         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
5091         only if needed.
5092
5093 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5094
5095         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
5096         and use variable directly.
5097         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
5098
5099         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
5100         MPONE.
5101         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
5102         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
5103         variable MPONE.
5104         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5105         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5106         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
5107         include directive.  Remove local variable MPONE.
5108         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
5109         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
5110         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
5111
5112 2012-12-25  David S. Miller  <davem@davemloft.net>
5113
5114         * version.h (RELEASE): Set to "development".
5115         (VERSION): Set to "2.17.90".
5116         * NEWS: Add 2.18 section.
5117
5118 2012-12-21  David S. Miller  <davem@davemloft.net>
5119
5120         * po/hr.po: Update from translation team.
5121
5122 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5123
5124         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5125
5126 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5127
5128         * NEWS:  Mention new memcpy for MIPS.
5129
5130 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5131
5132         * manual/contrib.texi (Contributors): Spelling correction.
5133
5134 2012-12-15  David S. Miller  <davem@davemloft.net>
5135
5136         * po/ru.po: Update from translation team.
5137
5138 2012-12-13  David S. Miller  <davem@davemloft.net>
5139
5140         * NEWS: Mention IFUNC testsuite enhancements.
5141
5142         * po/pl.po: Update from translation team.
5143         * po/bg.po: Likewise.
5144
5145         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5146         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5147
5148 2012-12-11  David S. Miller  <davem@davemloft.net>
5149
5150         * po/sv.po: Update from translation team.
5151
5152         * po/vi.po: Update from translation team.
5153
5154         * po/cs.po: Update from translation team.
5155
5156         * po/de.po: Update from translation team.
5157         * po/eo.po: Likewise.
5158         * po/nl.po: Likewise.
5159
5160 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5161
5162         [BZ #14246]
5163         * manual/argp.texi (Argp Helper Functions): Move node to follow
5164         Argp Parsing State.
5165
5166         [BZ #14872]
5167         * manual/conf.texi (Limits on File System Capacity): Mention if
5168         terminating null is included in the max size.
5169
5170 2012-12-10  Andreas Jaeger  <aj@suse.de>
5171
5172         * po/cs.po: Update from translation team.
5173
5174 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5175
5176         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5177         void pointer and cast to uintptr_t.
5178         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5179         path.
5180         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5181         * sysdeps/s390/s390-64/memset.S: Likewise.
5182
5183 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5184
5185         [BZ #14833]
5186         * menual/message.texi (Message Translation): Fix typos.
5187         (Helper programs for gettext): Likewise.
5188
5189 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5190
5191         [BZ #14898]
5192         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5193         Change to -1.
5194
5195 2012-12-07  David S. Miller  <davem@davemloft.net>
5196
5197         * po/libc.pot: Update.
5198
5199 2012-12-07  Richard Henderson  <rth@redhat.com>
5200
5201         [BZ #10114]
5202         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5203         normal/normal case to before the switch.
5204         (_FP_DIV): Likewise.
5205
5206 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5207             Mike Frysinger  <vapier@gentoo.org>
5208
5209         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5210         check for __NR_fadvise64_64.
5211
5212 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5213
5214         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5215         0, not just to plain "0" as a statement.
5216         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5217         with cw.
5218
5219 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5220
5221         * NEWS: Use sourceware.org in Bugzilla URL.
5222
5223 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5224
5225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5226         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5227
5228         * stdio-common/tst-put-error.c (do_test): Add newline to the
5229         padded test to ensure flush.
5230
5231 2012-12-05  Jeff Law  <law@redhat.com>
5232
5233         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5234
5235 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5236
5237         * README: Don't refer to ports add-on as distributed separately.
5238         Mention AArch64 in list of systems supported in the ports add-on.
5239
5240         * LICENSES: Add more non-FSF copyright and license notices.
5241
5242         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5243         ((unused)).
5244
5245         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5246
5247         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5248         10000 as width of padded output.
5249
5250 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5251
5252         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5253
5254         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5255         variable LX with __attribute__ ((unused)).
5256         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5257         Likewise.
5258         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5259         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5260         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5261         with __attribute__ ((unused)).
5262
5263 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5264
5265         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5266
5267 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5268
5269         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5270         (CFLAGS-nldbl-acos.c): New variable.
5271         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5272         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5273         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5274         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5275         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5276         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5277         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5278         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5279         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5280         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5281         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5282         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5283         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5284         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5285         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5286         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5287         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5288         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5289         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5290         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5291         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5292         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5293         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5294         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5295         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5296         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5297         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5298         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5299         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5300         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5301         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5302         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5303         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5304         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5305         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5306         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5307         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5308         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5309         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5310         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5311         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5312         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5313         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5314         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5315         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5316         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5317         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5318         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5319         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5320         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5321         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5322         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5323         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5324         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5325         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5326         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5327         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5328         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5329         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5330         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5331         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5332         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5333         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5334         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5335         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5336         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5337         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5338         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5339         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5340         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5341         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5342         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
5343         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
5344         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
5345         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
5346         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
5347         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
5348         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
5349         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
5350         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
5351         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
5352         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
5353         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
5354         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
5355         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
5356         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
5357         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
5358         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
5359         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
5360         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
5361         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
5362         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
5363         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
5364         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
5365         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
5366         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
5367         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
5368
5369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5370         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5371
5372         [BZ #14914]
5373         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
5374         whole low double instead of just low 47 bits when splitting values
5375         into two parts.
5376
5377 2012-12-03  Allan McRae  <allan@archlinux.org>
5378
5379         * manual/stdio.texi (Predefined Printf Handlers): Remove
5380         @hsep and @vsep usage.
5381
5382 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
5383
5384         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
5385         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
5386
5387 2012-12-03  Jeff Law  <law@redhat.com>
5388
5389         * time/sys/time.h (settimeofday): Do not mark TV argument
5390         as __nonnull.
5391
5392 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
5393
5394         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
5395         when currently writing and seek to current position when not.
5396         * libio/Makefile (tests): Remove bug-fclose1.
5397         * libio/bug-fclose1.c: Delete.
5398
5399 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
5400
5401         * manual/arith.texi (feenableexcept): Fix typo.
5402         (fedisableexcept): Likewise.
5403
5404 2012-11-30  Roland McGrath  <roland@hack.frob.com>
5405
5406         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
5407         second, differently-typed declaration, rather than a cast.
5408
5409 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5410
5411         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
5412         * include/rpc/svc.h: ... here.
5413
5414 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
5415
5416         [BZ #13013]
5417         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
5418         depending n and resplen2 to catch cases where answer
5419         equals answerp2.
5420
5421 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
5422
5423         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
5424         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
5425
5426 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
5427
5428         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
5429
5430 2012-11-29  Roland McGrath  <roland@hack.frob.com>
5431
5432         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
5433
5434 2012-11-28  Jeff Law  <law@redhat.com>
5435
5436         [BZ #13761]
5437         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
5438         dataset_temporary.  Track alloca usage into alloca_used.
5439         If dataset is large allocate and release it via malloc/free.
5440
5441 2012-06-04  Florian Weimer  <fweimer@redhat.com>
5442
5443         [BZ #14197]
5444         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
5445
5446 2012-11-28  David S. Miller  <davem@davemloft.net>
5447
5448         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5449
5450 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5451
5452         [BZ #14803]
5453         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
5454         of pi/2 rounded to nearest to 64 bits.
5455         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
5456         nearest to 64 bits.
5457         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
5458         bits.
5459
5460 2012-11-28  Jeff Law <law@redhat.com>
5461             Martin Osvald <mosvald@redhat.com>
5462
5463         [BZ #14889]
5464         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
5465         * sunrpc/svc.c: Include time.h.
5466         (__svc_accept_failed): New function.
5467         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
5468         any reason other than EINTR, call __svc_accept_failed.
5469         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
5470         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
5471
5472 2012-11-28  Andreas Schwab  <schwab@suse.de>
5473
5474         * scripts/abilist.awk: Also handle indirect functions in .opd
5475         section.
5476
5477 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5478
5479         [BZ #13881]
5480         * sysdeps/x86/fpu/powl_helper.c: New file.
5481         * sysdeps/x86/fpu/Makefile: Likewise.
5482         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
5483         (p3): New object.
5484         (__ieee754_powl): Use __powl_helper for finite arguments except
5485         integer exponents below 8.
5486         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
5487         (p3): New object.
5488         (__ieee754_powl): Use __powl_helper for finite arguments except
5489         integer exponents below 8.
5490         * math/libm-test.inc (pow_test): Add more tests and enable some
5491         previously disabled tests.
5492         * sysdeps/i386/fpu/libm-test-ulps: Update.
5493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5494
5495 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5496             Carlos O'Donell  <carlos_odonell@mentor.com>
5497
5498         * nss/makedb.c (is_prime): Assert that input is odd and greater
5499         than 4.  Note that fact in a comment too.
5500         (next_prime): Add 4 to input.
5501
5502 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5503
5504         [BZ #11741]
5505         * libio/Makefile (tests): Add test case tst-fwrite-error.
5506         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
5507         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5508         * libio/tst-fwrite-error.c: New test case.
5509
5510 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
5511
5512         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
5513         before casting to void *.
5514         * include/libc-internal.h (__pointer_type): New macro.
5515         (__integer_if_pointer_type_sub): Likewise.
5516         (__integer_if_pointer_type): Likewise.
5517         (cast_to_integer): Likewise.
5518         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
5519         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
5520         before casting to atomic64_t.
5521         (atomic_exchange_acq): Likewise.
5522         (__arch_exchange_and_add_body): Likewise.
5523         (__arch_add_body): Likewise.
5524         (atomic_add_negative): Likewise.
5525         (atomic_add_zero): Likewise.
5526
5527 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
5528
5529         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
5530         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
5531         (add_fdes): Likewise.
5532         (linear_search_fdes): Likewise.
5533         (binary_search_unencoded_fdes): Likewise.
5534
5535 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
5536
5537         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
5538
5539 2012-11-24  Adam Conrad  <adconrad@0c3.net>
5540
5541         * configure.in: Autodetect C++ header directories.
5542         * configure: Regenerated.
5543
5544 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
5545
5546         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
5547
5548 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
5549
5550         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5551
5552 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
5553
5554         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
5555         LDBL_MANT_DIG == 106]: Disable some tests.
5556         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5557         Likewise.
5558         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5559         Likewise.
5560
5561         [BZ #14871]
5562         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
5563         input for small inputs.  Return +/- pi/2 for large inputs.
5564         * math/libm-test.inc (atan_test): Add more tests.
5565
5566         * sysdeps/generic/unwind-dw2-fde-glibc.c
5567         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
5568         __attribute__ ((unused)).
5569
5570         [BZ #14645]
5571         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
5572         x * y if x and y are nonzero and z is zero.
5573
5574         [BZ #14811]
5575         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
5576         nonzero exponents with absolute value below 0x1p-117 to +/-
5577         0x1p-117.
5578
5579         [BZ #14869]
5580         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
5581         up arguments below 2**-450, not just those below 2**-500.
5582         * math/libm-test.inc (hypot_test): Add another test.
5583
5584         [BZ #14868]
5585         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
5586         Return a+b for ratio over 2**120, not 2**60.
5587         * math/libm-test.inc (hypot_test): Add another test.
5588
5589         * math/libm-test.inc (clog_test): Use
5590         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
5591         (clog10_test): Likewise.
5592
5593         [BZ #6778]
5594         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
5595
5596 2012-11-22  Andreas Schwab  <schwab@suse.de>
5597
5598         * sysdeps/i386/fpu/libm-test-ulps: Update.
5599
5600 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
5601
5602         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
5603         printf output with newline.
5604
5605 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
5606
5607         [BZ #14865]
5608         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
5609         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
5610         -z nodlopen, -z initfirst and -z execstack support.
5611         * configure: Regenerated.
5612
5613         * elf/elf.h (DF_1_NODIRECT): New macro.
5614         (DF_1_IGNMULDEF): Likewise.
5615         (DF_1_NOKSYMS): Likewise.
5616         (DF_1_NOHDR): Likewise.
5617         (DF_1_EDITED): Likewise.
5618         (DF_1_NORELOC): Likewise.
5619         (DF_1_SYMINTPOSE): Likewise.
5620         (DF_1_GLOBAUDIT): Likewise.
5621         (DF_1_SINGLETON): Likewise.
5622         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
5623         DT_1_SUPPORTED_MASK bits.
5624         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
5625
5626 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
5627
5628         * sysdeps/unix/make-syscalls.sh: Document prefixes.
5629
5630 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
5631
5632         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
5633         macro.
5634
5635         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
5636         (sendmmsg): Move declarations...
5637         * socket/sys/socket.h: ... here.
5638         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
5639         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
5640         include it from...
5641         * socket/recvmmsg.c: ... this new file.
5642         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
5643         (sendmmsg): Rename to __sendmmsg, create weak alias and make
5644         definition of __sendmmsg hidden.
5645         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
5646         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
5647         Move ENOSYS stub into and include it from...
5648         * socket/sendmmsg.c: ... this new file.
5649         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
5650         (sysdep_routines): Move recvmmsg and sendmmsg...
5651         * socket/Makefile (routines): ... here.
5652         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
5653         (GLIBC_PRIVATE): Add __sendmmsg.
5654         * include/sys/socket.h (__sendmmsg): Add declarations.
5655         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
5656         sendmmsg.
5657
5658 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
5659
5660         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
5661         variable I1 with __attribute__ ((unused)).
5662         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5663
5664 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5665
5666         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
5667         DUMMY variables with __attribute__ ((unused)).
5668
5669         * bits/byteswap.h: Include <bits/types.h>.
5670         (__bswap_64): Use __uint64_t instead of unsigned long long int.
5671
5672 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5673
5674         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
5675         string_t.  Do not manually set errno.
5676         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
5677         length with __strnlen.  Make sure to both set errno and return it on
5678         failure.
5679
5680 2012-11-19  David S. Miller  <davem@davemloft.net>
5681
5682         With help from Joseph Myers.
5683         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
5684         very large arguments properly.
5685         * math/libm-test.inc (atan_test): New tests.
5686         (atan2_test): New tests.
5687         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5688         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5689
5690 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5691
5692         [BZ #14856]
5693         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
5694         Define to 3.
5695
5696         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
5697         [POSIX] (EADDRNOTAVAIL): Likewise.
5698         [POSIX] (EAFNOSUPPORT): Likewise.
5699         [POSIX] (EALREADY): Likewise.
5700         [POSIX] (ECONNABORTED): Likewise.
5701         [POSIX] (ECONNREFUSED): Likewise.
5702         [POSIX] (ECONNRESET): Likewise.
5703         [POSIX] (EDESTADDRREQ): Likewise.
5704         [POSIX] (EDQUOT): Likewise.
5705         [POSIX] (EHOSTUNREACH): Likewise.
5706         [POSIX] (EIDRM): Likewise.
5707         [POSIX] (EISCONN): Likewise.
5708         [POSIX] (ELOOP): Likewise.
5709         [POSIX] (EMULTIHOP): Likewise.
5710         [POSIX] (ENETDOWN): Likewise.
5711         [POSIX] (ENETUNREACH): Likewise.
5712         [POSIX] (ENOBUFS): Likewise.
5713         [POSIX] (ENODATA): Likewise.
5714         [POSIX] (ENOLINK): Likewise.
5715         [POSIX] (ENOMSG): Likewise.
5716         [POSIX] (ENOPROTOOPT): Likewise.
5717         [POSIX] (ENOSR): Likewise.
5718         [POSIX] (ENOSTR): Likewise.
5719         [POSIX] (ENOTCONN): Likewise.
5720         [POSIX] (ENOTSOCK): Likewise.
5721         [POSIX] (EOPNOTSUPP): Likewise.
5722         [POSIX] (EOVERFLOW): Likewise.
5723         [POSIX] (EPROTO): Likewise.
5724         [POSIX] (EPROTONOSUPPORT): Likewise.
5725         [POSIX] (EPROTOTYPE): Likewise.
5726         [POSIX] (ESTALE): Likewise.
5727         [POSIX] (ETIME): Likewise.
5728         [POSIX] (ETXTBSY): Likewise.
5729         [POSIX] (EWOULDBLOCK): Likewise.
5730         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
5731         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
5732         [POSIX] (SEEK_CUR): Likewise.
5733         [POSIX] (SEEK_END): Likewise.
5734         [POSIX || UNIX98] (mode_t): Do not require.
5735         [POSIX] (off_t): Likewise.
5736         [POSIX] (pid_t): Likewise.
5737         [POSIX] (sys/stat.h): Do not allow header.
5738         [POSIX] (unistd.h): Likewise.
5739         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
5740         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
5741         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
5742         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
5743         require.
5744         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
5745         sigevent): Specify elements.
5746         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
5747         entry.
5748         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
5749         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
5750
5751         * conform/data/cpio.h-data [POSIX]: Disable whole file.
5752         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
5753         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
5754         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
5755         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
5756         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
5757         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
5758         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
5759         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
5760         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
5761         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
5762         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
5763         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
5764         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
5765         Likewise.
5766         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
5767         Likewise.
5768         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
5769         Likewise.
5770         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
5771         Likewise.
5772         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
5773         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
5774         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
5775         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
5776         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
5777         Specify lower bound on value.
5778         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
5779         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
5780         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
5781         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
5782         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
5783         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
5784         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
5785         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
5786         value.
5787         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
5788         as optional.
5789         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
5790         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
5791         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
5792         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
5793         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
5794         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
5795         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
5796         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
5797         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
5798         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
5799         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
5800         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
5801         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
5802         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
5803         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
5804         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
5805         entry.
5806         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
5807         optional.
5808         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
5809         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
5810         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
5811         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
5812         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
5813         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
5814         Likewise.
5815         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
5816         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
5817         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
5818         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
5819         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
5820         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
5821         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
5822         as optional.
5823         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
5824         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
5825         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
5826         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
5827         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
5828         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
5829         specify as optional.
5830         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
5831         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
5832         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
5833         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
5834         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
5835         [XPG3] (NL_LANGMAX): Likewise.
5836         [POSIX || XPG3] (NL_MSGMAX): Likewise.
5837         [POSIX || XPG3] (NL_NMAX): Likewise.
5838         [POSIX || XPG3] (NL_SETMAX): Likewise.
5839         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
5840         [XPG3] (NZERO): Likewise.
5841         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
5842         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
5843         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
5844         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
5845         (REG_ERANGE): Expect.
5846         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
5847         optional-constant.
5848         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
5849         Use (void) in prototype.
5850         [POSIX] (*_t): Allow.
5851         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
5852         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
5853         (WRDE_BADVAL): Expect.
5854
5855         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
5856         expect.
5857         [XPG3 || XPG4] (O_RSYNC): Likewise.
5858         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
5859         Likewise.
5860         [XPG3 || XPG4] (pthread_sigmask): Likewise.
5861         [XPG3 || XPG4] (sigqueue): Likewise.
5862         [XPG3 || XPG4] (sigtimedwait): Likewise.
5863         [XPG3 || XPG4] (sigwaitinfo): Likewise.
5864         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
5865         [XPG3 || XPG4] (vsnprintf): Likewise.
5866         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
5867         Likewise.
5868         [XPG3 || XPG4] (blksize_t): Likewise.
5869         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
5870         Likewise.
5871         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
5872         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
5873         [XPG3 || XPG4] (struct itimerspec): Likewise.
5874         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
5875         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
5876         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
5877         [XPG3 || XPG4] (clockid_t): Likewise.
5878         [XPG3 || XPG4] (timer_t): Likewise.
5879         [XPG3 || XPG4] (clock_getres): Likewise.
5880         [XPG3 || XPG4] (clock_gettime): Likewise.
5881         [XPG3 || XPG4] (clock_settime): Likewise.
5882         [XPG3 || XPG4] (nanosleep): Likewise.
5883         [XPG3 || XPG4] (timer_create): Likewise.
5884         [XPG3 || XPG4] (timer_delete): Likewise.
5885         [XPG3 || XPG4] (timer_gettime): Likewise.
5886         [XPG3 || XPG4] (timer_getoverrun): Likewise.
5887         [XPG3 || XPG4] (timer_settime): Likewise.
5888         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
5889         [XPG3 || XPG4] (getlogin_r): Likewise.
5890         [XPG3 || XPG4] (pread): Likewise.
5891         [XPG3 || XPG4] (pthread_atfork): Likewise.
5892         [XPG3 || XPG4] (pwrite): Likewise.
5893
5894         [BZ #14835]
5895         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
5896         <bits/siginfo.h>.
5897
5898 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5899
5900         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
5901         finalizing MALLSTREAM.
5902
5903         * sysdeps/mach/hurd/syncfs.c: New file.
5904
5905 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5906
5907         [BZ #14719]
5908         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
5909         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
5910         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
5911         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
5912         (_nss_dns_gethostbyname4_r): Likewise.
5913         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
5914         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
5915
5916 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
5917
5918         [BZ #13763]
5919         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
5920
5921 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
5922
5923         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
5924         * elf/cache.c (print_entry): Print ",AArch64" for
5925         FLAG_AARCH64_LIB64
5926
5927         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
5928         * elf/cache.c (print_entry): Print ",hard-float" for
5929         FLAG_ARM_LIBHF.
5930
5931 2012-11-18  David S. Miller  <davem@davemloft.net>
5932
5933         With help from Joseph Myers.
5934         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
5935         cutoff to 2**-13.
5936         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
5937         cutoff to 2**-25.
5938         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
5939         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
5940         small.
5941         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
5942         * math/libm-test.inc (y0_test): New tests.
5943         (y1_test): New tests.
5944         * sysdeps/i386/fpu/libm-test-ulps: Update.
5945         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5947
5948 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
5949
5950         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
5951         64-bit targets.
5952         * configure: Regenerated.
5953
5954 2012-11-17  David S. Miller  <davem@davemloft.net>
5955
5956         [BZ #14811]
5957         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
5958         nonzero exponents with absolute value below 0x1p-128 to +/-
5959         0x1p-128.
5960
5961 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
5962
5963         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
5964
5965         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
5966
5967         * posix/getconf-speclist.c: New file.
5968         * posix/posix-envs.def: Likewise.
5969         * posix/confstr.c (START_ENV_GROUP): New macro.
5970         (END_ENV_GROUP): Likewise.
5971         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5972         (KNOWN_PRESENT_ENV_STRING): Likewise.
5973         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5974         (UNKNOWN_ENVIRONMENT): Likewise.
5975         (confstr): Include posix-envs.def instead of handling
5976         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
5977         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
5978         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
5979         (END_ENV_GROUP): Likewise.
5980         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5981         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5982         (UNKNOWN_ENVIRONMENT): Likewise.
5983         (__sysconf): Include posix-envs.def instead of handling associated
5984         cases directly here.
5985         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
5986         preprocessing getconf-speclist.c rather than running getconf or
5987         generating empty file.
5988
5989 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
5990
5991         * scripts/check-local-headers.sh: Ignore 'mach' headers.
5992
5993 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
5994
5995         [BZ #14672]
5996         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
5997
5998 2012-11-16  David S. Miller  <davem@davemloft.net>
5999
6000         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
6001         smaller than LDBL_EPSILON/2.0L, just return xm1.
6002
6003 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
6004
6005         * elf/tst-array1.c (init): Set constructor priority to 1000.
6006         (fini): Set destructor priority to 1000.
6007         * elf/tst-array2dep.c: Likewise.
6008
6009 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6010
6011         [BZ #11741]
6012         * libio/fileops.c (_IO_new_file_write): Correctly return error.
6013         (_IO_new_file_xsputn): Also return EOF if none of the input
6014         data was written when overflow failed.
6015         * libio/iopadn.c (_IO_padn): Likewise.
6016         * libio/iowpadn.c (_IO_wpadn): Likewise.
6017         * stdio-common/tst-put-error.c: Add copyright notice.
6018         (do_test): Add case for printing padded string.
6019         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
6020         _IO_padn returned error.
6021         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
6022         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
6023         return EOF.
6024
6025 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6026
6027         * libio/libioP.h: Add comment note that the references to C++
6028         bits are now obsolete.
6029
6030 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6031
6032         * math/libm-test.inc (check_complex): Use asprintf.
6033
6034 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
6035
6036         * debug/pcprofiledump.c (print_version): Update copyright year.
6037         * malloc/memusagestat.c (print_version): Likewise.
6038
6039 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6040
6041         [BZ #14831]
6042         * elf/Makefile (tests): Add tst-audit8.
6043         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6044         ($(objpfx)tst-audit8.out): New target.
6045         (tst-audit8-ENV): New variable.
6046         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
6047         audit if l_reloc_result is NULL.
6048         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
6049         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
6050         * elf/tst-audit8.c: New file.
6051
6052 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6053
6054         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
6055         * misc/Makefile (CFLAGS-select.c): Define.
6056         * posix/Makefile (CFLAGS-pause.c): Define.
6057
6058 2012-11-13  David S. Miller  <davem@davemloft.net>
6059
6060         * crypt/Makefile: Move test targets after toplevel Rules
6061         inclusion.  Grab any necessary sysdep routines when linking.
6062         * crypt/md5.c (md5_process_block): Remove define, we will always
6063         name it __md5_process_block.
6064         (md5_finish_ctx): Update md5_process_block call.
6065         (md5_stream): Likewise.
6066         (md5_process_bytes): Likewise.
6067         (md5_process_block): Rename to __md5_process_block and move to ...
6068         * crypt/md5-block.c: ... here.
6069         * crypt/sha256.c (sha256_process_block): Move to ...
6070         * crypt/sha256-block.c: ... here.
6071         * crypt/sha512.c (sha512_process_block): Move to ...
6072         * crypt/sha512-block.c: ... here.
6073         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
6074         path.
6075         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
6076         * sysdeps/sparc/sparc64/multiarch/Makefile
6077         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
6078         crypt subdir.
6079         (localedef-aux): Add md5 crypto assembler when in locale subdir.
6080         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
6081         multiarch changes.
6082         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
6083         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
6084         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
6085         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
6086         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
6087         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
6088         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
6089         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
6090         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
6091         file.
6092         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
6093         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
6094         file.
6095         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
6096
6097 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
6098
6099         * timezone/tzselect.ksh: Update from tzcode git revision
6100         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
6101         * timezone/zdump.c: Likewise.
6102         * timezone/zic.c: Likewise.
6103         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
6104         in TZVERSION setting, not $(PKGVERSION).
6105         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
6106         REPORT_BUGS_TO settings.
6107
6108         [BZ #14838]
6109         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
6110         macro.
6111
6112 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6113
6114         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
6115         detection to immediately after _FP_ROUND().
6116         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
6117         bits are 0.
6118
6119 2012-11-11  David S. Miller  <davem@davemloft.net>
6120
6121         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6122         inttypes.h
6123         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6124         __close rather than their public counterparts.
6125
6126 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6127
6128         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6129         file.
6130         [UNIX98] (sem_timedwait): Do not expect.
6131         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6132         [XPG4 || UNIX98] (sockatmark): Do not expect.
6133         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6134         (clock_getcpuclockid): Do not expect.
6135         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6136         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6137         Do not expect.
6138         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6139         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6140         [UNIX98] (vwscanf): Likewise.
6141         [UNIX98] (vswscanf): Likewise.
6142
6143 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6144
6145         * timezone/version.h: Remove file.
6146         * timezone/README: Do not refer to version.h.
6147         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6148         $(objpfx)version.h.
6149         ($(objpfx)zdump.o): Likewise.
6150         ($(objpfx)version.h): New target.
6151
6152         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6153         2012i.
6154         * timezone/README: Don't mention modification to tzselect.ksh.
6155         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6156         work on unmodified tzselect.ksh.  Substitute version numbers in
6157         tzselect.ksh.
6158
6159         * Makefile (format-me): Remove.
6160         (INSTALL): Adjust indentation.  Use commands directly instead of
6161         using $(format-me).
6162
6163         * aclocal.m4 (ACX_PKGVERSION): New macro.
6164         (ACX_BUGURL): Likewise.
6165         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6166         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6167         (REPORT_BUGS_TO): Likewise.
6168         * configure: Regenerated.
6169         * config.h.in (PKGVERSION): New macro.
6170         (REPORT_BUGS_TO): Likewise.
6171         * config.make.in (PKGVERSION): New variable.
6172         (PKGVERSION_TEXI): Likewise.
6173         (REPORT_BUGS_TO): Likewise.
6174         (REPORT_BUGS_TEXI): Likewise.
6175         * Makefile (format-me): Use -I$(common-objpfx)manual.
6176         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6177         ($(common-objpfx)manual/%): New target.
6178         (manual/%): Remove target.
6179         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6180         (print_version): Use PKGVERSION.
6181         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6182         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6183         and REPORT_BUGS_TO.
6184         ($(objpfx)xtrace): Likewise.
6185         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6186         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6187         (print_version): Use PKGVERSION.
6188         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6189         (do_version): Use PKGVERSION.
6190         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6191         REPORT_BUGS_TO.
6192         (common-ldd-rewrite): Likewise.
6193         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6194         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6195         (print_version): Use PKGVERSION.
6196         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6197         * elf/pldd.c (argp_program_bug_address): Remove variable.
6198         (more_help): New function.
6199         (argp): Use more_help.
6200         (print_version): Use PKGVERSION.
6201         * elf/sln.c (main): Use PKGVERSION.
6202         (usage): Use REPORT_BUGS_TO.
6203         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6204         (top level): Use PKGVERSION.
6205         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6206         (print_version): Use PKGVERSION.
6207         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6208         (print_version): Use PKGVERSION.
6209         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6210         (print_version): Use PKGVERSION.
6211         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6212         (print_version): Use PKGVERSION.
6213         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6214         (print_version): Use PKGVERSION.
6215         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6216         (print_version): Use PKGVERSION.
6217         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6218         and BUGURL.
6219         ($(objpfx)memusage): Likewise.
6220         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6221         (do_version): Use PKGVERSION.
6222         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6223         (print_version): Use PKGVERSION.
6224         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6225         ($PKGVERSION): New variable.
6226         ($REPORT_BUGS_TO): Likewise.
6227         (usage): Use $REPORT_BUGS_TO.
6228         (top level): Use $PKGVERSION.
6229         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6230         ($(objpfx)pkgvers.texi): New rule.
6231         ($(objpfx)stamp-pkgvers): Likewise.
6232         * manual/install.texi: Include pkgvers.texi.
6233         (--with-pkgversion): Document new configure option.
6234         (--with-bugurl): Likewise.
6235         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6236         than necessarily for this particular distribution.  Use
6237         REPORT_BUGS_TO for where to report bugs.
6238         * INSTALL: Regenerated.
6239         * manual/libc.texinfo: Include pkgvers.texi.
6240         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6241         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6242         (print_version): Use PKGVERSION.
6243         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6244         (print_version): Use PKGVERSION.
6245         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6246         (print_version): Use PKGVERSION.
6247         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6248         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6249         macro.
6250         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6251         (print_version): Use PKGVERSION.
6252         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6253         (print_version): Use PKGVERSION.
6254         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6255         and PKGVERSION.
6256
6257         * timezone/checktab.awk: Update from tzcode 2012i.
6258         * timezone/ialloc.c: Likewise.
6259         * timezone/private.h: Likewise.
6260         * timezone/scheck.c: Likewise.
6261         * timezone/tzfile.h: Likewise.
6262         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6263         (TZVERSION): Hardcode tzcode version number.
6264         * timezone/zdump.c: Update from tzcode 2012i.
6265         * timezone/zic.c: Likewise.
6266         * timezone/version.h: New file.
6267         * timezone/README: Describe version.h.  Update upstream location.
6268
6269         [BZ #14824]
6270         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6271         (mktemp): Enable declaration.
6272         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6273         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6274         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6275         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6276         Likewise.
6277         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6278         Likewise.
6279         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6280         Likewise.
6281         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6282         Likewise.
6283         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6284         Likewise.
6285         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6286         Likewise.
6287
6288         [BZ #14821]
6289         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6290         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6291         for copies of such integer values.
6292         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6293         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6294
6295 2012-11-09  Andreas Jaeger  <aj@suse.de>
6296
6297         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6298         definitions and declarations that are provided by
6299         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6300
6301 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6302
6303         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6304         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6305         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6306         definition.
6307
6308 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6309
6310         * elf/elf.h: Update comment before AArch64 relocations.
6311
6312 2012-11-07  David S. Miller  <davem@davemloft.net>
6313
6314         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6315         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6316         (__start_context): Declare.
6317         (__makecontext_ret): Delete.
6318         (__makecontext): Hook up __start_context instead of
6319         __makecontext_ret.
6320         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6321         (sysdep_routines): Add __start_context when in stdlib.
6322
6323 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6324
6325         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6326         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6327         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6328         hardcoded "nm".
6329         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6330         (READELF): New variable.  Use it instead of hardcoded "readelf".
6331
6332 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6333
6334         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6335         * sysdeps/x86/Makefile: Here.
6336         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6337         * sysdeps/x86/tst-xmmymm.sh: This.
6338
6339 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6340
6341         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6342         expectations.
6343         [UNIX98] (pthread_barrier_t): Do not expect.
6344         [UNIX98] (pthread_barrierattr_t): Likewise.
6345         [UNIX98] (pthread_spinlock_t): Likewise.
6346         [UNIX98] (pthread_barrier_destroy): Likewise.
6347         [UNIX98] (pthread_barrier_init): Likewise.
6348         [UNIX98] (pthread_barrier_wait): Likewise.
6349         [UNIX98] (pthread_barrierattr_destroy): Likewise.
6350         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
6351         [UNIX98] (pthread_barrierattr_init): Likewise.
6352         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
6353         [UNIX98] (pthread_getcpuclockid): Likewise.
6354         [UNIX98] (pthread_mutex_timedlock): Likewise.
6355         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
6356         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
6357         [UNIX98] (pthread_sigmask): Likewise.
6358         [UNIX98] (pthread_spin_destroy): Likewise.
6359         [UNIX98] (pthread_spin_init): Likewise.
6360         [UNIX98] (pthread_spin_lock): Likewise.
6361         [UNIX98] (pthread_spin_trylock): Likewise.
6362         [UNIX98] (pthread_spin_unlock): Likewise.
6363         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
6364         Do not expect.
6365         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
6366         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
6367         [XPG3 || XPG4] (pthread_cond_t): Likewise.
6368         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
6369         [XPG3 || XPG4] (pthread_key_t): Likewise.
6370         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
6371         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
6372         [XPG3 || XPG4] (pthread_once_t): Likewise.
6373         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
6374         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
6375         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
6376         [XPG3 || XPG4] (pthread_t): Likewise.
6377
6378         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
6379         not expect.
6380         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
6381
6382         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
6383         Change function return type to int.
6384
6385         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
6386         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
6387         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
6388         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
6389         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
6390         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
6391         [!POSIX] (posix_madvise): Likewise.
6392         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
6393         && !UNIX98].
6394         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
6395         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
6396         (mode_t): Likewise.
6397         (posix_mem_offset): Likewise.
6398         (posix_typed_mem_get_info): Likewise.
6399         (posix_typed_mem_open): Likewise.
6400
6401         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
6402         Change condition to [XOPEN2K8].
6403
6404         * conform/conformtest.pl: Preprocess allow-header data with -x c
6405         instead of from stdin.
6406         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
6407         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
6408         [C99-based standards] (cerfc): Likewise.
6409         [C99-based standards] (cexp2): Likewise.
6410         [C99-based standards] (cexpm1): Likewise.
6411         [C99-based standards] (clog10): Likewise.
6412         [C99-based standards] (clog1p): Likewise.
6413         [C99-based standards] (clog2): Likewise.
6414         [C99-based standards] (clgamma): Likewise.
6415         [C99-based standards] (ctgamma): Likewise.
6416         [C99-based standards] (cerff): Likewise.
6417         [C99-based standards] (cerfcf): Likewise.
6418         [C99-based standards] (cexp2f): Likewise.
6419         [C99-based standards] (cexpm1f): Likewise.
6420         [C99-based standards] (clog10f): Likewise.
6421         [C99-based standards] (clog1pf): Likewise.
6422         [C99-based standards] (clog2f): Likewise.
6423         [C99-based standards] (clgammaf): Likewise.
6424         [C99-based standards] (ctgammaf): Likewise.
6425         [C99-based standards] (cerfl): Likewise.
6426         [C99-based standards] (cerfcl): Likewise.
6427         [C99-based standards] (cexp2l): Likewise.
6428         [C99-based standards] (cexpm1l): Likewise.
6429         [C99-based standards] (clog10l): Likewise.
6430         [C99-based standards] (clog1pl): Likewise.
6431         [C99-based standards] (clog2l): Likewise.
6432         [C99-based standards] (clgammal): Likewise.
6433         [C99-based standards] (ctgammal): Likewise.
6434         * conform/data/inttypes.h-data [C99-based standards]: Include
6435         stdint.h-data.  Remove all expectations for stdint.h contents.
6436         [C99-based standards] (PRI*): Do not allow.
6437         [C99-based standards] (SCN*): Likewise.
6438         [C99-based standards] (*_t): Likewise.
6439         [C99-based-standards] (PRId8): Expect macro.
6440         [C99-based-standards] (PRIi8): Likewise.
6441         [C99-based-standards] (PRIo8): Likewise.
6442         [C99-based-standards] (PRIu8): Likewise.
6443         [C99-based-standards] (PRIx8): Likewise.
6444         [C99-based-standards] (PRIX8): Likewise.
6445         [C99-based-standards] (SCNd8): Likewise.
6446         [C99-based-standards] (SCNi8): Likewise.
6447         [C99-based-standards] (SCNo8): Likewise.
6448         [C99-based-standards] (SCNu8): Likewise.
6449         [C99-based-standards] (SCNx8): Likewise.
6450         [C99-based-standards] (PRIdLEAST8): Likewise.
6451         [C99-based-standards] (PRIiLEAST8): Likewise.
6452         [C99-based-standards] (PRIoLEAST8): Likewise.
6453         [C99-based-standards] (PRIuLEAST8): Likewise.
6454         [C99-based-standards] (PRIxLEAST8): Likewise.
6455         [C99-based-standards] (PRIXLEAST8): Likewise.
6456         [C99-based-standards] (SCNdLEAST8): Likewise.
6457         [C99-based-standards] (SCNiLEAST8): Likewise.
6458         [C99-based-standards] (SCNoLEAST8): Likewise.
6459         [C99-based-standards] (SCNuLEAST8): Likewise.
6460         [C99-based-standards] (SCNxLEAST8): Likewise.
6461         [C99-based-standards] (PRIdFAST8): Likewise.
6462         [C99-based-standards] (PRIiFAST8): Likewise.
6463         [C99-based-standards] (PRIoFAST8): Likewise.
6464         [C99-based-standards] (PRIuFAST8): Likewise.
6465         [C99-based-standards] (PRIxFAST8): Likewise.
6466         [C99-based-standards] (PRIXFAST8): Likewise.
6467         [C99-based-standards] (SCNdFAST8): Likewise.
6468         [C99-based-standards] (SCNiFAST8): Likewise.
6469         [C99-based-standards] (SCNoFAST8): Likewise.
6470         [C99-based-standards] (SCNuFAST8): Likewise.
6471         [C99-based-standards] (SCNxFAST8): Likewise.
6472         [C99-based-standards] (PRId16): Likewise.
6473         [C99-based-standards] (PRIi16): Likewise.
6474         [C99-based-standards] (PRIo16): Likewise.
6475         [C99-based-standards] (PRIu16): Likewise.
6476         [C99-based-standards] (PRIx16): Likewise.
6477         [C99-based-standards] (PRIX16): Likewise.
6478         [C99-based-standards] (SCNd16): Likewise.
6479         [C99-based-standards] (SCNi16): Likewise.
6480         [C99-based-standards] (SCNo16): Likewise.
6481         [C99-based-standards] (SCNu16): Likewise.
6482         [C99-based-standards] (SCNx16): Likewise.
6483         [C99-based-standards] (PRIdLEAST16): Likewise.
6484         [C99-based-standards] (PRIiLEAST16): Likewise.
6485         [C99-based-standards] (PRIoLEAST16): Likewise.
6486         [C99-based-standards] (PRIuLEAST16): Likewise.
6487         [C99-based-standards] (PRIxLEAST16): Likewise.
6488         [C99-based-standards] (PRIXLEAST16): Likewise.
6489         [C99-based-standards] (SCNdLEAST16): Likewise.
6490         [C99-based-standards] (SCNiLEAST16): Likewise.
6491         [C99-based-standards] (SCNoLEAST16): Likewise.
6492         [C99-based-standards] (SCNuLEAST16): Likewise.
6493         [C99-based-standards] (SCNxLEAST16): Likewise.
6494         [C99-based-standards] (PRIdFAST16): Likewise.
6495         [C99-based-standards] (PRIiFAST16): Likewise.
6496         [C99-based-standards] (PRIoFAST16): Likewise.
6497         [C99-based-standards] (PRIuFAST16): Likewise.
6498         [C99-based-standards] (PRIxFAST16): Likewise.
6499         [C99-based-standards] (PRIXFAST16): Likewise.
6500         [C99-based-standards] (SCNdFAST16): Likewise.
6501         [C99-based-standards] (SCNiFAST16): Likewise.
6502         [C99-based-standards] (SCNoFAST16): Likewise.
6503         [C99-based-standards] (SCNuFAST16): Likewise.
6504         [C99-based-standards] (SCNxFAST16): Likewise.
6505         [C99-based-standards] (PRId32): Likewise.
6506         [C99-based-standards] (PRIi32): Likewise.
6507         [C99-based-standards] (PRIo32): Likewise.
6508         [C99-based-standards] (PRIu32): Likewise.
6509         [C99-based-standards] (PRIx32): Likewise.
6510         [C99-based-standards] (PRIX32): Likewise.
6511         [C99-based-standards] (SCNd32): Likewise.
6512         [C99-based-standards] (SCNi32): Likewise.
6513         [C99-based-standards] (SCNo32): Likewise.
6514         [C99-based-standards] (SCNu32): Likewise.
6515         [C99-based-standards] (SCNx32): Likewise.
6516         [C99-based-standards] (PRIdLEAST32): Likewise.
6517         [C99-based-standards] (PRIiLEAST32): Likewise.
6518         [C99-based-standards] (PRIoLEAST32): Likewise.
6519         [C99-based-standards] (PRIuLEAST32): Likewise.
6520         [C99-based-standards] (PRIxLEAST32): Likewise.
6521         [C99-based-standards] (PRIXLEAST32): Likewise.
6522         [C99-based-standards] (SCNdLEAST32): Likewise.
6523         [C99-based-standards] (SCNiLEAST32): Likewise.
6524         [C99-based-standards] (SCNoLEAST32): Likewise.
6525         [C99-based-standards] (SCNuLEAST32): Likewise.
6526         [C99-based-standards] (SCNxLEAST32): Likewise.
6527         [C99-based-standards] (PRIdFAST32): Likewise.
6528         [C99-based-standards] (PRIiFAST32): Likewise.
6529         [C99-based-standards] (PRIoFAST32): Likewise.
6530         [C99-based-standards] (PRIuFAST32): Likewise.
6531         [C99-based-standards] (PRIxFAST32): Likewise.
6532         [C99-based-standards] (PRIXFAST32): Likewise.
6533         [C99-based-standards] (SCNdFAST32): Likewise.
6534         [C99-based-standards] (SCNiFAST32): Likewise.
6535         [C99-based-standards] (SCNoFAST32): Likewise.
6536         [C99-based-standards] (SCNuFAST32): Likewise.
6537         [C99-based-standards] (SCNxFAST32): Likewise.
6538         [C99-based-standards] (PRId64): Likewise.
6539         [C99-based-standards] (PRIi64): Likewise.
6540         [C99-based-standards] (PRIo64): Likewise.
6541         [C99-based-standards] (PRIu64): Likewise.
6542         [C99-based-standards] (PRIx64): Likewise.
6543         [C99-based-standards] (PRIX64): Likewise.
6544         [C99-based-standards] (SCNd64): Likewise.
6545         [C99-based-standards] (SCNi64): Likewise.
6546         [C99-based-standards] (SCNo64): Likewise.
6547         [C99-based-standards] (SCNu64): Likewise.
6548         [C99-based-standards] (SCNx64): Likewise.
6549         [C99-based-standards] (PRIdLEAST64): Likewise.
6550         [C99-based-standards] (PRIiLEAST64): Likewise.
6551         [C99-based-standards] (PRIoLEAST64): Likewise.
6552         [C99-based-standards] (PRIuLEAST64): Likewise.
6553         [C99-based-standards] (PRIxLEAST64): Likewise.
6554         [C99-based-standards] (PRIXLEAST64): Likewise.
6555         [C99-based-standards] (SCNdLEAST64): Likewise.
6556         [C99-based-standards] (SCNiLEAST64): Likewise.
6557         [C99-based-standards] (SCNoLEAST64): Likewise.
6558         [C99-based-standards] (SCNuLEAST64): Likewise.
6559         [C99-based-standards] (SCNxLEAST64): Likewise.
6560         [C99-based-standards] (PRIdFAST64): Likewise.
6561         [C99-based-standards] (PRIiFAST64): Likewise.
6562         [C99-based-standards] (PRIoFAST64): Likewise.
6563         [C99-based-standards] (PRIuFAST64): Likewise.
6564         [C99-based-standards] (PRIxFAST64): Likewise.
6565         [C99-based-standards] (PRIXFAST64): Likewise.
6566         [C99-based-standards] (SCNdFAST64): Likewise.
6567         [C99-based-standards] (SCNiFAST64): Likewise.
6568         [C99-based-standards] (SCNoFAST64): Likewise.
6569         [C99-based-standards] (SCNuFAST64): Likewise.
6570         [C99-based-standards] (SCNxFAST64): Likewise.
6571         [C99-based-standards] (PRIdMAX): Likewise.
6572         [C99-based-standards] (PRIiMAX): Likewise.
6573         [C99-based-standards] (PRIoMAX): Likewise.
6574         [C99-based-standards] (PRIuMAX): Likewise.
6575         [C99-based-standards] (PRIxMAX): Likewise.
6576         [C99-based-standards] (PRIXMAX): Likewise.
6577         [C99-based-standards] (SCNdMAX): Likewise.
6578         [C99-based-standards] (SCNiMAX): Likewise.
6579         [C99-based-standards] (SCNoMAX): Likewise.
6580         [C99-based-standards] (SCNuMAX): Likewise.
6581         [C99-based-standards] (SCNxMAX): Likewise.
6582         [C99-based-standards] (PRIdPTR): Likewise.
6583         [C99-based-standards] (PRIiPTR): Likewise.
6584         [C99-based-standards] (PRIoPTR): Likewise.
6585         [C99-based-standards] (PRIuPTR): Likewise.
6586         [C99-based-standards] (PRIxPTR): Likewise.
6587         [C99-based-standards] (PRIXPTR): Likewise.
6588         [C99-based-standards] (SCNdPTR): Likewise.
6589         [C99-based-standards] (SCNiPTR): Likewise.
6590         [C99-based-standards] (SCNoPTR): Likewise.
6591         [C99-based-standards] (SCNuPTR): Likewise.
6592         [C99-based-standards] (SCNxPTR): Likewise.
6593         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
6594         allow.
6595         * conform/data/stdint.h-data: Update comments to clarify
6596         requirements.
6597         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
6598         type.
6599         [C99-based standards] (INT8_MAX): Likewise.
6600         [C99-based standards] (INT16_MIN): Likewise.
6601         [C99-based standards] (INT16_MAX): Likewise.
6602         [C99-based standards] (INT32_MIN): Likewise.
6603         [C99-based standards] (INT32_MAX): Likewise.
6604         [C99-based standards] (INT64_MIN): Likewise.
6605         [C99-based standards] (INT64_MAX): Likewise.
6606         [C99-based standards] (UINT8_MAX): Likewise.
6607         [C99-based standards] (UINT16_MAX): Likewise.
6608         [C99-based standards] (UINT32_MAX): Likewise.
6609         [C99-based standards] (UINT64_MAX): Likewise.
6610         [C99-based standards] (INT_LEAST8_MIN): Likewise.
6611         [C99-based standards] (INT_LEAST8_MAX): Likewise.
6612         [C99-based standards] (INT_LEAST16_MIN): Likewise.
6613         [C99-based standards] (INT_LEAST16_MAX): Likewise.
6614         [C99-based standards] (INT_LEAST32_MIN): Likewise.
6615         [C99-based standards] (INT_LEAST32_MAX): Likewise.
6616         [C99-based standards] (INT_LEAST64_MIN): Likewise.
6617         [C99-based standards] (INT_LEAST64_MAX): Likewise.
6618         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
6619         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
6620         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
6621         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
6622         [C99-based standards] (INT_FAST8_MIN): Likewise.
6623         [C99-based standards] (INT_FAST8_MAX): Likewise.
6624         [C99-based standards] (INT_FAST16_MIN): Likewise.
6625         [C99-based standards] (INT_FAST16_MAX): Likewise.
6626         [C99-based standards] (INT_FAST32_MIN): Likewise.
6627         [C99-based standards] (INT_FAST32_MAX): Likewise.
6628         [C99-based standards] (INT_FAST64_MIN): Likewise.
6629         [C99-based standards] (INT_FAST64_MAX): Likewise.
6630         [C99-based standards] (UINT_FAST8_MAX): Likewise.
6631         [C99-based standards] (UINT_FAST16_MAX): Likewise.
6632         [C99-based standards] (UINT_FAST32_MAX): Likewise.
6633         [C99-based standards] (UINT_FAST64_MAX): Likewise.
6634         [C99-based standards] (INTPTR_MIN): Likewise.
6635         [C99-based standards] (INTPTR_MAX): Likewise.
6636         [C99-based standards] (UINTPTR_MAX): Likewise.
6637         [C99-based standards] (INTMAX_MIN): Likewise.
6638         [C99-based standards] (INTMAX_MAX): Likewise.
6639         [C99-based standards] (UINTMAX_MAX): Likewise.
6640         [C99-based standards] (PTRDIFF_MIN): Likewise.
6641         [C99-based standards] (PTRDIFF_MAX): Likewise.
6642         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
6643         [C99-based standards] (SIZE_MAX): Likewise.
6644         [C99-based standards] (WCHAR_MAX): Likewise.
6645         [C99-based standards] (WINT_MAX): Likewise.
6646         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
6647         constraint on value.
6648         [C99-based standards] (WCHAR_MIN): Likewise.
6649         [C99-based standards] (WINT_MIN): Likewise.
6650         [C99-based standards] (*_t): Allow.
6651         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
6652         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
6653         Include math.h-data and complex.h-data.  Remove all expectations
6654         of math.h and complex.h contents.
6655         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
6656         at end of line.
6657         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
6658         (struct tm): Expect tag.
6659         [C99-based-standards] (wcstof): Expect function.
6660         [C99-based-standards] (wcstold): Likewise.
6661         [C99-based-standards] (wcstoll): Likewise.
6662         [C99-based-standards] (wcstoull): Likewise.
6663         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
6664         macro-int-constant.  Specify type.
6665         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
6666         constraint on value.
6667         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6668         Specify type.
6669         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
6670         Specify value.
6671         [ISO C standards]: Do not allow headers.
6672         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
6673         wcs[abcdefghijklmnopqrstuvwxyz]*.
6674         [ISO C standards] (*_t): Do not allow.
6675         * conform/data/wctype.h-data [C99-based standards] (iswblank):
6676         Expect function.
6677         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
6678         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6679         Specify type.
6680         [ISO C standards]: Do not allow headers.
6681         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
6682         is[abcdefghijklmnopqrstuvwxyz]*.
6683         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
6684         to[abcdefghijklmnopqrstuvwxyz]*.
6685         [ISO C standards] (*_t): Do not allow.
6686         * conform/data/stdalign.h-data: New file.
6687         * conform/data/stdbool.h-data: Likewise.
6688         * conform/data/stdnoreturn.h-data: Likewise.
6689
6690 2012-11-07  Roland McGrath  <roland@hack.frob.com>
6691
6692         [BZ #14815]
6693         * manual/filesys.texi (Directory Entries): Typo fix.
6694         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
6695
6696 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6697
6698         * elf/elf.h (EM_AARCH64): New macro.
6699         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
6700         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
6701         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
6702         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
6703         (R_AARCH64_TLSDESC): Likewise.
6704         (NT_ARM_TLS): Likewise.
6705         (NT_ARM_HW_BREAK): Likewise.
6706         (NT_ARM_HW_WATCH): Likewise.
6707
6708 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6709
6710         [BZ #14811]
6711         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
6712         (__ieee754_powl): Saturate nonzero exponents with absolute value
6713         below 0x1p-79 to +/- 0x1p-79.
6714         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
6715         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
6716         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
6717         nonzero exponents with absolute value below 0x1p-32 to +/-
6718         0x1p-32.
6719         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
6720         (__ieee754_powl): Saturate nonzero exponents with absolute value
6721         below 0x1p-79 to +/- 0x1p-79.
6722         * math/libm-test.inc (pow_test): Add more tests.
6723
6724 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6725
6726         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
6727         _dl_s390_cap_flags with kernel. Increase string length.
6728         (_dl_s390_platforms): Add z196 and zEC12.
6729
6730 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6731
6732         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
6733         Change XOPEN21K to XOPEN2K.
6734
6735 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
6736
6737         * string/memmove.c: Use memcpy when possible.
6738
6739 2012-11-06  Andreas Jaeger  <aj@suse.de>
6740
6741         * po/eo.po: Update from translation team.
6742
6743 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
6744
6745         [BZ #14793]
6746         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
6747         exponent and small x and y exponents, scale x or y up.  Increase
6748         by 2 the exponent used in scaling up.
6749         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6750         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6751         * math/libm-test.inc (fma_test): Add more tests.
6752         (fma_test_towardzero): Likewise.
6753         (fma_test_downward): Likewise.
6754         (fma_test_upward): Likewise.
6755
6756 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
6757
6758         [BZ #14805]
6759         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
6760         fenv_t *.
6761
6762         [BZ #14801]
6763         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
6764         namespace for names of struct fields.
6765         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
6766         fenv_t fields.
6767         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
6768         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
6769
6770 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6771
6772         [BZ #3665]
6773         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6774
6775 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6776
6777         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
6778         PTR_DEMANGLE.
6779
6780         [BZ #5246]
6781         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
6782         PTR_DEMANGLE.
6783
6784 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
6785
6786         [BZ #14797]
6787         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
6788         definitely overflow as x * y not x * y + z.
6789         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6790         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6791         * math/libm-test.inc (fma_test): Add more tests.
6792         (fma_test_towardzero): Likewise.
6793         (fma_test_downward): Likewise.
6794         (fma_test_upward): Likewise.
6795
6796 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6797
6798         [BZ #157]
6799
6800         * include/stub-tag.h: Remove file.
6801         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
6802         '#include' of it.
6803         * manual/maint.texi (Porting): Don't reference it.
6804         * Makerules ($(objpfx)stubs): Likewise.
6805         * dirent/closedir.c: Don't include <stub-tag.h>.
6806         * dirent/dirfd.c: Likewise.
6807         * dirent/fdopendir.c: Likewise.
6808         * dirent/getdents.c: Likewise.
6809         * dirent/getdents64.c: Likewise.
6810         * dirent/opendir.c: Likewise.
6811         * dirent/readdir.c: Likewise.
6812         * dirent/readdir64.c: Likewise.
6813         * dirent/readdir64_r.c: Likewise.
6814         * dirent/readdir_r.c: Likewise.
6815         * dirent/rewinddir.c: Likewise.
6816         * dirent/seekdir.c: Likewise.
6817         * dirent/telldir.c: Likewise.
6818         * gmon/profil.c: Likewise.
6819         * grp/setgroups.c: Likewise.
6820         * inet/if_index.c: Likewise.
6821         * io/access.c: Likewise.
6822         * io/chdir.c: Likewise.
6823         * io/chmod.c: Likewise.
6824         * io/chown.c: Likewise.
6825         * io/close.c: Likewise.
6826         * io/dup.c: Likewise.
6827         * io/dup2.c: Likewise.
6828         * io/dup3.c: Likewise.
6829         * io/euidaccess.c: Likewise.
6830         * io/faccessat.c: Likewise.
6831         * io/fchdir.c: Likewise.
6832         * io/fchmod.c: Likewise.
6833         * io/fchmodat.c: Likewise.
6834         * io/fchown.c: Likewise.
6835         * io/fchownat.c: Likewise.
6836         * io/fcntl.c: Likewise.
6837         * io/flock.c: Likewise.
6838         * io/fstatfs.c: Likewise.
6839         * io/fstatfs64.c: Likewise.
6840         * io/fstatvfs.c: Likewise.
6841         * io/fstatvfs64.c: Likewise.
6842         * io/futimens.c: Likewise.
6843         * io/fxstat.c: Likewise.
6844         * io/fxstat64.c: Likewise.
6845         * io/fxstatat.c: Likewise.
6846         * io/fxstatat64.c: Likewise.
6847         * io/getcwd.c: Likewise.
6848         * io/isatty.c: Likewise.
6849         * io/lchmod.c: Likewise.
6850         * io/lchown.c: Likewise.
6851         * io/link.c: Likewise.
6852         * io/linkat.c: Likewise.
6853         * io/lseek.c: Likewise.
6854         * io/lseek64.c: Likewise.
6855         * io/lxstat64.c: Likewise.
6856         * io/mkdir.c: Likewise.
6857         * io/mkdirat.c: Likewise.
6858         * io/mkfifo.c: Likewise.
6859         * io/mkfifoat.c: Likewise.
6860         * io/open.c: Likewise.
6861         * io/open64.c: Likewise.
6862         * io/openat.c: Likewise.
6863         * io/openat64.c: Likewise.
6864         * io/pipe.c: Likewise.
6865         * io/pipe2.c: Likewise.
6866         * io/poll.c: Likewise.
6867         * io/posix_fadvise.c: Likewise.
6868         * io/posix_fadvise64.c: Likewise.
6869         * io/posix_fallocate.c: Likewise.
6870         * io/posix_fallocate64.c: Likewise.
6871         * io/read.c: Likewise.
6872         * io/readlink.c: Likewise.
6873         * io/readlinkat.c: Likewise.
6874         * io/rmdir.c: Likewise.
6875         * io/sendfile.c: Likewise.
6876         * io/sendfile64.c: Likewise.
6877         * io/statfs.c: Likewise.
6878         * io/statfs64.c: Likewise.
6879         * io/statvfs.c: Likewise.
6880         * io/statvfs64.c: Likewise.
6881         * io/symlink.c: Likewise.
6882         * io/symlinkat.c: Likewise.
6883         * io/ttyname.c: Likewise.
6884         * io/ttyname_r.c: Likewise.
6885         * io/umask.c: Likewise.
6886         * io/unlink.c: Likewise.
6887         * io/unlinkat.c: Likewise.
6888         * io/utime.c: Likewise.
6889         * io/utimensat.c: Likewise.
6890         * io/write.c: Likewise.
6891         * io/xmknod.c: Likewise.
6892         * io/xmknodat.c: Likewise.
6893         * io/xstat.c: Likewise.
6894         * io/xstat64.c: Likewise.
6895         * login/getpt.c: Likewise.
6896         * login/grantpt.c: Likewise.
6897         * login/unlockpt.c: Likewise.
6898         * math/e_acoshl.c: Likewise.
6899         * math/e_acosl.c: Likewise.
6900         * math/e_asinl.c: Likewise.
6901         * math/e_atan2l.c: Likewise.
6902         * math/e_atanhl.c: Likewise.
6903         * math/e_coshl.c: Likewise.
6904         * math/e_expl.c: Likewise.
6905         * math/e_fmodl.c: Likewise.
6906         * math/e_gammal_r.c: Likewise.
6907         * math/e_hypotl.c: Likewise.
6908         * math/e_j0l.c: Likewise.
6909         * math/e_j1l.c: Likewise.
6910         * math/e_jnl.c: Likewise.
6911         * math/e_lgammal_r.c: Likewise.
6912         * math/e_log10l.c: Likewise.
6913         * math/e_log2l.c: Likewise.
6914         * math/e_logl.c: Likewise.
6915         * math/e_powl.c: Likewise.
6916         * math/e_rem_pio2l.c: Likewise.
6917         * math/e_sinhl.c: Likewise.
6918         * math/e_sqrtl.c: Likewise.
6919         * math/fclrexcpt.c: Likewise.
6920         * math/fedisblxcpt.c: Likewise.
6921         * math/feenablxcpt.c: Likewise.
6922         * math/fegetenv.c: Likewise.
6923         * math/fegetexcept.c: Likewise.
6924         * math/fegetround.c: Likewise.
6925         * math/feholdexcpt.c: Likewise.
6926         * math/fesetenv.c: Likewise.
6927         * math/fesetround.c: Likewise.
6928         * math/feupdateenv.c: Likewise.
6929         * math/fgetexcptflg.c: Likewise.
6930         * math/fraiseexcpt.c: Likewise.
6931         * math/fsetexcptflg.c: Likewise.
6932         * math/ftestexcept.c: Likewise.
6933         * math/k_cosl.c: Likewise.
6934         * math/k_rem_pio2l.c: Likewise.
6935         * math/k_sinl.c: Likewise.
6936         * math/k_tanl.c: Likewise.
6937         * math/s_asinhl.c: Likewise.
6938         * math/s_atanl.c: Likewise.
6939         * math/s_cbrtl.c: Likewise.
6940         * math/s_erfl.c: Likewise.
6941         * math/s_expm1l.c: Likewise.
6942         * math/s_log1pl.c: Likewise.
6943         * math/s_tanhl.c: Likewise.
6944         * misc/acct.c: Likewise.
6945         * misc/brk.c: Likewise.
6946         * misc/chflags.c: Likewise.
6947         * misc/chroot.c: Likewise.
6948         * misc/fchflags.c: Likewise.
6949         * misc/fgetxattr.c: Likewise.
6950         * misc/flistxattr.c: Likewise.
6951         * misc/fremovexattr.c: Likewise.
6952         * misc/fsetxattr.c: Likewise.
6953         * misc/fsync.c: Likewise.
6954         * misc/ftruncate.c: Likewise.
6955         * misc/futimes.c: Likewise.
6956         * misc/futimesat.c: Likewise.
6957         * misc/getdomain.c: Likewise.
6958         * misc/getdtsz.c: Likewise.
6959         * misc/gethostid.c: Likewise.
6960         * misc/gethostname.c: Likewise.
6961         * misc/getloadavg.c: Likewise.
6962         * misc/getpagesize.c: Likewise.
6963         * misc/getsysstats.c: Likewise.
6964         * misc/getxattr.c: Likewise.
6965         * misc/gtty.c: Likewise.
6966         * misc/ioctl.c: Likewise.
6967         * misc/lgetxattr.c: Likewise.
6968         * misc/listxattr.c: Likewise.
6969         * misc/llistxattr.c: Likewise.
6970         * misc/lremovexattr.c: Likewise.
6971         * misc/lsetxattr.c: Likewise.
6972         * misc/lutimes.c: Likewise.
6973         * misc/madvise.c: Likewise.
6974         * misc/mincore.c: Likewise.
6975         * misc/mlock.c: Likewise.
6976         * misc/mlockall.c: Likewise.
6977         * misc/mmap.c: Likewise.
6978         * misc/mprotect.c: Likewise.
6979         * misc/msync.c: Likewise.
6980         * misc/munlock.c: Likewise.
6981         * misc/munlockall.c: Likewise.
6982         * misc/munmap.c: Likewise.
6983         * misc/preadv.c: Likewise.
6984         * misc/preadv64.c: Likewise.
6985         * misc/ptrace.c: Likewise.
6986         * misc/pwritev.c: Likewise.
6987         * misc/pwritev64.c: Likewise.
6988         * misc/readv.c: Likewise.
6989         * misc/reboot.c: Likewise.
6990         * misc/remap_file_pages.c: Likewise.
6991         * misc/removexattr.c: Likewise.
6992         * misc/revoke.c: Likewise.
6993         * misc/select.c: Likewise.
6994         * misc/setdomain.c: Likewise.
6995         * misc/setegid.c: Likewise.
6996         * misc/seteuid.c: Likewise.
6997         * misc/sethostid.c: Likewise.
6998         * misc/sethostname.c: Likewise.
6999         * misc/setregid.c: Likewise.
7000         * misc/setreuid.c: Likewise.
7001         * misc/setxattr.c: Likewise.
7002         * misc/sstk.c: Likewise.
7003         * misc/stty.c: Likewise.
7004         * misc/swapoff.c: Likewise.
7005         * misc/swapon.c: Likewise.
7006         * misc/sync.c: Likewise.
7007         * misc/syncfs.c: Likewise.
7008         * misc/syscall.c: Likewise.
7009         * misc/truncate.c: Likewise.
7010         * misc/ualarm.c: Likewise.
7011         * misc/usleep.c: Likewise.
7012         * misc/ustat.c: Likewise.
7013         * misc/utimes.c: Likewise.
7014         * misc/vhangup.c: Likewise.
7015         * misc/writev.c: Likewise.
7016         * posix/_exit.c: Likewise.
7017         * posix/alarm.c: Likewise.
7018         * posix/execve.c: Likewise.
7019         * posix/fexecve.c: Likewise.
7020         * posix/fork.c: Likewise.
7021         * posix/fpathconf.c: Likewise.
7022         * posix/getaddrinfo.c: Likewise.
7023         * posix/getegid.c: Likewise.
7024         * posix/geteuid.c: Likewise.
7025         * posix/getgid.c: Likewise.
7026         * posix/getgroups.c: Likewise.
7027         * posix/getlogin.c: Likewise.
7028         * posix/getlogin_r.c: Likewise.
7029         * posix/getpgid.c: Likewise.
7030         * posix/getpid.c: Likewise.
7031         * posix/getppid.c: Likewise.
7032         * posix/getresgid.c: Likewise.
7033         * posix/getresuid.c: Likewise.
7034         * posix/getsid.c: Likewise.
7035         * posix/getuid.c: Likewise.
7036         * posix/glob64.c: Likewise.
7037         * posix/nanosleep.c: Likewise.
7038         * posix/pathconf.c: Likewise.
7039         * posix/pause.c: Likewise.
7040         * posix/posix_madvise.c: Likewise.
7041         * posix/pread.c: Likewise.
7042         * posix/pread64.c: Likewise.
7043         * posix/pwrite.c: Likewise.
7044         * posix/pwrite64.c: Likewise.
7045         * posix/sched_getaffinity.c: Likewise.
7046         * posix/sched_getp.c: Likewise.
7047         * posix/sched_gets.c: Likewise.
7048         * posix/sched_primax.c: Likewise.
7049         * posix/sched_primin.c: Likewise.
7050         * posix/sched_rr_gi.c: Likewise.
7051         * posix/sched_setaffinity.c: Likewise.
7052         * posix/sched_setp.c: Likewise.
7053         * posix/sched_sets.c: Likewise.
7054         * posix/sched_yield.c: Likewise.
7055         * posix/setgid.c: Likewise.
7056         * posix/setlogin.c: Likewise.
7057         * posix/setpgid.c: Likewise.
7058         * posix/setresgid.c: Likewise.
7059         * posix/setresuid.c: Likewise.
7060         * posix/setsid.c: Likewise.
7061         * posix/setuid.c: Likewise.
7062         * posix/sleep.c: Likewise.
7063         * posix/spawni.c: Likewise.
7064         * posix/sysconf.c: Likewise.
7065         * posix/times.c: Likewise.
7066         * posix/wait.c: Likewise.
7067         * posix/wait3.c: Likewise.
7068         * posix/wait4.c: Likewise.
7069         * posix/waitpid.c: Likewise.
7070         * resolv/gai_sigqueue.c: Likewise.
7071         * resource/getpriority.c: Likewise.
7072         * resource/getrlimit.c: Likewise.
7073         * resource/getrusage.c: Likewise.
7074         * resource/nice.c: Likewise.
7075         * resource/setpriority.c: Likewise.
7076         * resource/setrlimit.c: Likewise.
7077         * resource/ulimit.c: Likewise.
7078         * rt/aio_cancel.c: Likewise.
7079         * rt/aio_fsync.c: Likewise.
7080         * rt/aio_read.c: Likewise.
7081         * rt/aio_sigqueue.c: Likewise.
7082         * rt/aio_suspend.c: Likewise.
7083         * rt/aio_write.c: Likewise.
7084         * rt/clock_getres.c: Likewise.
7085         * rt/clock_gettime.c: Likewise.
7086         * rt/clock_nanosleep.c: Likewise.
7087         * rt/clock_settime.c: Likewise.
7088         * rt/lio_listio.c: Likewise.
7089         * rt/mq_close.c: Likewise.
7090         * rt/mq_getattr.c: Likewise.
7091         * rt/mq_notify.c: Likewise.
7092         * rt/mq_open.c: Likewise.
7093         * rt/mq_receive.c: Likewise.
7094         * rt/mq_send.c: Likewise.
7095         * rt/mq_setattr.c: Likewise.
7096         * rt/mq_timedreceive.c: Likewise.
7097         * rt/mq_timedsend.c: Likewise.
7098         * rt/mq_unlink.c: Likewise.
7099         * rt/shm_open.c: Likewise.
7100         * rt/shm_unlink.c: Likewise.
7101         * rt/timer_create.c: Likewise.
7102         * rt/timer_delete.c: Likewise.
7103         * rt/timer_getoverr.c: Likewise.
7104         * rt/timer_gettime.c: Likewise.
7105         * rt/timer_settime.c: Likewise.
7106         * setjmp/__longjmp.c: Likewise.
7107         * setjmp/setjmp.c: Likewise.
7108         * signal/kill.c: Likewise.
7109         * signal/killpg.c: Likewise.
7110         * signal/raise.c: Likewise.
7111         * signal/sigaction.c: Likewise.
7112         * signal/sigaltstack.c: Likewise.
7113         * signal/sigblock.c: Likewise.
7114         * signal/sigignore.c: Likewise.
7115         * signal/sigintr.c: Likewise.
7116         * signal/signal.c: Likewise.
7117         * signal/sigpause.c: Likewise.
7118         * signal/sigpending.c: Likewise.
7119         * signal/sigqueue.c: Likewise.
7120         * signal/sigreturn.c: Likewise.
7121         * signal/sigset.c: Likewise.
7122         * signal/sigsetmask.c: Likewise.
7123         * signal/sigstack.c: Likewise.
7124         * signal/sigsuspend.c: Likewise.
7125         * signal/sigtimedwait.c: Likewise.
7126         * signal/sigvec.c: Likewise.
7127         * signal/sigwait.c: Likewise.
7128         * signal/sigwaitinfo.c: Likewise.
7129         * signal/sysv_signal.c: Likewise.
7130         * socket/accept.c: Likewise.
7131         * socket/accept4.c: Likewise.
7132         * socket/bind.c: Likewise.
7133         * socket/connect.c: Likewise.
7134         * socket/getpeername.c: Likewise.
7135         * socket/getsockname.c: Likewise.
7136         * socket/getsockopt.c: Likewise.
7137         * socket/isfdtype.c: Likewise.
7138         * socket/listen.c: Likewise.
7139         * socket/recv.c: Likewise.
7140         * socket/recvfrom.c: Likewise.
7141         * socket/recvmsg.c: Likewise.
7142         * socket/send.c: Likewise.
7143         * socket/sendmsg.c: Likewise.
7144         * socket/sendto.c: Likewise.
7145         * socket/setsockopt.c: Likewise.
7146         * socket/shutdown.c: Likewise.
7147         * socket/sockatmark.c: Likewise.
7148         * socket/socket.c: Likewise.
7149         * socket/socketpair.c: Likewise.
7150         * stdio-common/ctermid.c: Likewise.
7151         * stdio-common/cuserid.c: Likewise.
7152         * stdio-common/remove.c: Likewise.
7153         * stdio-common/rename.c: Likewise.
7154         * stdio-common/renameat.c: Likewise.
7155         * stdio-common/tempname.c: Likewise.
7156         * stdlib/getcontext.c: Likewise.
7157         * stdlib/makecontext.c: Likewise.
7158         * stdlib/setcontext.c: Likewise.
7159         * stdlib/swapcontext.c: Likewise.
7160         * stdlib/system.c: Likewise.
7161         * streams/fattach.c: Likewise.
7162         * streams/fdetach.c: Likewise.
7163         * streams/getmsg.c: Likewise.
7164         * streams/getpmsg.c: Likewise.
7165         * streams/putmsg.c: Likewise.
7166         * streams/putpmsg.c: Likewise.
7167         * sysdeps/unix/bsd/getpt.c: Likewise.
7168         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7169         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7170         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7172         Likewise.
7173         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7174         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7175         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7176         * sysvipc/msgctl.c: Likewise.
7177         * sysvipc/msgget.c: Likewise.
7178         * sysvipc/msgrcv.c: Likewise.
7179         * sysvipc/msgsnd.c: Likewise.
7180         * sysvipc/semctl.c: Likewise.
7181         * sysvipc/semget.c: Likewise.
7182         * sysvipc/semop.c: Likewise.
7183         * sysvipc/semtimedop.c: Likewise.
7184         * sysvipc/shmat.c: Likewise.
7185         * sysvipc/shmctl.c: Likewise.
7186         * sysvipc/shmdt.c: Likewise.
7187         * sysvipc/shmget.c: Likewise.
7188         * termios/tcdrain.c: Likewise.
7189         * termios/tcflow.c: Likewise.
7190         * termios/tcflush.c: Likewise.
7191         * termios/tcgetattr.c: Likewise.
7192         * termios/tcgetpgrp.c: Likewise.
7193         * termios/tcsendbrk.c: Likewise.
7194         * termios/tcsetattr.c: Likewise.
7195         * termios/tcsetpgrp.c: Likewise.
7196         * time/adjtime.c: Likewise.
7197         * time/clock.c: Likewise.
7198         * time/getitimer.c: Likewise.
7199         * time/gettimeofday.c: Likewise.
7200         * time/setitimer.c: Likewise.
7201         * time/settimeofday.c: Likewise.
7202         * time/stime.c: Likewise.
7203         * time/time.c: Likewise.
7204
7205 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7206
7207         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7208         /usr/old/bin.
7209
7210         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7211         instead of spaces.
7212         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7213
7214 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7215
7216         [BZ #14796]
7217         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7218         FE_TONEAREST before applying Dekker multiplication and Knuth
7219         addition.  Clear inexact exceptions and check for exact zero
7220         results afterwards.
7221         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7222         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7223         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7224         * math/libm-test.inc (fma_test): Add more tests.
7225         (fma_test_towardzero): Likewise.
7226         (fma_test_downward): Likewise.
7227         (fma_test_upward): Likewise.
7228         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7229         function.
7230         (libc_fesetround): New macro.
7231         (libc_fesetroundf): Likewise.
7232         (libc_fesetroundl): Likewise.
7233         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7234         function.
7235         (libc_fesetround_387): Likewise.
7236         (libc_fesetroundf): New macro.
7237         (libc_fesetround): Likewise.
7238         (libc_fesetroundl): Likewise.
7239         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7240         function.
7241         (libc_fesetroundf): New macro.
7242         (libc_fesetround): Likewise.
7243         (libc_fesetroundl): Likewise.
7244         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7245         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7246         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7247         libm_hidden_ver.
7248         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7249         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7250         libm_hidden_def.
7251         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7252         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7253         libm_hidden_ver.
7254         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7255         libm_hidden_def.
7256
7257         [BZ #3439]
7258         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7259         integer constant usable in #if and use that to give value to enum
7260         constant.
7261         (FE_DIVBYZERO): Likewise.
7262         (FE_UNDERFLOW): Likewise.
7263         (FE_OVERFLOW): Likewise.
7264         (FE_INVALID): Likewise.
7265         (FE_INVALID_SNAN): Likewise.
7266         (FE_INVALID_ISI): Likewise.
7267         (FE_INVALID_IDI): Likewise.
7268         (FE_INVALID_ZDZ): Likewise.
7269         (FE_INVALID_IMZ): Likewise.
7270         (FE_INVALID_COMPARE): Likewise.
7271         (FE_INVALID_SOFTWARE): Likewise.
7272         (FE_INVALID_SQRT): Likewise.
7273         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7274         (FE_TONEAREST): Likewise.
7275         (FE_TOWARDZERO): Likewise.
7276         (FE_UPWARD): Likewise.
7277         (FE_DOWNWARD): Likewise.
7278         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7279         (FE_DIVBYZERO): Likewise.
7280         (FE_OVERFLOW): Likewise.
7281         (FE_UNDERFLOW): Likewise.
7282         (FE_INEXACT): Likewise.
7283         (FE_TONEAREST): Likewise.
7284         (FE_DOWNWARD): Likewise.
7285         (FE_UPWARD): Likewise.
7286         (FE_TOWARDZERO): Likewise.
7287         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7288         (FE_UNDERFLOW): Likewise.
7289         (FE_OVERFLOW): Likewise.
7290         (FE_DIVBYZERO): Likewise.
7291         (FE_INVALID): Likewise.
7292         (FE_TONEAREST): Likewise.
7293         (FE_TOWARDZERO): Likewise.
7294         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7295         (FE_OVERFLOW): Likewise.
7296         (FE_UNDERFLOW): Likewise.
7297         (FE_DIVBYZERO): Likewise.
7298         (FE_INEXACT): Likewise.
7299         (FE_TONEAREST): Likewise.
7300         (FE_TOWARDZERO): Likewise.
7301         (FE_UPWARD): Likewise.
7302         (FE_DOWNWARD): Likewise.
7303         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7304         (FE_DIVBYZERO): Likewise.
7305         (FE_OVERFLOW): Likewise.
7306         (FE_UNDERFLOW): Likewise.
7307         (FE_INEXACT): Likewise.
7308         (FE_TONEAREST): Likewise.
7309         (FE_DOWNWARD): Likewise.
7310         (FE_UPWARD): Likewise.
7311         (FE_TOWARDZERO): Likewise.
7312
7313 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7314
7315         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7316
7317 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7318
7319         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7320         commands.  Quote $PWD.
7321         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7322         -x" by "export".
7323         (remove_newlines): Remove.
7324
7325 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7326
7327         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7328         * stdlib/stdlib.h (atof): Moved to ...
7329         * include/bits/stdlib-float.h: Here.  New file.
7330         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7331         * stdlib/bits/stdlib-float.h: New file.
7332         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7333         -mno-sse -mno-mmx.
7334         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7335         <xmmintrin.h>.
7336
7337 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7338
7339         * conform/conformtest.pl (@headers): Add fenv.h.
7340         * conform/data/fenv.h-data: New file.
7341         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7342         include of <math/fenv.h>.
7343
7344         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
7345         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
7346         && !UNIX98].  Enables tests for XOPEN2K8.
7347         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
7348         POSIX2008]: Likewise.
7349
7350         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
7351         (struct rusage): Do not expect type or its members.
7352
7353         [BZ #3439]
7354         * math/math.h (FP_NAN): Define macro to integer constant usable in
7355         #if and use that to give value to enum constant.
7356         (FP_INFINITE): Likewise.
7357         (FP_ZERO): Likewise.
7358         (FP_SUBNORMAL): Likewise.
7359         (FP_NORMAL): Likewise.
7360
7361 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
7362
7363         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
7364         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
7365         arguments.
7366
7367 2012-11-02  Roland McGrath  <roland@hack.frob.com>
7368
7369         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
7370         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
7371         autoconf-time if not.
7372         * configure.in: Remove AC_PREREQ.
7373
7374 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7375
7376         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
7377         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
7378         of the internal implementation.
7379
7380 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7381
7382         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
7383         except include of <misc/sys/syslog.h>.
7384
7385 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7386
7387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
7388         function returns with a NULL context exit with zero.
7389
7390 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7391
7392         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
7393
7394 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
7395
7396         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
7397         (run_program_cmd): This.
7398         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
7399         (tst_langinfo): New variable.  Use it.
7400
7401 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
7402
7403         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
7404         floating point opcodes.
7405
7406 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7407
7408         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
7409         variable.
7410
7411         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
7412
7413         * sysdeps/mach/hurd/powerpc: Remove directory.
7414         * sysdeps/mach/powerpc: Likewise.
7415
7416 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7417
7418         * scripts/check-local-headers.sh: Ignore c++ headers.
7419
7420 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7421
7422         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
7423         __libc_cleanup_region_start argument.
7424
7425 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
7426
7427         [BZ #14784]
7428         [BZ #14785]
7429         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
7430         x * y using scaling, not as x * y + z.
7431         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7432         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7433         * math/libm-test.inc (fma_test): Add more tests.
7434         (fma_test_towardzero): Likewise.
7435         (fma_test_downward): Likewise.
7436         (fma_test_upward): Likewise.
7437
7438 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7439
7440         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
7441
7442 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7443
7444         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
7445         New variable.
7446
7447 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
7448
7449         * rt/tst-shm.c (worker): Correct checking for mmap failure.
7450
7451 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7452
7453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7454         Fix sort order.
7455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7456         Likewise.
7457
7458 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7459
7460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7461         Fix the order of the list for glibc 2.17.
7462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7463         Likewise.
7464
7465 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7466
7467         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7468
7469 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7470
7471         [BZ #14610]
7472         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
7473         for low part of x being zero before using __atanl (y).
7474         * math/libm-test.inc (atan2_test): Add another test.
7475
7476         * manual/install.texi (Configuring and compiling): Document
7477         general use of test-wrapper and test-wrapper-env.
7478         * INSTALL: Regenerated.
7479
7480         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
7481         (__fma): 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         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
7485         (__fmal): Do not extract and scale down low bits on after-rounding
7486         systems when result rounded to normal precision would have normal
7487         exponent.
7488         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
7489         (__fmal): Do not extract and scale down low bits on after-rounding
7490         systems when result rounded to normal precision would have normal
7491         exponent.
7492         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
7493         macro.
7494         (fma_test): Add more tests.
7495         (fma_test_towardzero): Likewise.
7496         (fma_test_downward): Likewise.
7497         (fma_test_upward): Likewise.
7498
7499 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7500
7501         * sysdeps/i386/tininess.h: Renamed to ...
7502         * sysdeps/x86/tininess.h: This.
7503         * sysdeps/x86_64/tininess.h: Removed.
7504
7505 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7506
7507         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
7508         input.  Use $(build-program-cmd).
7509         ($(objpfx)tst-array1-static.out): Likewise.
7510         ($(objpfx)tst-array2.out): Likewise.
7511         ($(objpfx)tst-array3.out): Likewise.
7512         ($(objpfx)tst-array4.out): Likewise.
7513         ($(objpfx)tst-array5.out): Likewise.
7514         ($(objpfx)tst-array5-static.out): Likewise.
7515
7516 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
7517
7518         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
7519         if defined.
7520
7521         * nss/nsswitch.h (nss_interface_function): Provide new
7522         macro for use with NSS functions.
7523         * grp/initgroups.c: Use new macro.
7524         * nss/getXXbyYY.c: Likewise.
7525         * nss/getXXbyYY_r.c: Likewise.
7526         * nss/getXXent.c: Likewise.
7527         * nss/getXXent_r.c: Likewise.
7528         * sysdeps/posix/getaddrinfo.c: Likewise.
7529
7530 2012-10-30  Andreas Jaeger  <aj@suse.de>
7531
7532         * po/ru.po: Update Russion translation from translation project.
7533
7534 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7535
7536         [BZ #14152]
7537         [BZ #14783]
7538         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
7539         result and shift together with sticky bit instead of replicating
7540         round-to-nearest rounding.
7541         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7542         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7543         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
7544         missing underflow exceptions.
7545         (fma_test_towardzero): Add more tests.
7546         (fma_test_downward): Likewise.
7547         (fma_test_upward): Likewise.
7548
7549         [BZ #14047]
7550         * sysdeps/generic/tininess.h: New file.
7551         * sysdeps/i386/tininess.h: Likewise.
7552         * sysdeps/sh/tininess.h: Likewise.
7553         * sysdeps/x86_64/tininess.h: Likewise.
7554         * stdlib/tst-strtod-underflow.c: Likewise.
7555         * stdlib/tst-tininess.c: Likewise.
7556         * stdlib/strtod_l.c: Include <tininess.h>.
7557         (round_and_return): Do not set errno for exact underflow cases.
7558         Force an underflow exception when setting errno for underflow.
7559         Determine underflow based on rounding to normal precision if
7560         TININESS_AFTER_ROUNDING.
7561         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
7562         ERANGE for exact underflow cases.
7563         * stdlib/Makefile (tests): Add tst-tininess and
7564         tst-strtod-underflow.
7565         ($(objpfx)tst-tininess): Use $(link-libm).
7566         ($(objpfx)tst-strtod-underflow): Likewise.
7567
7568 2012-10-30  Andreas Jaeger  <aj@suse.de>
7569
7570         [BZ#14767]
7571         * elf/Makefile (tests): Remove conditional for have-initfini-array
7572         since this is now always required and the variable does not exist
7573         anymore.
7574         (tests-static): Likewise.
7575         (modules-names): Likewise.
7576
7577         * po/eo.po: Add Esperanto translation from translation project.
7578
7579         * elf/tst-array1.c (fini_array): Make writeable so that it can be
7580         merged with constructor/destructor.
7581         (init_array): Likewise.
7582         * elf/tst-array2dep.c (fini_array): Likewise.
7583         (init_array): Likewise.
7584
7585 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
7586
7587         * manual/message.texi: Delete @cartouche tags.
7588
7589 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
7590
7591         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
7592         EOPNOTSUPP.
7593         * sysdeps/mach/hurd/fsync.c: Likewise.
7594
7595         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
7596         [_POSIX_REALTIME_SIGNALS]: Change condition to
7597         [_POSIX_REALTIME_SIGNALS > 0].
7598
7599 2012-10-27  Andreas Jaeger  <aj@suse.de>
7600
7601         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
7602         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
7603         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
7604         [__WORDSIZE != 64]: Likewise.
7605
7606 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
7607
7608         *  iconvdata/tst-table.sh: Remove ${SHELL}.
7609         *  iconvdata/tst-tables.sh: Likewise.
7610
7611 2012-10-25  David S. Miller  <davem@davemloft.net>
7612
7613         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7614         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
7615         of strtoull.
7616
7617         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
7618         ifunc-impl-list.c
7619         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7620         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
7621         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
7622         file.
7623
7624 2012-10-25  Roland McGrath  <roland@hack.frob.com>
7625
7626         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7627         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
7628         __getdirentries.
7629
7630 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7631             Jim Blandy  <jimb@codesourcery.com>
7632
7633         * scripts/cross-test-ssh.sh: New file.
7634         * manual/install.texi (Configuring and compiling): Document use of
7635         cross-test-ssh.sh.
7636         * INSTALL: Regenerated.
7637
7638 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
7639
7640         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
7641         EOPNOTSUPP.
7642
7643 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7644
7645         * Makeconfig (run-program-prefix): Fix comment.
7646
7647 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7648             Jim Blandy  <jimb@codesourcery.com>
7649
7650         * Makeconfig (test-wrapper): New variable,
7651         (test-wrapper-env): Likewise.
7652         [$(cross-compiling) = yes && $(test-wrapper) != ""]
7653         (run-built-tests): Define to yes.
7654         (run-program-prefix): Use $(test-wrapper).
7655         (built-program-cmd): Likewise.
7656         * Rules (make-test-out): Use $(test-wrapper-env) and
7657         $(host-built-program-cmd).
7658         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
7659         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
7660         tst-pathopt.sh.
7661         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
7662         $(test-wrapper-env) to tst-rtld-load-self.sh.
7663         ($(objpfx)order2.out): Use $(test-wrapper).
7664         ($(objpfx)tst-initorder.out): Likewise.
7665         ($(objpfx)tst-initorder2.out): Likewise.
7666         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
7667         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
7668         (test_wrapper_env): New variable.  Use it to run ld.so.
7669         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
7670         Use it to run ld.so.
7671         (test_wrapper_env): Likewise.
7672         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
7673         $(test-wrapper) to run-iconv-test.sh.
7674         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
7675         (ICONV): Use $test_wrapper.
7676         * posix/Makefile ($(objpfx)globtest.out): Pass
7677         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
7678         globtest.sh, not $(run-program-prefix).
7679         * posix/globtest.sh (run_via_rtld_prefix): New variable.
7680         (test_wrapper): Likewise.
7681         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
7682         set together with run_via_rtld_prefix.
7683         (run_program_prefix): Define in terms of test_wrapper and
7684         run_via_rtld_prefix.
7685
7686 2012-10-24  Roland McGrath  <roland@hack.frob.com>
7687
7688         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
7689         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
7690         Targets removed.
7691
7692         [BZ #14743]
7693         * include/time.h: Remove librt_hidden_proto (clock_gettime).
7694         Declare __clock_getres, __clock_gettime, __clock_settime,
7695         __clock_nanosleep, and __clock_getcpuclockid.
7696         * rt/clock_gettime.c: Define __clock_gettime as an alias.
7697         Remove librt_hidden_def (clock_gettime).
7698         * sysdeps/unix/clock_gettime.c: Likewise.
7699         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
7700         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
7701         * rt/clock_getres.c: Define __clock_getres as an alias.
7702         * sysdeps/posix/clock_getres.c: Likewise.
7703         * rt/clock_settime.c: Define __clock_settime as an alias.
7704         * sysdeps/unix/clock_settime.c: Likewise.
7705         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
7706         * sysdeps/unix/clock_nanosleep.c: Likewise.
7707         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
7708         * rt/clock-compat.c: New file.
7709         * rt/Makefile (librt-routines): Add clock-compat and move
7710         $(clock-routines) to ...
7711         (routines): ... here, new variable.
7712         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
7713         Don't add get_clockfreq here.
7714         * rt/Versions (libc: GLIBC_2.17): New version set.
7715         Add clock_* symbols here.
7716         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
7717         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
7718         (GLIBC_2.17): Add clock_* symbols.
7719         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
7720         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
7721         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
7722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7723         Likewise.
7724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7725         Likewise.
7726         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
7727         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
7728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
7729         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
7730         * NEWS: Mention the move.
7731
7732         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
7733         Use __open, __read, __close rather than their public counterparts.
7734         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7735         (__get_clockfreq_via_cpuinfo): Likewise.
7736         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
7737         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
7738
7739         * config.h.in (HAVE_IFUNC): New #undef.
7740         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
7741         was successful.
7742         * configure: Regenerated.
7743
7744 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7745
7746         * configure.in: Move READELF check to start of file.
7747         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
7748         libc_cv_asm_gnu_indirect_function in the process.
7749         * configure: Regenerated.
7750
7751 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7752
7753         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
7754         send the output to /dev/null.
7755         (libc_cv_cc_with_libunwind): Likewise.
7756         (libc_cv_as_noexecstack): Likewise.
7757         * configure: Regenerate.
7758
7759 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7760
7761         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
7762
7763         * posix/globtest.sh (TMPDIR): Do not set.
7764         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
7765         (testout): Likewise.
7766
7767 2012-10-24  Andreas Jaeger  <aj@suse.de>
7768
7769         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
7770         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
7771         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
7772         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
7773         posix_fadvise64, posix_fallocate64.
7774
7775         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
7776         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
7777         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
7778         Likewise.
7779         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
7780         Likewise.
7781         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
7782
7783         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
7784         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
7785         <bits/fcntl-linux.h>.
7786         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
7787
7788         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
7789         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
7790         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
7791         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
7792         [__WORDSIZE != 64]: Likewise.
7793
7794 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7795
7796         * Makeconfig (run-built-tests): New variable.
7797         * Rules [$(cross-compiling) = yes]: Change condition to
7798         [$(run-built-tests) = no].
7799         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
7800         to [$(run-built-tests) = yes].
7801         * elf/Makefile [$(cross-compiling) = no]: Likewise
7802         * grp/Makefile [$(cross-compiling) = no]: Likewise.
7803         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
7804         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
7805         * intl/Makefile [$(cross-compiling) = no]: Likewise.
7806         * io/Makefile [$(cross-compiling) = no]: Likewise.
7807         * libio/Makefile [$(cross-compiling) = no]: Likewise.
7808         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
7809         * misc/Makefile [$(cross-compiling) = no]: Likewise.
7810         * posix/Makefile [$(cross-compiling) = no]: Likewise.
7811         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
7812         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
7813         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
7814         * string/Makefile [$(cross-compiling) = no]: Likewise.
7815
7816         * posix/Makefile ($(objpfx)globtest.out): Pass
7817         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
7818         $(rtld-installed-name).
7819         * posix/globtest.sh (elf_objpfx): Remove variable.
7820         (rtld_installed_name): Likewise.
7821         (library_path): Likewise.
7822         (run_program_prefix): New variable.  Use for running globtest
7823         binary.
7824
7825 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
7826             Joseph Myers  <joseph@codesourcery.com>
7827
7828         * Makeconfig (host-built-program-cmd): New variable.
7829         * elf/Makefile (tst-stackguard1-ARGS): Use
7830         $(host-built-program-cmd).
7831         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
7832         (tst-spawn-ARGS): Likewise.
7833         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
7834
7835 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7836             Jim Blandy  <jimb@codesourcery.com>
7837
7838         * Makeconfig (run-via-rtld-prefix): New variable.
7839         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
7840         (built-program-cmd): Likewise.
7841
7842 2012-10-22  Andreas Jaeger  <aj@suse.de>
7843
7844         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
7845         __O_RSYNC if it exists, otherwise to O_SYNC.
7846
7847 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
7848             Joseph Myers  <joseph@codesourcery.com>
7849
7850         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
7851         /dev/null.
7852         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
7853         from /dev/null
7854         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
7855         /dev/null.
7856
7857 2012-10-22  Andreas Jaeger  <aj@suse.de>
7858
7859         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
7860         Define always.
7861         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
7862
7863         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7864         bits/fcntl-linux.h.
7865
7866         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
7867         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
7868
7869         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
7870         to __O_LARGEFILE.
7871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
7872         to __O_LARGEFILE.
7873
7874 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
7875             Joseph Myers  <joseph@codesourcery.com>
7876
7877         * config.make.in (NM): New variable.
7878
7879 2012-10-21  Andreas Jaeger  <aj@suse.de>
7880
7881         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
7882         definitions and declarations that are provided by
7883         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7884
7885 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         [BZ #14683]
7888         * elf/Makefile (tests-static): Add tst-leaks1-static.
7889         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
7890         ($(objpfx)tst-leaks1-static): New rule.
7891         ($(objpfx)tst-leaks1-static-mem): Likewise.
7892         (tst-leaks1-static-ENV): New macro.
7893         * elf/dl-open.c (dl_open_worker): Check the main application
7894         only if SHARED is defined.
7895         * elf/tst-leaks1-static.c: New file.
7896
7897 2012-10-20  Andreas Jaeger  <aj@suse.de>
7898
7899         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
7900         generic values for Linux.
7901         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
7902         and declarations that are provided by <bits/fcntl-linux.h> and
7903         include <bits/fcntl-linux.h>.
7904         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7905         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7906
7907 2012-10-20  Roland McGrath  <roland@hack.frob.com>
7908
7909         * io/fcntl.h: Move include of <bits/types.h> to the top and
7910         include it unconditionally.
7911
7912 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7913
7914         * wcsmbs/Makefile (tests-ifunc): New variable.
7915         (tests): Add $(tests-ifunc).
7916         * wcsmbs/test-wcschr-ifunc.c: New file.
7917         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
7918         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
7919         * wcsmbs/test-wcslen-ifunc.c: Likewise.
7920         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
7921         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
7922
7923         * string/Makefile (tests-ifunc): New variable.
7924         (tests): Add $(tests-ifunc).
7925         * string/test-memccpy.c (TEST_NAME): New macro.
7926         * string/test-memchr.c (TEST_NAME): Likewise.
7927         * string/test-memcmp.c (TEST_NAME): Likewise.
7928         * string/test-memcpy.c (TEST_NAME): Likewise.
7929         * string/test-memmem.c (TEST_NAME): Likewise.
7930         * string/test-memmove.c (TEST_NAME): Likewise.
7931         * string/test-memset.c (TEST_NAME): Likewise.
7932         * string/test-rawmemchr.c (TEST_NAME): Likewise.
7933         * string/test-stpcpy.c (TEST_NAME): Likewise.
7934         * string/test-stpncpy.c (TEST_NAME): Likewise.
7935         * string/test-strcasecmp.c (TEST_NAME): Likewise.
7936         * string/test-strcasestr.c (TEST_NAME): Likewise.
7937         * string/test-strcat.c (TEST_NAME): Likewise.
7938         * string/test-strchr.c (TEST_NAME): Likewise.
7939         * string/test-strcmp.c(TEST_NAME): Likewise.
7940         * string/test-strcpy.c (TEST_NAME): Likewise.
7941         * string/test-strcspn.c (TEST_NAME): Likewise.
7942         * string/test-strlen.c (TEST_NAME): Likewise.
7943         * string/test-strncasecmp.c (TEST_NAME): Likewise.
7944         * string/test-strncmp.c (TEST_NAME): Likewise.
7945         * string/test-strncpy.c (TEST_NAME): Likewise.
7946         * string/test-strnlen.c (TEST_NAME): Likewise.
7947         * string/test-strpbrk.c (TEST_NAME): Likewise.
7948         * string/test-strrchr.c (TEST_NAME): Likewise.
7949         * string/test-strspn.c (TEST_NAME): Likewise.
7950         * string/test-strstr.c (TEST_NAME): Likewise.
7951         * string/test-bcopy-ifunc.c: New file.
7952         * string/test-bzero-ifunc.c: Likewise.
7953         * string/test-memccpy-ifunc.c: Likewise.
7954         * string/test-memchr-ifunc.c: Likewise.
7955         * string/test-memcmp-ifunc.c: Likewise.
7956         * string/test-memcpy-ifunc.c: Likewise.
7957         * string/test-memmem-ifunc.c: Likewise.
7958         * string/test-memmove-ifunc.c: Likewise.
7959         * string/test-mempcpy-ifunc.c: Likewise.
7960         * string/test-memset-ifunc.c: Likewise.
7961         * string/test-rawmemchr-ifunc.c: Likewise.
7962         * string/test-stpcpy-ifunc.c: Likewise.
7963         * string/test-stpncpy-ifunc.c: Likewise.
7964         * string/test-strcasecmp-ifunc.c: Likewise.
7965         * string/test-strcasestr-ifunc.c: Likewise.
7966         * string/test-strcat-ifunc.c: Likewise.
7967         * string/test-strchr-ifunc.c: Likewise.
7968         * string/test-strchrnul-ifunc.c: Likewise.
7969         * string/test-strcmp-ifunc.c: Likewise.
7970         * string/test-strcpy-ifunc.c: Likewise.
7971         * string/test-strcspn-ifunc.c: Likewise.
7972         * string/test-strlen-ifunc.c: Likewise.
7973         * string/test-strncasecmp-ifunc.c: Likewise.
7974         * string/test-strncat-ifunc.c: Likewise.
7975         * string/test-strncmp-ifunc.c: Likewise.
7976         * string/test-strncpy-ifunc.c: Likewise.
7977         * string/test-strnlen-ifunc.c: Likewise.
7978         * string/test-strpbrk-ifunc.c: Likewise.
7979         * string/test-strrchr-ifunc.c: Likewise.
7980         * string/test-strspn-ifunc.c: Likewise.
7981         * string/test-strstr-ifunc.c: Likewise.
7982
7983         * debug/Makefile (tests-ifunc): New variable.
7984         (tests): Add $(tests-ifunc).
7985         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
7986         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
7987         * debug/test-stpcpy_chk-ifunc.c: New file.
7988         * debug/test-strcpy_chk-ifunc.c: Likewise.
7989
7990 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7991
7992         [BZ #13601]
7993         * elf/dl-load.c (open_verify): Retry read if the entire ELF
7994         header is not read in.
7995
7996 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
7997
7998         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
7999         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
8000         directly.  Pass built executable to script as
8001         $(built-program-cmd).
8002         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
8003         $testprogram without using LD_LIBRARY_PATH and $ldso.
8004
8005         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
8006         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
8007         $(rtld-installed-name).
8008         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
8009         (rtld_installed_name): Likewise.
8010         (library_path): Likewise.
8011         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
8012         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
8013         $(run-program-prefix) to tst-tables.sh.
8014         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
8015         it to run tst-table-from and tst-table-to.
8016         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
8017         Pass it to tst-table.sh.
8018         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
8019         $(run-program-prefix) to tst-gettext.sh.
8020         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
8021         tst-translit.sh.
8022         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
8023         tst-gettext2.sh.
8024         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
8025         to run tst-gettext.
8026         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
8027         to run tst-gettext2.
8028         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
8029         to run tst-translit.
8030         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
8031         $(run-program-prefix) to tst-mtrace.sh.
8032         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
8033         to run tst-mtrace.
8034         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
8035         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
8036         $(rtld-installed-name).
8037         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
8038         (rtld_installed_name): Likewise.
8039         (run_program_prefix): New variable.  Use it to run wordexp-test.
8040
8041         * Makeconfig (ARCH): Remove all definitions.
8042         (machine): Likewise.
8043         [ARCH]: Remove conditional code.
8044         [!objdir]: Give error.
8045         [!objdir] (objpfx): Remove.
8046         [!objdir] (common-objpfx): Likewise.
8047         [!objdir] (common-objdir): Likewise.
8048         * configure.in (config_makefile): Remove.  Hardcode Makefile in
8049         AC_CONFIG_FILES call.
8050         * configure: Regenerated.
8051
8052         [BZ #13888]
8053         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
8054         or TMPDIR.
8055         (testout): Likewise.
8056
8057         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
8058         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
8059         $(rtld-installed-name).
8060         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
8061         (rtld_installed_name): Likwise.
8062         (runit): Remove function.
8063         (run_getconf): New variable,  Use it for running getconf binary.
8064
8065 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
8066
8067         [BZ #14716]
8068         * string/test-memmem.c (check_result): New function.
8069         (do_one_test): Use it.
8070         (check1): New function.
8071         (test_main): Use it.
8072
8073 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
8074
8075         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
8076
8077 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
8078
8079         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
8080         (_G_LSEEK64): Likewise.
8081         (_G_MMAP64): Likewise.
8082         (_G_FSTAT64): Likewise.
8083         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
8084         (_G_LSEEK64): Likewise.
8085         (_G_MMAP64): Likewise.
8086         (_G_FSTAT64): Likewise.
8087         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
8088         unconditional.  Call __mmap64 directly.
8089         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
8090         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
8091         __lseek64 directly.
8092         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
8093         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
8094         __mmap64 directly.
8095         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
8096         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8097         __lseek64 directly.
8098         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
8099         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
8100         __lseek64 directly.
8101         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
8102         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
8103         __lseek64 directly.
8104         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
8105         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
8106         __fxstat64 directly.
8107         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
8108         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
8109         unconditional.
8110         (freopen64) [!_G_OPEN64]: Remove conditional code.
8111         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
8112         unconditional.
8113         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
8114         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
8115         unconditional.
8116         (ftello64) [!_G_LSEEK64]: Remove conditional code.
8117         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
8118         unconditional.
8119         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8120         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
8121         unconditional.
8122         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8123         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8124         unconditional.
8125         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8126         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8127         unconditional.
8128         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8129         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8130         unconditional.
8131         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8132
8133 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8134
8135         [BZ #12140]
8136         * manual/memory.texi (Malloc Tunable Parameters): Add note
8137         about free list pointers overwriting some perturb bytes.
8138         Wording suggested by Roland McGrath.
8139
8140 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8141
8142         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8143         (lgamma_test): Likewise.
8144         (tgamma_test): Likewise.
8145
8146 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8147
8148         [BZ #14700]
8149         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8150         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8151
8152 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8153
8154         * NEWS: Mention BZ #14716.
8155         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8156         when removing AVAILABLE1_USES_J macro.
8157
8158 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8159
8160         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8161         (__bswap_64): __uint64_t for unsigned 64-bit int.
8162
8163 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8164
8165         * include/string.h (memmem): Declare libc hidden alias.
8166         * string/memmem.c (memmem): Define libc hidden alias.
8167         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8168         __read, __close instead of open, read, close.
8169
8170 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8171
8172         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8173         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8174         global and hidden.
8175         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8176         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8177         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8178         Likewise.
8179         (__rawmemchr_sse2): Likewise.
8180         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8181         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8182         (__strchr_sse2): Likewise.
8183         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8184         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8185         (__strcasecmp_sse2): Likewise.
8186         (__strncasecmp_sse2): Likewise.
8187         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8188         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8189         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8190         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8191         (__strrchr_sse2): Likewise.
8192         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8193         ifunc-impl-list.c.
8194         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8195         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8196         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8197         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8198         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8199         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8200         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8201         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8202         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8203         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8204         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8205         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8206         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8207         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8208         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8209         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8210         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8211         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8212         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8213         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8214         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8215         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8216         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8217         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8218         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8219         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8220         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8221         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8222         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8223         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8224
8225         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8226         global and hidden.
8227         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8228         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8229         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8230         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8231         Likewise.
8232         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8233         Likewise.
8234         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8235         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8236         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8237         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8238         ifunc-impl-list.c.
8239         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8240         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8241         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8242         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8243         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8244         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8245         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8246         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8247         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8248         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8249         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8250         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8251         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8252         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8253         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8254         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8255         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8256         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8257         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8258         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8259         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8260         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8261         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8262         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8263         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8264         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8265         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8266         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8267         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8268         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8269         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8270         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8271         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8272         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8273         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8274         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8275         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8276         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8277         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8278         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8279         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8280
8281         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8282         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8283         * include/ifunc-impl-list.h: New file.
8284         * misc/ifunc-impl-list.c: Likewise.
8285         * misc/Makefile (routines): Add ifunc-impl-list.
8286         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8287         * string/test-string.h: Include <ifunc-impl-list.h>.
8288         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8289         impl_array): New variables.
8290         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8291         are defined.
8292         (test_init): Call __libc_ifunc_impl_list to initialize
8293         func_list if TEST_IFUNC and TEST_NAME are defined.
8294
8295         * string/Makefile (strop-tests): Add bcopy and bzero.
8296         * string/test-bcopy.c: New file.
8297         * string/test-bzero.c: Likewise.
8298         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8299         defined.
8300         * string/test-memset.c: Support bzero test if TEST_BZERO is
8301         defined.
8302         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8303         __libc_memmove.
8304         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8305         __libc_memset.
8306         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8307         of memset.
8308
8309 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8310
8311         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8312         * configure: Regenerated.
8313
8314         * Makeconfig (+link-static-before-libc): Don't include
8315         $(link-static-libc).
8316
8317         * libio/libio.h (_IO_pos_t): Remove.
8318
8319 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8320
8321         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8322         McGrath.
8323
8324 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8325
8326         * crypt/crypt-entry.c: Include fips-private.h.
8327         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8328         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8329         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8330         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8331
8332 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8333
8334         * crypt/crypt-private.h: Include stdbool.h.
8335         (_ufc_setup_salt_r): Return bool.
8336         * crypt/crypt-entry.c: Include errno.h.
8337         (__crypt_r): Return NULL with EINVAL for bad salt.
8338         * crypt/crypt_util.c (bad_for_salt): New.
8339         (_ufc_setup_salt_r): Check that salt is long enough and within
8340         the specified alphabet.
8341         * crypt/badsalttest.c: New file.
8342         * crypt/Makefile (tests): Add it.
8343         ($(objpfx)badsalttest): New.
8344
8345 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8346
8347         * NEWS: Add entry for BZ #14602.
8348
8349 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8350
8351         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
8352         type-generic.
8353         * math/libm-test.inc: Update comment listing what functions and
8354         macros are tested.
8355         (isgreater_test): New function.
8356         (isgreaterequal_test): Likewise.
8357         (isless_test): Likewise.
8358         (islessequal_test): Likewise.
8359         (islessgreater_test): Likewise.
8360         (isunordered_test): Likewise.
8361         (main): Call the new functions.
8362
8363 2012-10-09  Roland McGrath  <roland@hack.frob.com>
8364
8365         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
8366         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
8367         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
8368         * sysdeps/i386/configure: Regenerated.
8369         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
8370         * sysdeps/mach/configure: Regenerated.
8371         * sysdeps/mach/hurd/configure: Regenerated.
8372         * sysdeps/powerpc/configure: Regenerated.
8373         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8374         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8375         * sysdeps/s390/s390-32/configure: Regenerated.
8376         * sysdeps/s390/s390-64/configure: Regenerated.
8377         * sysdeps/sh/configure: Regenerated.
8378         * sysdeps/sparc/configure: Regenerated.
8379         * sysdeps/unix/sysv/linux/configure: Regenerated.
8380         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
8381         * sysdeps/x86_64/configure: Regenerated.
8382
8383         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
8384         defined.  Don't check if MAP is NULL.
8385
8386 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8387
8388         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
8389         (_G_stat64): Likewise.
8390         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
8391         (_G_stat64): Likewise.
8392         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
8393         instead of struct _G_stat64.
8394         * libio/fileops.c (mmap_remap_check): Likewise.
8395         (decide_maybe_mmap): Likewise.
8396         (_IO_new_file_seekoff): Likewise.
8397         (_IO_file_stat): Likewise.
8398         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
8399         _G_off64_t.
8400         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
8401         instead of struct _G_stat64.
8402         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8403
8404 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
8405
8406         [BZ #14602]
8407         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8408         Replace with ...
8409         (CHECK_EOL): New macro.
8410         (two_way_short_needle): Check beginning of haystack for EOL.  Use
8411         CHECK_EOL.
8412         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8413         Replace with CHECK_EOL.
8414         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8415         Replace with CHECK_EOL.
8416
8417 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
8418
8419         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
8420         type-generic.
8421         * math/libm-test.inc: Update comment listing what functions and
8422         macros are tested.
8423         (finite_test): New function.
8424         (isinf_test): Likewise.
8425         (isnan_test): Likewise.
8426         (fpclassify_test): Test subnormal input.
8427         (isfinite_test): Likewise.
8428         (isnormal_test): Likewise.
8429         (main): Call the new functions.
8430
8431 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
8432
8433         [BZ #14660]
8434         * Makerules (%.dynsym): Force C locale when running
8435         $(OBJDUMP) --dynamic-syms.
8436
8437 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
8438
8439         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
8440         <stdint.h>.
8441
8442 2012-10-06  David S. Miller  <davem@davemloft.net>
8443
8444         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
8445         upper 32-bits of the length value in %o2 since we use branch-on-register
8446         tests which consider the entire 64-bit register.
8447
8448 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
8449
8450         * string/test-strstr.c (check2): Add a test for page boundary.
8451
8452 2012-10-05  David S. Miller  <davem@davemloft.net>
8453
8454         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
8455         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
8456         file.
8457         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8458         sysdep_routines.
8459         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8460         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
8461         and bzero when HWCAP_SPARC_CRYPTO is present.
8462
8463 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
8464
8465         [BZ #14602]
8466         * string/test-strstr.c (check2): New function.
8467         (test_main): Call check2.
8468
8469         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
8470         and bug-strchr1.
8471         * string/bug-strcasestr1.c (do_test): Moved to ...
8472         * string/test-strcasestr.c (check1): Here.  New function.
8473         (do_one_test): Break out result checking code into ...
8474         (check_result): This.  New function.
8475         (do_one_test): Call check_result.
8476         (test_main): Call check1.
8477         * string/bug-strchr1.c (do_test): Moved to ...
8478         * string/test-strchr.c (check1): Here.  New function.
8479         (do_one_test): Break out result checking code into ...
8480         (check_result): This.  New function.
8481         (do_one_test): Call check_result.
8482         (test_main): Call check1.
8483         * string/bug-strstr1.c (main): Moved to ...
8484         * string/test-strstr.c (check1): Here.  New function.
8485         (do_one_test): Break out result checking code into ...
8486         (check_result): This.  New function.
8487         (do_one_test): Call check_result.
8488         (test_main): Call check1.
8489         * string/bug-strcasestr1.c: Removed.
8490         * string/bug-strchr1.c: Likewise.
8491         * string/bug-strstr1.c: Likewise.
8492
8493         * elf/Makefile (dl-routines): Add hwcaps.
8494         * elf/dl-support.c (_dl_important_hwcaps): Removed.
8495         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
8496         (_dl_important_hwcaps): Moved to ...
8497         * elf/dl-hwcaps.c: Here.  New file.
8498         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
8499
8500         [BZ #14557]
8501         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
8502         if IS_IN_rtld isn't defined.
8503
8504         * elf/dl-support.c (_dl_sysinfo_map): New.
8505         Include "get-dynamic-info.h" and "setup-vdso.h".
8506         (_dl_non_dynamic_init): Call setup_vdso.
8507         * elf/dynamic-link.h: Don't include <assert.h>.
8508         (elf_get_dynamic_info): Moved to ...
8509         * elf/get-dynamic-info.h: Here.  New file.
8510         * elf/dynamic-link.h: Include "get-dynamic-info.h".
8511         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
8512         * elf/setup-vdso.h: Here.  New file.
8513         * elf/rtld.c: Include "setup-vdso.h".
8514         (dl_main): Call setup_vdso.
8515
8516 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
8517
8518         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
8519         creal in comment listing functions tested.  List finite, isinf,
8520         isnan, isless, islessequal, isgreater, isgreaterequal,
8521         islessgreater, isunordered, lgamma_r and pow10 as functions and
8522         macros not tested.  Mention which functions not tested are aliases
8523         for other functions.  Fix typo.  Note that signs of NaNs are not
8524         tested.
8525
8526         * scripts/config.guess: Update from config.git.
8527         * scripts/config.sub: Likewise.
8528
8529 2012-10-04  Roland McGrath  <roland@hack.frob.com>
8530
8531         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
8532         * misc/madvise.c (madvise): Renamed to __madvise.
8533         Make madvise a weak alias.
8534         * include/sys/mman.h: Declare __madvise.
8535         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
8536         * sysdeps/unix/syscalls.list
8537         (madvise): Make __madvise the strong name, and madvise a weak alias.
8538         * sysdeps/unix/sysv/linux/syscalls.list
8539         (madvise, mmap): Remove redundant entries.
8540         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
8541         * malloc/malloc.c (mtrim): Likewise.
8542         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
8543
8544 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8545
8546         * sysdeps/mach/hurd/dl-cache.c: File removed.
8547         * config.h.in (USE_LDCONFIG): New #undef.
8548         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
8549         * configure: Regenerated.
8550         * elf/Makefile (dl-routines): Add dl-cache only under
8551         [$(use-ldconfig) = yes].
8552         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
8553         cache on [USE_LDCONFIG].
8554         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
8555         [USE_LDCONFIG].
8556         * elf/rtld.c (dl_main): Likewise.
8557
8558 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
8559
8560         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
8561         _SC_LEVEL4_CACHE_LINESIZE.
8562
8563 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8564
8565         * sysdeps/unix/bsd/confstr.h: File removed.
8566
8567 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
8568
8569         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
8570         sys/sdt-config.h.
8571
8572 2012-10-02  Roland McGrath  <roland@hack.frob.com>
8573
8574         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
8575         Make 'mapoff' field ElfW(Off) rather than off_t.
8576
8577 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8578
8579         * nscd/Makefile: Remove nscd-cflags and all its users.
8580         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
8581         (CFLAGS-nonlib): Add compiler flags for nscd modules.
8582
8583         [BZ #10631]
8584         * malloc.c (malloc_printerr): Clarify error message.
8585
8586 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8587
8588         [BZ #14648]
8589         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8590         Set bit_FMA_Usable if FMA is supported.
8591         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
8592         macro.
8593         (bit_FMA4_Usable): Updated.
8594         (index_FMA_Usable): New macro.
8595         (CPUID_FMA): Likewise
8596         (HAS_FMA): Defined with bit_FMA_Usable.
8597
8598 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8599
8600         * bits/types.h (__swblk_t): Type removed.
8601         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
8602         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
8603         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8604         (__SWBLK_T_TYPE): Likewise.
8605         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8606         (__SWBLK_T_TYPE): Likewise.
8607         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8608         (__SWBLK_T_TYPE): Likewise.
8609         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8610         (__SWBLK_T_TYPE): Likewise.
8611
8612 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
8613             Honza Horak <hhorak@redhat.com>
8614
8615         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
8616         (xdr_mapname): Use YPMAXMAP as maxsize.
8617         (xdr_peername): Use YPMAXPEER as maxsize.
8618         (xdr_keydat): Use YPAXRECORD as maxsize.
8619         (xdr_valdat): Use YPMAXRECORD as maxsize.
8620
8621 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8622
8623         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
8624
8625         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
8626         * csu/init-first.c: ... here.
8627         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
8628         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
8629         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
8630         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
8631         * sysdeps/i386/init-first.c: File removed.
8632         * sysdeps/sh/init-first.c: File removed.
8633
8634 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
8635
8636         [BZ #14645]
8637         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
8638         if x * y might underflow to zero and z is zero.
8639         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8640         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8641         * math/libm-test.inc (min_subnorm_value): New variable.
8642         (fma_test): Add more tests.
8643         (fma_test_towardzero): Likewise.
8644         (fma_test_downward): Likewise
8645         (fma_test_upward): Likewise.
8646         (initialize): Set min_subnorm_value.
8647
8648 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
8649
8650         [BZ #14638]
8651         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
8652         0 + 0.
8653         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
8654         mode for addition resulting in exact zero.
8655         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
8656         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
8657         exact 0 + 0.
8658         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8659         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8660         * math/libm-test.inc (fma_test): Add more tests.
8661         (fma_test_towardzero): New function.
8662         (fma_test_downward): Likewise.
8663         (fma_test_upward): Likewise.
8664         (main): Call the new functions.
8665
8666 2012-09-28  David S. Miller  <davem@davemloft.net>
8667
8668         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
8669
8670 2012-09-28  Roland McGrath  <roland@hack.frob.com>
8671
8672         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
8673         instead of SIGALRM.
8674
8675         * sysdeps/gnu/_G_config.h: Moved to ...
8676         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
8677         * sysdeps/mach/hurd/_G_config.h: Moved to ...
8678         * sysdeps/generic/_G_config.h: ... here.
8679
8680         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
8681
8682         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
8683
8684         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
8685         Conditionalize target on [libnss_test1.so-version].
8686
8687         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
8688
8689         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
8690         (elfobjdir): Move out of conditionals.
8691
8692         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
8693         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
8694         (__nss_lookup_function): Conditionalize label remove_from_tree on
8695         [!DO_STATIC_NSS || SHARED], matching its only use.
8696
8697 2012-09-28  David S. Miller  <davem@davemloft.net>
8698
8699         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
8700         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
8701         file.
8702         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8703         sysdep_routines.
8704         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8705         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
8706         when HWCAP_SPARC_CRYPTO is present.
8707
8708 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8709
8710         * io/tst-mknodat.c: Create a FIFO instead of a socket.
8711
8712 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
8713
8714         [BZ #6530]
8715         * stdio-common/vfprintf.c (process_string_arg): Revert
8716         2000-07-22 change.
8717
8718 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
8719
8720         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
8721         for testcase.
8722         * stdio-common/tst-sprintf.c: Include <locale.h>
8723         (main): Test sprintf's handling of incomplete multibyte
8724         characters.
8725
8726 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8727
8728         * elf/dl-runtime.c (VERSYMIDX): Removed.
8729         * elf/dl-version.c (VERSYMIDX): Likewise.
8730         * elf/do-rel.h (VERSYMIDX): Likewise.
8731         (VALIDX): Likewise.
8732         * elf/dynamic-link.h (VERSYMIDX): Likewise.
8733         * elf/rtld.c (VALIDX): Likewise.
8734         (ADDRIDX): Likewise.
8735         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
8736         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
8737         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
8738         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
8739         (VALIDX): Likewise.
8740         (ADDRIDX): Likewise.
8741
8742 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8743
8744         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
8745
8746 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
8747
8748         [BZ #11438]
8749         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
8750         to global scope.
8751         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
8752         addresses are in the same scope as 192.0.2/24.
8753         * posix/gai.conf: Document new scope table defaults.
8754
8755 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8756
8757         [BZ #5298]
8758         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
8759         for ftell.  Compute offsets from write pointers instead.
8760         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8761
8762 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8763
8764         [BZ #14543]
8765         * libio/Makefile (tests): New test case tst-fseek.
8766         * libio/tst-fseek.c: New test case to verify that fseek/ftell
8767         combination works in wide mode.
8768         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
8769         state when the external buffer state changes.
8770
8771 2012-09-27  David S. Miller  <davem@davemloft.net>
8772
8773         [BZ #14376]
8774         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
8775         pass reloc->r_addend in as the 'high' argument to
8776         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
8777
8778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8779
8780 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8781
8782         * rt/tst-aio2.c: Include <pthread.h>.
8783         * rt/tst-aio3.c: Likewise.
8784
8785 2012-09-27  Steve Ellcey  <sellcey@mips.com>
8786
8787         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
8788
8789 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
8790
8791         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
8792         contents on [SHARED].
8793
8794 2012-09-26  Marek Polacek  <polacek@redhat.com>
8795
8796         [BZ #14530]
8797         [BZ #13741]
8798         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
8799         for C++ and GCC <4.3 as well as for non GCC compilers.
8800
8801 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
8802
8803         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8804
8805 2012-09-25  Roland McGrath  <roland@hack.frob.com>
8806
8807         * Makefile.in (all, install): Declare with .PHONY.
8808         Reported by Michael Hope <michael.hope@linaro.org>.
8809
8810 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8811
8812         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
8813         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
8814         system header.
8815         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
8816         Likewise.
8817         (sydep_routines): Add the new and the internal functions.
8818         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
8819         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
8820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
8821         (GLIBC_2.17): Add the new function.
8822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
8823         (GLIBC_2.17): Likewise.
8824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
8825         (GLIBC_2.17): Likewise.
8826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
8827         (GLIBC_2.17): Likewise.
8828         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
8829
8830 2012-09-25  Alan Modra  <amodra@gmail.com>
8831
8832         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8833         Add release barrier before setting once_control to say
8834         initialisation is done.  Add hints on lwarx.  Use macro in
8835         place of isync.
8836         (clear_once_control): Add release barrier.
8837
8838 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8839
8840         [BZ #13629]
8841         * math/s_clog.c (__clog): Handle more values close to |z| = 1
8842         specially.
8843         * math/s_clog10.c (__clog10): Likewise.
8844         * math/s_clog10f.c (__clog10f): Likewise.
8845         * math/s_clog10l.c (__clog10l): Likewise.
8846         * math/s_clogf.c (__clogf): Likewise.
8847         * math/s_clogl.c (__clogl): Likewise.
8848         * math/Makefile (libm-calls): Add x2y2m1.
8849         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
8850         (__x2y2m1): Likewise.
8851         (__x2y2m1l): Likewise.
8852         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
8853         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
8854         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8855         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8856         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
8857         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8858         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
8859         * sysdeps/i386/fpu/libm-test-ulps: Update.
8860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8861
8862         [BZ #14621]
8863         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
8864         int as type of variable DEPTH.
8865         (glob): Use size_t instead of int as type of variables NEWCOUNT
8866         and OLD_PATHC.
8867
8868 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8869
8870         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
8871         Add s_sincosf-sse2.
8872         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
8873         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
8874         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
8875         macros for using routine as __sincosf_ia32.
8876         Use macro for function declaration and weak_alias.
8877         * sysdeps/i386/fpu/libm-test-ulps: Update.
8878
8879         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
8880         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8881
8882         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
8883         subnormal argument.
8884         * math/s_cexpf.c (__cexpf): Likewise.
8885         * math/s_csinf.c (__csinf): Likewise.
8886         * math/s_csinhf.c (__csinhf): Likewise.
8887         * math/s_ctanf.c (__ctanf): Likewise.
8888         * math/s_ctanhf.c (__ctanhf): Likewise.
8889         * math/s_ccosh.c (__ccoshf): Likewise.
8890         * math/s_cexp.c (__cexpl): Likewise.
8891         * math/s_csin.c (__csin): Likewise.
8892         * math/s_csinh.c (__csinh): Likewise.
8893         * math/s_ctan.c (__ctan): Likewise.
8894         * math/s_ctanh.c (ctanh): Likewise.
8895         * math/s_ccoshl.c (__ccoshl): Likewise.
8896         * math/s_cexpl.c (__cexpl): Likewise.
8897         * math/s_csinl.c (__csinl): Likewise.
8898         * math/s_csinhl.c (__csinhl): Likewise.
8899         * math/s_ctanl.c (__ctanl): Likewise.
8900         * math/s_ctanhl.c (__ctanhl): Likewise.
8901
8902 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8903
8904         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
8905         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
8906         (_IO_off_t): Define to __off_t, not _G_off_t.
8907         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
8908         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
8909         (_IO_wint_t): Define to wint_t, not _G_wint_t.
8910         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
8911         type of __dummy and __dummy2 fields.
8912         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
8913         (_G_ssize_t): Likewise.
8914         (_G_off_t): Likewise.
8915         (_G_pid_t): Likewise.
8916         (_G_uid_t): Likewise.
8917         (_G_wchar_t): Likewise.
8918         (_G_wint_t): Likewise.
8919         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
8920         (_G_ssize_t): Likewise.
8921         (_G_off_t): Likewise.
8922         (_G_pid_t): Likewise.
8923         (_G_uid_t): Likewise.
8924         (_G_wchar_t): Likewise.
8925         (_G_wint_t): Likewise.
8926         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
8927         (_G_ssize_t): Likewise.
8928         (_G_off_t): Likewise.
8929         (_G_pid_t): Likewise.
8930         (_G_uid_t): Likewise.
8931         (_G_wchar_t): Likewise.
8932         (_G_wint_t): Likewise.
8933
8934 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8935
8936         * malloc/arena.c: Include malloc-sysdep.h.
8937         (shrink_heap): Use check_may_shrink_heap to decide if madvise
8938         is sufficient to shrink the heap or an unmap is needed.
8939         * sysdeps/generic/malloc-sysdep.h: New file.  Define
8940         new function check_may_shrink_heap.
8941         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
8942         new function check_may_shrink_heap.
8943
8944 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8945
8946         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
8947         comments.
8948
8949 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
8950
8951         * catgets/test-gencat.sh: Add "set -e".
8952         * elf/tst-pathopt.sh: Likewise.
8953         * grp/tst_fgetgrent.sh: Likewise.
8954         * iconvdata/run-iconv-test.sh: Likewise.
8955         * intl/tst-gettext.sh: Likewise.
8956         * intl/tst-gettext2.sh: Likewise.
8957         * intl/tst-gettext4.sh: Likewise.
8958         * intl/tst-gettext6.sh: Likewise.
8959         * intl/tst-translit.sh: Likewise.
8960         * io/ftwtest-sh: Likewise.
8961         * libio/test-freopen.sh: Likewise.
8962         * malloc/tst-mtrace.sh: Likewise.
8963         * posix/globtest.sh: Likewise.
8964         * posix/tst-getconf.sh: Likewise.
8965         * posix/wordexp-tst.sh: Likewise.
8966         * stdio-common/tst-printf.sh: Likewise.
8967         * stdio-common/tst-unbputc.sh: Likewise.
8968         * stdlib/tst-fmtmsg.sh: Likewise.
8969         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8970         * catgets/Makefile: Do not specify -e option when running
8971         testsuite shell scripts.
8972         * elf/Makefile: Likewise.
8973         * grp/Makefile: Likewise.
8974         * iconvdata/Makefile: Likewise.
8975         * intl/Makefile: Likewise.
8976         * io/Makefile: Likewise.
8977         * libio/Makefile: Likewise.
8978         * malloc/Makefile: Likewise.
8979         * posix/Makefile: Likewise.
8980         * stdio-common/Makefile: Likewise.
8981         * stdlib/Makefile: Likewise.
8982         * sysdeps/x86_64/Makefile: Likewise.
8983
8984         * io/ftwtest-sh: Add copyright header.
8985         * posix/globtest.sh: Likewise.
8986         * posix/tst-getconf.sh: Likewise.
8987         * posix/wordexp-tst.sh: Likewise.
8988         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8989
8990 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
8991
8992         [BZ #13679]
8993         * Makeconfig (+link): Defined as $(+link-static) if
8994         $(build-shared) isn't yes.
8995         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
8996         isn't yes.
8997         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
8998
8999         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
9000
9001         [BZ #14562]
9002         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
9003         new chunk size with MALLOC_ALIGN_MASK.
9004
9005 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
9006
9007         [BZ #5044]
9008         * stdio-common/printf_fphex.c: Include <stdbool.h> and
9009         <rounding-mode.h>.
9010         (__printf_fphex): Determine rounding using get_rounding_mode and
9011         round_away.
9012         * stdio-common/tst-printf-round.c (struct hex_test): New
9013         structure.
9014         (hex_tests): New variable.
9015         (test_hex_in_one_mode): New function.
9016         (do_test): Also run tests for hex float output.
9017
9018 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
9019
9020         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9021         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9022         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
9023         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
9024         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
9025         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
9026         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9027         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
9028
9029 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
9030
9031         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
9032         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
9033         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
9034         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
9035
9036 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
9037
9038         [BZ #14579]
9039         * elf/rtld.c (dl_main): Limit the check for self loading to normal
9040         mode only.
9041         * elf/tst-rtld-load-self.sh: New test.
9042         * elf/Makefile: Run it.
9043
9044 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
9045
9046         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
9047         (tst-writev-ENV): Remove.
9048         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
9049
9050 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
9051
9052         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
9053
9054 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
9055
9056         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
9057         unconditional.
9058         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
9059         Likewise.
9060         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
9061         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
9062         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
9063         Likewise.
9064
9065 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9066
9067         [BZ #14587]
9068         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
9069         * config.make.in (have-cpp-asm-debuginfo): Removed.
9070         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
9071         * configure: Regenerated.
9072
9073 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
9074
9075         [BZ #5044]
9076         * stdio-common/printf_fp.c: Include <stdbool.h> and
9077         <rounding-mode.h>.
9078         (___printf_fp): Determine rounding using get_rounding_mode and
9079         round_away.
9080         * stdio-common/tst-printf-round.c: New file.
9081         * stdio-common/Makefile (tests): Add tst-printf-round.
9082         (link-libm): New variable.
9083         ($(objpfx)tst-printf-round): Depend in $(link-libm).
9084
9085 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9086
9087         [BZ #14576]
9088         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
9089         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
9090         Likewise.
9091         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
9092         Likewise.
9093
9094 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
9095
9096         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
9097         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9098         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9099         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
9100
9101 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
9102
9103         [BZ #14518]
9104         * include/rounding-mode.h: New file.
9105         * sysdeps/generic/get-rounding-mode.h: Likewise.
9106         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
9107         * stdlib/strtod_l.c: Include <rounding-mode.h>.
9108         (MAX_VALUE): New macro.
9109         (MIN_VALUE): Likewise.
9110         (overflow_value): New function.
9111         (underflow_value): Likewise.
9112         (round_and_return): Use overflow_value and underflow_value to
9113         determine return values in overflow and underflow cases.  Use
9114         round_away to determine rounding depending on rounding mode.
9115         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
9116         determine return values in overflow and underflow cases.
9117         * stdlib/tst-strtod-round.c: Include <fenv.h>.
9118         (struct test_results): New structure.
9119         (struct test): Use struct test_results to store expected results
9120         for all rounding modes.
9121         (TEST): Include expected results for all rounding modes.
9122         (test_in_one_mode): New function.
9123         (do_test): Use test_in_one_mode to compute and check results.
9124         Check results for all rounding modes.
9125         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9126         $(link-libm).
9127
9128 2012-12-09  Allan McRae  <allan@archlinux.org>
9129
9130         * sysdeps/i386/fpu/libm-test-ulps: Update
9131
9132 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9133
9134         * sysdeps/generic/_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/gnu/_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         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9151         (_G_int32_t): Likewise.
9152         (_G_uint16_t): Likewise.
9153         (_G_uint32_t): Likewise.
9154         (_G_HAVE_BOOL): Likewise.
9155         (_G_HAVE_ATEXIT): Likewise.
9156         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9157         (_G_HAVE_IO_FILE_OPEN): Likewise.
9158
9159 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9160
9161         * csu/libc-tls.c: Update copyright years.
9162
9163 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9164
9165         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9166         [!_G_USING_THUNKS]: Remove conditional code.
9167         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9168         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9169
9170         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9171         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9172         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9173         (_G_VTABLE_LABEL_PREFIX): Likewise.
9174         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9175         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9176         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9177         (_G_VTABLE_LABEL_PREFIX): Likewise.
9178         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9179         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9180         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9181         (_G_VTABLE_LABEL_PREFIX): Likewise.
9182         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9183
9184 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9185
9186         * libio/Makefile: Include ../Makeconfig before tests.
9187         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9188         only if $(build-shared) is yes.
9189
9190         * iconv/gconv_db.c: Update copyright years.
9191
9192 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9193
9194         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9195         unwind info if defined PIC. Fix special cases description.
9196         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9197
9198         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9199         DP_HI_MASK entry.
9200         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9201
9202 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9203
9204         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9205
9206         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9207         is NULL.
9208
9209         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9210         (LDLIBS-tst-chk4): This.
9211         (LDFLAGS-tst-chk5): Renamed to ...
9212         (LDLIBS-tst-chk5): This.
9213         (LDFLAGS-tst-chk6): Renamed to ...
9214         (LDLIBS-tst-chk6): This.
9215         (LDFLAGS-tst-lfschk4): Renamed to ...
9216         (LDLIBS-tst-lfschk4): This.
9217         (LDFLAGS-tst-lfschk5): Renamed to ...
9218         (LDLIBS-tst-lfschk5): This.
9219         (LDFLAGS-tst-lfschk6): Renamed to ...
9220         (LDLIBS-tst-lfschk6): This.
9221
9222         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9223         on $(common-objpfx)soversions.mk.
9224
9225 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9226
9227         [BZ #10014]
9228         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9229         example host name.
9230
9231 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9232
9233         * malloc/arena.c (arena_get_retry): New function that gets
9234         another arena for the caller to try its request on.
9235         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9236         current arena cannot fulfill the request.
9237         (__libc_memalign): Likewise.
9238         (__libc_memalign): Likewise.
9239         (__libc_pvalloc): Likewise.
9240         (__libc_calloc): Likewise.
9241
9242 2012-09-05  John Tobey  <john.tobey@gmail.com>
9243
9244         [BZ #13542]
9245         * manual/arith.texi (Operations on Complex): Fix description
9246         of carg branch cut.
9247
9248 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9249
9250         [BZ #10014]
9251         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9252         host name.
9253
9254         [BZ #10038]
9255         * manual/memory.texi (Memory): Make order of menu items match
9256         order of sections.
9257
9258 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9259
9260         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9261         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9262         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9263
9264 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9265
9266         * csu/libc-tls.c (static_dtv): Renamed to ...
9267         (_dl_static_dtv): This.  Make it global.
9268         (_dl_initial_dtv): Removed.
9269         (__libc_setup_tls): Updated.
9270         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9271         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9272         DL_INITIAL_DTV.
9273
9274 2012-09-06  Petr Machata  <pmachata@redhat.com>
9275
9276         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9277         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9278         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9279         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9280
9281 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9282
9283         [BZ #14545]
9284         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9285         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9286         freeing dtv[-1].
9287
9288 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9289
9290         [BZ #14544]
9291         * Makeconfig (link-static-before-libc): Replace $(+prector)
9292         with $(+prectorT).
9293         (link-static-after-libc): Replace $(+postctor) with
9294         $(+postctorT).
9295         (link-bounded): Replace $(+prector)/$(+postctor) with
9296         $(+prectorT)/$(+postctorT).
9297         (+prectorT): New macro.
9298         (+postctorT): Likewise.
9299
9300 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9301
9302         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9303         (round_str): Handle values above the maximum for IBM long double
9304         as inexact.
9305         * stdlib/tst-strtod-round.c (tests): Regenerated.
9306
9307 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9308
9309         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9310         assembler flag.
9311         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9312         zarch_nohighgprs around the zarch optimized routines.
9313         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9314         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9315         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9316         for zarch.
9317
9318 2012-09-05  David S. Miller  <davem@davemloft.net>
9319
9320         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9321
9322         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9323         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9324         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9325         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9326         entries.
9327
9328 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9329
9330         * malloc/arena.c: Fold copyright years.
9331         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9332
9333 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9334
9335         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9336
9337 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9338
9339         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9340
9341 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9342
9343         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
9344         change internal state upon failure.
9345
9346 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9347
9348         * malloc/mcheck.c (mcheck_check_all): Fix typo.
9349         * malloc/memusage.c (mmap): Likewise.
9350         (mmap64, mremap): Likewise.  Adjust name in comment.
9351
9352 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9353
9354         * libio/fileops.c: Fix typos in comments.
9355         * libio/oldfileops.c: Likewise.
9356         * libio/wfileops.c: Likewise.
9357
9358 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9359
9360         [BZ #1349]
9361         * malloc/Makefile (tests): Add tst-malloc-usable test case.
9362         (tst-malloc-usable-ENV): Set environment for test case.
9363         * malloc/hooks.c (malloc_check_get_size): New function to get
9364         requested size.
9365         * malloc/malloc.c (musable): Use malloc_check_get_size.
9366         * malloc/tst-malloc-usable.c: New test case.
9367
9368 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9369
9370         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
9371
9372 2012-09-05  Allan McRae  <allan@archlinux.org>
9373
9374         [BZ #13966]
9375         * configure.in (CXX_SYSINCLUDES): Use compiler output to
9376         determine header location.
9377         * configure: Regenerated.
9378
9379 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9380
9381         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
9382         float format.
9383         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
9384         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
9385         format.
9386         (test): Regenerate.
9387
9388 2012-09-04  David S. Miller  <davem@davemloft.net>
9389
9390         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
9391         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
9392         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
9393
9394 2012-09-04  Florian Weimer  <fweimer@redhat.com>
9395
9396         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
9397         failures.
9398
9399         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
9400
9401 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
9402
9403         [BZ #9914]
9404         * libio/iogetdelim.c: Include <limits.h>.
9405         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
9406         + len + 1 would overflow.
9407
9408 2012-09-03  Andreas Jaeger  <aj@suse.de>
9409
9410         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9411         * sysdeps/i386/fpu/libm-test-ulps: Update.
9412
9413 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9414
9415         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9416         Add s_sinf-sse2, s_conf-sse2.
9417
9418         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
9419         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
9420         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
9421         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
9422
9423         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
9424         for using routine as __sinf_ia32.
9425         Use macro for function declaration and weak_alias.
9426         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
9427         for using routine as __cosf_ia32.
9428         Use macro for function declaration and weak_alias.
9429
9430         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
9431         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
9432
9433         * sysdeps/x86_64/fpu/s_sinf.S: New file.
9434         * sysdeps/x86_64/fpu/s_cosf.S: New file.
9435         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9436
9437         * math/libm-test.inc (cos_test): Add more test cases.
9438         (sin_test): Likewise.
9439         (sincos_test): Likewise.
9440
9441 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9442
9443         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
9444         (IFUNC_RESOLVE): Make pointers to the specialized implementations
9445         hidden.
9446         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
9447
9448 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
9449
9450         [BZ #14538]
9451         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
9452         first element of the GOT.
9453         (elf_machine_load_address): Return the difference between
9454         the runtime address of _DYNAMIC and elf_machine_dynamic ().
9455
9456 2012-09-01  Allan McRae  <allan@archlinux.org>
9457
9458         [BZ #13412]
9459         * configure.in (AWK): Require gawk version 3.0 or later.
9460         * configure: Regenerated.
9461
9462 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
9463
9464         * sysdeps/unix/sysv/linux/kernel-features.h
9465         (__ASSUME_POSIX_CPU_TIMERS): Remove.
9466         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
9467         [__NR_clock_getres]: Make code unconditional.
9468         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
9469         (clock_getcpuclockid): Remove code left unreachable by removal of
9470         conditionals.
9471         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
9472         code unconditional.
9473         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9474         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9475         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
9476         Make code unconditional.
9477         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9478         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9479         * sysdeps/unix/sysv/linux/clock_settime.c
9480         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
9481         conditional code.
9482         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
9483         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9484
9485 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
9486
9487         [BZ #14476]
9488         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
9489         scripts/test-installation.pl.
9490
9491         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
9492         and $ld_so_version if it is set.
9493
9494 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9495
9496         [BZ #14516]
9497         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
9498         failure if reading from procfs failed.
9499         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
9500
9501 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9502
9503         * sysdeps/unix/sysv/linux/kernel-features.h
9504         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
9505         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9506         Remove conditional code.
9507         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9508         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
9509         Remove conditional code.
9510         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9511         * sysdeps/unix/sysv/linux/i386/fxstat.c
9512         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9513         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9514         * sysdeps/unix/sysv/linux/i386/fxstatat.c
9515         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9516         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9517         * sysdeps/unix/sysv/linux/i386/lxstat.c
9518         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9519         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9520         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
9521         Remove conditional code.
9522         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9523         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9524         Remove conditional code.
9525         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9526         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
9527         <kernel-features.h>.
9528         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
9529         Remove.
9530         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
9531         Remove conditional code.
9532         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9533         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
9534         Remove conditional.
9535
9536 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
9537
9538         [BZ #5400]
9539         * NEWS: Add fixed bug number.
9540
9541 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9542
9543         [BZ #14519]
9544         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
9545         underflowing exponent in case of negative sign.
9546         * stdlib/tst-strtod-round-data: Add more tests.
9547         * stdlib/tst-strtod-round.c (tests): Regenerated.
9548
9549         [BZ #3479]
9550         * stdlib/strtod_l.c (NDIG): Remove.
9551         (HEXNDIG): Likewise.
9552         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
9553         smallest representable value.
9554         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
9555         lie within an exact representation of 1/2 ulp of the result.
9556         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
9557         unconditionally.
9558         (TENS_P9_IDX): Define unconditionally.
9559         (TENS_P9_SIZE): Likewise.
9560         (TENS_P10_IDX): Likewise.
9561         (TENS_P10_SIZE): Likewise.
9562         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
9563         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
9564         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
9565         entries for 10^2^13 and 10^2^14.
9566         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
9567         (TENS_P13_IDX): Define.
9568         (TENS_P13_SIZE): Likewise.
9569         (TENS_P14_IDX): Likewise.
9570         (TENS_P14_SIZE): Likewise.
9571         (_fpioconst_pow10): Change array size to
9572         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
9573         unconditional.
9574         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
9575         1024]: Add entries for 10^2^13 and 10^2^14.
9576         [LAST_POW10 > _LAST_POW10]: Remove #error.
9577         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
9578         (_fpioconst_pow10): Change array size to
9579         FPIOCONST_POW10_ARRAY_SIZE.
9580         * stdlib/gen-fpioconst.c: New file.
9581         * stdlib/gen-tst-strtod-round.c: Likewise.
9582         * stdlib/tst-strtod-round-data: Likewise.
9583         * stdlib/tst-strtod-round.c: Likewise.
9584         * stdlib/Makefile (tests): Add tst-strtod-round.
9585
9586         [BZ #14459]
9587         * stdlib/strtod_l.c: Include <stdint.h>.
9588         (NDEBUG): Do not define.
9589         (round_and_return): Change EXPONENT parameter to type intmax_t.
9590         Rearrange calculations to avoid internal overflow possibilities.
9591         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
9592         Rearrange calculations to avoid internal overflow possibilities.
9593         Assert that number fits inside MPNSIZE limbs.
9594         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
9595         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
9596         calculations and add assertions to avoid internal overflow
9597         possibilities.  Add casts to avoid signed/unsigned operations.
9598         * stdlib/tst-strtod-overflow.c: New file.
9599         * stdlib/Makefile (tests): Add tst-strtod-overflow.
9600
9601 2012-08-25  Marek Polacek  <polacek@redhat.com>
9602
9603         * time/time.h: Fix some typos in comments.
9604
9605 2012-08-23  Roland McGrath  <roland@hack.frob.com>
9606
9607         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
9608         * posix/tst-rfc3484-2.c: Likewise.
9609         * posix/tst-rfc3484-3.c: Likewise.
9610
9611 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
9612
9613         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
9614         (EF_ARM_ABI_FLOAT_HARD): Likewise.
9615
9616 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
9617
9618         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
9619         #include of fxstatat64.c.
9620
9621 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9622
9623         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
9624         * shadow/getspent_r.c: Likewise.
9625         * shadow/getspnam.c: Likewise.
9626         * shadow/getspnam_r.c: Likewise.
9627         * gshadow/getsgent.c: Likewise.
9628         * gshadow/getsgent_r.c: Likewise.
9629         * gshadow/getsgnam.c: Likewise.
9630         * gshadow/getsgnam_r.c: Likewise.
9631         * inet/getnetbyad.c: Likewise.
9632         * inet/getnetbyad_r.c: Likewise.
9633         * inet/getnetbynm.c: Likewise.
9634         * inet/getnetbynm_r.c: Likewise.
9635         * inet/getnetent.c: Likewise.
9636         * inet/getnetent_r.c: Likewise.
9637         * inet/getproto.c: Likewise.
9638         * inet/getproto_r.c: Likewise.
9639         * inet/getprtent.c: Likewise.
9640         * inet/getprtent_r.c: Likewise.
9641         * inet/getprtname.c: Likewise.
9642         * inet/getprtname_r.c: Likewise.
9643         * inet/getrpcbyname.c: Likewise.
9644         * inet/getrpcbyname_r.c: Likewise.
9645         * inet/getrpcbynumber.c: Likewise.
9646         * inet/getrpcbynumber_r.c: Likewise.
9647         * inet/getrpcent.c: Likewise.
9648         * inet/getrpcent_r.c: Likewise.
9649         * inet/getaliasent.c: Likewise.
9650         * inet/getaliasent_r.c: Likewise.
9651         * inet/getaliasname.c: Likewise.
9652         * inet/getaliasname_r.c: Likewise.
9653         * nscd/getgrgid_r.c: Likewise.
9654         * nscd/getgrnam_r.c: Likewise.
9655         * nscd/gethstbyad_r.c: Likewise.
9656         * nscd/gethstbynm3_r.c: Likewise.
9657         * nscd/getpwnam_r.c: Likewise.
9658         * nscd/getpwuid_r.c: Likewise.
9659         * nscd/getsrvbynm_r.c: Likewise.
9660         * nscd/getsrvbypt_r.c: Likewise.
9661         * nscd/gai.c: Likewise.
9662
9663         * configure.in (build_nscd): New substituted variable, set
9664         by --disable-build-nscd and defaults to $use_nscd.
9665         * configure: Regenerated.
9666         * config.make.in (build-nscd): New substituted variable.
9667         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
9668         Change conditional to require [$(build-nscd) = yes] as well.
9669         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
9670
9671         [BZ# 13696]
9672         * configure.in (use_nscd): New substituted variable, set by
9673         --disable-nscd.  If enabled, define USE_NSCD.
9674         * configure: Regenerated.
9675         * config.h.in: Add USE_NSCD.
9676         * config.make.in (use-nscd): New substituted variable.
9677         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
9678         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
9679         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
9680         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
9681         (CFLAGS-getgrnam_r.c): Likewise.
9682         (CFLAGS-initgroups.c): Likewise.
9683         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
9684         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
9685         Variables removed.
9686         * inet/getnetgrent_r.c
9687         (nscd_setnetgrent): New function, broken out of ...
9688         (setnetgrent): ... here.  Call it.
9689         (innetgr): Conditionalize nscd bits on [USE_NSCD].
9690         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
9691         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
9692         * nscd/Makefile (routines, aux): Move definitions after include of
9693         Makeconfig.  Conditionalize on [$(use-nscd) != no].
9694         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
9695         Conditionalize on [USE_NSCD].
9696         (is_nscd, nscd_init_cb): Likewise.
9697         (nss_load_library): Conditionalize init callback on [USE_NSCD].
9698         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
9699         * nss/nss_db/db-init.c: Likewise.
9700         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
9701         [USE_NSCD].
9702         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
9703         (make_request): Use it.
9704         (cache_valid_p): New function.
9705         (__check_pf): Use it.
9706         * NEWS: Add item for --disable-nscd.
9707
9708 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
9709
9710         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
9711         to support sed >= 4.2.1-20-ga9bf076.
9712         * configure: Regenerated.
9713
9714 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9715
9716         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
9717         Conditionalize whole body on [IREL].
9718
9719 2012-08-22  Jeff Law <law@redhat.com>
9720
9721         [BZ #14505]
9722         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
9723         if the family is PF_UNSPEC.
9724
9725 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
9726
9727         * Makerules (lib-version): Rename from V.
9728         (install-lib-nosubdir): Change V to lib-version.
9729
9730 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
9731
9732         [BZ #14252]
9733         * powerpc32/power6/wcschr.c: New file.
9734         * powerpc32/power6/wcscpy.c: New file.
9735         * powerpc32/power6/wcsrchr.c: New file.
9736         * powerpc64/power6/wcschr.c: New file.
9737         * powerpc64/power6/wcscpy.c: New file.
9738         * powerpc64/power6/wcsrchr.c: New file.
9739
9740 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9741
9742         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
9743         (two_way_short_needle): Use it.
9744         * string/strstr.c (AVAILABLE1_USES_J): Define.
9745         * string/strcasestr.c: Likewise.
9746
9747         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
9748         array references.
9749         * string/strcasestr.c (TOLOWER): Make side-effect safe.
9750
9751         [BZ #11607]
9752         * NEWS: Add an entry.
9753         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
9754         define their defaults.
9755         (two_way_short_needle): Detect end-of-string on-the-fly.
9756         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
9757         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
9758         * string/bug-strcasestr1.c: New test.
9759         * string/Makefile: Run it.
9760
9761 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9762
9763         [BZ #11607]
9764         * string/str-two-way.h (two_way_short_needle): Optimize matching of
9765         the first character.
9766
9767 2012-08-21  Roland McGrath  <roland@hack.frob.com>
9768
9769         * csu/elf-init.c (__libc_csu_irel): Function removed.
9770         * csu/libc-start.c (apply_irel): New function.
9771         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
9772
9773 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
9774
9775         * sysdeps/unix/sysv/linux/kernel-features.h
9776         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
9777         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
9778         <kernel-features.h>.
9779         [__NR_fadvise64_64]: Make code unconditional.
9780         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
9781         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9782         !__NR_fadvise64_64)]: Likewise.
9783         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9784         !__NR_fadvise64_64))]: Likewise.
9785         [__NR_fadvise64]: Make code unconditional.
9786         [!__NR_fadvise64]: Remove conditional code.
9787         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
9788         <kernel-features.h>.
9789         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9790         unconditional.
9791         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9792         conditional code.
9793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
9794         not include <kernel-features.h>.
9795         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9796         unconditional.
9797         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9798         conditional code.
9799         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
9800         include <kernel-features.h>.
9801         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9802         unconditional.
9803         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9804         conditional code.
9805
9806 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9807
9808         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
9809         slight instruction rearrangements per scrollpipe analysis.
9810         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
9811
9812 2012-08-20  Roland McGrath  <roland@hack.frob.com>
9813
9814         * manual/syslog.texi (syslog; vsyslog, closelog):
9815         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
9816         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
9817
9818         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
9819         DSOCAPS to match condition on defining it.
9820
9821 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
9822
9823         * sysdeps/unix/sysv/linux/kernel-features.h
9824         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
9825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
9826         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9827         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
9829         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9830         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
9832         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9833         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9834
9835         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
9836         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
9837
9838         * sysdeps/unix/sysv/linux/kernel-features.h
9839         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
9840         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
9841         unconditional.
9842         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9843         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
9844         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9845         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9846         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
9847         Make code unconditional.
9848         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9849         (__mmap64) [!__NR_mmap2]: Likewise.
9850         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
9851         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9852         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9853         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
9854         [__NR_mmap2]: Make code unconditional.
9855         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9856         (__mmap64) [!__NR_mmap2]: Likewise.
9857
9858 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9859
9860         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
9861
9862 2012-08-18  Andreas Jaeger  <aj@suse.de>
9863
9864         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
9865
9866 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9867
9868         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
9869         * include/unistd.h (__have_sock_cloexec): Likewise.
9870         (__have_pipe2): Likewise.
9871         (__have_dup3): Likewise.
9872
9873 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9874
9875         [BZ #9685]
9876         * include/unistd.h (__have_pipe2): Change define into an extern int.
9877         (__have_dup3): Likewise.
9878         * socket/have_sock_cloexec.c: Include fcntl.h.
9879         (__have_pipe2): New variable.
9880         (__have_dup3): Likewise.
9881
9882 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
9883
9884         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
9885
9886 2012-08-17  Marek Polacek  <polacek@redhat.com>
9887
9888         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
9889         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
9890
9891 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9892
9893         * configure.in: Add AC_SUBST for sysheaders.
9894         * configure: Regenerated.
9895         * config.make.in (sysheaders): New substituted variable.
9896
9897         * sysdeps/unix/mkfifo.c: Moved ...
9898         * sysdeps/posix/mkfifo.c: ... here.
9899         * sysdeps/unix/mkfifoat.c: Moved ...
9900         * sysdeps/posix/mkfifoat.c: ... here.
9901
9902         * sysdeps/unix/utime.c: Moved ...
9903         * sysdeps/posix/utime.c: ... here.
9904
9905         * sysdeps/unix/time.c: Moved ...
9906         * sysdeps/posix/time.c: ... here.
9907         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
9908         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
9909
9910         * sysdeps/unix/nice.c: Moved ...
9911         * sysdeps/posix/nice.c: ... here.
9912
9913         * sysdeps/unix/alarm.c: Moved ...
9914         * sysdeps/posix/alarm.c: ... here.
9915
9916         * intl/Makefile ($(codeset_mo)): Depend on the input file.
9917
9918 2012-08-17  Jeff Law <law@redhat.com>
9919
9920         * intl/Makefile (codeset_mo): New variable.
9921         ($(codeset_mo)): New target.
9922         (tst-codeset.out): Depend on that.  Remove explicit rule.
9923         (tst-gettext3.out, tst-gettext5.out): Likewise.
9924         (LOCPATH-ENV, tst-codeset-ENV): New variables.
9925         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
9926         * intl/tst-codeset.sh: Remove.
9927         * intl/tst-gettext3.sh: Likewise.
9928         * intl/tst-gettext5.sh: Likewise.
9929
9930 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9931
9932         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
9933         * sysdeps/unix/syscalls.list: ... here.
9934
9935         * sysdeps/posix/getaddrinfo.c
9936         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
9937         (gaiconf_init, gaiconf_reload): Use them.
9938         [!_STATBUF_ST_NSEC]
9939         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
9940         Define using time_t rather than struct timespec.
9941
9942         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
9943         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
9944         Macros removed.
9945         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
9946         [!NO_THREADS].
9947         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
9948         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
9949         Likewise.
9950
9951         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
9952         __libc_cleanup_push argument.
9953
9954         * bits/param.h: New file.
9955         * misc/sys/param.h: New file.
9956         * include/sys/param.h: New file.
9957         * misc/Makefile (headers): Add bits/param.h.
9958         * sysdeps/generic/sys/param.h: File removed.
9959         * sysdeps/unix/sysv/linux/bits/param.h: New file.
9960         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
9961         * sysdeps/mach/hurd/bits/param.h: New file.
9962         * sysdeps/mach/hurd/sys/param.h: File removed.
9963
9964         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
9965         last change.
9966
9967         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
9968         [_IO_MTSAFE_IO].
9969         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
9970         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
9971         New macros.
9972
9973         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
9974         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
9975         rather than -D_IO_MTSAFE_IO conditionally.
9976         * stdio-common/Makefile (CPPFLAGS): Likewise.
9977         * wcsmbs/Makefile (CPPFLAGS): Likewise.
9978         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
9979         Use $(libio-mtsafe).
9980         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
9981         of -D_IO_MTSAFE_IO.
9982         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
9983         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
9984         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
9985         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
9986         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
9987         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
9988         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
9989         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
9990         (CFLAGS-fread_u_chk.c): Likewise.
9991         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
9992         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
9993         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
9994         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
9995         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
9996         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
9997         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
9998         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
9999         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
10000
10001         * libio/Makefile: Test [$(libc-reentrant) = yes]
10002         instead of [$(filter %REENTRANT, $(defines)) nonempty].
10003
10004         * Makeconfig
10005         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
10006         * sysdeps/pthread/configure: File removed.
10007         * sysdeps/pthread/Makeconfig: New file.
10008         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
10009         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
10010
10011 2012-08-16  Gary Benson  <gbenson@redhat.com>
10012
10013         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
10014         unmapping the first object in a namespace.
10015
10016 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10017
10018         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
10019         (__internal_setnetgrent): ... this.  Add internal_function to
10020         definition.  Add libc_hidden_def.
10021         (setnetgrent): Update caller.
10022         (internal_endnetgrent): Renamed to ...
10023         (__internal_endnetgrent): ... this.  Add internal_function to
10024         definition.  Add libc_hidden_def.
10025         (endnetgrent): Update caller.
10026         (internal_getnetgrent_r): Renamed to ...
10027         (__internal_getnetgrent_r): ... this.  Add internal_function to
10028         definition.  Add libc_hidden_def.
10029         (__getnetgrent_r): Update caller.
10030         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
10031
10032 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10033
10034         * stdlib/longlong.h: Update from GCC.
10035
10036 2012-08-16  Roland McGrath  <roland@hack.frob.com>
10037
10038         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
10039         on _QL, which is set by umul_ppmm but never used.
10040         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
10041         variables, which are set by GMP macros but never used.
10042         * stdio-common/_itowa.c (_itowa): Likewise.
10043         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
10044         * stdlib/mod_1.c (mpn_mod_1): Likewise.
10045
10046 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
10047
10048         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
10049         struct La_sh_regs is not constant.
10050         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
10051         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
10052         and struct La_sparc64_regs are not constant.
10053
10054 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
10055
10056         * sysdeps/unix/sysv/linux/kernel-features.h
10057         (__ASSUME_POSIX_TIMERS): Remove.
10058         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
10059         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10060         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
10061         Make code unconditional.
10062         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10063         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
10064         Make code unconditional.
10065         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10066         * sysdeps/unix/sysv/linux/clock_nanosleep.c
10067         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
10068         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10069         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
10070         Make code unconditional.
10071         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
10072         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
10073         (__libc_missing_posix_timers): Remove.
10074
10075 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10076
10077         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
10078         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
10079
10080         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
10081
10082         * elf/dl-sym.c: Include <stdlib.h>.
10083
10084         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
10085         constants, which avoids warnings in 32-bit builds.
10086
10087         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
10088         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
10089
10090         * misc/lseek.c: File moved to ...
10091         * io/lseek.c: ... here.
10092
10093         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
10094
10095         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
10096         shifting LEN more than 31 bits at once.
10097
10098 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10099
10100         [BZ #14195]
10101         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
10102         segmentation fault for a case of two empty input strings.
10103         * string/test-strncasecmp.c (check1): Renamed to...
10104         (bz12205): ...this.
10105         (bz14195): Add new testcase for two empty input strings and N > 0.
10106         (test_main): Call new testcase, adapt for renamed function.
10107
10108 2012-08-15  Andreas Jaeger  <aj@suse.de>
10109
10110         [BZ #14090]
10111         * crypt/md5test2.c: New test, based on test supplied by Serge
10112         Belyshev <belyshev@depni.sinp.msu.ru>.
10113         * crypt/Makefile (xtests): Add md5test-giant..
10114         * crypt/Makefile ($(objpfx)md5test-giant): Add.
10115
10116 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10117
10118         [BZ #14090]
10119         * crypt/md5.c (md5_process_block): Don't assume the buffer
10120         length is less than 2**32.
10121         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10122         length is less than 2**64.
10123
10124 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10125
10126         * string/str-two-way.h: Include <sys/param.h>.
10127         (MAX): Macro removed.
10128
10129         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10130         Move #define and #undef of memmove to just before and after
10131         including <string.h>.
10132
10133         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10134         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10135         and after including <string.h>.  Move declarations of
10136         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10137         to before #include "string/memmove.c".
10138
10139         * include/dirent.h: Declare __getdirentries.
10140
10141         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10142         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10143
10144 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10145
10146         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10147         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10148         * sysdeps/i386/configure: Regenerated.
10149         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10150         STABS_CURRENT_FILE, and STABS_FUN.
10151         (END): Remove call to STABS_FUN_END.
10152         (STABS_CURRENT_FILE1): Delete.
10153         (STABS_CURRENT_FILE): Likewise.
10154         (STABS_FUN): Likewise.
10155         (STABS_FUN_END): Likewise.
10156         (STABS_FUN2): Likewise.
10157         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10158         * sysdeps/x86_64/configure: Regenerated.
10159
10160 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10161
10162         * elf/dl-open.c: Include <atomic.h>.
10163         * elf/dl-lookup.c: Likewise.
10164
10165 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10166
10167         * sysdeps/unix/sysv/linux/kernel-features.h
10168         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10169         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10170         unconditionally.
10171         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10172         unconditionally.
10173         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10174         condition on __ASSUME_CLONE_THREAD_FLAGS.
10175
10176 2012-08-14  Andreas Jaeger  <aj@suse.de>
10177
10178         * sysdeps/i386/fpu/libm-test-ulps: Update.
10179
10180 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10181
10182         * include/atomic.h (atomic_exchange_and_add): Split into ...
10183         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10184         New atomic macros.
10185
10186 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10187
10188         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10189
10190 2012-08-13  Jeff Law <law@redhat.com>
10191
10192         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10193         null byte in the output string.
10194
10195 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10196
10197         * sysdeps/unix/sysv/linux/kernel-features.h
10198         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10199         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10200         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10201         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10202         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10203         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10204         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10205
10206 2012-08-09  Jeff Law <law@redhat.com>
10207
10208         [BZ #13939]
10209         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10210         When avoid_arena is set, don't retry in the that arena.  Pick the
10211         next one, whatever it might be.
10212         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10213         (arena_lock): Pass in new parameter to arena_get2.
10214         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10215         arena_get2.
10216         (__libc_malloc): Unify retrying after main arena failure with
10217         __libc_memalign version.
10218         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10219
10220 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10221
10222         [BZ #14166]
10223         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10224         to __redirect_strstr.
10225         (__strstr_sse42): Use typeof __redirect_strstr.
10226         (__strstr_ia32): Likewise.
10227         (__libc_strstr): New prototype.
10228         (strstr): Renamed to ...
10229         (__libc_strstr): This.
10230         (strstr): New strong alias of __libc_strstr.
10231         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10232         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10233         __redirect_time.
10234         Include <time.h>.
10235         (__libc_time): New prototype.
10236         (time_ifunc): Replace time with __libc_time.
10237         (time): New strong alias and hidden definition of __libc_time.
10238         (__GI_time): Remove strong alias.
10239         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10240         Include <stddef.h>.
10241         (memmove): Redefined to __redirect_memmove.
10242         (__memmove_sse2): Use typeof __redirect_memmove.
10243         (__memmove_ssse3): Likewise.
10244         (__memmove_ssse3_back): Likewise.
10245         (__libc_memmove): New prototype.
10246         (memmove): Renamed to ...
10247         (__libc_memmove): This.
10248         (memmove): New strong alias of __libc_memmove.
10249
10250 2012-08-08  Mark Salter  <msalter@redhat.com>
10251
10252         * elf/elf.h
10253         (R_MN10300_TLS_GD): Define.
10254         (R_MN10300_TLS_LD): Likewise.
10255         (R_MN10300_TLS_LDO): Likewise.
10256         (R_MN10300_TLS_GOTIE): Likewise.
10257         (R_MN10300_TLS_IE): Likewise.
10258         (R_MN10300_TLS_LE): Likewise.
10259         (R_MN10300_TLS_DTPMOD): Likewise.
10260         (R_MN10300_TLS_DTPOFF): Likewise.
10261         (R_MN10300_TLS_TPOFF): Likewise.
10262         (R_MN10300_SYM_DIFF): Likewise.
10263         (R_MN10300_ALIGN): Likewise.
10264         (R_MN10300_NUM): Update.
10265
10266 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10267
10268         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10269         Remove.
10270
10271 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10272
10273         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10274
10275         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10276         sysdeps/unix -> sysdeps/posix move.
10277         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10278
10279 2012-08-07      Allan McRae     <allan@archlinux.org>
10280
10281         [BZ #14303]
10282         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10283         (SUNOS_CPP): Likewise.
10284         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10285         not found.
10286         (open_input): Call CPP using execvp.
10287
10288 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10289
10290         * sysdeps/unix/sysv/linux/kernel-features.h
10291         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10292         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10293         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10294         (__ASSUME_WAITID_SYSCALL): Likewise.
10295         * sysdeps/unix/sysv/linux/dl-execstack.c
10296         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10297         code unconditional.
10298         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10299         conditional code.
10300         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10301         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10302         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10303         code.
10304         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10305         unconditional.
10306         [__ASSUME_WAITID_SYSCALL]: Likewise.
10307         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10308
10309 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10310
10311         * sysdeps/unix/closedir.c: Renamed to ...
10312         * sysdeps/posix/closedir.c: ... here.
10313         * sysdeps/unix/dirfd.c: Renamed to ...
10314         * sysdeps/posix/dirfd.c: ... here.
10315         * sysdeps/unix/dirstream.h: Renamed to ...
10316         * sysdeps/posix/dirstream.h: ... here.
10317         * sysdeps/unix/fdopendir.c: Renamed to ...
10318         * sysdeps/posix/fdopendir.c: ... here.
10319         * sysdeps/unix/opendir.c: Renamed to ...
10320         * sysdeps/posix/opendir.c: ... here.
10321         * sysdeps/unix/readdir.c: Renamed to ...
10322         * sysdeps/posix/readdir.c: ... here.
10323         * sysdeps/unix/readdir_r.c: Renamed to ...
10324         * sysdeps/posix/readdir_r.c: ... here.
10325         * sysdeps/unix/rewinddir.c: Renamed to ...
10326         * sysdeps/posix/rewinddir.c: ... here.
10327         * sysdeps/unix/seekdir.c: Renamed to ...
10328         * sysdeps/posix/seekdir.c: ... here.
10329         * sysdeps/unix/telldir.c: Renamed to ...
10330         * sysdeps/posix/telldir.c: ... here.
10331         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10332         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10333         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10334         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10335
10336         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10337         * bits/fcntl.h: ... here.
10338
10339         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10340         not 0.
10341         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10342         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
10343         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
10344         (struct flock): Move l_start, l_len to the beginning.
10345         Use __pid_t for l_pid.
10346         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
10347         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
10348         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
10349         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
10350         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
10351         [__USE_LARGEFILE64] (struct flock64): New type.
10352         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
10353
10354         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
10355         * bits/dirent.h: ... here.
10356
10357         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
10358         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
10359
10360 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10361
10362         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10363         Change from 2.6.0 to 2.6.16.
10364         * sysdeps/unix/sysv/linux/configure: Regenerated.
10365         * sysdeps/unix/sysv/linux/kernel-features.h
10366         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
10367         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
10368         version.
10369         (__ASSUME_UTIMES): Likewise.
10370         (__ASSUME_CLONE_STOPPED): Remove.
10371         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
10372         architectures, not kernel version.
10373         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
10374         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10375         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10376         (__ASSUME_WAITID_SYSCALL): Likewise.
10377         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
10378         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
10379         * README: State 2.6.16 as minimum Linux kernel version.  Do not
10380         refer to older versions.
10381
10382 2012-08-06  Roland McGrath  <roland@hack.frob.com>
10383
10384         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
10385         Define alphasort64 as an alias.
10386         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
10387         Define versionsort64 as an alias.
10388         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
10389         Define scandir64 as an alias.
10390         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
10391         Define scandirat64 as an alias.
10392         * dirent/alphasort64.c (alphasort64):
10393         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
10394         * dirent/versionsort64.c: Likewise.
10395         * dirent/scandir64.c: Likewise.
10396         * dirent/scandirat64.c: Likewise.
10397         * sysdeps/wordsize-64/alphasort.c: File removed.
10398         * sysdeps/wordsize-64/alphasort64.c: File removed.
10399         * sysdeps/wordsize-64/scandir.c: File removed.
10400         * sysdeps/wordsize-64/scandir64.c: File removed.
10401         * sysdeps/wordsize-64/scandirat.c: File removed.
10402         * sysdeps/wordsize-64/scandirat64.c: File removed.
10403         * sysdeps/wordsize-64/versionsort.c: File removed.
10404         * sysdeps/wordsize-64/versionsort64.c: File removed.
10405         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
10406         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
10407         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
10408         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
10409         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
10410         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
10411         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
10412         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
10413
10414         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
10415         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10416         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
10417         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10418         [defined __arch64__ || defined __sparcv9]
10419         (__INO_T_MATCHES_INO64_T): New macro.
10420         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10421         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
10422         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
10423         * sysdeps/unix/sysv/linux/bits/dirent.h
10424         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
10425         (_DIRENT_MATCHES_DIRENT64): New macro.
10426
10427         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
10428         Define lockf64 as an alias.
10429         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
10430         Define fseeko64 as an alias.
10431         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
10432         Define ftello64 as an alias.
10433         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
10434         Define _IO_fgetpos64 and fgetpos64 as aliases.
10435         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
10436         Define _IO_fsetpos64 and fsetpos64 as aliases.
10437         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
10438         Conditionalize body on this.
10439         * libio/fseeko64.c: Likewise.
10440         * libio/ftello64.c: Likewise.
10441         * libio/iofgetpos64.c: Likewise.
10442         * libio/iofsetpos64.c: Likewise.
10443         * sysdeps/wordsize-64/lockf.c: File removed.
10444         * sysdeps/wordsize-64/lockf64.c: File removed.
10445         * sysdeps/wordsize-64/fseeko.c: File removed.
10446         * sysdeps/wordsize-64/fseeko64.c: File removed.
10447         * sysdeps/wordsize-64/ftello.c: File removed.
10448         * sysdeps/wordsize-64/ftello64.c: File removed.
10449         * sysdeps/wordsize-64/iofgetpos.c: File removed.
10450         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
10451         * sysdeps/wordsize-64/iofsetpos.c: File removed.
10452         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
10453         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
10454         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
10455         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
10456         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
10457         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
10458         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
10459         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
10460         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
10461         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
10462         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
10463
10464         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10465         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10466         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
10467         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10468         [defined __arch64__ || defined __sparcv9]
10469         (__OFF_T_MATCHES_OFF64_T): New macro.
10470         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10471         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10472         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10473         (__OFF_T_MATCHES_OFF64_T): New macro.
10474
10475 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10476
10477         * stdlib/secure-getenv.c (__secure_getenv): Replace
10478         GLIBC_2_16 with GLIBC_2_17.
10479
10480 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10481
10482         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
10483         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
10484
10485 2012-08-03  David S. Miller  <davem@davemloft.net>
10486
10487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10488
10489 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10490
10491         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
10492         Remove.
10493         (__ASSUME_CORRECT_SI_PID): Likewise.
10494         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
10495         (__ASSUME_TMPFS_NAME): Likewise.
10496         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
10497         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
10498         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
10499         (HAVE_AUX_SECURE): Make definition unconditional.
10500         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
10501         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
10502
10503 2012-08-03  Roland McGrath  <roland@hack.frob.com>
10504
10505         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
10506         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
10507         * sysdeps/mach/hurd/eloop-threshold.h: New file.
10508         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
10509         __eloop_threshold instead of SYMLOOP_MAX.
10510
10511         * sysdeps/generic/eloop-threshold.h: New file.
10512         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
10513         of MAXSYMLINKS.
10514         * elf/chroot_canon.c (chroot_canon): Likewise.
10515
10516 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10517
10518         [BZ #13717]
10519         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10520         Change to 2.6.0 everywhere.
10521         * sysdeps/unix/sysv/linux/configure: Regenerated.
10522         * sysdeps/unix/sysv/linux/kernel-features.h
10523         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
10524         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
10525         kernel versions.
10526         (__ASSUME_POSIX_TIMERS): Define unconditionally.
10527         (__ASSUME_FUTEX_REQUEUE): Remove.
10528         (__ASSUME_STATFS64): Define unconditionally.
10529         (__ASSUME_AT_SECURE): Likewise.
10530         (__ASSUME_CORRECT_SI_PID): Likewise.
10531         (__ASSUME_TGKILL): Define without depending on kernel version for
10532         i386.
10533         (__ASSUME_UTIMES): Likewise.
10534         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
10535         kernel version.
10536         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
10537         (__ASSUME_TMPFS_NAME): Likewise.
10538         * README: Update reference to Linux kernel versions.
10539
10540 2012-08-02  Marek Polacek  <polacek@redhat.com>
10541
10542         [BZ# 14150]
10543         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
10544         libc_cv_asm_type_prefix with %.
10545         * configure: Regenerated.
10546         * include/libc-symbols.h: Remove comment about
10547         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10548         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
10549         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
10550         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
10551         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
10552         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10553         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
10554         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
10555         * elf/tst-unique2mod1.c: Likewise.
10556         * elf/tst-unique1mod2.c: Likewise.
10557         * elf/tst-unique1mod1.c: Likewise.
10558         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
10559         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
10560         Replace ASM_TYPE_DIRECTIVE with .type.
10561         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10562         * sysdeps/i386/sysdep.h: Likewise.
10563         * sysdeps/x86_64/sysdep.h: Likewise.
10564         * sysdeps/sh/sysdep.h: Likewise.
10565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10566         Do not define ASM_TYPE_DIRECTIVE.
10567         * sysdeps/powerpc/sysdep.h: Likewise.
10568         * sysdeps/powerpc/powerpc32/sysdep.h:
10569         Replace ASM_TYPE_DIRECTIVE with .type.
10570         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
10571         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
10572         * sysdeps/i386/fpu/e_powf.S: Likewise.
10573         * sysdeps/i386/fpu/e_expl.S: Likewise.
10574         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10575         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10576         * sysdeps/i386/fpu/e_pow.S: Likewise.
10577         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10578         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10579         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10580         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10581         * sysdeps/i386/fpu/e_log2.S: Likewise.
10582         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10583         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10584         * sysdeps/i386/fpu/e_powl.S: Likewise.
10585         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10586         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10587         * sysdeps/i386/fpu/e_logl.S: Likewise.
10588         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10589         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10590         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10591         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10592         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10593         * sysdeps/i386/fpu/e_log.S: Likewise.
10594         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10595         * sysdeps/i386/fpu/e_logf.S: Likewise.
10596         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10597         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10598         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10599         * sysdeps/i386/fpu/e_log10.S: Likewise.
10600         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10601         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10602         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10603         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10604         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10605         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
10606         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10607         * sysdeps/i386/i686/strtok.S: Likewise.
10608         * sysdeps/i386/i386-mcount.S: Likewise.
10609         * sysdeps/i386/strtok.S: Likewise.
10610         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
10611         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10612         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10613         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10614         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10615         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10616         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10617         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10618         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10619         * sysdeps/x86_64/_mcount.S: Likewise.
10620         * sysdeps/x86_64/strtok.S: Likewise.
10621         * sysdeps/sh/_mcount.S: Likewise.
10622
10623 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10624
10625         * libio/iofopen.c: Include <fcntl.h>.
10626         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
10627         (_IO_fopen64, fopen64): Define as aliases.
10628         * libio/iofopen64.c: Include <fcntl.h>.
10629         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
10630         Conditionalize body on this.
10631         * sysdeps/wordsize-64/iofopen.c: File removed.
10632         * sysdeps/wordsize-64/iofopen64.c: File removed.
10633
10634 2012-08-01  Marek Polacek  <polacek@redhat.com>
10635
10636         * libc/Makeconfig: Use elf in place of binfmt-subdir.
10637         Use dlfcn directly instead of a variable.
10638         (binfmt-subdir): Do not define.
10639         (dlfcn): Likewise.
10640
10641 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
10642
10643         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
10644         Remove all definitions.
10645         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
10646         <kernel-features.h>.
10647         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10648         (miss_F_GETOWN_EX): Remove all definitions.
10649         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
10650         macro definition.
10651         [!__ASSUME_FCNTL64]: Remove conditional code.
10652         [__ASSUME_FCNTL64]: Make code unconditional.
10653         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
10654         <kernel-features.h>.
10655         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10656         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
10657         (lockf64) [__NR_fcntl64]: Make code unconditional.
10658         (lockf64) [__ASSUME_FCNTL64]: Likewise.
10659
10660         * sysdeps/unix/sysv/linux/kernel-features.h
10661         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
10662         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
10663         Make code unconditional.
10664         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10665         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
10667         [__NR_vfork]: Make code unconditional.
10668         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10669         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
10671         [__NR_vfork]: Make code unconditional.
10672         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10673         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10674
10675 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10676
10677         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
10678         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
10679
10680         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10681         Define mkstemp64 as an alias.
10682         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10683         Define mkstemps64 as an alias.
10684         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10685         Define mkostemp64 as an alias.
10686         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10687         Define mkostemps64 as an alias.
10688         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
10689         Conditionalize body on this.
10690         * misc/mkostemp64.c: Likewise.
10691         * misc/mkostemps64.c: Likewise.
10692         * misc/mkstemps64.c: Likewise.
10693         * sysdeps/wordsize-64/mkstemp64.c: File removed.
10694         * sysdeps/wordsize-64/mkostemp64.c: File removed.
10695         * sysdeps/wordsize-64/mkostemp.c: File removed.
10696         * sysdeps/wordsize-64/mkstemp.c: File removed.
10697         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
10698         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
10699         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
10700         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
10701
10702         [BZ #14138]
10703         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
10704         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
10705         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
10706         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
10707
10708         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
10709         compat_symbol macros from <shlib-compat.h> rather than the underlying
10710         default_symbol_version and symbol_version macros, so that DEFAULT
10711         lines in shlib-versions are respected.
10712         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
10713
10714 2012-08-01  Florian Weimer  <fweimer@redhat.com>
10715
10716         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
10717         Declare with warn_unused_result.
10718         (setgid, setregid, setegid, setresgid): Likewise.
10719         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
10720         Likewise.
10721         * WUR-REPORT: Remove set*id functions.
10722
10723 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
10724
10725         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
10726
10727 2012-07-31  Roland McGrath  <roland@hack.frob.com>
10728
10729         * include/sys/socket.h (__libc_accept, __libc_accept4):
10730         Add attribute_hidden.
10731         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
10732
10733         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
10734         use of PTR_MANGLE.
10735         * inet/getnetgrent_r.c (setup): Likewise.
10736
10737         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
10738
10739 2012-07-31  David S. Miller  <davem@davemloft.net>
10740
10741         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10742
10743 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
10744
10745         [BZ #13629]
10746         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
10747         value between 1.0 and 2.0 and smaller part has absolute value less
10748         than 1.0.
10749         * math/s_clog10.c (__clog10): Likewise.
10750         * math/s_clog10f.c (__clog10f): Likewise.
10751         * math/s_clog10l.c (__clog10l): Likewise.
10752         * math/s_clogf.c (__clogf): Likewise.
10753         * math/s_clogl.c (__clogl): Likewise.
10754         * math/libm-test.inc (clog_test): Add more tests.
10755         (clog10_test): Likewise.
10756         * sysdeps/i386/fpu/libm-test-ulps: Update.
10757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10758
10759 2012-07-31  Florian Weimer  <fweimer@redhat.com>
10760
10761         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
10762         Exit with zero in case no suitable GID is found, and write a
10763         message to standard error.
10764
10765 2012-07-30  Roland McGrath  <roland@hack.frob.com>
10766
10767         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
10768         rather than to 1.
10769         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
10770         (MAXPATHLEN): Removed.
10771         (NOGROUP, NODEV): New macros.
10772         (setbit, clrbit, isset, isclr): New macros.
10773         (howmany, roundup, powerof2): New macros.
10774         (DEV_BSIZE): New macro.
10775
10776         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
10777         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
10778
10779         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
10780         definition on [!__NO_LONG_DOUBLE_MATH].
10781
10782         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
10783         PTR_MANGLE and PTR_DEMANGLE.
10784
10785         * socket/accept4.c (accept4): Rename to __libc_accept4.
10786         Define accept4 as a weak alias.
10787
10788         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
10789         on [_DIRENT_HAVE_D_TYPE].
10790         * io/ftw.c (ftw_dir): Likewise.
10791
10792         * io/xmknod.c (__xmknod): Don't check PATH for being null.
10793
10794         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
10795
10796         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
10797         Use the BSD numbers rather than the arbitrary ones we had.
10798         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
10799         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
10800         (SIGXCPU, SIGXFSZ): New macros.
10801         (_NSIG): Now 32.
10802
10803         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
10804         initializer on [_LIBC_REENTRANT].
10805
10806         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
10807         definitions inside [_POSIX_MAPPED_FILES].
10808
10809         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
10810
10811         * dirent/opendir.c: Include <fcntl.h>.
10812
10813         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
10814         (__libc_getspecific): Likewise.
10815         (__libc_key_create): Likewise.
10816
10817         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
10818         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
10819         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
10820         (tmpfile64): Define as alias.
10821         * sysdeps/wordsize-64/tmpfile.c: File removed.
10822         * sysdeps/wordsize-64/tmpfile64.c: File removed.
10823         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
10824         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
10825
10826         * stdio-common/vfscanf.c: Include <stdbool.h>.
10827         * nss/makedb.c: Likewise.
10828         * stdio-common/_i18n_number.h: Likewise.
10829         * argp/argp-help.c: Likewise.
10830         * posix/wordexp.c: Likewise.
10831         * sysdeps/posix/spawni.c: Likewise.
10832         * nss/nss_files/files-initgroups.c: Likewise.
10833         * stdio-common/reg-modifier.c: Include <stdlib.h>.
10834         * nss/nss_files/files-initgroups.c: Likewise.
10835         * nss/nss_db/db-netgrp.c: Likewise.
10836         * nss/nss_db/db-initgroups.c: Likewise.
10837         * io/fchmodat.c: Include <sys/stat.h>.
10838
10839         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
10840         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
10841
10842         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
10843         [HAVE_MMAP].
10844
10845         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
10846         Add multiple inclusion protection.
10847
10848 2012-07-27  David S. Miller  <davem@davemloft.net>
10849
10850         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10851
10852 2012-07-27  Gary Benson  <gbenson@redhat.com>
10853
10854         [BZ #14298]
10855         * elf/rtld.c: Include <stap-probe.h>.
10856         (dl_main): Added static probes "init_start" and "init_complete".
10857         * elf/dl-load.c: Include <stap-probe.h>.
10858         (lose): Take new parameter "nsid".
10859         Added static probe "map_failed".
10860         (_dl_map_object_from_fd): Pass namespace id to lose.
10861         Added static probe "map_start".
10862         (open_verify): Pass namespace id to lose.
10863         * elf/dl-open.c: Include <stap-probe.h>.
10864         (dl_open_worker) Added static probes "map_complete", "reloc_start"
10865         and "reloc_complete".
10866         * elf/dl-close.c: Include <stap-probe.h>.
10867         (_dl_close_worker): Added static probes "unmap_start" and
10868         "unmap_complete".
10869         * elf/rtld-debugger-interface.txt: New file documenting the above.
10870
10871 2012-07-26  Roland McGrath  <roland@hack.frob.com>
10872
10873         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
10874         rather than a string variable.
10875         * sunrpc/rpc_main.c (h_output): Likewise.
10876         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
10877
10878 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
10879
10880         * inet/check_native.c: New file.
10881
10882 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
10883
10884         [BZ #13629]
10885         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
10886         if larger part has absolute value 1.0.
10887         * math/s_clog10.c (__clog10): Likewise.
10888         * math/s_clog10f.c (__clog10f): Likewise.
10889         * math/s_clog10l.c (__clog10l): Likewise.
10890         * math/s_clogf.c (__clogf): Likewise.
10891         * math/s_clogl.c (__clogl): Likewise.
10892         * math/libm-test.inc (clog_test): Add more tests.
10893         (clog10_test): Likewise.
10894         * sysdeps/i386/fpu/libm-test-ulps: Update.
10895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10896
10897         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
10898         (pltexit): Likewise.
10899         (La_regs): Likewise.
10900         (La_retval): Likewise.
10901         (int_retval): Likewise.
10902         Update #error for removed macros to refer only to definitions in
10903         tst-audit.h.
10904         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
10905         macro.
10906         (pltexit): Likewise.
10907         (La_regs): Likewise.
10908         (La_retval): Likewise.
10909         (int_retval): Likewise.
10910         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
10911         macro.
10912         (pltexit): Likewise.
10913         (La_regs): Likewise.
10914         (La_retval): Likewise.
10915         (int_retval): Likewise.
10916         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
10917         macro.
10918         (pltexit): Likewise.
10919         (La_regs): Likewise.
10920         (La_retval): Likewise.
10921         (int_retval): Likewise.
10922         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
10923         macro.
10924         (pltexit): Likewise.
10925         (La_regs): Likewise.
10926         (La_retval): Likewise.
10927         (int_retval): Likewise.
10928         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
10929         macro.
10930         (pltexit): Likewise.
10931         (La_regs): Likewise.
10932         (La_retval): Likewise.
10933         (int_retval): Likewise.
10934         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
10935         macro.
10936         (pltexit): Likewise.
10937         (La_regs): Likewise.
10938         (La_retval): Likewise.
10939         (int_retval): Likewise.
10940         * sysdeps/generic/tst-audit.h: Update comment to refer only to
10941         macro definitions in tst-audit.h.
10942         * sysdeps/i386/tst-audit.h: New file.
10943         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
10944         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
10945         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
10946         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
10947         * sysdeps/sh/tst-audit.h: Likewise.
10948         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
10949         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
10950         * sysdeps/x86_64/tst-audit.h: Likewise.
10951
10952 2012-07-26  Andreas Jaeger  <aj@suse.de>
10953
10954         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
10955         ptrace.
10956
10957         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
10958         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
10959         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
10960         PTRACE_O_MASK.
10961         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
10962         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
10963         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
10964
10965         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
10966         value.
10967
10968         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
10969         _sigsys.
10970         (si_call_addr, si_syscall, si_arch): Define new macro.
10971         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
10972         _sigsys.
10973         (si_call_addr, si_syscall, si_arch): Define new marcro.
10974         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
10975         _sigsys.
10976         (si_call_addr, si_syscall, si_arch): Define new macro.
10977         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
10978         _sigsys.
10979         (si_call_addr, si_syscall, si_arch): Define new macro.
10980
10981 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
10982
10983         [BZ #13717]
10984         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10985         Change to 2.4.21 where previously 2.4.1.
10986         * sysdeps/unix/sysv/linux/configure: Regenerated.
10987         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
10988         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
10989         Linux kernel version.
10990         (__ASSUME_STD_AUXV): Remove.
10991         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
10992         kernel version.
10993         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
10994         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
10995         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
10996         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
10997         (__ASSUME_NETLINK_SUPPORT): Likewise.
10998         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
10999         (__no_netlink_support): Remove conditional definition.
11000         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
11001         Remove.
11002         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11003         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
11004         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
11005         (if_nameindex_ioctl): Remove.
11006         (if_nameindex_netlink): Do not handle __no_netlink_support.
11007         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11008         code.
11009         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
11010         Remove conditional code.
11011         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
11012         code.
11013         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
11014         unconditional.
11015         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
11016         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
11017         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
11018         Remove.
11019         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11020         [!__ASSUME_STD_AUXV]: Remove conditional code.
11021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
11022         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
11023         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
11024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
11025         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
11026         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11027         code.
11028         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11030         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
11031         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11032         conditional code.
11033         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
11034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11035         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
11036         code.
11037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11038         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
11039         conditional code.
11040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
11041         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11042         code unconditional.
11043         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11044         conditional code.
11045         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11046         unconditional.
11047         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11048         conditional code.
11049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11050         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11051         unconditional.
11052         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11053         conditional code.
11054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
11055         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11056         code unconditional.
11057         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11058         conditional code.
11059         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11060         unconditional.
11061         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11062         conditional code.
11063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
11064         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
11065         code unconditional.
11066         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11067         conditional code.
11068         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
11069         unconditional.
11070         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
11071         conditional code.
11072
11073 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
11074
11075         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
11076         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
11077         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
11078         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
11079         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
11080         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
11081         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
11082         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
11083         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
11084         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
11085         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
11086         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
11087         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
11088         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
11089         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11090         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
11091         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
11092         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
11093         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
11094         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
11095         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
11096         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
11097         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
11098
11099 2012-07-25  Florian Weimer  <fweimer@redhat.com>
11100
11101         * Versions.def: Add GLIBC_2.17.
11102         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
11103         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
11104         Introduce __libc_secure_getenv.
11105         * stdlib/Versions (2.17): Add secure_getenv
11106         (GLIBC_PRIVATE): Add __libc_secure_getenv.
11107         * stdlib/secure-getenv.c: Rename __secure_getenv to
11108         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
11109         symbol __secure_getenv for GLIBC_2.0.
11110         * stdlib/tst-secure-getenv.c: New.
11111         * stdlib/Makefile (tests): Add testcase.
11112         * manual/startup.texi (Environment Access): Document
11113         secure_getenv.
11114         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
11115         __libc_secure_getenv.
11116         * inet/ruserpass.c (ruserpass): Likewise.
11117         * malloc/mtrace.c (mtrace): Likewise.
11118         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
11119         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
11120         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
11121         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11122         HAVE_SECURE_GETENV.
11123         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11124         __secure_getenv to __libc_secure_getenv.
11125         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11127         Likewise.
11128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11129         Likewise.
11130         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11132         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11133         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11135         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11137
11138 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11139
11140         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11141         (struct La_i86_retval): Likewise.
11142         (struct La_x86_64_regs): Likewise.
11143         (struct La_x86_64_retval): Likewise.
11144         (struct La_x32_regs): Likewise.
11145         (struct La_x32_retval): Likewise.
11146         (struct La_ppc32_regs): Likewise.
11147         (struct La_ppc32_retval): Likewise.
11148         (struct La_ppc64_regs): Likewise.
11149         (struct La_ppc64_retval): Likewise.
11150         (struct La_sh_regs): Likewise.
11151         (struct La_sh_retval): Likewise.
11152         (struct La_s390_32_regs): Likewise.
11153         (struct La_s390_32_retval): Likewise.
11154         (struct La_s390_64_regs): Likewise.
11155         (struct La_s390_64_retval): Likewise.
11156         (struct La_sparc32_regs): Likewise.
11157         (struct La_sparc32_retval): Likewise.
11158         (struct La_sparc64_regs): Likewise.
11159         (struct La_sparc64_retval): Likewise.
11160         (struct audit_ifaces): Remove architecture-specific pltenter and
11161         pltexit members.
11162         * sysdeps/i386/ldsodefs.h: New file.
11163         * sysdeps/powerpc/ldsodefs.h: Likewise.
11164         * sysdeps/s390/ldsodefs.h: Likewise.
11165         * sysdeps/sh/ldsodefs.h: Likewise.
11166         * sysdeps/sparc/ldsodefs.h: Likewise.
11167         * sysdeps/x86_64/ldsodefs.h: Likewise.
11168
11169 2012-07-25  Marek Polacek  <polacek@redhat.com>
11170
11171         [BZ #6808]
11172         * math/libm-test.inc (yn_test): Add another test.
11173         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11174         to ERANGE when the result is +-Inf.
11175         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11176         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11177         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11178         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11179
11180 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11181
11182         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11183         equal to 0.
11184         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11185         clock_t.
11186         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11187
11188 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11189
11190         * configure.in <sysdeps resolving>: Correct printing
11191         Implies_before.
11192         * configure: Regenerate.
11193
11194 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11195
11196         * math/w_ilogb.c: Include <limits.h>.
11197         * math/w_ilogbl.c: Likewise.
11198
11199 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11200
11201         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11202         va_copy.  Document allowing for unavailable va_copy only as
11203         pre-C99 compatibility.
11204         * manual/string.texi (Copying and Concatenation): Use va_copy
11205         instead of __va_copy in concat example.
11206
11207 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11208
11209         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11210         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11211         it if not null.
11212
11213         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11214         with O_NOLINK passed to __file_name_lookup.
11215
11216         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11217         with O_NOLINK passed to __file_name_lookup.
11218
11219         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11220         negative N or less than NGIDS.
11221
11222         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11223         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11224         enough.  Use memcpy instead of strncpy.
11225
11226 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11227
11228         * elf/Makefile (check-data): Remove.
11229         (localplt.data): New vpath directive.
11230         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11231         instead of $(check-data).
11232         * scripts/data/localplt-generic.data: Move to ...
11233         * sysdeps/generic/localplt.data: ... here.
11234         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11235         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11236         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11238         ... here.
11239         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11241         ... here.
11242         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11243         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11244         ... here.
11245         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11246         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11247         ... here.
11248         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11249         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11250         ... here.
11251         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11252         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11253         ... here.
11254
11255 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11256
11257         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11258         PPC32 and PPC64 files.
11259         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11260         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11261
11262 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11263
11264         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11265         __makecontext_ret to ...
11266         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11267         ... here and call exit if uc_link is NULL.  New file.
11268         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11269         __makecontext_ret.S.
11270         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11271         __makecontext_ret to ...
11272         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11273         ... here and call exit if uc_link is NULL.  New file.
11274         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11275         __makecontext_ret.S.
11276
11277 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11278
11279         * elf/elf.h (R_390_IRELATIVE): New definition.
11280         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11281         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11282         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11283         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11284         (elf_machine_lazy_rel): Likewise.
11285         * sysdeps/s390/dl-irel.h: New file.
11286         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11287         * sysdeps/s390/s390-64/memset.S: New asm code.
11288         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11289         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11290         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11291         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11292         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11293         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11294         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11295         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11296         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11297         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11298         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11299         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11300         * sysdeps/s390/s390-32/memset.S: New asm code.
11301         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11302
11303 2012-07-17  Marek Polacek  <polacek@redhat.com>
11304
11305         [BZ #14349]
11306         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11307         * sysdeps/s390/s390-64/configure.in: Likewise.
11308         * sysdeps/sparc/configure.in: Likewise.
11309         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11310         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11311         * sysdeps/i386/configure.in: Likewise.
11312         * sysdeps/x86_64/configure.in: Likewise.
11313         * sysdeps/sh/configure.in: Likewise.
11314         * sysdeps/s390/s390-32/configure: Regenerated.
11315         * sysdeps/s390/s390-64/configure: Likewise.
11316         * sysdeps/x86_64/configure: Likewise.
11317         * sysdeps/sh/configure: Likewise.
11318         * sysdeps/powerpc/powerpc64/configure: Likewise.
11319         * sysdeps/powerpc/powerpc32/configure: Likewise.
11320         * sysdeps/sparc/configure: Likwise.
11321         * sysdeps/i386/configure: Likewise.
11322
11323         * elf/dl-open.c: Comment fixes.
11324
11325 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11326
11327         * Makefile [CXX] (check-data): Remove.
11328         [CXX] (c++-types.data): New vpath directive.
11329         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11330         vpath.  Do not allow for C++ type data being missing.
11331         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11332         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11333         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11334         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11335         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11336         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11337         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11339         ... here.
11340         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
11342         ... here.
11343         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
11344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
11345         ... here.
11346         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
11347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
11348         ... here.
11349         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
11350         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
11351         ... here.
11352         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
11353         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
11354         ... here.
11355         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
11356         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
11357         ... here.
11358         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
11359         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
11360
11361         * elf/tls-macros.h (TLS_LE): Move architecture-specific
11362         definitions to architecture-specific files.
11363         (TLS_IE): Likewise.
11364         (TLS_LD): Likewise.
11365         (TLS_GD): Likewise.
11366         * sysdeps/i386/tls-macros.h: New file.
11367         * sysdeps/powerpc/tls-macros.h: Likewise.
11368         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
11369         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
11370         * sysdeps/sh/tls-macros.h: Likewise.
11371         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
11372         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
11373         * sysdeps/x86_64/tls-macros.h: Likewise.
11374
11375 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11376
11377         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
11378         zero value for regular exit case.
11379
11380         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11381         (__start_context): Preserve zero value for regular exit case.
11382
11383 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11384             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11385
11386         * manual/setjmp.texi (setcontext): Clarify normal process
11387         termination when uc_link is the null pointer.
11388         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
11389         exit call.
11390
11391 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
11392
11393         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
11394         preprocessor.  Test for each exception mask separately.
11395
11396 2012-07-16  Andreas Jaeger  <aj@suse.de>
11397
11398         * po/ru.po: Update from translation team.
11399
11400 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
11401
11402         * conform/data/string.h-data (NULL): Use macro-constant.  Require
11403         equal to 0.
11404         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11405         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11406         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
11407         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
11408         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11409
11410 2012-07-13  Andreas Jaeger  <aj@suse.de>
11411
11412         * po/fr.po: Update from translation team.
11413
11414 2012-07-12  Marek Polacek  <polacek@redhat.com>
11415
11416         [BZ #14173]
11417         * math/libm-test.inc (yn_test): Add test for BZ #14173.
11418         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
11419         loop condition.
11420
11421 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
11422
11423         [BZ #13717]
11424         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11425         Change to 2.4.1 where previously 2.4.0.
11426         * sysdeps/unix/sysv/linux/configure: Regenerated.
11427         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
11428         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
11429         version.
11430         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
11431         (__ASSUME_AT_CLKTCK): Remove.
11432         (__ASSUME_AT_PAGESIZE): Likewise.
11433         (__ASSUME_AT_XID): Likewise.
11434         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
11435         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
11436         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
11437         unconditionally.
11438         (HAVE_AUX_PAGESIZE): Likewise.
11439         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
11440         [__ASSUME_AT_CLKTCK]: Make code unconditional.
11441         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
11442
11443 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
11444
11445         [BZ #14307]
11446         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
11447         the temporary buffer used to invoke __gethostbyname2_r,
11448         __gethostbyaddr_r and gethostbyname4_r to make room for struct
11449         host_data / struct gaih_addrtuple.
11450         * resolv/nss_dns/dns-host.c (global scope): Move definition of
11451         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
11452         header file nss/nsswitch.h.
11453         * nss/nsswitch.h (global scope): Add definition of implementation
11454         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
11455         resolv/nss_dns/dns-host.c).
11456
11457 2012-07-11  Andreas Jaeger  <aj@suse.de>
11458
11459         * po/fr.po: Update from translation team.
11460
11461         * po/sv.po: Update from translation team
11462         * po/fr.po: Another update from translation team.
11463
11464 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11465
11466         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
11467         for subnormals or multiply small sinh result by itself.
11468         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11470
11471 2012-07-11  David S. Miller  <davem@davemloft.net>
11472
11473         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11474
11475 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
11476
11477         [BZ #14347]
11478         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
11479         (INTERNAL_MARK): Shift it here.
11480
11481 2012-07-10  Marek Polacek  <polacek@redhat.com>
11482
11483         [BZ #14151]
11484         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
11485         libc_cv_asm_global_directive with .globl.
11486         * configure: Regenerated.
11487         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
11488         with .globl.
11489         * sysdeps/i386/configure: Regenerated.
11490         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
11491         with .globl.
11492         * sysdeps/x86_64/configure: Regenerated.
11493         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
11494         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
11495         * elf/tst-unique2mod2.c: Likewise.
11496         * elf/tst-unique2mod1.c: Likewise.
11497         * elf/tst-unique1mod2.c: Likewise.
11498         * elf/tst-unique1mod1.c: Likewise.
11499         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11500         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11501         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11502         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11503         * sysdeps/mach/sysdep.h: Likewise.
11504         * sysdeps/i386/sysdep.h: Likewise.
11505         * sysdeps/i386/i386-mcount.S: Likewise.
11506         * sysdeps/x86_64/_mcount.S: Likewise.
11507         * sysdeps/x86_64/sysdep.h: Likewise.
11508         * sysdeps/sh/_mcount.S: Likewise.
11509         * sysdeps/sh/sysdep.h: Likewise.
11510         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
11511         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
11512         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
11513         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11514         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
11515         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
11516         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
11517         * locale/localeinfo.h: Likewise.
11518         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
11519         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
11520
11521 2012-07-09  Roland McGrath  <roland@hack.frob.com>
11522
11523         [BZ #14336]
11524         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
11525         system".
11526         * manual/message.texi (The Uniforum approach): Likewise.
11527         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
11528         (glibc iconv Implementation): Likewise.
11529
11530 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
11531
11532         [BZ #14337]
11533         * math/s_clog.c (__clog): Avoid scaling a value down where that
11534         could result in underflow.
11535         * math/s_clog10.c (__clog10): Likewise.
11536         * math/s_clog10f.c (__clog10f): Likewise.
11537         * math/s_clog10l.c (__clog10l): Likewise.
11538         * math/s_clogf.c (__clogf): Likewise.
11539         * math/s_clogl.c (__clogl): Likewise.
11540         * math/libm-test.inc (clog_test): Add more tests.
11541         (clog10_test): Likewise.
11542         * sysdeps/i386/fpu/libm-test-ulps: Update.
11543         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11544
11545 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
11546
11547         [BZ #14283]
11548         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
11549         by 7 not 8 to examine high bit of fractional part.
11550
11551         [BZ #14042]
11552         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
11553         for call to __mcount_internal.
11554         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
11555         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
11556         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
11557
11558 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
11559
11560         [BZ #14154]
11561         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
11562         approximation for values within 0x1p-13f of an odd multiple of
11563         pi/4.
11564         * math/libm-test.inc (tan_test): Do not allow spurious underflow
11565         exception.  Add more tests.
11566         * sysdeps/i386/fpu/libm-test-ulps: Update.
11567
11568         [BZ #6778]
11569         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
11570         inputs and return -1 for them.  Do not check for +Inf in case not
11571         reachable for +Inf.
11572         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
11573         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
11574         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11575         and return -1 for them.  Do not check for +Inf in case not
11576         reachable for +Inf.
11577         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
11578         define.
11579         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11580         and return -1 for them.  Do not check for +Inf in case not
11581         reachable for +Inf.
11582         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
11583         spurious underflow.
11584         * sysdeps/i386/fpu/libm-test-ulps: Update.
11585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11586
11587 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
11588
11589         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
11590
11591 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
11592
11593         [BZ #14157]
11594         [BZ #14331]
11595         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
11596         could result in spurious underflow.  Scale down values above
11597         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
11598         * math/s_csqrtf.c (__csqrtf): Likewise.
11599         * math/s_csqrtl.c (__csqrtl): Likewise.
11600         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
11601         spurious underflow.
11602         * sysdeps/i386/fpu/libm-test-ulps: Update.
11603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11604
11605 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
11606
11607         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
11608         xopen-msg.sed.
11609         * catgets/xopen-msg.awk: New file.
11610         * catgets/xopen-msg.sed: Removed.
11611
11612         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
11613         po2text.sed.
11614         * intl/po2test.awk: New file.
11615         * intl/po2test.sed: Removed.
11616
11617 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
11618
11619         [BZ #14328]
11620         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
11621         or multiply small sinh result by itself.
11622         * math/s_ctanf.c (__ctanf): Likewise.
11623         * math/s_ctanh.c (__ctanh): Likewise.
11624         * math/s_ctanhf.c (__ctanhf): Likewise.
11625         * math/s_ctanhl.c (__ctanhl): Likewise.
11626         * math/s_ctanl.c (__ctanl): Likewise.
11627         * math/libm-test.inc (ctan_test_tonearest): New function.
11628         (ctan_test_towardzero): Likewise.
11629         (ctan_test_downward): Likewise.
11630         (ctan_test_upward): Likewise.
11631         (ctanh_test_tonearest): Likewise.
11632         (ctanh_test_towardzero): Likewise.
11633         (ctanh_test_downward): Likewise.
11634         (ctanh_test_upward): Likewise.
11635         (main): Call these new functions.
11636         * sysdeps/i386/fpu/libm-test-ulps: Update.
11637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11638
11639 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
11640
11641         * .gitignore: Delete /ports entry.
11642
11643 2012-07-03  Andreas Jaeger  <aj@suse.de>
11644
11645         * po/bg.po: Update from translation team.
11646         * po/cs.po: Likewise.
11647         * po/de.po: Likewise.
11648         * po/hr.po: Likewise.
11649         * po/nl.pl: Likewise.
11650         * po/pl.po: Likewise.
11651         * po/vi.po: Likewise.
11652
11653 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
11654
11655         * Makeconfig [!+link] (+link-before-libc): New variable.
11656         [!+link] (+link-after-libc): Likewise.
11657         [!+link] (+link-tests): Likewise.
11658         [!+link] (+link): Define in terms of $(+link-before-libc) and
11659         $(+link-after-libc).
11660         [!+link-static] (+link-static-before-libc): New variable.
11661         [!+link-static] (+link-static-after-libc): Likewise.
11662         [!+link-static] (+link-static-tests): Likewise.
11663         [!+link-static] (+link-static): Define in terms of
11664         $(+link-static-before-libc) and $(+link-static-after-libc).
11665         [build-shared] (link-libc-before-gnulib): New variable.
11666         [build-shared] (link-libc-tests): Likewise.
11667         [build-shared] (link-libc): Define in terms of
11668         $(link-libc-before-gnulib).
11669         [!build-shared] (link-libc-tests): New variable.
11670         (link-libc-static-tests): New variable.
11671         [!gnulib] (gnulib-arch): New variable.
11672         [!gnulib] (gnulib-tests): Likewise.
11673         [!gnulib] (static-gnulib-arch): Likewise.
11674         [!gnulib] (static-gnulib-tests): Likewise.
11675         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
11676         Define with "=" instead of ":=".
11677         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
11678         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
11679         * Rules (binaries-all-notests): New variable.
11680         (binaries-all-tests): Likewise.
11681         (binaries-static-notests): Likewise.
11682         (binaries-static-tests): Likewise.
11683         (binaries-all): Define using $(binaries-all-notests) and
11684         $(binaries-all-tests).
11685         (binaries-static): Define using $(binaries-static-notests) and
11686         $(binaries-static-tests).
11687         (binaries-shared-tests): New variable.
11688         (binaries-shared-notests): Likewise.
11689         (binaries-shared): Remove variable.
11690         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
11691         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
11692         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
11693         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
11694         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
11695         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
11696         * elf/Makefile (sln-modules): New variable.
11697         (extra-objs): Add $(sln-modules:=.o).
11698         (ldconfig-modules): Add static-stubs.
11699         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
11700         * elf/static-stubs.c: New file.
11701
11702         [BZ #14283]
11703         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
11704         by 7 not 8 to examine high bit of fractional part.  Use volatile
11705         variables when splitting into final array of floats if
11706         __FLT_EVAL_METHOD__ != 0.
11707         * math/libm-test.inc (cos_test): Add another test.
11708         (sin_test): Likewise.
11709         * sysdeps/i386/fpu/libm-test-ulps: Update.
11710
11711         [BZ #14273]
11712         * math/libm-test.inc (cosh_test): Add more tests.
11713
11714         * version.h (RELEASE): Set to "development".
11715         (VERSION): Set to "2.16.90".
11716
11717 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
11718
11719         * NEWS: Update copyright. Remove last-updated date.
11720         Mention math library bug fixes and timezone data changes.
11721         * README: Mention GNU/Hurd, x32, and HPPA support status.
11722
11723 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
11724
11725         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
11726
11727 2012-06-27  Andreas Jaeger  <aj@suse.de>
11728
11729         * manual/contrib.texi (Contributors): Add Samuel Thibault.
11730
11731 2012-06-25  Andreas Jaeger  <aj@suse.de>
11732
11733         * sysdeps/s390/fpu/libm-test-ulps: Update.
11734
11735 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
11736             Thomas Schwinge  <thomas@codesourcery.com>
11737
11738         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
11739         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
11740         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
11741         fanotify_mark.
11742
11743 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
11744
11745         * sysdeps/mach/start.c: Remove file.
11746         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
11747         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
11748         * sysdeps/sh/init-first.c: Likewise.
11749
11750         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
11751         registers for frame unwinding purposes, add CFI directives.
11752         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11753         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
11754         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11755         Likewise.
11756
11757         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
11758         __fortify_fail returning.
11759         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11760
11761         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
11762         sysdeps/sh/____longjmp_chk.S.
11763         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
11764         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
11765         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
11766         (gen-as-const-headers): Append sigaltstack-offsets.sym.
11767
11768         * sysdeps/sh/abort-instr.h: New file.
11769         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
11770         process in case exit returns.
11771
11772         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
11773         initialize the GOT register before use.
11774
11775         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
11776         calculation of ARGC > 4.
11777
11778         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
11779         meaningful names to some local labels.
11780
11781 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11782             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11783
11784         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
11785         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
11786         (__arch_compare_and_exchange_val_16_acq): Likewise.
11787         (__arch_compare_and_exchange_val_32_acq): Likewise.
11788         (atomic_exchange_and_add): Fix gUSA sequence.
11789         (atomic_add): Likewise.
11790         (atomic_add_negative): Likewise.
11791         (atomic_add_zero): Likewise.
11792         (atomic_bit_test_set): Likewise.
11793
11794 2012-06-22  Andreas Schwab  <schwab@redhat.com>
11795
11796         [BZ #13579]
11797         * include/link.h (struct link_map): Add l_free_initfini.
11798         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
11799         l_initfini.
11800         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
11801         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
11802         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
11803         set.
11804
11805 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
11806
11807         * configure.in: Use AC_LANG_SOURCE.
11808         * configure: Regenerate.
11809
11810 2012-06-22  Roland McGrath  <roland@hack.frob.com>
11811
11812         * configure.in (libc_cv_localstatedir): New substituted variable.
11813         * configure: Regenerated.
11814         * config.make.in (localstatedir): New variable, substituted from
11815         libc_cv_localstatedir.
11816         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
11817         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
11818         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
11819         * sysdeps/gnu/configure: Regenerated.
11820
11821 2012-06-21  Jeff Law  <law@redhat.com>
11822
11823         [BZ #14277]
11824         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
11825         free.  Simplify list management for _LIBC case.
11826
11827 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
11828
11829         [BZ #14273]
11830         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
11831         Clear sign bit of 64-bit integer value before comparing against
11832         overflow value.
11833
11834         * sysdeps/mach/configure: Regenerated.
11835
11836 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11837
11838         [BZ #14278]
11839         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
11840
11841 2012-06-21  Jeff Law  <law@redhat.com>
11842
11843         [BZ #13882]
11844         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
11845         uint16_t for elements in the "seen" array to avoid char overflows.
11846         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11847         * elf/dl-open.c (dl_open_worker): Likewise.
11848
11849 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
11850
11851         * scripts/list-sources.sh: Scan PORTS for translations.
11852         * po/libc.pot: Regenerated.
11853
11854 2012-06-21  Andreas Jaeger  <aj@suse.de>
11855
11856         [BZ #12194]
11857         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
11858         warning.
11859         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
11860         * bits/byteswap-16.h (__bswap_16): Likewise.
11861         * bits/byteswap.h (__bswap_constant_16): Likewise.
11862
11863 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11864
11865         [BZ #14117]
11866         * sysdeps/i386/fpu_control.h: Removed.
11867         * sysdeps/x86_64/fpu_control.h: Moved to ...
11868         * sysdeps/x86/fpu_control.h: Here.
11869
11870         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
11871         (_FPU_SETCW): Likewise.
11872
11873 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
11874
11875         [BZ #14117]
11876         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
11877         * sysdeps/x86/fpu/bits/mathinline.h: This.
11878         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
11879
11880         [BZ #14050]
11881         [BZ #14117]
11882         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
11883         functions if __x86_64__ is defined.
11884
11885 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
11886
11887         * string/endian.h: Add !__ASSEMBLER__ condition for including
11888         conversion interfaces.
11889
11890 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
11891
11892         [BZ #14241]
11893         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
11894         of ABS(x) in calculating zero to negative powers other than odd
11895         integers.
11896         * math/libm-test.inc (pow_test): Add more tests.
11897
11898 2012-06-15  Andreas Jaeger  <aj@suse.de>
11899
11900         * manual/contrib.texi (Contributors): Update entry of Liubov
11901         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
11902         Machado Filho.
11903
11904 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
11905
11906         * string/string.h: Add __wur to GNU version of strerror_r.
11907
11908 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11909
11910         [BZ #14229]
11911         * string/Makefile (tests): Add tst-strtok_r.
11912         * string/tst-strtok_r.c: New file.
11913         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
11914         RAX_LP/RDX_LP on SAVE_PTR.
11915
11916 2012-06-14  Roland McGrath  <roland@hack.frob.com>
11917
11918         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
11919
11920 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
11921
11922         * libm_test.inc (csqrt_test): Allow more spurious underflow
11923         exceptions.
11924         (j0_test): Likewise.
11925         (j1_test): Likewise.
11926         (y0_test): Likewise.
11927         (y1_test): Likewise.
11928
11929 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
11930
11931         * po/Makefile (libc.pot): Use UTF-8 charset.
11932
11933 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
11934
11935         [BZ #14210]
11936         Suppress sign-conversion warning from FD_SET.
11937         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
11938         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
11939         not unsigned long int.
11940         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
11941
11942 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11943
11944         [BZ #14050]
11945         [BZ #14117]
11946         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
11947         __extern_always_inline instead of __extern_inline.
11948         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
11949         (__signbit): Likewise.
11950         (__signbitl): Support C++ namespace.
11951         (lrintf): New inline function.
11952         (lrint): Likewise.
11953         (llrintf): Likewise.
11954         (llrint): Likewise.
11955         (fmaxf): Likewise.
11956         (fmax): Likewise.
11957         (fminf): Likewise.
11958         (fmin): Likewise.
11959         (rint): Likewise.
11960         (rintf): Likewise.
11961         (ceil): Likewise.
11962         (ceilf): Likewise.
11963         (floor): Likewise.
11964         (floorf): Likewise.
11965         (nearbyint): Likewise.
11966         (nearbyintf): Likewise.
11967
11968 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
11969
11970         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
11971         non-default versions.
11972
11973 2012-06-11  Roland McGrath  <roland@hack.frob.com>
11974
11975         [BZ #14218]
11976         * manual/argp.texi (Argp): Reword argp_parse description slightly.
11977
11978 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
11979
11980         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
11981         (FE_UPWARD, FE_DOWNWARD): Don't define.
11982         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
11983         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11984
11985         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
11986         reading it.
11987         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11988         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11989
11990 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11991
11992         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
11993         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
11994         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
11995         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
11996
11997 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
11998
11999         [BZ #14117]
12000         * sysdeps/i386/fpu/bits/fenv.h: Removed.
12001         * sysdeps/i386/fpu/Implies: New file.
12002         * sysdeps/x86_64/fpu/Implies: Likewise.
12003         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
12004         * sysdeps/x86/fpu/bits/fenv.h: This.
12005
12006         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
12007         __SSE_MATH__.
12008
12009 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12010
12011         [BZ #14134]
12012         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
12013         character 0xffff that matches the last element of the
12014         conversion table.
12015
12016 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12017
12018         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
12019         fmodl commit.
12020
12021 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12022
12023         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
12024         values higher than 25.6283.
12025
12026 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12027
12028         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
12029         subnormal exponent extraction and add some __builtin_expect.
12030         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
12031         Fix for subnormal mantissa calculation.
12032
12033 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
12034
12035         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
12036         cpu2 is -1 and errno is not ENOSYS.
12037
12038 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12039
12040         [BZ #14117]
12041         * sysdeps/i386/i486/bits/string.h: Renamed to ...
12042         * sysdeps/x86/bits/string.h: This.
12043         * sysdeps/x86_64/bits/string.h: Removed.
12044
12045         * sysdeps/i386/i486/bits/string.h: Define inline functions only
12046         if not compiling for x86-64, but compiling for >= i486.
12047
12048         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
12049         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
12050
12051         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
12052         New macro from Linux kernel 3.4.0.
12053         (FP_XSTATE_MAGIC2): Likewise.
12054         (FP_XSTATE_MAGIC2_SIZE): Likewise.
12055         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
12056         (struct _fpx_sw_bytes): New struct.
12057         (struct _xsave_hdr): Likewise.
12058         (struct _ymmh_state): Likewise.
12059         (struct _xstate): Likewise.
12060
12061         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
12062         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
12063         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
12064         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
12065         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
12066         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
12067
12068         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
12069         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
12070         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
12071         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
12072         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
12073         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
12074
12075 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12076
12077         [BZ #13743]
12078         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
12079         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
12080         (sysdep_headers): Include sys/platform/ppc.h.
12081         * sysdeps/powerpc/test-gettimebase.c: Test for
12082         __ppc_get_timebase() to catch future ISA opcode/insn changes.
12083         * manual/Makefile (appendices): Include platform.texi.
12084         * manual/contrib.texi (Contributors): Update @node pointers.
12085         * manual/maint.texi (Maintenance): Likewise.
12086         (Platform): New node.
12087         * manual/platform.texi: New file.  Document the new features.
12088
12089 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12090             Jakub Jelinek  <jakub@redhat.com>
12091
12092         [BZ #14188]
12093         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
12094         where __builtin_expect is unavailable.
12095
12096 2012-06-03  David S. Miller  <davem@davemloft.net>
12097
12098         * stdlib/longlong.h: Updated from GCC.
12099
12100 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
12101
12102         [BZ #14042]
12103         * sysdeps/powerpc/powerpc32/mcount.c: New file.
12104         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
12105         __mcount_internal.
12106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12107         (GLIBC_2.16): Likewise.
12108
12109 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12110
12111         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
12112
12113 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12114
12115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
12116         (default-abi): New variable.
12117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
12118         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
12119         variable.
12120         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
12121         Likewise.
12122         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12123         Likewise.
12124         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12125         Likewise.
12126
12127         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12128         definition.  Document in comment.
12129
12130 2012-06-01  David S. Miller  <davem@davemloft.net>
12131
12132         * stdlib/longlong.h: Updated from GCC.
12133
12134 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12135
12136         [BZ #14117]
12137         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12138         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12139         sys/debugreg.h sys/io.h here.
12140         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12141         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12142         sys/io.h.
12143         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12144         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12145         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12146         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12147         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12148         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12149
12150         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12151         Define only if __x86_64__ is defined.
12152
12153 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12154
12155         [BZ #14048]
12156         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12157         Use int64_t for variable i.
12158         * math/libm-test.inc (fmod_test): Add more tests.
12159
12160         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12161         z computation is not scheduled after fetestexcept.
12162         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12163         Use math_force_eval instead of asm to ensure calculation scheduled
12164         before exception test.
12165         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12166         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12167
12168 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12169
12170         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12171         computation is not scheduled after fetestexcept.
12172
12173 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12174
12175         [BZ #14117]
12176         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12177         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12178
12179 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12180
12181         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12182         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12183
12184 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12185
12186         [BZ #14117]
12187         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12188         <bits/wordsize.h>.
12189         (__WCHAR_MIN): Support __WORDSIZE == 64.
12190         (__WCHAR_MAX): Likewise.
12191
12192         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12193         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12194
12195         [BZ #14183]
12196         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12197         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12198
12199         [BZ #14117]
12200         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12201         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12202
12203         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12204         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12205
12206         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12207         Defined to 1 if __x86_64__ isn't defined.
12208         (_STAT_VER_LINUX_OLD): New.
12209         (st_atime): Remove duplicate.
12210         (st_mtime): Likewise.
12211         (st_ctime): Likewise.
12212
12213 2012-05-31  David S. Miller  <davem@davemloft.net>
12214
12215         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12216         entries.
12217
12218 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12219
12220         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12221         gen-libm-test.pl.
12222
12223         [BZ #14132]
12224         * elf/dl-reloc.c: Include <_itoa.h>.
12225         (_dl_reloc_bad_type): Remove use of INTUSE.
12226         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12227         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12228         * stdio-common/psiginfo.c (psiginfo): Likewise.
12229         * stdio-common/psignal.c (psignal): Likewise.
12230         * string/strsignal.c (strsignal): Likewise.
12231         * include/signal.h (_sys_siglist): Declare hidden proto.
12232         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12233         INTVARDEF with libc_hidden_data_def.
12234         * stdio-common/itoa-udigits.c: Likewise.
12235         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12236         (_itoa_lower_digits_internal): Remove declaration.
12237         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12238         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12239         (_sys_sigabbrev_internal): Remove aliases.
12240         (_sys_siglist): Define hidden alias.
12241
12242 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12243
12244         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12245         bits/sysctl.h.
12246
12247 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12248
12249         [BZ #14117]
12250         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12251         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12252
12253         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12254         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12255         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12256         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12257         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12258         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12259
12260         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12261         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12262         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12263
12264         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12265         with __addr.
12266         (insw): Likewise.
12267         (insl): Likewise.
12268         (outsb): Likewise.
12269         (outsw): Likewise.
12270         (outsl): Likewise.
12271
12272         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12273         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12274         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12275
12276         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12277         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12278         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12279         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12280         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12281         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12282
12283         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12284         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12285
12286         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12287         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12288
12289         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12290         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12291         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12292
12293         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12294         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12295         to ...
12296         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12297
12298         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12299         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12300         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12301
12302         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12303         for x86-64.
12304         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12305
12306 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12307
12308         * math/math.h (M_El): Use two more decimal places.
12309         (M_LOG2El): Likewise.
12310         (M_LOG10El): Likewise.
12311         (M_LN2l): Likewise.
12312         (M_LN10l): Likewise.
12313         (M_PIl): Likewise.
12314         (M_PI_2l): Likewise.
12315         (M_PI_4l): Likewise.
12316         (M_1_PIl): Likewise.
12317         (M_2_PIl): Likewise.
12318         (M_2_SQRTPIl): Likewise.
12319         (M_SQRT2l): Likewise.
12320         (M_SQRT1_2l): Likewise.
12321
12322 2012-05-31  David S. Miller  <davem@davemloft.net>
12323
12324         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12325         values between float registers.
12326         * sysdeps/sparc/sparc64/memset.S: Likewise.
12327         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12328
12329 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12330
12331         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12332         -D_FORTIFY_SOURCE=1.
12333         (CPPFLAGS-tst-longjmp_chk.c): Define.
12334         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12335         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12336         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12337         CFLAGS-tst-wchar-h.c.
12338
12339 2012-05-31  Marek Polacek  <polacek@redhat.com>
12340
12341         [BZ #14132]
12342         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
12343         __endmntent_internal): Remove declaration.
12344         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
12345         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
12346         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
12347
12348 2012-05-30  David S. Miller  <davem@davemloft.net>
12349
12350         * sysdeps/sparc/sparc32/soft-fp/q_util.c
12351         (___Q_simulate_exceptions): Use real FP ops rather than writing
12352         into the %fsr.
12353         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
12354         Likewise.
12355
12356 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12357
12358         [BZ #14117]
12359         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
12360         * sysdeps/x86/bits/xtitypes.h: This.
12361
12362         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
12363         * sysdeps/x86/bits/wordsize.h: This.
12364
12365         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
12366         * sysdeps/x86/bits/huge_vall.h: This.
12367
12368         * sysdeps/i386/bits/select.h: Removed.
12369         * sysdeps/x86_64/bits/select.h: Renamed to ...
12370         * sysdeps/x86/bits/select.h: This.
12371
12372         * sysdeps/i386/bits/setjmp.h: Removed.
12373         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
12374         * sysdeps/x86/bits/setjmp.h: This.
12375
12376         * sysdeps/i386/bits/mathdef.h: Removed.
12377         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
12378         * sysdeps/x86/bits/mathdef.h: This.
12379
12380 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
12381
12382         [BZ #14132]
12383         * include/sys/socket.h (__connect_internal)
12384         (__libc_sa_len_internal): Remove declaration.
12385         (__connect, __libc_sa_len): Declare hidden_proto.
12386         (SA_LEN): Remove use of INTUSE.
12387         * socket/connect.c: Add libc_hidden_def.
12388         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
12389         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
12390         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
12391         alias.
12392         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12393         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12394         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
12395         of adding _internal alias.
12396
12397 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12398
12399         [BZ #14117]
12400         * sysdeps/i386/bits/link.h: Removed.
12401         * sysdeps/i386/bits/linkmap.h: Likewise.
12402         * sysdeps/x86_64/bits/link.h: Renamed to ...
12403         * sysdeps/x86/bits/link.h: This.
12404         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
12405         * sysdeps/x86/bits/linkmap.h: This.
12406
12407         * sysdeps/i386/bits/endian.h: Removed.
12408         * sysdeps/x86_64/bits/endian.h: Renamed to ...
12409         * sysdeps/x86/bits/endian.h: This.
12410
12411         * sysdeps/i386/bits/byteswap.h: Removed.
12412         * sysdeps/i386/bits/byteswap-16.h: Likewise.
12413         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
12414         * sysdeps/x86/bits/byteswap.h: This.
12415         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
12416         * sysdeps/x86/bits/byteswap-16.h: This.
12417         * sysdeps/i386/Implies: Add x86.
12418         * sysdeps/x86_64/Implies: Likewise.
12419
12420 2012-05-30  David S. Miller  <davem@davemloft.net>
12421
12422         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
12423         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
12424         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
12425         (FP_TRAPPING_EXCEPTIONS): Define.
12426         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
12427         (FP_TRAPPING_EXCEPTIONS): Define.
12428         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
12429         subnormals only when inexact has been signalled or underflow
12430         exceptions are enabled.
12431         (_FP_PACK_CANONICAL): Likewise.
12432
12433 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12434
12435         [BZ #14183]
12436         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
12437         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
12438
12439 2012-05-30  Richard Henderson  <rth@twiddle.net>
12440
12441         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
12442         with #ifndef NOT_IN_libc.
12443
12444         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
12445         marked to avoid plt entry.
12446
12447 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12448
12449         [BZ #14112]
12450         * Makeconfig (default-abi): New macro.
12451         (abi-includes): Likewise.
12452         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
12453         $(abi-$(default-abi)-lib-soname) for soname if defined.
12454         ($(common-objpfx)gnu/lib-names.stmp): Generate from
12455         abi-variants.
12456         * Makefile (installed-stubs): Likewise.
12457         * include/stubs-biarch.h: Removed.
12458         * scripts/lib-names.awk: Only handle one library at a time.
12459         * scripts/soversions.awk: Remove WORDSIZE support.
12460         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
12461         entries.
12462         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
12463         Removed.
12464         (syscall-list-default-condition): Likewise.
12465         (syscall-list-default-condition): Likewise.
12466         (syscall-list-includes): Likewise.
12467         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
12468         syscall-list-* with abi-*.  Handle undefined abi-variants.
12469         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
12470         * sysdeps/unix/sysv/linux/i386/Implies: New file.
12471         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
12472         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
12473         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
12474         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
12475         Removed.
12476         (syscall-list-32-options): Likewise.
12477         (syscall-list-32-condition): Likewise.
12478         (syscall-list-64-options): Likewise.
12479         (syscall-list-64-condition): Likewise.
12480         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
12481         macro.
12482         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
12483         Renamed to ...
12484         (abi-*): This.
12485         (abi-64-ld-soname): New macro.
12486         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
12487         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
12488         Renamed to ...
12489         (abi-*): This.
12490         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
12491         * sysdeps/x86_64/x32/shlib-versions: Likewise.
12492
12493 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
12494
12495         * sysdeps/unix/sysv/linux/kernel-features.h
12496         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
12497         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
12498         include <kernel-features.h>.
12499         [!__NR_ftruncate64]: Remove conditional code.
12500         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12501         [__NR_ftruncate64]: Make code unconditional.
12502         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12503         * sysdeps/unix/sysv/linux/truncate64.c: Do not
12504         include <kernel-features.h>.
12505         [!__NR_ftruncate64]: Remove conditional code.
12506         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12507         [__NR_ftruncate64]: Make code unconditional.
12508         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
12510         include <kernel-features.h>.
12511         [!__NR_ftruncate64]: Remove conditional code.
12512         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12513         [__NR_ftruncate64]: Make code unconditional.
12514         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
12516         include <kernel-features.h>.
12517         [!__NR_ftruncate64]: Remove conditional code.
12518         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12519         [__NR_ftruncate64]: Make code unconditional.
12520         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12521
12522         * configure.in (libc_cv_fpie): Weaken to a compile test using
12523         LIBC_TRY_CC_OPTION.
12524         * configure: Regenerated.
12525
12526 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12527
12528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
12529         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
12530         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
12531         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
12532         Refreshed.
12533         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
12534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
12535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
12536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
12537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
12538         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
12539         Refreshed.
12540
12541 2012-05-27  David S. Miller  <davem@davemloft.net>
12542
12543         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
12544         (___Q_zero): New.
12545         (__Q_simulate_exceptions): Return void.  Change to simulate
12546         exceptions by writing into the %fsr.
12547         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
12548         (__Qp_handle_exceptions): Likewise.
12549         (numbers): Delete.
12550         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
12551         __Qp_handle_exceptions.
12552         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
12553         __Qp_handle_exceptions.
12554         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12555         as unused and give dummy FP_RND_NEAREST initializer.
12556         (FP_INHIBIT_RESULTS): Define.
12557         (___Q_simulate_exceptions): Update declaration.
12558         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
12559         formatting.
12560         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12561         as unused and give dummy FP_RND_NEAREST initializer.
12562         (__Qp_handle_exceptions): Update declaration.
12563         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
12564         formatting.
12565
12566 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
12567
12568         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
12569         the temporary FPU control word.
12570         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
12571         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
12572         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
12573         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12574         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
12575         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
12576         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
12577         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12578         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
12579         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12580         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12581
12582 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12583
12584         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
12585         fields.
12586
12587 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
12588
12589         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
12590         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
12591         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
12592         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
12593         Likewise.
12594         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
12595         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
12596         Likewise.
12597
12598 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
12599
12600         * po/h.po: Update from translation team.
12601
12602 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
12603
12604         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
12605
12606         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
12607         handling of denormals.
12608         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
12609         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
12610         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
12611         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
12612         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12613         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
12614         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
12615         Likewise.
12616
12617 2012-05-26  Marek Polacek  <polacek@redhat.com>
12618
12619         [BZ #14152]
12620         * math/libm-test.inc (fma_test): Don't always expect underflow
12621         exception.
12622
12623 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12624
12625         [BZ #12416]
12626         * elf/tst-execstack.c: Include stackinfo.h.
12627         (do_test): Adjust test case to ensure that pthread_getattr_np
12628         behaviour remains the same after marking stack executable.
12629
12630 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12631
12632         * sysdeps/unix/sysv/linux/kernel-features.h
12633         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
12634         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
12635         kernel-features.h.
12636         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12637         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12638         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
12639         kernel-features.h.
12640         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12641         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12642
12643 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12644
12645         * configure.in: Define the default includes to being none.
12646         * configure: Regenerated.
12647
12648 2012-05-25  Roland McGrath  <roland@hack.frob.com>
12649
12650         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
12651         * sysdeps/x86_64/setjmp.S: Likewise.
12652         * sysdeps/i386/bsd-setjmp.S: Likewise.
12653         * sysdeps/i386/bsd-_setjmp.S: Likewise.
12654         * sysdeps/i386/setjmp.S: Likewise.
12655         * sysdeps/i386/__longjmp.S: Likewise.
12656         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
12657         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
12658
12659         * include/stap-probe.h: New file.
12660         * configure.in: Handle --enable-systemtap.
12661         * configure: Regenerated.
12662         * config.h.in (USE_STAP_PROBE): New #undef.
12663         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
12664         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
12665         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
12666
12667 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12668
12669         [BZ #13717]
12670         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12671         to 2.4.0 where earlier.
12672         * sysdeps/unix/sysv/linux/configure: Regenerated.
12673         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12674         <kernel-features.h>.
12675         [__ASSUME_32BITUIDS]: Make code unconditional.
12676         [!__ASSUME_32BITUIDS]: Remove conditional code.
12677         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
12678         <kernel-features.h>.
12679         [__ASSUME_32BITUIDS]: Make code unconditional.
12680         [!__ASSUME_32BITUIDS]: Remove conditional code.
12681         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
12682         [__ASSUME_32BITUIDS]: Make code unconditional.
12683         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
12684         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.c: Do not include
12717         <kernel-features.h>.
12718         [__ASSUME_32BITUIDS]: Make code unconditional.
12719         [!__ASSUME_32BITUIDS]: Remove conditional code.
12720         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
12721         <kernel-features.h>.
12722         [__ASSUME_32BITUIDS]: Make code unconditional.
12723         [!__ASSUME_32BITUIDS]: Remove conditional code.
12724         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
12725         <kernel-features.h>.
12726         [__NR_setresgid] (__setresgid): Do not declare.
12727         [__ASSUME_32BITUIDS]: Make code unconditional.
12728         [!__ASSUME_32BITUIDS]: Remove conditional code.
12729         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
12730         <kernel-features.h>.
12731         [__NR_setresuid] (__setresuid): Do not declare.
12732         [__ASSUME_32BITUIDS]: Make code unconditional.
12733         [!__ASSUME_32BITUIDS]: Remove conditional code.
12734         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/i386/setuid.c: Do not include
12767         <kernel-features.h>.
12768         [__ASSUME_32BITUIDS]: Make code unconditional.
12769         [!__ASSUME_32BITUIDS]: Remove conditional code.
12770         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
12771         <kernel-features.h>.
12772         [__ASSUME_32BITUIDS]: Make code unconditional.
12773         [!__ASSUME_32BITUIDS]: Remove conditional code.
12774         * sysdeps/unix/sysv/linux/kernel-features.h
12775         (__ASSUME_SETRESUID_SYSCALL): Remove.
12776         (__ASSUME_SETRESGID_SYSCALL): Likewise.
12777         (__ASSUME_32BITUIDS): Likewise.
12778         (__ASSUME_LDT_WORKS): Likewise.
12779         (__ASSUME_O_DIRECTORY): Likewise.
12780         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
12781         architecture but not kernel version.
12782         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
12783         (__ASSUME_MMAP2_SYSCALL): Likewise.
12784         (__ASSUME_STAT64_SYSCALL): Likewise.
12785         (__ASSUME_IPC64): Likewise.
12786         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
12787         <kernel-features.h>.
12788         [__ASSUME_32BITUIDS]: Make code unconditional.
12789         [!__ASSUME_32BITUIDS]: Remove conditional code.
12790         * sysdeps/unix/sysv/linux/opendir.c: Do not include
12791         <kernel-features.h>.
12792         [__ASSUME_O_DIRECTORY]: Make code unconditional.
12793         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
12794         132096]: Remove conditional code.
12795         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
12796         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12797         <kernel-features.h>.
12798         [__ASSUME_32BITUIDS]: Make code unconditional.
12799         [!__ASSUME_32BITUIDS]: Remove conditional code.
12800         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12801         <kernel-features.h>.
12802         [__ASSUME_32BITUIDS]: Make code unconditional.
12803         [!__ASSUME_32BITUIDS]: Remove conditional code.
12804         * sysdeps/unix/sysv/linux/setegid.c: Do not include
12805         <kernel-features.h>.
12806         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
12807         unconditional.
12808         (__setresgid): Do not declare.
12809         [__ASSUME_32BITUIDS]: Make code unconditional.
12810         [!__ASSUME_32BITUIDS]: Remove conditional code.
12811         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
12812         <kernel-features.h>.
12813         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
12814         unconditional.
12815         (__setresuid): Do not declare.
12816         [__ASSUME_32BITUIDS]: Make code unconditional.
12817         [!__ASSUME_32BITUIDS]: Remove conditional code.
12818         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
12819         <kernel-features.h>.
12820         [__ASSUME_32BITUIDS]: Make code unconditional.
12821         [!__ASSUME_32BITUIDS]: Remove conditional code.
12822         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
12823         <kernel-features.h>.
12824         [__ASSUME_32BITUIDS]: Make code unconditional.
12825         [!__ASSUME_32BITUIDS]: Remove conditional code.
12826
12827 2012-05-25  Richard Henderson  <rth@twiddle.net>
12828
12829         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
12830         dl_hwcap to ifunc resolver.
12831         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
12832         elf_ifunc_invoke.
12833         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
12834         dl_hwcap to ifunc resolver.
12835         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
12836
12837 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12838
12839         [BZ #14153]
12840         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
12841         for |x| <= 2**-26, not 2**-57.
12842         * math/libm-test.inc (acos_test): Do not allow spurious underflow
12843         exception.
12844
12845 2012-05-24  Jeff Law  <law@redhat.com>
12846
12847         * stdio-common/Makefile (tests): Add bug25.
12848         * stdio-common/bug25.c: New test.
12849
12850 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12851
12852         [BZ #13576]
12853         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
12854         multiple of MALLOC_ALIGNMENT in size.
12855         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
12856
12857 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12858
12859         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
12860         Require >= 256.
12861         (FILENAME_MAX): Use macro-int-constant.
12862         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
12863         (_IOFBF): Use macro-int-constant.
12864         (_IOLBF): Likewise.
12865         (_IONBF): Likewise.
12866         (SEEK_CUR): Likewise.
12867         (SEEK_END): Likewise.
12868         (SEEK_SET): Likewise.
12869         (TMP_MAX): Likewise.
12870         (EOF): Use macro-int-constant.  Require < 0.
12871         (NULL): Use macro-constant.  Require == 0.
12872         (stdin): Require type to be FILE *.
12873         (stdout): Likewise.
12874         (stderr): Likewise.
12875         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
12876         macro-int-constant.
12877         (EXIT_SUCCESS): Likewise.
12878         (NULL): Use macro-constant.  Require == 0.
12879         (RAND_MAX): Use macro-int-constant.
12880         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
12881         [C99-based standards] (strtof): Require function.
12882         [C99-based standards] (strtold): Likewise.
12883         [C99-based standards] (strtoll): Likewise.
12884         [C99-based standards] (strtoull): Likewise.
12885         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12886         [ISO || ISO99 || ISO11] (limits.h): Likewise.
12887         [ISO || ISO99 || ISO11] (math.h): Likewise.
12888         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
12889         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12890         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12891
12892 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
12893
12894         [BZ #14132]
12895         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
12896         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
12897         * intl/dgettext.c (DCGETTEXT): Likewise.
12898         * intl/gettext.c (DCGETTEXT): Likewise.
12899         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
12900         * posix/regex_internal.h (gettext): Likewise.
12901         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
12902         Remove declaration.
12903         * include/argz.h (__argz_count_internal)
12904         (__argz_stringify_internal): Remove declaration.
12905         (__argz_count, __argz_stringify): Declare hidden proto.
12906         * intl/dcgettext.c: Remove use of INTDEF.
12907         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
12908         * string/argz-stringify.c: Likewise.
12909         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12910         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12911         Declare hidden proto.
12912         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12913         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12914         Declare hidden proto.
12915         * include/stdio.h (__asprintf_internal): Don't declare.
12916         (__asprintf): Don't define as macro.  Declare hidden proto.
12917         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
12918         (__fsetlocking): Declare hidden proto.
12919         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
12920         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
12921         hidden proto.
12922         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
12923         (_IO_setlinebuf): Remove use of INTUSE.
12924         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
12925         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
12926         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
12927         Remove declaration.
12928         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
12929         (_IO_do_flush): Remove use of INTUSE.
12930         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
12931         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
12932         (_IO_adjust_column, _IO_least_wmarker)
12933         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
12934         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
12935         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
12936         (_IO_default_doallocate, _IO_wdefault_doallocate)
12937         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
12938         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
12939         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
12940         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
12941         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
12942         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
12943         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
12944         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
12945         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
12946         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
12947         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
12948         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
12949         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
12950         proto.
12951         (_IO_flush_all_internal, _IO_adjust_column_internal)
12952         (_IO_default_uflow_internal, _IO_default_finish_internal)
12953         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
12954         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
12955         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
12956         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
12957         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
12958         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
12959         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
12960         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
12961         (_IO_file_close_internal, _IO_file_close_it_internal)
12962         (_IO_file_underflow_internal, _IO_file_overflow_internal)
12963         (_IO_file_init_internal, _IO_file_attach_internal)
12964         (_IO_file_fopen_internal, _IO_file_read_internal)
12965         (_IO_file_sync_internal, _IO_file_seek_internal)
12966         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
12967         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
12968         (_IO_str_underflow_internal, _IO_str_overflow_internal)
12969         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
12970         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
12971         (_IO_list_all_internal, _IO_link_in_internal)
12972         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
12973         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
12974         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
12975         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
12976         (_IO_do_write_internal, _IO_padn_internal)
12977         (_IO_getline_info_internal, _IO_getline_internal)
12978         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
12979         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
12980         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
12981         (_IO_vfscanf_internal, _IO_vfprintf_internal)
12982         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
12983         (_IO_init_internal, _IO_un_link_internal): Don't declare.
12984         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
12985         with libc_hidden_ver, remove use of INTUSE.
12986         * libio/genops.c: Likewise.
12987         * libio/freopen.c: Likewise.
12988         * libio/freopen64.c: Likewise.
12989         * libio/iofclose.c: Likewise.
12990         * libio/iofdopen.c: Likewise.
12991         * libio/iofflush.c: Likewise.
12992         * libio/iofflush_u.c: Likewise.
12993         * libio/iofgets.c: Likewise.
12994         * libio/iofgets_u.c: Likewise.
12995         * libio/iofopen.c: Likewise.
12996         * libio/iofopncook.c: Likewise.
12997         * libio/iofread.c: Likewise.
12998         * libio/iofread_u.c: Likewise.
12999         * libio/ioftell.c: Likewise.
13000         * libio/iofwrite.c: Likewise.
13001         * libio/iogetline.c: Likewise.
13002         * libio/iogets.c: Likewise.
13003         * libio/iogetwline.c: Likewise.
13004         * libio/iopadn.c: Likewise.
13005         * libio/iopopen.c: Likewise.
13006         * libio/ioseekoff.c: Likewise.
13007         * libio/ioseekpos.c: Likewise.
13008         * libio/iosetbuffer.c: Likewise.
13009         * libio/iosetvbuf.c: Likewise.
13010         * libio/ioungetc.c: Likewise.
13011         * libio/ioungetwc.c: Likewise.
13012         * libio/iovdprintf.c: Likewise.
13013         * libio/iovsprintf.c: Likewise.
13014         * libio/iovsscanf.c: Likewise.
13015         * libio/memstream.c: Likewise.
13016         * libio/obprintf.c: Likewise.
13017         * libio/oldfileops.c: Likewise.
13018         * libio/oldiofclose.c: Likewise.
13019         * libio/oldiofdopen.c: Likewise.
13020         * libio/oldiofopen.c: Likewise.
13021         * libio/oldiopopen.c: Likewise.
13022         * libio/oldstdfiles.c: Likewise.
13023         * libio/putc.c: Likewise.
13024         * libio/setbuf.c: Likewise.
13025         * libio/setlinebuf.c: Likewise.
13026         * libio/stdfiles.c: Likewise.
13027         * libio/strops.c: Likewise.
13028         * libio/vasprintf.c: Likewise.
13029         * libio/vscanf.c: Likewise.
13030         * libio/vsnprintf.c: Likewise.
13031         * libio/vswprintf.c: Likewise.
13032         * libio/wfiledoalloc.c: Likewise.
13033         * libio/wfileops.c: Likewise.
13034         * libio/wgenops.c: Likewise.
13035         * libio/wmemstream.c: Likewise.
13036         * libio/wstrops.c: Likewise.
13037         * libio/__fpurge.c: Likewise.
13038         * libio/__fsetlocking.c: Likewise.
13039         * assert/assert.c: Likewise.
13040         * debug/fgets_chk.c: Likewise.
13041         * debug/fgets_u_chk.c: Likewise.
13042         * debug/fread_chk.c: Likewise.
13043         * debug/fread_u_chk.c: Likewise.
13044         * debug/gets_chk.c: Likewise.
13045         * debug/obprintf_chk.c: Likewise.
13046         * debug/vasprintf_chk.c: Likewise.
13047         * debug/vdprintf_chk.c: Likewise.
13048         * debug/vsnprintf_chk.c: Likewise.
13049         * debug/vsprintf_chk.c: Likewise.
13050         * malloc/mtrace.c: Likewise.
13051         * misc/error.c: Likewise.
13052         * misc/syslog.c: Likewise.
13053         * stdio-common/asprintf.c: Likewise.
13054         * stdio-common/fxprintf.c: Likewise.
13055         * stdio-common/getw.c: Likewise.
13056         * stdio-common/isoc99_fscanf.c: Likewise.
13057         * stdio-common/isoc99_scanf.c: Likewise.
13058         * stdio-common/isoc99_vfscanf.c: Likewise.
13059         * stdio-common/isoc99_vscanf.c: Likewise.
13060         * stdio-common/isoc99_vsscanf.c: Likewise.
13061         * stdio-common/printf-prs.c: Likewise.
13062         * stdio-common/printf_fp.c: Likewise.
13063         * stdio-common/printf_fphex.c: Likewise.
13064         * stdio-common/printf_size.c: Likewise.
13065         * stdio-common/putw.c: Likewise.
13066         * stdio-common/scanf.c: Likewise.
13067         * stdio-common/sprintf.c: Likewise.
13068         * stdio-common/tmpfile.c: Likewise.
13069         * stdio-common/vfprintf.c: Likewise.
13070         * stdio-common/vfscanf.c: Likewise.
13071         * stdlib/strfmon_l.c: Likewise.
13072         * sunrpc/openchild.c: Likewise.
13073         * sunrpc/xdr_stdio.c: Likewise.
13074         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
13075         * sysdeps/mach/hurd/tmpfile.c: Likewise.
13076
13077 2012-05-24  Roland McGrath  <roland@hack.frob.com>
13078
13079         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13080
13081         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
13082         in the third column, to generate for the shared library an IFUNC
13083         that uses _dl_vdso_vsym.
13084         * Makerules (COMPILE.c, compile-stdin.c): New variables.
13085         * Makeconfig (object-suffixes-noshared): New variable.
13086
13087         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
13088         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
13089         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
13090         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
13091
13092         [BZ #14132]
13093         * include/sys/time.h (__gettimeofday): Remove macro.
13094         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
13095         * time/gettimeofday.c (__gettimeofday): Remove #undef.
13096         Remove INTDEF.
13097         (__gettimeofday): Add libc_hidden_def.
13098         (gettimeofday): Add libc_hidden_weak.
13099         * sysdeps/mach/gettimeofday.c: Likewise.
13100         * sysdeps/posix/gettimeofday.c: Likewise.
13101         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
13102         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
13103         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
13104         (__gettimeofday_internal): Remove strong_alias.
13105         (__gettimeofday): Add libc_hidden_def.
13106         (gettimeofday): Add libc_hidden_weak.
13107         * sysdeps/unix/syscalls.list (gettimeofday):
13108         Remove __gettimeofday_internal alias.
13109
13110 2012-05-24  Daniel Jacobowitz  <drow@false.org>
13111             H.J. Lu  <hongjiu.lu@intel.com>
13112
13113         [BZ #12495]
13114         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
13115         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
13116         (largebin_index_32_big): New.
13117         (largebin_index): Use it for 16-byte alignment.
13118         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
13119         correction with front_misalign.
13120
13121 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13122
13123         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13124         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13125         Likewise.
13126         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13127         Likewise.
13128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13129         Likewise.
13130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13131         Likewise.
13132         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13133         Likewise.
13134         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13135         Likewise.
13136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13137         Likewise.
13138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13139         Likewise.
13140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13141         Likewise.
13142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13143         Likewise.
13144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13145         Likewise.
13146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13147         Likewise.
13148
13149         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13150         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13151
13152 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13153
13154         [BZ #10846]
13155         [BZ #14036]
13156         * math/libm-test.inc (exp_test): Add test from bug 14036.
13157         (pow_test): Add test from bug 10846.
13158
13159         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13160         and other flags.
13161         (special_function): Do not include flags in test name.
13162         (parse_args): Likewise.
13163         * sysdeps/i386/fpu/libm-test-ulps: Update.
13164         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13165         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13166         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13168
13169         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13170         exceptions.
13171         * math/libm-test.inc ("Philosophy"): Update comment about
13172         exception testing.
13173         (UNDERFLOW_EXCEPTION): New macro.
13174         (UNDERFLOW_EXCEPTION_OK): Likewise.
13175         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13176         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13177         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13178         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13179         (INVALID_EXCEPTION_OK): Update value.
13180         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13181         (OVERFLOW_EXCEPTION_OK): Likewise.
13182         (IGNORE_ZERO_INF_SIGN): Likewise.
13183         (test_exceptions): Handle underflow exceptions.
13184         (acos_test): Update for underflow exception expectations.
13185         (cexp_test): Likewise.
13186         (clog_test): Likewise.
13187         (clog10_test): Likewise.
13188         (csqrt_test): Likewise.
13189         (ctan_test): Likewise.
13190         (ctanh_test): Likewise.
13191         (exp_test): Likewise.
13192         (exp10_test): Likewise.
13193         (exp2_test): Likewise.
13194         (expm1_test): Likewise.
13195         (fma_test): Likewise.
13196         (j0_test): Likewise.
13197         (jn_test): Likewise.
13198         (nexttoward_test): Likewise.
13199         (pow_test): Likewise.
13200         (scalbn_test): Likewise.
13201         (scalbln_test): Likewise.
13202         (tan_test): Likewise.
13203         (y1_test): Likewise.
13204         * sysdeps/i386/fpu/libm-test-ulps: Update.
13205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13206
13207 2012-05-23  David S. Miller  <davem@davemloft.net>
13208
13209         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13210         (__libc_sigaction): Remove unused local variables.
13211
13212 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13213
13214         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13215
13216 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13217
13218         mktime: avoid signed integer overflow
13219         * time/mktime.c (__mktime_internal): Do not mishandle the case
13220         where diff == INT_MIN.
13221
13222         mktime: simplify computation of average
13223         * time/mktime.c (ranged_convert): Use new time_t_avg function
13224         instead of rolling our own (probably-slower) code.
13225
13226         mktime: do not assume signed right shift propagates sign bit
13227         * time/mktime.c (isdst_differ): New static function.
13228         (__mktime_internal): No need to normalize tm_isdst now.
13229         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13230         tm_isdst values.
13231
13232         mktime: merge another wrapv change from gnulib
13233         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13234         from some compilers.
13235
13236         mktime: remove incorrect attempt at unusual arithmetics
13237         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13238         The code didn't really work on such machines anyway.
13239         (TYPE_MINIMUM): Assume two's complement.
13240         (twos_complement_arithmetic): Verify that long_int and time_t
13241         are two's complement (or unsigned, in the latter case).
13242
13243         mktime: check signed shifts on long_int and time_t, too
13244         * time/mktime.c (SHR): Check that shifts work as desired
13245         on the types long_int and time_t too, as SHR is used on
13246         such types.
13247
13248         mktime: do not assume 'long' is wide enough
13249         * time/mktime.c (verify): Move decl up.
13250         (long_int): New type.
13251         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13252         to remove assumption in the code that 'long' is wide enough to
13253         store year values.  This assumption is not true on x32 and on
13254         some non-glibc platforms.
13255
13256         mktime: merge wrapv change from gnulib
13257         * time/mktime.c (WRAPV): New macro.
13258         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13259         (guess_time_tm, __mktime_internal): Do not assume that signed
13260         integer overflow wraps around; modern compilers generate code
13261         where this assumption is no longer valid.
13262
13263 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13264
13265         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13266         Replace "jmp L(pseudo_end)" with "ret".
13267         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13268         Likewise.
13269
13270 2012-05-23  Andreas Jaeger  <aj@suse.de>
13271
13272         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13273         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13274
13275 2012-05-23  Andreas Jaeger  <aj@suse.de>
13276             Maximilian Attems  <max@stro.at>
13277
13278         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13279         New macros.
13280
13281 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13282
13283         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13284         code so that pseudo_end is just ret and the stack pointer is
13285         correct also for static library in error case.
13286
13287 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13288
13289         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13290         move to syscalls.list.
13291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13295
13296         * manual/install.texi (Running make install): Do not mention Linux
13297         kernel version for which pt_chown is not needed.
13298         (Linux): Do not mention problems with nscd with 2.0 kernels.
13299         * INSTALL: Regenerated.
13300
13301 2012-05-23  Andreas Jaeger  <aj@suse.de>
13302
13303         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13304         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13305         macro.
13306         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13307         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13308         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13309         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13310         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13311         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13312         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13313         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13314         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13315         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13316         * sysdeps/unix/sysv/linux/bits/in.h
13317         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13318
13319 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13320
13321         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13322         (PREPARE_VERSION): Just use assert instead, it will be elided
13323         under [NDEBUG] anyway.
13324
13325 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13326
13327         * sysdeps/unix/sysv/linux/Makefile: Include
13328         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13329         (sysdep_routines): Remove sysctl.
13330         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13331         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13332         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13333         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13334         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13335
13336 2012-05-22  Andreas Jaeger  <aj@suse.de>
13337
13338         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13339         that pseudo_end is just ret and the stack pointer is correct also
13340         for static library in error case.
13341
13342 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
13343
13344         [BZ #14122]
13345         * nss/nsswitch.c (defconfig_entries): New variable.
13346         (__nss_database_lookup): Don't leak defconfig entries.
13347         (nss_parse_service_list): Don't leak on error paths.
13348         (free_database_entries): New function.
13349         (free_defconfig): New function.
13350         (free_mem): Move common code to free_database_entries.
13351
13352 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13353
13354         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
13355         Add arch_prctl.
13356         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
13357
13358         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
13359         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
13360         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
13361         New macro.
13362         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
13363         (INTERNAL_SYSCALL_TYPES): Likewise.
13364         (LOAD_ARGS_TYPES_[1-6]): Likewise.
13365         (LOAD_REGS_TYPES_[1-6]): Likewise.
13366         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
13367         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
13368
13369 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13370
13371         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
13372         copysignl for GLIBC_2_0.
13373         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
13374         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
13375         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
13376         logbl for GLIBC_2_0.
13377         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
13378         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
13379
13380 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13381
13382         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
13383         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13384
13385         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13386         Use "neg %eax".
13387
13388         * time/mktime.c: Update copyright years.
13389
13390 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13391
13392         mktime: merge comment-quoting-style change from gnulib
13393         * time/mktime.c: Quote 'like this' in comments.
13394         The GNU coding standards suggest that we no longer quote `like this',
13395         as "`" and "'" are typically rendered asymmetrically nowadays.
13396         The typical gnulib style is to quote 'like this' when quoting
13397         code, and "like this" when quoting English.
13398
13399         * time/mktime.c (compile-command): Add "-I.".
13400
13401         mktime: merge mktime-internal.h change from gnulib
13402         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
13403
13404         mktime: merge time_r change from gnulib
13405         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
13406
13407         mktime: merge DEBUG change from gnulib
13408         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
13409         case system <time.h> has a #define.
13410
13411         mktime: merge <sys/types.h> change from gnulib
13412         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
13413         since <time.t> is now guaranteed to define time_t.
13414
13415         mktime: merge HAVE_CONFIG_H change from gnulib
13416         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
13417
13418 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13419
13420         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13421         Use "neg %eax".
13422
13423         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
13424         __rlim_t cast.
13425         (struct rusage): Use anonymous union to pad each field to
13426         __syscall_slong_t.
13427
13428 2012-05-21  David S. Miller  <davem@davemloft.net>
13429
13430         * Makefules (o-iterator): Remove .s cases.
13431         (compile-command.s): Delete.
13432         (COMPILE.s): Delete.
13433         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
13434
13435 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
13436
13437         * configure.in (libc_cv_predef_stack_protector): Only consider
13438         "foobar" and "__stack_chk_fail" lines in libc_undefs.
13439         * configure: Regenerated.
13440
13441 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13442
13443         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13444         New macro.  Use R*LP on int and pointer.
13445         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
13446         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
13447         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
13448         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
13449
13450         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
13451         [__WORDSIZE_TIME64_COMPAT32] instead of
13452         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
13453         (struct utmp): Likewise.
13454         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
13455         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
13456         Renamed to ...
13457         (__WORDSIZE_TIME64_COMPAT32): This.
13458         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
13459         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
13460         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
13461         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
13462         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
13463         (__WORDSIZE_TIME64_COMPAT32): New macro.
13464
13465 2012-05-21  Andreas Jaeger  <aj@suse.de>
13466
13467         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
13468         only if [SHARED]. Add prototype for __wcschr_ia32.
13469
13470 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13471
13472         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
13473         of %rbp unmolested in the jmp_buf while mangling the low bits.
13474         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
13475         unmolested high bits of %rbp while demangling the low bits.
13476         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13477
13478 2012-05-21  Andreas Jaeger  <aj@suse.de>
13479
13480         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
13481         * sunrpc/svc_simple.c: Use it for registerrpc.
13482         * sunrpc/xcrypt.c: Use it for passwd2des.
13483
13484         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
13485
13486 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13487
13488         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
13489         Don't define if [__SYSCALL_WORDSIZE != 32].
13490         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
13491         New macro.
13492
13493 2012-05-21  Bruno Haible  <bruno@clisp.org>
13494             Andreas Jaeger  <aj@suse.de>
13495
13496         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
13497         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
13498         inptr and inend for must_buffer_ch.
13499         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
13500         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
13501         * stdio-common/Makefile (tests): Remove bug15.
13502         (bug15-ENV): Remove macro.
13503         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
13504         anymore.
13505
13506 2012-05-19  Andreas Jaeger  <aj@suse.de>
13507             Roland McGrath  <roland@hack.frob.com>
13508
13509         * manual/contrib.texi: Completely rewritten. It contains now an
13510         alphabetical list of contributors and their contributions.
13511
13512 2012-05-21  Richard Henderson  <rth@twiddle.net>
13513
13514         * misc/getauxval.c (__getauxval): Use unsigned long int.
13515         * misc/sys/auxv.h: Include <sys/cdefs.h>.
13516         (getauxval): Use unsigned long int.
13517
13518 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13519
13520         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13521
13522 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13523
13524         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
13525         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
13526         __alignof__ (long double).
13527
13528 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13529
13530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13531
13532 2012-05-20  Richard Henderson  <rth@twiddle.net>
13533
13534         * misc/getauxval.c: New file.
13535         * misc/sys/auxv.h: New file.
13536         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
13537         (routines): Add getauxval.
13538         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
13539         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
13540         * elf/dl-sysdep.c (_dl_auxv): Remove.
13541         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
13542         * elf/dl-support.c (_dl_auxv): New variable.
13543         (_dl_aux_init): Initialize it.
13544         * manual/startup.texi (Auxiliary Vector): New node.
13545         * sysdeps/generic/bits/hwcap.h: New file.
13546         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
13547         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
13548         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
13549         * sysdeps/sparc/sysdep.h: ... here.  Include it.
13550         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
13551         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
13552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13553         Update.
13554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
13555         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
13556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
13557         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
13558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13559         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13560         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
13561         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
13562
13563 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13564
13565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13566
13567 2012-05-19  David S. Miller  <davem@davemloft.net>
13568
13569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13570
13571 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13572
13573         [BZ #14123]
13574         * math/s_ccosh.c: Include <float.h>
13575         (__ccosh): Avoid internal overflow calculating sinh and cosh
13576         values before multiplying by sin and cos values.
13577         * math/s_ccoshf.c: Likewise.
13578         * math/s_ccoshl.c: Likewise.
13579         * math/s_csin.c: Likewise.
13580         * math/s_csinf.c: Likewise.
13581         * math/s_csinl.c: Likewise.
13582         * math/s_csinh.c: Likewise.
13583         * math/s_csinhf.c: Likewise.
13584         * math/s_csinhl.c: Likewise.
13585         * math/libm-test.inc (ccos_test): Add more tests.
13586         (ccosh_test): Likewise.
13587         (csin_test): Likewise.
13588         (csinh_test): Likewise.
13589         * sysdeps/i386/fpu/libm-test-ulps: Update.
13590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13591
13592 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13593
13594         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
13595         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
13596
13597         * sysdeps/x86_64/x32/_itoa.h: Add comment.
13598
13599 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13600
13601         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
13602         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
13603         * sysdeps/powerpc/soft-fp/Versions: Likewise.
13604         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
13605         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
13606         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
13607         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
13608         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
13609         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
13610         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
13611         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
13612         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
13613         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
13614         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
13615         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
13616         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
13617         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
13618         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
13619         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
13620         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
13621         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
13622         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
13623         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
13624         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
13625         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
13626         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
13627         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
13628         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
13629         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
13630         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
13631         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
13632
13633 2012-05-18  Andreas Jaeger  <aj@suse.de>
13634
13635         * csu/.gitignore: Delete.
13636
13637 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13638
13639         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
13640         (timex): Use __syscall_slong_t.
13641
13642 2012-05-18  Andreas Jaeger  <aj@suse.de>
13643             Carlos O'Donell  <carlos_odonell@mentor.com>
13644
13645         * manual/install.texi (Configuring and compiling): Update
13646         description about files modified in the source directory.
13647         * INSTALL: Regenerated.
13648
13649 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13650
13651         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
13652         value.  Use "or" to set return value to -1.
13653         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
13654         negate return value.
13655
13656 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13657
13658         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
13659         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
13660         failure if the compiler has Graphite support disabled.
13661         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
13662         Likewise.
13663         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
13664         CFLAGS-memmove.c): Likewise.
13665         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
13666         Likewise.
13667
13668 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13669
13670         * sysdeps/x86_64/x32/_itoa.h: New file.
13671
13672         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
13673         getdents system call only if kernel and user dirents have the
13674         same d_ino and d_off.
13675
13676         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
13677         LLONG_MAX != LONG_MAX.
13678         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13679         (_fitoa_word): Likewise.
13680
13681         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
13682         years.
13683         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
13684         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
13685         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
13686
13687         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
13688         include <bits/wordsize.h>.  Check __x86_64__ instead of
13689         __WORDSIZE.
13690         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
13691         if __x86_64__ is defined.  Use anonymous union on fpstate.
13692
13693         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
13694         anonymous union.
13695
13696 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
13697
13698         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
13699         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
13700         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
13701         Refer to _rtld_local_ro instead of _rtld_global_ro.
13702         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
13703         Likewise.
13704         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
13705         Likewise.
13706         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
13707         Likewise.
13708         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
13709         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
13710         of _rtld_global, and rtld_progname instead of _dl_argv[0].
13711
13712         * sysdeps/powerpc/powerpc32/dl-machine.c
13713         (__elf_machine_runtime_setup) [PROF]: Don't reference
13714         _dl_prof_resolve.
13715
13716 2012-05-18  Andreas Jaeger  <aj@suse.de>
13717
13718         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
13719         function only available for GCCs before 3.4 since GCC 3.4
13720         introduced a builtin.
13721         (lrint): Likewise.
13722         (llrintf): Likewise.
13723         (llrint): Likewise.
13724         (fmaxf): Likewise.
13725         (fmax): Likewise.
13726         (fminf): Likewise.
13727         (fmin): Likewise.
13728         (rint): Likewise.
13729         (rintf): Likewise.
13730         (nearbyint): Likewise.
13731         (nearbyintf): Likewise.
13732         (ceil): Likewise.
13733         (ceilf): Likewise.
13734         (floor): Likewise.
13735         (floorf): Likewise.
13736
13737 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13738
13739         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
13740         on both fields and cast pointer to __syscall_ulong_t.
13741
13742         * bits/types.h (__fsword_t): New type.
13743         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
13744         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
13745         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13746         (__FSWORD_T_TYPE): Likewise.
13747         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13748         (__FSWORD_T_TYPE): Likewise.
13749         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13750         (__FSWORD_T_TYPE): Likewise.
13751         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
13752         (__FSWORD_T_TYPE): Likewise.
13753         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
13754         __SWORD_TYPE with __fsword_t.
13755         (statfs64): Likewise.
13756
13757 2012-05-17  David S. Miller  <davem@davemloft.net>
13758
13759         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
13760
13761 2012-05-17  Andreas Jaeger  <aj@suse.de>
13762
13763         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
13764         warning.
13765
13766 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13767
13768         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
13769
13770 2012-05-17  Andreas Jaeger  <aj@suse.de>
13771
13772         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
13773         when it is used.
13774
13775 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13776
13777         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
13778
13779 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13780
13781         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
13782         * sysdeps/x86_64/tst-mallocalign1.c: New file.
13783
13784 2012-05-17  Andreas Jaeger  <aj@suse.de>
13785             Carlos O'Donell  <carlos_odonell@mentor.com>
13786
13787         [BZ #14059]
13788         * sysdeps/x86_64/multiarch/init-arch.h
13789         (bit_YMM_Usable): Rename to...
13790         (bit_AVX_Usable): ... this.
13791         (bit_FMA4_Usable): New macro.
13792         (bit_XMM_state): New macro.
13793         (bit_YMM_state): New macro.
13794         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
13795         [__ASSEMBLER__] (index_AVX_Usable): ... this.
13796         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
13797         (CPUID_OSXSAVE): New macro.
13798         (CPUID_AVX): New macro.
13799         (CPUID_FMA4): New macro.
13800         (index_YMM_Usable): Rename to...
13801         (index_AVX_Usable): ... this.
13802         (HAS_AVX): Use HAS_ARCH_FEATURE.
13803         (HAS_FMA4): Likewise.
13804         (HAS_YMM_USABLE): Remove.
13805         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13806         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
13807         are present.
13808         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
13809         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
13810         * sysdeps/x86_64/multiarch/Makefile: Likewise.
13811         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
13812         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
13813
13814 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13815
13816         * math/libm-test.c: Support platforms without multiple rounding modes.
13817         * math/bug-nextafter.c: Support platforms without FP exceptions.
13818         * math/bug-nexttoward.c: Likewise.
13819         * math/test-fenv.c: Likewise.
13820         * math/test-misc.c: Likewise.
13821         * stdlib/bug-getcontext.c: Likewise.
13822
13823 2012-05-17  Andreas Jaeger  <aj@suse.de>
13824
13825         * manual/examples/search.c (critter_cmp): Change signature to
13826         avoid warnings.
13827         * manual/string.texi (Collation Functions): Likewise.
13828
13829 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13830
13831         * bits/types.h: Fold copyright years.
13832         * bits/typesizes.h: Likewise.
13833         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
13834         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
13835         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
13836         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
13837         * time/time.h: Likewise.
13838
13839 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
13840
13841         [BZ #208]
13842         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
13843         in instead of returning them.  Return void.
13844         (__libc_mallinfo): Accumulate over all arenas.
13845         (__malloc_stats): Adjust for change in int_mallinfo interface.
13846
13847 2012-05-16  Roland McGrath  <roland@hack.frob.com>
13848
13849         [BZ #10375]
13850         * configure.in (NM): Add AC_CHECK_TOOL for it.
13851         (libc_extra_cflags): New substituted variable.
13852         Check for -fstack-protector being used implicitly.
13853         * configure: Regenerated.
13854         * config.make.in (config-extra-cflags): New variable,
13855         gets @libc_extra_cflags@.
13856         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
13857
13858         [BZ #10375]
13859         * configure.in: Check for _FORTIFY_SOURCE being predefined.
13860         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
13861         * configure: Regenerated.
13862         * config.make.in (CPPUNDEFS): New substituted variable.
13863         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
13864         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
13865         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
13866
13867 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13868
13869         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
13870         (mq_attr): Use __syscall_slong_t.
13871
13872 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13873
13874         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
13875         Check __x86_64__ instead of __WORDSIZE.
13876         (_STAT_VER_LINUX): Likewise.
13877         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
13878         __syscall_ulong_t and __syscall_slong_t.
13879         (stat64): Likewise.
13880
13881 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13882
13883         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
13884
13885 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13886
13887         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
13888
13889 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13890
13891         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
13892         __syscall_ulong_t.
13893
13894         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
13895         include <bits/wordsize.h>.  Check __x86_64__ instead of
13896         __WORDSIZE.
13897         (greg_t): Use "__extension__ long long int" if __x86_64__ is
13898         defined.
13899         (mcontext_t): Replace "unsigned long" with "unsigned long long".
13900
13901         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
13902         include <bits/wordsize.h>.  Check __x86_64__ instead of
13903         __WORDSIZE.
13904         (user_regs_struct): Use "__extension__ unsigned long long"
13905         instead of "unsigned long" if __x86_64__ is defined.
13906         (user): Likewise.  Pad after pointer field if __ILP32__ is
13907         defined.
13908
13909 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
13910
13911         * configure.in (makeinfo): Require version 4.5 or later.  Allow
13912         versions 5 to 9.
13913         * configure: Regenerated.
13914         * manual/install.texi (texinfo): Increase version requirement to
13915         4.5 or later.
13916         * INSTALL: Regenerated.
13917
13918         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
13919
13920 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13921
13922         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
13923
13924         * sysdeps/x86_64/x32/ffs.c: New file.
13925
13926         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
13927         __syscall_ulong_t.
13928         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
13929         defined.  Use __syscall_ulong_t.
13930         (shminfo): Use __syscall_ulong_t.
13931         (shm_info): Likewise.
13932
13933         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
13934         __syscall_ulong_t.
13935
13936         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
13937         <bits/wordsize.h>.
13938         (msgqnum_t): Use __syscall_ulong_t.
13939         (msglen_t): Likewise.
13940         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
13941         __syscall_ulong_t.
13942
13943         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
13944         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13945
13946         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
13947
13948         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
13949         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
13950
13951         * sysvipc/sys/msg.h (msgbuf): Replace long int with
13952         __syscall_slong_t.
13953
13954         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
13955         include <bits/wordsize.h>.  Check __x86_64__ instead of
13956         __WORDSIZE.
13957
13958         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
13959         "unsigned long long int" if __x86_64__ is defined.
13960         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
13961
13962         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
13963         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13964         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
13965
13966         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
13967         <stdint.h>.
13968         (GET_PC): Cast to uintptr_t first.
13969         (GET_FRAME): Likewise.
13970         (GET_STACK): Likewise.
13971
13972         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
13973         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
13974         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
13975         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
13976         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
13977         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
13978         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
13979         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
13980         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
13981         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
13982         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
13983         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
13984         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
13985         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
13986         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
13987         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
13988         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
13989         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
13990         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
13991         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
13992         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
13993         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
13994         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
13995         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
13996         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
13997         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
13998         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
13999         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
14000         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
14001
14002 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
14003
14004         * Makerules (+depfiles): Also collect depfiles from .oS in
14005         $(extra-objs).
14006         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
14007         .oS, $(libnldbl-routines)).
14008
14009         * Makerules (native-compile-mkdep-flags): Define.
14010         * sunrpc/Makefile (extra-objs): Add $(addprefix
14011         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
14012         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
14013         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
14014         calling $(make-target-directory).
14015
14016 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14017
14018         * bits/types.h (__snseconds_t): Removed.
14019         * time/time.h (struct timespec): Replace __snseconds_t with
14020         __syscall_slong_t.
14021         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
14022         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
14023         Likewise.
14024         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14025         (__SNSECONDS_T_TYPE): Likewise.
14026         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14027         (__SNSECONDS_T_TYPE): Likewise.
14028         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14029         (__SNSECONDS_T_TYPE): Likewise.
14030
14031 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14032
14033         * sysdeps/mach/hurd/bits/typesizes.h
14034         (__SYSCALL_SLONG_TYPE): New macro.
14035         (__SYSCALL_ULONG_TYPE): Likewise.
14036
14037 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14038
14039         * bits/types.h (__syscall_slong_t): New type.
14040         (__syscall_ulong_t): Likewise.
14041
14042         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
14043         (__SYSCALL_ULONG_TYPE): Likewise.
14044         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14045         (__SYSCALL_SLONG_TYPE): Likewise.
14046         (__SYSCALL_ULONG_TYPE): Likewise.
14047         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14048         (__SYSCALL_SLONG_TYPE): Likewise.
14049         (__SYSCALL_ULONG_TYPE): Likewise.
14050         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14051         (__SYSCALL_SLONG_TYPE): Likewise.
14052         (__SYSCALL_ULONG_TYPE): Likewise.
14053
14054 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14055
14056         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
14057         Add sigaltstack-offsets.sym.
14058         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
14059         <sigaltstack-offsets.h>.
14060         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
14061         longjmp_msg pointer.
14062         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
14063         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
14064         signal stack.
14065         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
14066
14067 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14068
14069         * elf/stackguard-macros.h: Remove file.
14070         * sysdeps/generic/stackguard-macros.h: New file.
14071         * sysdeps/i386/stackguard-macros.h: Likewise.
14072         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14073         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14074         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14075         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14076         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14077         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14078         * sysdeps/x86_64/stackguard-macros.h: Likewise.
14079         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
14080         <elf/stackguard-macros.h>.
14081
14082         [BZ #14109]
14083         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
14084         __aligned__ in attribute.
14085         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
14086         (gregset_t): Likewise.
14087
14088 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14089
14090         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
14091         * sysdeps/x86_64/64/Implies-after: Here.  New file.
14092         * sysdeps/x86_64/x32/Implies-after: New file.
14093
14094 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14095
14096         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
14097         and access return value for _dl_profile_fixup.  Use R10_LP to
14098         load frame size.
14099
14100 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14101
14102         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
14103
14104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14105
14106         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
14107         * sysdeps/x86_64/x32/sysdep.h: New file.
14108
14109 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14110
14111         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
14112         * sysdeps/x86_64/setjmp.S: Likewise.
14113
14114 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14115
14116         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
14117         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
14118         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
14119         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
14120         remove unused global constant.
14121
14122 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14123
14124         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14125         include of <not-cancel.h>.
14126
14127 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14128
14129         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14130
14131 2012-05-15  Jeff Law  <law@redhat.com>
14132             Andreas Jaeger  <aj@suse.de>
14133
14134         [BZ #13594]
14135         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14136         out from...
14137         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14138         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14139         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14140         code changing __hst_map_handle.map.
14141
14142 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14143
14144         * configure.in (sysnames): Look for Implies-before and Implies-after
14145         files.
14146         * configure: Regenerated.
14147
14148 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14149
14150         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14151         8-byte data alignment with LP_SIZE alignment.
14152
14153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14154
14155         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14156         into R10_LP.
14157
14158 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14159
14160         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14161
14162 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14163
14164         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14165         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14166         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14167         Likewise.
14168         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14169
14170 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14171
14172         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14173         (stackinfo_sub_sp): Likewise.
14174
14175 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14176
14177         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14178         RAX_LP.
14179
14180 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14181
14182         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14183         into R*_LP.
14184
14185 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14186
14187         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14188         sizes into R*_LP.
14189
14190 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14191
14192         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14193
14194 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14195
14196         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14197         into R11_LP and load __x86_64_shared_cache_size_half into
14198         R8_LP.
14199
14200 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14201
14202         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14203         R8_LP.
14204
14205 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14206
14207         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14208         logb for POWER7.
14209         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14210         logbf for POWER7.
14211         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14212         logbl for POWER7.
14213         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14214         powerpc32/power7/fpu/s_logb.c via #include.
14215         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14216         powerpc32/power7/fpu/s_logbf.c via #include.
14217         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14218         powerpc32/power7/fpu/s_logbl.c via #include.
14219
14220 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14221
14222         * README.libm: Remove file.
14223
14224 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14225
14226         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14227         count for x32.  Use R*_LP and omit operand-size suffix.
14228
14229 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14230
14231         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14232         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14233         * sysdeps/x86_64/x32/shlib-versions: New file.
14234
14235 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14236
14237         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14238         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14239         Use _dl_fatal_printf instead.
14240
14241 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14242
14243         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14244         set if not set by the user.  Do not allow for being unset.
14245         * sysdeps/unix/sysv/linux/configure: Regenerated.
14246
14247 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14248
14249         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14250         the `q' suffix from lea and replace .quad with ASM_ADDR.
14251
14252 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14253
14254         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14255         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14256         instead of $17.
14257         (PTR_DEMANGLE): Likewise.
14258
14259 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14260
14261         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14262         (LP_OP): Likewise.
14263         (ASM_ADDR): Likewise.
14264         (RAX_LP): Likewise.
14265         (RBP_LP): Likewise.
14266         (RBX_LP): Likewise.
14267         (RCX_LP): Likewise.
14268         (RDI_LP): Likewise.
14269         (RSI_LP): Likewise.
14270         (RSP_LP): Likewise.
14271         (R8_LP): Likewise.
14272         (R9_LP): Likewise.
14273         (R10_LP): Likewise.
14274         (R10_LP): Likewise.
14275         (R11_LP): Likewise.
14276         (R12_LP): Likewise.
14277         (R13_LP): Likewise.
14278         (R14_LP): Likewise.
14279         (R15_LP): Likewise.
14280
14281 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14282
14283         * sysdeps/x86_64/x32/dl-machine.h: New file.
14284
14285 2012-05-14  Andreas Jaeger  <aj@suse.de>
14286
14287         * manual/Makefile (subdir): Remove export of subdir.
14288         (all): Remove target.
14289         (.PHONY): Remove all from list.
14290         (mkinstalldirs): Remove.
14291         (.PHONY): Remove installdirs from list.
14292         ($(inst_infodir)/libc.info): Use make-target-directory.
14293         (installdirs): Remove.
14294         (subdir_%): Remove.
14295         (glibc-targets): Remove.
14296         (lib): Remove.
14297         (stubs): Remove.
14298         ($(objpfx)stubs ../po/manual.pot): Remove.
14299         ($(objpfx)stamp%): Remove.
14300         (make-target-directory): Remove.
14301         (subdir_install): Remove.
14302         (routines): Remove.
14303         (aux): Remove.
14304         (sources): Remove.
14305         (objects): Remove.
14306         (headers): Remove.
14307
14308         [BZ #13750]
14309         * manual/.gitignore: Remove, it's not needed anymore.
14310         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14311         all files in it.
14312         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14313         directory.
14314         (texis): Renamed to $(objpfx)texis.
14315         (texis-path): New, contains path to generated files.
14316         (chapters.%): Use texis-path for complete path, add extra argument
14317         libc-texinfo.sh.
14318         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14319         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14320         (summary,texi, stamp-summary): Use complete path of
14321         files. Generate files in build dir.
14322         (dir-add.texi): Build in build dir.
14323         (libm-err.texi,stamp-libm-err): Likewise.
14324         (version.texi, stamp-version): Likewise.
14325         (.%c.texi): Likewise.
14326         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14327         (mostlyclean): Remove target.
14328         (realclean): Remove target.
14329         (generated): Add new variable with contents from mostlyclean and
14330         realclean, remove entries duplicated in common-mostlyclean, add
14331         stamp-libm-err and stamp-version.
14332         (generated-dirs): Add libc directory.
14333         ($(inst_infodir)/libc.info): Install files from build dir.
14334
14335         * manual/install.texi (Configuring and compiling): Adjust since
14336         the info files are not part of the tar ball anymore.
14337
14338 2012-05-14  Andreas Jaeger  <aj@suse.de>
14339
14340         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14341         variable.
14342
14343 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14344
14345         [BZ #13717]
14346         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14347         to 2.2.0 where earlier.
14348         * sysdeps/unix/sysv/linux/configure: Regenerated.
14349         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
14350         Remove conditional code.
14351         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
14352         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
14353         Remove conditional code.
14354         [!__NR_lchown]: Likewise.
14355         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14356         [__NR_lchown]: Likewise.
14357         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
14358         comment referencing __ASSUME_LCHOWN_SYSCALL.
14359         * sysdeps/unix/sysv/linux/i386/sigaction.c
14360         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14361         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14362         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
14363         Remove conditional code.
14364         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
14365         (__protocol_available): Remove #if 0 code.
14366         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
14367         conditional code.
14368         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
14369         * sysdeps/unix/sysv/linux/kernel-features.h
14370         (__ASSUME_GETCWD_SYSCALL): Don't define.
14371         (__ASSUME_REALTIME_SIGNALS): Likewise.
14372         (__ASSUME_PREAD_SYSCALL): Likewise.
14373         (__ASSUME_PWRITE_SYSCALL): Likewise.
14374         (__ASSUME_POLL_SYSCALL): Likewise.
14375         (__ASSUME_LCHOWN_SYSCALL): Likewise.
14376         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
14377         non-SPARC.
14378         (__ASSUME_SIOCGIFNAME): Don't define.
14379         (__ASSUME_MSG_NOSIGNAL): Likewise.
14380         (__ASSUME_SENDFILE): Define unconditionally.
14381         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
14382         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
14383         conditional code.
14384         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
14385         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
14386         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14387         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14388         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
14389         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14390         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
14392         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14393         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
14395         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14396         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
14398         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14399         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
14401         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14402         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
14404         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14405         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
14407         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14408         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
14410         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14411         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
14413         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14414         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14415         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
14416         Remove conditional code.
14417         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14418         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14419         Remove conditional code.
14420         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14421         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
14422         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
14423         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14424         Remove conditional code.
14425         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14426         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
14427         Remove conditional code.
14428         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14429         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
14430         Remove conditional code.
14431         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14432         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14433         Remove conditional code.
14434         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14435         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14436         Remove conditional code.
14437         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14438         * sysdeps/unix/sysv/linux/sh/pwrite64.c
14439         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14440         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14441         * sysdeps/unix/sysv/linux/sigaction.c
14442         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14443         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14444         * sysdeps/unix/sysv/linux/sigpending.c
14445         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14446         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14447         * sysdeps/unix/sysv/linux/sigprocmask.c
14448         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14449         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14450         * sysdeps/unix/sysv/linux/sigsuspend.c
14451         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14452         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14453         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14454         (__libc_missing_rt_sigs): Remove.
14455         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
14456         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
14457         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
14458         Remove conditional code.
14459         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
14460         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
14461         return 1.
14462         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
14463         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
14464         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
14465         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
14466
14467 2012-05-14  Andreas Jaeger  <aj@suse.de>
14468
14469         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
14470         it's not used in glibc.
14471         (__coshm1): Likewise.
14472         (__acosh1p): Likewise.
14473         (__sgn): Likewise.
14474
14475         * manual/string.texi (Copying and Concatenation): Add missing
14476         variable in concat example.
14477         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
14478
14479 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14480
14481         [BZ #14103]
14482         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
14483         __builtin_clzl with __builtin_clzll.
14484
14485 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14486
14487         [BZ #14104]
14488         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
14489         libc_freeres_ptr.
14490
14491 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14492
14493         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
14494         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
14495         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
14496         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
14497
14498 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
14499
14500         * NEWS: Update ia64 info.
14501
14502 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
14503
14504         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
14505         used as bcopy.
14506
14507 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
14508
14509         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
14510         * sysdeps/unix/syscalls.list (dup3): Likewise.
14511         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
14512         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
14513
14514 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14515
14516         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
14517         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
14518
14519 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14520
14521         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
14522         thread pointer.
14523         (TLS_IE): Use mov/add instead of movq/addq to load thread
14524         pointer.
14525         (TLS_GD_PREFIX): New.
14526         (TLS_GD): Use it.
14527
14528 2012-05-11  David S. Miller  <davem@davemloft.net>
14529
14530         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
14531         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
14532         (_FPU_SETCW): Likewise.
14533
14534 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14535
14536         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
14537         is 32-byte aligned.
14538
14539 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
14540
14541         [BZ #11837]
14542         * iconvdata/gb18030.c: Update tables.
14543         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
14544         characters specially.
14545         (BODY for TO_LOOP): Add encoding of missing ranges.
14546
14547 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
14548
14549         [BZ #13673]
14550         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
14551         * sysdeps/mach/hurd/dup3.c: Likewise.
14552         * sysdeps/mach/hurd/readlinkat.c: Likewise.
14553         * sysdeps/powerpc/memmove.c:: Likewise.
14554
14555 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14556
14557         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
14558         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
14559
14560 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14561
14562         * elf/elf.h (R_X86_64_RELATIVE64): New.
14563         (R_X86_64_NUM): Updated.
14564         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14565         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
14566         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
14567         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
14568         tst-quad1pie tst-quad2pie
14569         (modules-names): Add tst-quadmod1 tst-quadmod2.
14570         ($(objpfx)tst-quad1): New dependency.
14571         ($(objpfx)tst-quad2): Likewise.
14572         ($(objpfx)tst-quad1pie): Likewise.
14573         ($(objpfx)tst-quad2pie): Likewise.
14574         * sysdeps/x86_64/tst-quad1.c: New file.
14575         * sysdeps/x86_64/tst-quad1pie.c: New file.
14576         * sysdeps/x86_64/tst-quad2.c: Likewise.
14577         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
14578         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
14579         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
14580         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
14581         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
14582
14583 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14584
14585         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
14586         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
14587         * streams/stropts.h (t_scalar_t): Define type.
14588
14589         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
14590         (_PATH_PRESERVE): Set to "/var/lib".
14591         (_PATH_RWHODIR): Set to "/var/spool/rwho".
14592
14593         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
14594         instead of int.
14595
14596         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
14597         if __dir_mkfile succeeded.
14598
14599         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
14600         checking for _hurd_dtablesize.  Unlock it right after having
14601         finished _hurd_dtable allocation.
14602
14603 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14604
14605         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
14606         * sysdeps/mach/hurd/configure: Regenerated.
14607         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
14608         special-casing to...
14609         * sysdeps/gnu/configure.in: ... this new file.
14610         * sysdeps/unix/sysv/linux/configure: Regenerated.
14611         * sysdeps/gnu/configure: New generated file.
14612
14613         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
14614         for Linux: use nsec instead of usec, as well as:
14615         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
14616         members of type struct timespec.
14617         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
14618         New macros.
14619         (struct stat64): Likewise.
14620         (_STATBUF_ST_NSEC): New macro.
14621         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
14622
14623         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
14624         __strtoul_internal rather than strtoul.
14625
14626 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14627
14628         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
14629         and reject them.
14630
14631 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14632
14633         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
14634         which preserves existing values.
14635         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
14636
14637 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14638
14639         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
14640         TIMEOUT values.  Return EINVAL for NFDS values either negative or
14641         greater than FD_SETSIZE.
14642
14643 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14644
14645         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
14646         allocated, call __vm_protect to finish enabling the existing space, and
14647         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
14648         allocate the remainder.
14649
14650 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14651
14652         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
14653         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
14654
14655 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14656
14657         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
14658         sysdeps/mach/hurd/readlink.c.
14659
14660         * posix/tst-sysconf.c (posix_options): Only use
14661         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
14662         _POSIX_SYNCHRONIZED_IO when they are defined
14663         * sysdeps/mach/hurd/bits/posix_opt.h:
14664         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
14665         (_XOPEN_REALTIME): Undefine macro.
14666         (_XOPEN_REALTIME_THREADS): Undefine macro.
14667         (_XOPEN_SHM): Undefine macro.
14668         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
14669         macro to -1.
14670         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
14671         macro to -1.
14672         (_POSIX_ASYNC_IO): Undefine macro.
14673         (_POSIX_PRIORITIZED_IO): Undefine macro.
14674         (_POSIX_SPIN_LOCKS): Define macro to -1.
14675
14676         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
14677         SA_NODEFER, SA_RESETHAND.
14678         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
14679         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
14680         F_DUPFD_CLOEXEC.
14681
14682 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14683
14684         * elf/Makefile (pldd-modules): Define unconditionally.
14685
14686 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14687
14688         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
14689
14690 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14691
14692         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
14693         Return ENOENT when name is empty.
14694         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
14695
14696 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14697
14698         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
14699
14700         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
14701
14702 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14703
14704         Fix mlock in all cases except non-readable pages.
14705         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
14706         instead of VM_PROT_ALL as parameter to __vm_wire function.
14707
14708         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
14709         (__mkdir): When path is `/', just fail with EEXIST.
14710         * sysdeps/mach/hurd/mkdirat.c: Likewise.
14711
14712 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14713
14714         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
14715         <sys/uio.h> (for writev).
14716         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
14717         and <sys/param.h> (for MIN).
14718
14719 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14720
14721         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
14722         REQUESTED_TIME.  Properly set the remaining time and return EINTR
14723         if interrupted.
14724
14725 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14726
14727         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
14728         Depend on against $(link-rpcuserlibs).
14729
14730 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14731
14732         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
14733         (__libc_stack_end): Do not use attribute_relro.
14734         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
14735         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
14736         to libthread-provided value.
14737         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
14738         attribute_relro.
14739
14740 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14741
14742         [BZ #3748]
14743         * bits/libc-lock.h (__libc_once_get): New macro.
14744         * sysdeps/mach/bits/libc-lock.h: Likewise.
14745         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
14746         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
14747         instead of using implementation details.
14748
14749         * libio/fileops.c: Unconditionally include <kernel-features.h>.
14750         * libio/freopen.c: Likewise.
14751         * libio/freopen64.c: Likewise.
14752         * misc/syslog.c: Likewise.
14753         * nscd/connections.c: Likewise.
14754         * nscd/netgroupcache.c: Likewise.
14755         * sysdeps/posix/getcwd.c: Likewise.
14756
14757 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14758
14759         * math/w_ilogbf.c: Add #include <limits.h>.
14760
14761 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14762
14763         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
14764         path instead of returning without unlocking.
14765
14766         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
14767         immediate-write ioctls.
14768         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
14769
14770 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14771
14772         * sysdeps/mach/hurd/i386/init-first.c (init): Use
14773         __builtin_frame_address instead of making assumptions about the
14774         location of the return address relative to DATA.  Force early load of
14775         the return address.
14776         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
14777         __builtin_frame_address.
14778
14779         dup3 for GNU Hurd.
14780         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
14781         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
14782         implement dup3 and do some further code clean-ups.
14783         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
14784         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
14785
14786 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14787
14788         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
14789
14790         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
14791         HURD_CRITICAL_END around holding _hurd_dtable_lock.
14792         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
14793         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
14794         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
14795         d->port.lock.
14796
14797         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
14798         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
14799         when handler == SIG_ERR, not when handler != SIG_ERR.
14800
14801 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14802
14803         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
14804         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
14805         definitions.
14806
14807         accept4 for GNU Hurd.
14808         * include/sys/socket.h (__libc_accept4): New prototype.
14809         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
14810         to implement __libc_accept4.
14811         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
14812         __libc_accept4.
14813         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
14814
14815         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
14816         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
14817         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
14818         signal-defines.sym.
14819
14820 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14821
14822         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
14823
14824 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14825
14826         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
14827         assertion on O_CLOEXEC flag.
14828         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
14829         * hurd/intern-fd.c: Likewise.
14830         * hurd/port2fd.c: Likewise.
14831
14832 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14833
14834         [BZ #3906]
14835         * bits/in.h (IPV6_PKTINFO): Define new macro.
14836         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
14837
14838 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14839
14840         [BZ #13954]
14841         [BZ #13955]
14842         [BZ #13956]
14843         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
14844         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14845         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
14846         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14847         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14848         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14849         * math/libm-test.inc (logb_test) : Additional logb tests.
14850
14851 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
14852             Andreas Jaeger  <aj@suse.de>
14853
14854         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
14855         * configure: Regenerated.
14856         * config.h.in (LINK_OBSOLETE_RPC): New macro.
14857         * config.make.in (link-obsolete-rpc): New substituted variable.
14858         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
14859         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
14860         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14861         (shared-only-routines): Don't set it under [link-obsolete-rpc],
14862         so that libc.a contains the symbols.
14863         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14864         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
14865         * sunrpc/auth_none.c: Likewise.
14866         * sunrpc/auth_unix.c: Likewise.
14867         * sunrpc/authdes_prot.c: Likewise.
14868         * sunrpc/authuxprot.c: Likewise.
14869         * sunrpc/clnt_gen.c: Likewise.
14870         * sunrpc/clnt_perr.c: Likewise.
14871         * sunrpc/clnt_raw.c: Likewise.
14872         * sunrpc/clnt_simp.c: Likewise.
14873         * sunrpc/clnt_tcp.c: Likewise.
14874         * sunrpc/clnt_udp.c: Likewise.
14875         * sunrpc/clnt_unix.c: Likewise.
14876         * sunrpc/des_crypt.c: Likewise.
14877         * sunrpc/des_soft.c: Likewise.
14878         * sunrpc/get_myaddr.c: Likewise.
14879         * sunrpc/key_call.c: Likewise.
14880         * sunrpc/key_prot.c: Likewise.
14881         * sunrpc/netname.c: Likewise.
14882         * sunrpc/pm_getmaps.c: Likewise.
14883         * sunrpc/pm_getport.c: Likewise.
14884         * sunrpc/pmap_clnt.c: Likewise.
14885         * sunrpc/pmap_prot.c: Likewise.
14886         * sunrpc/pmap_prot2.c: Likewise.
14887         * sunrpc/pmap_rmt.c: Likewise.
14888         * sunrpc/publickey.c: Likewise.
14889         * sunrpc/rpc_cmsg.c: Likewise.
14890         * sunrpc/rpc_common.c: Likewise.
14891         * sunrpc/rpc_dtable.c: Likewise.
14892         * sunrpc/rpc_prot.c: Likewise.
14893         * sunrpc/rpc_thread.c: Likewise.
14894         * sunrpc/rtime.c: Likewise.
14895         * sunrpc/svc.c: Likewise.
14896         * sunrpc/svc_auth.c: Likewise.
14897         * sunrpc/svc_raw.c: Likewise.
14898         * sunrpc/svc_run.c: Likewise.
14899         * sunrpc/svc_tcp.c: Likewise.
14900         * sunrpc/svc_udp.c: Likewise.
14901         * sunrpc/svc_unix.c: Likewise.
14902         * sunrpc/svcauth_des.c: Likewise.
14903         * sunrpc/xcrypt.c: Likewise.
14904         * sunrpc/xdr.c: Likewise.
14905         * sunrpc/xdr_array.c: Likewise.
14906         * sunrpc/xdr_float.c: Likewise.
14907         * sunrpc/xdr_intXX_t.c: Likewise.
14908         * sunrpc/xdr_mem.c: Likewise.
14909         * sunrpc/xdr_rec.c: Likewise.
14910         * sunrpc/xdr_ref.c: Likewise.
14911         * sunrpc/xdr_sizeof.c: Likewise.
14912         * sunrpc/xdr_stdio.c: Likewise.
14913
14914 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14915
14916         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
14917         change.  Update copyright years.
14918
14919 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14920
14921         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
14922
14923 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
14924             Joseph Myers  <joseph@codesourcery.com>
14925             Paul Pluzhnikov  <ppluzhnikov@google.com>
14926
14927         [BZ #14012]
14928         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
14929         requiring rpcgen.
14930         [cross-compiling] (extra-libs): Likewise.
14931         [cross-compiling] (extra-libs-others): Likewise.
14932         [cross-compiling] (librpcsvc-routines): Likewise.
14933         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
14934         [cross-compiling] (omit-deps): Likewise.
14935         (sunrpc-CPPFLAGS): New variable.
14936         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
14937         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
14938         (cross-rpcgen-objs): New variable.
14939         (extra-objs): Append $(cross-rpcgen-objs).
14940         ($(cross-rpcgen-objs)): New rule.
14941         ($(objpfx)cross-rpcgen): Likewise.
14942         (rpcgen-cmd): Define to use $(built-program-file).  Expand
14943         comment.
14944         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
14945         ($(objpfx)x%.stmp): Likewise.
14946         * sunrpc/proto.h [IS_IN_build] (_): Define.
14947         [IS_IN_build] (_libc_intl_domainname): Likewise.
14948
14949 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14950
14951         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
14952         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
14953         and R_X86_64_TPOFF64.
14954
14955 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14956
14957         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
14958         sysdeps/unix/sysv/syscalls.list.
14959         (stime): Likewise.
14960         (utime): Likewise.
14961         * sysdeps/unix/sysv/syscalls.list: Remove file.
14962
14963 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14964
14965         [BZ #3440]
14966         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
14967         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
14968         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
14969         (__LC_IDENTIFICATION): Make these macros useful in #if
14970         expressions, as required by C99.
14971
14972 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
14973
14974         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
14975         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
14976         after this.
14977
14978 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14979
14980         * stdlib/longlong.h: Updated from GCC.
14981
14982 2012-05-09  Andreas Jaeger  <aj@suse.de>
14983
14984         * nscd/nscd.c (run_modes): Make named enum, reorder so that
14985         default is first entry.
14986         (run_mode): Set type.
14987         (main): Remove informal message about syslog.
14988         (options): Fix typo.
14989
14990         [BZ #14053]
14991         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
14992         to asm.
14993         (lrint): Likewise.
14994         (llrintf): Likewise.
14995         (llrint): Likewise.
14996         (rint): Likewise.
14997         (rintf): Likewise.
14998         (nearbyint): Likewise.
14999         (nearbyintf): Likewise.
15000
15001 2012-05-09  Andreas Jaeger  <aj@suse.de>
15002             Pedro Alves  <palves@redhat.com>
15003
15004         * nscd/nscd.c (run_mode): Use enum.
15005         (main): Cleanup coding style issue.
15006
15007 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
15008             Andreas Jaeger  <aj@suse.de>
15009
15010         * nscd/nscd.c (go_background): Replaced with...
15011         (run_mode): ... this.
15012         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
15013         (options): Add -F --foreground.
15014         (main): Implement it.
15015         (parse_opt): Parse it.
15016
15017 2012-05-09  Andreas Jaeger  <aj@suse.de>
15018
15019         [BZ #14083]
15020         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
15021         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
15022         -Wconversion warning.
15023         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
15024         Likewise.
15025
15026 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
15027
15028         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
15029         == 0.
15030         (LC_ALL): Use macro-int-constant.
15031         (LC_COLLATE): Likewise.
15032         (LC_CTYPE): Likewise.
15033         (LC_MESSAGES): Likewise.
15034         (LC_MONETARY): Likewise.
15035         (LC_NUMERIC): Likewise.
15036         (LC_TIME): Likewise.
15037         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
15038         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15039         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15040         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
15041         Specify type.
15042         [C99-based standards] (float_t): Expect type.
15043         [C99-based standards] (double_t): Expect type.
15044         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
15045         type.
15046         [C99-based standards] (HUGE_VALL): Likewise.
15047         [C99-based standards] (INFINITY): Likewise.
15048         [C99-based standards] (NAN): Likewise.
15049         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
15050         [C99-based standards] (FP_NAN): Likewise.
15051         [C99-based standards] (FP_NORMAL): Likewise.
15052         [C99-based standards] (FP_SUBNORMAL): Likewise.
15053         [C99-based standards] (FP_ZERO): Likewise.
15054         [C99-based standards] (FP_FAST_FMA): Use
15055         optional-macro-int-constant.  Specify type.  Require == 1.
15056         [C99-based standards] (FP_FAST_FMAF): Likewise.
15057         [C99-based standards] (FP_FAST_FMAL): Likewise.
15058         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
15059         [C99-based standards] (FP_ILOGBNAN): Likewise.
15060         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
15061         Specify type.
15062         [C99-based standards] (MATH_ERREXCEPT): Likewise.
15063         [C99-based standards] (math_errhandling): Specify type.
15064         [ISO99 || ISO11] (signgam): Do not allow.
15065         [non-C99-based standards] (copysignf): Do not allow.
15066         [non-C99-based standards] (exp2f): Likewise.
15067         [non-C99-based standards] (log2f): Likewise.
15068         [non-C99-based standards] (modff): Allow.
15069         [non-C99-based standards] (erff): Do not allow.
15070         [non-C99-based standards] (erfcf): Likewise.
15071         [non-C99-based standards] (gammaf): Likewise.
15072         [non-C99-based standards] (hypotf): Likewise.
15073         [non-C99-based standards] (j0f): Likewise.
15074         [non-C99-based standards] (j1f): Likewise.
15075         [non-C99-based standards] (jnf): Likewise.
15076         [non-C99-based standards] (lgammaf): Likewise.
15077         [non-C99-based standards] (tgammaf): Likewise.
15078         [non-C99-based standards] (y0f): Likewise.
15079         [non-C99-based standards] (y1f): Likewise.
15080         [non-C99-based standards] (ynf): Likewise.
15081         [non-C99-based standards] (isnanf): Likewise.
15082         [non-C99-based standards] (acoshf): Likewise.
15083         [non-C99-based standards] (asinhf): Likewise.
15084         [non-C99-based standards] (atanhf): Likewise.
15085         [non-C99-based standards] (cbrtf): Likewise.
15086         [non-C99-based standards] (expm1f): Likewise.
15087         [non-C99-based standards] (ilogbf): Likewise.
15088         [non-C99-based standards] (log1pf): Likewise.
15089         [non-C99-based standards] (logbf): Likewise.
15090         [non-C99-based standards] (nextafterf): Likewise.
15091         [non-C99-based standards] (remainderf): Likewise.
15092         [non-C99-based standards] (rintf): Likewise.
15093         [non-C99-based standards] (scalbf): Likewise.
15094         [non-C99-based standards] (copysignl): Likewise.
15095         [non-C99-based standards] (exp2l): Likewise.
15096         [non-C99-based standards] (log2l): Likewise.
15097         [non-C99-based standards] (modfl): Allow.
15098         [non-C99-based standards] (erfl): Do not allow.
15099         [non-C99-based standards] (erfcl): Likewise.
15100         [non-C99-based standards] (gammal): Likewise.
15101         [non-C99-based standards] (hypotl): Likewise.
15102         [non-C99-based standards] (j0l): Likewise.
15103         [non-C99-based standards] (j1l): Likewise.
15104         [non-C99-based standards] (jnl): Likewise.
15105         [non-C99-based standards] (lgammal): Likewise.
15106         [non-C99-based standards] (tgammal): Likewise.
15107         [non-C99-based standards] (y0l): Likewise.
15108         [non-C99-based standards] (y1l): Likewise.
15109         [non-C99-based standards] (ynl): Likewise.
15110         [non-C99-based standards] (isnanl): Likewise.
15111         [non-C99-based standards] (acoshl): Likewise.
15112         [non-C99-based standards] (asinhl): Likewise.
15113         [non-C99-based standards] (atanhl): Likewise.
15114         [non-C99-based standards] (cbrtl): Likewise.
15115         [non-C99-based standards] (expm1l): Likewise.
15116         [non-C99-based standards] (ilogbl): Likewise.
15117         [non-C99-based standards] (log1pl): Likewise.
15118         [non-C99-based standards] (logbl): Likewise.
15119         [non-C99-based standards] (nextafterl): Likewise.
15120         [non-C99-based standards] (remainderl): Likewise.
15121         [non-C99-based standards] (rintl): Likewise.
15122         [non-C99-based standards] (scalbl): Likewise.
15123         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15124         [non-C99-based standards] (FP_*): Do not allow.
15125         [C99-based standards] (FP_*): Change to
15126         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15127         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15128         allow.
15129         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15130         (SIG_ERR): Likewise.
15131         [X/Open-based standards] (SIG_HOLD): Likewise.
15132         (SIG_IGN): Likewise.
15133         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15134         positive value.
15135         (SIGFPE): Likewise.
15136         (SIGILL): Likewise.
15137         (SIGINT): Likewise.
15138         (SIGSEGV): Likewise.
15139         (SIGTER): Likewise.
15140         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15141         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15142         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15143         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15144         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15145         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15146         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15147         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15148         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15149         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15150         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15151         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15152         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15153         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15154         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15155         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15156         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15157         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15158         [X/Open-based standards] (SIGTRAP): Likewise.
15159         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15160         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15161         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15162         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15163         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15164         allow.
15165
15166 2012-05-08  Ian Wienand  <ianw@vmware.com>
15167
15168         [BZ #14080]
15169         * time/tzset.c (__tzset_parse_tz): Update default rules for
15170         daylight time changes in the Energy Policy Act of 2005.
15171
15172 2012-05-09  Andreas Jaeger  <aj@suse.de>
15173
15174         [BZ #13983]
15175         * elf/ldconfig.c (parse_conf): Change string to make clear that
15176         ldconfig only issued a warning if ld.so.conf does not exist.
15177
15178 2012-05-08  David S. Miller  <davem@davemloft.net>
15179
15180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15181         movxtod instead of popping the value on the stack.
15182
15183         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15184
15185 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15186
15187         * config.h.in: Add HAVE_ARM_PCS_VFP.
15188
15189 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15190
15191         [BZ #13979]
15192         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15193         checking but the checks are disabled for any reason.
15194
15195 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15196
15197         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15198         and ELF64_R_TYPE with ELFW(R_TYPE).
15199
15200 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15201
15202         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15203         (ulimit): Likewise.
15204
15205         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15206         (settimeofday): Likewise.
15207
15208 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15209
15210         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15211         a struct th_u2 inside the union, and move tu_block/tu_code into
15212         a new th_u3 union of tu_block/tu_code inside of that.  Move
15213         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15214         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15215         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15216         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15217         (th_stuff): Change to th_u1.tu_stuff.
15218         (th_data): Define.
15219         (th_msg): Change to th_u1.th_u2.tu_data.
15220
15221 2012-05-07  David S. Miller  <davem@davemloft.net>
15222
15223         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15224
15225         [BZ #14074]
15226         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15227         (SETUP_PIC_REG): Use it.
15228         (SETUP_PIC_REG_LEAF): Use it.
15229
15230 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15231
15232         [BZ #13885]
15233         [BZ #13923]
15234         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15235         USE_AS_EXPM1L.
15236         (EXPL_FINITE): Likewise.
15237         (FLDLOG): Likewise.
15238         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15239         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15240         e_expl.S.
15241         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15242         USE_AS_EXPM1L.
15243         (EXPL_FINITE): Likewise.
15244         (FLDLOG): Likewise.
15245         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15246         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15247         e_expl.S.
15248         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15249         test of -max_value argument for long double.
15250         * sysdeps/i386/fpu/libm-test-ulps: Update.
15251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15252
15253 2012-05-06  David S. Miller  <davem@davemloft.net>
15254
15255         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15256         quad soft-float symbols whose references which are compiler
15257         generated.
15258         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15259
15260 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15261
15262         [BZ #13884]
15263         [BZ #13914]
15264         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15265         USE_AS_EXP10L.
15266         (EXPL_FINITE): Likewise.
15267         (FLDLOG): Likewise.
15268         (c0): Likewise.
15269         (c1): Likewise.
15270         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15271         Adjust comments for base varying.
15272         (__expl_finite): Change alias to EXPL_FINITE.
15273         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15274         e_expl.S.
15275         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15276         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15277         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15278         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15279         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15280         USE_AS_EXP10L.
15281         (EXPL_FINITE): Likewise.
15282         (FLDLOG): Likewise.
15283         (c0): Likewise.
15284         (c1): Likewise.
15285         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15286         Adjust comments for base varying.
15287         (__expl_finite): Change alias to EXPL_FINITE.
15288         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15289         tests for bugs.
15290         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15291
15292         [BZ #14064]
15293         * math/libm-test.inc (check_float_internal): Correct ulp
15294         calculation for subnormal expected results.
15295
15296 2012-05-06  Andreas Jaeger  <aj@suse.de>
15297
15298         * Makeconfig (+math-flags): New, set to -frounding-math.
15299         (+cflags): Add +math-flags so that all of glibc gets compiled with
15300         it.
15301
15302         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15303
15304 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15305
15306         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15307         Disable one test.
15308
15309         [BZ #13787]
15310         [BZ #13922]
15311         [BZ #14036]
15312         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15313         (__ieee754_expl): Allow for and saturate large arguments.
15314         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15315         (u_threshold): Likewise.
15316         (__exp): Call __ieee754_exp before checking for overflow and
15317         underflow.
15318         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15319         (u_threshold): Likewise.
15320         (__expf): Call __ieee754_expf before checking for overflow and
15321         underflow.
15322         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15323         (u_threshold): Likewise.
15324         (__expl): Call __ieee754_expl before checking for overflow and
15325         underflow.
15326         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15327         (__ieee754_expl): Allow for and saturate large arguments.
15328         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15329         missing overflow exception on overflow.
15330         (expm1_test): Do not allow missing overflow exception on overflow.
15331
15332         * sysdeps/i386/fpu/e_expl.c: Move to ...
15333         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15334         rather than using inline asm.
15335         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15336         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15337         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15338
15339         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15340         (nice): Likewise.
15341         (poll): Likewise.
15342         (signal): Likewise.
15343         (time): Likewise.
15344         (times): Likewise.
15345
15346 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15347
15348         * sysdeps/unix/syscalls.list (adjtime): Add entry from
15349         sysdeps/unix/common/syscalls.list.
15350         (fchmod): Likewise.
15351         (fchown): Likewise.
15352         (ftruncate): Likewise.
15353         (getrusage): Likewise.
15354         (gettimeofday): Likewise.
15355         (setpgid): Likewise.
15356         (setregid): Likewise.
15357         (setreuid): Likewise.
15358         (sigaction): Likewise.
15359         (truncate): Likewise.
15360         (vhangup): Likewise.
15361         * sysdeps/unix/common/syscalls.list: Remove file.
15362         * sysdeps/unix/bsd/Implies: Don't include unix/common.
15363         * sysdeps/unix/sysv/linux/Implies: Likewise.
15364
15365 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15366
15367         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
15368         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
15369         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
15370         Moved to ...
15371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
15372         Here.
15373         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
15374         to ...
15375         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
15376         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
15377         to ...
15378         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
15379         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
15380         to ...
15381         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
15382         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
15383         to ...
15384         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
15385         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
15386         to ...
15387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
15388         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
15389         to ...
15390         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
15391         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
15392         to ...
15393         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15394         Here.
15395         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
15396         to ...
15397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
15398         Here.
15399         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
15400         to ...
15401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
15402         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
15403         Moved to ...
15404         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
15405         Here.
15406         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
15407         to ...
15408         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
15409
15410 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15411
15412         * sysdeps/unix/common/bits/dirent.h: Remove file.
15413         * sysdeps/unix/common/bits/fcntl.h: Likewise.
15414
15415         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
15416         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
15417         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
15418         * sysdeps/unix/bsd/isatty.c: Likewise.
15419         * sysdeps/unix/bsd/tcdrain.c: Likewise.
15420         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
15421         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
15422
15423 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15424
15425         [BZ #13563]
15426         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
15427         long double comparison inaccuracies.
15428         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15430
15431 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
15432
15433         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
15434         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
15435
15436 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15437
15438         [BZ #14049]
15439         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
15440         nonzero digits before rounding a hex value.
15441         * stdlib/tst-strtod.c (tests): Add another test.
15442
15443 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15444
15445         * sysdeps/s390/fpu/libm-test-ulps: Update.
15446
15447 2012-05-03  Andreas Jaeger  <aj@suse.de>
15448
15449         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
15450         does not get optimized out.
15451         (malloc_opt_barrier): New.
15452
15453 2012-05-03  Andreas Jaeger  <aj@suse.de>
15454             Roland McGrath  <roland@hack.frob.com>
15455
15456         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
15457         intermediate file deletion.
15458         (generated): Add .symlist files.
15459
15460 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
15461
15462         [BZ #13775]
15463         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
15464         Redirect under this condition.
15465         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15466         [__USE_GNU] (__dprintf_chk): Not under this condition.
15467         [__USE_GNU] (__vdprintf_chk): Likewise.
15468         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
15469         under this condition.
15470         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15471         [__USE_XOPEN2K8] (dprintf): Define under this condition.
15472         [__USE_XOPEN2K8] (vdprintf): Likewise.
15473         [__USE_GNU] (__dprintf_chk): Not under this condition.
15474         [__USE_GNU] (__vdprintf_chk): Likewise.
15475         [__USE_GNU] (dprintf): Likewise.
15476         [__USE_GNU] (vdprintf): Likewise.
15477
15478 2012-05-03  Roland McGrath  <roland@hack.frob.com>
15479
15480         * elf/Makefile (common-generated): Set this instead of generated for
15481         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
15482         $(all-built-dso)-derived lists.
15483
15484 2012-05-03  Andreas Jaeger  <aj@suse.de>
15485
15486         * sysdeps/i386/fpu/libm-test-ulps: Update.
15487
15488         * FAQ: Removed.
15489         * FAQ.in: Likewise.
15490         * scripts/gen-FAQ.pl: Likewise.
15491         * manual/install.texi (Installation): Point to online location of
15492         FAQ.
15493         * Makefile (files-for-dist): Remove FAQ.
15494         (FAQ): Remove.
15495
15496 2012-05-02  Allan McRae  <allan@archlinux.org>
15497
15498         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
15499         (LDFLAGS-reldepmod5.so): Likewise.
15500         (LDFLAGS-reldep6mod1.so): Likewise.
15501         (LDFLAGS-reldep6mod4.so): Likewise.
15502         (LDFLAGS-reldep8mod3.so): Likewise.
15503         (LDFLAGS-unload4mod1.so): Likewise.
15504         (LDFLAGS-unload4mod2.so): Likewise.
15505         (LDFLAGS-tst-initorder): Likewise.
15506         (LDFLAGS-tst-initordera2.so): Likewise.
15507         (LDFLAGS-tst-initordera3.so): Likewise.
15508         (LDFLAGS-tst-initordera4.so): Likewise.
15509         (LDFLAGS-tst-initorderb2.so): Likewise.
15510         (LDFLAGS-noload): Likewise.
15511         (LDFLAGS-next): Likewise.
15512         (LDFLAGS-order2mod1.so): Likewise.
15513         (LDFLAGS-order2mod2.so): Likewise.
15514         (LDFLAGS-tst-initorder2): Likewise.
15515         (LDFLAGS-tst-initorder2a.so): Likewise.
15516         (LDFLAGS-tst-initorder2b.so): Likewise.
15517         (LDFLAGS-tst-initorder2c.so): Likewise.
15518         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
15519
15520 2012-05-02  David S. Miller  <davem@davemloft.net>
15521
15522         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15523
15524 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
15525
15526         [BZ #14055]
15527         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
15528
15529 2012-05-02  Andreas Jaeger  <aj@suse.de>
15530
15531         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
15532         since we manipulate rounding mode.
15533         (CPPFLAGS-test-idouble.c): Likewise.
15534         (CPPFLAGS-test-ifloat.c): Likewise.
15535         (CFLAGS-test-ldouble.c): Likewise.
15536         (CFLAGS-test-double.c): Likewise.
15537         (CFLAGS-test-float.c): Likewise.
15538         (CFLAGS-test-misc.c): Likewise.
15539         (CFLAGS-test-test-fenv.c): Likewise.
15540
15541 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15542
15543         [BZ #2550]
15544         [BZ #2570]
15545         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
15546         comparisons to determine direction to adjust input.
15547
15548 2012-05-01  Roland McGrath  <roland@hack.frob.com>
15549
15550         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
15551         output to the target.
15552
15553         * scripts/localplt.awk: New file.
15554         * elf/Makefile ($(objpfx)check-localplt): Target removed.
15555         (check-localplt-CFLAGS): Variable removed.
15556         ($(all-built-dso:=.jmprel)): New static pattern rule.
15557         (generated): Add those targets.
15558         (localplt-built-dso): New variable.
15559         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
15560
15561         * elf/check-localplt.c: File removed.
15562
15563         * scripts/check-execstack.awk: New file.
15564         * elf/Makefile ($(objpfx)check-execstack): Target removed.
15565         (check-execstack-CFLAGS): Variable removed.
15566         ($(objpfx)check-execstack.h): Target removed.
15567         ($(objpfx)execstack-default): New target.
15568         (generated): Add that instead of check-execstack.h.
15569         ($(all-built-dso:=.phdr)): New static pattern rule.
15570         (generated): Add those targets.
15571         * elf/check-execstack.c: File removed.
15572
15573         * scripts/check-textrel.awk: New file.
15574         * elf/Makefile ($(objpfx)check-textrel): Target removed.
15575         (check-textrel-CFLAGS): Variable removed.
15576         (all-built-dso): Use := to define.o
15577         ($(all-built-dso:=.dyn)): New static pattern rule.
15578         (generated): Add those targets.
15579         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
15580         * config.make.in (READELF): New substituted variable.
15581         * elf/check-textrel.c: File removed.
15582
15583 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
15584
15585         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15586         allow.
15587         * conform/data/ctype.h-data [C99-based standards] (isblank):
15588         Expect function.
15589         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
15590         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
15591         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15592         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
15593         Specify type.  Require positive value.
15594         (EILSEQ): Likewise.
15595         (ERANGE): Likewise.
15596         [ISO || POSIX] (EILSEQ): Do not expect.
15597         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
15598         Specify type.  Require positive value.
15599         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
15600         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
15601         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
15602         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
15603         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
15604         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
15605         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
15606         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
15607         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
15608         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
15609         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
15610         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
15611         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
15612         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
15613         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
15614         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
15615         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
15616         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
15617         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
15618         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
15619         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
15620         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
15621         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
15622         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
15623         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
15624         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
15625         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
15626         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
15627         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
15628         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
15629         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
15630         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
15631         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
15632         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
15633         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
15634         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
15635         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
15636         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
15637         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
15638         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
15639         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
15640         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
15641         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
15642         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
15643         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
15644         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
15645         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
15646         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
15647         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
15648         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
15649         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
15650         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
15651         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
15652         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
15653         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
15654         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
15655         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
15656         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
15657         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
15658         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
15659         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
15660         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
15661         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
15662         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
15663         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
15664         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
15665         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
15666         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
15667         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
15668         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
15669         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
15670         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
15671         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
15672         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
15673         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
15674         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
15675         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
15676         Require >= 2.
15677         (FLT_ROUNDS): Expect as macro, not constant.
15678         (FLT_MANT_DIG): Use macro-int-constant.
15679         (DBL_MANT_DIG): Likewise.
15680         (LDBL_MANT_DIG): Likewise.
15681         (FLT_DIG): Likewise.
15682         (DBL_DIG): Likewise.
15683         (LDBL_DIG): Likewise.
15684         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
15685         (DBL_MIN_EXP): Likewise.
15686         (LDBL_MIN_EXP): Likewise.
15687         (FLT_MAX_EXP): Use macro-int-constant.
15688         (DBL_MAX_EXP): Likewise.
15689         (LDBL_MAX_EXP): Likewise.
15690         (FLT_MAX_10_EXP): Likewise.
15691         (DBL_MAX_10_EXP): Likewise.
15692         (LDBL_MAX_10_EXP): Likewise.
15693         (FLT_MAX): Use macro-constant.
15694         (DBL_MAX): Likewise.
15695         (LDBL_MAX): Likewise.
15696         (FLT_EPSILON): Use macro-constant.  Give upper bound.
15697         (DBL_EPSILON): Likewise.
15698         (LDBL_EPSILON): Likewise.
15699         (FLT_MIN): Likewise.
15700         (DBL_MIN): Likewise.
15701         (LDBL_MIN): Likewise.
15702         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
15703         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
15704         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
15705         [ISO11] (FLT_HAS_SUBNORM): Likewise.
15706         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
15707         [ISO11] (DBL_DECIMAL_DIG): Likewise.
15708         [ISO11] (FLT_DECIMAL_DIG): Likewise.
15709         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
15710         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
15711         [ISO11] (FLT_TRUE_MIN): Likewise.
15712         [ISO11] (LDBL_TRUE_MIN): Likewise.
15713         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15714         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
15715         (SCHAR_MIN): Use macro-int-constant.  Specify type.
15716         (SCHAR_MAX): Likewise.
15717         (UCHAR_MAX): Likewise.
15718         (CHAR_MIN): Likewise.
15719         (CHAR_MAX): Likewise.
15720         (MB_LEN_MAX): Use macro-int-constant.
15721         (SHRT_MIN): Use macro-int-constant.  Specify type.
15722         (SHRT_MAX): Likewise.
15723         (USHRT_MAX): Likewise.
15724         (INT_MAX): Likewise.
15725         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
15726         bound negative.
15727         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15728         bound with "U".
15729         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15730         bound with "L".
15731         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
15732         bound negative.  Suffix upper bound with "L".
15733         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15734         bound with "UL".
15735         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
15736         Specify type.
15737         [C99-based standards] (LLONG_MAX): Likewise.
15738         [C99-based standards] (ULLONG_MAX): Likewise.
15739         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
15740         == 0.
15741         [ISO11] (max_align_t): Require type.
15742         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15743
15744         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
15745         from $CFLAGS, without defining away __attribute__ calls.
15746         (checknamespace): Use $CFLAGS_namespace.
15747
15748         * conform/conformtest.pl (@keywords): Only include C99 keywords
15749         for standards based on C99 or C11.
15750
15751         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
15752         Disable tests.
15753         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
15754         UNIX98]: Likewise.
15755
15756         * conform/conformtest.pl: Handle "macro-int-constant" and test for
15757         usability of symbols in #if.
15758
15759         * conform/conformtest.pl: If macro or constant types start
15760         "promoted:", expect the symbol to be of the following type
15761         promoted by the integer promotions.
15762
15763         * conform/conformtest.pl: Parse all "constant" and "macro" lines
15764         in one place.  Also handle "macro-constant".
15765
15766         * conform/conformtest.pl: Only accept expected macro values with
15767         "==".  Parse all "macro" lines in one place.
15768         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
15769
15770         * conform/conformtest.pl: Handle braced types on "constant" lines
15771         instead of handling "typed-constant".
15772         * conform/data/signal.h-data: Use "constant" instead of
15773         "typed-constant".
15774
15775         * conform/conformtest.pl: Handle "optional-" at start of lines in
15776         one place rather than duplicating several cases.  Handle each
15777         format of "macro" line with initial "optional-".
15778
15779         * conform/conformtest.pl: Only accept expected constant or
15780         optional-constant values with "==".  Parse all "constant" lines in
15781         one place.  Parse all "optional-constant" lines in one place.
15782         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
15783         * conform/data/fmtmsg.h-data: Likewise.
15784         * conform/data/netinet/in.h-data: Likewise.
15785         * conform/data/tar.h-data: Likewise.
15786         * conform/data/limits.h-data: Use "==" form on "constant" and
15787         "optional-constant" lines.
15788
15789         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
15790         Use -std=c99 for XOPEN2K.
15791         (@knownproblems): Remove.
15792         (newtoken): Don't check %isknown.
15793
15794         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
15795         Do not expect macro.
15796         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
15797         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
15798         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
15799         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
15800         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
15801         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
15802         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
15803         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
15804         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
15805         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
15806         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
15807         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
15808         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
15809         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
15810         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
15811         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
15812         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
15813         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
15814         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
15815         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
15816         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
15817         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
15818         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
15819         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
15820         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
15821         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
15822         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
15823         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
15824         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
15825         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
15826         [XPG3] (acosh): Likewise.
15827         [XPG3] (asinh): Likewise.
15828         [XPG3] (atanh): Likewise.
15829         [XPG3] (cbrt): Likewise.
15830         [XPG3] (expm1): Likewise.
15831         [XPG3] (ilogb): Likewise.
15832         [XPG3] (log1p): Likewise.
15833         [XPG3] (logb): Likewise.
15834         [XPG3] (nextafter): Likewise.
15835         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
15836         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
15837         [XPG3] (remainder): Likewise.
15838         [XPG3] (rint): Likewise.
15839         [XPG3 || XPG4 || UNIX98] (round): Likewise.
15840         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
15841         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
15842         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
15843         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
15844         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
15845         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
15846         [UNIX98 || XOPEN2K] (scalb): Expect.
15847         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
15848         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
15849         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
15850         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
15851         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
15852         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
15853         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
15854         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
15855         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
15856         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
15857         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
15858         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
15859         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
15860         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
15861         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
15862         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
15863         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
15864         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
15865         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
15866         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
15867         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
15868         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
15869         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
15870         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
15871         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
15872         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
15873         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
15874         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
15875         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
15876         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
15877         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
15878         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
15879         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
15880         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
15881         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
15882         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
15883         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
15884         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
15885         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
15886         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
15887         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
15888         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
15889         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
15890         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
15891         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
15892         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
15893         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
15894         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
15895         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
15896         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
15897         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
15898         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
15899         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
15900         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
15901         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
15902         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
15903         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
15904         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
15905         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
15906         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
15907         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
15908         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
15909         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
15910         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
15911         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
15912         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
15913         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
15914         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
15915         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
15916         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
15917         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
15918         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
15919         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
15920         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
15921         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
15922         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
15923         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
15924         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
15925         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
15926         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
15927         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
15928         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
15929         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
15930         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
15931         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
15932         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
15933         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
15934         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
15935         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
15936         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
15937         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
15938         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
15939         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
15940         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
15941         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
15942         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
15943         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
15944         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
15945         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
15946         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
15947         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
15948         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
15949         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
15950         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
15951         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
15952         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
15953         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
15954         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
15955         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
15956         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
15957         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
15958         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
15959         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
15960         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
15961         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
15962         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
15963         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
15964         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
15965         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
15966         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
15967         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
15968         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
15969         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
15970         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
15971         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
15972         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
15973         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
15974         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
15975         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
15976         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
15977         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
15978         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
15979         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
15980         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
15981         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
15982         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
15983         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
15984
15985         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
15986         _XOPEN_SOURCE_EXTENDED for XPG4.
15987
15988         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
15989
15990         * Makeconfig (localtime): Remove variable.
15991         (inst_localtime-file): Likewise.
15992
15993 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15994
15995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
15996         Update.
15997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15998         Update.
15999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
16000         Update.
16001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16002         Update.
16003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
16004         Update.
16005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
16006         Update.
16007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16008         Update.
16009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
16010         Update.
16011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16012         Update.
16013
16014 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
16015
16016         [BZ #2550]
16017         [BZ #2570]
16018         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
16019         comparisons to determine direction to adjust input.
16020         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
16021         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
16022         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
16023         Likewise.
16024         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
16025         Likewise.
16026         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
16027         Likewise.
16028         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
16029         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
16030         Likewise.
16031         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
16032         Likewise.
16033         * math/libm-test.inc (nexttoward_test): Add more tests.
16034
16035 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16036
16037         [BZ #14040]
16038         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
16039         in version GLIBC_2.1, not GLIBC_2.0.
16040         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
16041         Likewise.
16042
16043 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
16044
16045         [BZ #13942]
16046         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
16047         (1 - x) * (1 + x).
16048         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16049         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
16050         * math/libm-test.inc (acos_test): Add more tests.
16051         (asin_test): Likewise.
16052         * sysdeps/i386/fpu/libm-test-ulps: Update.
16053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16054
16055         [BZ #14034]
16056         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
16057         of square root.
16058         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
16059         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
16060         * math/libm-test.inc (acos_test_tonearest): New function.
16061         (acos_test_towardzero): Likewise.
16062         (acos_test_downward): Likewise.
16063         (acos_test_upward): Likewise.
16064         (asin_test_tonearest): Likewise.
16065         (asin_test_towardzero): Likewise.
16066         (asin_test_downward): Likewise.
16067         (asin_test_upward): Likewise.
16068         (main): Call the new functions.
16069         * sysdeps/i386/fpu/libm-test-ulps: Update.
16070         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16071
16072         [BZ #13884]
16073         [BZ #13924]
16074         * math/e_exp10.c: Include <float.h>.
16075         (__ieee754_exp10): Handle underflow here rather than multiplying
16076         large negative argument by M_LN10.
16077         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
16078         of __ieee754_expf.
16079         * math/e_exp10l.c: Include <float.h>.
16080         (__ieee754_exp10l): Handle underflow here rather than multiplying
16081         large negative argument by M_LN10l.
16082         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
16083         spurious overflow exception on underflow.
16084
16085 2012-04-29  Marek Polacek  <polacek@redhat.com>
16086
16087         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
16088         (__fortify_function): New macro.
16089         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
16090         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
16091         __extern_always_inline.
16092         * libio/bits/stdio2.h: Likewise.
16093         * libio/bits/stdio.h: Likewise.
16094         * string/string.h: Likewise.
16095         * string/bits/string3.h: Likewise.
16096         * include/stdio.h: Likewise.
16097         * stdlib/bits/stdlib.h: Likewise.
16098         * stdlib/stdlib.h: Likewise.
16099         * rt/bits/mqueue2.h: Likewise.
16100         * rt/mqueue.h: Likewise.
16101         * posix/bits/unistd.h: Likewise.
16102         * posix/unistd.h: Likewise.
16103         * io/bits/poll2.h: Likewise.
16104         * io/bits/fcntl2.h: Likewise.
16105         * io/fcntl.h: Likewise.
16106         * io/sys/poll.h: Likewise.
16107         * misc/bits/syslog.h: Likewise.
16108         * misc/bits/syslog-ldbl.h: Likewise.
16109         * misc/sys/syslog.h: Likewise.
16110         * socket/bits/socket2.h: Likewise.
16111         * socket/sys/socket.h: Likewise.
16112         * debug/tst-chk1.c: Likewise.
16113         * wcsmbs/bits/wchar2.h: Likewise.
16114         * wcsmbs/bits/wchar-ldbl.h: Likewise.
16115         * wcsmbs/wchar.h: Likewise.
16116
16117 2012-04-29  Andreas Jaeger  <aj@suse.de>
16118
16119         * Makerules (tests): Remove enable-check-abi protection.
16120         (check-abi-warn): Remove.
16121         (check-abi-%): Remove check-abi-warn usage.
16122
16123         * configure.in: Remove check-abi configure option.
16124         * configure: Regenerated.
16125         * config.make.in (enable-check-abi): Remove.
16126
16127 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16128
16129         [BZ #14033]
16130         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16131         double functions to double *_finite functions.
16132
16133         [BZ #13941]
16134         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16135         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16136         LDBL_MIN_EXP.
16137         * stdio-common/Makefile (tests): Add tst-sprintf3.
16138         * stdio-common/tst-sprintf3.c: New file.
16139
16140         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16141         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16142
16143 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16144
16145         * conform/conformtest.pl: Remove duplicate typed-constant
16146         handling.
16147
16148 2012-04-28  David S. Miller  <davem@davemloft.net>
16149
16150         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16151         (check-abi-%): Remove AWK script prerequisite and explicit
16152         abilist directory.
16153         (check-abi): Rewrite to just diff the symlist with the abilist.
16154         (config-tls, config-abi-config): Delete, no longer used.
16155         (update-abi-%): Remove AWK script and explicit abilist directory.
16156         (update-abi): Rewrite to simply compare and conditionally copy the
16157         symlist and the sysdep abilist file.  Remove update-abi-config
16158         checks.
16159         * abilist/ld.abilist: Remove.
16160         * abilist/libBrokenLocale.abilist: Remove.
16161         * abilist/libanl.abilist: Remove.
16162         * abilist/libcrypt.abilist: Remove.
16163         * abilist/libdl.abilist: Remove.
16164         * abilist/librt.abilist: Remove.
16165         * abilist/libthread_db.abilist: Remove.
16166         * abilist/libutil.abilist: Remove.
16167         * scripts/extract-abilist.awk: Remove.
16168         * scripts/merge-abilist.awk: Remove.
16169         * sysdeps/generic/libcidn.abilist: New file.
16170         * sysdeps/generic/libnss_compat.abilist: New file.
16171         * sysdeps/generic/libnss_db.abilist: New file.
16172         * sysdeps/generic/libnss_dns.abilist: New file.
16173         * sysdeps/generic/libnss_files.abilist: New file.
16174         * sysdeps/generic/libnss_hesiod.abilist: New file.
16175         * sysdeps/generic/libnss_nis.abilist: New file.
16176         * sysdeps/generic/libnss_nisplus.abilist: New file.
16177         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16178         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16179         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16180         file.
16181         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16182         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16183         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16184         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16185         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16186         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16187         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16188         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16189         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16190         file.
16191         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16192         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16193         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16194         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16195         file.
16196         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16197         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16198         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16199         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16200         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16201         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16202         file.
16203         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16204         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16205         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16206         file.
16207         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16208         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16209         New file.
16210         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16211         New file.
16212         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16213         New file.
16214         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16215         New file.
16216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16217         New file.
16218         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16219         New file.
16220         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16221         New file.
16222         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16223         New file.
16224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16225         New file.
16226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16227         New file.
16228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16229         New file.
16230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16231         New file.
16232         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16233         New file.
16234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16235         file.
16236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16237         New file.
16238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16239         New file.
16240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16241         file.
16242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16243         New file.
16244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16245         New file.
16246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16247         file.
16248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16249         New file.
16250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16251         New file.
16252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16253         New file.
16254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16255         New file.
16256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16257         New file.
16258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16259         New file.
16260         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16262         file.
16263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16264         New file.
16265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16266         file.
16267         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16268         file.
16269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16270         file.
16271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16272         file.
16273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16274         file.
16275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16276         New file.
16277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16278         file.
16279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16280         file.
16281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16282         New file.
16283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16284         file.
16285         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16286         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16287         file.
16288         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16289         New file.
16290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16291         file.
16292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16293         file.
16294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16295         file.
16296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16297         file.
16298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16299         file.
16300         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16301         New file.
16302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16303         file.
16304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16305         file.
16306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16307         New file.
16308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16309         file.
16310         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16311         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16312         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16313         file.
16314         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16315         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16316         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16317         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16318         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16319         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16320         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16321         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16322         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16323         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16324         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16325         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16326         file.
16327         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16328         New file.
16329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16330         file.
16331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16332         file.
16333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16334         file.
16335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16336         file.
16337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16338         file.
16339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16340         New file.
16341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
16342         New file.
16343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
16344         file.
16345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
16346         New file.
16347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
16348         file.
16349         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
16350         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
16351         file.
16352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
16353         New file.
16354         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
16355         file.
16356         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
16357         file.
16358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
16359         file.
16360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
16361         file.
16362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
16363         file.
16364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16365         New file.
16366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
16367         New file.
16368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
16369         file.
16370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
16371         New file.
16372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
16373         file.
16374
16375 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16376
16377         * conform/conformtest.pl: Fix typo in handling typed-constant from
16378         allow-header.
16379
16380 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16381
16382         * README: Cut down references to pre-2.6 Linux kernels and
16383         Linuxthreads.  Update lists of configurations in libc and ports
16384         and sort alphabetically.  Say "or newer" with Linux kernel version
16385         requirements.
16386
16387         * config.h.in [IS_IN_build]: Allow compiling without optimization.
16388
16389 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16390
16391         [BZ #887]
16392         * math/libm-test.inc (logb_test_downward): New test to expose
16393         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
16394         rounding mode.
16395
16396 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16397
16398         [BZ #14027]
16399         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
16400         to be done.
16401         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
16402         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
16403
16404 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
16405
16406         * sysdeps/unix/i386/brk.S: Remove file.
16407         * sysdeps/unix/i386/dl-brk.S: Likewise.
16408         * sysdeps/unix/i386/pipe.S: Likewise.
16409         * sysdeps/unix/i386/sigreturn.S: Likewise.
16410         * sysdeps/unix/i386/syscall.S: Likewise.
16411         * sysdeps/unix/i386/vfork.S: Likewise.
16412         * sysdeps/unix/i386/wait.S: Likewise.
16413
16414         * sysdeps/unix/common/tcsendbrk.c: Move to ...
16415         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
16416
16417         * configure.in (arm*-none*): Do not allow without
16418         --enable-hacker-mode.
16419         (netbsd*): Remove case setting base_os.
16420         (386bsd*): Likewise.
16421         (freebsd*): Likewise.
16422         (bsdi*): Likewise.
16423         (osf*): Likewise.
16424         (sunos*): Likewise.
16425         (ultrix*): Likewise.
16426         (newsos*): Likewise.
16427         (dynix*): Likewise.
16428         (*bsd*): Likewise.
16429         (sysv*): Likewise.
16430         (isc*): Likewise.
16431         (esix*): Likewise.
16432         (sco*): Likewise.
16433         (minix*): Likewise.
16434         (irix4*): Likewise.
16435         (irix6*): Likewise.
16436         (solaris[2-9]*): Likewise.
16437         (none): Likewise.
16438         * configure: Regenerated.
16439
16440 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16441
16442         [BZ #11521]
16443         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
16444         overflow or cancellation in calculating denominator.
16445         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
16446         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
16447         down expression to avoid unexpected rounding in newer GCCs.
16448         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
16449
16450 2012-04-26  David S. Miller  <davem@davemloft.net>
16451
16452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
16453         long-double compat symbols.
16454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
16458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16459         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
16460         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
16461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
16462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
16463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
16464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
16465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
16466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
16467
16468 2012-04-25  David S. Miller  <davem@davemloft.net>
16469
16470         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
16471         HWCAP_* values only after the memory barriers have been defined.
16472         (atomic_full_barrier): Define.
16473         (atomic_read_barrier): Define.
16474         (atomic_write_barrier): Define.
16475
16476 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16477
16478         * shlib-versions: Add libgcc_s version information.
16479         * sysdeps/generic/libgcc_s.h: Remove.
16480         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
16481         libgcc_s.h.
16482         * sysdeps/gnu/unwind-resume.c: Likewise.
16483         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
16484
16485 2012-04-25  David S. Miller  <davem@davemloft.net>
16486
16487         * sysdeps/unix/sparc/brk.S: Delete.
16488         * sysdeps/unix/sparc/dl-brk.S: Delete.
16489         * sysdeps/unix/sparc/pipe.S: Delete.
16490         * sysdeps/unix/sparc/sysdep.S: Delete.
16491         * sysdeps/unix/sparc/sysdep.h: Delete.
16492         * sysdeps/unix/sparc/vfork.S: Delete.
16493         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
16494         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
16495         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
16496         ret_ERRVAL, r0, r1, MOVE): Define.
16497         (JUMPTARGET): Remove.
16498         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
16499         sysdeps/unix/sparc/sysdep.h
16500         (ENTRY, END): Remove.
16501         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16502
16503 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
16504
16505         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
16506         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
16507         -DIS_IN_build.
16508
16509         * timezone/README: Update upstream location and email address for
16510         tzcode and tzdata.
16511         * timezone/zdump.c: Update from tzcode 2012b.
16512         * timezone/zic.c: Likewise.
16513
16514         * configure.in (libc_cv_as_needed): Remove test.
16515         * configure: Regenerated.
16516         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
16517         conditional definition.
16518         [$(have-as-needed) != yes] (no-as-needed): Likewise.
16519         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
16520         * config.make.in (have-as-needed): Remove variable.
16521
16522 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
16523             Paul Pluzhnikov  <ppluzhnikov@google.com>
16524
16525         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
16526         strings correctly.
16527
16528 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16529
16530         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
16531         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
16532         * sysdeps/sh/strlen.S: Likewise.
16533
16534 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16535
16536         * sysdeps/unix/fork.S: Remove file.
16537         * sysdeps/unix/i386/fork.S: Likewise.
16538         * sysdeps/unix/sparc/fork.S: Likewise.
16539
16540         * sysdeps/unix/system.c: Remove file.
16541         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
16542
16543         * sysdeps/unix/getegid.S: Remove file.
16544         * sysdeps/unix/geteuid.S: Likewise.
16545
16546 2012-04-24  Roland McGrath  <roland@hack.frob.com>
16547
16548         * scripts/check-localplt.awk: New file.
16549         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
16550         of diff.
16551         * scripts/data/localplt-generic.data: Add a comment.
16552
16553         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
16554         NODE when __dir_mkfile failed.
16555         * sysdeps/mach/hurd/symlinkat.c: Likewise.
16556         Reported by Ludovic Courtès <ludo@gnu.org>.
16557
16558 2012-04-24  Andreas Jaeger  <aj@suse.de>
16559
16560         * Makerules (common-clean): Also remove gen-as-const-headers
16561         files.
16562
16563 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16564
16565         * Makerules (native-compile): Do not change working directory for
16566         build.  Use $(OUTPUT_OPTION) in command.
16567         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
16568
16569 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16570
16571         [BZ #13886]
16572         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
16573         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
16574         * math/libm-test.inc (floor_test): Add more tests.
16575         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
16576
16577 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16578
16579         * sysdeps/unix/getdents.c: Remove file.
16580         * sysdeps/unix/sysv/getdents.c: Likewise.
16581         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
16582
16583         * sysdeps/unix/syscalls.list (madvise): Add syscall from
16584         sysdeps/unix/mman/syscalls.list.
16585         (mmap): Likewise.
16586         (mprotect): Likewise.
16587         (msync): Likewise.
16588         (munmap): Likewise.
16589         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
16590         * sysdeps/unix/mman/syscalls.list: Remove.
16591         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
16592
16593         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
16594         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
16595         * configure: Regenerated.
16596         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
16597         $(libgcc_s_suffix).
16598         * config.make.in (libgcc_s_suffix): Remove variable.
16599
16600 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
16601
16602         * sysdeps/unix/sysv/gethostname.c: Move to ...
16603         * sysdeps/posix/gethostname.c: ... here.
16604
16605         * sysdeps/unix/execve.S: Remove file.
16606
16607         * sysdeps/unix/_exit.S: Remove file.
16608
16609 2012-04-23  Andreas Jaeger  <aj@suse.de>
16610
16611         [BZ #13739]
16612         * manual/Makefile: Remove make dist support, there's no
16613         need for a stand-alone documentation tar ball.
16614         (TEXI2DVI): Define always, it's not in Makeconfig.
16615         (dist): Removed.
16616         (tar-it): Removed.
16617         (edition): Removed.
16618         (glibc-doc-$(edition).tar): Removed
16619         (%.Z): Removed.
16620         (%.gz): Removed.
16621         (%.uu): Removed.
16622         (ETAGS): Remove, it's in Makeconfig.
16623         (move-if-change): Remove, it's in Makeconfig.
16624
16625 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
16626
16627         [BZ #13970]
16628         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
16629         (strtod, strtof, strtold, strtol, strtoul, strtoq)
16630         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
16631         (strtod_l, strtof_l, strtold_l): Remove __wur.
16632         It is not necessarily an error to ignore strtol's return value.
16633         One can reliably look at the stored endptr to decide whether
16634         the number had valid syntax.
16635
16636 2012-04-21  Andreas Jaeger  <aj@suse.de>
16637
16638         [BZ #13739]
16639         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
16640
16641 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
16642
16643         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
16644         * sysdeps/unix/sysv/Versions: Remove file.
16645
16646 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16647
16648         [BZ #13927]
16649         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16650
16651 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
16652
16653         [BZ #7064]
16654         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
16655         version from __vm86.
16656
16657 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
16658
16659         * sysdeps/unix/common/lxstat.c: Remove file.
16660         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
16661
16662         * sysdeps/unix/sysv/Makefile: Remove file.
16663
16664         * sysdeps/unix/sysv/direct.h: Remove file.
16665
16666         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
16667         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
16668         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
16669         * sysdeps/unix/sysv/bits/signum.h: Likewise.
16670         * sysdeps/unix/sysv/bits/stat.h: Likewise.
16671         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
16672         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
16673
16674         * sysdeps/unix/sysv/setrlimit.c: Remove file.
16675
16676         * sysdeps/unix/xmknod.c: Remove file.
16677         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
16678
16679         * sysdeps/unix/sysv/settimeofday.c: Remove file.
16680
16681         * sysdeps/unix/sysv/i386/time.S: Remove file.
16682
16683         * sysdeps/unix/fxstat.c: Remove file.
16684         * sysdeps/unix/xstat.c: Likewise.
16685         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
16686
16687         * sysdeps/unix/sysv/sigaction.c: Remove file.
16688
16689         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
16690         (sysdep_headers): Remove variable.
16691         [termio.h not in sysdep_headers] (generated): Likewise.
16692         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
16693         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
16694         * sysdeps/unix/sysv/tcdrain.c: Likewise.
16695         * sysdeps/unix/sysv/tcflow.c: Likewise.
16696         * sysdeps/unix/sysv/tcflush.c: Likewise.
16697         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
16698         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
16699         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
16700         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
16701         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
16702
16703         * sysdeps/unix/siglist.c: Remove file.
16704
16705         * sysdeps/unix/getppid.S: Remove file.
16706
16707         * sysdeps/unix/mkdir.c: Remove file.
16708         * sysdeps/unix/rmdir.c: Likewise.
16709
16710 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
16711
16712         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
16713         ERR_MAX value.
16714         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
16715         errlist-compat value.
16716
16717 2012-04-18  David S. Miller  <davem@davemloft.net>
16718
16719         * sysdeps/generic/memcopy.h (reg_char): Delete.
16720         * debug/strcat_chk.c: Use char, not reg_char.
16721         * debug/strcpy_chk.c: Likewise.
16722         * debug/strncat_chk.c: Likewise.
16723         * debug/strncpy_chk.c: Likewise.
16724         * string/memchr.c: Likewise.
16725         * string/memrchr.c: Likewise.
16726         * string/rawmemchr.c: Likewise.
16727         * string/strcat.c: Likewise.
16728         * string/strchr.c: Likewise.
16729         * string/strchrnul.c: Likewise.
16730         * string/strcmp.c: Likewise.
16731         * string/strcpy.c: Likewise.
16732         * string/strncat.c: Likewise.
16733         * string/strncmp.c: Likewise.
16734         * string/strncpy.c: Likewise.
16735
16736 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16737
16738         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
16739         __builtin_memcopy is called when src and dest ranges are known to not
16740         overlap.
16741
16742 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16743
16744         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
16745         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
16746         fwd_align_merge macro call.
16747         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
16748         bwd_align_merge macro call.
16749         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16750
16751 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16752
16753         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
16754         bwd_align_merge macros.
16755         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
16756         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
16757         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16758
16759 2012-04-18  David S. Miller  <davem@davemloft.net>
16760
16761         * sysdeps/sparc/sparc64/memcopy.h: Delete.
16762
16763 2012-04-18  Andreas Jaeger  <aj@suse.de>
16764
16765         [BZ# 6794]
16766         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
16767         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
16768         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16769
16770         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
16771         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
16772         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16773
16774         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
16775         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
16776         Adjust for changed ldbl-128 files.
16777
16778         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
16779         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
16780         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16781
16782 2012-04-17  David S. Miller  <davem@davemloft.net>
16783
16784         * sysdeps/sparc/sparc32/memcopy.h: Delete.
16785
16786 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
16787
16788         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
16789         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
16790         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
16791         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
16792         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
16793         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
16794
16795 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16796
16797         [BZ #6794]
16798         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
16799         * math/libm-test.inc: Add ilogb errno and exception tests.
16800         * math/w_ilogb.c: New file: ilogb wrapper.
16801         * math/w_ilogbf.c: New file: ilogbf wrapper.
16802         * math/w_ilogbl.c: New file: ilogbl wrapper.
16803         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
16804         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
16805         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
16806         exception being thrown with 0.0 as argument.
16807         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
16808         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
16809         exception being thrown with 0.0 as argument.
16810         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
16811         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16812         exception being thrown with 0.0 as argument.
16813         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
16814         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16815         exception being thrown with 0.0 as argument.
16816         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
16817         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
16818         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
16819         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
16820         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
16821         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
16822         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
16823         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
16824         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
16825
16826 2012-04-17  Petr Baudis  <pasky@ucw.cz>
16827
16828         * include/sys/uio.h: Change __vector to __iovec to avoid clash
16829         with altivec.
16830
16831 2012-04-16  Marek Polacek  <polacek@redhat.com>
16832
16833         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
16834
16835 2012-04-16  Marek Polacek  <polacek@redhat.com>
16836
16837         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
16838         operands of fdivp instruction.
16839
16840 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16841
16842         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
16843         * elf/tst-auditmod3b.c: Likewise.
16844         * elf/tst-auditmod4b.c: Likewise.
16845         * elf/tst-auditmod5b.c: Likewise.
16846         * elf/tst-auditmod6b.c: Likewise.
16847         * elf/tst-auditmod6c.c: Likewise.
16848         * elf/tst-auditmod7b.c: Likewise.
16849         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
16850         * sysdeps/x86_64/preconfigure.in: Likewise.
16851         * sysdeps/x86_64/preconfigure: Regenerated.
16852
16853 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16854
16855         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
16856         __ILP32__.
16857
16858 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
16859
16860         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16861         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
16862
16863 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
16864
16865         [BZ #13973]
16866         * locale/iso-639.def: Fix gl language name. Spotted by
16867         Yaron Shahrabani.
16868
16869 2012-04-12  Roland McGrath  <roland@hack.frob.com>
16870
16871         [BZ #2074]
16872         * libio/libio.h (__io_write_fn): Update comment.
16873
16874 2012-04-12  Petr Baudis  <pasky@ucw.cz>
16875
16876         [BZ #2074]
16877         * stdio.texi (Hook Functions): The user provided writer function
16878         is not allowed to return -1.
16879
16880 2012-04-11  David S. Miller  <davem@davemloft.net>
16881
16882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16883
16884 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
16885
16886         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
16887         Add a leading slash to rtkaio.
16888
16889 2012-04-11  Jim Meyering  <meyering@redhat.com>
16890
16891         [BZ #11959]
16892         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
16893         It is not necessarily an error to ignore fwrite's return
16894         value.  One can reliably use ferror to test for errors after
16895         the fact.
16896
16897 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16898
16899         * bits/types.h (__snseconds_t): New type.
16900         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
16901
16902         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
16903         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16904         (__SNSECONDS_T_TYPE): Likewise.
16905         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16906         (__SNSECONDS_T_TYPE): Likewise.
16907         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16908         (__SNSECONDS_T_TYPE): Likewise.
16909
16910 2012-04-10  Andreas Jaeger  <aj@suse.de>
16911
16912         [BZ #2636]
16913         * manual/time.texi (Processor Time): Return type of times is
16914         elapsed real time since an arbitrary point in the past.
16915         (CPU Time): Move CLK_TCK from here...
16916         (Processor Time): ...to here.  Correct description.
16917         * manual/conf.texi (Constants for Sysconf): Correct description of
16918         _SC_CLK_TCK.
16919
16920 2012-04-10  David S. Miller  <davem@davemloft.net>
16921
16922         [BZ #13967]
16923         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
16924         where the is a gap between DT_REL(A) and DT_JMPREL.
16925
16926 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16927
16928         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
16929         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16930         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16931
16932 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16933
16934         * elf/dl-support.c (_dl_inhibit_cache): New variable.
16935         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
16936         (dl_main): Handle --inhibit-cache.
16937         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
16938         _dl_inhibit_cache.
16939         * elf/dl-load.c (_dl_map_object): Use it.
16940         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
16941
16942 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16943
16944         [BZ #13872]
16945         * sysdeps/i386/fpu/e_powl.S (p78): New object.
16946         (__ieee754_powl): Saturate large exponents rather than testing for
16947         overflow of y*log2(x).
16948         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16949         * math/libm-test.inc (pow_test): Do not permit spurious overflow
16950         exceptions.
16951
16952         [BZ #11521]
16953         * math/s_ctan.c: Include <float.h>.
16954         (__ctan): Avoid internal overflow or cancellation in calculating
16955         denominator.
16956         * math/s_ctanf.c: Likewise.
16957         * math/s_ctanl.c: Likewise.
16958         * math/s_ctanh.c: Likewise.
16959         * math/s_ctanhf.c: Likewise.
16960         * math/s_ctanhl.c: Likewise.
16961         * math/libm-test.inc (ctan_test): Add more tests.
16962         (ctanh_test): Likewise.
16963         * sysdeps/i386/fpu/libm-test-ulps: Update.
16964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16965
16966 2012-04-09  Andreas Jaeger  <aj@suse.de>
16967
16968         [BZ #6894]
16969         * manual/filesys.texi (Directory Entries): Mention that d_namlen
16970         is an optional BSD extension.
16971
16972         [BZ #10254]
16973         * manual/stdio.texi (Opening Streams): Document additional fopen
16974         parameters.
16975
16976 2012-04-09  Roland McGrath  <roland@hack.frob.com>
16977
16978         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
16979         %eax without telling the compiler.
16980
16981 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
16982
16983         [BZ # 13963]
16984         * manual/install.texi: Use sourceware.org.
16985
16986 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16987
16988         [BZ #13873]
16989         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
16990         (__ieee754_pow): Generate overflow and underflow using huge*huge
16991         and tiny*tiny rather than just returning constant infinity or zero
16992         for large exponents.
16993         * math/libm-test.inc (pow_test): Require overflow exceptions for
16994         applicable cases of large exponents.
16995
16996         [BZ #706]
16997         * sysdeps/i386/fpu/e_pow.S (p10): New object.
16998         (__ieee754_pow): Use iterative multiplication algorithm only for
16999         integer exponents with absolute value below 1024.  Check for odd
17000         integer exponents when using algorithm for real exponents.
17001         * math/libm-test.inc (pow_test): Add more tests.
17002         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17003
17004 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
17005
17006         [BZ #13705]
17007         * math/libm-test.inc (exp_test): Do not allow overflow exception
17008         on underflow test.
17009
17010 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
17011
17012         [BZ #13705]
17013         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
17014         instead of __kernel_standard_f.
17015
17016 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
17017
17018         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
17019         * sysdeps/x86_64/memset_chk.S: Likewise.
17020
17021 2012-04-08  Andreas Jaeger  <aj@suse.de>
17022
17023         [BZ #10153]
17024         * manual/startup.texi (Environment Access): Describe return value
17025         for putenv and setenv.
17026
17027         [BZ #6895]
17028         * manual/filesys.texi (Directory Entries): Add description for
17029         DT_LNK.
17030
17031         [BZ #6890]
17032         * manual/filesys.texi (Directory Entries): Clarify that it's file
17033         system not operating system in the description of DT_UNKNOWN.
17034
17035         [BZ #6578]
17036         * manual/syslog.texi (closelog): Fix reference, it's openlog.
17037
17038 2012-04-08  Stephen Compall  <s11@member.fsf.org>
17039
17040         [BZ #6649]
17041         * manual/llio.texi (Opening and Closing Files): Add cross
17042         reference to explain mode argument.
17043
17044 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
17045
17046         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
17047         * sysdeps/x86_64/memset_chk.S: Likewise.
17048
17049 2012-04-07  David S. Miller  <davem@davemloft.net>
17050
17051         * elf/elf.h (R_SPARC_WDISP10): Define.
17052         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
17053         R_SPARC_SIZE32.
17054         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
17055         R_SPARC_SIZE64 and R_SPARC_H34.
17056
17057 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
17058
17059         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
17060         conditions and remove no longer applicable assertion.
17061
17062 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17063
17064         * bits/byteswap.h: Include <features.h>.
17065         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
17066         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
17067
17068 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
17069
17070         * bits/byteswap.h (__bswap_16): Removed.
17071         Include <bits/byteswap-16.h> to get __bswap_16.
17072         * sysdeps/i386/bits/byteswap.h: Likewise.
17073         * sysdeps/s390/bits/byteswap.h: Likewise.
17074         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17075         * bits/byteswap-16.h: New file.
17076         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17077         * sysdeps/s390/bits/byteswap-16.h: Likewise.
17078         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
17079         * string/Makefile (headers): Add bits/byteswap-16.h.
17080
17081 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
17082
17083         [BZ #13895]
17084         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
17085         extra indirection.
17086         * nss/Makefile (tests-static, tests): Add tst-nss-static.
17087         * nss/tst-nss-static.c: New.
17088
17089 2012-04-06  Robert Millan  <rmh@gnu.org>
17090
17091         [BZ #6486]
17092         * manual/llio.texi (File Position Primitive): lseek
17093         refers to WHENCE when it really means OFFSET.
17094
17095 2012-04-06  Andreas Jaeger  <aj@suse.de>
17096
17097         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
17098         strncmp declarations.
17099
17100         * abilist/libc.abilist: Add __poll and __ppoll.
17101
17102 2012-04-05  David S. Miller  <davem@davemloft.net>
17103
17104         * scripts/check-local-headers.sh: Accept a host triplet in the
17105         path matched by the exclude regexp.
17106
17107         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
17108         definition.
17109         * sysdeps/powerpc/powerpc32/dl-machine.h
17110         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
17111         * sysdeps/s390/s390-32/dl-machine.h
17112         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17113         * sysdeps/sparc/sparc32/dl-machine.h
17114         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17115         * sysdeps/sparc/sparc64/dl-machine.h
17116         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
17117
17118         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
17119         lazy binding.
17120         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
17121         undefined symbol errors.
17122
17123         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17124         DT_NEEDED entries.
17125
17126 2012-04-05  Michael Matz  <matz@suse.de>
17127
17128         [BZ #13592]
17129         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17130
17131 2012-04-05  Andreas Jaeger  <aj@suse.de>
17132
17133         [BZ #13908]
17134         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17135         comment.
17136
17137 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17138
17139         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17140         which ROUND is no valid rounding mode.
17141
17142 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17143
17144         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17145         read again.
17146         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17147
17148 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17149
17150         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17151         an exception using FPU order intentionally.
17152
17153 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17154
17155         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17156         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17157         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17158         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17159
17160 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17161
17162         [BZ #12340]
17163         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17164         EINVAL when BUFLEN is too smal.
17165
17166 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17167
17168         [BZ #13553]
17169         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17170         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17171
17172 2012-04-03  Andreas Jaeger  <aj@suse.de>
17173
17174         [BZ #13938]
17175         * manual/setjmp.texi (System V contexts): Fix sentence.
17176
17177         [BZ #13926]
17178         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17179         New macro for this case.
17180         [!__GNUC__] (__bswap_64): New inline function for this case.
17181         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17182         * bits/byteswap.h: Likewise.
17183         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17184         ull, guard with __GLIBC_HAVE_LONG_LONG.
17185
17186         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17187         __GLIBC_HAVE_LONG_LONG.
17188
17189         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17190         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17191
17192 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17193
17194         [BZ #13691]
17195         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17196         inptr and inend, rather than using last_ch.
17197
17198 2012-04-02  David S. Miller  <davem@davemloft.net>
17199
17200         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17201         * stdio-common/printf-parse.h (read_int): Change return type to
17202         'int', return -1 on INT_MAX overflow.
17203         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17204         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17205         overflows INT_MAX.  Check for overflow of in-format-string precision
17206         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17207         SIZE_MAX not INT_MAX for integer overflow test.
17208         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17209         skip the construct in the format string but do not record anything.
17210         * stdio-common/bug22.c: Adjust to test both width/prevision
17211         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17212         explicitly for proper errno values.
17213
17214 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17215
17216         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17217         CHAR_MAX.
17218         * string/test-strcmp.c [! WIDE]: Likewise.
17219         * time/tst-mktime2.c: Likewise for INT_MAX.
17220         * string/test-string.h: #include <sys/param.h> for MIN.
17221
17222         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17223         * sysdeps/i386/init-first.c (init): Likewise.
17224         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17225         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17226         * sysdeps/sh/init-first.c (init): Likewise.
17227
17228 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17229
17230         * po/ru.po: Update from translation team.
17231         * po/vi.po: Likewise.
17232
17233 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17234
17235         * resolv/nss_dns/dns-host.c: Merge copyright years.
17236
17237 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17238
17239         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17240         Optimize memcpy with prefetch if
17241         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17242         src, dst pointers have unequal 16 byte alignments.
17243
17244 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17245
17246         [BZ #13928]
17247         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17248         from a CNAME entry and return the minimum ttl for the query.
17249         (gaih_getanswer_slice): Likewise.
17250
17251 2012-03-30  Jeff Law  <law@redhat.com>
17252
17253         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17254         due to long keys.
17255         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17256         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17257
17258         * resolv/nss_dns/dns-host.c: Update copyright year.
17259
17260 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17261
17262         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17263         requests to save a system call.  Fix check that all bytes are sent.
17264
17265         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17266         comments for sendmmsg.
17267
17268 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17269
17270         [BZ #13691]
17271         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17272         with only 1 character between 0x0041 and 0x01b0.
17273         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17274         * wcsmbs/tst-mbsnrtowcs.c: New file.
17275
17276 2012-03-29  David S. Miller  <davem@davemloft.net>
17277
17278         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17279         small copies by hand.
17280
17281 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17282
17283         [BZ #13761]
17284         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17285         _nss_compat_initgroups_dyn): Fall back to malloc/free
17286         for large group memberships.
17287
17288 2012-03-28  David S. Miller  <davem@davemloft.net>
17289
17290         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17291         that branches into memcpy.
17292         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17293         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17294         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17295         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17296         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17297         bits.
17298         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17299         implementation too.
17300         * sysdeps/sparc/mempcpy.S: New file.
17301
17302         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17303         the IFUNC routine in the libc case.
17304         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17305
17306         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17307         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17308         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17309         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17310         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17311         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17312         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17313         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17314
17315         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17316         loop to 256 bytes instead of 64 bytes and fix test signedness.
17317
17318         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17319         * sysdeps/sparc/sparc32/Makefile: rather than here...
17320         * sysdeps/sparc/sparc64/Makefile: and here.
17321
17322 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17323
17324         * malloc/mallocbug.c: Avoid warnings about unused variables.
17325
17326 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17327
17328         [BZ #13760]
17329         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17330         in the right place. Discard and retry query if response is
17331         larger than input buffer size.
17332
17333 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17334
17335         [BZ #369]
17336         [BZ #2678]
17337         [BZ #3866]
17338         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17339         x for large integer exponent.
17340         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17341         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
17342         sign of result as needed afterwards.
17343         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
17344         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
17345         result for underflowing pow the same as for overflow.
17346         (__kernel_standard_l): Handle powl overflow and underflow here
17347         rather than calling __kernel_standard.
17348         * math/libm-test.inc (pow_test): Add more tests.
17349
17350         [BZ #3868]
17351         [BZ #13879]
17352         [BZ #13910]
17353         [BZ #13911]
17354         [BZ #13912]
17355         [BZ #13913]
17356         [BZ #13915]
17357         [BZ #13916]
17358         [BZ #13917]
17359         [BZ #13918]
17360         [BZ #13919]
17361         [BZ #13920]
17362         [BZ #13921]
17363         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
17364         * sysdeps/ieee754/k_standard.c: Include <float.h>.
17365         (__kernel_standard_l): New function.
17366         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
17367         __kernel_standard.
17368         * math/w_acosl.c (__acosl): Likewise.
17369         * math/w_asinl.c (__asinl): Likewise.
17370         * math/w_atan2l.c (__atan2l): Likewise.
17371         * math/w_atanhl.c (__atanhl): Likewise.
17372         * math/w_coshl.c (__coshl): Likewise.
17373         * math/w_exp10l.c (__exp10l): Likewise.
17374         * math/w_exp2l.c (__exp2l): Likewise.
17375         * math/w_fmodl.c (__fmodl): Likewise.
17376         * math/w_hypotl.c (__hypotl): Likewise.
17377         * math/w_j0l.c (__j0l, __y0l): Likewise.
17378         * math/w_j1l.c (__j1l, __y1l): Likewise.
17379         * math/w_jnl.c (__jnl, __ynl): Likewise.
17380         * math/w_lgammal.c (__lgammal): Likewise.
17381         * math/w_log10l.c (__log10l): Likewise.
17382         * math/w_log2l.c (__log2l): Likewise.
17383         * math/w_logl.c (__logl): Likewise.
17384         * math/w_powl.c (__powl): Likewise.
17385         * math/w_remainderl.c (__remainderl): Likewise.
17386         * math/w_scalbl.c (sysv_scalbl): Likewise.
17387         * math/w_sinhl.c (__sinhl): Likewise.
17388         * math/w_sqrtl.c (__sqrtl): Likewise.
17389         * math/w_tgammal.c (__tgammal): Likewise.
17390         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
17391         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
17392         * math/libm-test.inc (acos_test): Add more tests.
17393         (acosh_test): Likewise.
17394         (asin_test): Likewise.
17395         (atanh_test): Likewise.
17396         (exp_test): Likewise.
17397         (exp10_test): Likewise.
17398         (exp2_test): Likewise.
17399         (expm1_test): Likewise.
17400         (lgamma_test): Likewise.
17401         (log_test): Likewise.
17402         (log10_test): Likewise.
17403         (log1p_test): Likewise.
17404         (log2_test): Likewise.
17405         (pow_test): Do not allow some spurious overflow exceptions.
17406         (sqrt_test): Add more tests.
17407         (tgamma_test): Likewise.
17408         (y0_test): Likewise.
17409         (y1_test): Likewise.
17410         (yn_test): Likewise.
17411
17412 2012-03-27  Anton Blanchard  <anton@samba.org>
17413
17414         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
17415         MAP_HUGETLB.
17416         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17417         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17418         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17419
17420 2012-03-27  David S. Miller  <davem@davemloft.net>
17421
17422         * conform/Makefile: Run run-conformtest.sh using $(BASH).
17423
17424         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
17425         have-as-vis3 check.
17426
17427 2012-03-27  Andreas Jaeger  <aj@suse.de>
17428
17429         * sysdeps/x86_64/elf/configure.in: Moved to ...
17430         * sysdeps/x86_64/configure.in: ... here.
17431         * sysdeps/x86_64/elf/start.S: Moved to ...
17432         * sysdeps/x86_64/start.S: ... here.
17433         * sysdeps/x86_64/elf/configure: Delete.
17434
17435         * sysdeps/x86_64/configure.in: Merge contents from
17436         sysdeps/i386/configure.in (without i686 check).
17437
17438         * sysdeps/i386/elf/Versions: Merge into ...
17439         * sysdeps/i386/Versions: ... this.
17440         * sysdeps/i386/elf/Versions: Delete file.
17441         * sysdeps/i386/elf/start.S: Moved to ...
17442         * sysdeps/i386/start.S: ...here.
17443         * sysdeps/i386/elf/configure.in: Merge into...
17444         * sysdeps/i386/configure.in: ...here.
17445         * sysdeps/i386/elf/configure.in: Delete file.
17446         * sysdeps/i386/elf/configure: Delete file.
17447
17448         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
17449         * debug/backtracesyms.c: ... here.
17450         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
17451         * debug/backtracesymsfd.c: ... here.
17452         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
17453         * sysdeps/generic/ifunc-sel.h: ... here.
17454
17455         * sysdeps/unix/i386/start.c: Delete file.
17456         * sysdeps/unix/sparc/start.c: Delete file.
17457         * sysdeps/unix/start.c: Delete file.
17458
17459         * sysdeps/sh/elf/configure.in: Moved to ...
17460         * sysdeps/sh/configure.in: ... here.
17461         * sysdeps/sh/elf/start.S: Moved to ...
17462         * sysdeps/sh/start.S: ... here.
17463         * sysdeps/sh/elf/configure: Delete file.
17464
17465         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
17466         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
17467         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
17468         * sysdeps/powerpc/powerpc64/entry.h: ... here.
17469         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
17470         * sysdeps/powerpc/powerpc64/start.S: here.
17471         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
17472         * sysdeps/powerpc/powerpc64/Makefile: ... this.
17473         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
17474         * sysdeps/powerpc/powerpc64/configure.in: ... this.
17475         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
17476
17477         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
17478         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
17479         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
17480         * sysdeps/powerpc/powerpc32/start.S: ... here.
17481         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
17482         * sysdeps/powerpc/powerpc32/configure.in: ... this.
17483         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
17484
17485         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
17486         * sysdeps/powerpc/ifunc-sel.h: ... here.
17487         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
17488         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
17489
17490         * sysdeps/sparc/elf/configure.in: Moved to ...
17491         * sysdeps/sparc/configure.in: ... here.
17492         * sysdeps/sparc/elf/configure: Delete file.
17493         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
17494         * sysdeps/sparc/sparc32/start.S: ... here.
17495         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
17496         * sysdeps/sparc/sparc64/start.S: ... here.
17497         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
17498         * sysdeps/sparc/sparc32/Makefile: ... this.
17499         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
17500         * sysdeps/sparc/sparc64/Makefile: ... this.
17501
17502         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
17503         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
17504         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
17505         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
17506         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
17507         * sysdeps/s390/s390-32/setjmp.S: ... here.
17508         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
17509         * sysdeps/s390/s390-32/configure.in: ... here.
17510         * sysdeps/s390/s390-32/elf/configure: Delete file.
17511         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
17512         * sysdeps/s390/s390-32/start.S: ... here.
17513
17514         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
17515         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
17516         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
17517         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
17518         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
17519         * sysdeps/s390/s390-64/setjmp.S: ... here.
17520         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
17521         * sysdeps/s390/s390-64/configure.in: ... here
17522         * sysdeps/s390/s390-64/elf/configure: Delete file.
17523         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
17524         * sysdeps/s390/s390-64/start.S: ... here.
17525         * sysdeps/s390/s390-64/elf/configure: Delete.
17526
17527         * configure.in: Remove support for elf directories in sysdeps.
17528
17529         * configure: Regenerated.
17530         * sysdeps/i386/configure: Regenerated.
17531         * sysdeps/powerpc/powerpc32/configure: Regenerated.
17532         * sysdeps/powerpc/powerpc64/configure: Regenerated.
17533         * sysdeps/s390/s390-32/configure: Regenerated.
17534         * sysdeps/s390/s390-64/configure: Regenerated.
17535         * sysdeps/sh/configure: Regenerated.
17536         * sysdeps/sparc/configure: Regenerated.
17537         * sysdeps/x86_64/configure: Regenerated.
17538
17539 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
17540
17541         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17542
17543         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
17544         denormal result into account.
17545
17546 2012-03-25  Roland McGrath  <roland@hack.frob.com>
17547
17548         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
17549         Reported by Allan McRae <allan@archlinux.org>.
17550
17551 2012-03-23  Jeff Law  <law@redhat.com>
17552
17553         * nss/getnssent.c (__nss_getent): Fix typo.
17554
17555 2012-03-23  David S. Miller  <davem@davemloft.net>
17556
17557         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17558
17559 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
17560
17561         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
17562         to pad to uint64_t for each field.
17563         (dl_tls_index): Replace unsigned long with uint64_t.
17564
17565 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
17566         Paul Pluzhnikov  <ppluzhnikov@google.com>
17567
17568         [BZ #6528]
17569         * grp/Makefile (otherlibs): Don't set it.
17570         * inet/Makefile (otherlibs): Likewise.
17571         * login/Makefile (otherlibs): Likewise.
17572         * nscd/Makefile (otherlibs): Likewise.
17573         * posix/Makefile (otherlibs): Likewise.
17574         * pwd/Makefile (otherlibs): Likewise.
17575         * rt/Makefile (otherlibs): Likewise.
17576         * sunrpc/Makefile (otherlibs): Likewise.
17577         * nss/Makefile (otherlibs): Likewise.
17578         Add libnss_files to routines and static-only-routines.
17579         ($(objpfx)getent): Remove rule.
17580         * resolv/Makefile: Add libnss_dns and libresolv to routines and
17581         static-only-routines.
17582
17583 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17584
17585         [BZ #13892]
17586         * math/s_cexp.c: Include <float.h>.
17587         (__cexp): Handle exp result overflowing not necessarily
17588         overflowing both real and imaginary parts of result.
17589         * math/s_cexpf.c: Likewise.
17590         * math/s_cexpl.c: Likewise.
17591         * math/libm-test.inc (cexp_test): Add more tests.
17592         * sysdeps/i386/fpu/libm-test-ulps: Update.
17593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17594
17595 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17596
17597         * include/link.h (ELFW): New macro.
17598         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
17599         Replace ELF64_R_TYPE with ELFW(R_TYPE).
17600
17601 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17602
17603         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
17604         with uint64_t.
17605
17606 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17607
17608         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
17609         declaration.
17610         (struct La_x32_retval): Likewise.
17611
17612 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17613
17614         * sysdeps/x86_64/preconfigure.in: New file.
17615         * sysdeps/x86_64/preconfigure: New generated file.
17616
17617 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17618
17619         [BZ #13824]
17620         * math/e_exp2l.c: Include <float.h>.
17621         (__ieee754_exp2l): Handle overflow and underflow cases
17622         separately.  Only pass fractional part of argument to
17623         __ieee754_expl.
17624         * math/libm-test.inc (exp2_test): Add more tests.
17625
17626         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
17627         negating x to take absolute value.
17628         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17629         Likewise.
17630         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
17631         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17632         Likewise.
17633         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
17634         computing low part if x was negated.
17635         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17636
17637 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17638
17639         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
17640         la_x32_gnu_pltexit.
17641         (pltexit): Cast int_retval to ptrdiff_t.
17642         * elf/tst-auditmod3b.c: Likewise.
17643         * elf/tst-auditmod4b.c: Likewise.
17644         * elf/tst-auditmod5b.c: Likewise.
17645         * elf/tst-auditmod6b.c: Likewise.
17646         * elf/tst-auditmod6c.c: Likewise.
17647         * elf/tst-auditmod7b.c: Likewise.
17648
17649         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
17650         and x32_gnu_pltexit.
17651
17652         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
17653         __ELF_NATIVE_CLASS.
17654         (La_x32_regs): New macro.
17655         (La_x32_retval): Likewise.
17656         (la_x32_gnu_pltenter): New function prototype.
17657         (la_x32_gnu_pltexit): Likewise.
17658
17659 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
17660
17661         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
17662         exponent.
17663
17664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17665
17666         * configure.in (libc_cv_cc_nofma): Check for option to disable
17667         generation of FMA instructions.
17668         * configure: Regenerate.
17669         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
17670         * sysdeps/ieee754/dbl-64/Makefile: New file.
17671         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17672         Remove brandred-fma4.
17673         (CFLAGS-brandred-fma4.c): Remove.
17674         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
17675         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
17676         define.
17677         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
17678         define.
17679
17680 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17681
17682         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
17683         LLONG_MAX != LONG_MAX.
17684         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17685         (_fitoa_word): Likewise.
17686         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
17687         LLONG_MAX != LONG_MAX.
17688         * stdio-common/_itowa.h: Include <_itoa.h>.
17689         (_itowa_word): Use _ITOA_WORD_TYPE on value.
17690         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
17691         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
17692         only if not defined.
17693         (_ITOA_WORD_TYPE): Likewise.
17694         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17695         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
17696
17697 2012-03-21  David S. Miller  <davem@davemloft.net>
17698
17699         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17700
17701 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17702
17703         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
17704         of x86_64 when setting libc_cv_slibdir, libdir and
17705         libc_cv_localedir.
17706         * sysdeps/unix/sysv/linux/configure: Regenerated.
17707
17708 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17709
17710         * manual/lang.texi (Old Varargs): Remove section.
17711         (How Variadic): Update menu.
17712         (va_start): Do not mention varargs.h.
17713
17714 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17715             Joseph Myers  <joseph@codesourcery.com>
17716
17717         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
17718         link test.
17719         * configure: Regenerated.
17720
17721 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17722
17723         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
17724         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
17725         conformtest.pl
17726
17727 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17728
17729         * NOTES: Remove.
17730         * Makefile (files-for-dist): Remove NOTES.
17731         (NOTES): Remove rule.
17732         * README: Don't refer to NOTES.
17733         * manual/creature.texi: Don't include macros.texi.
17734         * manual/intro.texi (creature.texi): Remove comment referring to
17735         NOTES.
17736
17737         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
17738         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
17739         * configure: Regenerated.
17740         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
17741         LIBC_TRY_CC_OPTION.
17742         (libc_cv_as_i686): Likewise.
17743         (libc_cv_cc_avx): Likewise.
17744         (libc_cv_cc_sse2avx): Likewise.
17745         (libc_cv_cc_fma4): Likewise.
17746         (libc_cv_cc_novzeroupper): Likewise.
17747         * sysdeps/i386/configure: Regenerated.
17748
17749         [BZ #13883]
17750         * sysdeps/i386/fpu/s_cexp.S: Remove.
17751         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
17752         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
17753         * math/libm-test.inc (cexp_test): Add more tests.
17754         * sysdeps/i386/fpu/libm-test-ulps: Update.
17755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17756
17757 2012-03-21  Allan McRae  <allan@archlinux.org>
17758
17759         * timezone/Makefile: Do not install iso3166.tab and zone.tab
17760
17761 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17762
17763         [BZ #13871]
17764         * math/w_exp2.c: Do not include <float.h>.
17765         (o_threshold, u_threshold): Remove.
17766         (__exp2): Calculate result before checking finiteness and calling
17767         __kernel_standard.
17768         * math/w_exp2f.c: Likewise.
17769         * math/w_exp2l.c: Likewise.
17770         * math/libm-test.inc (exp2_test): Require overflow exception for
17771         1e6 input.
17772
17773         [BZ #3866]
17774         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
17775         range of signed 64-bit integers before using fistpll.  Remove
17776         checks for whether integers fit in mantissa bits.
17777         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
17778         the range of signed 32-bit integers before using fistpl.  Remove
17779         checks for whether integers fit in mantissa bits.
17780         * sysdeps/i386/fpu/e_powl.S (p64): New object.
17781         (__ieee754_powl): Test for y outside the range of signed 64-bit
17782         integers before using fistpll.  Reduce 64-bit values to 63-bit
17783         ones as needed.
17784         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
17785         divide-by-zero is raised for zero to large negative powers.
17786         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
17787         (__ieee754_powl): Test for y outside the range of signed 64-bit
17788         integers before using fistpll.  Reduce 64-bit values to 63-bit
17789         ones as needed.
17790         * math/libm-test.inc (pow_test): Add more tests.
17791
17792 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17793
17794         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
17795         <stdio-common/_itoa.h>.
17796         * debug/segfault.c: Likewise.
17797         * elf/dl-cache.c: Likewise.
17798         * elf/dl-minimal.c: Likewise.
17799         * elf/dl-misc.c: Likewise.
17800         * elf/dl-sysdep.c: Likewise.
17801         * elf/dl-version.c: Likewise.
17802         * elf/rtld.c: Likewise.
17803         * hurd/hurdsock.c: Likewise.
17804         * hurd/lookup-retry.c: Likewise.
17805         * malloc/malloc.c: Likewise.
17806         * malloc/mtrace.c: Likewise.
17807         * nscd/nscd_getgr_r.c: Likewise.
17808         * nscd/nscd_getpw_r.c: Likewise.
17809         * nscd/nscd_getserv_r.c: Likewise.
17810         * posix/getopt_init.c: Likewise.
17811         * posix/wordexp.c: Likewise.
17812         * stdio-common/_itoa.c: Likewise.
17813         * stdio-common/printf_fphex.c: Likewise.
17814         * stdio-common/vfprintf.c: Likewise.
17815         * string/_strerror.c: Likewise.
17816         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
17817         * sysdeps/i386/i686/hp-timing.h: Likewise.
17818         * sysdeps/mach/_strerror.c: Likewise.
17819         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
17820         * sysdeps/mach/hurd/sethostid.c: Likewise.
17821         * sysdeps/mach/hurd/xmknodat.c: Likewise.
17822         * sysdeps/mach/xpg-strerror.c: Likewise.
17823         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
17824         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
17825         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
17826         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
17827         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
17828         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
17829         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
17830         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
17831         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
17832         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
17833         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
17834         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
17835         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
17836         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17837         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17838         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
17839         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
17840         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
17841         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
17842         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
17843         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
17844
17845         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
17846
17847         * stdio-common/_itoa.h: Moved to ...
17848         * sysdeps/generic/_itoa.h: Here.
17849
17850         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
17851
17852         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
17853         instead of "_itoa.h" and "_itowa.h".
17854         * stdio-common/vfprintf.: Likewise.
17855
17856 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17857
17858         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
17859         <bits/wordsize.h>.
17860         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
17861         (__signbit): Likwise.
17862         (llrintf): Likwise.
17863         (llrint): Likwise.
17864
17865 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17866
17867         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
17868         __WORDSIZE != 64.
17869
17870 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
17871
17872         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
17873         OVERFLOW_EXCEPTION_OK.
17874         * math/libm-test.inc ("Philosophy"): Update comment about
17875         exception testing.
17876         (OVERFLOW_EXCEPTION): Define.
17877         (OVERFLOW_EXCEPTION_OK): Likewise.
17878         (INVALID_EXCEPTION_OK): Renumber.
17879         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17880         (IGNORE_ZERO_INF_SIGN): Likewise.
17881         (test_exceptions): Handle FE_OVERFLOW.
17882         (exp10_test): Expect overflow exceptions.
17883         (exp2_test): Likewise.
17884         (expm1_test): Likewise.
17885         (nextafter_test): Likewise.
17886         (pow_test): Likewise.
17887         (scalbn_test): Likewise.
17888         (scalbln_test): Likewise.
17889
17890 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17891
17892         * sysdeps/x86_64/bits/atomic.h
17893         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
17894         64bit integer.
17895         (atomic_exchange_acq): Likewise.
17896         (__arch_exchange_and_add_body): Likewise.
17897         (__arch_add_body): Likewise.
17898         (atomic_add_negative): Likewise.
17899         (atomic_add_zero): Likewise.
17900
17901 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17902
17903         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
17904         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
17905
17906 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17907
17908         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
17909         Check __x86_64__ instead of __WORDSIZE.
17910
17911 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17912
17913         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
17914
17915 2012-03-19  David S. Miller  <davem@davemloft.net>
17916
17917         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17918
17919         * sysdeps/sparc/fpu/fenv_private.h: New file.
17920         * sysdeps/sparc/fpu/math_private.h: Use it.
17921         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
17922         Remove.
17923         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
17924         (libc_feholdexcept_setroundl): Remove.
17925         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
17926         Remove.
17927         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
17928         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
17929
17930 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17931
17932         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
17933         int64_t instead of long int.
17934         (INSERT_WORDS64): Likwise.
17935
17936 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17937
17938         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
17939         _Unwind_GetCFA return to _Unwind_Ptr first.
17940
17941 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
17942
17943         [BZ #13629]
17944         * math/s_clog.c: Include <float.h>.
17945         (__clog): Scale large or subnormal inputs.
17946         * math/s_clogf.c: Likewise.
17947         * math/s_clogl.c: Likewise.
17948         * math/s_clog10.c: Include <float.h>.
17949         (M_LOG10_2): Define.
17950         (__clog10): Scale large or subnormal inputs.
17951         * math/s_clog10f.c: Likewise.
17952         * math/s_clog10l.c: Likewise.
17953         * math/libm-test.inc (clog_test): Add more tests.
17954         (clog10_test): Likewise.
17955         * sysdeps/i386/fpu/libm-test-ulps: Update.
17956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17957
17958         [BZ #11451]
17959         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
17960         x and y.
17961         * math/libm-test.inc (atan2_test): Add another test.
17962
17963         * Makerules (common-objdir-compile): Remove.
17964         * sysdeps/unix/Makefile (config-generated): Do not add
17965         $(unix-generated) to variable.
17966         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
17967         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
17968         Remove rule.
17969         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
17970         Likewise.
17971         [generic bits/local_lim.h] (before-compile): Do not append to
17972         variable.
17973         [generic bits/local_lim.h] (common-generated): Likewise.
17974         [generic sys/param.h] (before-compile): Do not append to variable.
17975         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
17976         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
17977         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
17978         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
17979         include.
17980         [generic sys/param.h] (sys/param.h-includes): Remove variable.
17981         [generic sys/param.h] (sys/param.h-includes): Remove rule.
17982         [generic sys/param.h] ($(addprefix
17983         $(common-objpfx),$(sys/param.h-includes))): Likewise.
17984         [generic sys/param.h] (common-generated): Do not append to
17985         variable.
17986         [generic sys/param.h] (sysdep_headers): Likewise.
17987         [generic bits/errno.h] (before-compile): Do not append to
17988         variable.
17989         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
17990         rule.
17991         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
17992         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
17993         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
17994         [generic bits/errno.h] (common-generated): Do not append to
17995         variable.
17996         [generic bits/ioctls.h] (before-compile): Do not append to
17997         variable.
17998         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
17999         rule.
18000         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
18001         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
18002         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
18003         rule.
18004         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
18005         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
18006         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
18007         [generic bits/ioctls.h] (common-generated): Do not append to
18008         variable.
18009         [generic sys/syscall.h] (syscall.h): Remove variable.
18010         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
18011         rule.
18012         [generic sys/syscall.h] (before-compile): Do not append to
18013         variable.
18014         [generic sys/syscall.h] (common-generated): Likewise.
18015         * sysdeps/unix/errnos-tmpl.c: Remove file.
18016         * sysdeps/unix/errnos.awk: Likewise.
18017         * sysdeps/unix/ioctls-tmpl.c: Likewise.
18018         * sysdeps/unix/ioctls.awk: Likewise.
18019         * sysdeps/unix/mk-local_lim.c: Likewise.
18020         * sysdeps/unix/snarf-ioctls: Likewise.
18021
18022 2012-03-19  Richard Henderson  <rth@twiddle.net>
18023
18024         * sysdeps/i386/fpu/fenv_private.h: New file.
18025         * sysdeps/i386/fpu/math_private.h: Use it.
18026         (math_opt_barrier, math_force_eval): Remove.
18027         (libc_feholdexcept_setround_53bit): Remove.
18028         (libc_feupdateenv_53bit): Remove.
18029         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18030         (math_opt_barrier, math_force_eval): Remove.
18031         (libc_feholdexcept): Remove.
18032         (libc_feholdexcept_setround): Remove.
18033         (libc_fetestexcept, libc_fesetenv): Remove.
18034         (libc_feupdateenv_test): Remove.
18035         (libc_feupdateenv, libc_feholdsetround): Remove.
18036         (libc_feresetround): Remove.
18037
18038         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
18039         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
18040
18041         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
18042         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
18043         (libc_feupdateenv_testl): New.
18044         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
18045         (libc_feupdateenv_testf): New.
18046         (libc_feupdateenv): Use libc_feupdateenv_test.
18047         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
18048         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
18049
18050         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
18051         (libc_feholdsetroundf, libc_feholdsetroundl): New.
18052         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
18053         (libc_feresetround_noex): New.
18054         (libc_feresetround_noexf): New.
18055         (libc_feresetround_noexl): New.
18056         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
18057         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
18058         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
18059         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
18060         SET_RESTORE_ROUND.
18061         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18062         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
18063         (__cos): Likewise.
18064         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
18065         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
18066         SET_RESTORE_ROUND_NOEX.
18067         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
18068         SET_RESTORE_ROUND_NOEXF.
18069         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
18070         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
18071         (libc_feholdsetroundf): New.
18072         (libc_feresetround, libc_feresetroundf): New.
18073
18074         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
18075         (libc_feholdexcept_setround_53bit): Convert from macro to function.
18076         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
18077
18078         * sysdeps/generic/math_private.h: Include <fenv.h>.
18079         (default_libc_feholdexcept): New.
18080         (default_libc_feholdexcept_setround): New.
18081         (default_libc_fesetenv, default_libc_feupdateenv): New.
18082         (libc_feholdexcept): Only define if undefined.
18083         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
18084         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
18085         (libc_feholdexcept_setroundl): Likewise.
18086         (libc_feholdexcept_setround_53bit): Likewise.
18087         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
18088         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
18089         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
18090         (libc_feupdateenv_53bit): Likewise.
18091         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
18092         (libc_feholdexcept): Convert from macro to inline function.
18093         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
18094         (libc_fesetenv, libc_feupdateenv): Likewise.
18095
18096         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
18097         not previously defined.
18098         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
18099         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
18100         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
18101         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
18102         * sysdeps/ieee754/flt-32/math_private.h: New file.
18103         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
18104         math_private.h below SET_FLOAT_WORD.
18105         (__isnan, __isinf_ns, __finite): Remove.
18106         (__isnanf, __isinf_nsf, __finitef): Remove.
18107
18108 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
18109
18110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18111
18112 2012-03-17  David S. Miller  <davem@davemloft.net>
18113
18114         [BZ #6471]
18115         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
18116         for 2.16.
18117
18118 2012-03-16  David S. Miller  <davem@davemloft.net>
18119
18120         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
18121         warnings.
18122
18123         [BZ #6471]
18124         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18125         properly.
18126         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18127         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18128         sysdep_routines when subdir is sysvipc.
18129         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18130         __getshmlba helper.
18131
18132         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18133
18134 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18135
18136         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18137         [__LP64__].
18138
18139 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18140
18141         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18142         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18143         (__lround): Renamed to ...
18144         (__llround): This.  Replace long int with long long int.
18145         Define lround functions as aliases of llround functions.
18146         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18147
18148 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18149
18150         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18151         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18152         adresses to uintptr_t.  Replace "long int" and "unsigned long
18153         int" with "greg_t" on va_arg.
18154
18155 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18156
18157         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18158         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18159
18160         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18161         Move e_machine check before EI_CLASS check.  Handle x32
18162         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18163         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18164         SKIP_EM_IA_64 and include
18165         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18166
18167         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18168         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18169         (add_system_dir): New macro.
18170
18171         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18172         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18173
18174 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18175
18176         [BZ #2551]
18177         [BZ #2552]
18178         [BZ #2553]
18179         [BZ #2554]
18180         [BZ #2562]
18181         [BZ #2563]
18182         [BZ #2565]
18183         [BZ #2566]
18184         [BZ #2576]
18185         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18186         (y0): Likewise.
18187         * math/w_j0f.c (j0f): Likewise.
18188         (y0f): Likewise.
18189         * math/w_j0l.c (__j0l): Likewise.
18190         (__y0l): Likewise.
18191         * math/w_j1.c (j1): Likewise.
18192         (y1): Likewise.
18193         * math/w_j1f.c (j1f): Likewise.
18194         (y1f): Likewise.
18195         * math/w_j1l.c (__j1l): Likewise.
18196         (__y1l): Likewise.
18197         * math/w_jn.c (jn): Likewise.
18198         (yn): Likewise.
18199         * math/w_jnf.c (jnf): Likewise.
18200         (ynf): Likewise.
18201         * math/w_jnl.c (__jnl): Likewise.
18202         (__ynl): Likewise.
18203         * math/libm-test.inc (j0_test): Add more tests.
18204         (j1_test): Likewise.
18205         (jn_test): Likewise.  Add trailing semicolon to existing test.
18206         (y0_test): Likewise.
18207         (y1_test): Likewise.
18208         * sysdeps/i386/fpu/libm-test-ulps: Update.
18209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18210
18211         [BZ #13851]
18212         [BZ #13854]
18213         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18214         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18215         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18216         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18217         (__tanl): Set errno for infinite argument.
18218         * sysdeps/i386/fpu/mptan.c: Remove.
18219         * sysdeps/i386/fpu/s_tan.S: Likewise.
18220         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18221         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18222         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18223         * math/libm-test.inc (tan_test): Add more tests and enable more
18224         tests for double and long double.
18225         * sysdeps/i386/fpu/libm-test-ulps: Update.
18226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18227
18228 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18229
18230         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18231         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18232
18233 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18234
18235         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18236         * configure.in: Use it for both main tree and add-ons.
18237         * configure: Regenerated.
18238
18239 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18240
18241         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18242
18243 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18244
18245         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18246         in comment.
18247
18248         [BZ #13851]
18249         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18250         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18251         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18252         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18253         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18254         infinite argument.
18255         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18256         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18257         != 0 for prec == 2.
18258         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18259         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18260         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18261         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18262         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18263         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18264         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18265         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18266         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18267         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18268         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18269         * math/libm-test.inc (cos_test): Add more tests and enable more
18270         tests for long double.
18271         (sin_test): Likewise.
18272         (sincos_test): Likewise.
18273         * sysdeps/i386/fpu/libm-test-ulps: Update.
18274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18275
18276 2012-03-16  David S. Miller  <davem@davemloft.net>
18277
18278         * sysdeps/sparc/fpu/math_private.h: New file.
18279
18280 2012-03-15  David S. Miller  <davem@davemloft.net>
18281
18282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18283         file.
18284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18286         file.
18287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18288         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18289         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18290         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18291         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18292         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18293         sysdep routines.
18294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18295
18296         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18297         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18298
18299         * sysdeps/sparc/sparc-ifunc.h: New file.
18300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18301         sparc-ifunc.h
18302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18304         Likewise.
18305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18306         Likewise.
18307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18311         Likewise.
18312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18317         Likewise.
18318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18319         Likewise.
18320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18324         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18325         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18326         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18327         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18328         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18329         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18330         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18331         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18332         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18333         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18334         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18335         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18336         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18337         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18338         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18339         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18340         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18341         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
18342         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
18343         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
18344
18345 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18346
18347         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
18348         scaling.
18349         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18350
18351 2012-03-15  Andreas Jaeger  <aj@suse.de>
18352
18353         [BZ #13852]
18354         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
18355         ieee754/flt-32 implementation for sin, cos and sincos.
18356         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
18357         * sysdeps/i386/fpu/s_cosf.S: Likewise.
18358         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
18359         * sysdeps/i386/fpu/s_sinf.S: Likewise.
18360         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
18361         ieee754/flt-32 implementation for tan.
18362
18363         * math/libm-test.inc (cos_test): Enable some large input tests for
18364         float as well
18365         (sin_test): Likewise.
18366         (sincos_test): Likewise.
18367         (tan_test): Add tests for large input.
18368
18369         * sysdeps/i386/fpu/libm-test-ulps: Update.
18370
18371 2012-03-15  Andreas Jaeger  <aj@suse.de>
18372
18373         [BZ #13658]
18374         * math/libm-test.inc (cos_test): Add more test cases.
18375         (sin_test): Likewise.
18376         (sincos_test): Likewise.
18377
18378 2012-03-15  Andreas Jaeger  <aj@suse.de>
18379
18380         [BZ #13837]
18381         * math/libm-test.inc (cos_test): Add a test case for large input
18382         value.
18383         (sin_test): Likewise.
18384         (sincos_test): Likewise.
18385
18386 2012-03-15  Andreas Jaeger  <aj@suse.de>,
18387         Joseph Myers  <joseph@codesourcery.com>
18388
18389         [BZ #13658]
18390         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
18391         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
18392         * sysdeps/i386/fpu/branred.c: Likewise.
18393         * sysdeps/i386/fpu/dosincos.c: Likewise.
18394         * sysdeps/i386/fpu/mpa.c: Likewise.
18395         * sysdeps/i386/fpu/s_cos.S: Likewise.
18396         * sysdeps/i386/fpu/s_sin.S: Likewise.
18397         * sysdeps/i386/fpu/s_sincos.S: Likewise.
18398         * sysdeps/i386/fpu/sincos32.c: Likewise.
18399
18400         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
18401         Define.
18402         (libc_feupdateenv_53bit): Define.
18403         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
18404         Define.
18405         (libc_feupdateenv_53bit): Define.
18406
18407         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
18408         53 bit (without extend i386 double precision).
18409
18410         * math/libm-test.inc (sincos_test): Add tests for large input.
18411         (sin): Likewise.
18412         (cos): Likewise.
18413
18414         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
18415
18416 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18417
18418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18419
18420 2012-03-15  David S. Miller  <davem@davemloft.net>
18421
18422         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
18423         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
18424         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
18425         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
18426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
18427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
18428         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
18429         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
18430         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
18431         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
18432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
18433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
18434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
18435         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
18436         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
18437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
18438         file.
18439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
18440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
18441         file.
18442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
18443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
18444         file.
18445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
18446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
18447         file.
18448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
18449         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
18450         fmin/fmax sysdep routines.
18451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18452
18453 2012-03-14  David S. Miller  <davem@davemloft.net>
18454
18455         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
18456         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
18457         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
18458         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
18459         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
18460         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
18461         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
18462         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
18463         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
18464         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
18465         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
18466         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
18467         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
18468         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
18469         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
18470         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
18471         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
18472         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
18473         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
18474         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
18475         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
18476         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
18477         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
18478         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
18479         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
18480         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
18481         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
18482         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
18483         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
18484         routines.
18485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
18486         file.
18487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
18488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
18489         file.
18490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
18491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
18492         file.
18493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
18494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
18495         file.
18496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
18497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
18498         file.
18499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
18500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
18501         file.
18502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
18503         file.
18504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
18505         file.
18506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
18507         file.
18508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
18509         New file.
18510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
18511         file.
18512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
18513         file.
18514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
18515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
18516         file.
18517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
18518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
18519         file.
18520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
18521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
18522         file.
18523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
18524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
18525         VIS3 routines.
18526
18527         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
18528         New file.
18529
18530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18531
18532         * sysdeps/sparc/configure.in: New file.
18533         * sysdeps/sparc/configure: Generate.
18534         * configure.in (libc_cv_sparc_as_vis3): Substitute.
18535         * configure: Regenerate.
18536         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
18537         * config.make.in (have-as-vis3): New.
18538         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
18539         available use -Av9d instead of -Av9a.
18540         * sysdeps/sparc/sparc64/Makefile: Likewise.
18541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
18542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
18543         New file.
18544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
18545         file.
18546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
18547         New file.
18548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
18549         file.
18550         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
18551         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
18552         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
18553         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
18554         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
18555
18556         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
18557         fzeros/fnegs to load 0x80000000 into a float register instead of
18558         using the stack.
18559         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
18560
18561 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18562
18563         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18564         bits/syscall.h.
18565         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
18566         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
18567         ($(inst_includedir)/bits/syscall.h): Remove rule.
18568         ($(objpfx)bits/syscall.d): Include instead of
18569         $(objpfx)syscall-list.d.
18570         (generated): Change syscall-list.h and syscall-list.d to
18571         bits/syscall.h and bits/syscall.d.
18572
18573 2012-03-14  Roland McGrath  <roland@hack.frob.com>
18574
18575         [BZ #13846]
18576         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
18577
18578 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18579
18580         [BZ #13841]
18581         * math/s_csqrt.c: Include <float.h>.
18582         (__csqrt): Scale large or subnormal inputs.
18583         * math/s_csqrtf.c: Likewise.
18584         * math/s_csqrtl.c: Likewise.
18585         * math/libm-test.inc (csqrt_test): Add more tests.
18586         * sysdeps/i386/fpu/libm-test-ulps: Update.
18587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18588
18589         [BZ #13840]
18590         * math/libm-test.inc (hypot_test): Add more tests.
18591
18592 2012-03-13  David S. Miller  <davem@davemloft.net>
18593
18594         [BZ #13840]
18595         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
18596         double-precision for the calculation instead of scaling.
18597
18598 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
18599
18600         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
18601         manipulate bits before adding and subtracting TWO52[sx].
18602         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
18603         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
18604         Likewise.
18605         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
18606
18607 2012-03-13  David S. Miller  <davem@davemloft.net>
18608
18609         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
18610         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
18611         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
18612         rtld-global-offsets.h
18613         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18614
18615         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
18616         large parameters.
18617
18618         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
18619
18620         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
18621         'err' in the ifdef scope in which it is actually used.
18622
18623         * nss/nss_db/db-init.c: Include string.h
18624
18625 2012-03-12  David S. Miller  <davem@davemloft.net>
18626
18627         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18628         masking out of the most significant byte of random value used.
18629         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18630         Fix coding style in previous change.
18631
18632         * sysdeps/unix/sysv/linux/kernel-features.h
18633         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
18634         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
18635         expression.
18636         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
18637         later.
18638
18639 2012-03-11  David S. Miller  <davem@davemloft.net>
18640
18641         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
18642         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
18643         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
18644         for 'resultvar' otherwise things get truncated on 64-bit.
18645
18646         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18647         Fix masking out of the most significant byte of random value used.
18648
18649         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18650
18651 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
18652
18653         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18654
18655 2012-03-09  David S. Miller  <davem@davemloft.net>
18656
18657         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
18658         variables with appropriate CPP guards.
18659         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
18660         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
18661         on resulting framesize and the management of the outregs buffer for pltexit.
18662         Preserve floating point return values across _dl_call_pltexit call.
18663         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
18664         framesize and the management of the outregs buffer for pltexit.
18665         Preserve floating point return values across _dl_call_pltexit
18666         call.
18667         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
18668         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
18669         (print_exit): Fix format string for return register value.
18670
18671 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
18672
18673         * sunrpc/Makefile (others): Add rpcgen.
18674         ($(objpfx)rpcgen): Remove special build rule and dependency on
18675         libc.
18676         * sunrpc/rpcgen.c: New file.
18677
18678 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
18679
18680         [BZ #13673]
18681         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
18682         * stdio-common/bug-vfprintf-nargs.c: Likewise.
18683         * sysdeps/i386/crti.S: Likewise.
18684         * sysdeps/i386/crtn.S: Likewise.
18685         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
18686         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
18687         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
18688         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
18689         * sysdeps/sh/crti.S: Likewise.
18690         * sysdeps/sh/crtn.S: Likewise.
18691         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
18692
18693         [BZ #13673]
18694         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
18695         with URL.
18696         * locale/programs/locfile-kw.gperf: Likewise.
18697         * locale/programs/charmap-kw.h: Regenerated.
18698         * locale/programs/locfile-kw.h: Likewise.
18699
18700         [BZ #13673]
18701         * intl/plural.y: Replace FSF snail mail address with URL.
18702         * intl/plural.c: Regenerated.
18703
18704 2012-03-09  Richard Henderson  <rth@twiddle.net>
18705
18706         * include/math_private.h: Remove file.
18707         * math/math_private.h: Move file ...
18708         * sysdeps/generic/math_private.h: ... here.
18709
18710         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
18711         * sysdeps/powerpc/fpu/math_private.h: Likewise.
18712         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18713
18714         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
18715         and <math_private.h>.
18716         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18717         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18718         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18719         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18720         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18721         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
18722         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
18723         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18724         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
18725         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18726         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18727         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18728         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18729         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18730         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
18731         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18732         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18733         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18734         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18735         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18736         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18737         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
18738         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
18739         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18740         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
18741         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
18742         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18743         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18744         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18745         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18746         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18747         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18748         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
18749         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
18750         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
18751         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18752         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18753         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
18754         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
18755         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18756         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
18757         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
18758         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
18759         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
18760         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
18761         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
18762         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18763         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
18764         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18765         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
18766         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18767         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
18768         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
18769         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18770         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
18771         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
18772         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18773         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
18774         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
18775         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
18776         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18777         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
18778         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18779         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18780         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
18781         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
18782         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
18783         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18784         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
18785         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
18786         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18787         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
18788         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18789         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18790         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
18791         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
18792         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
18793         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18794         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
18795         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
18796         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18797         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18798         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18799         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
18800         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18801         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
18802         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
18803         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
18804         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
18805         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18806         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18807         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
18808         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18809         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18810         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
18811         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
18812         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18813         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18814         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18815         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18816         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
18817         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
18818         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
18819         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
18820         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18821         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
18822         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18823         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
18824         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18825         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18826         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18827         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18828         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18829         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18830         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
18831         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18832         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18833         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18834         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18835         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18836         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18837         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18838         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18839         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
18840         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18841         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18842         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
18843         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
18844         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18845         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18846         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
18847         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18848         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18849         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18850         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
18851         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18852         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18853         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18854         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
18855         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
18856         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18857         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18858         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18859         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
18860         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
18861         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18862         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18863         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18864         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
18865         * sysdeps/ieee754/k_standard.c: Likewise.
18866         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
18867         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
18868         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18869         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
18870         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18871         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
18872         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
18873         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18874         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
18875         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18876         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18877         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
18878         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
18879         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
18880         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
18881         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18882         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
18883         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
18884         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18885         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
18886         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18887         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18888         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18889         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18890         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18891         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
18892         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18893         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18894         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18895         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18896         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18897         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18898         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18899         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18900         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
18901         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18902         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18903         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
18904         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
18905         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18906         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
18907         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
18908         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18909         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18910         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
18911         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
18912         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18913         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18914         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18915         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18916         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18917         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
18918         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18919         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
18920         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18921         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18922         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
18923         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
18924         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18925         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18926         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18927         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
18928         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18929         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
18930         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18931         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18932         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
18933         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18934         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
18935         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
18936         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18937         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18938         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
18939         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
18940         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
18941         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18942         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
18943         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
18944         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18945         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
18946         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18947         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18948         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18949         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18950         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18951         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18952         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18953         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
18954         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
18955         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18956         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
18957         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18958         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
18959         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
18960         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18961         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18962         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
18963         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
18964         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
18965         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
18966         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18967         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18968         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18969         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18970         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
18971         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18972         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18973         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
18974         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
18975         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18976         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18977         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18978         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
18979         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18980         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
18981         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18982         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
18983         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18984         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18985         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18986         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18987         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
18988         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18989         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18990         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18991         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
18992         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18993         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18994         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18995         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18996         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18997         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18998         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18999         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
19000         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19001         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19002         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
19003         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
19004         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19005         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
19006         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
19007         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19008         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
19009         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
19010         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19011         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19012         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19013         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19014         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19015         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
19016         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19017         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
19018         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19019         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19020         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
19021         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
19022         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19023         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19024         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19025         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
19026         * sysdeps/ieee754/s_lib_version.c: Likewise.
19027         * sysdeps/ieee754/s_matherr.c: Likewise.
19028         * sysdeps/ieee754/s_signgam.c: Likewise.
19029         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19030         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19031         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
19032         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
19033         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
19034         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19035         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
19036         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
19037         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
19038         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
19039         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
19040         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
19041         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19042         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19043         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
19044         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
19045         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
19046         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
19047         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
19048         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19049         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19050
19051 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19052
19053         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
19054         * sunrpc/rpc_main.c: Likewise.
19055         * sunrpc/rpc_svcout.c: Likewise.
19056
19057 2012-03-09  David S. Miller  <davem@davemloft.net>
19058
19059         * include/math_private.h: New file.
19060
19061 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
19062
19063         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
19064         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
19065         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
19066         from <bits/socket_type.h>.
19067         (enum __socket_type): Don't define here.
19068         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
19069         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19070         bits/socket_type.h.
19071
19072         [BZ #13566]
19073         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
19074         checking __USE_GNU.
19075
19076         * Makerules ($(inst_includedir)/%.h): New rule.
19077         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
19078         (install-others): Remove variable setting.
19079         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
19080
19081 2012-03-08  Richard Henderson  <rth@twiddle.net>
19082
19083         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
19084         from macro to inline function; merge with the
19085         !__LIBC_INTERNAL_MATH_INLINES version.
19086         (__ieee754_sqrtf): Likewise.
19087
19088         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
19089         to inline function.
19090         (__rintf, __floor, __floorf): Likewise.
19091
19092         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
19093         macro to inline function.
19094         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
19095
19096         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
19097         not <math/math_private.h>.
19098
19099 2012-03-08  David S. Miller  <davem@davemloft.net>
19100
19101         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
19102         copyright year.
19103         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
19104
19105 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
19106
19107         * resolv/gai_misc.c (handle_requests): Fix struct timespec
19108         normalization.
19109         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
19110         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
19111
19112 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
19113
19114         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
19115         be defined individually, they must be defined as a block.  Define
19116         S for printing a string instead of hidint the different by using a
19117         macro for adding the 'l'.
19118         * stdio-common/tst-fphex-wide.c: Adjust.
19119
19120 2012-03-07  Marek Polacek  <polacek@redhat.com>
19121
19122         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19123
19124 2012-03-08  Marek Polacek  <polacek@redhat.com>
19125
19126         [BZ #13806]
19127         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19128         * stdio-common/tst-fphex.c: Define a few macros to make the
19129         test reusable.  Use them.
19130         * stdio-common/tst-fphex-wide.c: New file.
19131
19132 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19133
19134         [BZ #6911]
19135         * manual/macros.texi (gnusystems): New macro.
19136         (nongnusystems): Likewise.
19137         (gnulinuxhurdsystems): Likewise.
19138         (gnuhurdsystems): Likewise..
19139         (gnulinuxsystems): Likewise.
19140         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19141         variants of the GNU system, not "GNU system".
19142         * manual/conf.texi: Likewise.
19143         * manual/errno.texi: Likewise.  Update example of errno macro
19144         expansion.
19145         * manual/filesys.texi: Likewise.
19146         (getumask): Document as specific to GNU/Hurd.
19147         * manual/install.texi: Likewise.  Reword some references to
19148         GNU/Linux.
19149         * manual/intro.texi: Likewise.
19150         * manual/io.texi: Likewise.
19151         (File Name Portability): Detail which constraints are inapplicable
19152         to all GNU systems and which are only inapplicable to GNU/Hurd.
19153         * manual/job.texi: Likewise.
19154         * manual/llio.texi: Likewise.
19155         (O_NOCTTY): Document as present on GNU/Linux.
19156         * manual/maint.texi: Likewise.
19157         * manual/memory.texi: Likewise.
19158         * manual/pattern.texi: Likewise.
19159         * manual/pipe.texi: Likewise.
19160         * manual/process.texi: Likewise.
19161         * manual/resource.texi: Likewise.
19162         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19163         child on GNU/Hurd.
19164         * manual/setjmp.texi: Likewise.
19165         * manual/signal.texi: Likewise.
19166         * manual/startup.texi: Likewise.
19167         * manual/stdio.texi: Likewise.
19168         * manual/terminal.texi: Likewise.
19169         (ONLCR): Document as POSIX.
19170         (OXTABS): Document availability on GNU/Linux as XTABS.
19171         (ONOEOT): Document availability separately from other bits.
19172         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19173         * manual/time.texi: Likewise.
19174         * manual/users.texi: Likewise.
19175         * INSTALL: Regenerated.
19176         * sysdeps/gnu/errlist.c: Regenerated.
19177
19178         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19179         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19180         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19181         puts.
19182         * configure: Regenerated.
19183
19184 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19185
19186         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19187         default includes instead of AC_HEADER_CHECK.
19188         * sysdeps/i386/configure: Regenerated.
19189
19190         [BZ #10716]
19191         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19192         * math/s_cacoshf.c (__cacoshf): Likewise.
19193         * math/s_cacoshl.c (__cacoshl): Likewise.
19194         * math/s_casinh.c (__casinh): Set signs of result from argument.
19195         * math/s_casinhf.c (__casinhf): Likewise.
19196         * math/s_casinhl.c (__casinhl): Likewise.
19197         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19198         (casinh_test): Add more tests.
19199         * sysdeps/i386/fpu/libm-test-ulps: Update.
19200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19201
19202 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19203
19204         * po/zh_TW.po: Update from translation team.
19205
19206         * login/Makefile (distribute): Remove variable.
19207         * catgets/Makefile: Likewise.
19208         * mach/Makefile: Likewise.
19209         * malloc/Makefile: Likewise.
19210         * misc/Makefile: Likewise.
19211         * iconv/Makefile: Likewise.
19212         * nscd/Makefile: Likewise.
19213         * hurd/Makefile: Likewise.
19214         * manual/Makefile: Likewise.
19215         * locale/Makefile: Likewise.
19216         * intl/Makefile: Likewise.
19217         * conform/Makefile: Likewise.
19218         * nss/Makefile: Likewise.
19219         * time/Makefile: Likewise.
19220         * soft-fp/Makefile: Likewise.
19221         * dirent/Makefile: Likewise.
19222         * gmon/Makefile: Likewise.
19223         * po/Makefile: Likewise.
19224         * rt/Makefile: Likewise.
19225         * socket/Makefile: Likewise.
19226         * math/Makefile: Likewise.
19227         * signal/Makefile: Likewise.
19228         * debug/Makefile: Likewise.
19229         * elf/Makefile: Likewise.
19230         * timezone/Makefile: Likewise.
19231         * stdlib/Makefile: Likewise.
19232         * iconvdata/Makefile: Likewise.
19233         * sunrpc/Makefile: Likewise.
19234         * io/Makefile: Likewise.
19235         * argp/Makefile: Likewise.
19236         * inet/Makefile: Likewise.
19237         * hesiod/Makefile: Likewise.
19238         * grp/Makefile: Likewise.
19239         * csu/Makefile: Likewise.
19240         * wctype/Makefile: Likewise.
19241         * crypt/Makefile: Likewise.
19242         * libio/Makefile: Likewise.
19243         * string/Makefile: Likewise.
19244         * nis/Makefile: Likewise.
19245         * resolv/Makefile: Likewise.
19246         * stdio-common/Makefile: Likewise.
19247         * wcsmbs/Makefile: Likewise.
19248         * dlfcn/Makefile: Likewise.
19249         * posix/Makefile: Likewise.
19250
19251         [BZ #6959]
19252         * timezone/Makefile: Don't install timezone files, just the programs
19253         and scripts.
19254
19255 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19256
19257         * nss/databases.def: Add missing gshadow entry.
19258
19259         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19260
19261 2012-03-06  Marek Polacek  <polacek@redhat.com>
19262
19263         [BZ #13726]
19264         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19265         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19266         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19267         * stdio-common/tst-long-dbl-fphex.c: New file.
19268
19269 2012-03-06  David S. Miller  <davem@davemloft.net>
19270
19271         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19272         (set_obp_int): New function.
19273         (get_obp_int): New function.
19274         (__get_clockfreq_via_dev_openprom): Likewise.
19275         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19276         Avoid unused variable warnings on 'val' and use builtin_expect.
19277         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19278         __builtin_expect.
19279         (INLINE_CLONE_SYSCALL): Likewise.
19280
19281 2012-03-05  David S. Miller  <davem@davemloft.net>
19282
19283         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19284
19285 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19286
19287         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19288
19289         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19290         only for |x| >= 40.
19291         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19292
19293 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19294
19295         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19296         Replace gettimeofday with __vdso_gettimeofday.
19297
19298         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19299         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19300         __vdso_clock_gettime and __vdso_getcpu.
19301
19302         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19303         time with __vdso_time.
19304
19305 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19306
19307         * manual/lang.texi (size_t): Note types to which size_t may be
19308         equivalent with the GNU C Library, but do not describe when
19309         differences between them are significant.
19310
19311 2012-03-05  Andreas Jaeger  <aj@suse.de>
19312
19313         * sysdeps/i386/fpu/libm-test-ulps: Update.
19314
19315 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19316
19317         [BZ #3976]
19318         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19319         (__ieee754_pow): Save and restore rounding mode and use
19320         round-to-nearest for main computations.
19321         * math/libm-test.inc (pow_test_tonearest): New function.
19322         (pow_test_towardzero): Likewise.
19323         (pow_test_downward): Likewise.
19324         (pow_test_upward): Likewise.
19325         (main): Call the new functions.
19326         * sysdeps/i386/fpu/libm-test-ulps: Update.
19327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19328
19329         [BZ #3976]
19330         * math/libm-test.inc (cosh_test_tonearest): New function.
19331         (cosh_test_towardzero): Likewise.
19332         (cosh_test_downward): Likewise.
19333         (cosh_test_upward): Likewise.
19334         (sinh_test_tonearest): Likewise.
19335         (sinh_test_towardzero): Likewise.
19336         (sinh_test_downward): Likewise.
19337         (sinh_test_upward): Likewise.
19338         (main): Call the new functions.
19339         * sysdeps/i386/fpu/libm-test-ulps: Update.
19340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19341
19342 2012-03-05  Tom de Vries  <tom@codesourcery.com>
19343
19344         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
19345         default stack guard is set in last bytes.
19346         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
19347
19348 2012-03-05  Kees Cook  <keescook@chromium.org>
19349
19350         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
19351
19352         [BZ #13656]
19353         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
19354         possibly allocate from heap instead of stack.
19355         * stdio-common/bug-vfprintf-nargs.c: New file.
19356         * stdio-common/Makefile (tests): Add nargs overflow test.
19357
19358 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
19359
19360         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19361
19362 2012-03-03  Marek Polacek  <polacek@redhat.com>
19363
19364         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
19365         * math/math_private.h: Likewise.
19366         * stdlib/tst-strtod.c: Likewise.
19367         * sysdeps/i386/i486/bits/atomic.h: Likewise.
19368         * sysdeps/x86_64/bits/atomic.h: Likewise.
19369
19370 2012-03-02  David S. Miller  <davem@davemloft.net>
19371
19372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
19373         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
19374         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
19375         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
19376         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
19377         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
19378         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
19379         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
19380
19381 2012-03-02  Roland McGrath  <roland@hack.frob.com>
19382
19383         [BZ #13792]
19384         * manual/examples/README: New file, says the example source files
19385         can be used under GPL>=2.
19386         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
19387         line containing just "*/".
19388         * manual/examples/add.c: Add copyright header (GPL>=2).
19389         * manual/examples/argp-ex1.c: Likewise.
19390         * manual/examples/argp-ex2.c: Likewise.
19391         * manual/examples/argp-ex3.c: Likewise.
19392         * manual/examples/argp-ex4.c: Likewise.
19393         * manual/examples/atexit.c: Likewise.
19394         * manual/examples/db.c: Likewise.
19395         * manual/examples/dir.c: Likewise.
19396         * manual/examples/dir2.c: Likewise.
19397         * manual/examples/execinfo.c: Likewise.
19398         * manual/examples/filecli.c: Likewise.
19399         * manual/examples/filesrv.c: Likewise.
19400         * manual/examples/fmtmsgexpl.c: Likewise.
19401         * manual/examples/genpass.c: Likewise.
19402         * manual/examples/inetcli.c: Likewise.
19403         * manual/examples/inetsrv.c: Likewise.
19404         * manual/examples/isockad.c: Likewise.
19405         * manual/examples/longopt.c: Likewise.
19406         * manual/examples/memopen.c: Likewise.
19407         * manual/examples/memstrm.c: Likewise.
19408         * manual/examples/mkfsock.c: Likewise.
19409         * manual/examples/mkisock.c: Likewise.
19410         * manual/examples/mygetpass.c: Likewise.
19411         * manual/examples/pipe.c: Likewise.
19412         * manual/examples/popen.c: Likewise.
19413         * manual/examples/rprintf.c: Likewise.
19414         * manual/examples/search.c: Likewise.
19415         * manual/examples/select.c: Likewise.
19416         * manual/examples/setjmp.c: Likewise.
19417         * manual/examples/sigh1.c: Likewise.
19418         * manual/examples/sigusr.c: Likewise.
19419         * manual/examples/stpcpy.c: Likewise.
19420         * manual/examples/strdupa.c: Likewise.
19421         * manual/examples/strftim.c: Likewise.
19422         * manual/examples/strncat.c: Likewise.
19423         * manual/examples/subopt.c: Likewise.
19424         * manual/examples/swapcontext.c: Likewise.
19425         * manual/examples/termios.c: Likewise.
19426         * manual/examples/testopt.c: Likewise.
19427         * manual/examples/testpass.c: Likewise.
19428         * manual/examples/timeval_subtract.c: Likewise.
19429
19430         [BZ #13792]
19431         * manual/time.texi (Elapsed Time): Move timeval_subtract example
19432         function to ...
19433         * manual/timeval_subtract.c.texi: ... here, new file.
19434
19435 2012-03-02  David S. Miller  <davem@davemloft.net>
19436
19437         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
19438
19439 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
19440
19441         [BZ #3976]
19442         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
19443         (__sin): Save and restore rounding mode and use round-to-nearest
19444         for all computations.
19445         (__cos): Save and restore rounding mode and use round-to-nearest
19446         for all computations.
19447         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
19448         <fenv.h>.
19449         (tan): Save and restore rounding mode and use round-to-nearest for
19450         all computations.
19451         * math/libm-test.inc (cos_test_tonearest): New function.
19452         (cos_test_towardzero): Likewise.
19453         (cos_test_downward): Likewise.
19454         (cos_test_upward): Likewise.
19455         (sin_test_tonearest): Likewise.
19456         (sin_test_towardzero): Likewise.
19457         (sin_test_downward): Likewise.
19458         (sin_test_upward): Likewise.
19459         (tan_test_tonearest): Likewise.
19460         (tan_test_towardzero): Likewise.
19461         (tan_test_downward): Likewise.
19462         (tan_test_upward): Likewise.
19463         (main): Call the new functions.
19464         * sysdeps/i386/fpu/libm-test-ulps: Update.
19465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19466
19467         [BZ #10135]
19468         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
19469         small n, then large n, before computing and testing k+n.
19470         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
19471         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
19472         Likewise.
19473         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
19474         Likewise.
19475         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
19476         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
19477         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
19478         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
19479         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
19480         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
19481         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
19482         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
19483         * math/libm-test.inc (scalbn_test): Add more tests.
19484         (scalbln_test): Likewise.
19485
19486         * manual/filesys.texi (mode_t): Describe constraints on size and
19487         signedness, not exact equivalence to a particular type.
19488         (ino_t): Likewise.
19489         (ino64_t): Likewise.
19490         (dev_t): Likewise.
19491         (nlink_t): Likewise.
19492         (blkcnt_t): Likewise.
19493         (blkcnt64_t): Likewise.
19494         * manual/llio.texi (off_t): Likewise.
19495
19496         [BZ #3976]
19497         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
19498         (__ieee754_exp): Save and restore rounding mode and use
19499         round-to-nearest for all computations.
19500         * math/libm-test.inc (exp_test_tonearest): New function.
19501         (exp_test_towardzero): Likewise.
19502         (exp_test_downward): Likewise.
19503         (exp_test_upward): Likewise.
19504         (main): Call the new functions.
19505         * sysdeps/i386/fpu/libm-test-ulps: Update.
19506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19507
19508 2012-03-01  Chris Demetriou  <cgd@google.com>
19509
19510         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
19511         have predictable order.
19512
19513 2012-03-01  David S. Miller  <davem@davemloft.net>
19514
19515         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
19516
19517         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
19518         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
19519         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
19520         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
19521
19522         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
19523         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
19524         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
19525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
19526         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
19527         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
19528         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
19529         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
19530         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
19531
19532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19533
19534         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
19535         * sysdeps/sparc/fpu/libm-test-ulps: to here.
19536         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
19537
19538         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
19539         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
19540         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
19541         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
19542         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
19543         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
19544         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
19545         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
19546         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
19547         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
19548         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
19549         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19550         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
19551         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
19552         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
19553         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
19554         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
19555         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
19556         * sysdeps/sparc/elf/configure: Regenerated.
19557
19558 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
19559
19560         * configure.in (AS, LD): Require binutils 2.20 or later.
19561         * configure: Regenerated.
19562         * manual/install.texi (Tools for Compilation): Give binutils 2.20
19563         as required minimum version.
19564         * INSTALL: Regenerated.
19565
19566         [BZ #2541]
19567         [BZ #4108]
19568         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
19569         before squaring exponent.
19570         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
19571         bottom long double and 27 bits of top long double before squaring
19572         exponent.
19573         * math/libm-test.inc (erfc_test): Add more tests.
19574         * sysdeps/i386/fpu/libm-test-ulps: Update.
19575         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19577
19578 2012-03-01  Kai Tietz  <ktietz@redhat.com>
19579
19580         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
19581         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
19582         containing bit-fields.
19583         * soft-fp/extended.h (_FP_UNION_E): Likewise.
19584         * soft-fp/single.h (_FP_UNION_S): Likewise.
19585         * soft-fp/double.h (_FP_UNION_D): Likewise.
19586
19587 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19588
19589         [BZ #13786]
19590         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
19591         not include ../strcmp.S.
19592         [USE_AS_STRNCASECMP_L]: Likewise.
19593         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
19594         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
19595         * sysdeps/i386/i686/multiarch/strncase_l-c.c
19596         (__strncasecmp_l_ia32): Define as alias to
19597         __strncasecmp_l_nonascii.
19598
19599         [BZ #5794]
19600         * math/libm-test.inc (expm1_test): Add test for bug 5794.
19601         * sysdeps/i386/fpu/libm-test-ulps: Update.
19602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19603
19604         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
19605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19606
19607 2012-02-29  Jeff Law  <law@redhat.com>
19608
19609         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
19610         out of bounds read.
19611
19612 2012-02-29  Marek Polacek  <polacek@redhat.com>
19613
19614         [BZ #13706]
19615         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
19616         * elf/Makefile: Add rules to run tst-unused-dep.out.
19617
19618 2012-02-28  David S. Miller  <davem@davemloft.net>
19619
19620         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
19621         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
19622         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
19623         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
19624         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
19625         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
19626
19627 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19628
19629         * math/libm-test.inc (llround_test): Move one test from
19630         lround_test.  Use TEST_f_L in moved test.
19631         (lround_test): Move misplaced test to llround_test.  Add testcase
19632         from bug 2561.
19633
19634 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
19635
19636         * sysdeps/x86_64/fpu/e_expf.S: New file.
19637         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
19638
19639 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
19640
19641         [BZ #13637]
19642         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
19643         of remain_len that may cause incomplete multi-byte character and
19644         false match.
19645         * posix/bug-regex33.c: New file.
19646         * posix/Makefile (tests): Add bug-regex33.
19647
19648 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
19649
19650         * manual/macros.texi: New file.
19651         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
19652         * manual/libc.texinfo: Include macros.texi.
19653         * manual/creatute.texi: Likewise.
19654         * manual/install.texi: Likewise.
19655         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
19656         @glibcadj{} in references to the GNU C Library.
19657         * manual/charset.texi: Likewise.
19658         * manual/conf.texi: Likewise.
19659         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
19660         when not using those macros.
19661         * manual/creature.texi: Likewise.
19662         * manual/crypt.texi: Likewise.
19663         * manual/errno.texi: Likewise.
19664         * manual/filesys.texi: Likewise.
19665         * manual/header.texi: Likewise.
19666         * manual/install.texi: Likewise.
19667         * manual/intro.texi: Likewise.
19668         * manual/io.texi: Likewise.
19669         * manual/job.texi: Likewise.
19670         * manual/lang.texi: Likewise.
19671         * manual/libc.texiinfo: Likewise.
19672         * manual/llio.texi: Likewise.
19673         * manual/locale.texi: Likewise.
19674         * manual/maint.texi: Likewise.
19675         * manual/math.texi: Likewise.
19676         * manual/memory.texi: Likewise.
19677         * manual/message.texi: Likewise.
19678         * manual/nss.texi: Likewise.
19679         * manual/pattern.texi: Likewise.
19680         * manual/process.texi: Likewise.
19681         * manual/resource.texi: Likewise.
19682         * manual/search.texi: Likewise.
19683         * manual/setjmp.texi: Likewise.
19684         * manual/signal.texi: Likewise.
19685         * manual/socket.texi: Likewise.
19686         * manual/startup.texi: Likewise.
19687         * manual/stdio.texi: Likewise.
19688         * manual/string.texi: Likewise.
19689         * manual/sysinfo.texi: Likewise.
19690         * manual/syslog.texi: Likewise.
19691         * manual/terminal.texi: Likewise.
19692         * manual/time.texi: Likewise.
19693         * manual/users.texi: Likewise.
19694         * INSTALL: Regenerated.
19695         * NOTES: Regenerated.
19696         * sysdeps/gnu/errlist.c: Regenerated.
19697
19698 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
19699
19700         * include/dirent.h: Include <dirstream.h> before
19701         <dirent/dirent.h>.
19702
19703 2012-02-28  David S. Miller  <davem@davemloft.net>
19704
19705         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
19706         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
19707         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
19708         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
19709
19710 2012-02-27  David S. Miller  <davem@davemloft.net>
19711
19712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
19713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
19714         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
19715         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
19716
19717         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
19718         frame pointer instead of stack pointer relative arg slot.
19719         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19720         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19721         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19722
19723 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
19724
19725         [BZ #3992]
19726         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
19727
19728 2012-02-27  David S. Miller  <davem@davemloft.net>
19729
19730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
19731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
19733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
19734         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19735         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19736         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
19737         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
19738
19739 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19740
19741         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
19742         later.  Allow versions 5-9.
19743         * configure: Regenerated.
19744         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
19745         required minimum version and 4.6 as recommended version.  Do not
19746         mention bugs in GCC 2.7 and 2.8.
19747         * INSTALL: Regenerated.
19748
19749 2012-02-27  David S. Miller  <davem@davemloft.net>
19750
19751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
19752         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
19753         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
19754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
19755         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
19756         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
19757         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
19758         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
19759
19760         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
19761         manipulate bits before adding and subtracting TWO112[sx].
19762         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
19763
19764 2012-02-27  Roland McGrath  <roland@hack.frob.com>
19765
19766         [BZ #13775]
19767         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
19768         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
19769         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
19770         being in POSIX, because they are in 1003.1-2008.
19771
19772         * rt/tst-aio.c: Include <fcntl.h>.
19773         * rt/tst-aio7.c: Likewise.
19774         * rt/tst-aio64.c: Likewise.
19775
19776         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
19777
19778 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19779
19780         * manual/install.texi (--with-headers): Describe headers as
19781         interface headers, not private headers.
19782         (Specific advice for GNU/Linux systems): Describe use of headers
19783         from "make headers_install", not private headers from older
19784         kernels.
19785         * INSTALL: Regenerated.
19786         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
19787         Change to 2.6.19.
19788         * sysdeps/unix/sysv/linux/configure: Regenerated.
19789
19790         * manual/llio.texi (fclean): Remove documentation.
19791
19792         * manual/Makefile (libc-texi-generated): New variable.  Include
19793         version.texi.
19794         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
19795         $(libc-texi-generated), not duplicated list of files.
19796         (version.texi, stamp-version): New rules.
19797         (realclean): Remove $(libc-texi-generated), not individual files
19798         from that list.  Do not remove dir-add.texinfo.
19799         * manual/libc.texinfo: Comment out uses of edition numbers and
19800         references to printed manual.  Remove last-updated dates.
19801         (EDITION): Comment out.
19802         (ISBN): Likewise.
19803         (VERSION, UPDATED): Remove.
19804         (version.texi): Include.
19805
19806 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
19807
19808         * sysdeps/posix/spawni.c: Include <signal.h>.
19809         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
19810         * sysdeps/pthread/aio_fsync.c: Likewise.
19811
19812 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
19813
19814         * conform/Makefile (tests): Run only when not cross-compiling and
19815         when fast-check is not defined.
19816
19817         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
19818         * conform/data/limits.h-data: Fixes for POSIX2008.
19819         * conform/run-conformtest.sh: Run all tests.
19820         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
19821         headers.
19822         * include/bits/dlfcn.h: Likewise.
19823         * include/langinfo.h: Likewise.
19824         * include/monetary.h: Likewise.
19825         * include/sys/poll.h: Likewise.
19826
19827         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
19828         for __USE_GNU.
19829         * posix/spawn.h: Define __need_sigset_t.
19830         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
19831         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
19832         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
19833         to get sigevent_t only.
19834         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
19835         only for __USE_GNU.
19836         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19837         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
19838         process_vm_writev only for __USE_GNU.
19839         * termios/termios.h: Declare tcgetsid also for POSIX2008.
19840
19841         * conform/Makefile: For now ignore errors from run-conformtest.
19842         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
19843         POSIX to avoid namespace pollution.  Don't prepend headers.
19844         * conform/data/aio.h-data: Fixes for POSIX testing.
19845         * conform/data/fcntl.h-data: Likewise.
19846         * conform/data/glob.h-data: Likewise.
19847         * conform/data/grp.h-data: Likewise.
19848         * conform/data/pthread.h-data: Likewise.
19849         * conform/data/pwd.h-data: Likewise.
19850         * conform/data/signal.h-data: Likewise.
19851         * conform/data/spawn.h-data: Likewise.
19852         * conform/data/stdio.h-data: Likewise.
19853         * conform/data/stdlib.h-data: Likewise.
19854         * conform/data/stropts.h-data: Likewise.
19855         * conform/data/sys/mman.h-data: Likewise.
19856         * conform/data/sys/stat.h-data: Likewise.
19857         * conform/data/sys/types.h-data: Likewise.
19858         * conform/data/sys/wait.h-data: Likewise.
19859         * conform/data/time.h-data: Likewise.
19860         * conform/data/unistd.h-data: Likewise.
19861         * conform/data/utime.h-data: Likewise.
19862
19863         * io/sys/stat.h: fchmod was always in POSIX.
19864         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
19865         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
19866         * rt/aio.h: Define __need_timespec before including <time.h>.
19867         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
19868         struct.  Add forward declaration of pthread_attr_t and use it in
19869         sigevent.
19870         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19871         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19872         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
19873         always remove CLK_TCK definition.
19874
19875 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
19876
19877         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
19878
19879 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
19880
19881         * conform/run-conformtest.sh: New file.
19882         * conform/Makefile: Run run-conformtest for tests.
19883         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
19884         support.
19885
19886         * conform/data/uchar.h-data: New file.
19887         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
19888         * conform/data/arpa/inet.h-data: Likewise.
19889         * conform/data/assert.h-data: Likewise.
19890         * conform/data/complex.h-data: Likewise.
19891         * conform/data/cpio.h-data: Likewise.
19892         * conform/data/ctype.h-data: Likewise.
19893         * conform/data/dirent.h-data: Likewise.
19894         * conform/data/dlfcn.h-data: Likewise.
19895         * conform/data/errno.h-data: Likewise.
19896         * conform/data/fcntl.h-data: Likewise.
19897         * conform/data/float.h-data: Likewise.
19898         * conform/data/fmtmsg.h-data: Likewise.
19899         * conform/data/fnmatch.h-data: Likewise.
19900         * conform/data/ftw.h-data: Likewise.
19901         * conform/data/glob.h-data: Likewise.
19902         * conform/data/grp.h-data: Likewise.
19903         * conform/data/iconv.h-data: Likewise.
19904         * conform/data/inttypes.h-data: Likewise.
19905         * conform/data/langinfo.h-data: Likewise.
19906         * conform/data/libgen.h-data: Likewise.
19907         * conform/data/limits.h-data: Likewise.
19908         * conform/data/locale.h-data: Likewise.
19909         * conform/data/math.h-data: Likewise.
19910         * conform/data/monetary.h-data: Likewise.
19911         * conform/data/mqueue.h-data: Likewise.
19912         * conform/data/ndbm.h-data: Likewise.
19913         * conform/data/net/if.h-data: Likewise.
19914         * conform/data/netdb.h-data: Likewise.
19915         * conform/data/netinet/in.h-data: Likewise.
19916         * conform/data/nl_types.h-data: Likewise.
19917         * conform/data/poll.h-data: Likewise.
19918         * conform/data/pthread.h-data: Likewise.
19919         * conform/data/pwd.h-data: Likewise.
19920         * conform/data/regex.h-data: Likewise.
19921         * conform/data/sched.h-data: Likewise.
19922         * conform/data/search.h-data: Likewise.
19923         * conform/data/semaphore.h-data: Likewise.
19924         * conform/data/setjmp.h-data: Likewise.
19925         * conform/data/signal.h-data: Likewise.
19926         * conform/data/spawn.h-data: Likewise.
19927         * conform/data/stdarg.h-data: Likewise.
19928         * conform/data/stdio.h-data: Likewise.
19929         * conform/data/stdlib.h-data: Likewise.
19930         * conform/data/string.h-data: Likewise.
19931         * conform/data/strings.h-data: Likewise.
19932         * conform/data/stropts.h-data: Likewise.
19933         * conform/data/sys/ipc.h-data: Likewise.
19934         * conform/data/sys/mman.h-data: Likewise.
19935         * conform/data/sys/msg.h-data: Likewise.
19936         * conform/data/sys/resource.h-data: Likewise.
19937         * conform/data/sys/select.h-data: Likewise.
19938         * conform/data/sys/sem.h-data: Likewise.
19939         * conform/data/sys/shm.h-data: Likewise.
19940         * conform/data/sys/socket.h-data: Likewise.
19941         * conform/data/sys/stat.h-data: Likewise.
19942         * conform/data/sys/statvfs.h-data: Likewise.
19943         * conform/data/sys/time.h-data: Likewise.
19944         * conform/data/sys/timeb.h-data: Likewise.
19945         * conform/data/sys/times.h-data: Likewise.
19946         * conform/data/sys/types.h-data: Likewise.
19947         * conform/data/sys/uio.h-data: Likewise.
19948         * conform/data/sys/un.h-data: Likewise.
19949         * conform/data/sys/utsname.h-data: Likewise.
19950         * conform/data/sys/wait.h-data: Likewise.
19951         * conform/data/syslog.h-data: Likewise.
19952         * conform/data/tar.h-data: Likewise.
19953         * conform/data/termios.h-data: Likewise.
19954         * conform/data/utime.h-data: Likewise.
19955         * conform/data/utmpx.h-data: Likewise.
19956         * conform/data/varargs.h-data: Likewise.
19957         * conform/data/wchar.h-data: Likewise.
19958         * conform/data/wctype.h-data: Likewise.
19959         * conform/data/wordexp.h-data: Likewise.
19960
19961         * include/stropts.h: New file.
19962         * include/uchar.h: New file.
19963         * include/aio.h: Changes to allow conformtest.pl to use the headers.
19964         * include/assert.h: Likewise.
19965         * include/ctype.h: Likewise.
19966         * include/dirent.h: Likewise.
19967         * include/dlfcn.h: Likewise.
19968         * include/fcntl.h: Likewise.
19969         * include/fnmatch.h: Likewise.
19970         * include/glob.h: Likewise.
19971         * include/grp.h: Likewise.
19972         * include/libio.h: Likewise.
19973         * include/locale.h: Likewise.
19974         * include/math.h: Likewise.
19975         * include/net/if.h: Likewise.
19976         * include/netdb.h: Likewise.
19977         * include/netinet/in.h: Likewise.
19978         * include/pthread.h: Likewise.
19979         * include/pwd.h: Likewise.
19980         * include/regex.h: Likewise.
19981         * include/sched.h: Likewise.
19982         * include/search.h: Likewise.
19983         * include/setjmp.h: Likewise.
19984         * include/signal.h: Likewise.
19985         * include/stdio.h: Likewise.
19986         * include/stdlib.h: Likewise.
19987         * include/string.h: Likewise.
19988         * include/sys/cdefs.h: Likewise.
19989         * include/sys/mman.h: Likewise.
19990         * include/sys/msg.h: Likewise.
19991         * include/sys/resource.h: Likewise.
19992         * include/sys/select.h: Likewise.
19993         * include/sys/socket.h: Likewise.
19994         * include/sys/stat.h: Likewise.
19995         * include/sys/statvfs.h: Likewise.
19996         * include/sys/time.h: Likewise.
19997         * include/sys/times.h: Likewise.
19998         * include/sys/uio.h: Likewise.
19999         * include/sys/utsname.h: Likewise.
20000         * include/sys/wait.h: Likewise.
20001         * include/termios.h: Likewise.
20002         * include/time.h: Likewise.
20003         * include/ulimit.h: Likewise.
20004         * include/unistd.h: Likewise.
20005         * include/utime.h: Likewise.
20006         * include/wchar.h: Likewise.
20007         * include/wctype.h: Likewise.
20008         * include/wordexp.h: Likewise.
20009
20010         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
20011
20012         * time/time.h: TIME_UTC must be a macro.
20013         Make timespec_get available for ISO C11 only as well.
20014
20015 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
20016
20017         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
20018         Reported by Peng Haitao <penght@cn.fujitsu.com>.
20019
20020 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20021
20022         * configure.in: Use -o not -a in test for unsupported multi-arch.
20023
20024 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20025
20026         * manual/texinfo.tex: Update to version 2012-01-19.16.
20027
20028 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
20029
20030         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
20031
20032 2012-02-24  Roland McGrath  <roland@hack.frob.com>
20033
20034         [BZ #13738]
20035         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
20036         * manual/fdl-1.3.texi: New file.
20037         * manual/fdl-1.1.texi: File removed.
20038
20039         [BZ #13738]
20040         * manual/libc.texinfo (FDL_VERSION): New @set.
20041         Use it for mention of FDL in cover text.
20042         (Documentation License): Use it in @include file name.
20043
20044 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20045             Roland McGrath  <roland@hack.frob.com>
20046
20047         [BZ #5461]
20048         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
20049         not LONG_LONG_MAX and LONG_LONG_MIN.
20050         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
20051         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
20052         name.
20053         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
20054
20055 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20056
20057         [BZ #2547]
20058         [BZ #11365]
20059         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
20060         manipulate bits before adding and subtracting TWO23[sx].
20061         * math/libm-test.inc (nearbyint_test): Add more tests.
20062
20063 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20064
20065         [BZ #2548]
20066         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
20067         bits before adding and subtracting TWO23[sx].
20068         * math/libm-test.inc (rint_test): Add more tests.
20069         (rint_test_tonearest): Likewise.
20070         (rint_test_towardzero): Likewise.
20071         (rint_test_downward): Likewise.
20072         (rint_test_upward: Likewise.
20073
20074 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20075
20076         [BZ #10110]
20077         * include/stdc-predef.h: New file.  Extracted from features.h.
20078         * include/features.h: Include stdc-predef.h.
20079         * Makefile (headers): Add stdc-predef.h.
20080         * CONFORMANCE (Compiler limitations): Update.
20081
20082 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
20083
20084         * manual/libc.texinfo (VERSION, UPDATED): Revert.
20085
20086 2012-02-21  David S. Miller  <davem@davemloft.net>
20087
20088         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
20089         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20090
20091 2012-02-20  David S. Miller  <davem@davemloft.net>
20092
20093         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
20094         using a normal save/restore sequence, rather than allocating a
20095         dummy stack frame just to store a frame pointer and restore.
20096         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20097
20098 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20099
20100         * manual/install.texi: Fix stray word in line-wrapped comment.
20101
20102 2012-02-20  David S. Miller  <davem@davemloft.net>
20103
20104         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
20105         both binutils and gcc support GOTDATA.
20106
20107         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
20108         "rd %pc" in the PIC register setup sequences.
20109
20110         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
20111         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
20112         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
20113         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
20114         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
20115         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
20116         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20117         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
20118         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
20119         (SYSCALL_ERROR_HANDLER): Likewise.
20120         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
20121         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20122         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20123         (SYSCALL_ERROR_HANDLER): Likewise.
20124
20125         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20126         (HAVE_GCC_GOTDATA): New.
20127         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20128         relocation support in both binutils and gcc.
20129         * sysdeps/sparc/elf/configure: Regenerate.
20130
20131         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20132         * sysdeps/sparc/sparc32/elf/configure: Delete.
20133         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20134         * sysdeps/sparc/sparc64/elf/configure: Delete.
20135         * sysdeps/sparc/elf/configure.in: New file.
20136         * sysdeps/sparc/elf/configure: Generate.
20137
20138         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20139         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20140         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20141         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20142         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20143
20144 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20145
20146         * manual/install.texi: Do not mention specific glibc version
20147         numbers.
20148         * manual/libc.texinfo (VERSION, UPDATED): Update.
20149         (@copying): Use @copyright{} and range of years.
20150
20151 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20152
20153         [BZ #13695]
20154         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20155         [crti.S not in sysdirs] (generated): Do not append.
20156         [crti.S not in sysdirs] (omit-deps): Likewise.
20157         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20158         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20159         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20160         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20161         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20162         Likewise.
20163         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20164         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20165         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20166         * csu/defs.awk: Remove file.
20167         * sysdeps/generic/initfini.c: Likewise.
20168         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20169         variable.
20170         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20171         Likewise.
20172
20173 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20174
20175         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20176         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20177         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20178         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20179         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20180         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20181         <bits/epoll.h>.
20182         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20183         (__EPOLL_PACKED): Define to empty if not defined by
20184         <bits/epoll.h>.
20185         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20186         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20187         bits/epoll.h.
20188
20189 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20190
20191         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20192         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20193         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20194         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20195         <bits/timerfd.h>.
20196         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20197         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20198         bits/timerfd.h.
20199
20200 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20201
20202         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20203         in C locale.
20204         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20205         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20206         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20208
20209 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20210
20211         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20212         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20213
20214 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20215
20216         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20217         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20218         defined.
20219         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20220         Likewise.
20221         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20222         entry for 2.16.
20223
20224 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20225
20226         * math/w_acos.c: Use non-signaling floating-point comparisons.
20227         * math/w_acosf.c: Likewise.
20228         * math/w_acosh.c: Likewise.
20229         * math/w_acoshf.c: Likewise.
20230         * math/w_acoshl.c: Likewise.
20231         * math/w_acosl.c: Likewise.
20232         * math/w_asin.c: Likewise.
20233         * math/w_asinf.c: Likewise.
20234         * math/w_asinl.c: Likewise.
20235         * math/w_atanh.c: Likewise.
20236         * math/w_atanhf.c: Likewise.
20237         * math/w_atanhl.c: Likewise.
20238         * math/w_exp2.c: Likewise.
20239         * math/w_exp2f.c: Likewise.
20240         * math/w_exp2l.c: Likewise.
20241         * math/w_j0.c: Likewise.
20242         * math/w_j0f.c: Likewise.
20243         * math/w_j0l.c: Likewise.
20244         * math/w_j1.c: Likewise.
20245         * math/w_j1f.c: Likewise.
20246         * math/w_j1l.c: Likewise.
20247         * math/w_jn.c: Likewise.
20248         * math/w_jnf.c: Likewise.
20249         * math/w_log.c: Likewise.
20250         * math/w_log10.c: Likewise.
20251         * math/w_log10f.c: Likewise.
20252         * math/w_log10l.c: Likewise.
20253         * math/w_log2.c: Likewise.
20254         * math/w_log2f.c: Likewise.
20255         * math/w_log2l.c: Likewise.
20256         * math/w_logf.c: Likewise.
20257         * math/w_logl.c: Likewise.
20258         * math/w_sqrt.c: Likewise.
20259         * math/w_sqrtf.c: Likewise.
20260         * math/w_sqrtl.c: Likewise.
20261         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20262         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20263         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20264         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20265         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20266
20267 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20268
20269         [BZ #9739]
20270         * manual/string.texi (strnlen): Use correct parameter name in
20271         equivalent expression.
20272
20273 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20274
20275         [BZ #11174]
20276         * manual/users.texi (seteuid): Consistently use neweuid for
20277         argument name.
20278
20279 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20280
20281         [BZ #13704]
20282         * manual/nss.texi (Services in the NSS configuration): Correct
20283         list of services in example configuration file.
20284
20285 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20286
20287         [BZ #11322]
20288         * manual/arith.texi: Remove statements about negative zero
20289         behaving identically to zero.
20290
20291 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20292
20293         [BZ #5993]
20294         * manual/install.texi: Do not document upgrading from libc5.
20295
20296 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20297
20298         [BZ #4596]
20299         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20300
20301 2012-02-18  David S. Miller  <davem@davemloft.net>
20302
20303         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20304         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20305         %o7 across the call.
20306         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20307         instead.
20308         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20309         SETUP_PIC_REG_LEAF.
20310         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20311         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20312         * sysdeps/sparc/crtn.S: Likewise.
20313
20314 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20315
20316         * aout/Makefile: Remove.
20317
20318 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20319
20320         [BZ #13058]
20321         * manual/examples/argp-ex1.c (main): Format definition in GNU
20322         style.
20323         * manual/examples/argp-ex2.c (main): Likewise.
20324         * manual/examples/argp-ex3.c (main): Likewise.
20325         * manual/examples/argp-ex4.c (main): Likewise.
20326         * manual/examples/longopt.c (main): Use new-style prototype
20327         definition.
20328         * manual/examples/strncat.c (main): Specify return type and use
20329         (void) for arguments.
20330         * manual/examples/subopt.c (main): Use char **argv argument.
20331
20332 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20333
20334         [BZ #5077]
20335         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20336         rounding modes.
20337
20338 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20339
20340         [BZ #6907]
20341         * manual/string.texi (strchr): Change when strchrnul is
20342         recommended.
20343
20344 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
20345
20346         [BZ #174]
20347         * manual/locale.texi (setlocale): Document LOCPATH.
20348
20349 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20350
20351         [BZ #10210]
20352         * manual/process.texi (execle): Move @dots{} before last argument.
20353
20354 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
20355
20356         [BZ #12047]
20357         * manual/charset.texi (Generic Charset Conversion): Fix typo
20358         (LC_TYPE -> LC_CTYPE).
20359
20360 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
20361
20362         [BZ #5805]
20363         * manual/arith.texi (scalbn): Use @var{} on parameter names.
20364         (scalbnf): Likewise.
20365         (scalbnl): Likewise.
20366         (scalbln): Likewise.
20367         (scalblnf): Likewise.
20368         (scalblnl): Likewise.
20369         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
20370         (vwarnx): Likewise.
20371         (verr): Likewise.
20372         (verrx): Likewise.
20373         * manual/filesys.texi (telldir): Use braces around return type.
20374         * manual/llio.texi (mmap): Add space after comma.
20375         (mmap64): Likewise.
20376         * manual/math.texi (jn): Use @var{} on parameter names.
20377         (jnf): Likewise.
20378         (jnl): Likewise.
20379         (yn): Likewise.
20380         (ynf): Likewise.
20381         (ynl): Likewise.
20382         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
20383         line.
20384         * manual/resource.texi (ulimit): Use @dots{} instead of literal
20385         "...".
20386         (sched_get_priority_min): Remove semicolon on @deftypefun line.
20387         (sched_get_priority_max): Likewise.
20388         * manual/signal.texi (sigvec): Add space after comma.
20389         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
20390         names.
20391         (if_indextoname): Likewise.
20392         (if_freenameindex): Likewise.
20393         (sendto): Use ',' instead of '.' in prototype.
20394         * manual/startup.texi (syscall): Use @dots{} instead of literal
20395         "...".
20396         * manual/stdio.texi (__fpending): Separate initial words of
20397         paragraph from @deftypefun line.
20398         * manual/syslog.texi (syslog): Use @dots{} instead of literal
20399         "...".
20400         (vsyslog): Use @var{} on parameter names.
20401         * manual/terminal.texi (stty): Use @var{} on parameter names.
20402         * manual/users.texi (getutmp): Use @var{} on parameter names.
20403         (getutmpx): Likewise.
20404
20405 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20406
20407         [BZ #6884]
20408         * manual/stdio.texi (fopen): Fix typos in description of
20409         ",ccs=STRING".
20410
20411 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
20412
20413         [BZ #4026]
20414         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
20415         get clock_id definition.
20416
20417 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
20418
20419         [BZ #4822]
20420         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
20421         (madvise): Cast every argument to void on its own.
20422
20423 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20424
20425         [BZ #9902]
20426         * manual/startup.texi (Exit Status): Fix typo.
20427
20428 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20429
20430         [BZ #10140]
20431         * manual/examples/argp-ex1.c: Include <stdlib.h>.
20432         * manual/examples/argp-ex2.c: Likewise.
20433         * manual/examples/argp-ex3.c: Likewise.
20434
20435 2012-02-16  Richard Henderson  <rth@redhat.com>
20436
20437         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
20438         * sysdeps/s390/s390-32/initfini.c: Remove.
20439         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
20440         * sysdeps/s390/s390-64/initfini.c: Remove.
20441
20442 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20443
20444         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
20445         compiler output for sysdeps/generic/initfini.c.
20446         * sysdeps/sh/elf/initfini.c: Remove file.
20447
20448 2012-02-16  David S. Miller  <davem@davemloft.net>
20449
20450         [BZ #11494]
20451         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
20452
20453         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
20454         * sysdeps/sparc/crti.S: New file.
20455         * sysdeps/sparc/crtn.S: New file.
20456         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
20457         * sysdeps/sparc/sparc64/Makefile: Likewise.
20458
20459 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
20460
20461         [BZ #3335]
20462         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
20463
20464 2012-02-15  Roland McGrath  <roland@hack.frob.com>
20465
20466         [BZ #4822]
20467         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
20468
20469         * mach/devstream.c (cookie_io_functions_t): Macro removed.
20470         (write, read, close): Likewise.
20471         Patch by Aurelien Jarno <aurelien@aurel32.net>.
20472
20473 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
20474
20475         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
20476         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
20477         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
20478         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
20479         <bits/signalfd.h>.
20480         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
20481         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20482         bits/signalfd.h.
20483
20484 2012-02-14  Marek Polacek  <polacek@redhat.com>
20485
20486         * sysdeps/x86_64/crti.S: New file.
20487         * sysdeps/x86_64/crtn.S: New file.
20488         * sysdeps/x86_64/elf/initfini.c: Remove file.
20489
20490 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20491
20492         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
20493         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
20494         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
20495         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
20496         <bits/inotify.h>.
20497         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
20498         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20499         bits/inotify.h.
20500
20501 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20502
20503         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
20504         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
20505         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
20506         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
20507         <bits/eventfd.h>.
20508         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
20509         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20510         bits/eventfd.h.
20511
20512 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
20513
20514         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
20515         __feraiseexcept instead of feraiseexcept.
20516
20517         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
20518         nanosleep invocations.
20519         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
20520         strings, and add error checking for a nanosleep invocations.
20521
20522 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20523
20524         Replace FSF snail mail address with URLs, as per GNU coding standards.
20525         Most of the snail mail addresses were wrong anyway, and omitting
20526         them makes the source code easier to maintain.  Almost all of the
20527         changes are to license notices and to locale LC_IDENTIFICATION
20528         addresses, except for this one:
20529         * manual/libc.texinfo: In "Published by", give the FSF's URL,
20530         not its snail mail address.
20531
20532 2012-02-09  Richard Henderson  <rth@twiddle.net>
20533
20534         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
20535         of kernel-features.h.
20536
20537         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
20538
20539 2012-02-08  Marek Polacek  <polacek@redhat.com>
20540
20541         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
20542         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
20543         * sysdeps/gnu/_G_config.h: Likewise.
20544         * sysdeps/generic/_G_config.h: Likewise.
20545
20546 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
20547
20548         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
20549         tests.
20550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20551
20552         * sysdeps/powerpc/powerpc32/crti.S: New file.
20553         * sysdeps/powerpc/powerpc32/crtn.S: New file.
20554         * sysdeps/powerpc/powerpc64/crti.S: New file.
20555         * sysdeps/powerpc/powerpc64/crtn.S: New file.
20556
20557         * Makeconfig (have-initfini): Don't set.
20558         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
20559         * configure.in (nopic_initfini): Don't substitute.
20560         * config.h.in (HAVE_INITFINI): Don't #undef.
20561         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
20562         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
20563
20564 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
20565
20566         Support crti.S and crtn.S provided directly by architectures.
20567         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
20568         [crti.S in sysdirs] (omit-deps): Likewise.
20569         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
20570         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
20571         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
20572         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
20573         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
20574         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
20575         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
20576         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
20577         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
20578         compiler output for sysdeps/generic/initfini.c.
20579         * sysdeps/i386/elf/Makefile: Remove file.
20580         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
20581
20582 2012-02-07  Marek Polacek  <polacek@redhat.com>
20583
20584         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
20585         * sysdeps/gnu/_G_config.h: Likewise.
20586         * sysdeps/mach/hurd/_G_config.h: Likewise.
20587
20588 2012-02-07  Marek Polacek  <polacek@redhat.com>
20589
20590         * math/Makefile (tests): Add tst-CMPLX2.
20591         * math/tst-CMPLX2.c: New file.
20592
20593 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
20594
20595         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20596
20597         * math/libm-test.inc (jn_test): Add missing L suffix.
20598
20599 2012-02-06  Marek Polacek  <polacek@redhat.com>
20600
20601         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
20602         * sysdeps/i386/fpu/e_powf.S: Likewise.
20603         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20604         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
20605         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20606         * sysdeps/i386/fpu/e_pow.S: Likewise.
20607         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20608         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20609         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20610         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20611         * sysdeps/i386/fpu/e_log2.S: Likewise.
20612         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20613         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20614         * sysdeps/i386/fpu/e_powl.S: Likewise.
20615         * sysdeps/i386/fpu/s_log1p.S: Likewise.
20616         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20617         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20618         * sysdeps/i386/fpu/e_logl.S: Likewise.
20619         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20620         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
20621         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20622         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20623         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20624         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20625         * sysdeps/i386/fpu/e_log.S: Likewise.
20626         * sysdeps/i386/fpu/s_cexp.S: Likewise.
20627         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20628         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
20629         * sysdeps/i386/fpu/e_logf.S: Likewise.
20630         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20631         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20632         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
20633         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20634         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
20635         * sysdeps/i386/fpu/e_log10.S: Likewise.
20636         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20637         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20638         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20639         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20640         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20641         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20642         * sysdeps/i386/asm-syntax.h: Likewise.
20643         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20644         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20645         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20646         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
20647         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
20648         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20649         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20650         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20651         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20652         * sysdeps/powerpc/sysdep.h: Likewise.
20653         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20654         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20655
20656 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20657
20658         [BZ #411]
20659         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
20660
20661 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20662
20663         * sysdeps/i386/sysdep.h: Include <features.h>.
20664         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
20665         version.
20666
20667 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
20668
20669         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
20670         Define.
20671         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
20672         LOAD_PIC_REG_STR.
20673
20674 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20675
20676         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
20677         (SETUP_PIC_REG): Use GET_PC_THUNK.
20678         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
20679         macro.
20680
20681 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20682
20683         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
20684         for non-PIC compilation.
20685         (SETUP_PIC_REG): Add .p2align directive.
20686         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
20687         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
20688         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20689         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20690         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
20691         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20692         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
20693         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20694         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20695         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20696         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20697         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20698         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20699         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20700         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20701         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
20702         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
20703         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20704         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20705         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20706         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20707         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
20708         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20709         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20710         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
20711         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
20712         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20713         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
20714         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20715         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20716         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20717         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20718         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20719         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20720         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20721         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20722         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20723         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20724         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20725         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20726         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20727
20728 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20729
20730         * math/tst-CMPLX.c: Include <stdio.h>.
20731
20732 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
20733
20734         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
20735         float.
20736         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
20737         * sysdeps/sparc/bits/mathdef.h: Likewise.
20738
20739 2012-01-31  Marek Polacek  <polacek@redhat.com>
20740
20741         * libio/libio.h: Don't define _PARAMS.
20742         * locale/programs/config.h: Don't define PARAMS.
20743         * stdlib/strtol_l.c: Likewise.
20744         (__strtol_l): Remove PARAMS from the prototype.
20745
20746 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
20747
20748         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
20749         names.  Just use the correct names.  Remove unnecessary wrapper
20750         functions.
20751         * malloc/arena.c: Likewise.
20752         * malloc/hooks.c: Likewise.
20753
20754         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
20755         ARENA_TEST says not to.  Simplify test for creation of a new arena.
20756         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
20757
20758 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
20759
20760         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
20761         into tail calls.
20762         (update_get_addr): New function.
20763         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
20764         GET_ADDR_MODULE parameter.
20765
20766 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20767
20768         * crypt/cert.c: Remove __STDC__ conditionals.
20769         * crypt/crypt-entry.c: Likewise.
20770         * crypt/crypt_util.c: Likewise.
20771         * libio/filedoalloc.c: Likewise.
20772         * libio/fileops.c: Likewise.
20773         * libio/genops.c: Likewise.
20774         * libio/iofclose.c: Likewise.
20775         * libio/iofdopen.c: Likewise.
20776         * libio/iofopen.c: Likewise.
20777         * libio/iofopen64.c: Likewise.
20778         * libio/iogetdelim.c: Likewise.
20779         * libio/iopopen.c: Likewise.
20780         * libio/obprintf.c: Likewise.
20781         * libio/oldfileops.c: Likewise.
20782         * libio/oldiofclose.c: Likewise.
20783         * libio/oldiofdopen.c: Likewise.
20784         * libio/oldiofopen.c: Likewise.
20785         * libio/oldiopopen.c: Likewise.
20786         * libio/wfiledoalloc.c: Likewise.
20787         * libio/wgenops.c: Likewise.
20788         * locale/programs/xmalloc.c: Likewise.
20789         * misc/syslog.c: Likewise.
20790         * stdio-common/xbug.c: Likewise.
20791         * string/memchr.c: Likewise.
20792         * string/memcmp.c: Likewise.
20793         * string/memrchr.c: Likewise.
20794         * string/rawmemchr.c: Likewise.
20795         * sysdeps/posix/getcwd.c: Likewise.
20796         * time/strftime_l.c: Likewise.
20797
20798 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20799
20800         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
20801         * config.make.in (config-cflags-sse2avx): Define.
20802         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
20803         Fix typo.
20804
20805 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
20806
20807         * scripts/config.guess: Update from upstream config git repository.
20808         * scripts/config.sub: Likewise.
20809
20810 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
20811
20812         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
20813         (EM_NUM): Update.
20814         (R_TILEPRO_*, R_TILEGX_*): New macros.
20815
20816         * scripts/firstversions.awk: Fix bug in version range handling.
20817
20818         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
20819
20820         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
20821
20822         * include/sys/epoll.h: New file.
20823         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
20824         libc_hidden_def.
20825
20826 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
20827
20828         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
20829         Avoid unnecessary __WORDSIZE == 64 test.
20830         (fmaxf): Use VEX format if possible.
20831         (fmax): Likewise.
20832         (fminf): Likewise.
20833         (fmin): Likewise.
20834
20835         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
20836         * math/math_private.h: Remove libc_fegetround* and
20837         libc_fesetround*.
20838         * sysdeps/i386/configure.in: Check for -msse2avx.
20839         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
20840         also if SSE2AVX is defined.
20841         Remove libc_fegetround* and libc_fesetround*.
20842         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
20843         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
20844         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
20845         of HAS_YMM_USABLE.
20846         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20847         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20848         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20849         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20850         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20851
20852         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
20853
20854 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20855
20856         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
20857         size is not set.
20858         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20859
20860 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
20861
20862         [BZ #13618]
20863         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
20864         relocation.
20865         * Makeconfig (libm): Define.
20866         * elf/Makefile: Add rules to build and run tst-relsort1.
20867         * elf/tst-relsort1.c: New file.
20868         * elf/tst-relsort1mod1.c: New file.
20869         * elf/tst-relsort1mod2.c: New file.
20870
20871 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
20872
20873         * math/s_ldexp.c: Remove __STDC__ conditionals.
20874         * math/s_ldexpf.c: Likewise.
20875         * math/s_ldexpl.c: Likewise.
20876         * math/s_nextafter.c: Likewise.
20877         * math/s_nexttowardf.c: Likewise.
20878         * math/s_significand.c: Likewise.
20879         * math/s_significandf.c: Likewise.
20880         * math/s_significandl.c: Likewise.
20881         * math/w_jnl.c: Likewise.
20882         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20883         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20884         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20885         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20886         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20887         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20888         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
20889         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20890         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20891         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20892         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20893         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20894         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20895         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20896         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20897         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20898         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20899         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20900         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20901         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20902         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20903         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20904         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20905         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20906         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20907         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20908         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20909         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20910         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20911         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20912         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20913         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20914         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20915         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20916         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20917         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20918         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20919         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20920         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20921         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20922         * sysdeps/ieee754/k_standard.c: Likewise.
20923         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20924         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20925         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20926         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20927         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20928         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20929         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20930         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20931         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20932         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20933         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20934         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20935         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20936         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20937         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20938         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20939         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20940         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20941         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20942         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20943         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20944         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20945         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20946         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20947         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20948         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20949         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20950         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20951         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20952         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20953         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20954         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
20955         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20956         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20957         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20958         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20959         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
20960         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20961         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20962         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
20963         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
20964         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20965         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
20966         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
20967         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20968         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
20969         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
20970         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20971         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20972         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
20973         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
20974         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20975         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20976         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20977         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20978         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20979         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
20980         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20981         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20982         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20983         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20984         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20985         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20986         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20987         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20988         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20989         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20990         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20991         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20992         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20993         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20994         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20995         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20996         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20997         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20998         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20999         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
21000         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
21001         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
21002         * sysdeps/ieee754/s_matherr.c: Likewise.
21003         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
21004         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
21005         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
21006         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
21007
21008 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21009
21010         * crypt/md5.h: Remove __STDC__ conditionals.
21011         * libio/libioP.h: Likewise.
21012         * locale/programs/config.h: Likewise.
21013         * sysdeps/generic/sysdep.h: Likewise.
21014         * sysdeps/i386/asm-syntax.h: Likewise.
21015         * sysdeps/s390/asm-syntax.h: Likewise.
21016         * sysdeps/unix/sysdep.h: Likewise.
21017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
21018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21019
21020 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
21021
21022         * libio/libio.h: Remove __STDC__ conditionals.
21023         * malloc/obstack.h: Likewise.
21024         * math/complex.h: Likewise.
21025         * math/math.h: Likewise.
21026         * sysdeps/generic/_G_config.h: Likewise.
21027         * sysdeps/gnu/_G_config.h: Likewise.
21028         * sysdeps/mach/hurd/_G_config.h: Likewise.
21029         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21030         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
21031         * sysdeps/sparc/bits/mathdef.h: Likewise.
21032
21033 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
21034
21035         [BZ #13583]
21036         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
21037         Clean up HAS_* macros.
21038         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
21039         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
21040         possible.
21041         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
21042         HAS_AVX.
21043         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
21044         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
21045         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
21046         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
21047         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
21048
21049 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
21050
21051         * elf/tst-unique3.cc (gets): Remove declaration.
21052         * elf/tst-unique3lib.cc (gets): Likewise.
21053         * elf/tst-unique3lib2.cc (gets): Likewise.
21054         * elf/tst-unique4.cc (gets): Likewise.
21055
21056 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
21057
21058         * include/stdio.h: Add C++ protection.  Add gets declarations and
21059         definitions.
21060         * debug/tst-chk1.c: Don't declare gets here.
21061         * stdio-common/tst-gets.c: Likewise.
21062
21063 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21064
21065         * posix/glob: Remove directory.
21066
21067 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
21068
21069         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
21070
21071 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
21072
21073         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
21074         of the non-standard EPFNOSUPPORT.
21075
21076 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21077
21078         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
21079         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
21080         ANYWHERE set to 1 only on KERN_NO_SPACE error.
21081
21082 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
21083
21084         * wcsmbs/uchar.h: Test __STDC_VERSION__.
21085
21086 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
21087
21088         * nscd/aicache.c (addhstaiX): Do not cache negative results of
21089         transient errors.
21090         * nscd/grpcache.c (cache_addgr): Likewise.
21091         * nscd/hstcache.c (cache_addhst): Likewise.
21092         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21093         * nscd/pwdcache.c (cache_addpw): Likewise.
21094         * nscd/servicescache.c (cache_addserv): Likewise.
21095
21096 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
21097
21098         * malloc/malloc.c: Various cleanups.
21099         * malloc/hooks.c: Likewise.
21100
21101         * stdlib/Makefile (tests): Add bug-fmtmsg1.
21102         * stdlib/bug-fmtmsg1.c: New file.
21103
21104         * stdlib/fmtmsg.c (init): Add missing unlock.
21105         Patch by Peng Haitao <penght@cn.fujitsu.com>.
21106
21107 2012-01-12  Marek Polacek  <polacek@redhat.com>
21108
21109         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
21110         and _GNU_SOURCE.
21111
21112 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
21113
21114         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
21115         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
21116         macro to ensure uniqueness of label name.
21117         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21118         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21119
21120 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
21121
21122         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21123
21124         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21125         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21126         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21127         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21128
21129 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21130
21131         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21132
21133         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21134         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21135         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21136
21137         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21138
21139         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21140         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21141         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21142         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21143
21144         * math/bits/math-finite.h: Add ldexp support.
21145
21146 2012-01-10  Marek Polacek  <polacek@redhat.com>
21147
21148         * locale/programs/localedef.h (show_archive_content): Add noreturn
21149         attribute.
21150
21151 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21152
21153         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21154
21155 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21156
21157         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21158
21159         * io/Makefile (headers): Add bits/poll2.h.
21160
21161 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21162
21163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21164         typo #include statement.
21165
21166 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21167
21168         * include/sys/cdefs.h: Define __attribute_alloc_size.
21169         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21170         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21171         * elf/pldd.c: Likewise.
21172         * iconv/iconv_charmap.c: Likewise.
21173         * iconv/iconvconfig.c: Likewise.
21174         * iconv/strtab.c: Likewise.
21175         * locale/programs/locale.c: Likewise.
21176         * locale/programs/localedef.h: Likewise.
21177         * locale/programs/simple-hash.c: Likewise.
21178         * nscd/nscd.h: Likewise.
21179         * nss/makedb.c: Likewise.
21180         * sysdeps/generic/ldconfig.h: Likewise.
21181         * locale/programs/localedef.c: Remove xmalloc prototype.
21182         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21183
21184 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21185
21186         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21187         appropriate.
21188
21189 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21190
21191         * math/Makefile (tests): Add tst-CMPLX.
21192         * math/tst-CMPLX.c: New file.
21193
21194         * math/complex.h (CMPLXL): Fix typo.
21195
21196         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21197         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21198         GLIBC_2.16.
21199         * debug/tst-chk1.c: Add poll and ppoll tests.
21200         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21201         * include/sys/poll.h: Add hidden proto for ppoll.
21202         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21203         * sysdeps/mach/hurd/ppoll.c: Likewise.
21204         * io/ppoll.c: Likewise.
21205         * debug/poll_chk.c: New file.
21206         * debug/ppoll_chk.c: New file.
21207         * include/bits/poll2.h: New file.
21208         * io/bits/poll2.h: New file.
21209
21210         [BZ #1350]
21211         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21212
21213         * configure.in: static is always set to yes.  Remove.
21214         * config.make.in: Don't set build-static.
21215         * Makeconfig: Remove use of build-static.
21216         * dlfcn/Makefile: Likewise.
21217         * elf/Makefile: Likewise.
21218         * math/Makefile: Likewise.
21219         * misc/Makefile: Likewise.
21220         * nptl/Makefile: Likewise.
21221         * sysdeps/mach/hurd/Makefile: Likewise.
21222
21223         * configure.in: PWD_P is not used anymore.
21224         * config.make.in: Remove PWD_P entry.
21225
21226         * configure.in: Remove last remnants of RANLIB.
21227         No need to check for signed size_t anymore.
21228         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21229         and IA-64.
21230         Remove __builtin_expect test because we require at least gcc 3.4.
21231         * aclocal.m4: Likewise.
21232
21233         * wcsmbs/mbrtoc16.c: Implement using towc function.
21234         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21235         * wcsmbs/wcsmbsload.c: Likewise.
21236         * iconv/gconv_simple.c: Likewise.
21237         * iconv/gconv_int.h: Likewise.
21238         * iconv/gconv_builtin.h: Likewise.
21239         * iconv/iconv_prog.c: Remove CHAR16 handling.
21240
21241         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21242
21243         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21244
21245         * configure.in: Remove --with-elf and --enable-bounded options.
21246         Dont set base_machine for ia64.  More non-ELF conditions removed.
21247         Remove testing and setting of leading underscore information.
21248         * config.make.in (build-bounded): Set to no.
21249         * config.h.in: Remove NO_UNDERSCORES entry.
21250         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21251         them.
21252         * csu/start.c: Remove !NO_UNDERSCORE code.
21253         * locale/localeinfo.h: Likewise.
21254         * sysdeps/generic/machine-gmon.h: Likewise.
21255         * sysdeps/generic/sysdep.h: Likewise.
21256         * sysdeps/i386/sysdep.h: Likewise.
21257         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21258         * sysdeps/mach/sysdep.h: Likewise.
21259         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21260         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21261         * sysdeps/sh/sysdep.h: Likewise.
21262         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21263         * sysdeps/unix/i386/sysdep.S: Likewise.
21264         * sysdeps/unix/sparc/start.c: Likewise.
21265         * sysdeps/unix/sparc/sysdep.S: Likewise.
21266         * sysdeps/unix/sparc/sysdep.h: Likewise.
21267         * sysdeps/unix/start.c: Likewise.
21268         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21269         * sysdeps/x86_64/sysdep.h: Likewise.
21270
21271 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21272
21273         [BZ #13553]
21274         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21275         for non-gcc.
21276         * argp/argp-fmtstream.h: Use const instead __const.
21277         * argp/argp.h: Likewise.
21278         * assert/assert.h: Likewise.
21279         * bits/fenv.h: Likewise.
21280         * bits/sched.h: Likewise.
21281         * bits/sigset.h: Likewise.
21282         * bits/sigthread.h: Likewise.
21283         * catgets/nl_types.h: Likewise.
21284         * conform/data/pthread.h-data: Likewise.
21285         * crypt/crypt-private.h: Likewise.
21286         * crypt/crypt.h: Likewise.
21287         * crypt/crypt_util.c: Likewise.
21288         * ctype/ctype.h: Likewise.
21289         * debug/execinfo.h: Likewise.
21290         * debug/mbsnrtowcs_chk.c: Likewise.
21291         * debug/mbsrtowcs_chk.c: Likewise.
21292         * debug/wcsnrtombs_chk.c: Likewise.
21293         * debug/wcsrtombs_chk.c: Likewise.
21294         * debug/wcstombs_chk.c: Likewise.
21295         * dirent/dirent.h: Likewise.
21296         * dlfcn/dlfcn.h: Likewise.
21297         * elf/neededtest4.c: Likewise.
21298         * grp/grp.h: Likewise.
21299         * gshadow/gshadow.h: Likewise.
21300         * iconv/gconv.h: Likewise.
21301         * iconv/gconv_int.h: Likewise.
21302         * iconv/gconv_simple.c: Likewise.
21303         * iconv/iconv.h: Likewise.
21304         * iconv/loop.c: Likewise.
21305         * iconv/skeleton.c: Likewise.
21306         * include/aio.h: Likewise.
21307         * include/aliases.h: Likewise.
21308         * include/argz.h: Likewise.
21309         * include/arpa/inet.h: Likewise.
21310         * include/assert.h: Likewise.
21311         * include/dirent.h: Likewise.
21312         * include/dlfcn.h: Likewise.
21313         * include/execinfo.h: Likewise.
21314         * include/fcntl.h: Likewise.
21315         * include/fenv.h: Likewise.
21316         * include/glob.h: Likewise.
21317         * include/grp.h: Likewise.
21318         * include/libintl.h: Likewise.
21319         * include/mntent.h: Likewise.
21320         * include/netdb.h: Likewise.
21321         * include/pwd.h: Likewise.
21322         * include/rpc/netdb.h: Likewise.
21323         * include/sched.h: Likewise.
21324         * include/search.h: Likewise.
21325         * include/shadow.h: Likewise.
21326         * include/signal.h: Likewise.
21327         * include/stdio.h: Likewise.
21328         * include/stdlib.h: Likewise.
21329         * include/string.h: Likewise.
21330         * include/sys/socket.h: Likewise.
21331         * include/sys/stat.h: Likewise.
21332         * include/sys/statfs.h: Likewise.
21333         * include/sys/statvfs.h: Likewise.
21334         * include/sys/syslog.h: Likewise.
21335         * include/sys/time.h: Likewise.
21336         * include/sys/uio.h: Likewise.
21337         * include/time.h: Likewise.
21338         * include/unistd.h: Likewise.
21339         * include/utmp.h: Likewise.
21340         * include/wchar.h: Likewise.
21341         * include/wctype.h: Likewise.
21342         * inet/aliases.h: Likewise.
21343         * inet/arpa/inet.h: Likewise.
21344         * inet/netinet/ether.h: Likewise.
21345         * inet/netinet/in.h: Likewise.
21346         * intl/libintl.h: Likewise.
21347         * io/bits/fcntl2.h: Likewise.
21348         * io/fcntl.h: Likewise.
21349         * io/ftw.h: Likewise.
21350         * io/sys/poll.h: Likewise.
21351         * io/sys/stat.h: Likewise.
21352         * io/sys/statfs.h: Likewise.
21353         * io/sys/statvfs.h: Likewise.
21354         * io/utime.h: Likewise.
21355         * libio/bits/stdio.h: Likewise.
21356         * libio/bits/stdio2.h: Likewise.
21357         * libio/libio.h: Likewise.
21358         * libio/libioP.h: Likewise.
21359         * libio/stdio.h: Likewise.
21360         * locale/lc-ctype.c: Likewise.
21361         * locale/locale.h: Likewise.
21362         * login/utmp.h: Likewise.
21363         * malloc/arena.c: Likewise.
21364         * malloc/malloc.c: Likewise.
21365         * malloc/malloc.h: Likewise.
21366         * malloc/mcheck.c: Likewise.
21367         * malloc/mtrace.c: Likewise.
21368         * math/bits/mathcalls.h: Likewise.
21369         * math/fenv.h: Likewise.
21370         * math/math_private.h: Likewise.
21371         * misc/bits/error.h: Likewise.
21372         * misc/bits/syslog.h: Likewise.
21373         * misc/err.h: Likewise.
21374         * misc/error.h: Likewise.
21375         * misc/fstab.h: Likewise.
21376         * misc/mntent.h: Likewise.
21377         * misc/regexp.h: Likewise.
21378         * misc/search.h: Likewise.
21379         * misc/sgtty.h: Likewise.
21380         * misc/sys/mman.h: Likewise.
21381         * misc/sys/syslog.h: Likewise.
21382         * misc/sys/uio.h: Likewise.
21383         * misc/sys/xattr.h: Likewise.
21384         * misc/ttyent.h: Likewise.
21385         * nis/rpcsvc/ypclnt.h: Likewise.
21386         * nss/nss.h: Likewise.
21387         * posix/bits/unistd.h: Likewise.
21388         * posix/fnmatch.h: Likewise.
21389         * posix/glob.h: Likewise.
21390         * posix/sched.h: Likewise.
21391         * posix/spawn.h: Likewise.
21392         * posix/sys/wait.h: Likewise.
21393         * posix/unistd.h: Likewise.
21394         * posix/wordexp.h: Likewise.
21395         * pwd/pwd.h: Likewise.
21396         * resolv/netdb.h: Likewise.
21397         * resource/sys/resource.h: Likewise.
21398         * rt/aio.h: Likewise.
21399         * rt/bits/mqueue2.h: Likewise.
21400         * rt/mqueue.h: Likewise.
21401         * shadow/shadow.h: Likewise.
21402         * signal/signal.h: Likewise.
21403         * socket/send.c: Likewise.
21404         * socket/sendto.c: Likewise.
21405         * socket/sys/socket.h: Likewise.
21406         * stdio-common/printf.h: Likewise.
21407         * stdlib/bits/stdlib.h: Likewise.
21408         * stdlib/fmtmsg.h: Likewise.
21409         * stdlib/monetary.h: Likewise.
21410         * stdlib/stdlib.h: Likewise.
21411         * stdlib/ucontext.h: Likewise.
21412         * streams/stropts.h: Likewise.
21413         * string/argz.h: Likewise.
21414         * string/bits/string2.h: Likewise.
21415         * string/string.h: Likewise.
21416         * string/strings.h: Likewise.
21417         * sunrpc/rpc/auth.h: Likewise.
21418         * sunrpc/rpc/auth_des.h: Likewise.
21419         * sunrpc/rpc/clnt.h: Likewise.
21420         * sunrpc/rpc/netdb.h: Likewise.
21421         * sunrpc/rpc/pmap_clnt.h: Likewise.
21422         * sunrpc/rpc/xdr.h: Likewise.
21423         * sysdeps/generic/inttypes.h: Likewise.
21424         * sysdeps/generic/net/if.h: Likewise.
21425         * sysdeps/generic/sys/swap.h: Likewise.
21426         * sysdeps/gnu/net/if.h: Likewise.
21427         * sysdeps/gnu/utmpx.h: Likewise.
21428         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
21429         * sysdeps/i386/i486/bits/string.h: Likewise.
21430         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
21431         * sysdeps/s390/bits/string.h: Likewise.
21432         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
21433         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
21434         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
21435         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
21436         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
21437         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
21438         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
21439         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
21440         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
21441         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
21442         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
21443         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
21444         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
21445         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
21446         * sysdeps/unix/sysv/linux/readv.c: Likewise.
21447         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
21448         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
21449         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21450         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
21451         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
21452         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21453         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
21454         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
21455         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
21456         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
21457         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
21458         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
21459         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21460         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
21461         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
21462         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
21463         * sysvipc/sys/ipc.h: Likewise.
21464         * sysvipc/sys/msg.h: Likewise.
21465         * sysvipc/sys/sem.h: Likewise.
21466         * sysvipc/sys/shm.h: Likewise.
21467         * termios/termios.h: Likewise.
21468         * time/sys/time.h: Likewise.
21469         * time/time.h: Likewise.
21470         * wcsmbs/bits/wchar2.h: Likewise.
21471         * wcsmbs/uchar.h: Likewise.
21472         * wcsmbs/wchar.h: Likewise.
21473         * wctype/wctype.h: Likewise.
21474
21475         [BZ #13551]
21476         * Makeconfig: Remove all but ELF support including AIX support.
21477         * Makerules: Likewise.
21478         * config.h.in: Likewise.
21479         * config.make.in: Likewise.
21480         * configure: Likewise.
21481         * configure.in: Likewise.
21482         * csu/Makefile: Likewise.
21483         * csu/version.c: Likewise.
21484         * debug/Makefile: Likewise.
21485         * dlfcn/Makefile: Likewise.
21486         * elf/Makefile: Likewise.
21487         * extra-lib.mk: Likewise.
21488         * iconv/Makefile: Likewise.
21489         * include/libc-symbols.h: Likewise.
21490         * include/shlib-compat.h: Likewise.
21491         * resolv/Makefile: Likewise.
21492         * resolv/res_libc.c: Likewise.
21493         * rt/Makefile: Likewise.
21494         * sysdeps/i386/asm-syntax.h: Likewise.
21495         * sysdeps/i386/sysdep.h: Likewise.
21496         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21497         * sysdeps/mach/sysdep.h: Likewise.
21498         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
21499         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
21500         * sysdeps/s390/asm-syntax.h: Likewise.
21501         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21502         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21503         * sysdeps/sh/sysdep.h: Likewise.
21504         * sysdeps/unix/sparc/sysdep.h: Likewise.
21505         * sysdeps/wordsize-32/divdi3.c: Likewise.
21506         * sysdeps/x86_64/sysdep.h: Likewise.
21507
21508         * argp/Versions: Remove _argp_unlock_xxx.
21509
21510         [BZ #13559]
21511         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
21512         * abilist/libBrokenLocale.abilist: Likewise.
21513         * abilist/libanl.abilist: Likewise.
21514         * abilist/libc.abilist: Likewise.
21515         * abilist/libcrypt.abilist: Likewise.
21516         * abilist/libdl.abilist: Likewise.
21517         * abilist/libm.abilist: Likewise.
21518         * abilist/libnsl.abilist: Likewise.
21519         * abilist/libpthread.abilist: Likewise.
21520         * abilist/libresolv.abilist: Likewise.
21521         * abilist/librt.abilist: Likewise.
21522         * abilist/libthread_db.abilist: Likewise.
21523         * abilist/libutil.abilist: Likewise.
21524         * abilist/libnss_db.abilist: New file.
21525
21526         * scripts/abilist.awk: Add support for indirect functions.
21527
21528         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
21529
21530         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
21531
21532         * shlib-versions: Remove entries for ports architectures.
21533
21534         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
21535         files in ports.
21536         * elf/stackguard-macros.h: Remove support for IA-64.
21537         * elf/tst-auditmod1.c: Likewise.
21538         * sysdeps/generic/ldsodefs.h: Likewise.
21539
21540         * sysdeps/unix/sysv/linux/configure.in: Ports should define
21541         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
21542         configure files.
21543
21544         [BZ #13552]
21545         * configure.in: Remove --enable-omitfp support.
21546         * FAQ.in: Adjust.
21547         * config.make.in: Likewise.
21548         * Makeconfig: Likewise.
21549         * manual/install.texi: Likewise.
21550
21551         In case anyone cares, the IA-64 architecture could move to ports.
21552         * sysdeps/ia64/*: Removed.
21553         * sysdeps/unix/sysv/linux/ia64/*: Removed.
21554         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
21555
21556         [BZ #13555]
21557         * configure.in: Remove entries for unsupported architectures.
21558
21559         [BZ #13533]
21560         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
21561         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
21562         routines.
21563         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
21564         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
21565         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
21566         fall back to using wcrtomb.
21567         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
21568         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
21569         renaming.
21570         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
21571         * wcsmbs/tst-c16c32-1.c: New file.
21572
21573         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
21574         local variable.
21575
21576         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
21577
21578         * elf/tst-unique3.cc: Add explicit declaration of gets.
21579         * elf/tst-unique3lib.cc: Likewise.
21580         * elf/tst-unique3lib2.cc: Likewise.
21581         * elf/tst-unique4.cc: Likewise.
21582
21583         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
21584
21585 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
21586
21587         [BZ #13566]
21588         * assert/assert.h (static_assert): Don't define for C++.
21589         * libio/stdio.h (gets): Do declare for C++ <= C++11.
21590         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
21591
21592 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
21593
21594         * iconv/loop.c (single loop): Fix assertion in storing of
21595         remaining bytes.
21596
21597         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
21598
21599 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
21600
21601         * posix/getconf.c: Update copyright year.
21602         * nss/getent.c: Likewise.
21603         * nss/makedb.c: Likewise.
21604         * iconv/iconvconfig.c: Likewise.
21605         * iconv/iconv_prog.c: Likewise.
21606         * elf/ldconfig.c: Likewise.
21607         * elf/pldd.c: Likewise.
21608         * elf/sotruss.ksh: Likewise.
21609         * catgets/gencat.c: Likewise.
21610         * csu/version.c: Likewise.
21611         * elf/ldd.bash.in: Likewise.
21612         * elf/sprof.c (print_version): Likewise.
21613         * locale/programs/locale.c: Likewise.
21614         * locale/programs/localedef.c: Likewise.
21615         * login/programs/pt_chown.c: Likewise.
21616         * nscd/nscd.c (print_version): Likewise.
21617         * debug/xtrace.sh: Likewise.
21618         * malloc/memusage.sh: Likewise.
21619         * malloc/mtrace.pl: Likewise.
21620         * debug/catchsegv.sh: Likewise.
21621
21622 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
21623
21624         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
21625         pure attribute.
21626
21627 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
21628
21629         [BZ #13533]
21630         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
21631         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
21632         transformations.
21633         * iconv/gconv_int.h: Likewise.
21634         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
21635         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
21636         from libc for GLIBC_2.16.
21637         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
21638         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
21639         * wcsmbs/uchar.h: Really define mbstate_t.
21640         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
21641         * wcsmbs/c16rtomb.c: New file.
21642         * wcsmbs/mbrtoc16.c: New file.
21643         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
21644         for C/POSIX locale.
21645         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
21646         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
21647
21648         * wcsmbs/wchar.h: Add missing __restrict.
21649
21650 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21651
21652         [BZ #13532]
21653         * time/Makefile (routines): Add timespec_get.
21654         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
21655         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
21656         timespec for ISO C11.
21657         * time/timespec_get.c: New file.
21658         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
21659         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
21660
21661         [BZ #13531]
21662         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
21663         * stdlib/stdlib.h: Declare aligned_alloc.
21664         * Versions.def: Add GLIBC_2.16 for libc.
21665         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
21666
21667         [BZ 13527]
21668         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
21669         ISO C11.
21670
21671         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
21672         code.
21673
21674         [BZ #13528]
21675         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
21676
21677         [BZ #13529]
21678         * assert/assert.h (static_assert): Define.
21679
21680         * version.h: Update for 2.16 development version.
21681
21682         [BZ #13526]
21683         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
21684         _ISOC11_SOURCE.
21685
21686         * version.h (RELEASE): Bump for 2.15 release.
21687         * include/features.h (__GLIBC_MINOR__): Bump to 15.
21688
21689         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
21690         Patch by Marek Polacek <mpolacek@redhat.com>.
21691
21692         * bits/byteswap.h: Protect long long constants with __extension__.
21693         * sysdeps/i386/bits/byteswap.h: Likewise.
21694         * sysdeps/ia64/bits/byteswap.h: Likewise.
21695         * sysdeps/s390/bits/byteswap.h: Likewise.
21696         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21697
21698 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21699
21700         [BZ #13540]
21701         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
21702         destination buffer.
21703         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
21704
21705 2011-12-23  Marek Polacek  <polacek@redhat.com>
21706
21707         * elf/dl-addr.c (determine_info): Add inline keyword.
21708         * elf/tst-auditmod4b.c (check_avx): Likewise.
21709         * elf/tst-auditmod6b.c (check_avx): Likewise.
21710         * elf/tst-auditmod6c.c (check_avx): Likewise.
21711         * elf/tst-auditmod7b.c (check_avx): Likewise.
21712
21713 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21714
21715         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
21716         !__SSE_MATH__.
21717
21718 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21719
21720         [BZ #13540]
21721         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
21722         processing for last bytes.
21723
21724 2011-08-06  Bruno Haible  <bruno@clisp.org>
21725
21726         [BZ #13061]
21727         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
21728         U+0385, not to U+1FEE.
21729
21730         [BZ #13062]
21731         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
21732         entry for U+00A5 U+0301.
21733
21734 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21735
21736         [BZ #13166]
21737         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
21738         buffer for the output is too small.
21739
21740         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
21741         optimization.
21742
21743         [BZ #13185]
21744         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
21745         SSE flags if possible.
21746
21747 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21748
21749         [BZ #13540]
21750         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
21751         processing for last bytes.
21752
21753 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
21754
21755         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
21756         (syscall-list-default-options, syscall-list-default-condition)
21757         (syscall-list-includes): Define.
21758         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
21759         list of ABIs and options and #if conditions for each ABI.  Do not
21760         handle common syscalls between ABIs specially.
21761         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
21762         Remove.
21763         (syscall-list-variants, syscall-list-32bit-options)
21764         (syscall-list-32bit-condition, syscall-list-64bit-options)
21765         (syscall-list-64bit-condition): Define.
21766         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
21767         (syscall-list-variants, syscall-list-32bit-options)
21768         (syscall-list-32bit-condition, syscall-list-64bit-options)
21769         (syscall-list-64bit-condition): Define.
21770         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
21771         Remove.
21772         (syscall-list-variants, syscall-list-32bit-options)
21773         (syscall-list-32bit-condition, syscall-list-64bit-options)
21774         (syscall-list-64bit-condition): Define.
21775         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
21776         Remove.
21777         (syscall-list-variants, syscall-list-32bit-options)
21778         (syscall-list-32bit-condition, syscall-list-64bit-options)
21779         (syscall-list-64bit-condition): Define.
21780
21781 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21782
21783         * locale/iso-639.def: Add brx entry.
21784
21785         [BZ #13328]
21786         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
21787         Proposed by Mariusz_Cukr <marcukr@op.pl>.
21788
21789         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
21790         __feraiseexcept_renamed.
21791
21792 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21793
21794         [BZ #13538]
21795         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
21796         EPOLLET with unsigned values.
21797         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21798         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21799
21800         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
21801         to large cancellation.
21802         * math/s_cacoshf.c: Likewise.
21803         * math/s_cacoshl.c: Likewise.
21804
21805 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
21806
21807         [BZ #13305]
21808         [BZ #12786]
21809         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
21810         * math/s_cacoshf.c: Likewise.
21811         * math/s_cacoshl.c: Likewise.
21812
21813 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21814
21815         [BZ #13439]
21816         * iconv/gconv.h: Define __GCONV_SWAP.
21817         * iconvdata/unicode.c: The swap bit must be stored in __flags.
21818         * iconvdata/utf-16.c: Likewise.
21819         * iconvdata/utf-32.c: Likewise.
21820
21821 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
21822
21823         [BZ #13524]
21824         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
21825         numerator after shifting it by one limb.
21826
21827 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21828
21829         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
21830         under [__USE_EXTERN_INLINES].
21831
21832 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21833
21834         [BZ #13446]
21835         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
21836
21837 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21838
21839         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
21840         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
21841         optimized code.
21842         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
21843         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
21844         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
21845         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
21846         for strncasecmp/strncasecmp_l compilation.
21847         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
21848         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
21849
21850 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
21851
21852         [BZ #13484]
21853         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
21854         of __asm__.
21855
21856 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21857
21858         [BZ #13506]
21859         * time/tzfile.c (__tzfile_read): Check values from file header.
21860
21861 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
21862
21863         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
21864         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
21865         * powerpc/powerpc32/dl-start.S: Likewise.
21866         * powerpc/powerpc32/elf/start.S: Likewise.
21867         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
21868         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
21869         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
21870         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
21871         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
21872         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
21873         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
21874         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
21875         * powerpc/powerpc32/fpu/s_round.S: Likewise.
21876         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
21877         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
21878         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
21879         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
21880         * powerpc/powerpc32/memset.S: Likewise.
21881         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
21882         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
21883         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
21884         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
21885         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
21886         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
21887         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
21888         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
21889         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
21890         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
21891         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
21892         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21893         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21894
21895 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21896
21897         * math/libm-test.inc: Added more nearbyint tests.
21898         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
21899         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
21900         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
21901         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
21902
21903 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
21904
21905         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
21906         FD_CLOEXEC.
21907
21908 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21909
21910         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
21911         Add wcscpy-ssse3 wcscpy-c.
21912         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
21913         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
21914         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
21915         * sysdeps/x86_64/wcschr.S: New file.
21916         * sysdeps/x86_64/wcsrchr.S: New file.
21917         * string/test-strcmp.c: Remove checking of wcscmp function for
21918         wrong alignments.
21919         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
21920         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
21921         wcsrchr-sse2 wcsrchr-c.
21922         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
21923         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
21924         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
21925         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
21926         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
21927         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
21928         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
21929         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
21930         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
21931         * wcsmbc/wcschr.c (WCSCHR): New macro.
21932
21933 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21934
21935         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
21936         * wcsmbs/test-wcsrchr.c: New file.
21937         * string/test-strrchr.c: Add wcsrchr support.
21938         (WIDE): New macro.
21939         * wcsmbs/test-wcscpy.c: New file.
21940         * string/test-strcpy.c: Add wcscpy support.
21941         (WIDE): New macro.
21942
21943 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
21944
21945         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
21946         the inner loop.
21947
21948 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
21949
21950         [BZ #13472]
21951         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
21952
21953 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
21954
21955         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
21956         Minor optimizations.
21957
21958         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
21959         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
21960         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21961
21962 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
21963
21964         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
21965         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
21966         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
21967         for gcc to avoid warnings.
21968         * inet/Makefile (tests): Add tst-checks.
21969         * inet/tst-checks.c: New file.
21970
21971         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
21972         warning.
21973
21974         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
21975         __wmemcmp_sse2.
21976
21977         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
21978         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
21979
21980         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
21981
21982 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
21983
21984         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
21985         problem.
21986
21987         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
21988
21989 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
21990
21991         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
21992         conditional on GCC version.
21993         (__arch_compare_and_exchange_val_8_acq)
21994         (__arch_compare_and_exchange_val_16_acq)
21995         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
21996         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
21997         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
21998
21999 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
22000
22001         * sysdeps/sh/backtrace.c: New file.
22002
22003 2011-12-02  Andreas Schwab  <schwab@redhat.com>
22004
22005         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
22006         parenthesis.
22007
22008 2011-12-01  Andreas Schwab  <schwab@redhat.com>
22009
22010         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
22011         falling back to utime.
22012
22013 2011-11-30  Andreas Schwab  <schwab@redhat.com>
22014
22015         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
22016         expectations for float.
22017
22018 2011-11-29  Andreas Schwab  <schwab@redhat.com>
22019
22020         * locale/weight.h (findidx): Add parameter len.
22021         * locale/weightwc.h (findidx): Likewise.
22022         * posix/fnmatch_loop.c (FCT): Adjust caller.
22023         * posix/regcomp.c (build_equiv_class): Likewise.
22024         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
22025         * posix/regexec.c (check_node_accept_bytes): Likewise.
22026         * string/strcoll_l.c (STRCOLL): Likewise.
22027         * string/strxfrm_l.c (STRXFRM): Likewise.
22028
22029 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
22030
22031         * Makefile.in: Remove CVSOPT handling.
22032         * configure.in: Remove use of AC_REVISION.
22033         * iconvdata/Makefile (distribute): No need to filter out CVS.
22034         * scripts/list-sources.sh: Remove CVS, subversion and monotone
22035         handling.
22036
22037 2011-11-16  Andreas Schwab  <schwab@redhat.com>
22038
22039         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
22040         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
22041         [USE_AS_STRNCASECMP_L]: Likewise.
22042         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
22043         NO_TLS_DIRECT_SEG_REFS.
22044         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
22045         Fix argument offsets for non-PIC.
22046         [USE_AS_STRNCASECMP_L]: Likewise.
22047         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
22048         NO_TLS_DIRECT_SEG_REFS.
22049
22050 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22051
22052         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
22053         O_CLOEXEC.
22054         * locale/loadlocale.c (_nl_load_locale): Likewise.
22055
22056 2011-11-15  Andreas Schwab  <schwab@redhat.com>
22057
22058         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
22059         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
22060         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
22061         (SYSCALL_GETTIME): Set errno on error.
22062
22063         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
22064         count references to noai6ai_cached.
22065
22066 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
22067
22068         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
22069
22070         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
22071         FD_CLOEXEC for /proc/self/maps.
22072
22073         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
22074         FD_CLOEXEC for /proc/meminfo.
22075
22076         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
22077         gai.conf.
22078
22079         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
22080         FD_CLOEXEC for given file.
22081
22082         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
22083
22084         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
22085         FD_CLOEXEC for /etc/hosts.
22086         (_gethtent): Likewise.
22087
22088         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
22089
22090         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
22091         cancellation and set FD_CLOEXEC for /etc/netgroup.
22092
22093         * nss/nss_files/files-key.c (search): Don't allow cancellation when
22094         reading /etc/publickey.
22095
22096         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
22097         allow cancellation when reading /etc/group.
22098
22099         * nss/nss_files/files-alias.c (internal_setent): Don't allow
22100         cancellation.
22101         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
22102
22103         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
22104         when using data file.
22105
22106         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
22107
22108         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
22109         (write_nis_obj): Use "c" and "e" in fopen.
22110
22111         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
22112
22113         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
22114
22115         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
22116
22117         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
22118
22119         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
22120         locale.alias.
22121
22122         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22123
22124         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22125
22126         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22127
22128         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22129         file parsing and set FD_CLOEXEC.
22130
22131 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22132
22133         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22134
22135 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22136
22137         * malloc/arena.c (arena_get2): Don't call reused_arena when
22138         _int_new_arena failed.
22139
22140 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22141
22142         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22143         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22144         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22145         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22146         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22147         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22148         to compile strcasecmp and strncasecmp.
22149         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22150         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22151
22152         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22153
22154 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22155
22156         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22157         locale-defines.sym to gen-as-const-headers.
22158         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22159         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22160         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22161         to compile strcasecmp and strncasecmp.
22162         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22163         strcasecmp_l and strncasecmp_l.
22164         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22165         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22166         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22167         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22168         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22169         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22170         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22171         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22172         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22173         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22174         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22175
22176 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22177
22178         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22179         result of SYSDEP_GETTIME_CPU to retval.
22180         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22181         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22182
22183         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22184         variable.
22185
22186         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22187         mantissa words.
22188         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22189
22190         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22191         from unused variable.
22192
22193         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22194         DWARF definitions.
22195         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22196         for assembling.
22197
22198         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22199         over namespaces.
22200
22201         * sunrpc/rpc_prot.c (rejected): Fix case value.
22202
22203         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22204         unsigned long long int to avoid warnings in shift.
22205
22206         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22207         of use of trans.
22208         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22209         variable tmp.
22210
22211         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22212         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22213         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22214
22215         * nis/nis_table.c (nis_list): Use variable of correct type for
22216         result of __follow_path call.
22217
22218 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22219
22220         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22221         of math functions ceil, trunc, floor, round, and sqrt, when
22222         avaliable on the platform.
22223         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22224         name clash.
22225         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22226         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22227         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22228
22229 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22230
22231         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22232         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22233
22234 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22235
22236         * include/unistd.h: Fix __readlink return type.
22237         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22238
22239 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22240
22241         * stdlib/ucontext.h: Undo last change for makecontext.
22242
22243 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22244
22245         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22246
22247         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22248         * setjmp/setjmp.h: Mark functions as non-leaf.
22249         * setjmp/bits/setjmp2.h: Likewise.
22250         * stdlib/ucontext.h: Likewise.
22251
22252 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22253
22254         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22255         (reused_arena): Don't check arena limit.
22256         (arena_get2): Atomically check arena limit.
22257
22258 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22259
22260         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22261         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22262
22263         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22264         instructions.
22265
22266 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22267
22268         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22269         handler when locking.
22270
22271         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22272         Fix size of allocated buffer.
22273
22274 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22275
22276         [BZ #10103]
22277         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22278         declarations for long double functions.
22279         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22280
22281         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22282
22283 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22284
22285         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22286         installed.
22287
22288         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22289         is disabled.
22290
22291 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22292
22293         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22294
22295 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22296
22297         * include/alloca.h (stackinfo_alloca_round): Define.
22298         (extend_alloca): Use it.
22299         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22300         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22301         here.
22302
22303         * scripts/check-local-headers.sh: Ignore libaudit.h.
22304
22305         * nscd/Makefile (extra-objs): Make recursively expanded.
22306
22307 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22308
22309         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22310         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22311
22312         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22313         * posix/tst-rfc3484-2.c: Likewise.
22314         * posix/tst-rfc3484-3.c: Likewise.
22315
22316         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22317         process_vm_writev.
22318         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22319         process_vm_writev.
22320         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22321         process_vm_writev from libc using GLIBC_2.15 version.
22322
22323         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22324
22325 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22326
22327         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22328         stack usage.
22329
22330 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22331
22332         [BZ #13367]
22333         * nss/getent.c (initgroups_keys): Show error message in case no group
22334         names are given.
22335
22336         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22337         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22338         __bump_nl_timestamp.
22339         * nscd/connections (nscd_init): When host database is served open
22340         netlink socket and request notification about configuration changes.
22341         (main_loop_poll): Track netlink file descriptor and bump timestamp
22342         in case data becomes available.
22343         (main_loop_epoll): Likewise.
22344         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
22345         (database_pers_head): Add extra_data fileds.
22346         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
22347         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
22348         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
22349         Adjust caller.
22350         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
22351         in6ai data, call __free_in6ai.
22352         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
22353         Add -DHAVE_NETLINK.
22354         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
22355         interface information.  Reuse previous data if netlink timestamp
22356         is not changed.
22357         (__bump_nl_timestamp): New function.
22358         (__free_in6ai): New function.
22359
22360 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
22361
22362         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
22363         close_not_cancel_no_status here.
22364         (__check_pf): Reorganize code a bit to not call close twice if OOM.
22365
22366 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22367
22368         [BZ #13276]
22369         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
22370         return value.
22371
22372         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
22373         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
22374         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
22375
22376 2011-07-03  Andreas Jaeger  <aj@suse.de>
22377
22378         [BZ #10709]
22379         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
22380         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
22381         * math/libm-test.inc (sin_test): Add test case.
22382
22383 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22384
22385         [BZ #13337]
22386         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
22387         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22388
22389         * elf/chroot_canon.c (chroot_canon): Cleanups.
22390
22391         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
22392
22393         [BZ #13335]
22394         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
22395         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22396
22397         * string/test-strchr.c: Make usable for strchrnul testing.
22398         * string/test-strchrnul.c: New file.
22399         * string/Makefile (strop-tests): Add strchrnul.
22400
22401         * po/it.po: Update from translation team.
22402         * po/es.po: Likewise.
22403
22404 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
22405
22406         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
22407         the three constants needed as parameters.  Drop the others.
22408         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
22409         __m128i_strloadu_tolower.
22410         Create and initialize variable zero and use it in all the places
22411         where _mm_setzero_si128 was used.
22412
22413         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
22414         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
22415         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
22416         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
22417         anymore.
22418         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
22419         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
22420         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
22421         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
22422         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
22423         __mpranred, __mptan.
22424         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
22425         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
22426         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
22427         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
22428         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
22429         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
22430         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
22431         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
22432         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
22433
22434 2011-10-28  Andreas Schwab  <schwab@redhat.com>
22435
22436         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
22437         redefine if SHARED.
22438         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
22439
22440         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
22441         wide char related routines to wcsmbs subdir.
22442
22443 2011-10-27  Andreas Schwab  <schwab@redhat.com>
22444
22445         [BZ #13344]
22446         * misc/sys/cdefs.h (__THROWNL): Define.
22447         * posix/unistd.h: Use __THREADNL instead of __THREAD
22448         for memory synchronization functions.
22449
22450 2011-10-26  Roland McGrath  <roland@hack.frob.com>
22451
22452         [BZ #13349]
22453         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
22454         doesn't exist.
22455         * manual/stdio.texi (Obstack Streams): Node removed.
22456
22457 2011-10-26  Andreas Schwab  <schwab@redhat.com>
22458
22459         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
22460         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22461         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22462
22463         * math/math_private.h (math_force_eval): Allow non-addressable
22464         arguments.
22465         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
22466
22467 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22468
22469         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
22470         file is not needed.
22471
22472         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
22473         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
22474         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22475         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22476         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22477         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22478         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22479         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
22480         Add AVX variants.
22481         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
22482         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
22483         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
22484         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
22485         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
22486         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
22487         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
22488         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
22489         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
22490         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
22491         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
22492         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
22493         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
22494         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
22495         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
22496         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
22497         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
22498         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
22499         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
22500
22501         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
22502         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
22503
22504         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
22505         place.  Use VEX encoding when compiling for AVX.
22506
22507 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22508
22509         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
22510         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
22511
22512         * string/test-strchr.c (do_test): Don't generate NUL bytes.
22513
22514 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22515
22516         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
22517         useless if() expression.
22518         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
22519         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
22520         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
22521         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22522         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
22523         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22524         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22525         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22526         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
22527         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22528         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
22529         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22530         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
22531         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22532         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
22533         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22534         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
22535         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
22536         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
22537
22538         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
22539
22540 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22541
22542         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
22543         condition.
22544         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22545
22546 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22547
22548         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
22549         .text section.  Avoid duplicate constants.
22550         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
22551         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22552         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22553         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22554         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22555         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22556         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22557         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22558         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
22559         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
22560         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
22561         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22562         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
22563         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
22564         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
22565         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
22566         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
22567         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
22568         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
22569         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22570         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
22571         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
22572         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22573         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
22574         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
22575         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
22576         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
22577         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
22578         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
22579         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
22580         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
22581         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
22582         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22583         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
22584         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
22585         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
22586         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
22587         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
22588         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
22589         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
22590         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
22591         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
22592         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
22593         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22594         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
22595
22596 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
22597
22598         * sysdeps/x86_64/dla.h: Move to ...
22599         * sysdeps/x86_64/fpu/dla.h: ...here.
22600         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
22601         situations.  Use __builtin_fma only for gcc 4.6 and up.
22602
22603         * config.make.in: Add have-mfma4 entry.
22604         * configure.in: Substitute libc_cv_cc_fma4.
22605         * math/Makefile (dbl-only-routines): Add sincostab.
22606         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
22607         Use __sincostab not sincos.
22608         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
22609         name is a macro.
22610         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22611         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22612         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22613         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
22614         using __copysign.
22615         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
22616         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
22617         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
22618         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
22619         and __inv.
22620         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
22621         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
22622         __copysign.
22623         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
22624         define aliases when function name is a macro.
22625         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
22626         sysdeps/ieee754/dbl-64/sincos.tbl.
22627         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
22628         fma4-enabled routines.
22629         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
22630         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
22631         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
22632         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
22633         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
22634         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
22635         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
22636         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
22637         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
22638         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
22639         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
22640         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
22641         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
22642         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
22643         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
22644         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
22645         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
22646         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
22647         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
22648         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
22649         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
22650         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
22651         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
22652         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
22653         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
22654         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
22655         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
22656         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
22657         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
22658         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
22659
22660         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
22661         rename.
22662         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22663         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22664         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22665         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22666         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22667         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22668         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22669         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22670
22671 2011-10-24  Andreas Schwab  <schwab@redhat.com>
22672
22673         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
22674
22675 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22676
22677         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
22678
22679         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
22680         prediction.
22681         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
22682
22683         * string/strnlen.c: Don't define STRNLEN, reverse logic.
22684         Remove unused variable magic_bits.
22685         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
22686
22687         * string/strnlen.c: Define and use STRNLEN macro.
22688         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
22689         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
22690         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
22691         * wcsmbs/wcslen.c: Define and use WCSLEN.
22692         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
22693         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
22694         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
22695         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
22696         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
22697         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
22698         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22699
22700 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22701
22702         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22703         strnlen-sse2-no-bsf.
22704         Rename strlen-no-bsf to strlen-sse2-no-bsf.
22705         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
22706         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
22707         Add strnlen support.
22708         (USE_AS_STRNLEN): New macro.
22709         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
22710         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
22711         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
22712         * sysdeps/x86_64/wcslen.S: New file.
22713
22714 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22715
22716         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22717         XMM-moves are used for copying on small sizes.
22718
22719 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22720
22721         * wcsmbs/Makefile (strop-tests): Add wcschr.
22722         * wcsmbs/test-wcschr.c: New file.
22723         * string/test-strchr.c: Update.
22724         Add wcschr support.
22725         (WIDE): New macro.
22726
22727 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22728
22729         * wcsmbs/Makefile (strop-tests): Add wcslen.
22730         * wcsmbs/test-wcslen.c: New file.
22731         * string/test-strlen.c: Update.
22732         Add wcslen support.
22733         (WIDE): New macro.
22734
22735 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22736
22737         * po/it.po: Update from translation team.
22738
22739 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22740
22741         * sysdeps/x86_64/wcscmp.S: Update.
22742         Fix wrong comparison semantics.
22743         wcscmp shall use signed comparison not unsigned.
22744         Don't use substraction to avoid overflow bug.
22745         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
22746         * wcsmbc/wcscmp.c: Likewise.
22747         * string/test-strcmp.c: Likewise.
22748         Add new tests to check cases with negative values.
22749
22750 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22751
22752         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
22753         * sysdeps/x86_64/dla.h: ...here.  New file.
22754         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
22755         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22756         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22757         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22758         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22759         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22760         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22761         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22762         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22763
22764 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
22765
22766         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
22767         __ynl_finite aliases.
22768
22769 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22770
22771         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22772
22773         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
22774         define DLA_FMA.
22775         [DLA_FMA] (EMULV): Use DLA_FMA.
22776         [DLA_FMA] (MUL12): Use EMULV.
22777         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
22778         that are not needed.
22779         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22780         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22781         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22782         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22783         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22784         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22785         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22786
22787 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
22788
22789         * math/s_nan.c: Undef __nan.
22790         * math/s_nanf.c: Undef __nanf.
22791         * math/s_nanl.c: Undef __nanl.
22792         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
22793         "math_private.h".
22794
22795 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22796
22797         * math/s_catan.c: Add branch predictions.
22798         * math/s_catanf.c: Likewise.
22799         * math/s_catanh.c: Likewise.
22800         * math/s_catanhf.c: Likewise.
22801         * math/s_catanhl.c: Likewise.
22802         * math/s_catanl.c: Likewise.
22803         * math/s_cexp.c: Likewise.
22804         * math/s_cexpf.c: Likewise.
22805         * math/s_cexpl.c: Likewise.
22806         * math/s_clog.c: Likewise.
22807         * math/s_clog10.c: Likewise.
22808         * math/s_clog10f.c: Likewise.
22809         * math/s_clog10l.c: Likewise.
22810         * math/s_clogf.c: Likewise.
22811         * math/s_clogl.c: Likewise.
22812         * math/s_csqrt.c: Likewise.
22813         * math/s_csqrtf.c: Likewise.
22814         * math/s_csqrtl.c: Likewise.
22815         * math/s_ctanf.c: Likewise.
22816         * math/s_ctanh.c: Likewise.
22817         * math/s_ctanhf.c: Likewise.
22818         * math/s_ctanhl.c: Likewise.
22819         * math/s_ctanl.c: Likewise.
22820
22821         * math/math_private.h: Define __nan, __nanf, __nanl.
22822         * math/s_cacosh.c: Include <math_private.h>.
22823         * math/s_cacoshl.c: Likewise.
22824         * math/s_casinh.c: Likewise.
22825         * math/s_casinhf.c: Likewise.
22826         * math/s_casinhl.c: Likewise.
22827         * math/s_ccos.c: Rely entire on ccosh.
22828         * math/s_ccosf.c: Rely entire on ccoshf.
22829         * math/s_ccosl.c: Rely entirely on ccoshl.
22830         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
22831         Remove tests for FE_INVALID.
22832         * math/s_ccoshf.c: Likewise.
22833         * math/s_ccoshl.c: Likewise.
22834         * math/s_csin.c: Likewise.
22835         * math/s_csinf.c: Likewise.
22836         * math/s_csinh.c Likewise.
22837         * math/s_csinhf.c: Likewise.
22838         * math/s_csinhl.c: Likewise.
22839         * math/s_csinl.c: Likewise.
22840         * math/s_ctan.c: Likewise.
22841         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
22842         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
22843         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
22844
22845 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
22846
22847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
22848         compilation problems.
22849
22850         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
22851         __builtin_expect.
22852
22853 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
22854
22855         * sysdeps/i386/configure.in: Test for -mfma4 option.
22856         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
22857         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
22858         COMMON_CPUID_INDEX_80000001.
22859         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
22860         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
22861         use it if FMA3 is not supported.
22862         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
22863
22864         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
22865         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
22866
22867 2011-10-20  Andreas Schwab  <schwab@redhat.com>
22868
22869         [BZ #12892]
22870         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
22871         it would create a cycle with a link time dependency.
22872
22873 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
22874
22875         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
22876         instruction.
22877         * string/Makefile (strop-tests): Add rawmemchr.
22878         * string/test-rawmemchr.c: New file.
22879
22880         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
22881         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
22882         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
22883         when compiling str{,n}casecmp and when AVX is available.  Hook up
22884         new optimized code in initializers.
22885
22886 2011-10-19  Andreas Schwab  <schwab@redhat.com>
22887
22888         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
22889         __feraiseexcept instead of feraiseexcept.
22890
22891 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
22892
22893         * math/math_private.h: Define defaults for libc_fetestexcept and
22894         libc_feupdateenv.
22895         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
22896         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
22897         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
22898         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22899         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
22900         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22901         libc_fetestexcept and libc_feupdateenv.
22902
22903         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
22904         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
22905         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
22906         * sysdeps/x86_64/fpu/math_private.h: Define special version of
22907         libc_feholdexcept_setround.
22908
22909         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
22910         Add s_nearbyint-c and s_nearbyintf-c.
22911         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
22912         nearbyintf inlines.
22913         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
22914         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
22915         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
22916         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
22917
22918         * math/math_private.h: Define defaults for libc_fegetround,
22919         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
22920         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
22921         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
22922         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
22923         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
22924         standard functions.
22925         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
22926         Remove comments and hacks for old compiler versions.
22927         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22928         libc_fegetround, libc_fesetround, libc_feholdexcept, and
22929         libc_feholdexceptl.
22930
22931 2011-10-18  Andreas Schwab  <schwab@redhat.com>
22932
22933         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
22934         (__feraiseexcept_renamed): Add __NTH.
22935         (feraiseexcept): Add __NTH.  Rename local variables to fix
22936         namespace violations.
22937
22938 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
22939
22940         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
22941
22942         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
22943
22944         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
22945         recently added interfaces.
22946         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
22947
22948         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
22949         about macro parameter expansion.
22950
22951         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
22952         __NO_MATH_INLINES is defined.  Cleanups.
22953
22954         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
22955         and __floorf is target has SSE4.1.
22956         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
22957         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
22958         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
22959         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
22960
22961         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
22962         name.
22963         (floorf): Likewise.
22964
22965         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
22966
22967 2011-10-17  Andreas Schwab  <schwab@redhat.com>
22968
22969         * misc/sys/cdefs.h: Fix last change.
22970
22971         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
22972         database lookup.
22973
22974 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
22975
22976         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
22977
22978         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
22979         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22980         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
22981         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22982         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22983         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
22984         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22985         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22986         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
22987         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
22988         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
22989         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
22990         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
22991         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
22992         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
22993         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
22994         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
22995         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
22996         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
22997         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
22998         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
22999         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
23000
23001         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
23002         ceil, ceilf, floor, floorf.
23003
23004         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
23005         Perform IRELATIVE relocations last.
23006
23007         * elf/do-rel.h: Add another parameter nrelative, replacing the
23008         local variable with the same name.  Change name of the function
23009         to end in Rel or Rela (uppercase).
23010         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
23011         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
23012         elf_dynamic_do_##reloc function.
23013
23014 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23015
23016         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
23017         is sufficient, at least on modern CPUs.
23018
23019         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
23020
23021         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
23022         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
23023
23024         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
23025         __expl_finite.
23026         * math/bits/math-finite.h: Add entries for exp.
23027         * math/e_expl.c: Add __*_finite alias.
23028         * sysdeps/i386/fpu/e_exp.S: Likewise.
23029         * sysdeps/i386/fpu/e_expf.S: Likewise.
23030         * sysdeps/i386/fpu/e_expl.c: Likewise.
23031         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23032         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
23033         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23034         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23035         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
23036         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
23037         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
23038
23039         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
23040         is sufficient, at least on modern CPUs.
23041
23042         * ctype/ctype-info.c (__ctype_init): Define.
23043         * include/ctype.h (__ctype_init): Declare.
23044         (__ctype_b_loc): The variable is always initialized.
23045         (__ctype_toupper_loc): Likewise.
23046         (__ctype_tolower_loc): Likewise.
23047         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
23048         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
23049
23050 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
23051
23052         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
23053
23054         * configure.in: Also look in $cxxmachine/include for C++ system
23055         headers.
23056
23057 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23058
23059         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
23060         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
23061         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
23062         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
23063         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
23064         (USE_AS_WMEMCMP): New macro.
23065         Fixing indents.
23066         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
23067         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
23068         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
23069         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
23070         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23071         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
23072         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
23073         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
23074         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
23075         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
23076         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
23077         (USE_AS_WMEMCMP): New macro.
23078         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
23079         * sysdeps/string/test-memcmp.c: Update.
23080         Fix simple_wmemcmp.
23081         Add new tests.
23082         * wcsmbs/wmemcmp.c: Update.
23083         (WMEMCMP): New macro.
23084         Fix overflow bug.
23085
23086 2011-10-12  Andreas Jaeger  <aj@suse.de>
23087
23088         [BZ #13268]
23089         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
23090
23091 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
23092
23093         * libio/iofwide.c (do_length): Avoid warning.
23094
23095         * ctype/ctype.h (__isctype_f): Add missing __THROW.
23096
23097 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
23098
23099         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
23100
23101         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
23102         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
23103         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
23104         * sysdeps/i386/i686/fpu/e_log.S: New file.
23105         * sysdeps/i386/i686/fpu/e_logf.S: New file.
23106         * sysdeps/i386/i686/fpu/e_logl.S: New file.
23107
23108         * ctype/ctype.h: Add support for inlined isXXX functions when
23109         compiling C++ code.
23110
23111 2011-10-14  Andreas Schwab  <schwab@redhat.com>
23112
23113         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23114
23115         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
23116
23117 2011-10-13  Roland McGrath  <roland@hack.frob.com>
23118
23119         [BZ #13291]
23120         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
23121
23122 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23123
23124         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23125         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23126         feraiseexcept.
23127
23128         * sysdeps/x86_64/memrchr.S: Check for zero size.
23129
23130         * string/stratcliff.c: Add memrchr tests.
23131
23132 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23133
23134         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23135         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23136         rawmemchr-sse2 rawmemchr-sse2-bsf.
23137         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23138         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23139         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23140         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23141         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23142         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23143         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23144         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23145         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23146         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23147         * string/memrchr.c (MEMRCHR): New macro.
23148
23149 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23150
23151         Add integration with gcc's -ffinite-math-only and optimize wrapper
23152         functions in libm.
23153         * Versions.def: Define GLIBC_2.15 version for libm.
23154         * math/Makefile (headers): Add bits/math-finite.h.
23155         * math/bits/math-finite.h: New file.
23156         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23157         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23158         * math/e_acoshl.c: Add __*_finite alias.
23159         * math/e_acosl.c: Likewise.
23160         * math/e_asinl.c: Likewise.
23161         * math/e_atan2l.c: Likewise.
23162         * math/e_atanhl.c: Likewise.
23163         * math/e_coshl.c: Likewise.
23164         * math/e_exp10.c: Likewise.
23165         * math/e_exp10f.c: Likewise.
23166         * math/e_exp10l.c: Likewise.
23167         * math/e_exp2l.c: Likewise.
23168         * math/e_fmodl.c: Likewise.
23169         * math/e_gammal_r.c: Likewise.
23170         * math/e_hypotl.c: Likewise.
23171         * math/e_j0l.c: Likewise.
23172         * math/e_j1l.c: Likewise.
23173         * math/e_jnl.c: Likewise.
23174         * math/e_lgammal_r.c: Likewise.
23175         * math/e_log10l.c: Likewise.
23176         * math/e_log2l.c: Likewise.
23177         * math/e_logl.c: Likewise.
23178         * math/e_powl.c: Likewise.
23179         * math/e_sinhl.c: Likewise.
23180         * math/e_sqrtl.c: Likewise.
23181         * math/e_scalb.c: Completely rewritten and optimized.
23182         * math/e_scalbf.c: Likewise.
23183         * math/e_scalbl.c: Likewise.
23184         * math/w_acos.c: Likewise.
23185         * math/w_acosf.c: Likewise.
23186         * math/w_acosl.c: Likewise.
23187         * math/w_acosh.c: Likewise.
23188         * math/w_acoshf.c: Likewise.
23189         * math/w_acoshl.c: Likewise.
23190         * math/w_asin.c: Likewise.
23191         * math/w_asinf.c: Likewise.
23192         * math/w_asinl.c: Likewise.
23193         * math/w_atan2.c: Likewise.
23194         * math/w_atan2f.c: Likewise.
23195         * math/w_atan2l.c: Likewise.
23196         * math/w_atanh.c: Likewise.
23197         * math/w_atanhf.c: Likewise.
23198         * math/w_atanhl.c: Likewise.
23199         * math/w_exp10.c: Likewise.
23200         * math/w_exp10f.c: Likewise.
23201         * math/w_exp10l.c: Likewise.
23202         * math/w_fmod.c: Likewise.
23203         * math/w_fmodf.c: Likewise.
23204         * math/w_fmodl.c: Likewise.
23205         * math/w_j0.c: Likewise.
23206         * math/w_j0f.c: Likewise.
23207         * math/w_j0l.c: Likewise.
23208         * math/w_j1.c: Likewise.
23209         * math/w_j1f.c: Likewise.
23210         * math/w_j1l.c: Likewise.
23211         * math/w_jn.c: Likewise.
23212         * math/w_jnf.c: Likewise.
23213         * math/w_log.c: Likewise.
23214         * math/w_logf.c: Likewise.
23215         * math/w_logl.c: Likewise.
23216         * math/w_log10.c: Likewise.
23217         * math/w_log10f.c: Likewise.
23218         * math/w_log10l.c: Likewise.
23219         * math/w_log2.c: Likewise.
23220         * math/w_log2f.c: Likewise.
23221         * math/w_log2l.c: Likewise.
23222         * math/w_pow.c: Likewise.
23223         * math/w_powf.c: Likewise.
23224         * math/w_powl.c: Likewise.
23225         * math/w_remainder.c: Likewise.
23226         * math/w_remainderf.c: Likewise.
23227         * math/w_remainderl.c: Likewise.
23228         * math/w_scalb.c: Likewise.
23229         * math/w_scalbf.c: Likewise.
23230         * math/w_scalbl.c: Likewise.
23231         * math/w_sqrt.c: Likewise.
23232         * math/w_sqrtf.c: Likewise.
23233         * math/w_sqrtl.c: Likewise.
23234         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23235         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23236         used.
23237         * math/math_private.h: Declare __kernel_standard_f.
23238         * math/w_cosh.c: Remove cruft and optimize a bit.
23239         * math/w_coshf.c: Likewise.
23240         * math/w_coshl.c: Likewise.
23241         * math/w_exp2.c: Likewise.
23242         * math/w_exp2f.c: Likewise.
23243         * math/w_exp2l.c: Likewise.
23244         * math/w_hypot.c: Likewise.
23245         * math/w_hypotf.c: Likewise.
23246         * math/w_hypotl.c: Likewise.
23247         * math/w_lgamma.c: Likewise.
23248         * math/w_lgamma_r.c: Likewise.
23249         * math/w_lgammaf.c: Likewise.
23250         * math/w_lgammaf_r.c: Likewise.
23251         * math/w_lgammal.c: Likewise.
23252         * math/w_lgammal_r.c: Likewise.
23253         * math/w_sinh.c: Likewise.
23254         * math/w_sinhf.c: Likewise.
23255         * math/w_sinhl.c: Likewise.
23256         * math/w_tgamma.c: Likewise.
23257         * math/w_tgammaf.c: Likewise.
23258         * math/w_tgammal.c: Likewise.
23259         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23260         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23261         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23262         Minor optimizations.  Pretty printing.  Remove cruft.
23263         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23264         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23265         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23266         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23267         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23268         * sysdeps/i386/fpu/e_asin.S: Likewise.
23269         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23270         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23271         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23272         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23273         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23274         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23275         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23276         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23277         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23278         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23279         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23280         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23281         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23282         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23283         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23284         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23285         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23286         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23287         * sysdeps/i386/fpu/e_log.S: Likewise.
23288         * sysdeps/i386/fpu/e_log10.S: Likewise.
23289         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23290         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23291         * sysdeps/i386/fpu/e_log2.S: Likewise.
23292         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23293         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23294         * sysdeps/i386/fpu/e_logf.S: Likewise.
23295         * sysdeps/i386/fpu/e_logl.S: Likewise.
23296         * sysdeps/i386/fpu/e_pow.S: Likewise.
23297         * sysdeps/i386/fpu/e_powf.S: Likewise.
23298         * sysdeps/i386/fpu/e_powl.S: Likewise.
23299         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23300         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23301         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23302         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23303         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23304         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23305         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23306         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23307         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23308         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23309         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23310         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23311         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23312         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23313         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23314         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23315         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23316         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23317         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23318         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23319         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23320         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23321         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23322         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23323         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23324         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23325         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23326         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23327         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23328         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23329         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23330         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23331         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23332         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23333         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23334         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23335         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23336         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23337         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23338         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23339         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23340         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23341         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23342         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23343         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23344         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23345         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23346         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23347         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23348         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23349         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23350         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23351         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23352         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23353         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23354         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23355         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23356         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23357         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
23358         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23359         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23360         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23361         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23362         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23363         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23364         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23365         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23366         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23367         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23368         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23369         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23370         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23371         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23372         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23373         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23374         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23375         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23376         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
23377         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23378         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23379         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23380         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23381         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23382         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23383         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23384         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23385         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23386         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23387         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23388         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23389         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23390         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
23391         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23392         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23393         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23394         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23395         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23396         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23397         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23398         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23399         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23400         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23401         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
23402         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23403         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23404         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23405         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
23406         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
23407         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
23408         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
23409         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
23410         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
23411         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
23412         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
23413         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
23414         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
23415         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23416         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
23417         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
23418         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
23419         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
23420         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
23421         (__isnanf): Likewise.
23422         (__isinf_ns): Likewise.
23423         (__isinf_nsf): Likewise.
23424         (__finite): Likewise.
23425         (__finitef): Likewise.
23426         (__ieee754_sqrt): Define as macro.
23427         (__ieee754_sqrtf): Define as macro.
23428         (__ieee754_sqrtl): Define as macro.
23429         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
23430         inlined copy.
23431         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
23432         __FINITE_MATH_ONLY__ consistent.
23433         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
23434
23435 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
23436
23437         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
23438         of rawmemchr.
23439
23440         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
23441
23442 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
23443
23444         * po/ja.po: Update from translation team.
23445
23446 2011-10-08  Roland McGrath  <roland@hack.frob.com>
23447
23448         * locale/programs/locarchive.c (prepare_address_space): New function.
23449         (create_archive, enlarge_archive, open_archive): Use it.
23450
23451         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
23452         inside [SHARED], where it is used.
23453
23454         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
23455
23456         * nss/getent.c (netgroup_keys): Remove unused variable.
23457         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
23458
23459 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
23460
23461         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
23462         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
23463         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
23464         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
23465         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
23466         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
23467         * math/Makefile (libm-calls): Add s_isinf_ns.
23468         * math/divtc3.c: Use __isinf_nsl instead of isinf.
23469         * math/multc3.c: Likewise.
23470         * math/s_casin.c: Likewise.
23471         * math/s_casinf.c: Likewise.
23472         * math/s_casinl.c: Likewise.
23473         * math/s_ccos.c: Likewise.
23474         * math/s_ccosf.c: Likewise.
23475         * math/s_ccosl.c: Likewise.
23476         * math/s_ctan.c: Likewise.
23477         * math/s_ctanf.c: Likewise.
23478         * math/s_ctanh.c: Likewise.
23479         * math/s_ctanhf.c: Likewise.
23480         * math/s_ctanhl.c: Likewise.
23481         * math/s_ctanl.c: Likewise.
23482         * math/w_fmod.c: Likewise.
23483         * math/w_fmodf.c: Likewise.
23484         * math/w_fmodl.c: Likewise.
23485         * math/w_remainder.c: Likewise.
23486         * math/w_remainderf.c: Likewise.
23487         * math/w_remainderl.c: Likewise.
23488         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
23489         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
23490         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
23491         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
23492         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
23493         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
23494         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
23495         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
23496
23497         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
23498         of the number.
23499         * stdio-common/printf_fphex.c: Likewise.
23500         * stdio-common/printf_size.c: Likewise.
23501
23502         * math/e_exp10.c: Include math_private.h using <...> not "...".
23503         * math/e_exp10f.c: Likewise.
23504         * math/e_exp10l.c: Likewise.
23505         * math/e_exp2l.c: Likewise.
23506         * math/e_j0l.c: Likewise.
23507         * math/e_j1l.c: Likewise.
23508         * math/e_jnl.c: Likewise.
23509         * math/e_lgammal_r.c: Likewise.
23510         * math/e_rem_pio2l.c: Likewise.
23511         * math/e_scalb.c: Likewise.
23512         * math/e_scalbf.c: Likewise.
23513         * math/e_scalbl.c: Likewise.
23514         * math/k_cosl.c: Likewise.
23515         * math/k_sinl.c: Likewise.
23516         * math/k_tanl.c: Likewise.
23517         * math/s_cacoshf.c: Likewise.
23518         * math/s_catan.c: Likewise.
23519         * math/s_catanf.c: Likewise.
23520         * math/s_catanh.c: Likewise.
23521         * math/s_catanhf.c: Likewise.
23522         * math/s_catanhl.c: Likewise.
23523         * math/s_catanl.c: Likewise.
23524         * math/s_ccosh.c: Likewise.
23525         * math/s_ccoshf.c: Likewise.
23526         * math/s_ccoshl.c: Likewise.
23527         * math/s_cexp.c: Likewise.
23528         * math/s_cexpf.c: Likewise.
23529         * math/s_cexpl.c: Likewise.
23530         * math/s_clog.c: Likewise.
23531         * math/s_clog10.c: Likewise.
23532         * math/s_clog10f.c: Likewise.
23533         * math/s_clog10l.c: Likewise.
23534         * math/s_clogf.c: Likewise.
23535         * math/s_clogl.c: Likewise.
23536         * math/s_csin.c: Likewise.
23537         * math/s_csinf.c: Likewise.
23538         * math/s_csinh.c: Likewise.
23539         * math/s_csinhf.c: Likewise.
23540         * math/s_csinhl.c: Likewise.
23541         * math/s_csinl.c: Likewise.
23542         * math/s_csqrt.c: Likewise.
23543         * math/s_csqrtf.c: Likewise.
23544         * math/s_csqrtl.c: Likewise.
23545         * math/s_ctan.c: Likewise.
23546         * math/s_ctanf.c: Likewise.
23547         * math/s_ctanh.c: Likewise.
23548         * math/s_ctanhf.c: Likewise.
23549         * math/s_ctanhl.c: Likewise.
23550         * math/s_ctanl.c: Likewise.
23551         * math/s_ldexp.c: Likewise.
23552         * math/s_ldexpf.c: Likewise.
23553         * math/s_ldexpl.c: Likewise.
23554         * math/s_significand.c: Likewise.
23555         * math/s_significandf.c: Likewise.
23556         * math/s_significandl.c: Likewise.
23557         * math/w_acos.c: Likewise.
23558         * math/w_acosf.c: Likewise.
23559         * math/w_acosh.c: Likewise.
23560         * math/w_acoshf.c: Likewise.
23561         * math/w_acoshl.c: Likewise.
23562         * math/w_acosl.c: Likewise.
23563         * math/w_asin.c: Likewise.
23564         * math/w_asinf.c: Likewise.
23565         * math/w_asinl.c: Likewise.
23566         * math/w_atan2.c: Likewise.
23567         * math/w_atan2f.c: Likewise.
23568         * math/w_atan2l.c: Likewise.
23569         * math/w_atanh.c: Likewise.
23570         * math/w_atanhf.c: Likewise.
23571         * math/w_atanhl.c: Likewise.
23572         * math/w_cosh.c: Likewise.
23573         * math/w_coshf.c: Likewise.
23574         * math/w_coshl.c: Likewise.
23575         * math/w_dremf.c: Likewise.
23576         * math/w_exp10.c: Likewise.
23577         * math/w_exp10f.c: Likewise.
23578         * math/w_exp10l.c: Likewise.
23579         * math/w_exp2.c: Likewise.
23580         * math/w_exp2f.c: Likewise.
23581         * math/w_fmod.c: Likewise.
23582         * math/w_fmodf.c: Likewise.
23583         * math/w_fmodl.c: Likewise.
23584         * math/w_hypot.c: Likewise.
23585         * math/w_hypotf.c: Likewise.
23586         * math/w_hypotl.c: Likewise.
23587         * math/w_j0.c: Likewise.
23588         * math/w_j0f.c: Likewise.
23589         * math/w_j0l.c: Likewise.
23590         * math/w_j1.c: Likewise.
23591         * math/w_j1f.c: Likewise.
23592         * math/w_j1l.c: Likewise.
23593         * math/w_jn.c: Likewise.
23594         * math/w_jnf.c: Likewise.
23595         * math/w_jnl.c: Likewise.
23596         * math/w_lgamma.c: Likewise.
23597         * math/w_lgamma_r.c: Likewise.
23598         * math/w_lgammaf.c: Likewise.
23599         * math/w_lgammaf_r.c: Likewise.
23600         * math/w_lgammal.c: Likewise.
23601         * math/w_lgammal_r.c: Likewise.
23602         * math/w_log.c: Likewise.
23603         * math/w_log10.c: Likewise.
23604         * math/w_log10f.c: Likewise.
23605         * math/w_log10l.c: Likewise.
23606         * math/w_log2.c: Likewise.
23607         * math/w_log2f.c: Likewise.
23608         * math/w_log2l.c: Likewise.
23609         * math/w_logf.c: Likewise.
23610         * math/w_logl.c: Likewise.
23611         * math/w_pow.c: Likewise.
23612         * math/w_powf.c: Likewise.
23613         * math/w_powl.c: Likewise.
23614         * math/w_remainder.c: Likewise.
23615         * math/w_remainderf.c: Likewise.
23616         * math/w_remainderl.c: Likewise.
23617         * math/w_scalb.c: Likewise.
23618         * math/w_scalbf.c: Likewise.
23619         * math/w_scalbl.c: Likewise.
23620         * math/w_sinh.c: Likewise.
23621         * math/w_sinhf.c: Likewise.
23622         * math/w_sinhl.c: Likewise.
23623         * math/w_sqrt.c: Likewise.
23624         * math/w_sqrtf.c: Likewise.
23625         * math/w_sqrtl.c: Likewise.
23626         * math/w_tgamma.c: Likewise.
23627         * math/w_tgammaf.c: Likewise.
23628         * math/w_tgammal.c: Likewise.
23629
23630         * po/ja.po: Update from translation team.
23631
23632 2011-09-29  Andreas Jaeger  <aj@suse.de>
23633
23634         [BZ #13179]
23635         * sunrpc/netname.c (netname2host): Fix logic.
23636
23637         [BZ #6779]
23638         [BZ #6783]
23639         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
23640         correctly.
23641         * math/w_remainder.c (__remainder): Likewise.
23642         * math/w_remainderf.c (__remainderf): Likewise.
23643         * math/libm-test.inc (remainder_test): Add test cases.
23644
23645 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23646
23647         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
23648         sdiv_qrnnd.
23649
23650 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23651
23652         * string/test-memcmp.c: Avoid unncessary #defines.
23653         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23654
23655 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23656
23657         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
23658         Use new sse2 version for core i3 - i7 as it's faster
23659         than sse42 version.
23660         (bit_Prefer_PMINUB_for_stringop): New.
23661         * sysdeps/x86_64/rawmemchr.S: Update.
23662         Replace with faster SSE2 version.
23663         * sysdeps/x86_64/memrchr.S: New file.
23664         * sysdeps/x86_64/memchr.S: Update.
23665         Replace with faster SSE2 version.
23666
23667 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
23668
23669         * elf/dl-load.c (lose): Add cast to avoid warning.
23670
23671 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23672
23673         * po/ca.po: Update from translation team.
23674
23675         * inet/getnetgrent_r.c: Hook up nscd.
23676         * nscd/Makefile (routines): Add nscd_netgroup.
23677         (nscd-modules): Add netgroupcache.
23678         (CFLAGS-netgroupcache.c): Define.
23679         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
23680         (cache_search): Add const to second parameter.
23681         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
23682         INNETGR.
23683         (dbs): Add netgrdb entry.
23684         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
23685         (verify_persistent_db): Handle netgrdb.
23686         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
23687         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
23688         GETFDNETGR.
23689         (netgroup_response_header): Define.
23690         (innetgroup_response_header): Define.
23691         (datahead): Add netgroup_response_header and innetgroup_response_header
23692         elements.
23693         * nscd/nscd.conf: Add entries for netgroup cache.
23694         * nscd/nscd.h (dbtype): Add netgrdb.
23695         (_PATH_NSCD_NETGROUP_DB): Define.
23696         (netgroup_iov_disabled): Declare.
23697         (xmalloc, xcalloc, xrealloc): Move declarations here.
23698         (cache_search): Adjust prototype.
23699         Add netgroup-related prototypes.
23700         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
23701         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
23702         (__nscd_innetgr): Declare.
23703         * nscd/selinux.c (perms): Use access_vector_t as element type and
23704         add netgroup-related initializers.
23705         * nscd/netgroupcache.c: New file.
23706         * nscd/nscd_netgroup.c: New file.
23707         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
23708         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
23709         For four parameters use innetgr.
23710         * nss/nss_files/files-init.c: Add definition and callback for netgr.
23711         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
23712         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
23713         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
23714
23715         * nscd/connections.c (register_traced_file): Don't register file
23716         for disabled databases.
23717
23718 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
23719
23720         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
23721
23722         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
23723         from tree and freeing node.
23724
23725 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
23726
23727         * nss/nsswitch.c (__nss_database_lookup): Handle
23728         nss_parse_service_list out of memory case.
23729
23730 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
23731
23732         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
23733         out of memory case.
23734
23735 2011-10-04  Andreas Schwab  <schwab@redhat.com>
23736
23737         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
23738         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
23739         pass it down.
23740         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
23741         elf_machine_rela, elf_machine_lazy_rel.
23742         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
23743         (ELF_DYNAMIC_DO_REL): Likewise.
23744         (ELF_DYNAMIC_DO_RELA): Likewise.
23745         (ELF_DYNAMIC_RELOCATE): Likewise.
23746         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
23747         to ELF_DYNAMIC_DO_REL.
23748         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
23749         (dl_main): In trace mode always set __RTLD_NOIFUNC.
23750         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
23751         elf_machine_rela.
23752         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
23753         skip_ifunc, don't call ifunc function if non-zero.
23754         (elf_machine_rela): Likewise.
23755         (elf_machine_lazy_rel): Likewise.
23756         (elf_machine_lazy_rela): Likewise.
23757         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
23758         (elf_machine_lazy_rel): Likewise.
23759         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
23760         Likewise.
23761         (elf_machine_lazy_rel): Likewise.
23762         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23763         Likewise.
23764         (elf_machine_lazy_rel): Likewise.
23765         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
23766         (elf_machine_lazy_rel): Likewise.
23767         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
23768         (elf_machine_lazy_rel): Likewise.
23769         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
23770         (elf_machine_lazy_rel): Likewise.
23771         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
23772         (elf_machine_lazy_rel): Likewise.
23773         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
23774         (elf_machine_lazy_rel): Likewise.
23775         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
23776         (elf_machine_lazy_rel): Likewise.
23777
23778 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
23779
23780         * nss/nss_files/files-init.c (_nss_files_init): Use static
23781         initialization for all the *_traced_file variables.
23782
23783 2011-09-28  Andreas Schwab  <schwab@redhat.com>
23784
23785         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23786
23787 2011-09-27  Roland McGrath  <roland@hack.frob.com>
23788
23789         [BZ #13226]
23790         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
23791
23792 2011-09-27  Andreas Schwab  <schwab@redhat.com>
23793
23794         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23795         Reread the line before reparsing it.
23796
23797 2011-09-26  Andreas Schwab  <schwab@redhat.com>
23798
23799         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
23800
23801 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
23802             Maxim Kuvyrkov  <maxim@codesourcery.com>
23803             Joseph Myers  <joseph@codesourcery.com>
23804
23805         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
23806         if needed for __stack_chk_guard.
23807
23808 2011-09-19  Roland McGrath  <roland@hack.frob.com>
23809
23810         * sysdeps/posix/spawni.c (script_execute): Always define it.
23811         It will be optimized away if unused.
23812         (maybe_script_execute): New function.
23813         (__spawni): Call it.
23814
23815         * Makerules: Don't include tls.make.
23816         (config-tls): Always set to thread.
23817         * tls.make.c: File removed.
23818
23819 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
23820
23821         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
23822         * config.make.in (CPPFLAGS-config): New substituted variable.
23823
23824 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23825
23826         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
23827
23828         [BZ #13192]
23829         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
23830         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
23831
23832 2011-09-15  Roland McGrath  <roland@hack.frob.com>
23833
23834         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
23835         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
23836         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
23837         (CALL_FAIL): Likewise.
23838         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
23839         (CALL_FAIL): Macro removed.
23840         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
23841
23842 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23843
23844         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
23845         for __FINITE_MATH_ONLY__ == 1.
23846
23847 2011-09-15  Andreas Schwab  <schwab@redhat.com>
23848
23849         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
23850         __ieee754_sqrt instead of sqrt.
23851         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
23852         __ieee754_sqrtf instead of sqrtf.
23853         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
23854         __floorf instead of floorf.
23855         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
23856         __floorf, __truncf instead of floorf, truncf.
23857
23858 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
23859
23860         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
23861
23862         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
23863         __extern_always_inline.
23864         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
23865         32-bit.
23866
23867 2011-09-14  Andreas Schwab  <schwab@redhat.com>
23868
23869         * elf/rtld.c (dl_main): Also relocate in dependency order when
23870         doing symbol dependency testing.
23871
23872 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
23873
23874         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23875         Always define `refsym'.
23876
23877 2011-09-13  Andreas Schwab  <schwab@redhat.com>
23878
23879         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
23880         (__FD_ELT): Renamed from __FDELT.
23881         * misc/bits/select2.h (__FD_ELT): Likewise.
23882         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
23883         __FD_MASK instead of __FDELT, __FDMASK.
23884         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23885         Likewise.
23886         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23887         Likewise.
23888
23889         * elf/Makefile (gen-ldd): Fix pattern.
23890
23891         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
23892         (init_tls): Likewise.
23893
23894 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
23895
23896         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
23897
23898 2011-09-12  Andreas Schwab  <schwab@redhat.com>
23899
23900         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
23901         `struct cmsghdr *' instead of `void *'.
23902         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
23903         Likewise.
23904
23905 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
23906
23907         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
23908         if non-absolute.
23909         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
23910         ldd_rewrite_script.
23911
23912 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
23913
23914         * configure.in: Remove --with-tls option.
23915         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
23916         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
23917         out in case it is missing.
23918         * sysdeps/ia64/elf/configure.in: Likewise.
23919         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
23920         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
23921         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
23922         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
23923         * sysdeps/sh/elf/configure.in: Likewise.
23924         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
23925         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
23926         * sysdeps/x86_64/elf/configure.in: Likewise.
23927         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
23928         * sysdeps/mach/hurd/tls.h: Likewise.
23929
23930         [BZ #13067]
23931         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
23932
23933         [BZ #13090]
23934         * configure.in: Fix use of AC_INIT.
23935
23936         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
23937
23938 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
23939
23940         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
23941         __set_errno.
23942         * malloc/hooks.c: Likewise.
23943
23944         [BZ #11929]
23945         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
23946         variables statically.
23947         (narenas): Initialize.
23948         (list_lock): Initialize.
23949         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
23950         initializtion of main_arena and list_lock.  Small cleanups.
23951         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
23952         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
23953         Add initializers to main_arena and mp_.
23954         (malloc_state): Remove pagesize member.  Change all users to use
23955         GLRO(dl_pagesize).
23956
23957         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
23958         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
23959         is always initialized.
23960
23961         * malloc/malloc.c: Removed unused configurations and dead code.
23962         * malloc/arena.c: Likewise.
23963         * malloc/hooks.c: Likewise.
23964         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
23965
23966         * include/tls.h: Removed.  USE___THREAD must always be defined.
23967         * bits/libc-tsd.h: Don't handle !USE___THREAD.
23968         * elf/dl-libc.c: Likewise.
23969         * elf/dl-tsd.c: Likewise.
23970         * include/errno.h: Likewise.
23971         * include/netdb.h: Likewise.
23972         * include/resolv.h: Likewise.
23973         * inet/herrno-loc.c: Likewise.
23974         * inet/herrno.c: Likewise.
23975         * malloc/arena.c: Likewise.
23976         * malloc/hooks.c: Likewise.
23977         * malloc/malloc.c: Likewise.
23978         * resolv/res-state.c: Likewise.
23979         * resolv/res_libc.c: Likewise.
23980         * sysdeps/i386/dl-machine.h: Likewise.
23981         * sysdeps/ia64/dl-machine.h: Likewise.
23982         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
23983         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23984         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
23985         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
23986         * sysdeps/sh/dl-machine.h: Likewise.
23987         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
23988         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
23989         * sysdeps/unix/i386/sysdep.S: Likewise.
23990         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23991         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23992         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23993         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23994         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23995         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23996         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23997         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23998         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23999         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24000         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24001         * sysdeps/x86_64/dl-machine.h: Likewise.
24002         * tls.make.c: Likewise.
24003
24004         * configure.in: Remove --with-__thread option.  Make tests for
24005         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
24006         tls_model attribute fail if no support is available.  Remove
24007         USE_IN_LIBIO.
24008         * Makeconfig: Adjust for dropped configure option.  All features are
24009         now mandatory.
24010         * Makerules: Likewise.
24011         * Versions.def: Likewise.
24012         * argp/argp-fmtstream.c: Likewise.
24013         * argp/argp-fmtstream.h: Likewise.
24014         * argp/argp-help.c: Likewise.
24015         * assert/assert.c: Likewise.
24016         * config.h.in: Likewise.
24017         * config.make.in: Likewise.
24018         * configure: Likewise.
24019         * configure.in: Likewise.
24020         * csu/Versions: Likewise.
24021         * csu/init.c: Likewise.
24022         * elf/tst-audit2.c: Likewise.
24023         * elf/tst-tls10.c: Likewise.
24024         * elf/tst-tls10.h: Likewise.
24025         * elf/tst-tls11.c: Likewise.
24026         * elf/tst-tls12.c: Likewise.
24027         * elf/tst-tls14.c: Likewise.
24028         * elf/tst-tlsmod11.c: Likewise.
24029         * elf/tst-tlsmod12.c: Likewise.
24030         * elf/tst-tlsmod13.c: Likewise.
24031         * elf/tst-tlsmod13a.c: Likewise.
24032         * elf/tst-tlsmod14a.c: Likewise.
24033         * elf/tst-tlsmod15b.c: Likewise.
24034         * elf/tst-tlsmod16a.c: Likewise.
24035         * elf/tst-tlsmod16b.c: Likewise.
24036         * elf/tst-tlsmod7.c: Likewise.
24037         * elf/tst-tlsmod8.c: Likewise.
24038         * elf/tst-tlsmod9.c: Likewise.
24039         * gmon/gmon.c: Likewise.
24040         * grp/fgetgrent_r.c: Likewise.
24041         * grp/putgrent.c: Likewise.
24042         * hurd/fopenport.c: Likewise.
24043         * include/libc-symbols.h: Likewise.
24044         * include/tls.h: Likewise.
24045         * intl/gettextP.h: Likewise.
24046         * intl/loadinfo.h: Likewise.
24047         * locale/global-locale.c: Likewise.
24048         * locale/localeinfo.h: Likewise.
24049         * mach/devstream.c: Likewise.
24050         * malloc/arena.c: Likewise.
24051         * malloc/set-freeres.c: Likewise.
24052         * misc/err.c: Likewise.
24053         * misc/getttyent.c: Likewise.
24054         * misc/mntent_r.c: Likewise.
24055         * posix/getopt.c: Likewise.
24056         * posix/wordexp.c: Likewise.
24057         * pwd/fgetpwent_r.c: Likewise.
24058         * resolv/Versions: Likewise.
24059         * resolv/res_hconf.c: Likewise.
24060         * shadow/fgetspent_r.c: Likewise.
24061         * shadow/putspent.c: Likewise.
24062         * stdio-common/printf_fphex.c: Likewise.
24063         * stdio-common/tmpfile.c: Likewise.
24064         * stdlib/abort.c: Likewise.
24065         * stdlib/fmtmsg.c: Likewise.
24066         * sunrpc/auth_unix.c: Likewise.
24067         * sunrpc/clnt_perr.c: Likewise.
24068         * sunrpc/clnt_tcp.c: Likewise.
24069         * sunrpc/clnt_udp.c: Likewise.
24070         * sunrpc/clnt_unix.c: Likewise.
24071         * sunrpc/openchild.c: Likewise.
24072         * sunrpc/svc_simple.c: Likewise.
24073         * sunrpc/svc_tcp.c: Likewise.
24074         * sunrpc/svc_udp.c: Likewise.
24075         * sunrpc/svc_unix.c: Likewise.
24076         * sunrpc/xdr.c: Likewise.
24077         * sunrpc/xdr_array.c: Likewise.
24078         * sunrpc/xdr_rec.c: Likewise.
24079         * sunrpc/xdr_ref.c: Likewise.
24080         * sunrpc/xdr_stdio.c: Likewise.
24081
24082 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24083
24084         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24085
24086 2011-07-03  Andreas Jaeger  <aj@suse.de>
24087
24088         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
24089         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
24090         regenerate with gen-libm-tests.pl.
24091
24092 2010-05-12  Petr Baudis  <pasky@suse.cz>
24093
24094         [BZ #11589]
24095         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
24096         around j0() zero points by switching to j1().
24097         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
24098         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
24099         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24100         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
24101
24102 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24103
24104         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24105         instead of 0.
24106         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
24107         instead of 0.
24108         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24109         Patch in part by Pavel Roskin <proski@gnu.org>.
24110
24111         [BZ #13138]
24112         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
24113         realloc.
24114         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
24115         Free memory block if necessary.
24116
24117         [BZ #12847]
24118         * libio/genops.c (INTDEF): For string streams the _lock pointer can
24119         be NULL.  Don't lock in this case.
24120
24121 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24122
24123         * elf/elf.h (ELFOSABI_GNU): New macro.
24124         (ELFOSABI_LINUX): Define to that.
24125
24126 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24127
24128         * string/strncat.c (strncat): Undef the symbol in case it has been
24129         defined in bits/string.h.
24130
24131 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24132
24133         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24134
24135         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24136         link map.
24137
24138 2011-08-17  Andreas Jaeger  <aj@suse.de>
24139
24140         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24141
24142 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24143             Ian Lance Taylor  <iant@google.com>
24144
24145         * math/libm-test.inc (lround_test): New testcase.
24146         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24147
24148 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24149
24150         * Makefile: Remove support for automatic cvs check-ins.
24151         * Makerules: Likewise.
24152         * config.make.in: Likewise.
24153         * configure.in: Likewise.
24154         * intl/Makefile: Likewise.
24155         * locale/Makefile: Likewise.
24156         * po/Makefile: Likewise.
24157         * posix/Makefile: Likewise.
24158         * sysdeps/gnu/Makefile: Likewise.
24159         * sysdeps/mach/hurd/Makefile: Likewise.
24160         * sysdeps/sparc/sparc32/Makefile: Likewise.
24161
24162         [BZ #13118]
24163         * posix/Makefile (bug-regex32-ENV): Define.
24164         Patch by John Stanley <jpsinthemix@verizon.net>.
24165
24166         * misc/Makefile (headers): Add bits/select2.h.
24167         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24168         * misc/bits/select2.h: New file.
24169         * include/bits/select2.h: New file.
24170         * debug/Makefile (routines): Add fdelt_chk.
24171         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24172         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24173         FD_ISSET.
24174         * debug/fdelt_chk.c: New file.
24175
24176         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24177         * wcsmbs/test-wmemcmp.c: Likewise.
24178         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24179         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24180
24181 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24182
24183         * string/Makefile (strop-tests): Add memcmp.
24184         * string/test-wmemcmp.c: New file.
24185         * string/test-memcmp.c: Add wmemcmp support.
24186
24187 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24188
24189         [BZ #13153]
24190         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24191         2011-07-19 change.
24192
24193         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24194         garbage value in a __mach_port_mod_refs call in the cases of the
24195         task-self and thread-self ports.
24196
24197 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24198
24199         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24200
24201 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24202
24203         * elf/dl-load.c (lose): Check for non-null L.
24204
24205 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24206
24207         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24208
24209         * elf/dl-libc.c (dlerror_run): Pass back error code from
24210         dl_catch_error.
24211
24212         [BZ #13123]
24213         * elf/dl-load.c (lose): Free l_origin if it is valid.
24214
24215         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24216         names.
24217         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24218         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24219         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24220         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24221         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24222         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24223
24224 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24225
24226         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24227         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24228         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24229         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24230         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24231         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24232         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24233         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24234         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24235         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24236
24237 2011-08-15  Alan Modra  <amodra@gmail.com>
24238
24239         [BZ #13092]
24240         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24241         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24242         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24243         ppc_mcount to static-only-routines.
24244         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24245         __mcount_internal.
24246         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24247         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24248
24249 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24250
24251         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24252         for finite and infinity parameters.
24253
24254 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24255
24256         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24257         and add nop instructions for throughput optimization.
24258         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24259
24260 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24261
24262         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24263         aligned copy for power7 with vector-scalar instructions.
24264         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24265
24266 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24267
24268         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24269         AVX check.
24270
24271 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24272
24273         [BZ #13144]
24274         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24275         last change.
24276
24277 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24278
24279         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24280         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24281         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24282         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24283         clock_gettime.
24284
24285 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24286
24287         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24288         Forgot to demangle the pointer.
24289
24290         * sysdeps/i386/sysdep.h: Define atom_text_section.
24291         * sysdeps/x86_64/sysdep.h: Likewise.
24292         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24293         section with atom_text_section.
24294         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24295         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24296         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24297         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24298         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24299
24300         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24301         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24302         already be defined.  Change to take two parameters and don't assign
24303         result to variable.  Adjust all users.
24304         Define INTERNAL_GETTIME if not already defined.
24305         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24306         call.
24307         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24308         HAVE_CLOCK_GETTIME_VSYSCALL.
24309         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24310
24311         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24312         gettimeofday vsyscall, just use time.
24313
24314 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24315
24316         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24317         <errno.h>.
24318
24319 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24320
24321         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24322         syscall on x86-64.
24323         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24324         syscall.
24325         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24326         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24327         syscall if possible.
24328
24329 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24330
24331         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24332         e_ident.  Don't pass to find_mapsXX.
24333         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24334
24335 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24336
24337         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24338         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24339         * sysdeps/x86_64/multiarch/strchr.S: Update.
24340         Check bit_slow_BSF bit.
24341         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24342         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
24343         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
24344
24345 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24346
24347         [BZ #13134]
24348         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
24349         before glibc 2.15.
24350         (tryshell): Define.
24351         (__spawni): Change last parameter to be flag.  Test
24352         SPAWN_XFLAGS_USE_PATH flag to use path or not.
24353         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
24354         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
24355         * posix/spawni.c: Likewise.
24356         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
24357         * posix/spawnp.c: Likewise.  Change normal version to use
24358         SPAWN_XFLAGS_USE_PATH.
24359         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
24360         SPAWN_XFLAGS_TRY_SHELL.
24361
24362         [BZ #13150]
24363         * posix/glob.h: Remove gcc 1.x support.
24364
24365         [BZ #13068]
24366         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
24367
24368 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24369
24370         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24371         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
24372         strrchr-sse2-bsf
24373         * sysdeps/i386/i686/multiarch/strchr.S: New file.
24374         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
24375         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
24376         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
24377         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
24378         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
24379
24380 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24381
24382         * sysdeps/x86_64/wcscmp.S: New file.
24383
24384         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
24385         wcscmp-c wcscmp-sse2
24386         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
24387         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
24388         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
24389         * wcsmbs/wcscmp.c: Allow renaming.
24390
24391 2011-09-05  David S. Miller  <davem@davemloft.net>
24392
24393         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
24394         stack slot, rather than the struct return pointer slot.
24395         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
24396         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
24397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
24398         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
24399
24400 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24401
24402         * po/ja.po: Update from translation team.
24403
24404         [BZ #13144]
24405         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
24406         kernel in 64-bit binaries.
24407
24408 2011-09-01  David S. Miller  <davem@davemloft.net>
24409
24410         * elf/elf.h (HWCAP_SPARC_*): Move to..
24411         * sysdeps/sparc/sysdep.h: this new file and add new values.
24412         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
24413         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
24414         _DL_HWCAP_COUNT to 24.
24415         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
24416         entries.
24417         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
24418         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
24419         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
24420         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
24421         instead of magic constants.
24422         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24423
24424 2011-08-31  David S. Miller  <davem@davemloft.net>
24425
24426         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
24427         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
24428         Reimplement to do errno handling inline.
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/sparc64/sysdep.h: Include
24434         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
24435         (PSEUDO): Reimplement to do errno handling inline.
24436         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
24437         (SYSCALL_ERROR_HANDLER): New macro.
24438         (__SYSCALL_STRING): Do not do errno handling in asm.
24439         (__CLONE_SYSCALL_STRING): Delete.
24440         (__INTERNAL_SYSCALL_STRING): Delete.
24441         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
24442         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
24443         i386.
24444         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
24445         (inline_syscall*): Add 'err' argument.
24446         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
24447         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
24448         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
24449         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
24450
24451         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
24452         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
24453
24454 2011-08-30  Andreas Schwab  <schwab@redhat.com>
24455
24456         * elf/rtld.c (dl_main): Relocate objects in dependency order.
24457
24458 2011-08-29  Jiri Olsa <jolsa@redhat.com>
24459
24460         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
24461         directive.
24462
24463 2011-08-24  David S. Miller  <davem@davemloft.net>
24464
24465         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
24466
24467 2011-08-24  Andreas Schwab  <schwab@redhat.com>
24468
24469         * elf/Makefile: Add rules to build and run unload8 test.
24470         * elf/unload8.c: New file.
24471         * elf/unload8mod1.c: New file.
24472         * elf/unload8mod1x.c: New file.
24473         * elf/unload8mod2.c: New file.
24474         * elf/unload8mod3.c: New file.
24475
24476         * elf/dl-close.c (_dl_close_worker): Reset private search list if
24477         it wasn't used.
24478
24479 2011-08-23  David S. Miller  <davem@davemloft.net>
24480
24481         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
24482         subtract stack bias.
24483         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
24484         %sp not %fp in calculations.
24485         (_JMPBUF_UNWINDS_ADJ): Likewise.
24486
24487         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
24488         (aio_suspend): Call it to force an exception region around the
24489         AIO_MISC_WAIT() invocation.
24490
24491 2011-08-23  Andreas Schwab  <schwab@redhat.com>
24492
24493         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
24494         backslash.
24495
24496 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
24497
24498         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
24499         protection macro.
24500         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
24501         and <dl-machine.h>.
24502         (Elf64_FuncDesc): Remove.
24503
24504 2011-08-22  David S. Miller  <davem@davemloft.net>
24505
24506         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
24507         sigaltstack check, add missing cfi directives.
24508         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
24509         missing cfi directives, and sigaltstack handling.
24510
24511 2011-08-16  Andreas Schwab  <schwab@redhat.com>
24512
24513         [BZ #11724]
24514         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
24515         object is seen twice.
24516         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24517
24518         * elf/Makefile (distribute): Add tst-initorder2.c.
24519         (tests): Add tst-initorder2.
24520         (modules-names): Add tst-initorder2a tst-initorder2b
24521         tst-initorder2c tst-initorder2d.  Add rules to build them.
24522         ($(objpfx)tst-initorder2.out): New rule.
24523         * elf/tst-initorder2.c: New file.
24524         * elf/tst-initorder2.exp: New file.
24525
24526 2011-08-22  Andreas Schwab  <schwab@redhat.com>
24527
24528         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
24529
24530         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
24531         dependencies back to end of function.
24532
24533         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
24534         $(elfobjdir)/ld.so.
24535
24536 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
24537
24538         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
24539         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
24540         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
24541         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
24542         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
24543         of __vdso_gettimeofday.
24544         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
24545         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
24546         attribute_hidden.
24547         (_libc_vdso_platform_setup): Remove initialization of
24548         __vdso_gettimeofday and __vdso_time.
24549
24550 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24551
24552         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
24553         and fgetc_unlocked.
24554         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
24555         getc_unlocked.
24556
24557         * elf/dl-open.c (add_to_global): Report additions to the global scope
24558         for LD_DEBUG=scopes.
24559         (dl_open_worker): Also print scope of newly loaded dependencies.
24560         (_dl_show_scope): Indicate if there is no scope.
24561
24562         [BZ #13114]
24563         * stdio-common/Makefile (tests): Add bug24.
24564         * stdio-common/bug24.c: New file.
24565
24566 2011-08-19  Andreas Jaeger  <aj@suse.de>
24567
24568         [BZ #13114]
24569         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
24570         non-existant file when using close-on-exec mode.
24571
24572 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24573
24574         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
24575         the very first instruction.
24576
24577         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
24578         the CFI state in the end.
24579         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
24580         inclusion of dl-trampoline.h.
24581         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
24582
24583 2011-08-19  Andreas Schwab  <schwab@redhat.com>
24584
24585         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
24586         expectations for long double.
24587
24588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
24589         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
24590
24591 2011-08-14  David S. Miller  <davem@davemloft.net>
24592
24593         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
24594         artificual limit depends upon the system page size.
24595
24596 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24597
24598         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
24599         * resolv/Makefile: Define CFLAGS-libresolv.
24600
24601 2011-08-17  Andreas Schwab  <schwab@redhat.com>
24602
24603         * nss/makedb.c (compute_tables): Make variables used in nested
24604         function static.
24605
24606 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24607
24608         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
24609         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
24610         if buffer was too small.
24611
24612         * elf/pldd.c (main): Attach to all threads in the process.
24613         Rewrite /proc handling to use *at functions.
24614
24615 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
24616
24617         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
24618         specifies first scope to show.
24619         (dl_open_worker): Update callers.  Move printing scope of new
24620         object to before the relocation.
24621         * elf/rtld.c (dl_main): Update _dl_show_scope call.
24622         * sysdeps/generic/ldsodefs.h: Update declaration.
24623
24624         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
24625         string for the scope number.
24626
24627 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
24628
24629         * nscd/servicescache.c (cache_addserv): Make sure written is always
24630         initialized.
24631
24632 2011-08-14  Roland McGrath  <roland@hack.frob.com>
24633
24634         * sysdeps/i386/i486/bits/atomic.h
24635         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
24636         statement expression, so as to suppress "set but not used" warning.
24637         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
24638
24639         * string/strncat.c (STRNCAT): Use prototype definition.
24640
24641         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
24642         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
24643         -Iprograms here.
24644         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
24645         (localedef-modules): Add localedef.
24646         (locale-modules): Add locale.
24647
24648         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
24649         * elf/rtld.c (dl_main): Invert order of assignment in last change,
24650         to avoid a warning.
24651
24652 2011-08-14  David S. Miller  <davem@davemloft.net>
24653
24654         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
24655         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
24656
24657 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
24658
24659         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
24660         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
24661         * elf/rtld.c (dl_main): Set l_name of vDSO.
24662         Call _dl_show_scope when DL_DEBUG_SCOPES.
24663         (process_dl_debug): Recognize scopes flag and also set it for all.
24664         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
24665         Declare _dl_show_scope.
24666
24667         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
24668         (do_dlopen): Pass caller_dlopen to dl_open.
24669         (__libc_dlopen_mode): Initialize caller_dlopen.
24670
24671         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
24672         of libc.  Make tolower call locale-independent.  Optimize a bit by
24673         using isdigit instead of isalnum.
24674         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
24675
24676 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
24677
24678         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
24679         was a dependency or dynamically loaded.
24680
24681 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
24682
24683         * intl/l10nflist.c: Allow architecture-specific pop function.
24684         * sysdeps/x86_64/l10nflist.c: New file.
24685
24686         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
24687         classification.
24688
24689 2011-08-10  Andreas Schwab  <schwab@redhat.com>
24690
24691         * include/dirent.h: Add libc_hidden_proto for scandirat and
24692         scandirat64.  Don't declare __scandirat64.
24693         * dirent/scandirat.c: Add libc_hidden_def.
24694         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
24695         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
24696
24697 2011-08-10  David S. Miller  <davem@davemloft.net>
24698
24699         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
24700         enum.
24701         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24702         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24703         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24704
24705 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
24706
24707         * Versions.def [libc]: Add GLIBC_2.15.
24708         * dirent/Makefile (routines): Add scandirat and scandirat64.
24709         * dirent/Versions [libc]: Export scandirat and scandirat64 for
24710         GLIBC_2.15.
24711         * dirent/dirent.h: Declare scandirat and scandirat64.
24712         * dirent/scandirat.c: New file.
24713         * dirent/scandirat64.c: New file.
24714         * sysdeps/wordsize-64/scandirat.c: New file.
24715         * sysdeps/wordsize-64/scandirat64.c: New file.
24716         * dirent/opendir.c: Define opendirat.
24717         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
24718         using scandirat.
24719         * dirent/scandir64.c: Adjust for scandir.c change.
24720         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
24721         __scandirat64, and __scandir_cancel_handler.
24722         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
24723         additional parameter and use openat instead of open (outside of ld.so).
24724         Add new __opendir as wrapper around __opendirat.
24725         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
24726         here without requiring old scandirat implementation.
24727
24728 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
24729
24730         * dirent/scandir.c (cancel_handler): Renamed to
24731         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
24732         defined.  Adjust users.
24733         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
24734         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
24735
24736 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
24737
24738         * string/test-string.h (IMPL): Use __STRING to expand name and then
24739         stringify it.
24740
24741         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
24742         of cleanups.
24743
24744 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24745
24746         * string/Makefile: Update.
24747         (strop-tests): Append strncat.
24748         * string/test-wcscmp.c: New file.
24749         New comprehensive test for wcscmp.
24750         * string/test-strcmp.c: Update.
24751         (WIDE): New define.
24752
24753 2011-07-22  Andreas Schwab  <schwab@redhat.com>
24754
24755         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
24756         line.
24757
24758 2011-07-26  Andreas Schwab  <schwab@redhat.com>
24759
24760         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
24761         encoding to ACE if AI_IDN.
24762
24763 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
24764
24765         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
24766         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
24767
24768 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24769
24770         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
24771         Fix overflow bug in strncat.
24772         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24773
24774         * string/test-strncat.c: Update.
24775         Add new tests for checking overflow bugs.
24776
24777 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24778
24779         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24780         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
24781         * sysdeps/i386/i686/multiarch/strcat.S: New file.
24782         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
24783         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
24784         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
24785         * sysdeps/i386/i686/multiarch/strncat.S: New file.
24786         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
24787         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
24788
24789         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
24790         (USE_AS_STRCAT): Define.
24791         Add strcat and strncat support.
24792         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24793
24794 2011-07-25  Andreas Schwab  <schwab@redhat.com>
24795
24796         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
24797         __n bigger than INT_MAX+1.
24798         (__strncmp_g): Likewise.
24799
24800 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
24801
24802         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
24803         * libio/stido.h: Likewise.
24804
24805         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
24806         (AF_NFC): Define.
24807         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
24808         (AF_NFC): Define.
24809
24810         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
24811         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24812         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24813         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24814         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24815
24816         [BZ #13021]
24817         * scripts/test-installation.pl: Don't expect libnss_test1 to be
24818         installed.
24819
24820         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
24821         typo.
24822         (_dl_x86_64_save_sse): Likewise.
24823
24824 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
24825
24826         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
24827         OSXSAVE.
24828         (_dl_x86_64_save_sse): Likewise.
24829
24830         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
24831
24832         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
24833
24834 2011-07-21  Andreas Schwab  <schwab@redhat.com>
24835
24836         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
24837         change.
24838         (_dl_x86_64_save_sse): Use correct AVX check.
24839
24840 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24841
24842         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
24843         bug in strncpy/strncat.
24844         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24845
24846 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
24847
24848         * string/tester.c (test_strcat): Add tests for different alignments
24849         of source and destination.
24850         (test_strncat): Likewise.
24851
24852 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24853
24854         [BZ #12852]
24855         * posix/glob.c (glob): Check passed in values before using them in
24856         expressions to avoid some overflows.
24857         (glob_in_dir): Likewise.
24858
24859         [BZ #13007]
24860         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
24861         check for AVX enablement so that we don't crash with old kernels and
24862         new hardware.
24863         * elf/tst-audit4.c: Add same checks here.
24864         * elf/tst-audit6.c: Likewise.
24865
24866         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
24867
24868 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
24869
24870         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
24871
24872 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24873
24874         * po/cs.po: Update from translation team.
24875         * po/bg.po: Likewise.
24876
24877 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
24878
24879         * misc/sys/cdefs.h: Add support for const attribute.
24880         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
24881         to gnu_dev_{major,minor,makedev} functions.
24882
24883 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
24884
24885         * intl/dcigettext.c (get_output_charset): Add missing bracket.
24886
24887 2011-07-20  Andreas Schwab  <schwab@redhat.com>
24888
24889         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
24890         strlen results.
24891
24892 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24893
24894         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
24895         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
24896         register in order to avoid conflicts with the soft frame pointer
24897         being held in r11 when necessary.
24898         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24899         (INTERNAL_VSYSCALL_NCS): Likewise.
24900
24901 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
24902
24903         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
24904         * elf/dl-fini.c (_dl_fini): Adjust caller.
24905         * elf/dl-close.c (_dl_close_worker): Likewise.
24906         * sysdeps/generic/ldsodefs.h: Adjust declaration.
24907
24908 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24909
24910         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
24911         "aux_cache->nlibs < 0".
24912
24913         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
24914         in the reload-count case.
24915
24916 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24917
24918         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24919         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
24920         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
24921         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
24922         * sysdeps/x86_64/multiarch/strcat.S: New file.
24923         * sysdeps/x86_64/multiarch/strncat.S: New file.
24924         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
24925         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
24926         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
24927         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
24928         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
24929         (USE_AS_STRCAT): Define.
24930         Add strcat and strncat support.
24931         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24932         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24933         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
24934         * string/strncat.c: Update.
24935         (USE_AS_STRNCAT): Define.
24936         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24937         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
24938         and i7.
24939         * sysdeps/x86_64/multiarch/init-arch.h
24940         (bit_Prefer_PMINUB_for_stringop): New.
24941         (index_Prefer_PMINUB_for_stringop): Likewise.
24942         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
24943         bit_Prefer_PMINUB_for_stringop.
24944
24945 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24946
24947         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
24948         buffer64.
24949         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
24950         of casting of buffer.
24951         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
24952         buffer32 and buffer64.
24953         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
24954         writes instead of casting of buffer.
24955         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
24956         buffer32.
24957         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
24958         casting of buffer.
24959
24960 2011-07-19  Andreas Schwab  <schwab@redhat.com>
24961
24962         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
24963
24964 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24965
24966         * nscd/nscd.c (termination_handler): Don't do anything for a database
24967         if it has not yet been initialized.
24968
24969 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24970
24971         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24972
24973 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24974
24975         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24976
24977 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24978
24979         * po/nl.po: Update from translation team.
24980         * po/sv.po: Likewise.
24981
24982 2011-07-16  Roland McGrath  <roland@hack.frob.com>
24983
24984         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
24985         now disallowed by GCC.
24986
24987         * configure.in (use-default-link): Default to yes if a test -shared
24988         link meets our qualifications.
24989         * configure: Regenerated.
24990
24991         * config.make.in (output-format): New variable.
24992         * configure.in: Check for ld --print-output-format support.
24993         * configure: Regenerated.
24994         * Makerules ($(common-objpfx)format.lds)
24995         [$(output-format) != unknown]: Just use $(output-format),
24996         instead of the linker-script munging.
24997
24998 2011-07-14  Roland McGrath  <roland@hack.frob.com>
24999
25000         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
25001         of $(common-objpfx)shlib.lds.
25002         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
25003
25004         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
25005         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
25006
25007         * configure.in (-z relro check): Adjust test code to add a large
25008         writable data section after it.
25009         * configure: Regenerated.
25010
25011 2011-07-11  Roland McGrath  <roland@hack.frob.com>
25012
25013         * configure.in (-z relro check): Fix test code to make the variable
25014         truly const.
25015         * configure: Regenerated.
25016
25017 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
25018
25019         * nscd/nscd.h (struct traced_file): Define.
25020         (struct database_dyn): Remove inotify_descr, reset_res, and filename
25021         elements.  Add traced_files.
25022         (inotify_fd): Declare.
25023         (register_traced_file): Declare.
25024         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
25025         (inotify_fd): Export.
25026         (resolv_conf_descr): Remove.
25027         (nscd_init): Move inotify descriptor creation to main.
25028         Don't register files for notification here.
25029         (register_traced_file): New function.
25030         (invalidate_cache): Don't use reset_res to determine whether to call
25031         res_init, go through the list of registered files.
25032         (main_loop_poll): The inotify descriptors are now stored in the
25033         structures for the traced files.
25034         (main_loop_epoll): Likewise
25035         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
25036         to __nss_disable_nscd.
25037         * nscd/cache.c (prune_cache): There is no single inotify descriptor
25038         for a database anymore.  Check the records for all the registered
25039         files instead.
25040         * nss/Makefile (libnss_files-routines): Add files-init.
25041         (libnss_db-routines): Add db-init.
25042         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
25043         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
25044         * nss/nss_db/db-init.c: New file.
25045         * nss/nss_files/files-init.c: New file.
25046         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
25047         __nss_lookup_function.
25048         (__nss_lookup_function): Call nss_load_library.
25049         (nss_load_all_libraries): New function.
25050         (__nss_disable_nscd): Take parameter with callback function for files
25051         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
25052         used for the cached services.
25053         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
25054         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
25055         options for features to all the files in nscd.
25056
25057         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
25058
25059 2011-07-10  Roland McGrath  <roland@hack.frob.com>
25060
25061         * csu/elf-init.c (__libc_csu_init): Comment typo.
25062
25063 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
25064
25065         * po/pl.po: Update from translation team.
25066         * po/ja.po: Likewise.
25067         * po/ru.po: Likewise.
25068         * po/ko.po: Likewise.
25069         * po/fr.po: Likewise.
25070
25071 2011-07-09  Roland McGrath  <roland@hack.frob.com>
25072
25073         * configure.in (.ctors/.dtors header and trailer check):
25074         Use an empirical test on a built program.
25075         * configure: Regenerated.
25076
25077         * configure.in (-z relro check): Use an empirical test on a built DSO.
25078         Detect, but do not require, on ia64.
25079         * configure: Regenerated.
25080
25081         * configure.in (READELF): Find it with AC_CHECK_TOOL.
25082         Update tests that use readelf to use $READELF instead.
25083         * configure: Regenerated.
25084
25085 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
25086
25087         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
25088         if the result is not used.
25089
25090 2011-07-05  Andreas Jaeger  <aj@suse.de>
25091
25092         [BZ#9696]
25093         * stdlib/tst-strtod.c: Add testcase.
25094
25095 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
25096
25097         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
25098         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
25099         The latter has a higher limit.  Take additional parameter to pass to
25100         the new function.
25101         (__pathconf): Pass file to __statfs_link_max.
25102         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
25103         __statfs_link_max.
25104         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
25105         __statfs_link_max.
25106
25107         [BZ #12868]
25108         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
25109         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25110         Handle Lustre.
25111         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
25112         (__statfs_filesize_max): Likewise.
25113         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
25114
25115 2011-07-05  Andreas Jaeger  <aj@suse.de>
25116
25117         * resolv/res_comp.c (dn_skipname): Remove unused variable.
25118
25119 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
25120
25121         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25122         `status' variable.
25123         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25124         Likewise.
25125
25126 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25127
25128         * Makefile (strop-tests): Add strncat.
25129         * string/test-strncat.c: New file.
25130
25131 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25132
25133         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25134
25135 2011-06-21  Andreas Jaeger  <aj@suse.de>
25136
25137         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25138         Copy rule from iconvdata/Makefile.
25139
25140 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25141
25142         [BZ #12922]
25143         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25144         but no long options are defined, just return 'W'.
25145
25146 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25147
25148         [BZ #9696]
25149         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25150
25151 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25152
25153         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25154         netgroups to read.
25155         (innetgr): Likewise.
25156
25157 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25158
25159         * config.make.in (install_root): Default to $(DESTDIR).
25160
25161 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25162
25163         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25164
25165 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25166
25167         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25168
25169         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25170         containing directory rather than embedding absolute directory names.
25171
25172         * scripts/check-local-headers.sh: Rewritten using awk.
25173         Match by word, not by line.  Print error messages for matches.
25174         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25175
25176         * Makerules [shlib-lds-flags empty]:
25177         ($(common-objpfx)libc_pic.opts): New target.
25178         ($(common-objpfx)libc_pic.os.clean): New target.
25179         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25180
25181         * config.make.in (OBJCOPY): New variable.
25182         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25183         * configure: Regenerated.
25184
25185         * config.make.in (use-default-link): New variable.
25186         * configure.in (use_default_link): Grok --with-default-link to set it.
25187         * configure: Regenerated.
25188         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25189         (shlib-lds, shlib-lds-flags): Define to empty.
25190
25191         * Makerules (shlib-lds): New variable.
25192         (shlib-lds-flags): New variable.
25193         (build-shlib, build-moduile, build-module-asneeded): Use it.
25194         ($(common-objpfx)libc.so): Use $(shlib-lds).
25195         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25196         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25197
25198         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25199         DT_FLAGS/DT_FLAGS_1 with zero flags.
25200
25201         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25202         linker script munging.
25203
25204 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25205
25206         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25207         as 128-bit value.
25208         * crypt/sha512.c (sha512_process_block): Perform total addition using
25209         128-bit if possible.
25210         (__sha512_finish_ctx): Likewise.
25211         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25212         as 64-bit value.
25213         * crypt/sha256.c (SWAP64): Define.
25214         (sha256_process_block): Perform total addition using 64-bit if
25215         possible.
25216         (__sha256_finish_ctx): Likewise.
25217
25218 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25219
25220         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25221         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25222         * nscd/hstcache.c (cache_addhst): Likewise.
25223         * nscd/grpcache.c (cache_addgr): Likewise.
25224         * nscd/aicache.c (addhstaiX): Likewise
25225         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25226
25227 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25228
25229         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25230         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25231         * nscd/hstcache.c (cache_addhst): Likewise.
25232         * nscd/grpcache.c (cache_addgr): Likewise.
25233         * nscd/aicache.c (addhstaiX): Likewise
25234
25235 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25236
25237         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25238         domain only when needed.
25239
25240 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25241
25242         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25243         is always restored.
25244
25245 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25246
25247         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25248         are re-adding the entry.
25249         * nscd/servicescache.c (cache_addserv): Likewise.
25250
25251 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25252
25253         * sysdeps/generic/dl-irel.h: fix protection against multiple
25254         inclusions.
25255         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25256
25257 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25258
25259         [BZ #12935]
25260         * malloc/memusage.sh: Fix quoting in message.
25261         * debug/xtrace.sh: Likewise.
25262
25263         * configure.in: Remove support for --experimental-malloc option, make
25264         it the default.
25265         * config.make.in: Likewise.
25266         * malloc/Makefile: Likewise.
25267
25268 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25269
25270         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25271         two-byte characters.
25272
25273 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25274
25275         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25276         AC_CACHE_CHECK invocation.
25277         * configure: Regenerated.
25278
25279         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25280
25281 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25282
25283         [BZ #12350]
25284         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25285         bit from old_res_options.
25286
25287         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25288
25289         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25290         value type for setfct.
25291
25292 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25293
25294         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25295         __gettimeofday instead of gettimeofday.
25296
25297 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25298
25299         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25300
25301 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25302
25303         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25304
25305         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25306         info.
25307
25308 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25309
25310         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25311         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25312         strcpy-sse2-unaligned strncpy-sse2-unaligned
25313         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25314         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25315         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25316         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25317         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25318         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25319         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25320         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25321         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25322         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25323         (STRCPY): Support SSE2 and SSSE3 versions.
25324
25325 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25326
25327         [BZ #12874]
25328         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25329         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25330         kernels which artificially limit size of requests.
25331
25332 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25333
25334         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25335         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25336         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25337         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25338         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25339         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25340         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25341         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
25342         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
25343         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
25344         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
25345         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
25346         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
25347         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
25348         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
25349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25350         Enable unaligned load optimization for Intel Core i3, i5 and i7
25351         processors.
25352         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
25353         Define.
25354         (index_Fast_Unaligned_Load): Define.
25355         (HAS_FAST_UNALIGNED_LOAD): Define.
25356
25357 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
25358
25359         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
25360
25361 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25362
25363         [BZ #12907]
25364         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
25365         until it is clear that the information is realy needed.
25366         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
25367
25368 2011-06-22  Andreas Schwab  <schwab@redhat.com>
25369
25370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
25371
25372 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25373
25374         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25375         /sys/devices/system/cpu/online if it is usable.
25376
25377         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
25378         reading the information from the /proc filesystem to once a second.
25379
25380 2011-06-21  Andreas Jaeger  <aj@suse.de>
25381
25382         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
25383         NULL after inclusion of kernel headers.
25384
25385 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
25386
25387         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
25388         calls to internal_setent.
25389
25390         [BZ #12885]
25391         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
25392         addresses using gethostbyname4_r ignore IPv4 addresses.
25393
25394         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
25395         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
25396
25397         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
25398
25399 2011-06-20  David S. Miller  <davem@davemloft.net>
25400
25401         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
25402         inclusions.
25403         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
25404
25405         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
25406         (elf_irel): Use it.
25407         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
25408         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
25409         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
25410         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
25411         * sysdeps/x86_64/dl-irel.h: Likewise.
25412
25413         * elf/dl-runtime.c: Use elf_ifunc_invoke.
25414         * elf/dl-sym.c: Likewise.
25415
25416 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25417
25418         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
25419         need to dereference resplen2.
25420
25421 2011-06-14  Andreas Schwab  <schwab@redhat.com>
25422
25423         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
25424
25425 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25426
25427         * Makeconfig: Define vardbdir and inst_vardbdir.
25428         * nss/Makefile: Add rules to install db-Makefile.
25429
25430         * nss/nss_db/db-XXX.c: Cleanup.
25431
25432         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
25433         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
25434         GLIBC_PRIVATE.
25435         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
25436         * nss/makedb.c: Implement -g option to specify that value strings
25437         are generated and should not be added to table iterated over for
25438         get*ent calls.
25439         * nss/nss_db/db-initgroups.c: New file.
25440
25441         * nss/getent.c: Add support for initgroups lookups through getgrouplist
25442         interface.
25443
25444         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
25445         (internal_getgrouplist): Adjust to name change.
25446         Update use_initgroups_entry if this is not the first call.
25447         * nss/databases.def: Add initgroups entry.
25448
25449         * nss/makedb.c (compute_tables): Check result of multiple hash table
25450         sizes to minimize maximum chain length.
25451
25452 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
25453
25454         * Versions.def: Add entry for libnss_db.
25455         * shlib-versions: Likewise.
25456         * nss/Makefile: Add rules to build libnss_db.
25457         * nss/Versions: Add libnss_db information.  Organize libnss_files
25458         entries better.
25459         * nss/db-Makefile: Add gshadow support.  Change rules for the new
25460         makedb progra.  Some minor improvements to generate smaller files.
25461         * nss/nss_db/nss_db.h: Move NSS database header data structures to
25462         here from...
25463         * nss/makedb.c: ...here.
25464         Improve database format to be smaller and require less memory at
25465         runtime.
25466         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
25467         db anymore.
25468         * nss/nss_db/db-netgrp.c: Likewise.
25469         * nss/nss_db/db-open.c: Likewise.
25470         * nss/nss_files/flies-XXX.x: Adjust comments.
25471         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
25472         * nss/nss_files/files-grp.c: Likewise.
25473         * nss/nss_files/files-hosts.c: Likewise.
25474         * nss/nss_files/files-network.c: Likewise.
25475         * nss/nss_files/files-proto.c: Likewise.
25476         * nss/nss_files/files-pwd.c: Likewise.
25477         * nss/nss_files/files-rpc.c: Likewise.
25478         * nss/nss_files/files-service.c: Likewise.
25479         * nss/nss_files/files-sgrp.c: Likewise.
25480         * nss/nss_files/files-spwd.c: Likewise.
25481         * nss/nss_db/db-alias.c: Removed.
25482         * nss/nss_db/dummy-db.h: Removed.
25483
25484 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
25485
25486         * nss/makedb.c: Rewritten to not use database library.
25487         * nss/Makefile: Update to build new makedb program.
25488
25489 2011-06-14  Andreas Jaeger  <aj@suse.de>
25490
25491         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
25492         memset declaration.
25493
25494 2011-06-10  Andreas Schwab  <schwab@redhat.com>
25495
25496         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
25497         tmpbuf.
25498
25499 2011-06-10  Roland McGrath  <roland@hack.frob.com>
25500
25501         * Makerules (shlib.lds): Fail if the linker script comes out empty.
25502         * elf/Makefile ($(objpfx)ld.so): Likewise.
25503
25504         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
25505         Don't list ld.so twice in dependencies.
25506
25507         * posix/bug-regex31.c: Include <stdlib.h>.
25508
25509         * nscd/hstcache.c (cache_addhst): Remove unused variable.
25510
25511         * nis/nss_compat/compat-spwd.c
25512         (getspent_next_nss_netgr): Remove unused variable.
25513         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
25514
25515         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
25516         nonmembers" output to use the right array.
25517
25518         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
25519
25520         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
25521
25522         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
25523         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
25524         * catgets/gencat.c (read_input_file): Likewise.
25525         * locale/programs/locarchive.c (enlarge_archive): Likewise.
25526
25527         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
25528         variable definition inside #if's controlling its use.
25529
25530         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
25531
25532         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
25533
25534         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
25535
25536         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
25537         unreachable code.
25538
25539         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
25540
25541         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
25542         * configure: Regenerated.
25543
25544         * Makerules: Revert last change.
25545         * elf/Makefile: Likewise.
25546
25547 2011-06-09  Roland McGrath  <roland@hack.frob.com>
25548
25549         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
25550         * elf/Makefile ($(objpfx)librtld.os): Likewise.
25551         (reloc-link): Likewise.
25552
25553 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
25554
25555         * elf/Makefile: Add rules to build pldd.
25556         * elf/pldd.c: New file.
25557         * elf/pldd-xx.c: New file.
25558
25559 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
25560
25561         * version.h: Update for 2.15 development version.
25562
25563 2011-06-07  David S. Miller  <davem@davemloft.net>
25564
25565         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
25566         ifuncs.
25567         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
25568         elf_machine_lazy_rel): Likewise.
25569         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
25570         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
25571         elf_machine_lazy_rel): Likewise.
25572         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
25573         dl_hwcap via passed in argument.
25574         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
25575         Likewise.
25576
25577 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25578
25579         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
25580
25581 2011-06-06  Roland McGrath  <roland@hack.frob.com>
25582
25583         [BZ #12849]
25584         * manual/fdl-1.1.texi: New file, verbatim from:
25585         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
25586         * manual/lgpl-2.1.texi: New file, verbatim from:
25587         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
25588         * manual/Makefile (licenses): New variable, list those new file names.
25589         (texis): Use it.
25590         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
25591
25592         * manual/fdl.texi: File removed.
25593         * manual/lesser.texi: File removed.
25594         * manual/libc.texinfo (Copying, Documentation License):
25595         Use new @include file names, put @appendix directive before @include.
25596
25597 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
25598
25599         [BZ #12841]
25600         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
25601         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
25602         (mq_open): Add __NTH.
25603
25604 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
25605
25606         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25607         Assume Intel Core i3/i5/i7 processor if AVX is available.
25608
25609 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25610
25611         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
25612         typo.
25613
25614 2011-05-31  Andreas Schwab  <schwab@redhat.com>
25615
25616         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
25617         memory.  Use alloca_account.  Fix memory leak when retrying.
25618
25619 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25620
25621         * version.h (RELEASE): Bump for 2.14 release.
25622         * include/features.h (__GLIBC_MINOR__): Bump to 14.
25623
25624         * config.make.in (RANLIB): Remove entry.
25625
25626 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
25627
25628         * po/Makefile (po-sed-cmd): Add ksh to extensions.
25629         (libc.pot): Work around missing support for .ksh extension in xgettext.
25630
25631         [BZ #12684]
25632         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
25633         if both request failed.
25634         (send_dg): In case of server errors clear resplen or *resplen2.
25635
25636         [BZ #12454]
25637         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
25638         when there are multiple maps.
25639         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
25640         (_dl_fini): Remove test here.
25641
25642         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
25643
25644 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
25645
25646         [BZ #12350]
25647         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
25648         bit from old_res_options.
25649         (gaih_inet): Likewise.
25650
25651         [BZ #11099]
25652         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
25653         as signed.
25654
25655         * resolv/res_init.c (res_setoptions): Make the code more compact.
25656
25657         [BZ #11558]
25658         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
25659         set RES_USEVC.
25660
25661         [BZ #11634]
25662         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
25663
25664         * malloc/malloc.h: Mark malloc hook variables as deprecated.
25665
25666         [BZ #11781]
25667         * malloc/malloc.h: Declare malloc hook variables as volatile.
25668
25669         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
25670         in last patch.
25671
25672         [BZ #11799]
25673         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
25674         raise in the comment.
25675         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25676         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25677         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
25678
25679 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
25680
25681         [BZ #12811]
25682         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
25683         grow the buffers more if it already has to be sufficient.
25684         (build_wcs_upper_buffer): Likewise.
25685         * posix/regexec.c (check_matching): Likewise.
25686         (clean_state_log_if_needed): Likewise.
25687         (extend_buffers): Don't enlarge buffers beyond size of the input
25688         buffer.
25689         Patches mostly by Emil Wojak <emil@wojak.eu>.
25690         * posix/bug-regex32.c: New file.
25691         * posix/Makefile (tests): Add bug-regex32.
25692
25693         * locale/findlocale.c (_nl_find_locale): Return right away if
25694         _nl_explode_name failed.
25695         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
25696
25697         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
25698
25699         * debug/xtrace.sh: Unify messages.
25700         * malloc/memusage.sh: Likewise.
25701
25702         [BZ #12813]
25703         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
25704         time symbol from vDSO.  Substitute with vsyscall if not available.
25705         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
25706         __vdso_time.
25707
25708         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
25709         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
25710         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
25711         Add sendmmsg and internal_sendmmsg.
25712         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
25713         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
25714         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
25715
25716         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
25717         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
25718         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
25719
25720 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
25721
25722         [BZ #12813]
25723         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
25724         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
25725         available.
25726         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
25727         __vdso_getcpu.
25728
25729         [BZ #12814]
25730         * iconvdata/Makefile (tests): Add bug-iconv9.
25731         * iconvdata/bug-iconv9.c: New file.
25732
25733 2011-05-27  Andreas Schwab  <schwab@redhat.com>
25734
25735         [BZ #12814]
25736         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
25737
25738 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
25739
25740         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25741         (struct user_regs_struct): Change intcs field back to cs.
25742
25743 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
25744
25745         * po/ja.po: Update from translation team.
25746
25747 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
25748
25749         [BZ #12795]
25750         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
25751         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
25752
25753 2011-05-20  Andreas Schwab  <schwab@redhat.com>
25754
25755         * stdlib/longlong.h: Update from GCC.
25756
25757 2011-05-23  Andreas Schwab  <schwab@redhat.com>
25758
25759         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
25760         parameter name.
25761         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
25762         Add parameter name.
25763         (__sysconf): Pass it down.
25764
25765 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
25766
25767         [BZ #12671]
25768         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
25769         some situations.
25770         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
25771         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
25772         add in in __libc_use_alloca calls.  Adjust callers.
25773         (glob): Use malloc in some situations.
25774
25775         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
25776         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
25777         pltexit.
25778
25779 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
25780
25781         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
25782         and CLOCK_BOOTTIME_ALARM.
25783
25784         [BZ #12782]
25785         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
25786         is returned.
25787
25788         * string/_strerror.c (__strerror_r): Print negative errors as signed
25789         numbers.
25790
25791         [BZ #12777]
25792         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
25793         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
25794         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
25795
25796         * configure.in: Fix typo in redirection and correct removal of test
25797         files in two cases.
25798
25799         [BZ #12788]
25800         * locale/setlocale.c (new_composite_name): Fix test to check for
25801         identical name of all categories.
25802
25803         [BZ #12792]
25804         * libio/filedoalloc.c (local_isatty): New function.
25805         (_IO_file_doallocate): Use local_isatty.
25806         * stdio-common/perror.c (perror): In case a new stream is used
25807         forward the stream error.
25808         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
25809         error flag.
25810
25811 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
25812
25813         [BZ #11869]
25814         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
25815         alloca.
25816         * include/alloca.h (extend_alloca_account): Define.
25817
25818         [BZ #11857]
25819         * posix/regex.h: Fix comments with documentation of user-accessible
25820         fields after compilation and describe correct free'ing of pattern
25821         after re_compile_pattern.
25822         Patch by Reuben Thomas <rrt@sc3d.org>.
25823
25824 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
25825
25826         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
25827         and -mno-altivec to prevent the compiler from using Altivec and/or
25828         VSX instructions when the corresponding registers are not available.
25829
25830 2011-05-19  Andreas Schwab  <schwab@redhat.com>
25831
25832         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
25833
25834 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
25835
25836         * libio/freopen.c (freopen): Use __dup2, not dup2.
25837         * libio/freopen64.c (freopen64): Likewise.
25838
25839 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
25840
25841         [BZ #12775]
25842         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
25843         * math/Makefile (tests): Add test-powl.
25844         (CFLAGS-test-powl.c): Define.
25845         * math/test-powl.c: New file.
25846
25847 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
25848
25849         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
25850
25851 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
25852
25853         [BZ #11837]
25854         * iconvdata/gb18030.c: Update to GB18020-2005.
25855
25856 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
25857
25858         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
25859         RE_SYNTAX_POSIX_AWK): Update to match recent development.
25860         Patch by Aharon Robbins <arnold@skeeve.com>.
25861
25862         [BZ #11892]
25863         * stdlib/putenv.c (putenv): Don't always create copy of the variable
25864         on the stack.
25865
25866         [BZ #11895]
25867         * misc/pselect.c (__pselect): Handle timeout value errors hidden
25868         through underflows.
25869
25870         [BZ #12766]
25871         * misc/error.c (error_at_line): Ensure file_name and old_file_name
25872         point to strings before performing equality test for error_one_per_line
25873         mode.
25874
25875         [BZ #11697]
25876         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
25877
25878         [BZ #11820]
25879         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25880         (struct user_fpregs_struct): Avoid __uint*_t types.
25881
25882         [BZ #6420]
25883         * malloc/mtrace.c (tr_where): Add additional parameter to point to
25884         symbol info.  Use it instead of calling _dl_addr locally.
25885         (lock_and_info): New function.
25886         (tr_freehook): Call lock_and_info and pass symbol info as additional
25887         parameter to tr_where.
25888         (tr_mallochook): Likewise.
25889         (tr_reallochook): Likewise.
25890         (tr_memalignhook): Likewise.
25891
25892         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
25893         used and couldn't be at all thread-safe.
25894
25895 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
25896
25897         * libio/freopen.c (freopen): Don't close old file descriptor
25898         before the new one is opened.  Instead dup the new file descriptor
25899         to the old one after the new stream is created.
25900         * libio/freopen64.c (freopen64): Likewise.
25901         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
25902         * libio/fileops.c (_IO_new_file_close_it): Handle new
25903         _IO_FLAGS2_NOCLOSE flag.
25904         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
25905         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
25906         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
25907         _IO_FLAGS2_NOCLOSE flag.
25908         * include/unistd.h: Add hidden_proto for dup3.
25909         Define __have_dup3.
25910         * io/dup3.c: Define hidden symbol.
25911         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
25912
25913         [BZ #7101]
25914         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
25915         when an incomplete long option is used.
25916         * posix/tst-getopt_long1.c: New file.
25917         * posix/Makefile (tests): Add tst-getopt_long1.
25918
25919         [BZ #10138]
25920         * scripts/config.guess: Update from autoconf-2.68.
25921         * scripts/config.sub: Likewise.
25922
25923         [BZ #10157]
25924         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
25925         tests into ...
25926         (has_cpuclock): ...this.  New function.
25927         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
25928         macro here based on has_cpuclock code.
25929
25930         [BZ #10149]
25931         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25932         First byte (not low byte) is now always NUL.
25933         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
25934
25935         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25936         Use non-cancelable interfaces.
25937
25938         [BZ #9809]
25939         * locale/iso-639.def: Add entry for Sorani.
25940
25941         [BZ #11901]
25942         * include/stdlib.h: Move include protection to the right place.
25943         Define abort_msg_s.  Declare __abort_msg with it.
25944         * stdlib/abort.c (__abort_msg): Adjust type.
25945         * assert/assert.c (__assert_fail_base): New function.  Majority
25946         of code from __assert_fail.  Allocate memory for __abort_msg with
25947         mmap.
25948         (__assert_fail): Now call __assert_fail_base.
25949         * assert/assert-perr.c: Remove bulk of implementation.  Use
25950         __assert_fail_base.
25951         * include/assert.hL Declare __assert_fail_base.
25952         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
25953         mmap.
25954         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
25955
25956 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
25957
25958         [BZ #11952]
25959         [BZ #12453]
25960         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
25961         until all modules are registered in the DTV.
25962         * elf/Makefile: Add rules to build and run tst-tls19.
25963         * elf/tst-tls19.c: New file.
25964         * elf/tst-tls19mod1.c: New file.
25965         * elf/tst-tls19mod2.c: New file.
25966         * elf/tst-tls19mod3.c: New file.
25967         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
25968
25969         [BZ #12083]
25970         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
25971         correctly.
25972
25973         [BZ #12601]
25974         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
25975         two-byte sequence errors.
25976         * iconvdata/Makefile (tests): Add bug-iconv8.
25977         * iconvdata/bug-iconv8.c: New file.
25978
25979         [BZ #12626]
25980         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
25981         buf2 definition.
25982
25983         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
25984
25985         [BZ #12432]
25986         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
25987         (dummy_getcfa): New function.
25988         (init): Get _Unwind_GetCFA address, use dummy if not found.
25989         (backtrace_helper): In recursion check, also check whether CFA changes.
25990         (__backtrace): Completely initialize arg.
25991
25992         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
25993         storing incomplete byte sequence in state object.  Avoid testing for
25994         guaranteed too small input if we know there is enough data available.
25995
25996 2011-05-11  Andreas Schwab  <schwab@redhat.com>
25997
25998         * Makeconfig (+link-pie): Indent.
25999         * Rules (binaries-pie): Define if $(have-fpie) and
26000         $(build-shared).
26001         (binaries-shared): Also filter out $(binaries-pie).
26002         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
26003         * nscd/Makefile (others-pie): Add nscd.
26004         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
26005         ($(objpfx)nscd): Remove command override.
26006         * login/Makefile (others-pie): Add pt_chown.
26007         ($(objpfx)pt_chown): Remove command override.
26008         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
26009         remove command overrides.
26010
26011 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
26012
26013         * libio/tst_putwc.c: Fix error messages.
26014
26015         [BZ #12724]
26016         * libio/fileops.c (_IO_new_file_close_it): Always flush when
26017         currently writing and seek to current position when not.
26018         * libio/Makefile (tests): Add bug-fclose1.
26019         * libio/bug-fclose1.c: New file.
26020
26021 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
26022
26023         [BZ #12511]
26024         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
26025         don't set DF_1_NODELETE here.
26026         (do_lookup_x): When entering new entry test for copy relocation
26027         and if necessary set DF_1_NODELETE flag.
26028         * elf/tst-unique4.cc: New file.
26029         * elf/tst-unique4.h: New file.
26030         * elf/tst-unique4lib.cc: New file.
26031         * elf/Makefile: Add rules to build and run tst-unique4.
26032         Patch by Piotr Bury <pbury@goahead.com>.
26033
26034 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
26035
26036         [BZ #12052]
26037         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
26038
26039         [BZ #12625]
26040         * misc/mntent_r.c (addmntent): Flush the stream after the output
26041
26042         [BZ #12393]
26043         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
26044         (is_trusted_path_normalize): Skip initial colon.  Append slash
26045         to empty buffer.  Duplicate is_trusted_path code but allow
26046         constructed patch to be prefix.
26047         (is_dst): Allow $ORIGIN followed by /.
26048         (_dl_dst_substitute): Correct clearing of check_for_trusted.
26049         Correct testing of result of is_trusted_path_normalize
26050         (decompose_rpath): Fix warning.
26051
26052 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
26053
26054         [BZ #11257]
26055         * grp/initgroups.c (internal_getgrouplist): When we found the service
26056         list through the initgroups entry in nsswitch.conf do not always
26057         continue on a successful lookup.  Don't always use the
26058         __nss_group_database value if it is set.
26059         * nss/nsswitch.conf (initgroups): Change action for successful db
26060         lookup to continue for compatibility.
26061
26062 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
26063
26064         [BZ #11532]
26065         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
26066         and CP774 modules.
26067         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
26068         and CP774 modules.
26069         * iconvdata/tst-tables.sh: Likewise.
26070         * iconvdata/cp770.c: New file.
26071         * iconvdata/cp771.c: New file.
26072         * iconvdata/cp772.c: New file.
26073         * iconvdata/cp773.c: New file.
26074         * iconvdata/cp774.c: New file.
26075         * iconvdata/testdata/CP770: New file.
26076         * iconvdata/testdata/CP770..UTF8: New file.
26077         * iconvdata/testdata/CP771: New file.
26078         * iconvdata/testdata/CP771..UTF8: New file.
26079         * iconvdata/testdata/CP772: New file.
26080         * iconvdata/testdata/CP772..UTF8: New file.
26081         * iconvdata/testdata/CP773: New file.
26082         * iconvdata/testdata/CP773..UTF8: New file.
26083         * iconvdata/testdata/CP774: New file.
26084         * iconvdata/testdata/CP774..UTF8: New file.
26085
26086         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
26087         END CHARMAP line.
26088         * iconvdata/gen-8bit-gap.sh: Likewise.
26089         * iconvdata/gen-8bit.sh: Likewise.
26090
26091         * locale/iso-639.def: Add ary entry.
26092
26093         [BZ #11258]
26094         * locale/C-translit.h.in: Add U20A1 transliteration.
26095
26096         [BZ #12178]
26097         * locale/iso-639.def: Add wae entry.
26098         Patch by Kevin Bortis <bortis@translate-wae.ch>.
26099
26100         [BZ #12545]
26101         * locale/programs/localedef.c (construct_output_path): Use ssize_t
26102         for n.
26103
26104         [BZ #12711]
26105         * locale/C-translit.h.in: Add entry for U20B9.
26106         Patch by pravin.d.s@gmail.com.
26107
26108 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
26109
26110         [BZ #12713]
26111         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
26112         ENAMETOOLONG use generic getcwd.
26113         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
26114         in rtld.  Use *stat64.
26115         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
26116         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
26117         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
26118         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
26119         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
26120         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
26121         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26122         __fstatat64 macros.
26123         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26124         * dirent/rewinddir.c: Add libc_hidden_def.
26125         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26126         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26127
26128         * include/dirent.h (__alloc_dir): Add flags parameter.
26129         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26130         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26131         __alloc_dir.
26132         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26133         from fdopendir if O_CLOEXEC is already set.
26134
26135 2011-03-15  Alan Modra  <amodra@gmail.com>
26136
26137         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26138         l_tls_firstbyte_offset non-zero.  Save padding offset in
26139         l_tls_firstbyte_offset for later use.
26140         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26141         freeing static tls block.
26142
26143 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26144
26145         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26146         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26147         being defined by the kernel headers.
26148
26149 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26150
26151         [BZ #12734]
26152         * resolv/resolv.h: Define RES_NOTLDQUERY.
26153         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26154         no-tld-query and set RES_NOTLDQUERY.
26155         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26156         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26157         modern BIND to search name as TLD unless forbidden.
26158
26159 2011-05-07  Petr Baudis  <pasky@suse.cz>
26160             Ulrich Drepper  <drepper@gmail.com>
26161
26162         [BZ #12393]
26163         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26164         (is_trusted_path): ...to here.
26165         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26166         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26167         using is_trusted_path_normalize() in setuid scripts.
26168
26169 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26170
26171         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26172         __BEGIN/__END_DECLS.
26173
26174 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26175
26176         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26177         NSS_STATUS_NOTFOUND if no record was found.
26178
26179 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26180
26181         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26182         (headers-not-in-tirpc): Remove rpc/netdb.h
26183         * resolv/netdb.h: Revert last change.
26184
26185 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26186
26187         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26188         circular dependency between libgcc.a and libc.a.
26189
26190 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26191
26192         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26193         * nis/Makefile: Don't install rpcsvc/*.
26194         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26195         instead of <rpc/types.h>.
26196         (MAXHOSTNAMELEN): Define.
26197
26198 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26199
26200         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26201
26202 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26203
26204         [BZ #12714]
26205         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26206         gethostbyname4_r when IPv6 results are possible.
26207
26208 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26209
26210         [BZ #12723]
26211         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26212         _PC_PIPE_BUF handling.
26213
26214 2011-04-30  Bruno Haible  <bruno@clisp.org>
26215
26216         [BZ #12717]
26217         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26218         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26219         to 'int'.
26220         * inet/getnameinfo.c (getnameinfo): Likewise.
26221
26222 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26223
26224         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26225         to groups setting in database lookup.
26226         * nss/nsswitch.conf: Add initgroups entry.
26227
26228 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26229
26230         [BZ #12685]
26231         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26232         mode string.
26233         Patch by Eric Blake <eblake@redhat.com>.
26234
26235 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26236
26237         * sunrpc/Makefile (need-export-routines): Add svc_run.
26238         (routines): Remove svc_run.
26239         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26240         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26241         * sunrpc/svc_run.c (svc_run): Likewise.
26242         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26243
26244 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26245
26246         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26247         problem in reallocation in last patch.
26248
26249 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26250
26251         * sunrpc/Makefile: Move inclusion of Rules.
26252
26253 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26254
26255         * nss/nss_files/files-initgroups.c: New file.
26256         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26257         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26258         _nss_files_initgroups_dyn.
26259
26260 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26261
26262         * elf/elf.h (R_ARM_IRELATIVE): Define.
26263
26264 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26265
26266         * po/ru.po: Update from translation team.
26267
26268 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26269
26270         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26271         dependencies.
26272
26273 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26274
26275         [BZ #12653]
26276         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26277         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26278         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26279         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26280         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26281
26282 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26283
26284         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26285         differing bytes.
26286         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26287         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26288         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26289
26290 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26291
26292         [BZ #12420]
26293         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26294         storing it.
26295         * stdlib/bug-getcontext.c: New file.
26296         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26297
26298 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26299
26300         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26301         instructions into .machine "z9-109".
26302         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26303         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26304
26305 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26306
26307         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26308         between environment variables and auxiliary vector.
26309
26310 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26311
26312         * Makefile: Add rules to build linkobj/libc.so.
26313         * include/libc-symbols.h: Define libc_hidden_nolink.
26314         * include/rpc/auth.h: Mark functions which are to be hidden.
26315         * include/rpc/auth_des.h: Likewise.
26316         * include/rpc/auth_unix.h: Likewise.
26317         * include/rpc/clnt.h: Likewise.
26318         * include/rpc/des_crypt.h: Likewise.
26319         * include/rpc/key_prot.h: Likewise.
26320         * include/rpc/pmap_clnt.h: Likewise.
26321         * include/rpc/pmap_prot.h: Likewise.
26322         * include/rpc/pmap_rmt.h: Likewise.
26323         * include/rpc/rpc_msg.h: Likewise.
26324         * include/rpc/svc.h: Likewise.
26325         * include/rpc/svc_auth.h: Likewise.
26326         * include/rpc/xdr.h: Likewise.
26327         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26328         * nss/Makefile: Likewise.
26329         * sunrpc/Makefile: Don't install headers.  Build library with normal
26330         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26331         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26332         for the compat linking library.  Remove use of INTDEF/INTUSE.
26333         * sunrpc/auth_none.c: Likewise.
26334         * sunrpc/auth_unix.c: Likewise.
26335         * sunrpc/authdes_prot.c: Likewise.
26336         * sunrpc/authuxprot.c: Likewise.
26337         * sunrpc/clnt_gen.c: Likewise.
26338         * sunrpc/clnt_perr.c: Likewise.
26339         * sunrpc/clnt_raw.c: Likewise.
26340         * sunrpc/clnt_simp.c: Likewise.
26341         * sunrpc/clnt_tcp.c: Likewise.
26342         * sunrpc/clnt_udp.c: Likewise.
26343         * sunrpc/clnt_unix.c: Likewise.
26344         * sunrpc/des_crypt.c: Likewise.
26345         * sunrpc/des_soft.c: Likewise.
26346         * sunrpc/get_myaddr.c: Likewise.
26347         * sunrpc/key_call.c: Likewise.
26348         * sunrpc/key_prot.c: Likewise.
26349         * sunrpc/netname.c: Likewise.
26350         * sunrpc/pm_getmaps.c: Likewise.
26351         * sunrpc/pm_getport.c: Likewise.
26352         * sunrpc/pmap_clnt.c: Likewise.
26353         * sunrpc/pmap_prot.c: Likewise.
26354         * sunrpc/pmap_prot2.c: Likewise.
26355         * sunrpc/pmap_rmt.c: Likewise.
26356         * sunrpc/publickey.c: Likewise.
26357         * sunrpc/rpc_cmsg.c: Likewise.
26358         * sunrpc/rpc_common.c: Likewise.
26359         * sunrpc/rpc_dtable.c: Likewise.
26360         * sunrpc/rpc_prot.c: Likewise.
26361         * sunrpc/rpc_thread.c: Likewise.
26362         * sunrpc/rtime.c: Likewise.
26363         * sunrpc/svc.c: Likewise.
26364         * sunrpc/svc_auth.c: Likewise.
26365         * sunrpc/svc_authux.c: Likewise.
26366         * sunrpc/svc_raw.c: Likewise.
26367         * sunrpc/svc_run.c: Likewise.
26368         * sunrpc/svc_simple.c: Likewise.
26369         * sunrpc/svc_tcp.c: Likewise.
26370         * sunrpc/svc_udp.c: Likewise.
26371         * sunrpc/svc_unix.c: Likewise.
26372         * sunrpc/svcauth_des.c: Likewise.
26373         * sunrpc/xcrypt.c: Likewise.
26374         * sunrpc/xdr.c: Likewise.
26375         * sunrpc/xdr_array.c: Likewise.
26376         * sunrpc/xdr_float.c: Likewise.
26377         * sunrpc/xdr_intXX_t.c: Likewise.
26378         * sunrpc/xdr_mem.c: Likewise.
26379         * sunrpc/xdr_rec.c: Likewise.
26380         * sunrpc/xdr_ref.c: Likewise.
26381         * sunrpc/xdr_sizeof.c: Likewise.
26382         * sunrpc/xdr_stdio.c: Likewise.
26383
26384 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
26385
26386         [BZ #12650]
26387         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
26388         * sysdeps/ia64/dl-tls.h: Likewise.
26389         * sysdeps/powerpc/dl-tls.h: Likewise.
26390         * sysdeps/s390/dl-tls.h: Likewise.
26391         * sysdeps/sh/dl-tls.h: Likewise.
26392         * sysdeps/sparc/dl-tls.h: Likewise.
26393         * sysdeps/x86_64/dl-tls.h: Likewise.
26394         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
26395
26396 2011-03-14  Andreas Schwab  <schwab@redhat.com>
26397
26398         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
26399         rpath element also skip the following colon.
26400         (expand_dynamic_string_token): Add is_path parameter and pass
26401         down to DL_DST_REQUIRED and _dl_dst_substitute.
26402         (decompose_rpath): Call expand_dynamic_string_token with
26403         non-zero is_path.  Ignore empty rpaths.
26404         (_dl_map_object_from_fd): Call expand_dynamic_string_token
26405         with zero is_path.
26406
26407 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
26408
26409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26410         Make cancelable.
26411
26412 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
26413
26414         [BZ #12655]
26415         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
26416         Patch by Filipe David Manana <fdmanana@apache.org>.
26417
26418 2011-04-07  Andreas Schwab  <schwab@redhat.com>
26419
26420         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
26421         Maintain aligned stack.
26422         (CHECK_RSP): Remove unused macro.
26423
26424 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
26425
26426         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
26427         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
26428
26429 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
26430
26431         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
26432
26433         * include/features.h: Mention __USE_XOPEN2K8 in comment.
26434
26435 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
26436
26437         [BZ #12518]
26438         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
26439         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
26440         * sysdeps/x86_64/memmove.c: New file.
26441         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
26442         (memcpy): Renamed to ...
26443         (__new_memcpy): This.
26444         (memcpy): Provide GLIBC_2_14 memcpy.
26445         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
26446         (memcpy): Provide GLIBC_2_2_5 memcpy.
26447
26448 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26449
26450         [BZ #12631]
26451         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
26452
26453 2011-03-30  Andreas Schwab  <schwab@redhat.com>
26454
26455         * misc/syncfs.c: New file.
26456         * misc/Makefile (routines): Add syncfs.
26457         * posix/unistd.h: Declare syncfs.
26458         * sysdeps/unix/syscalls.list: Add syncfs.
26459
26460 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26461
26462         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
26463         open_by_handle_at.
26464         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26465         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26466         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26467         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26468         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26469         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
26470         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26471
26472 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26473
26474         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
26475         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26476         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
26477         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26478         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26479         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26480         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26481
26482         * io/Makefile: Compile fallocate.c, fallocate64.c, and
26483         sync_file_range.c with -fexceptions.
26484         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
26485         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
26486         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
26487         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
26488         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
26489         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26490         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
26491         sync_file_range as cancellation point
26492         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
26493         now a wrapper around __call_sync_file_range with cancellation handling.
26494         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
26495         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
26496         function name to __call_sync_file_range.
26497         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
26498         Add call_sync_file_range.
26499
26500 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26501
26502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26503         bits/timex.h.
26504
26505 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26506
26507         * iconv/iconv.h: Fix typo in comment.
26508         * io/fcntl.h: Likewise.
26509         * libio/stdio.h: Likewise.
26510         * posix/spawn.h: Likewise.
26511         * posix/unistd.h: Likewise.
26512         * stdlib/stdlib.h: Likewise.
26513         * time/time.h: Likewise.
26514         * wcsmbs/wchar.h: Likewise.
26515
26516         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
26517         open_by_handle): Add.
26518         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
26519         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
26520         Augment a few comments.
26521         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26522         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26523         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26524         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26525         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26526         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
26527         open_by_handle.
26528
26529         * io/fcntl.h (AT_EMPTY_PATH): Define.
26530
26531 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
26532
26533         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
26534         * sysdeps/unix/sysv/linux/bits/time.h: New file.
26535         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
26536         to...
26537         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
26538         * Versions.def: Add GLIBC_2.14.
26539         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
26540         Export.
26541
26542 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
26543
26544         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
26545         round counter.
26546         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26547
26548 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26549
26550         [BZ #12597]
26551         * string/test-strncmp.c (do_page_test): New function.
26552         (check2): Likewise.
26553         (test_main): Call check2.
26554         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
26555
26556 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
26557
26558         [BZ #12587]
26559         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
26560         Handle cache information in CPU leaf 4.
26561         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26562
26563 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
26564
26565         [BZ #12583]
26566         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
26567         character representation.
26568         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
26569
26570 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
26571
26572         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
26573         END(__isnan) to END(__isnanf) to match function entry point/label
26574         EALIGN(__isnanf,...).
26575
26576 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26577
26578         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
26579
26580 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
26581
26582         [BZ #12510]
26583         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
26584         copy from the symbol referenced in the relocation to initialize the
26585         used variable.
26586         Patch by Piotr Bury <pbury@goahead.com>.
26587         * elf/Makefile: Add rules to build and tst-unique3.
26588         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
26589         * elf/tst-unique3.cc: New file.
26590         * elf/tst-unique3.h: New file.
26591         * elf/tst-unique3lib.cc: New file.
26592         * elf/tst-unique3lib2.cc: New file.
26593
26594         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
26595
26596 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
26597
26598         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
26599         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
26600         to _start.
26601
26602 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
26603
26604         * elf/dl-load.c (_dl_map_object): If we are looking for the first
26605         to-be-loaded object along a path to loader is ld.so.
26606
26607 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26608             Ulrich Drepper  <drepper@gmail.com>
26609
26610         * sysdeps/x86_64/memset.S: After aligning destination, code
26611         branches to different locations depending on the value of
26612         misalignment, when multiarch is enabled. Fix this.
26613
26614 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26615
26616         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
26617         Set _x86_64_preferred_memory_instruction for AMD processsors.
26618         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26619         Set bit_Prefer_SSE_for_memop for AMD processors.
26620
26621 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
26622
26623         * libio/fmemopen.c (fmemopen): Optimize a bit.
26624
26625 2011-03-03  Andreas Schwab  <schwab@redhat.com>
26626
26627         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
26628
26629 2011-03-03  Roland McGrath  <roland@redhat.com>
26630
26631         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
26632
26633 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
26634
26635         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
26636         __bzero_ultra1 instead of __memset_ultra1.
26637
26638 2011-02-23  Andreas Schwab  <schwab@redhat.com>
26639             Ulrich Drepper  <drepper@gmail.com>
26640
26641         [BZ #12509]
26642         * include/link.h (struct link_map): Add l_orig_initfini.
26643         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
26644         returning unsuccessfully.
26645         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
26646         close of a file loaded at startup, restore the original l_initfini
26647         list.
26648         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
26649         list, store the pointer.
26650         * elf/Makefile ($(objpfx)noload-mem): New rule.
26651         (noload-ENV): Define.
26652         (tests): Add $(objpfx)noload-mem.
26653         * elf/noload.c: Include <memcheck.h>.
26654         (main): Call mtrace.  Close all opened handles.
26655
26656 2011-02-17  Andreas Schwab  <schwab@redhat.com>
26657
26658         [BZ #12454]
26659         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
26660         dependencies are missing.
26661
26662 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26663
26664         Fix __if_freereq crash: Unlike the generic version which uses free,
26665         Hurd needs munmap.
26666         * sysdeps/mach/hurd/ifreq.h: New file.
26667
26668 2011-01-27  Petr Baudis  <pasky@suse.cz>
26669             Ulrich Drepper  <drepper@gmail.com>
26670
26671         [BZ 12445]#
26672         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
26673         to extend_alloca().
26674         * stdio-common/bug23.c: New file.
26675         * stdio-common/Makefile (tests): Add bug23.
26676
26677 2010-09-28  Andreas Schwab  <schwab@redhat.com>
26678             Ulrich Drepper  <drepper@gmail.com>
26679
26680         [BZ #12489]
26681         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
26682         before performing relro protection.  At old place add assertion
26683         to make sure nothing changed.
26684
26685 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
26686             Glauber de Oliveira Costa  <glommer@gmail.com>
26687
26688         * elf/elf.h: Add new ARM TLS relocs.
26689
26690 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
26691
26692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
26693         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
26694         cast from r3.
26695         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
26696         'tests' variable.
26697         * sysdeps/wordsize-64/tst-writev.c: New file.
26698
26699 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
26700
26701         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
26702         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
26703         insns in _dl_start to prevent a TOC reference before relocs are
26704         resolved.
26705
26706 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
26707
26708         [BZ #12469]
26709         * Makeconfig: Remove RANLIB definition.
26710         * Makerules: Don't use RANLIB.
26711         * aclocal.m4: Remove ranlib test.
26712         * configure.in: No need to check for ranlib.
26713         * elf/rtld-Rules: Don't use RANLIB.
26714
26715 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26716
26717         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
26718         protection macro.
26719         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
26720         inclusion protection macro.
26721
26722         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
26723         SIGRTMIN and SIGRTMAX and print information in that case only when
26724         SIGRTMIN is defined.
26725
26726 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
26727
26728         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
26729         arginfo fn returning -1.
26730
26731         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
26732         and thousands string is zero terminated.
26733
26734 2011-02-03  Andreas Schwab  <schwab@redhat.com>
26735
26736         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
26737         sysdeps/unix/sysv/linux/bits/socket.h.
26738
26739 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26740
26741         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
26742         (__CPU_COUNT): Remove old macros.
26743         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
26744         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
26745         (__CPU_ALLOC, __CPU_FREE): Add macros.
26746         (__sched_cpualloc, __sched_cpufree): Add declarations.
26747
26748 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
26749
26750         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
26751         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
26752         * nscd/aicache.c (addhstaiX): Return timeout of added value.
26753         (readdhstai): Return value of addhstaiX call.
26754         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
26755         (addgrbyX): Return value returned by cache_addgr.
26756         (readdgrbyname): Return value returned by addgrbyX.
26757         (readdgrbygid): Likewise.
26758         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
26759         (addpwbyX): Return value returned by cache_addpw.
26760         (readdpwbyname): Return value returned by addhstbyX.
26761         (readdpwbyuid): Likewise.
26762         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
26763         (addservbyX): Return value returned by cache_addserv.
26764         (readdservbyname): Return value returned by addservbyX:
26765         (readdservbyport): Likewise.
26766         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
26767         (addhstbyX): Return value returned by cache_addhst.
26768         (readdhstbyname): Return value returned by addhstbyX.
26769         (readdhstbyaddr): Likewise.
26770         (readdhstbynamev6): Likewise.
26771         (readdhstbyaddrv6): Likewise.
26772         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
26773         (readdinitgroups): Return value returned by addinitgroupsX.
26774         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
26775         (prune_cache): Keep track of timeout value of re-added entries.
26776         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
26777         * nscd/nscd.h: Adjust prototypes of readd* functions.
26778
26779 2011-02-04  Roland McGrath  <roland@redhat.com>
26780
26781         * nis/nis_server.c (nis_servstate): Use the right name for 0.
26782         (nis_stats): Likewise.
26783         * nis/nis_modify.c (nis_modify): Likewise.
26784         * nis/nis_remove.c (nis_remove): Likewise.
26785         * nis/nis_add.c (nis_add): Likewise.
26786
26787         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
26788
26789         * posix/fnmatch_loop.c: Add some consts.
26790
26791         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
26792
26793 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26794
26795         [BZ #12460]
26796         * config.make.in (config-cflags-novzeroupper): Define.
26797         * configure.in: Substitute libc_cv_cc_novzeroupper.
26798         * elf/Makefile (AVX-CFLAGS): Define.
26799         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
26800         (CFLAGS-tst-auditmod4a.c): Likewise.
26801         (CFLAGS-tst-auditmod4b.c): Likewise.
26802         (CFLAGS-tst-auditmod6b.c): Likewise.
26803         (CFLAGS-tst-auditmod6c.c): Likewise.
26804         (CFLAGS-tst-auditmod7b.c): Likewise.
26805         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
26806
26807 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
26808
26809         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
26810         function to the callback.
26811         Patch partly by Jiri Olsa <jolsa@redhat.com>.
26812
26813 2011-02-02  Andreas Schwab  <schwab@redhat.com>
26814
26815         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
26816         of errno.
26817
26818 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
26819
26820         [BZ #11724]
26821         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
26822         of constructors.
26823         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
26824         of destructors.
26825         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
26826
26827         [BZ #11724]
26828         * elf/Makefile: Add rules to build and run new test.
26829         * elf/tst-initorder.c: New file.
26830         * elf/tst-initorder.exp: New file.
26831         * elf/tst-initordera1.c: New file.
26832         * elf/tst-initordera2.c: New file.
26833         * elf/tst-initordera3.c: New file.
26834         * elf/tst-initordera4.c: New file.
26835         * elf/tst-initorderb1.c: New file.
26836         * elf/tst-initorderb2.c: New file.
26837         * elf/tst-order-a1.c: New file.
26838         * elf/tst-order-a2.c: New file.
26839         * elf/tst-order-a3.c: New file.
26840         * elf/tst-order-a4.c: New file.
26841         * elf/tst-order-b1.c: New file.
26842         * elf/tst-order-b2.c: New file.
26843         * elf/tst-order-main.c: New file.
26844         New test case by George Gensure <werkt0@gmail.com>.
26845
26846 2010-10-01  Andreas Schwab  <schwab@redhat.com>
26847
26848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26849         decoding ACE if AI_CANONIDN.
26850
26851 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
26852
26853         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
26854
26855 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
26856
26857         * version.h (RELEASE): Bump for 2.13 release.
26858         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
26859
26860         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
26861
26862         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
26863         MADV_NOHUGEPAGE.
26864         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
26865         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
26866         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26867         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26868         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26869         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
26870
26871         * posix/getconf.c: Update copyright year.
26872         * catgets/gencat.c: Likewise.
26873         * csu/version.c: Likewise.
26874         * debug/catchsegv.sh: Likewise.
26875         * debug/xtrace.sh: Likewise.
26876         * elf/ldconfig.c: Likewise.
26877         * elf/ldd.bash.in: Likewise.
26878         * elf/sprof.c (print_version): Likewise.
26879         * iconv/iconv_prog.c: Likewise.
26880         * iconv/iconvconfig.c: Likewise.
26881         * locale/programs/locale.c: Likewise.
26882         * locale/programs/localedef.c: Likewise.
26883         * malloc/memusage.sh: Likewise.
26884         * malloc/mtrace.pl: Likewise.
26885         * nscd/nscd.c (print_version): Likewise.
26886         * nss/getent.c: Likewise.
26887
26888         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
26889         PF_CAIF, and PF_ALG.
26890         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26891
26892 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
26893
26894         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
26895         (modules-names): Use them.
26896         (ifunc-test-modules, ifunc-pie-tests): Define.
26897         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
26898         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
26899         (test-extras): Likewise.
26900         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
26901         $(compile-command.c).
26902         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
26903         (all-built-dso): Define.
26904         (check-textrel.out, check-execstack.out): Depend on it.
26905
26906         * configure.in: Don't override --enable-multi-arch.
26907
26908 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
26909
26910         [BZ #6812]
26911         * nscd/hstcache.c (tryagain): Define.
26912         (cache_addhst): Return tryagain not notfound for temporary errors.
26913         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
26914         failed.
26915
26916 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
26917
26918         [BZ #10563]
26919         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
26920         to make the syscall.
26921         * sysdeps/unix/sysv/linux/setgroups.c: New file.
26922
26923         [BZ #12378]
26924         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
26925         and fall back to matching as normal character if the string ends before
26926         the matching ']' is found.  This is what POSIX requires.
26927         * posix/testfnm.c: Adjust test result.
26928         * posix/globtest.sh: Adjust test result.  Add new test.
26929         * posix/tst-fnmatch.input: Likewise.
26930         * posix/tst-fnmatch2.c: Add new test.
26931
26932 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
26933
26934         * elf/Makefile (check-execstack): Revert last change.  Depend on
26935         check-execstack.h.
26936         (check-execstack.h): New target.
26937         (generated): Add check-execstack.h.
26938         * elf/check-execstack.c: Include "check-execstack.h".
26939         (main): Revert last change.
26940         (handle_file): Return zero if GNU_STACK is absent and
26941         DEFAULT_STACK_PERMS doesn't include PF_X.
26942
26943 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
26944
26945         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
26946         in child fails because the descriptor is already closed.
26947         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
26948         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
26949         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
26950
26951         [BZ #12397]
26952         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
26953         syscall.
26954
26955         [BZ #10484]
26956         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
26957         temporary buffer used to handle multi lookups locally.
26958         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
26959
26960 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26961
26962         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
26963         loader is ld.so.
26964
26965 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
26966
26967         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
26968         alignment for SSE2.
26969
26970 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26971
26972         [BZ #12394]
26973         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
26974         characters.  When rounding increased number of integer digits recompute
26975         number of groups.
26976         * stdio-common/tst-grouping.c: New file.
26977         * stdio-common/Makefile: Add rules to build and run tst-grouping.
26978
26979 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
26980
26981         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
26982         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
26983
26984         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
26985         void.
26986         * bits/select.h: Likewise.
26987
26988 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
26989
26990         * po/ja.po: Update from translation team.
26991
26992 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
26993
26994         [BZ #11155]
26995         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
26996         implementation just like for lxstat, fxstatat, et al.
26997
26998 2010-12-27  Jim Meyering  <meyering@redhat.com>
26999
27000         [BZ #12348]
27001         * posix/regexec.c (build_trtable): Return failure indication upon
27002         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27003
27004 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
27005
27006         [BZ #12201]
27007         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
27008         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
27009         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
27010         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
27011
27012         [BZ #12207]
27013         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
27014
27015         [BZ #12204]
27016         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
27017         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
27018
27019 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
27020
27021         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
27022         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
27023         script has SORT_BY_INIT_PRIORITY.
27024         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
27025         NO_CTORS_DTORS_SECTIONS is defined.
27026         * elf/soinit.c: Likewise.
27027         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
27028         NO_CTORS_DTORS_SECTIONS is defined.
27029         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
27030         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
27031         * sysdeps/sh/init-first.c: Likewise.
27032         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
27033
27034 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
27035
27036         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
27037         always use the slow path.
27038
27039 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
27040
27041         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
27042         similar rule which adds the sysdep directories to the header search in
27043         order to pick up the correct platform stackinfo.h.
27044         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
27045         perform test if it is, otherwise return successfully without testing.
27046         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
27047         DEFAULT_STACK_PERMS define in stackinfo.h.
27048         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
27049         defined in stackinfo.h.
27050         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
27051         DEFAULT_STACK_PERMS defined in stackinfo.h.
27052         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
27053         * sysdeps/ia64/stackinfo.h: Likewise.
27054         * sysdeps/s390/stackinfo.h: Likewise.
27055         * sysdeps/sh/stackinfo.h: Likewise.
27056         * sysdeps/sparc/stackinfo.h: Likewise.
27057         * sysdeps/x86_64/stackinfo.h: Likewise.
27058         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
27059         PF_X for powerpc64.  Retain PF_X for powerpc32.
27060
27061 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
27062
27063         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
27064         accurately.
27065         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
27066         GETDENTS_64BIT_ALIGNED.
27067
27068 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
27069
27070         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
27071
27072 2010-12-10  Andreas Schwab  <schwab@redhat.com>
27073
27074         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
27075         _GNU_SOURCE.
27076
27077         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
27078         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
27079         Remove __restrict.
27080         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
27081         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
27082
27083 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
27084
27085         [BZ #11655]
27086         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
27087         are initialized.
27088
27089 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
27090
27091         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
27092
27093 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
27094
27095         * po/it.po: Update from translation team.
27096
27097 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
27098
27099         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
27100         unused codes.
27101
27102 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
27103
27104         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
27105
27106 2010-11-24  Andreas Schwab  <schwab@redhat.com>
27107
27108         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
27109         specially.
27110         (gaih_getanswer_slice): Likewise.
27111
27112 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
27113
27114         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
27115
27116 2010-05-31  Petr Baudis  <pasky@suse.cz>
27117
27118         [BZ #11149]
27119         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
27120         silently even in the chroot mode.
27121
27122 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27123
27124         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27125         last patch a bit.  Pretty printing
27126
27127 2010-05-31  Petr Baudis <pasky@suse.cz>
27128
27129         [BZ #10085]
27130         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27131         initialization of skip_initgroups_dyn.
27132
27133 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27134
27135         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27136         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27137
27138 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27139
27140         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27141
27142 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27143
27144         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27145         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27146         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27147         ($(objpfx)tst-fnmatch-mem): New rule.
27148         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27149         * posix/tst-fnmatch.c (main): Call mtrace.
27150
27151 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27152
27153         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27154         Support Intel processor model 6 and model 0x2c.
27155
27156 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27157
27158         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27159           signed comparison.
27160
27161 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27162
27163         [BZ #12205]
27164         * string/test-strncasecmp.c (check_result): New function.
27165         (do_one_test): Use it.
27166         (check1): New function.
27167         (test_main): Use it.
27168         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27169         Support strcasecmp and strncasecmp.
27170
27171 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27172
27173         [BZ #12194]
27174         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27175         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27176
27177 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27178
27179         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27180         IFUNC support.
27181         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27182         memset-x86-64.
27183         * sysdeps/x86_64/multiarch/bzero.S: New file.
27184         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27185         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27186         * sysdeps/x86_64/multiarch/memset.S: New file.
27187         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27188         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27189         Set bit_Prefer_SSE_for_memop for Intel processors.
27190         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27191         Define.
27192         (index_Prefer_SSE_for_memop): Define.
27193         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27194
27195 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27196
27197         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27198         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27199
27200 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27201
27202         [BZ #12191]
27203         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27204         (__x86_64_raw_data_cache_size_half): Likewise.
27205         (__x86_64_raw_shared_cache_size): Likewise.
27206         (__x86_64_raw_shared_cache_size_half): Likewise.
27207
27208         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27209         (__x86_64_raw_data_cache_size_half): Likewise.
27210         (__x86_64_raw_shared_cache_size): Likewise.
27211         (__x86_64_raw_shared_cache_size_half): Likewise.
27212         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27213         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27214         and __x86_64_raw_shared_cache_size_half.  Round
27215         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27216         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27217         to multiple of 256 bytes.
27218
27219 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27220
27221         [BZ #12167]
27222         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27223         of inacessible symlinks.  Verify result of symlink before returning it.
27224         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27225         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27226
27227 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27228
27229         * math/math.h (isinf): Fix typo in comment.
27230
27231 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27232
27233         * po/da.po: Update from translation team.
27234
27235 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27236
27237         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27238         is added to the list.
27239
27240 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27241             Ulrich Drepper  <drepper@gmail.com>
27242
27243         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27244         the global list here.  Move code to...
27245         (_dl_add_to_namespace_list): ...here.  New function.
27246         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27247         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27248         * elf/dl-load.c (lose): Don't remove the element from the list.
27249         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27250         (_dl_map_object): Likewise.
27251
27252 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27253
27254         [BZ #12159]
27255         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27256         into all bytes of SSE register.
27257         Patch by Richard Li <richardpku@gmail.com>.
27258
27259 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27260
27261         [BZ #12140]
27262         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27263         perturbing.
27264
27265 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27266
27267         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27268         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27269         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27270         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27272         submachine.
27273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27274
27275 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27276
27277         * include/dlfcn.h (__RTLD_SECURE): Define.
27278         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27279         mode & __RTLD_SECURE instead.
27280         (open_path): Rename preloaded parameter to secure.
27281         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27282         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27283         * elf/dl-deps.c (openaux): Likewise.
27284         * elf/rtld.c (struct map_args): Remove is_preloaded.
27285         (map_doit): Don't use it.
27286         (dl_main): Likewise.
27287         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27288         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27289
27290 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27291
27292         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27293         (sysd-rules-targets): Remove duplicates.
27294         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27295         rtld-%.$o dependency.
27296
27297 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27298
27299         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27300         _dl_map_object do it.
27301
27302 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27303
27304         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27305         fast fma builtins, define the macros in the C99 standard.
27306         (FP_FAST_FMAF): Likewise.
27307         (FP_FAST_FMAL): Likewise.
27308         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27309
27310         * bits/mathdef.h: Update copyright year.
27311         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27312
27313 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27314
27315         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27316         builtins, define the macros in the C99 standard.
27317         (FP_FAST_FMAF): Likewise.
27318         (FP_FAST_FMAL): Likewise.
27319         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27320         multiply/add.
27321         (FP_FAST_FMAF): Likewise.
27322
27323 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27324
27325         [BZ #3268]
27326         * math/libm-test.inc (fma_test): Some new testcases.
27327         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27328         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27329         y and infinite z.  Do multiplication by C already in long double.
27330         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27331         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27332         y and infinite z.  Do bitwise or of inexact bit into u.d.
27333         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27334         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27335         * sysdeps/i386/fpu/s_fma.S: Removed.
27336         * sysdeps/i386/fpu/s_fmal.S: Removed.
27337
27338 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27339
27340         [BZ #3268]
27341         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
27342         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
27343         computation is not scheduled after fetestexcept.  Fix value
27344         of minimum denormal long double.
27345
27346 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
27347
27348         [BZ #3268]
27349         * math/libm-test.inc (fma_test): Add some more tests.
27350         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
27351         correctly.
27352
27353 2010-10-15  Andreas Schwab  <schwab@redhat.com>
27354
27355         * scripts/data/localplt-s390-linux-gnu.data: New file.
27356         * scripts/data/localplt-s390x-linux-gnu.data: New file.
27357
27358 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
27359
27360         [BZ #3268]
27361         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
27362         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
27363         instead of dbl-64.
27364         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
27365         inlines.
27366         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
27367         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
27368         if one of x and y is very large and the other is subnormal.
27369         * sysdeps/s390/fpu/s_fmaf.c: New file.
27370         * sysdeps/s390/fpu/s_fma.c: New file.
27371         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
27372         * sysdeps/powerpc/fpu/s_fma.S: New file.
27373         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
27374         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
27375         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
27376
27377 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
27378
27379         [BZ #3268]
27380         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
27381         fma tests.
27382         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
27383         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
27384         * sysdeps/i386/i686/multiarch/s_fma.c: Include
27385         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
27386         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
27387         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
27388         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
27389
27390 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
27391
27392         [BZ #12078]
27393         * posix/regcomp.c (parse_branch): One more memory leak plugged.
27394         * posix/bug-regex31.input: Add test case.
27395
27396 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27397
27398         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
27399         * posix/bug-regex31.input: New file.
27400
27401         [BZ #12078]
27402         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
27403         (parse_sub_exp): Fix last change, use postorder.
27404
27405         * posix/bug-regex31.c: New file.
27406         * posix/Makefile: Add rules to build and run bug-regex31.
27407
27408         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
27409
27410         [BZ #12078]
27411         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
27412
27413         [BZ #12108]
27414         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
27415         to have entries in sys_siglist.
27416
27417         [BZ #12093]
27418         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
27419         be NULL.
27420
27421 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
27422
27423         [BZ #3268]
27424         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
27425         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
27426         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27427         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
27428         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
27429         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
27430         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
27431         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
27432         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
27433         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
27434         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
27435         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
27436         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
27437         * math/ftestexcept.c (fetestexcept): Likewise.
27438         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
27439         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
27440         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
27441         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
27442         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
27443         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
27444         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
27445
27446 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27447
27448         [BZ #12107]
27449         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
27450         newline.
27451
27452 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
27453
27454         * string/bug-strstr1.c: New file.
27455         * string/Makefile: Add rules to build and run bug-strstr1.
27456
27457 2010-10-05  Eric Blake  <eblake@redhat.com>
27458
27459         [BZ #12092]
27460         * string/str-two-way.h (two_way_long_needle): Always clear memory
27461         when skipping input due to the shift table.
27462
27463 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
27464
27465         [BZ #12005]
27466         * malloc/mcheck.c: Handle large requests.
27467
27468         [BZ #12077]
27469         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
27470         for strncmp and strncasecmp.
27471         * string/stratcliff.c: Add tests for strcmp and strncmp.
27472         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
27473
27474 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27475
27476         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
27477         __set_fpscr.
27478
27479 2010-09-30  Andreas Jaeger  <aj@suse.de>
27480
27481         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
27482         (CGROUP_SUPER_MAGIC): Define.
27483         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27484         Handle btrfs and cgroup file systems.
27485         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
27486         Likewise.
27487
27488 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
27489
27490         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
27491         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
27492
27493 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27494
27495         [BZ #12067]
27496         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
27497         trying to locate the ELF header.
27498
27499 2010-09-27  Andreas Schwab  <schwab@redhat.com>
27500
27501         [BZ #11611]
27502         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
27503         Mask out sign-bit copies when constructing f_fsid.
27504
27505 2010-09-24  Petr Baudis <pasky@suse.cz>
27506
27507         * debug/stack_chk_fail_local.c: Add missing licence exception.
27508         * debug/warning-nop.c: Likewise.
27509
27510 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
27511
27512         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
27513         implementing getdents64 using getdents syscall, set d_type if
27514         __ASSUME_GETDENTS32_D_TYPE.
27515
27516 2010-09-16  Andreas Schwab  <schwab@redhat.com>
27517
27518         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
27519         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
27520
27521 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
27522
27523         [BZ #12037]
27524         * posix/unistd.h: Undo change of feature selection for ftruncate from
27525         2010-01-11.
27526
27527 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
27528
27529         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
27530         detection.
27531
27532 2010-09-20  Andreas Schwab  <schwab@redhat.com>
27533
27534         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
27535         fanotify_mark.
27536         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27537
27538 2010-09-14  Andreas Schwab  <schwab@redhat.com>
27539
27540         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
27541         variables after CHECK_SP call.
27542         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
27543
27544 2010-09-13  Andreas Schwab  <schwab@redhat.com>
27545             Ulrich Drepper  <drepper@redhat.com>
27546
27547         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
27548         re-relocationg ld.so.
27549         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
27550         _dl_init_paths call.
27551         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
27552         here anymore.
27553
27554 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
27555
27556         * resolv/res_init.c (__res_vinit): Count the default server we added.
27557
27558 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
27559             Ulrich Drepper  <drepper@redhat.com>
27560
27561         [BZ #11968]
27562         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
27563         (____longjmp_chk): Use %ebx for saving value across system call.
27564         Add unwind info.
27565
27566 2010-09-06  Andreas Schwab  <schwab@redhat.com>
27567
27568         * manual/Makefile: Don't mix pattern rules with normal rules.
27569
27570 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27571
27572         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
27573         operation.
27574         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
27575         * libio/iofopncook.c (_IO_cookie_init): Likewise.
27576         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
27577         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
27578         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
27579         Likewise.
27580
27581 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
27582
27583         [BZ #11979]
27584         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
27585         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
27586
27587 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
27588
27589         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
27590         * sysdeps/x86_64/addmul_1.S: Likewise.
27591         * sysdeps/x86_64/lshift.S: Likewise.
27592         * sysdeps/x86_64/mul_1.S: Likewise.
27593         * sysdeps/x86_64/rshift.S: Likewise.
27594         * sysdeps/x86_64/sub_n.S: Likewise.
27595         * sysdeps/x86_64/submul_1.S: Likewise.
27596
27597 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27598
27599         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
27600         Define __sched_param instead of SCHED_* and sched_param when
27601         <bits/sched.h> is included with __need_schedparam defined.
27602         * bits/sched.h [__need_schedparam]
27603         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
27604         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
27605         (__defined_schedparam): Define to 1.
27606         (__sched_param): New structure, identical to sched_param.
27607         (__need_schedparam): Undefine.
27608
27609 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
27610
27611         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
27612         (epoll_create1): Declare.
27613
27614         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
27615
27616 2010-08-31  Andreas Schwab  <schwab@redhat.com>
27617
27618         [BZ #7066]
27619         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
27620         shifting retval into place.
27621
27622 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
27623
27624         * nis/rpcsvc/nis.h: Update copyright notice.
27625         * nis/rpcsvc/nis.x: Likewise.
27626         * nis/rpcsvc/nis_callback.h: Likewise.
27627         * nis/rpcsvc/nis_callback.x: Likewise.
27628         * nis/rpcsvc/nis_object.x: Likewise.
27629         * nis/rpcsvc/nis_tags.h: Likewise.
27630         * nis/rpcsvc/yp.h: Likewise.
27631         * nis/rpcsvc/yp.x: Likewise.
27632         * nis/rpcsvc/ypupd.h: Likewise.
27633         * nis/yp_xdr.c: Likewise.
27634         * nis/ypupdate_xdr.c: Likewise.
27635
27636         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
27637         mainly the body of pmap_getport.  Add parameters to specify timeouts.
27638         (pmap_getport): Use __libc_rpc_getport.
27639         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
27640         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
27641         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
27642
27643 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
27644
27645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
27646         fanotify_mark.
27647
27648 2010-08-27  Roland McGrath  <roland@redhat.com>
27649
27650         * sysdeps/i386/i686/multiarch/Makefile
27651         (CFLAGS-varshift.c): New variable.
27652
27653 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
27654
27655         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
27656         * sysdeps/i386/i686/multiarch/varshift.c: New file.
27657
27658         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
27659
27660         * sysdeps/x86_64/strlen.S: Minimal code improvement.
27661
27662 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
27663
27664         * sysdeps/x86_64/strlen.S: Unroll the loop.
27665         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27666         strlen-sse2 strlen-sse2-bsf.
27667         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
27668         __strlen_no_bsf if bit_Slow_BSF is set.
27669         (__strlen_sse42): Removed.
27670         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
27671         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
27672
27673 2010-08-25  Roland McGrath  <roland@redhat.com>
27674
27675         * sysdeps/x86_64/multiarch/varshift.S: File removed.
27676         * sysdeps/x86_64/multiarch/varshift.c: New file.
27677         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
27678         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
27679         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
27680         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27681
27682 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27683
27684         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27685         strlen-sse2 strlen-sse2-bsf.
27686         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
27687         __strlen_sse2_bsf if bit_Slow_BSF is unset.
27688         (__strlen_sse2): Removed.
27689         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
27690         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
27691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
27692         bit_Slow_BSF for Atom.
27693         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
27694         (index_Slow_BSF): Define.
27695         (HAS_SLOW_BSF): Define.
27696
27697 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
27698
27699         [BZ #10851]
27700         * resolv/res_init.c (__res_vinit): When no server address at all
27701         is given default to loopback.
27702
27703 2010-08-24  Roland McGrath  <roland@redhat.com>
27704
27705         * configure.in: Remove config-name.h generation.
27706         * configure: Regenerated.
27707         * config-name.in: File removed.
27708         * scripts/config-uname.sh: New file.
27709         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
27710         ($(objdir)config-name.h): New target.
27711
27712         * sunrpc/rpc_parse.h: Avoid nested comment.
27713
27714 2010-08-24  Richard Henderson  <rth@redhat.com>
27715             Ulrich Drepper  <drepper@redhat.com>
27716             H.J. Lu  <hongjiu.lu@intel.com>
27717
27718         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
27719         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
27720         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
27721         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
27722         _mm_alignr_epi8 with _mm_loadu_si128.
27723         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
27724         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
27725         (__m128i_shift_right): Removed.
27726         * sysdeps/i386/i686/multiarch/varshift.h: New file.
27727         * sysdeps/i386/i686/multiarch/varshift.S: New file.
27728         * sysdeps/x86_64/multiarch/varshift.h: New file.
27729         * sysdeps/x86_64/multiarch/varshift.S: New file.
27730
27731 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
27732
27733         * configure.in: Move assembler checks to before sysdep dir checking.
27734
27735 2010-08-20  Petr Baudis  <pasky@suse.cz>
27736
27737         * LICENSES: Sync the sunrpc license.
27738
27739 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
27740
27741         * sunrpc/auth_des.c: Update copyright notice once again.
27742         * sunrpc/auth_none.c: Likewise.
27743         * sunrpc/auth_unix.c: Likewise.
27744         * sunrpc/authdes_prot.c: Likewise.
27745         * sunrpc/authuxprot.c: Likewise.
27746         * sunrpc/bindrsvprt.c: Likewise.
27747         * sunrpc/clnt_gen.c: Likewise.
27748         * sunrpc/clnt_perr.c: Likewise.
27749         * sunrpc/clnt_raw.c: Likewise.
27750         * sunrpc/clnt_simp.c: Likewise.
27751         * sunrpc/clnt_tcp.c: Likewise.
27752         * sunrpc/clnt_udp.c: Likewise.
27753         * sunrpc/clnt_unix.c: Likewise.
27754         * sunrpc/des_crypt.c: Likewise.
27755         * sunrpc/des_soft.c: Likewise.
27756         * sunrpc/get_myaddr.c: Likewise.
27757         * sunrpc/getrpcport.c: Likewise.
27758         * sunrpc/key_call.c: Likewise.
27759         * sunrpc/key_prot.c: Likewise.
27760         * sunrpc/openchild.c: Likewise.
27761         * sunrpc/pm_getmaps.c: Likewise.
27762         * sunrpc/pm_getport.c: Likewise.
27763         * sunrpc/pmap_clnt.c: Likewise.
27764         * sunrpc/pmap_prot.c: Likewise.
27765         * sunrpc/pmap_prot2.c: Likewise.
27766         * sunrpc/pmap_rmt.c: Likewise.
27767         * sunrpc/rpc/auth.h: Likewise.
27768         * sunrpc/rpc/auth_unix.h: Likewise.
27769         * sunrpc/rpc/clnt.h: Likewise.
27770         * sunrpc/rpc/des_crypt.h: Likewise.
27771         * sunrpc/rpc/key_prot.h: Likewise.
27772         * sunrpc/rpc/netdb.h: Likewise.
27773         * sunrpc/rpc/pmap_clnt.h: Likewise.
27774         * sunrpc/rpc/pmap_prot.h: Likewise.
27775         * sunrpc/rpc/pmap_rmt.h: Likewise.
27776         * sunrpc/rpc/rpc.h: Likewise.
27777         * sunrpc/rpc/rpc_des.h: Likewise.
27778         * sunrpc/rpc/rpc_msg.h: Likewise.
27779         * sunrpc/rpc/svc.h: Likewise.
27780         * sunrpc/rpc/svc_auth.h: Likewise.
27781         * sunrpc/rpc/types.h: Likewise.
27782         * sunrpc/rpc/xdr.h: Likewise.
27783         * sunrpc/rpc_clntout.c: Likewise.
27784         * sunrpc/rpc_cmsg.c: Likewise.
27785         * sunrpc/rpc_common.c: Likewise.
27786         * sunrpc/rpc_cout.c: Likewise.
27787         * sunrpc/rpc_dtable.c: Likewise.
27788         * sunrpc/rpc_hout.c: Likewise.
27789         * sunrpc/rpc_main.c: Likewise.
27790         * sunrpc/rpc_parse.c: Likewise.
27791         * sunrpc/rpc_parse.h: Likewise.
27792         * sunrpc/rpc_prot.c: Likewise.
27793         * sunrpc/rpc_sample.c: Likewise.
27794         * sunrpc/rpc_scan.c: Likewise.
27795         * sunrpc/rpc_scan.h: Likewise.
27796         * sunrpc/rpc_svcout.c: Likewise.
27797         * sunrpc/rpc_tblout.c: Likewise.
27798         * sunrpc/rpc_util.c: Likewise.
27799         * sunrpc/rpc_util.h: Likewise.
27800         * sunrpc/rpcinfo.c: Likewise.
27801         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
27802         * sunrpc/rpcsvc/key_prot.x: Likewise.
27803         * sunrpc/rpcsvc/klm_prot.x: Likewise.
27804         * sunrpc/rpcsvc/mount.x: Likewise.
27805         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
27806         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
27807         * sunrpc/rpcsvc/rex.x: Likewise.
27808         * sunrpc/rpcsvc/rstat.x: Likewise.
27809         * sunrpc/rpcsvc/rusers.x: Likewise.
27810         * sunrpc/rpcsvc/sm_inter.x: Likewise.
27811         * sunrpc/rpcsvc/spray.x: Likewise.
27812         * sunrpc/rpcsvc/yppasswd.x: Likewise.
27813         * sunrpc/rtime.c: Likewise.
27814         * sunrpc/svc.c: Likewise.
27815         * sunrpc/svc_auth.c: Likewise.
27816         * sunrpc/svc_authux.c: Likewise.
27817         * sunrpc/svc_raw.c: Likewise.
27818         * sunrpc/svc_run.c: Likewise.
27819         * sunrpc/svc_simple.c: Likewise.
27820         * sunrpc/svc_tcp.c: Likewise.
27821         * sunrpc/svc_udp.c: Likewise.
27822         * sunrpc/svc_unix.c: Likewise.
27823         * sunrpc/svcauth_des.c: Likewise.
27824         * sunrpc/xcrypt.c: Likewise.
27825         * sunrpc/xdr.c: Likewise.
27826         * sunrpc/xdr_array.c: Likewise.
27827         * sunrpc/xdr_float.c: Likewise.
27828         * sunrpc/xdr_mem.c: Likewise.
27829         * sunrpc/xdr_rec.c: Likewise.
27830         * sunrpc/xdr_ref.c: Likewise.
27831         * sunrpc/xdr_sizeof.c: Likewise.
27832         * sunrpc/xdr_stdio.c: Likewise.
27833
27834         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
27835         handling.
27836
27837 2010-08-19  Andreas Schwab  <schwab@redhat.com>
27838
27839         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
27840
27841 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
27842
27843         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
27844         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
27845         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
27846         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
27847         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
27848         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
27849         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
27850         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
27851         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
27852         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
27853         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
27854         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
27855         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
27856         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
27857
27858 2010-07-26  Anton Blanchard  <anton@samba.org>
27859
27860         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
27861         * malloc/arena.c (heap_trim): Likewise.
27862
27863 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
27864
27865         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
27866         here.  Not...
27867         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
27868         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
27869
27870 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27871
27872         * sysdeps/i386/elf/Makefile: New file.
27873
27874 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27875
27876         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
27877         from fanotify_init.
27878         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
27879         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27880
27881 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
27882
27883         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
27884         of strncasecmp_l.
27885         * sysdeps/multiarch/strcmp.S: Likewise.
27886
27887 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
27888
27889         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27890         strncase_l-nonascii.
27891         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27892         Add strncase_l-ssse3.
27893         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
27894         * sysdeps/x86_64/strcmp.S: Likewise.
27895         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
27896         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
27897         * sysdeps/x86_64/strncase.S: New file.
27898         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
27899         * sysdeps/x86_64/strncase_l.S: New file.
27900         * string/Makefile (strop-tests): Add strncasecmp.
27901         * string/test-strncasecmp.c: New file.
27902
27903         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
27904         warning.
27905
27906         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
27907         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
27908
27909 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27910
27911         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
27912
27913 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
27914
27915         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
27916         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
27917         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
27918
27919 2010-05-01  Alan Modra  <amodra@gmail.com>
27920
27921         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
27922         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
27923         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
27924         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
27925         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
27926         tidying.  Don't tail-call __sigjmp_save for static lib.
27927         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
27928         save location.
27929         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
27930         (CALL_MCOUNT): Add eh info, and nop after bl.
27931         (TAIL_CALL_SYSCALL_ERROR): New macro.
27932         (PSEUDO_RET): Use it.
27933         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
27934         Correct save location of integer regs and cr.
27935         (_dl_profile_resolve): Correct cr save location.  Delete nops
27936         after bl when SHARED.  Reduce cfi size a little by better
27937         placement of cfi directives.
27938         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
27939         make a stack frame.  Instead use parm save area as a temp.
27940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
27941         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
27942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
27943         Don't make a stack frame for parent, use parm save area.
27944         Increase child stack frame to 112 bytes.  Don't save unused reg,
27945         and adjust reg usage.  Set up cfi on error recovery and
27946         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
27947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
27948         (__makecontext): Add dummy nop after jump to exit.
27949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
27950         Use correct parm save area and cr save, reduce stack frame.
27951         Correct cfi for possible PSEUDO_RET frame setup.
27952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
27953         Branch to local label emitted by PSEUDO_RET rather than
27954         __syscall_error.
27955
27956 2010-08-12  Andreas Schwab  <schwab@redhat.com>
27957
27958         [BZ #11904]
27959         * locale/programs/locale.c (print_assignment): New function.
27960         (show_locale_vars): Use it.
27961
27962 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
27963
27964         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
27965         field.
27966         (struct statfs64): Likewise.
27967         (_STATFS_F_FLAGS): Define.
27968         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
27969         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27970         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
27971         (ST_VALID): Define locally.
27972         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
27973         __statvfs_getflags, use the provided value.
27974         * sysdeps/unix/sysv/linux/kernel-features.h: Define
27975         __ASSUME_STATFS_F_FLAGS.
27976
27977         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
27978
27979         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
27980         Add sys/fanotify.h.
27981         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
27982         fanotify_mask for GLIBC_2.13.
27983         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
27984         fanotify_init and fanotify_mark.
27985         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27986         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
27987
27988         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
27989         Add prlimit.
27990         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
27991         prlimit64 for GLIBC_2.13.
27992         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
27993         prlimit64.
27994         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
27995         syscall.
27996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
27997         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27998         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
27999         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
28000         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
28001         add prlimit alias.
28002         * sysdeps/unix/sysv/linux/prlimit.c: New file.
28003
28004         [BZ #11903]
28005         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
28006         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
28007
28008         * nss/Makefile: Add rules to build and run tst-nss-test1.
28009         * shlib-versions: Add entry for libnss_test1.
28010         * nss/nss_test1.c: New file.
28011         * nss/tst-nss-test1.c: New file.
28012
28013         * nss/nsswitch.c (__nss_database_custom): Define new variable.
28014         (__nss_configure_lookup): Set appropriate entry in
28015         __nss_configure_lookup to true.
28016         * nss/nsswitch.h: Define enum with indeces of databases in
28017         databases and __nss_database_custom arrays.  Declare
28018         __nss_database_custom.
28019         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
28020         to avoid using nscd when custom rules are installed.
28021         * nss/getXXbyYY_r.c: Likewise.
28022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
28023
28024         * nss/nss_files/files-parse.c: Whitespace fixes.
28025
28026 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
28027
28028         [BZ #11883]
28029         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
28030         * posix/fnmatch_loop.c: Likewise.
28031
28032 2010-07-17  Andi Kleen  <ak@linux.intel.com>
28033
28034         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
28035         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
28036         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
28037         * Versions.def [GLIBC_2.13]: Add.
28038
28039 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
28040
28041         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28042         Also fail if tpwd after pwuid call is NULL.
28043
28044 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28045
28046         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
28047         when converting to ms.
28048
28049 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28050
28051         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
28052         EOPNOTSUPP errors with ENOTTY.
28053         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
28054         EOPNOTSUPP errors with ENOTTY.
28055
28056 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
28057
28058         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
28059         Add strcasecmp_l-ssse3.
28060         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
28061         strcasecmp.
28062         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
28063         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
28064         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
28065
28066 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
28067
28068         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
28069
28070         * string/Makefile (strop-tests): Add strcasecmp.
28071         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
28072         strcasecmp_l-nonascii.
28073         (gen-as-const-headers): Add locale-defines.sym.
28074         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
28075         * sysdeps/x86_64/strcasecmp.S: New file.
28076         * sysdeps/x86_64/strcasecmp_l.S: New file.
28077         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
28078         * sysdeps/x86_64/locale-defines.sym: New file.
28079         * string/test-strcasecmp.c: New file.
28080
28081         * string/test-strcasestr.c: Test both ends of the range of characters.
28082         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
28083
28084 2010-07-29  Roland McGrath  <roland@redhat.com>
28085
28086         [BZ #11856]
28087         * manual/locale.texi (Yes-or-No Questions): Fix example code.
28088
28089 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
28090
28091         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
28092         for ld.so.
28093
28094 2010-07-27  Andreas Schwab  <schwab@redhat.com>
28095
28096         * manual/memory.texi (Malloc Tunable Parameters): Document
28097         M_PERTURB.
28098
28099 2010-07-26  Roland McGrath  <roland@redhat.com>
28100
28101         [BZ #11840]
28102         * configure.in (-fgnu89-inline check): Set and substitute
28103         gnu89_inline, not libc_cv_gnu89_inline.
28104         * configure: Regenerated.
28105         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
28106
28107 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
28108
28109         * string/test-strnlen.c: New file.
28110         * string/Makefile (strop-tests): Add strnlen.
28111         * string/tester.c (test_strnlen): Add a few more test cases.
28112         * string/tst-strlen.c: Better error reporting.
28113
28114         * sysdeps/x86_64/strnlen.S: New file.
28115
28116 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
28117
28118         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
28119         lower-latency instructions.
28120
28121 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28122
28123         * string/test-strcasestr.c: New file.
28124         * string/test-strstr.c: New file.
28125         * string/Makefile (strop-tests): Add strstr and strcasestr.
28126         * string/str-two-way.h: Don't undefine MAX.
28127         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28128
28129 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28130
28131         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28132         strcasestr-nonascii.
28133         (CFLAGS-strcasestr-nonascii.c): Define.
28134         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28135         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28136         Remove unused attribute.
28137
28138 2010-07-20  Roland McGrath  <roland@redhat.com>
28139
28140         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28141         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28142         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28143         like LD_HWCAP_MASK can disable hwcaps.
28144
28145 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28146
28147         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28148
28149 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28150
28151         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28152         call in strcasestr.
28153         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28154         __strcasestr_sse42_nonascii.
28155         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28156         strcasestr-nonascii.c.
28157         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28158
28159 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28160
28161         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28162         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28163         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28164         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28165
28166 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28167
28168         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28169         fcntl.
28170
28171 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28172
28173         [BZ #11577]
28174         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28175         dl_signal_cerror.
28176
28177 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28178
28179         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28180         _PC_PIPE_BUF using F_GETPIPE_SZ.
28181
28182 2010-07-05  Roland McGrath  <roland@redhat.com>
28183
28184         * manual/arith.texi (Rounding Functions): Fix rint description
28185         implicit in round description.
28186
28187 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28188
28189         * elf/Makefile: Fix linking for a few tests to make recent linker
28190         happy.
28191
28192 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28193
28194         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28195         $(common-objpfx)libc_nonshared.a.
28196
28197 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28198
28199         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28200         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28201         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28202         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28203         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28204         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28205         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28206         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28221         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28222         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28223         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28224         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28225         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28226         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28227         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28228         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28229         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28230         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28231         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28232         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28247
28248 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28249
28250         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28251         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28252         * string/memmove.c (memmove): Renamed to ...
28253         (MEMMOVE): ...this.  Default to memmove.
28254         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28255         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28256         (END_CHK): Define.
28257         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28258         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28259         mempcpy-ssse3-back memmove-ssse3-back.
28260         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28261         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28262         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28263         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28264         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28265         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28266         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28267         * sysdeps/x86_64/multiarch/memmove.c: New file.
28268         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28269         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28270         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28271         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28272         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28273         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28274         Define.
28275         (index_Fast_Copy_Backward): Define.
28276         (HAS_ARCH_FEATURE): Define.
28277         (HAS_FAST_REP_STRING): Define.
28278         (HAS_FAST_COPY_BACKWARD): Define.
28279
28280 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28281
28282         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28283         Restore proper fallback handling.
28284
28285 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28286
28287         [BZ #11701]
28288         * posix/group_member.c (__group_member): Correct checking loop.
28289
28290         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28291         OOM in getpwuid_r correctly.  Return error number when the caller
28292         should return, otherwise -1.
28293         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28294         call returning > 0 value.
28295         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28296
28297 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28298
28299         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28300         libc_nonshared.a from targets in modules-names.
28301
28302 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28303
28304         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28305         requires it.
28306
28307 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28308
28309         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28310         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28311         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28312         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28313
28314 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28315
28316         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28317
28318 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28319
28320         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28321         and F_GETPIPE_SZ.
28322         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28323         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28325         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28326         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28327         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28328
28329 2010-06-14  Roland McGrath  <roland@redhat.com>
28330
28331         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28332
28333 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28334
28335         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28336         __REDIRECT followed by __THROW.
28337         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28338         * posix/getopt.h (getopt): Likewise.
28339
28340 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28341
28342         * hurd/lookup-at.c (__file_name_lookup_at): Accept
28343         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
28344         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
28345         in AT_FLAGS.
28346         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
28347         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
28348
28349 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
28350
28351         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
28352
28353 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
28354
28355         [BZ #11640]
28356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28357         Properly check family and model.
28358
28359 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
28360
28361         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
28362
28363 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
28364
28365         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
28366
28367 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
28368
28369         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
28370         symbol reference.
28371
28372 2010-05-19  Andreas Schwab  <schwab@redhat.com>
28373
28374         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
28375         symbol reference.
28376
28377 2010-05-21  Andreas Schwab  <schwab@redhat.com>
28378
28379         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
28380         and internal_recvmmsg.
28381         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
28382         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
28383         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
28384         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
28385
28386         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
28387         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
28388         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
28389
28390 2010-05-20  Andreas Schwab  <schwab@redhat.com>
28391
28392         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
28393
28394 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
28395
28396         POWER7 optimizations.
28397         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
28398         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
28399
28400 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
28401
28402         * version.h: Update for 2.13 development version.
28403
28404 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
28405
28406         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
28407         exceptions.  Return 0.
28408
28409 2010-05-07  Roland McGrath  <roland@redhat.com>
28410
28411         * elf/ldconfig.c (main): Add a const.
28412
28413 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
28414
28415         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
28416         (args_options): Add no-idn option.
28417         (ahosts_keys_int): Add idn_flags to ai_flags.
28418         (parse_option): Handle 'i' option to clear idn_flags.
28419
28420         * malloc/malloc.c (_int_free): Possible race in the most recently
28421         added check.  Only act on the data if no current modification
28422         happened.
28423
28424 See ChangeLog.17 for earlier changes.