Update Sparc ULPs.
[platform/upstream/glibc.git] / ChangeLog
1 2013-05-02  David S. Miller  <davem@davemloft.net>
2
3         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4
5 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
6
7         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
8
9 2013-05-01  Roland McGrath  <roland@hack.frob.com>
10
11         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
12
13 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
14
15         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
16         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
17         Use __attribute__ ((__gnu_inline__)).
18         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19         Don't use __attribute__ ((__gnu_inline__)).
20
21 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
22
23         [BZ #15423]
24         * math/s_catan.c (__catan): Handle small real or imaginary part of
25         input specially to avoid spurious underflow.
26         * math/s_catanf.c (__catanf): Likewise.
27         * math/s_catanh.c (__catanh): Likewise.
28         * math/s_catanhf.c (__catanhf): Likewise.
29         * math/s_catanhl.c (__catanhl): Likewise.
30         * math/s_catanl.c (__catanl): Likewise.
31         * math/libm-test.inc (catan_test): Add more tests.
32         (catanh_test): Likewise.
33         * sysdeps/i386/fpu/libm-test-ulps: Update.
34         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35
36 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37
38         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39
40 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
41
42         [BZ #15416]
43         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
44         accurately for denominator in atan2.
45         * math/s_catanf.c (__catanf): Likewise.
46         * math/s_catanh.c (__catanh): Likewise.
47         * math/s_catanhf.c (__catanhf): Likewise.
48         * math/s_catanhl.c (__catanhl): Likewise.
49         * math/s_catanl.c (__catanl): Likewise.
50         * math/libm-test.inc (catan_test): Add more tests.
51         (catanh_test): Likewise.
52         * sysdeps/i386/fpu/libm-test-ulps: Update.
53         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54
55 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
56
57         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
58
59         * benchtests/Makefile (bench): Remove slow benchmarks.
60         * benchtests/atan-inputs: Add slow benchmark inputs.
61         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
62         (BENCH_FUNC): Accept variant offset.
63         (VARIANT): Define.
64         * benchtests/bench-skeleton.c (main): Run benchmark for each
65         variant.
66         * benchtests/cos-inputs: Add slow benchmark inputs.
67         * benchtests/exp-inputs: Likewise.
68         * benchtests/pow-inputs: Likewise.
69         * benchtests/sin-inputs: Likewise.
70         * benchtests/slowatan-inputs: Remove.
71         * benchtests/slowatan.c: Remove.
72         * benchtests/slowcos-inputs: Remove.
73         * benchtests/slowcos.c: Remove.
74         * benchtests/slowexp-inputs: Remove.
75         * benchtests/slowexp.c: Remove.
76         * benchtests/slowpow-inputs: Remove.
77         * benchtests/slowpow.c: Remove.
78         * benchtests/slowsin-inputs: Remove.
79         * benchtests/slowsin.c: Remove.
80         * benchtests/slowtan-inputs: Remove.
81         * benchtests/slowtan.c: Remove.
82         * benchtests/tan-inputs: Add slow benchmark inputs.
83         * scripts/bench.pl: Parse comments and directives.
84
85         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
86         in CPPFLAGS.
87         ($(objpfx)bench-%.c): Remove *-ITER.
88         * benchtests/bench-modf.c: Remove definition of ITER.
89         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
90         (main): Loop for DURATION seconds instead of fixed number of
91         iterations.
92         * scripts/bench.pl: Don't expect iterations in parameters.
93
94 2013-04-29  Roland McGrath  <roland@hack.frob.com>
95
96         * io/fchdir.c (__fchdir): Renamed from fchdir.
97         (fchdir): Define as weak alias.
98
99 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
100
101         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
102         (ERRNO_EDOM): Likewise.
103         (ERRNO_ERANGE): Likewise.
104         (noErrnoTests): New variable.
105         (init_max_error): Set errno to 0.
106         (test_single_errno): New function.
107         (test_errno): Likewise.
108         (check_float_internal): Call test_errno.  Set errno to 0.
109         (check_complex): Refer to errno tests in comment.
110         (check_int): Call test_errno.  Set errno to 0.
111         (check_long): Likewise.
112         (check_bool): Likewise.
113         (check_longlong): Likewise.
114         (cos_test): Use ERRNO_* flags for errno tests instead of
115         check_int.
116         (expm1_test): Likewise.
117         (fmod_test): Likewise.
118         (ilogb_test): Likewise.
119         (lgamma_test): Likewise.
120         (pow_test): Likewise.
121         (remainder_test): Likewise.
122         (sin_test): Likewise.
123         (tan_test): Likewise.
124         (yn_test): Likewise.
125         (initialize): Set errno to 0.
126         (main): Print number of errno tests.
127         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
128
129 2013-04-29  Andreas Jaeger  <aj@suse.de>
130
131         [BZ #15084]
132         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
133         and RES_USEVC.
134
135         [BZ #15085]
136         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
137         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
138         unimplemented.
139
140         [BZ #15380]
141         * stdlib/random.c (__initstate): Return NULL if
142         __initstate fails.
143
144         [BZ #15086]
145         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
146         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
147         RES_SNGLKUPREOP.
148
149 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
150
151         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
152
153 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
154
155         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
156         of individual tests.
157         (casin_test): Likewise.
158         (casinh_test): Likewise.
159
160 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
161
162         [BZ #15409]
163         * math/s_catan.c (__catan): Handle arguments with large real or
164         imaginary part separately without squaring.
165         * math/s_catanf.c (__catanf): Likewise.
166         * math/s_catanh.c (__catanh): Likewise.
167         * math/s_catanhf.c (__catanhf): Likewise.
168         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
169         and redefine.
170         (__catanhl): Handle arguments with large real or imaginary part
171         separately without squaring.
172         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
173         and redefine.
174         (__catanl): Handle arguments with large real or imaginary part
175         separately without squaring.
176         * math/libm-test.inc (catan_test): Add more tests.
177         (catanh_test): Likewise.
178         * sysdeps/i386/fpu/libm-test-ulps: Update.
179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
180
181 2013-04-27  Andreas Jaeger  <aj@suse.de>
182
183         [BZ #15007]
184         * stdlib/stdlib.h: Update guards for qecvt.
185         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
186         <stdlib.h>.
187
188 2013-04-27  Allan McRae  <allan@archlinux.org>
189
190         * sysdeps/i386/fpu/libm-test-ulps: Update.
191
192 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
193
194         [BZ #15406]
195         * math/s_catan.c: Include <float.h>.
196         (__catan): Ensure underflow exception occurs for underflowed
197         result.
198         * math/s_catanf.c: Include <float.h>.
199         (__catanf): Ensure underflow exception occurs for underflowed
200         result.
201         * math/s_catanh.c: Include <float.h>.
202         (__catanh): Ensure underflow exception occurs for underflowed
203         result.
204         * math/s_catanhf.c: Include <float.h>.
205         (__catanhf): Ensure underflow exception occurs for underflowed
206         result.
207         * math/s_catanhl.c: Include <float.h>.
208         (__catanhl): Ensure underflow exception occurs for underflowed
209         result.
210         * math/s_catanl.c: Include <float.h>.
211         (__catanl): Ensure underflow exception occurs for underflowed
212         result.
213         * math/libm-test.inc (catan_test): Add more tests.
214         (catanh_test): Likewise.
215
216         [BZ #15405]
217         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
218         underflowed result.
219         * math/s_ccoshf.c (__ccoshf): Likewise.
220         * math/s_ccoshl.c (__ccoshl): Likewise.
221         * math/s_csin.c (__csin): Likewise.
222         * math/s_csinf.c (__csinf): Likewise.
223         * math/s_csinh.c (__csinh): Likewise.
224         * math/s_csinhf.c (__csinhf): Likewise.
225         * math/s_csinhl.c (__csinhl): Likewise.
226         * math/s_csinl.c (__csinl): Likewise.
227         * math/libm-test.inc (ccos_test): Add more tests.
228         (ccosh_test): Likewise.
229         (csin_test): Likewise.
230         (csinh_test): Likewise.
231
232 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
233
234         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
235         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
236         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
237         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
238         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
239         powerpc/power5+/fpu folders.
240         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
241
242
243 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
244
245         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
246
247 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
248
249         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
250         additions to variable.
251         [$(config-machine) = x86_64] (modules-names): Likewise.
252         ($(objpfx)tst-audit3): Remove dependency.
253         ($(objpfx)tst-audit3.out): Likewise.
254         ($(objpfx)tst-audit4): Likewise.
255         ($(objpfx)tst-audit4.out): Likewise.
256         ($(objpfx)tst-audit5): Likewise.
257         ($(objpfx)tst-audit5.out): Likewise.
258         ($(objpfx)tst-audit6): Likewise.
259         ($(objpfx)tst-audit6.out): Likewise.
260         ($(objpfx)tst-audit7): Likewise.
261         ($(objpfx)tst-audit7.out): Likewise.
262         (tst-audit3-ENV): Remove variable.
263         (tst-audit4-ENV): Likewise.
264         (tst-audit5-ENV): Likewise.
265         (tst-audit6-ENV): Likewise.
266         (tst-audit7-ENV): Likewise.
267         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
268         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
269         addition to variable.
270         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
271         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
272         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
273         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
274         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
275         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
276         tst-audit3, tst-audit4 and tst-audit5.
277         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
278         tst-audit6 and tst-audit7.
279         [$(subdir) = elf] (modules-names): Add audit modules for those
280         tests.
281         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
282         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
283         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
284         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
285         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
286         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
287         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
288         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
289         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
290         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
291         [$(subdir) = elf] (tst-audit3-ENV): New variable.
292         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
293         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
294         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
295         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
296         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
297         Likewise.
298         [$(subdir) = elf && $(config-cflags-avx) = yes]
299         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
300         [$(subdir) = elf && $(config-cflags-avx) = yes]
301         (CFLAGS-tst-auditmod4a.c): Likewise.
302         [$(subdir) = elf && $(config-cflags-avx) = yes]
303         (CFLAGS-tst-auditmod4b.c): Likewise.
304         [$(subdir) = elf && $(config-cflags-avx) = yes]
305         (CFLAGS-tst-auditmod6b.c): Likewise.
306         [$(subdir) = elf && $(config-cflags-avx) = yes]
307         (CFLAGS-tst-auditmod6c.c): Likewise.
308         [$(subdir) = elf && $(config-cflags-avx) = yes]
309         (CFLAGS-tst-auditmod7b.c): Likewise.
310         * elf/tst-audit3.c: Move to ...
311         * sysdeps/x86_64/tst-audit3.c: ... here.
312         * elf/tst-audit4.c: Move to ...
313         * sysdeps/x86_64/tst-audit4.c: ... here.
314         * elf/tst-audit5.c: Move to ...
315         * sysdeps/x86_64/tst-audit5.c: ... here.
316         * elf/tst-audit6.c: Move to ...
317         * sysdeps/x86_64/tst-audit6.c: ... here.
318         * elf/tst-audit7.c: Move to ...
319         * sysdeps/x86_64/tst-audit7.c: ... here.
320         * elf/tst-auditmod3a.c: Move to ...
321         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
322         * elf/tst-auditmod3b.c: Move to ...
323         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
324         * elf/tst-auditmod4a.c: Move to ...
325         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
326         * elf/tst-auditmod4b.c: Move to ...
327         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
328         * elf/tst-auditmod5a.c: Move to ...
329         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
330         * elf/tst-auditmod5b.c: Move to ...
331         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
332         * elf/tst-auditmod6a.c: Move to ...
333         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
334         * elf/tst-auditmod6b.c: Move to ...
335         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
336         * elf/tst-auditmod6c.c: Move to ...
337         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
338         * elf/tst-auditmod7a.c: Move to ...
339         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
340         * elf/tst-auditmod7b.c: Move to ...
341         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
342
343 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
344
345         [BZ #15366]
346         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
347         define unconditionally.
348         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
349         define unconditionally.
350         (INT8_C, INT16_C, etc.): Likewise.
351
352 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
353
354         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
355         __ehdr_start with hidden visibility.
356
357         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
358
359 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
360
361         * math/libm-test.inc (cos_test): Use accurate hex constants.
362         (sincost_test): Likewise.
363
364 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
365
366         * math/libm-test.inc (catan_test): Add more tests.
367         (catanh_test): Likewise.
368
369         * math/s_catanf.c (__catanf): Use suffixed floating-point
370         constants.
371         * math/s_catanhf.c (__catanhf): Likewise.
372         * math/s_catanhl.c (__catanhl): Likewise.
373         * math/s_catanl.c (__catanl): Likewise.
374
375         [BZ #15394]
376         * math/s_catan.c (__catan): Calculate imaginary part of result
377         with log1p not log unless computing log of number close to 0.
378         * math/s_catanf.c (__catanf): Likewise.
379         * math/s_catanl.c (__catanl): Likewise.
380         * math/s_catanh.c (__catanh): Calculate real part of result with
381         log1p not log unless computing log of number close to 0.
382         * math/s_catanhf.c (__catanhf): Likewise.
383         * math/s_catanhl.c (__catanhl): Likewise.
384         * math/libm-test.inc (catan_test): Add more tests.
385         (catanh_test): Likewise.
386         * sysdeps/i386/fpu/libm-test-ulps: Update.
387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
388
389 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
390
391         * benchtests/Makefile: Mention files in which fast and slow
392         paths of math functions are implemented.
393
394 2013-04-23  Roland McGrath  <roland@hack.frob.com>
395
396         * sysdeps/posix/timespec_get.c: New file.
397
398 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
399
400         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
401         POWER.
402         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
403         for POWER.
404         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
405         powerpc/power5/fpu folders.
406         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
407         * benchtests/Makefile: Add modf testcase.
408         * benchtests/bench-modf.c: New file: Benchmark test for mo
409
410 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
411
412         [BZ #14888]
413         * time/Makefile (tests): Add tst-strptime-whitespace.
414         * time/strptime_l.c (get_number): Use ISSPACE.
415         (__strptime_internal): Likewise.
416         * time/tst-strptime-whitespace.c: New test case.
417
418 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
419
420         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
421         member.
422         (_nss_files_init): Set it here.
423
424 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
425
426         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
427         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
428         unsigned.
429
430 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
431
432         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
433
434 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
435
436         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
437         size just once.
438
439 2013-04-21  David S. Miller  <davem@davemloft.net>
440
441         * po/ru.po: Update Russion translation from translation project.
442
443 2013-04-17  Adam Conrad  <adconrad@0c3.net>
444
445         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
446         and setfsgid.
447
448 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
449
450         * configure.in: Remove i386 configure warning. Remove i386 case.
451         * configure: Regenerate.
452         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
453         Add example to error message.
454         * sysdeps/i386/configure: Regenerate.
455
456 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
457
458         * benchtests/Makefile (bench): Add cos, tan, slowcos and
459         slowtan.
460         * benchtests/cos-inputs: New file.
461         * benchtests/slowcos-inputs: New file.
462         * benchtests/slowcos.c: New file.
463         * benchtests/slowtan-inputs: New file.
464         * benchtests/slowtan.c: New file.
465         * benchtests/tan-inputs: New file.
466
467 2013-04-16  Roland McGrath  <roland@hack.frob.com>
468
469         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
470         considered kosher.
471
472 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
473
474         * benchtests/Makefile: Include cppflags-iterator.mk to add
475         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
476
477         * Makefile.in (bench-clean): New target.
478         * benchtests/Makefile (bench-clean): Likewise.
479
480 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
481
482         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
483
484 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
485
486         * stdio-common/tstdiomisc.c: Fix coding-style violation.
487
488 2013-04-15  Andreas Schwab  <schwab@suse.de>
489
490         * nscd/grpcache.c (cache_addgr): Properly check for short write.
491         * nscd/initgrcache.c (addinitgroupsX): Likewise.
492         * nscd/pwdcache.c (cache_addpw): Likewise.
493         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
494         more than recsize.
495
496 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
497
498         * benchtests/Makefile (bench): Write all output to
499         bench-out.tmp together.
500
501 2013-04-15  Andreas Schwab  <schwab@suse.de>
502
503         * nscd/nscd.c (main): Don't fork again after closing files.
504
505 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
506
507         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
508
509         * benchtests/Rules (bench-deps): Collect dependencies into a
510         single variable.  Add Makefile to dependencies.
511         ($(objpfx)bench-%.c): Depend on bench-deps.
512
513 2013-04-12  Roland McGrath  <roland@hack.frob.com>
514             Xavier Roche  <roche+kml2@exalead.com>
515
516         [BZ #15361]
517         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
518         just that it's a file descriptor.
519         * manual/llio.texi (Synchronizing AIO Operations): Update description
520         for EBADF error from aio_fsync.
521
522 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
523
524         * Rules (bench): Move target definition...
525         * benchtests/Makefile: ... here.
526
527 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
528
529         * math/libm-test.inc (cos_test): Fix PI/2 test.
530         (sincos_test): Likewise.
531         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
532         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
533
534 2013-04-11  Andreas Schwab  <schwab@suse.de>
535
536         [BZ #13988]
537         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
538         accept exponent character only when digits were seen.
539         * stdio-common/Makefile (tests): Add bug26.
540         * stdio-common/bug26.c: New file.
541
542         [BZ #14293]
543         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
544         non-freeable.
545
546 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
547
548         * Makeconfig (rtld-prefix): Define built linker prefix.
549         * Rules (run-bench): Use it.
550         * math/Makefile (run-regen-ulps): Likewise.
551
552         * Rules (bench): Remove eval.
553
554 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
555             Roland McGrath  <roland@hack.frob.com>
556             Ondrej Bilka  <neleai@seznam.cz>
557
558         [BZ #15346]
559         * time/getdate.c: Include ctype.h and alloca.h.
560         (__getdate_r): Trim leading and trailing spaces of input.
561         * time/tst-getdate.c (tests): Add tests with leading and
562         trailing spaces.
563
564 2013-04-08  Roland McGrath  <roland@hack.frob.com>
565
566         [BZ #14280]
567         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
568         when computing value.
569
570 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
571
572         * math/README.libm-test (How can I generate "libm-test-ulps"?):
573         Use testrun.sh to run libm tests.
574
575         [BZ #15309]
576         * elf/dl-open.c (dl_open_worker): memset all of seen array.
577
578 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
579
580         [BZ #15264]
581         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
582
583 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
584
585         * Makefile.in (regen-ulps): New target.
586         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
587         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
588         [ifneq (no,$(PERL)] (regen-ulps): New target.
589         [ifeq (no,$(PERL)] (regen-ulps): New target.
590         * math/libm-test.inc (ulps_file_name): Define.
591         (output_dir): New variable.
592         (options): Add "output-dir" option.
593         (parse_opt): Handle 'o' case.
594         (main): If output_dir is non-NULL use it as a prefix
595         otherwise use "".
596         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
597
598 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
599
600         [BZ #10060, #10062]
601         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
602         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
603         fail configure if __sync_val_compare_and_swap is not inlined.
604         * sysdeps/i386/configure: Regenerate.
605         * configure.in: Build for i686 when configured for i386.
606         * configure: Regenerate.
607         * README: Remove i386 reference.
608
609 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
610
611         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
612         * sysdeps/s390/s390-64/sysdep.h: Likewise.
613
614 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
615
616         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
617         (lmsnanval): New variables.
618         (F): Add conversion tests.
619         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
620         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
621
622         * stdio-common/tstdiomisc.c (F): Properly collect individual
623         tests' results.
624
625         [BZ #14686, #15336]
626         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
627         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
628         Instead, use input NaN values or generate a qNaN by arithmetic
629         operation.  Also fix bugs to comply with the standard.
630         * math/libm-test.inc (remainder_test): Add more tests.
631
632         [BZ #15335, #15342]
633         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
634         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
635         input NaN values or generate a qNaN by arithmetic operation.
636
637         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
638         unreachable code.
639
640         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
641         definitions.
642
643 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
644
645         [BZ #14478]
646         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
647         underflowed result.
648         * math/s_cexpf.c (__cexpf): Likewise.
649         * math/s_cexpl.c (__cexpl): Likewise.
650         * math/libm-test.inc (cexp_test): Add more tests.
651
652 2013-04-03  Andreas Schwab  <schwab@suse.de>
653
654         [BZ #15330]
655         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
656         order arrays from heap if bigger than alloca cutoff.
657
658 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
659
660         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
661         (SNAN_TESTS_double): Refer to GCC PR56831.
662         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
663         GCC PR56828.
664
665 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
666
667         * Rules (bench): Move bench.out after the run is complete.
668
669         * Rules (bench): Echo currently running benchmark.
670
671         * benchtests/Makefile (bench): Add atan and slowatan.
672         * benchtests/atan-inputs: New file.
673         * benchtests/slowatan-inputs: New file.
674         * benchtests/slowatan.c: New file.
675
676         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
677         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
678         its value.
679
680         [BZ #15305]
681         * sysdeps/unix/sysv/linux/kernel-features.h
682         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
683         __ASSUME_XFS_RESTRICTED_CHOWN.
684         * sysdeps/unix/sysv/linux/pathconf.c
685         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
686         Save and restore errno.
687
688 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
689
690         [BZ #15327]
691         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
692         arguments using __kernel_casinh.
693         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
694         arguments using __kernel_casinhf.
695         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
696         arguments using __kernel_casinhl.
697         * math/libm-test.inc (cacosh_test): Add more tests.
698         * sysdeps/i386/fpu/libm-test-ulps: Update.
699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
700
701 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
702
703         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
704         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
705
706         * bench/Makefile (bench): Add sin and slowsin.
707         * benchtests/sin-inputs: New file.
708         * benchtests/slowsin-inputs: New file.
709         * benchtests/slowsin.c: New file.
710
711         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
712         (bench): Add slowexp and slowpow.
713         (exp-ITER): Increase iterations.
714         (pow-ITER): Likewise.
715         * benchtests/exp-inputs: Change input.
716         * benchtests/pow-inputs: Likewise.
717         * benchtests/slowexp-inputs: New file.
718         * benchtests/slowexp.c: New file.
719         * benchtests/slowpow-inputs: New file.
720         * benchtests/slowpow.c: New file.
721
722 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
723
724         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
725         instructions.
726         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
727         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
728         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
729         * benchtests/Makefile: Add rint benchtest.
730         * benchtests/rint-inputs: Input for rint benchtest.
731
732 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
733
734         * Versions.def (libm): Add GLIBC_2.18.
735         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
736         hidden libm prototypes.
737         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
738         * math/Makefile (libm-calls): Add s_issignaling.
739         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
740         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
741         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
742         declaration.
743         * math/math.h [__USE_GNU] (issignaling): New macro.
744         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
745         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
746         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
747         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
748         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
749         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
750         * manual/arith.texi (issignaling): New section.
751         * manual/libm-err-tab.pl (@all_functions): Update comment.
752         * math/gen-libm-test.pl (parse_args): Apply special handling for
753         issignaling.
754         * math/libm-test.inc (print_float, issignaling_test): New
755         functions.
756         (check_float_internal): Add issignaling checks.
757         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
758         default definition.
759         * sysdeps/powerpc/math-tests.h: New file.
760         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
761         tests.
762         * math/test-snan.c (TEST_FUNC): Likewise.
763
764 2013-03-30  David S. Miller  <davem@davemloft.net>
765
766         * po/de.po: Update from translation team.
767
768 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
769
770         [BZ #10357]
771         * math/k_casinh.c (__kernel_casinh): Handle arguments with
772         imaginary part less than 1.0 and real part less than 0.5
773         specially.
774         * math/k_casinhf.c (__kernel_casinhf): Likewise.
775         * math/k_casinhl.c (__kernel_casinhl): Likewise.
776         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
777         (cacos_test): Add more tests.
778         (casin_test): Likewise.
779         (casinh_test): Likewise.
780         * sysdeps/i386/fpu/libm-test-ulps: Update.
781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
782
783 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
784
785         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
786         ONE with its value.
787
788         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
789         (__pow_mp): Replace ONE and MONE with their values.
790         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
791         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
792         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
793         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
794         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
795         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
796
797         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
798
799         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
800         (__pow_mp): Replace ZERO and MZERO with their values.
801         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
802         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
803         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
804         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
805         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
806         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
807         (__sqr): Likewise.
808
809         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
810
811         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
812
813 2013-03-28  Roland McGrath  <roland@hack.frob.com>
814
815         * include/stdlib.h [!SHARED] (__call_tls_dtors):
816         Declare with __attribute__ ((weak)).
817         * stdlib/exit.c (__libc_atexit) [!SHARED]:
818         Call __call_tls_dtors only if it's not NULL.
819
820 2013-03-28  Roland McGrath  <roland@hack.frob.com>
821
822         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
823         didn't do it already, then set _dl_phdr and _dl_phnum based on the
824         magic __ehdr_start linker symbol if it's defined.
825         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
826         them up here if it was already done.
827
828         * elf/dl-support.c (_dl_phdr): Make pointer to const.
829         (_dl_aux_init): Use const in cast when setting it.
830         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
831         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
832         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
833
834         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
835         Declare them here.
836         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
837         * csu/libc-tls.c: Nor here.
838         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
839
840         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
841         (__libc_message): Never call vsyslog.
842
843 2013-03-28  Alan Modra  <amodra@gmail.com>
844
845         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
846         Define as empty.
847         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
848         Likewise.
849
850 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
851
852         [BZ #15214]
853         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
854         underflow.
855         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
856
857 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
858
859         [BZ #15304]
860         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
861         Don't add gid passed as argument.
862
863         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
864
865 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
866
867         [BZ #15307]
868         * math/k_casinh.c (__kernel_casinh): Handle arguments with
869         imaginary part between 1.0 and 1.5 and real part less than 0.5
870         specially.
871         * math/k_casinhf.c (__kernel_casinhf): Likewise.
872         * math/k_casinhl.c (__kernel_casinhl): Likewise.
873         * math/libm-test.inc (cacos_test): Add more tests.
874         (casin_test): Likewise.
875         (casinh_test): Likewise.
876         * sysdeps/i386/fpu/libm-test-ulps: Update.
877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
878
879 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
880
881         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
882         constants.
883         (norm): Likewise.
884         (denorm): Likewise.
885         (__dbl_mp): Likewise.
886         (add_magnitudes): Likewise.
887         (sub_magnitudes): Likewise.
888         (__add): Likewise.
889         (__sub): Likewise.
890         (__mul): Likewise.
891         (__sqr): Likewise.
892         (__inv): Likewise.
893         (__dvd): Likewise.
894
895         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
896         commented code.
897         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
898         (__dubcos): Likewise.
899         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
900         (__ieee754_acos): Likewise.
901         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
902         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
903         (__exp1): Likewise.
904         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
905         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
906         (log1): Likewise.
907         (my_log2): Likewise.
908         (checkint): Likewise.
909         * sysdeps/ieee754/dbl-64/e_remainder.c
910         (__ieee754_remainder): Likewise.
911         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
912         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
913         (bsloww): Likewise.
914         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
915
916         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
917         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
918         MANTISSA_STORE_T to store computations on mantissa.  Use
919         macros for rounding and division.
920         (denorm): Likewise.
921         (__dbl_mp): Likewise.
922         (add_magnitudes): Likewise.
923         (sub_magnitudes): Likewise.
924         (__mul): Likewise.
925         (__sqr): Likewise.
926         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
927         powers of two in terms of TWOPOW macro.
928         (mp_no): Make type of mantissa as MANTISSA_T.
929         [!RADIXI]: Define RADIXI.
930         [!TWO52]: Define TWO52.
931         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
932
933 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
934
935         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
936         llroundl symbol when building for PPC32.
937
938 2013-03-24  Mark H Weaver  <mhw@netris.org>
939
940         * manual/arith.texi (Normalization Functions): Fix prototypes for
941         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
942
943 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
944
945         [BZ #13889]
946         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
947         high value to check if expl overflow.
948         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
949         to check for underflow and overflow.
950         * math/libm-test.inc: Add exp test.
951
952 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
953
954         [BZ #11120]
955         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
956         with NOT_IN_libc.
957
958 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
959
960         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
961         symbol.
962
963 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
964
965         * math/gen-libm-test.pl (parse_args, special_functions): Properly
966         wrap blocks consisting of several statements.
967
968         * sysdeps/generic/math-tests.h: New file.
969         * sysdeps/i386/fpu/math-tests.h: Likewise.
970         * math/test-snan.c: Include it.
971         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
972
973 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
974
975         [BZ #15285]
976         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
977         (__ieee754_j0l): Do not improve calculations using cos of twice
978         input for inputs above LDBL_MAX / 2.0L.
979         (__ieee754_y0l): Likewise.
980         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
981         (__ieee754_j1l): Do not improve calculations using cos of twice
982         input for inputs above LDBL_MAX / 2.0L.
983         (__ieee754_y1l): Likewise.
984         * math/libm-test.inc (j0_test): Add another test.
985         (j1_test): Likewise.
986         (y0_test): Likewise.
987         (y1_test): Likewise.
988         * sysdeps/i386/fpu/libm-test-ulps: Update.
989
990 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
991
992         * Rules ($(objpfx)bench-%.c): Include code from a C source
993         file.
994
995 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
996
997         [BZ #15287]
998         * math/k_casinh.c (__kernel_casinh): Handle arguments with
999         imaginary part 1.0 and real part less than 0.5 specially.
1000         * math/k_casinhf.c (__kernel_casinhf): Likewise.
1001         * math/k_casinhl.c (__kernel_casinhl): Likewise.
1002         * math/libm-test.inc (cacos_test): Add more tests.
1003         (casin_test): Likewise.
1004         (casinh_test): Likewise.
1005         * sysdeps/i386/fpu/libm-test-ulps: Update.
1006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1007
1008 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1009
1010         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
1011         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
1012
1013 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
1014
1015         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
1016         * config.make.in (config-cflags-sse4): Remove variable.
1017         (config-cflags-avx): Likewise.
1018         (config-cflags-sse2avx): Likewise.
1019         (config-cflags-novzeroupper): Likewise.
1020         (config-asflags-i686): Likewise.
1021         (have-mfma4): Likewise.
1022         (have-as-vis3): Likewise.
1023         (MIG): Likewise.
1024         * configure.in (MIG): Do not AC_SUBST.
1025         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
1026         (libc_cv_cc_sse4): Do not AC_SUBST.
1027         (libc_cv_cc_avx): Likewise.
1028         (libc_cv_cc_sse2avx): Likewise.
1029         (libc_cv_cc_novzeroupper): Likewise.
1030         (libc_cv_cc_fma4): Likewise.
1031         (libc_cv_as_i686): Likewise.
1032         (libc_cv_sparc_as_vis3): Likewise.
1033         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
1034         LIBC_CONFIG_VAR.
1035         (config-asflags-i686): Likewise.
1036         (config-cflags-avx): Likewise.
1037         (config-cflags-sse2avx): Likewise.
1038         (have-mfma4): Likewise.
1039         (config-cflags-novzeroupper): Likewise.
1040         * sysdeps/mach/configure.in (MIG): Likewise.
1041         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
1042         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
1043         LIBC_CONFIG_VAR.
1044         (config-cflags-avx): Likewise.
1045         (config-cflags-sse2avx): Likewise.
1046         (have-mfma4): Likewise.
1047         (config-cflags-novzeroupper): Likewise.
1048         * configure: Regenerated.
1049         * sysdeps/i386/configure: Likewise.
1050         * sysdeps/mach/configure: Likewise.
1051         * sysdeps/sparc/configure: Likewise.
1052         * sysdeps/x86_64/configure: Likewise.
1053
1054 2013-03-20  Roland McGrath  <roland@hack.frob.com>
1055
1056         [BZ #14812]
1057         * locale/programs/localedef.c (options): Put N_ translation marker
1058         on argument names, not just descriptions.
1059
1060 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
1061
1062         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
1063
1064 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
1065
1066         [BZ #14176]
1067         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
1068
1069 2013-03-19  Roland McGrath  <roland@hack.frob.com>
1070
1071         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
1072         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
1073         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
1074         [!BEFORE_ABORT] (before_abort): New function.
1075         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
1076         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
1077         (writev_for_fatal): New function.
1078         (WRITEV_FOR_FATAL): New macro; call that.
1079         (backtrace_and_maps): New function.
1080         (BEFORE_ABORT): New macro; call that.
1081         (struct str_list): Type removed.
1082         (__libc_message, __libc_fatal): Functions removed.
1083         Include <sysdeps/posix/libc_fatal.c> instead.
1084
1085 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
1086
1087         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
1088         constants.
1089         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
1090         double constants.
1091
1092 2013-03-19  Andreas Schwab  <schwab@suse.de>
1093
1094         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
1095         * sysdeps/gnu/configure: Regenerate.
1096
1097         * configure.in: Substitute libc_cv_rtlddir.
1098         * configure: Regenerate.
1099         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
1100         * Makeconfig (rtlddir, inst_rtlddir): New variables.
1101         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
1102         * elf/Makefile (install-others, CFLAGS-interp.c)
1103         (ldso_install, common-ldd-rewrite): Likewise.
1104         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
1105         $(inst_slibdir)/$(rtld-installed-name).
1106         * scripts/rellns-sh: Add -p option.
1107         * Makerules (make-shlib-link): Use rellns-sh to get relative name
1108         for source.
1109
1110 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1111
1112         * manual/nptl.texi: Renamed to ...
1113         * manual/threads.texi: ... this.
1114         * manual/Makefile (chapters): Update.
1115
1116 2013-03-18  Roland McGrath  <roland@hack.frob.com>
1117
1118         [BZ #14812]
1119         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
1120         on argument names, not just descriptions.
1121         * malloc/memusagestat.c (options): Likewise.
1122         * nss/getent.c (options): Likewise.
1123
1124 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
1125
1126         [BZ #14812]
1127         * iconv/iconv_prog.c (options): Put N_ translation marker
1128         on argument names, not just descriptions.
1129         * iconv/iconvconfig.c (options): Likewise.
1130
1131 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
1132
1133         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
1134         implementation which is faster on all x86_64 architectures.
1135         Tested on AMD, Intel Nehalem, SNB, IVB.
1136         * sysdeps/x86_64/strnlen.S: Likewise.
1137
1138         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
1139         Remove all multiarch strlen and strnlen versions.
1140         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
1141         Remove strlen and strnlen related parts.
1142
1143         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
1144         Inline strlen part.
1145         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1146
1147         * sysdeps/x86_64/multiarch/strlen.S: Remove.
1148         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
1149         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
1150         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
1151         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1152         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
1153
1154 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
1155
1156         * manual/memory.texi (Malloc Tunable Parameters):
1157         Sort parameters alphabetically. Add comments for missing entries.
1158
1159 2013-03-17  David S. Miller  <davem@davemloft.net>
1160
1161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1162
1163 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
1164
1165         [BZ #15283]
1166         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
1167         for arguments at most half maximum finite value.
1168         * math/libm-test.inc (j0_test): Add more tests.
1169         (j1_test): Likewise.
1170         (y0_test): Likewise.
1171         (y1_test): Likewise.
1172         * sysdeps/i386/fpu/libm-test-ulps: Update.
1173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1174
1175         [BZ #14155]
1176         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
1177         1 / x and functions P and Q for arguments above 0x1p256L.
1178         (__ieee754_y0l): Likewise.
1179         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1180         (__ieee754_y1l): Likewise.
1181         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
1182         (j1_test): Likewise.
1183         (y0_test): Likewise.
1184         (y1_test): Likewise.
1185
1186 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
1187
1188         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
1189         variable.
1190
1191 2013-03-15  Roland McGrath  <roland@hack.frob.com>
1192
1193         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
1194         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
1195         zero since it's initialized to EXEC_PAGESIZE.
1196
1197         * sysdeps/unix/sysv/linux/ldsodefs.h
1198         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
1199         * sysdeps/generic/ldsodefs.h: ... here.
1200
1201 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
1202
1203         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
1204
1205         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
1206         math/test-snan.c.
1207         * math/test-snan.c: Renamed from
1208         sysdeps/powerpc/fpu/test-powerpc-snan.c.
1209         * math/Makefile (tests): Add test-snan.
1210         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
1211         test-powerpc-snan.
1212
1213         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
1214         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
1215         functions.
1216         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
1217         __builtin_nan family of functions.
1218         * math/libm-test.inc (initialize): Initialize qnan_value with
1219         __builtin_nan family of functions.
1220         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
1221         Remove variables.
1222         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
1223         Remove functions.
1224         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
1225         storage class.  Initialize qNaN_var and sNaN_var with
1226         __builtin_nan and __builtin_nans families of functions,
1227         respectively.
1228
1229         * math/libm-test.inc (acosh_test): Also test with qNaN input.
1230         (sqrt_test): Remove duplicate test with qNaN input.
1231         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
1232         (round_test, signbit_test, significand_test): Note missing +/-Inf
1233         as well as qNaN tests.
1234
1235         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
1236         qNaN_var.  Fix a few strings, too.
1237         * math/libm-test.inc (nan_value): Rename to qnan_value.
1238         * math/gen-libm-test.pl (%beautify): Adjust to that.
1239         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
1240         * math/test-misc.c (main): Likewise.
1241         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
1242         to __qnan_bytes, and __qnan_union, respectively.
1243         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
1244         Likewise.
1245         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
1246         and lqnanval, respectively.
1247         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
1248         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
1249         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
1250         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
1251
1252         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
1253         * math/test-misc.c (main) [__x86_64__]: Enable test for long
1254         doubles.
1255
1256         * math/test-misc.c (main): Fix copy'n'pastos.
1257         * misc/tst-efgcvt.c (special): Likewise.
1258
1259         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
1260         Remove declarations.
1261
1262 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1263
1264         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
1265         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
1266         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
1267         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
1268
1269 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1270
1271         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
1272         macro to return vdso values correctly in IFUNC implementations.
1273         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
1274         Optimization by using IFUNC.
1275
1276 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1277             Richard Henderson  <rth@redhat.com>
1278             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1279
1280         * Makefile.in (bench): New target.
1281         * NEWS: Mention the benchmark framework.
1282         * Rules (bench): Likewise.
1283         (binaries-bench): Generate binaries for functions to
1284         benchmark.
1285         * benchtests/Makefile: New makefile for benchmark tests.
1286         * benchtests/bench-skeleton.c: New skeleton file for benchmark
1287         programs.
1288         * benchtests/exp-inputs: New input file for EXP function.
1289         * benchtests/pow-inputs: New input file for POW function.
1290         * scripts/bench.pl: New script to generate source files for
1291         benchmark programs.
1292
1293 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1294
1295         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
1296         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
1297         computations on mantissa.  Use macros for rounding and
1298         division.
1299         (denorm): Likewise.
1300         (__dbl_mp): Likewise.
1301         (add_magnitudes): Likewise.
1302         (sub_magnitudes): Likewise.
1303         (__mul): Likewise.
1304         (__sqr): Likewise.
1305         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
1306         powers of two in terms of TWOPOW macro.
1307         (mp_no): Make type of mantissa as MANTISSA_T.
1308         [!RADIXI]: Define RADIXI.
1309         [!TWO52]: Define TWO52.
1310         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
1311
1312         * manual/nptl.texi (cindex): Modify threads to pthreads.
1313
1314 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
1315
1316         * sysdeps/x86_64/preconfigure: Regenerated.
1317
1318 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
1319
1320         [BZ #14155]
1321         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
1322         0x1p28 and above.
1323         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
1324         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
1325         0x1p28 and above.
1326         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
1327         * math/libm-test.inc (j0_test): Do not allow one spurious
1328         underflow exception.
1329         (y1_test): Likewise.
1330
1331 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1332
1333         * manual/Makefile (chapters): Add nptl.
1334         * manual/debug.texi (Debugging Support): Add link to Threads
1335         chapter.
1336         * manual/nptl.texi: New file.
1337
1338         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
1339
1340 2013-03-14  Petr Baudis  <pasky@ucw.cz>
1341
1342         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
1343         for non-NULL pointer before the memory validity test. Pointed
1344         out by Holger Brunck <holger.brunck@keymile.com>.
1345
1346 2013-03-13  Andreas Schwab  <schwab@suse.de>
1347
1348         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
1349         instead of .os.
1350
1351 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
1352
1353         * timezone/zic.c: Update from tzcode 2013b.
1354
1355 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
1356
1357         * manual/install.texi (Configuring and compiling):
1358         Mention i686 and i586.
1359         * INSTALL: Regenerate.
1360
1361 2013-03-12  Roland McGrath  <roland@hack.frob.com>
1362
1363         * sysdeps/init_array/elf-init.c: New file.
1364         * csu/elf-init.c
1365         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
1366         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
1367
1368         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
1369         __gmon_start__ as global, but as static with a .preinit_array pointer.
1370         * sysdeps/init_array/gmon-start.c: New file.  Use that.
1371         * sysdeps/init_array/crti.S: New file, empty except for comments.
1372         * sysdeps/init_array/crtn.S: Likewise.
1373
1374 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
1375
1376         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
1377         definining bcopy.
1378         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1379         Remove Prefer_SSE_for_memop.
1380         * sysdeps/x86_64/multiarch/init-arch.h: Remove
1381         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
1382         HAS_PREFER_SSE_FOR_MEMOP.
1383         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1384         memset-x86-64.
1385         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1386         Remove bzero, memset ifunc support.
1387         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
1388         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
1389         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1390         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1391
1392 2013-03-11  Andreas Schwab  <schwab@suse.de>
1393
1394         [BZ #15234]
1395         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
1396         by SHLIB_COMPAT.
1397         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
1398         (GLIBC_2.16): Remove pthread_atfork.
1399
1400 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
1401
1402         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
1403         (ptestcases.h): Likewise.
1404
1405 2013-03-08  Roland McGrath  <roland@hack.frob.com>
1406
1407         * Makeconfig ($(common-objpfx)config.status): Depend on
1408         sysdeps/*/preconfigure{,.in} too.
1409
1410 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
1411
1412         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
1413         (__free_hook): Use void * instead of __malloc_ptr_t.
1414         (__malloc_hook): Likewise.
1415         (__realloc_hook): Likewise.
1416         (__memalign_hook): Likewise.
1417         (__after_morecore_hook): Likewise.
1418         * malloc/arena.c (save_malloc_hook): Likewise.
1419         (save_free_hook): Likewise.
1420         * malloc/hooks.c (malloc_hook_ini): Likewise.
1421         (realloc_hook_ini): Likewise.
1422         (memalign_hook_ini): Likewise.
1423         * malloc/malloc.c (malloc_hook_ini): Likewise.
1424         (realloc_hook_ini): Likewise.
1425         (memalign_hook_ini): Likewise.
1426         (__free_hook): Likewise.
1427         (__malloc_hook): Likewise.
1428         (__realloc_hook): Likewise.
1429         (__memalign_hook): Likewise.
1430         (__libc_malloc): Likewise.
1431         (__libc_free): Likewise.
1432         (__libc_realloc): Likewise.
1433         (__libc_memalign): Likewise.
1434         (__libc_valloc): Likewise.
1435         (__libc_pvalloc): Likewise.
1436         (__libc_calloc): Likewise.
1437         (__posix_memalign): Likewise.
1438         * malloc/morecore.c (__sbrk): Likewise.
1439         (__default_morecore): Likewise.
1440
1441         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
1442
1443         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
1444         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
1445         __malloc_ptrdiff_t.
1446
1447         * malloc/malloc.h (__malloc_size_t): Remove macro.
1448         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
1449         __malloc_size_t.
1450         (old_memalign_hook): Likewise.
1451         (old_realloc_hook): Likewise.
1452         (struct hdr): Likewise.
1453         (flood): Likewise.
1454         (mallochook): Likewise.
1455         (memalignhook): Likewise.
1456         (reallochook): Likewise.
1457         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
1458         (tr_old_realloc_hook): Likewise.
1459         (tr_old_memalign_hook): Likewise.
1460         (tr_mallochook): Likewise.
1461         (tr_reallochook): Likewise.
1462         (tr_memalignhook): Likewise.
1463
1464 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1465
1466         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
1467         default_ldbl_pack and using as default implementation.
1468         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
1469         implementation.
1470         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
1471         redundant definition.
1472         (ldbl_insert_mantissa): Likewise.
1473         (ldbl_canonicalize): Likewise.
1474         (ldbl_nearbyint): Likewise.
1475         (ldbl_pack): Rename to ldbl_pack_ppc.
1476         (ldbl_unpack): Rename to ldbl_unpack_ppc.
1477         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
1478         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
1479
1480 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
1481
1482         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
1483         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
1484         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
1485         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
1486         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
1487         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
1488         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
1489         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
1490
1491 2013-03-07  Andreas Jaeger  <aj@suse.de>
1492
1493         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1494         bits/mman-linux.h.
1495
1496 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1497
1498         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
1499         Include mpa.h and declare __MPEXP.
1500         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
1501         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1502         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1503         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
1504         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1505         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
1506         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
1507
1508         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
1509         (__slowpow): Use long double EXPL and LOGL functions to
1510         compute POW.
1511         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
1512         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1513         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
1514         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
1515         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
1516         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
1517
1518         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
1519         intermediate variable to calculate exponent.
1520         (__sqr): Likewise.
1521         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1522         Likewise.
1523         (__sqr): Likewise.
1524
1525         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
1526         [!NO__SQR]: Define __sqr.
1527         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
1528         and NO__SQR.  Remove all code except __mul and __sqr.  Include
1529         sysdeps/ieee754/dbl-64/mpa.c.
1530         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
1531
1532         [BZ #12723]
1533         * posix/Makefile (tests): Add tst-pathconf.
1534         * posix/tst-pathconf.c: New test case.
1535         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
1536         _PC_PIPE_BUF.
1537         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
1538
1539 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
1540
1541         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
1542
1543 2013-03-06  Andreas Jaeger  <aj@suse.de>
1544
1545         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
1546         definition via __MAP_ANONYMOUS.
1547
1548         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
1549         it's not part of Linux headers.
1550
1551         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
1552         (MAP_HUGE_MASK): Define.
1553
1554         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1555         Define.
1556         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1557         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1558         Define.
1559         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1560         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
1561         Define.
1562         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1563         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
1564         Define.
1565         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
1566
1567         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
1568         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
1569         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
1570         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
1571         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
1572         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
1573
1574         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
1575         Handle f2fs.
1576
1577         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1578         Handle f2fs and efivarfs.
1579
1580         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
1581         f2fs.
1582
1583         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
1584         (EFIVARFS_MAGIC): Add.
1585         (F2FS_LINK_MAX): Add.
1586
1587 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1588
1589         * stdio-common/vfprintf.c: Replace __builtin_expect with
1590         __glibc_unlikely.
1591
1592 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
1593
1594         [BZ #13550]
1595         * sysdeps/generic/bp-sym.h: Remove file.
1596         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
1597         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
1598         <bp-sym.h> and <bp-asm.h>.
1599         (__longjmp): Don't use BP_SYM.
1600         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
1601         and <bp-asm.h>.
1602         (memcpy): Don't use BP_SYM.
1603         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
1604         <bp-sym.h> and <bp-asm.h>.
1605         (memcpy): Don't use BP_SYM.
1606         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
1607         <bp-asm.h>.
1608         (memcpy): Don't use BP_SYM.
1609         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
1610         <bp-asm.h>.
1611         (memset): Don't use BP_SYM.
1612         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1613         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1614         (__bzero): Don't use BP_SYM.
1615         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1616         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1617         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
1618         <bp-sym.h> and <bp-asm.h>.
1619         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1620         pointers.
1621         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
1622         <bp-sym.h> and <bp-asm.h>.
1623         (memcpy): Don't use BP_SYM.
1624         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
1625         <bp-sym.h> and <bp-asm.h>.
1626         (memset): Don't use BP_SYM.
1627         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1628         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1629         (__bzero): Don't use BP_SYM.
1630         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1631         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1632         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
1633         <bp-sym.h> and <bp-asm.h>.
1634         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1635         pointers.
1636         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
1637         <bp-sym.h> and <bp-asm.h>.
1638         (memcpy): Don't use BP_SYM.
1639         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
1640         <bp-sym.h> and <bp-asm.h>.
1641         (memset): Don't use BP_SYM.
1642         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1643         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1644         (__bzero): Don't use BP_SYM.
1645         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1646         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1647         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
1648         <bp-sym.h> and <bp-asm.h>.
1649         (__memchr): Don't use BP_SYM.
1650         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
1651         <bp-sym.h> and <bp-asm.h>.
1652         (memcmp): Don't use BP_SYM.  Remove comment about bounded
1653         pointers.
1654         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
1655         <bp-sym.h> and <bp-asm.h>.
1656         (memcpy): Don't use BP_SYM.
1657         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
1658         <bp-sym.h> and <bp-asm.h>.
1659         (__mempcpy): Don't use BP_SYM.
1660         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
1661         <bp-sym.h> and <bp-asm.h>.
1662         (__memrchr): Don't use BP_SYM.
1663         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
1664         <bp-sym.h> and <bp-asm.h>.
1665         (memset): Don't use BP_SYM.
1666         (__bzero): Likewise.
1667         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
1668         <bp-sym.h> and <bp-asm.h>.
1669         (__rawmemchr): Don't use BP_SYM.
1670         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
1671         <bp-sym.h> and <bp-asm.h>.
1672         (__STRCMP): Don't use BP_SYM.
1673         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
1674         <bp-sym.h> and <bp-asm.h>.
1675         (strchr): Don't use BP_SYM.
1676         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
1677         <bp-sym.h> and <bp-asm.h>.
1678         (__strchrnul): Don't use BP_SYM.
1679         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
1680         <bp-sym.h> and <bp-asm.h>.
1681         (strlen): Don't use BP_SYM.
1682         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
1683         <bp-sym.h> and <bp-asm.h>.
1684         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1685         pointers.
1686         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
1687         <bp-sym.h> and <bp-asm.h>.
1688         (__strnlen): Don't use BP_SYM.
1689         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
1690         <bp-sym.h> and <bp-asm.h>.
1691         (__GI__setjmp): Don't use BP_SYM.
1692         (_setjmp): Likewise.
1693         (__sigsetjmp): Likewise.
1694         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
1695         (L(start_addresses)): Don't use BP_SYM.
1696         (_start): Likewise.
1697         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
1698         <bp-asm.h>.
1699         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
1700         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
1701         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1702         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1703         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
1704         <bp-asm.h>.
1705         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
1706         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
1707         about bounded pointers.
1708         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1709         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1710         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
1711         <bp-asm.h>.
1712         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1713         about bounded pointers.  Remove GKM FIXME comments.
1714         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1715         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
1716         <bp-asm.h>.
1717         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
1718         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
1719         Remove GKM FIXME comments.
1720         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1721         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1722         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
1723         <bp-asm.h>.
1724         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
1725         about bounded pointers.  Remove GKM FIXME comment.
1726         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
1727         and <bp-asm.h>.
1728         (strncmp): Don't use BP_SYM.  Remove comment about bounded
1729         pointers.
1730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
1731         <bp-sym.h> and <bp-asm.h>.
1732         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
1733         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
1734         <bp-sym.h> and <bp-asm.h>.
1735         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
1736         comment.
1737
1738 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1739
1740         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
1741         call free(NULL).
1742
1743 2013-03-05  David S. Miller  <davem@davemloft.net>
1744
1745         * po/es.po: Update from translation team.
1746
1747 2013-03-05  Andreas Jaeger  <aj@suse.de>
1748
1749         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
1750         <bits/mman-linux.h>.
1751         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1752         is fine.
1753         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
1754         <bits/mman-linux.h> to end of file.
1755         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1756         is fine.
1757         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
1758         <bits/mman-linux.h> to end of file.
1759         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
1760         is fine.
1761         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
1762         <bits/mman-linux.h> to end of file.
1763
1764         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
1765         (MCL_CURRENT, MCL_FUTURE): Define here.
1766
1767 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1768
1769         [BZ #15232]
1770         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
1771         attribute_hidden.
1772         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1773
1774 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1775
1776         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
1777         fourth parameter needed for rt_sigprocmask syscall.
1778         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
1779         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1780         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
1781         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1782         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1783         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
1784
1785 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
1786
1787         [BZ #13550]
1788         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
1789         comment about bounded pointers.
1790         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
1791         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
1792
1793 2013-03-04  Andreas Jaeger  <aj@suse.de>
1794
1795         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
1796         common definitions.
1797
1798         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
1799         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
1800         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
1801         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1802         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
1803         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1804
1805 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1806
1807         [BZ #15055]
1808         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
1809         __ieee754_sqrl instead of __sqrl.
1810
1811 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
1812
1813         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
1814         * sysdeps/powerpc/fpu_control.h: ... here.
1815         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
1816         * sysdeps/powerpc/bits/fenvinline.h: ... here.
1817         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
1818         * sysdeps/powerpc/bits/mathinline.h: ... here.
1819
1820 2013-03-01  Roland McGrath  <roland@hack.frob.com>
1821
1822         * elf/dl-hwcaps.c (_dl_important_hwcaps):
1823         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
1824         to just [NEED_DL_SYSINFO_DSO].
1825         * elf/dl-support.c: Likewise.
1826         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
1827         * elf/rtld.c (dl_main): Likewise.
1828         * elf/setup-vdso.h (setup_vdso): Likewise.
1829         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
1830         * sysdeps/unix/sysv/linux/dl-sysdep.c
1831         (_dl_discover_osversion): Likewise.
1832
1833 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
1834
1835         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
1836         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1837
1838 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
1839
1840         * NEWS: Mention libm performance improvements and non-x86 PI
1841         futex support.
1842
1843         * csu/libc-start.c (__pthread_initialize_minimal): Change
1844         function arguments.
1845         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
1846
1847 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
1848
1849         [BZ #13550]
1850         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
1851         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
1852         <bp-sym.h> and <bp-asm.h>.
1853         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1854         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
1855         and <bp-asm.h>.
1856         (memcpy): Don't use BP_SYM.
1857         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
1858         <bp-asm.h>.
1859         (__mpn_add_n): Don't use BP_SYM.
1860         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
1861         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
1862         and <bp-asm.h>.
1863         (__mpn_addmul_1): Don't use BP_SYM.
1864         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1865         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
1866         <bp-sym.h>.
1867         (_setjmp): Don't use BP_SYM.
1868         (__novmx_setjmp): Likewise.
1869         (__GI__setjmp): Likewise.
1870         (__vmx_setjmp): Likewise.
1871         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
1872         <bp-sym.h>.
1873         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
1874         (__bzero): Don't use BP_SYM.
1875         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
1876         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
1877         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
1878         <bp-sym.h> and <bp-asm.h>.
1879         (memcpy): Don't use BP_SYM.
1880         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
1881         <bp-sym.h> and <bp-asm.h>.
1882         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1883         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
1884         <bp-sym.h> and <bp-asm.h>.
1885         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
1886         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
1887         <bp-asm.h>.
1888         (__mpn_lshift): Don't use BP_SYM.
1889         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1890         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
1891         <bp-asm.h>.
1892         (memset): Don't use BP_SYM.
1893         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
1894         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
1895         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
1896         <bp-asm.h>.
1897         (__mpn_mul_1): Don't use BP_SYM.
1898         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1899         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
1900         <bp-sym.h> and <bp-asm.h>.
1901         (memcmp): Don't use BP_SYM.
1902         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
1903         <bp-sym.h> and <bp-asm.h>.
1904         (memcpy): Don't use BP_SYM.
1905         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
1906         <bp-sym.h> and <bp-asm.h>.
1907         (memset): Don't use BP_SYM.
1908         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
1909         <bp-sym.h> and <bp-asm.h>.
1910         (strncmp): Don't use BP_SYM.
1911         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
1912         <bp-sym.h> and <bp-asm.h>.
1913         (memcpy): Don't use BP_SYM.
1914         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
1915         <bp-sym.h> and <bp-asm.h>.
1916         (memset): Don't use BP_SYM.
1917         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
1918         <bp-sym.h> and <bp-asm.h>.
1919         (__memchr): Don't use BP_SYM.
1920         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
1921         <bp-sym.h> and <bp-asm.h>.
1922         (memcmp): Don't use BP_SYM.
1923         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
1924         <bp-sym.h> and <bp-asm.h>.
1925         (memcpy): Don't use BP_SYM.
1926         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
1927         <bp-sym.h> and <bp-asm.h>.
1928         (__mempcpy): Don't use BP_SYM.
1929         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
1930         <bp-sym.h> and <bp-asm.h>.
1931         (__memrchr): Don't use BP_SYM.
1932         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
1933         <bp-sym.h> and <bp-asm.h>.
1934         (memset): Don't use BP_SYM.
1935         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
1936         <bp-sym.h> and <bp-asm.h>.
1937         (__rawmemchr): Don't use BP_SYM.
1938         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
1939         <bp-sym.h> and <bp-asm.h>.
1940         (__STRCMP): Don't use BP_SYM.
1941         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
1942         <bp-sym.h> and <bp-asm.h>.
1943         (strchr): Don't use BP_SYM.
1944         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
1945         <bp-sym.h> and <bp-asm.h>.
1946         (__strchrnul): Don't use BP_SYM.
1947         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
1948         <bp-sym.h> and <bp-asm.h>.
1949         (strlen): Don't use BP_SYM.
1950         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
1951         <bp-sym.h> and <bp-asm.h>.
1952         (strncmp): Don't use BP_SYM.
1953         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
1954         <bp-sym.h> and <bp-asm.h>.
1955         (__strnlen): Don't use BP_SYM.
1956         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
1957         <bp-asm.h>.
1958         (__mpn_rshift): Don't use BP_SYM.
1959         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1960         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
1961         <bp-sym.h> and <bp-asm.h>.
1962         (__sigsetjmp): Don't use BP_SYM.
1963         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
1964         (L(start_addresses)): Don't use BP_SYM.
1965         (_start): Likewise.
1966         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
1967         <bp-asm.h>.
1968         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
1969         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1970         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1971         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
1972         <bp-asm.h>.
1973         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
1974         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1975         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1976         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
1977         <bp-asm.h>.
1978         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
1979         comments.
1980         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1981         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
1982         <bp-asm.h>.
1983         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
1984         FIXME comments.
1985         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1986         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
1987         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
1988         <bp-asm.h>.
1989         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
1990         comment.
1991         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
1992         and <bp-asm.h>.
1993         (strncmp): Don't use BP_SYM,
1994         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
1995         <bp-asm.h>.
1996         (__mpn_sub_n): Don't use BP_SYM.
1997         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1998         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
1999         and <bp-asm.h>.
2000         (__mpn_submul_1): Don't use BP_SYM.
2001         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
2003         <bp-sym.h> and <bp-asm.h>.
2004         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
2005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
2006         <bp-sym.h> and <bp-asm.h>.
2007         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
2008         comment.
2009
2010 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2011
2012         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
2013         Use ZK to minimize writes to Z.
2014         (sub_magnitudes): Simplify code a bit.
2015         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
2016         Use ZK to minimize writes to Z.
2017         (sub_magnitudes): Simplify code a bit.
2018
2019 2013-02-27  Roland McGrath  <roland@hack.frob.com>
2020
2021         * csu/gmon-start.c: Add special exception to license text.
2022
2023 2013-02-27  Richard Henderson  <rth@redhat.com>
2024
2025         * scripts/config.guess: Update from config.git.
2026         * scripts/config.sub: Likewise.
2027
2028 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2029
2030         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
2031
2032         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
2033
2034         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
2035
2036         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
2037
2038         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
2039
2040 2013-02-26  Roland McGrath  <roland@hack.frob.com>
2041
2042         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
2043         [$(build-shared = yes].
2044
2045 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2046
2047         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
2048         (__mul): Reduce iterations for calculating mantissa.
2049
2050         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
2051         MPTWO.
2052         (__mpranred): Likewise.
2053
2054         [BZ #15160]
2055         * malloc/memusagestat.c (main): Draw graphs for heap and stack
2056         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2057
2058 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2059
2060         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
2061         Define __attribute__.
2062
2063 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2064
2065         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
2066         unused.
2067         * posix/regex_internal.h (__attribute): Remove.
2068         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
2069         (re_string_context_at): Likewise.
2070         (bitset_not): Use __attribute__ and mark function as possibly
2071         unused.
2072         (bitset_merge): Likewise.
2073         (bitset_mask): Likewise.
2074         (re_string_char_size_at): Likewise.
2075         (re_string_wchar_at): Likewise.
2076         (re_string_elem_size_at): Likewise.
2077
2078 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2079
2080         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
2081         code.
2082         (cc32): Likewise.
2083
2084         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
2085         (__acr): Likewise.
2086         (__cpy): Likewise.
2087         (norm): Likewise.
2088         (denorm): Likewise.
2089         (__dbl_mp): Likewise.
2090         (add_magnitudes): Likewise.
2091         (sub_magnitudes): Likewise.
2092         (__mul): Likewise.
2093         (__inv): Likewise.
2094
2095         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
2096         style.
2097
2098         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
2099         style.
2100
2101         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
2102         code.
2103
2104         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
2105         up changes with default code.
2106         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
2107         Likewise.
2108
2109 2013-02-24  Allan McRae  <allan@archlinux.org>
2110
2111         * manual/socket.texi (The Internet Namespace): Order menu items
2112         to match that in the file.
2113
2114         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
2115         node listing of the info page menu.
2116
2117 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
2118
2119         [BZ #13550]
2120         * sysdeps/i386/bp-asm.h: Remove file.
2121         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2122         (PARMS): Do not use macros from bp-asm.h.
2123         (S1): Likewise.
2124         (S2): Likewise.
2125         (SIZE): Likewise.
2126         (__mpn_add_n): Do not use BP_SYM
2127         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
2128         "bp-asm.h".
2129         (PARMS): Do not use macros from bp-asm.h.
2130         (S1): Likewise.
2131         (SIZE): Likewise.
2132         (__mpn_addmul_1): Do not use BP_SYM
2133         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
2134         "bp-asm.h".
2135         (PARMS): Do not use macros from bp-asm.h.
2136         (SIGMSK): Likewise.
2137         (_setjmp): Likewise.  Do not use BP_SYM.
2138         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
2139         "bp-asm.h".
2140         (PARMS): Do not use macros from bp-asm.h.
2141         (SIGMSK): Likewise.
2142         (setjmp): Likewise.  Do not use BP_SYM.
2143         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
2144         "bp-asm.h".
2145         (PARMS): Do not use macros from bp-asm.h.
2146         (__frexp): Do not use BP_SYM.
2147         (frexp): Likewise.
2148         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
2149         "bp-asm.h".
2150         (PARMS): Do not use macros from bp-asm.h.
2151         (__frexpf): Do not use BP_SYM.
2152         (frexpf): Likewise.
2153         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
2154         "bp-asm.h".
2155         (PARMS): Do not use macros from bp-asm.h.
2156         (__frexpl): Do not use BP_SYM.
2157         (frexpl): Likewise.
2158         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
2159         "bp-asm.h".
2160         (PARMS): Do not use macros from bp-asm.h.
2161         (__remquo): Do not use BP_SYM.
2162         (remquo): Likewise.
2163         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
2164         "bp-asm.h".
2165         (PARMS): Do not use macros from bp-asm.h.
2166         (__remquof): Do not use BP_SYM.
2167         (remquof): Likewise.
2168         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
2169         "bp-asm.h".
2170         (PARMS): Do not use macros from bp-asm.h.
2171         (__remquol): Do not use BP_SYM.
2172         (remquol): Likewise.
2173         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
2174         "bp-asm.h".
2175         (PARMS): Do not use macros from bp-asm.h.
2176         (DEST): Likewise.
2177         (SRC): Likewise.
2178         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
2179         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
2180         "bp-asm.h".
2181         (PARMS): Do not use macros from bp-asm.h.
2182         (strlen): Do not use BP_SYM.
2183         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
2184         "bp-asm.h".
2185         (PARMS): Do not use macros from bp-asm.h.
2186         (S1): Likewise.
2187         (S2): Likewise.
2188         (SIZE): Likewise.
2189         (__mpn_add_n): Do not use BP_SYM.
2190         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
2191         "bp-asm.h".
2192         (PARMS): Do not use macros from bp-asm.h.
2193         (S1): Likewise.
2194         (SIZE): Likewise.
2195         (__mpn_addmul_1): Do not use BP_SYM.
2196         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
2197         weak_alias.
2198         (bzero): Likewise.
2199         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
2200         "bp-asm.h".
2201         (PARMS): Do not use macros from bp-asm.h.
2202         (S): Likewise.
2203         (SIZE): Likewise.
2204         (__mpn_lshift): Do not use BP_SYM.
2205         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
2206         "bp-asm.h".
2207         (PARMS): Do not use macros from bp-asm.h.
2208         (DEST): Likewise.
2209         (SRC): Likewise.
2210         (LEN): Likewise.
2211         (memcpy): Likewise.  Do not use BP_SYM.
2212         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
2213         libc_hidden_def and weak_alias.
2214         (mempcpy): Do not use BP_SYM in weak_alias.
2215         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
2216         "bp-asm.h".
2217         (PARMS): Do not use macros from bp-asm.h.
2218         (DEST): Likewise.
2219         (LEN): Likewise.
2220         [!BZERO_P] (CHR): Likewise.
2221         (memset): Likewise.  Do not use BP_SYM.
2222         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
2223         "bp-asm.h".
2224         (PARMS): Do not use macros from bp-asm.h.
2225         (S1): Likewise.
2226         (SIZE): Likewise.
2227         (__mpn_mul_1): Do not use BP_SYM.
2228         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
2229         "bp-asm.h".
2230         (PARMS): Do not use macros from bp-asm.h.
2231         (S): Likewise.
2232         (SIZE): Likewise.
2233         (__mpn_rshift): Do not use BP_SYM.
2234         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
2235         "bp-asm.h".
2236         (PARMS): Do not use macros from bp-asm.h.
2237         (STR): Likewise.
2238         (CHR): Likewise.
2239         (strchr): Likewise.  Do not use BP_SYM.
2240         (index): Do not use BP_SYM in weak_alias.
2241         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
2242         "bp-asm.h".
2243         (PARMS): Do not use macros from bp-asm.h.
2244         (DEST): Likewise.
2245         (SRC): Likewise.
2246         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
2247         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
2248         "bp-asm.h".
2249         (PARMS): Do not use macros from bp-asm.h.
2250         (strlen): Do not use BP_SYM.
2251         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
2252         "bp-asm.h".
2253         (PARMS): Do not use macros from bp-asm.h.
2254         (S1): Likewise.
2255         (S2): Likewise.
2256         (SIZE): Likewise.
2257         (__mpn_sub_n): Do not use BP_SYM.
2258         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
2259         "bp-asm.h".
2260         (PARMS): Do not use macros from bp-asm.h.
2261         (S1): Likewise.
2262         (SIZE): Likewise.
2263         (__mpn_submul_1): Do not use BP_SYM.
2264         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
2265         "bp-asm.h".
2266         (PARMS): Do not use macros from bp-asm.h.
2267         (S1): Likewise.
2268         (S2): Likewise.
2269         (SIZE): Likewise.
2270         (__mpn_add_n): Do not use BP_SYM.
2271         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
2272         weak_alias.
2273         (bzero): Likewise.
2274         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
2275         "bp-asm.h".
2276         (PARMS): Do not use macros from bp-asm.h.
2277         (BLK2): Likewise.
2278         (LEN): Likewise.
2279         (memcmp): Do not use BP_SYM.
2280         (bcmp): Do not use BP_SYM in weak_alias.
2281         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
2282         "bp-asm.h".
2283         (PARMS): Do not use macros from bp-asm.h.
2284         (DEST): Likewise.
2285         (SRC): Likewise.
2286         (LEN): Likewise.
2287         (memcpy): Likewise.  Do not use BP_SYM.
2288         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
2289         "bp-asm.h".
2290         (PARMS): Do not use macros from bp-asm.h.
2291         (DEST): Likewise.
2292         (SRC): Likewise.
2293         (LEN): Likewise.
2294         (memmove): Likewise.  Do not use BP_SYM.
2295         * sysdeps/i386/i686/mempcpy.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         (LEN): Likewise.
2301         (__mempcpy): Likewise.  Do not use BP_SYM.
2302         (mempcpy): Do not use BP_SYM in weak_alias.
2303         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
2304         "bp-asm.h".
2305         (PARMS): Do not use macros from bp-asm.h.
2306         (DEST): Likewise.
2307         (LEN): Likewise.
2308         [!BZERO_P] (CHR): Likewise.
2309         (memset): Likewise.  Do not use BP_SYM.
2310         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
2311         "bp-asm.h".
2312         (PARMS): Do not use macros from bp-asm.h.
2313         (STR2): Likewise.
2314         (strcmp): Do not use BP_SYM.
2315         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
2316         "bp-asm.h".
2317         (PARMS): Do not use macros from bp-asm.h.
2318         (STR): Likewise.
2319         (DELIM): Likewise.
2320         [USE_AS_STRTOK_R] (SAVE): Likewise.
2321         (FUNCTION): Likewise.  Do not use BP_SYM.
2322         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
2323         aliases.
2324         (strtok_r): Likewise.
2325         (__GI___strtok_r): Likewise.
2326         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2327         (PARMS): Do not use macros from bp-asm.h.
2328         (S): Likewise.
2329         (SIZE): Likewise.
2330         (__mpn_lshift): Do not use BP_SYM.
2331         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2332         (PARMS): Do not use macros from bp-asm.h.
2333         (STR): Likewise.
2334         (CHR): Likewise.
2335         (__memchr): Do not use BP_SYM.
2336         (memchr): Do not use BP_SYM in weak_alias.
2337         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2338         (PARMS): Do not use macros from bp-asm.h.
2339         (BLK2): Likewise.
2340         (LEN): Likewise.
2341         (memcmp): Do not use BP_SYM.
2342         (bcmp): Do not use BP_SYM in weak_alias.
2343         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
2344         (PARMS): Do not use macros from bp-asm.h.
2345         (S1): Likewise.
2346         (SIZE): Likewise.
2347         (__mpn_mul_1): Do not use BP_SYM.
2348         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
2349         "bp-asm.h".
2350         (PARMS): Do not use macros from bp-asm.h.
2351         (STR): Likewise.
2352         (CHR): Likewise.
2353         (__rawmemchr): Do not use BP_SYM.
2354         (rawmemchr): Do not use BP_SYM in weak_alias.
2355         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
2356         (PARMS): Do not use macros from bp-asm.h.
2357         (S): Likewise.
2358         (SIZE): Likewise.
2359         (__mpn_rshift): Do not use BP_SYM.
2360         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
2361         (PARMS): Do not use macros from bp-asm.h.
2362         (SIGMSK): Likewise.
2363         (__sigsetjmp): Likewise.  Do not use BP_SYM.
2364         * sysdeps/i386/start.S: Do not include "bp-sym.h".
2365         (_start): Do not use BP_SYM.
2366         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
2367         (PARMS): Do not use macros from bp-asm.h.
2368         (DEST): Likewise.
2369         (SRC): Likewise.
2370         (__stpcpy): Likewise.  Do not use BP_SYM.
2371         (stpcpy): Do not use BP_SYM in weak_alias.
2372         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
2373         "bp-asm.h".
2374         (PARMS): Do not use macros from bp-asm.h.
2375         (DEST): Likewise.
2376         (SRC): Likewise.
2377         (LEN): Likewise.
2378         (__stpncpy): Likewise.  Do not use BP_SYM.
2379         (stpncpy): Do not use BP_SYM in weak_alias.
2380         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
2381         (PARMS): Do not use macros from bp-asm.h.
2382         (STR): Likewise.
2383         (CHR): Likewise.
2384         (strchr): Likewise.  Do not use BP_SYM.
2385         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
2386         "bp-asm.h".
2387         (PARMS): Do not use macros from bp-asm.h.
2388         (STR): Likewise.
2389         (CHR): Likewise.
2390         (__strchrnul): Likewise.  Do not use BP_SYM.
2391         (strchrnul): Do not use BP_SYM in weak_alias.
2392         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
2393         "bp-asm.h".
2394         (PARMS): Do not use macros from bp-asm.h.
2395         (STOP): Likewise.
2396         (strcspn): Do not use BP_SYM.
2397         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
2398         "bp-asm.h".
2399         (PARMS): Do not use macros from bp-asm.h.
2400         (STR): Likewise.
2401         (STOP): Likewise.
2402         (strpbrk): Likewise.  Do not use BP_SYM.
2403         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
2404         "bp-asm.h".
2405         (PARMS): Do not use macros from bp-asm.h.
2406         (STR): Likewise.
2407         (CHR): Likewise.
2408         (strrchr): Likewise.  Do not use BP_SYM.
2409         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
2410         (PARMS): Do not use macros from bp-asm.h.
2411         (SKIP): Likewise.
2412         (strspn): Do not use BP_SYM.
2413         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
2414         (PARMS): Do not use macros from bp-asm.h.
2415         (STR): Likewise.
2416         (DELIM): Likewise.
2417         (SAVE): Likewise.
2418         (FUNCTION): Likewise.  Do not use BP_SYM.
2419         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
2420         aliases.
2421         (strtok_r): Likewise.
2422         (__GI___strtok_r): Likewise.
2423         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
2424         (PARMS): Do not use macros from bp-asm.h.
2425         (S1): Likewise.
2426         (S2): Likewise.
2427         (SIZE): Likewise.
2428         (__mpn_sub_n): Do not use BP_SYM.
2429         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
2430         "bp-asm.h".
2431         (PARMS): Do not use macros from bp-asm.h.
2432         (S1): Likewise.
2433         (SIZE): Likewise.
2434         (__mpn_submul_1): Do not use BP_SYM.
2435         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
2436         <bp-sym.h>.
2437         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
2438         and <bp-asm.h>.
2439         (PARMS): Do not use macros from bp-asm.h.
2440         (FLAGS): Likewise.
2441         (PTID): Likewise.
2442         (TLS): Likewise.
2443         (CTID): Likewise.
2444         (__clone): Do not use BP_SYM.
2445         (clone): Do not use BP_SYM in weak_alias.
2446         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
2447         and <bp-asm.h>.
2448         (PARMS): Do not use macros from bp-asm.h.
2449         (LEN): Likewise.
2450         (__mmap64): Do not use BP_SYM.
2451         (mmap64): Do not use BP_SYM in weak_alias.
2452         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2453         <bp-sym.h> and <bp-asm.h>.
2454         (PARMS): Do not use macros from bp-asm.h.
2455         (__posix_fadvise64_l64): Do not use BP_SYM.
2456         * sysdeps/unix/sysv/linux/i386/semtimedop.S
2457         (PARMS): Do not use macros from bp-asm.h.
2458         (NSOPS): Likewise.
2459         (semtimedop): Do not use BP_SYM.
2460         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
2461         and <bp-asm.h>.
2462
2463 2013-02-21  Allan McRae  <allan@archlinux.org>
2464
2465         * manual/message.texi (Charset conversion in gettext):
2466         Move @end statement to beginning of line.
2467
2468 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2469
2470         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
2471         static.
2472         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2473         Likewise.
2474
2475         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
2476         (denorm): Likewise.
2477         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
2478         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
2479
2480 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2481
2482         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
2483         tail-call to the resolved function if pltexit isn't needed.
2484
2485 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2486
2487         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
2488         or Y being zero as being unlikely.
2489         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
2490         Likewise.
2491
2492 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
2493
2494         * manual/nss.texi (System Databases and Name Service Switch):
2495         Remove frobnicate @pxref.
2496
2497 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2498
2499         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2500         __attribute__ ((unused)) to __attribute__ ((__unused__)).
2501
2502 2013-02-20  Petr Machata  <pmachata@redhat.com>
2503
2504         * elf/elf.h (R_ARM_TARGET1): New macro.
2505         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
2506         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
2507         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
2508         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
2509         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
2510         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
2511         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
2512         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
2513         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
2514         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
2515         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
2516         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
2517         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
2518         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
2519         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
2520         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
2521         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
2522         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
2523         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
2524         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
2525         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
2526         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
2527         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
2528         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
2529         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
2530         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
2531         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
2532         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
2533         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
2534         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
2535         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
2536         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
2537         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
2538         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
2539         (R_ARM_THM_GOT_BREL12): Likewise.
2540         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
2541         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
2542         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
2543         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
2544         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
2545         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
2546         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
2547         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
2548         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
2549
2550 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
2551
2552         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
2553         __attribute_used__ to __attribute__ ((unused)).
2554
2555 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2556
2557         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
2558         powerpc mpa.c.
2559         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
2560         comment formatting.
2561         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
2562
2563 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
2564
2565         [BZ #13550]
2566         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
2567         Remove macro.
2568         (ENTER): Remove both macro definitions.
2569         (LEAVE): Likewise.
2570         (CHECK_BOUNDS_LOW): Likewise.
2571         (CHECK_BOUNDS_HIGH): Likewise.
2572         (CHECK_BOUNDS_BOTH): Likewise.
2573         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
2574         (RETURN_BOUNDED_POINTER): Likewise.
2575         (RETURN_NULL_BOUNDED_POINTER): Likewise.
2576         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
2577         (POP_ERRNO_LOCATION_RETURN): Likewise.
2578         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
2579         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2580         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
2581         macros.
2582         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2583         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
2584         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
2585         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
2586         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
2587         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
2588         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
2589         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
2590         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
2591         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
2592         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
2593         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
2594         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2595         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
2596         removed macros.
2597         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2598         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
2599         macros.
2600         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2601         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
2602         * sysdeps/i386/i586/memset.S (memset): Likewise.
2603         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
2604         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2605         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
2606         macros.
2607         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2608         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
2609         Change uses of L(2) to L(out).
2610         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
2611         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
2612         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
2613         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2614         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
2615         removed macros.
2616         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2617         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
2618         macros.
2619         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2620         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
2621         (RETURN): Do not use macro LEAVE.
2622         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
2623         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
2624         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
2625         * sysdeps/i386/i686/memset.S (memset): Likewise.
2626         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
2627         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
2628         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
2629         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
2630         Likewise.
2631         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2632         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
2633         L(1_2) and L(1_3) into L(1).
2634         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2635         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
2636         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2637         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
2638         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
2639         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
2640         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
2641         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2642         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
2643         macros.
2644         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
2645         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
2646         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
2647         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
2648         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
2649         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
2650         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
2651         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
2652         * sysdeps/i386/strcspn.S (strcspn): Likewise.
2653         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
2654         * sysdeps/i386/strrchr.S (strrchr): Likewise.
2655         * sysdeps/i386/strspn.S (strspn): Likewise.
2656         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
2657         conditional code.
2658         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
2659         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
2660         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
2661         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
2662         L(1_3) into L(1_1).
2663         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
2664         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
2665         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
2666         macros.
2667         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
2668
2669 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
2670
2671         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
2672         macro.
2673
2674 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2675
2676         * math/atest-exp.c (exp_mpn): Remove ROUND.
2677         * math/atest-exp2.c (exp_mpn): Likewise.
2678         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
2679
2680         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
2681         * stdlib/tst-tls-atexit-lib.c: Likewise.
2682         * stdlib/tst-tls-atexit.c: Likewise.
2683
2684 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2685
2686         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
2687         and __attribute_alloc_size__.
2688
2689 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2690
2691         * include/programs/xmalloc.h: Change __attribute_alloc_size to
2692         __attribute_alloc_size__.
2693         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
2694         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
2695
2696 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
2697
2698         * include/programs/xmalloc.h: New file.
2699         * catgets/gencat.c: Include it.
2700         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
2701         * elf/pldd.c: Likewise.
2702         * iconv/iconv_charmap.c: Likewise.
2703         * iconv/iconvconfig.c: Likewise.
2704         * iconv/strtab.c: Likewise.
2705         * locale/programs/locale.c: Likewise.
2706         * locale/programs/localedef.h: Likewise.
2707         * locale/programs/simple-hash.c: Likewise.
2708         * nscd/nscd.h: Likewise.
2709         * nss/makedb.c: Likewise.
2710         * sysdeps/generic/ldconfig.h: Likewise.
2711
2712 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2713
2714         * Versions.def: Add GLIBC_2.18.
2715         * include/link.h (struct link_map): New member l_tls_dtor_count.
2716         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
2717         (__call_tls_dtors): Likewise.
2718         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
2719         __cxa_thread_atexit_impl.
2720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
2721         Likewise.
2722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
2723         Likewise.
2724         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
2725         Likewise.
2726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
2727         Likewise.
2728         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
2729         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
2730         Likewise.
2731         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
2732         Likewise.
2733         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
2734         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
2735         Likewise.
2736         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
2737         (tests): Add test case tst-tls-atexit.
2738         (modules-names): Add shared library for tst-tls-atexit.
2739         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
2740         (GLIBC_PRIVATE): Add __call_tls_dtors.
2741         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
2742         for libstdc++.
2743         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
2744         * stdlib/tst-tls-atexit.c: New test case.
2745         * stdlib/tst-tls-atexit-lib.c: New test case.
2746
2747         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
2748
2749         * elf/Versions (ld): Add _dl_find_dso_for_object.
2750         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
2751         * elf/dl-open.c (_dl_find_dso_for_object): New function.
2752         (dl_open_worker): Use _dl_find_dso_for_object.
2753         * elf/dl-sym.c (do_sym): Likewise.
2754         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
2755
2756 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2757
2758         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
2759         Syntactic changes only.
2760         (_dl_runtime_profile): Do a tail-call to the resolved function.
2761
2762 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
2763
2764         [BZ #13550]
2765         * sysdeps/x86_64/bp-asm.h: Remove file.
2766         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
2767         <bp-sym.h> and <bp-asm.h>.
2768         (__clone): Do not use BP_SYM.
2769         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
2770         <bp-sym.h> and <bp-asm.h>.
2771         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2772         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
2773         "bp-asm.h".
2774         (_setjmp): Do not use BP_SYM.
2775         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
2776         "bp-asm.h".
2777         (setjmp): Do not use BP_SYM.
2778         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
2779         libc_hidden_def.
2780         (mempcpy): Do not use BP_SYM in weak_alias.
2781         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
2782         "bp-asm.h".
2783         (strchr): Do not use BP_SYM.
2784         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
2785         "bp-asm.h".
2786         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
2787         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
2788         (_start): Do not use BP_SYM.
2789         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
2790         "bp-asm.h".
2791         (strcat): Do not use BP_SYM.
2792         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
2793         "bp-asm.h".
2794         (STRCMP): Do not use BP_SYM.
2795         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
2796         "bp-asm.h".
2797         (STRCPY): Do not use BP_SYM.
2798         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
2799         "bp-asm.h".
2800         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
2801         "bp-asm.h".
2802         (FUNCTION): Do not use BP_SYM.
2803         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
2804         weak_alias.
2805         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
2806
2807 2013-02-17  Andreas Jaeger  <aj@suse.de>
2808
2809         * time/Versions: Sort entries.
2810         * string/Versions: Likewise.
2811         * resolv/Versions: Likewise.
2812         * posix/Versions: Likewise.
2813         * iconv/Versions: Likewise.
2814         * elf/Versions: Likewise.
2815         * wcsmbs/Versions: Likewise.
2816
2817 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2818
2819         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
2820         loop termination condition.
2821
2822         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
2823         variable to calculate EZ.
2824         (__sqr): Likewise.
2825
2826         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
2827         the lower precision input.
2828
2829 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
2830
2831         [BZ #13550]
2832         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
2833         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
2834         (run-via-rtld-prefix): Do not handle %-bp tests.
2835         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
2836         (all-object-suffixes): Remove .ob.
2837         (bppfx): Remove variable.
2838         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
2839         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
2840         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
2841         [$(build-bounded) = yes] (libtype.ob): Likewise.
2842         * Makerules (elide-routines.ob): Remove variable.
2843         (do-tests-clean): Do not handle *-bp.out.
2844         (common-mostlyclean): Do not handle *-bp and *-bp.out.
2845         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
2846         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
2847         (tests): Do not include $(tests-bp.out).
2848         (xtests): Do not include $(xtests-bp.out).
2849         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
2850         [$(build-bounded) = yes] ($(addprefix
2851         $(objpfx),$(binaries-bounded))): Remove rule.
2852         ($(objpfx)%-bp.out): Remove rule.
2853         * config.make.in (build-bounded): Remove variable.
2854         * crypt/Makefile [$(build-bounded) = yes]
2855         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
2856         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
2857         append to variable.
2858         [$(build-bounded) = yes] (install-lib): Likewise.
2859         [$(build-bounded) = yes] (generated): Likewise.
2860         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
2861         Remove rule.
2862         * intl/Makefile [$(build-bounded) = yes]
2863         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
2864         * math/Makefile [$(build-bounded) = yes]
2865         ($(tests:%=$(objpfx)%-bp): Likewise.
2866         * misc/Makefile [$(build-bounded) = yes]
2867         ($(objpfx)tst-tsearch-bp): Likewise.
2868         * nptl/Makeconfig (bounded-thread-library): Remove variable.
2869         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
2870         Remove dependency.
2871         * string/Makefile (o-objects.ob): Remove variable.
2872         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
2873         (CFLAGS-.ob): Remove variable.
2874         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
2875         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
2876         both definitions of variable.
2877         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
2878         (ASFLAGS-.ob): Remove variable.
2879
2880 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
2881
2882         [BZ #13550]
2883         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
2884         Remove __BOUNDED_POINTERS__ from condition.
2885         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
2886         * string/bits/string2.h [!__NO_STRING_INLINES &&
2887         !__BOUNDED_POINTERS__]: Likewise.
2888         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
2889         Likewise.
2890         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
2891         Remove conditional code.
2892         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
2893         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
2894         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
2895         condition.
2896
2897         [BZ #13550]
2898         * csu/libc-start.c: Do not include <bp-sym.h>.
2899         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
2900         * elf/dl-open.c: Do not include <bp-sym.h>.
2901         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
2902         * math/fegetenv.c: Do not include <bp-sym.h>.
2903         (fegetenv): Do not use BP_SYM in versioned symbols.
2904         * nptl/sysdeps/pthread/bits/libc-lockP.h
2905         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
2906         <bp-sym.h>.
2907         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2908         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
2909         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2910         (__pthread_mutex_destroy): Likewise.
2911         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2912         (__pthread_mutex_lock): Likewise.
2913         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2914         (__pthread_mutex_trylock): Likewise.
2915         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2916         (__pthread_mutex_unlock): Likewise.
2917         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2918         (__pthread_mutexattr_init): Likewise.
2919         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2920         (__pthread_mutexattr_destroy): Likewise.
2921         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2922         (__pthread_mutexattr_settype): Likewise.
2923         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2924         (__pthread_rwlock_init): Likewise.
2925         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2926         (__pthread_rwlock_destroy): Likewise.
2927         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2928         (__pthread_rwlock_rdlock): Likewise.
2929         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2930         (__pthread_rwlock_tryrdlock): Likewise.
2931         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2932         (__pthread_rwlock_wrlock): Likewise.
2933         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2934         (__pthread_rwlock_trywrlock): Likewise.
2935         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2936         (__pthread_rwlock_unlock): Likewise.
2937         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2938         (__pthread_key_create): Likewise.
2939         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2940         (__pthread_setspecific): Likewise.
2941         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2942         (__pthread_getspecific): Likewise.
2943         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
2944         Likewise.
2945         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2946         (_pthread_cleanup_push_defer): Likewise.
2947         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2948         (_pthread_cleanup_pop_restore): Likewise.
2949         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
2950         (pthread_setcancelstate): Likewise.
2951         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
2952         <bp-sym.h>.
2953         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
2954         (memchr): Do not use BP_SYM in weak_alias.
2955         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
2956         (fegetenv): Do not use BP_SYM in versioned symbols.
2957         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
2958         (fesetenv): Do not use BP_SYM in versioned symbols.
2959         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
2960         (feupdateenv): Do not use BP_SYM in versioned symbols.
2961         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
2962         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
2963         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
2964         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
2965         (open64): Do not use BP_SYM in weak_alias.
2966         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
2967         (fegetenv): Do not use BP_SYM in versioned symbols.
2968         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
2969         (fesetenv): Do not use BP_SYM in versioned symbols.
2970         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
2971         (feupdateenv): Do not use BP_SYM in versioned symbols.
2972         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
2973         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
2974         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
2975         (feraiseexcept): Do not use BP_SYM in versioned symbols.
2976         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
2977         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
2978         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
2979         <bp-sym.h>.
2980         (__libc_start_main): Do not use BP_SYM.
2981
2982 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2983
2984         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
2985         redundant return line.
2986         (norm): Likewise.
2987         (denorm): Likewise.
2988         (dbl_mp): Likewise.
2989         (sub_magnitudes): Likewise.
2990         (__add): Likewise.
2991         (__sub): Likewise.
2992         (__mul): Likewise.
2993         (__inv): Likewise.
2994         (__dvd): Likewise.
2995         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
2996         (norm): Likewise.
2997         (denorm): Likewise.
2998         (dbl_mp): Likewise.
2999         (sub_magnitudes): Likewise.
3000         (__add): Likewise.
3001         (__sub): Likewise.
3002         (__mul): Likewise.
3003         (__inv): Likewise.
3004         (__dvd): Likewise.
3005
3006         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
3007         instead of __mul.
3008         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
3009         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
3010         (cc32): Likewise.
3011
3012         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
3013         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
3014         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
3015         of __mul for squares.
3016         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
3017         function
3018         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
3019         Likewise.
3020         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
3021         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3022
3023 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
3024
3025         [BZ #13550]
3026         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
3027         code.
3028         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
3029         prototype or function definition.  Rename ubp_* variables and
3030         parameters.  Remove argv definitions conditional on
3031         [__BOUNDED_POINTERS__].
3032         * debug/backtrace.c (__backtrace): Do not use __unbounded.
3033         * elf/dl-runtime.c (_dl_fixup): Likewise.
3034         * include/set-hooks.h (RUN_HOOK): Likewise.
3035         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
3036         definition.
3037         * string/strcpy.c (strcpy): Do not use __unbounded.
3038         * sysdeps/generic/frame.h (struct layout): Likewise.
3039         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
3040         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
3041         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
3042         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
3043         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
3044         (__backtrace): Likewise.
3045         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
3046         use __ptrvalue.
3047         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
3048         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
3049         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
3050         Likewise.
3051         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
3052         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
3053         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
3054         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3055         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
3056         Do not use __unbounded.
3057         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
3058         Rename __unboundedrlimits parameter to rlimits in prototype.
3059         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
3060         Do not use __unbounded.
3061         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
3062         not use __ptrvalue.
3063         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3064         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
3065         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3066         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
3067         __ptrvalue or __unbounded.
3068         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
3069         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
3070         use __unbounded.
3071         (__new_msgctl): Do not use __ptrvalue.
3072         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
3073         __unbounded.
3074         (__libc_msgrcv): Do not use __ptrvalue.
3075         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
3076         startup_info): Do not use __unbounded.
3077         (__libc_start_main): Likewise.  Rename ubp_* variables and
3078         parameters.  Remove argv definitions conditional on
3079         [__BOUNDED_POINTERS__].
3080         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
3081         __ptrvalue.
3082         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
3083         use __unbounded.
3084         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
3085         or __ptrvalue.
3086         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
3087         use __unbounded.
3088         (__new_shmctl): Do not use __ptrvalue.
3089         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
3090         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
3091         Likewise.
3092         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
3093         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
3094         (__libc_sigaction): Likewise.
3095         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
3096         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
3097         Likewise.
3098         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3099
3100 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
3101
3102         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
3103
3104         * string/mempcpy.c: Implement by calling memcpy.
3105
3106 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3107
3108         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
3109
3110         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
3111         evaluation.
3112
3113         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
3114         values in the mantissa.
3115
3116         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
3117         minimize writes to Z.
3118         (sub_magnitudes): Simplify code a bit.
3119
3120 2013-02-12  Roland McGrath  <roland@hack.frob.com>
3121
3122         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
3123         from the message.  The linker prefixes all warnings with that already.
3124
3125 2013-02-12  Andreas Schwab  <schwab@suse.de>
3126
3127         [BZ #15078]
3128         * posix/regexec.c (extend_buffers): Add parameter min_len.
3129         (check_matching): Pass minimum needed length.
3130         (clean_state_log_if_needed): Likewise.
3131         (get_subexp): Likewise.
3132         * posix/Makefile (tests): Add bug-regex34.
3133         (bug-regex34-ENV): Define.
3134         * posix/bug-regex34.c: New file.
3135
3136         [BZ #11561]
3137         * posix/regcomp.c (parse_bracket_exp): When looking up collating
3138         elements compare against the byte sequence of it, not its name.
3139         * posix/Makefile (tests): Add bug-regex35.
3140         (bug-regex35-ENV): Define.
3141         * posix/bug-regex35.c: New file.
3142
3143 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3144
3145         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
3146         comment.
3147         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
3148         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
3149         (CHECK_EOL): Add undef.
3150
3151 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
3152
3153         * bits/stdlib-bsearch.h: New file.
3154         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
3155         * stdlib/stdlib.h: Likewise.
3156
3157 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3158
3159         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
3160         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
3161         declaration.
3162         * manual/search.texi (Array Search Function): Add missing const in
3163         lfind prototype.
3164         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
3165         declaration to use rlim_t.
3166         (Basic Scheduling Functions): Remove erroneous const from
3167         sched_getparam prototype.  Remove erroneous * from
3168         sched_get_priority_max and sched_get_priority_min prototypes.
3169         (Resource Usage): Fix summary @comment on vtimes to refer to
3170         sys/vtimes.h rather than vtimes.h.
3171         Add missing *s in vtimes prototype.
3172         (Limits on Resources): Fix ulimit prototype to return long int.
3173         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
3174         prototypes to use long int rather than double.
3175         (BSD Random): Fix initstate and setstate to use char *, not void *.
3176         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
3177         prototype to make second argument 'struct aiocb64 *const[]'.
3178         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
3179         (Status of AIO Operations): Remove erroneous const in aio_return and
3180         aio_return64 prototypes.
3181         (Synchronizing I/O): Fix sync prototype to return void.
3182         * manual/startup.texi (Suboptions): Remove an erroneous const in
3183         getsubopt prototype.
3184         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
3185         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
3186         use size_t rather than int.
3187         (Scanning All Users): Likewise for getpwent_r.
3188         (Setting Groups): Add missing const to setgroups prototype.
3189         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
3190         * manual/socket.texi (Host Names): Fix gethostbyaddr and
3191         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
3192         'const void *' rather than 'const char *'.
3193         (Host Address Functions): Likewise for inet_ntop.
3194         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
3195         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
3196         ssize_t for return value.
3197         (Sending Data): Likewise for send, sendto, sendmsg.
3198         (Socket Option Functions): Add a missing const in setsockopt prototype.
3199         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
3200         use wchar_t for the argument.
3201         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
3202         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
3203         take no arguments.
3204         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
3205         double/float/long double for second argument.
3206         Fix return types of significand, significandf, significandl.
3207         * manual/filesys.texi (Setting Permissions): Use mode_t for second
3208         argument in fchmod prototype.
3209         (File Owner): Use uid_t and gid_t in fchown prototype.
3210         (File Times): Add const to utimes, futimes, and lutimes prototypes.
3211         (Making Special Files): Use mode_t and dev_t in mknod prototype.
3212         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
3213         use 'const struct dirent **' as argument types to CMP function pointer
3214         argument.
3215         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
3216         (File Times): Fix summary magic @comment for struct utimbuf and utime
3217         to refer to utime.h, not time.h.
3218         * manual/string.texi (Argz Functions): Add missing const in
3219         argz_extract and argz_next prototypes.
3220         (Finding Tokens in a String): Likewise for basename.
3221         (String/Array Comparison): Fix typo in wcscasecmp prototype.
3222         (Copying and Concatenation): Fix typo in wmemmove prototype.
3223         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
3224         (Signal Stack): Remove erroneous const in sigstack prototype.
3225         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
3226         prototype.
3227         (Simple Calendar Time): Likewise for stime.
3228         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
3229         prototype.
3230         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
3231         say sys/sysctl.h instead.
3232         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
3233         and vsyslog prototypes.
3234
3235 2013-02-11  Tom de Vries  <tom@codesourcery.com>
3236
3237         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
3238         Remove.
3239
3240 2013-02-11  Roland McGrath  <roland@hack.frob.com>
3241
3242         * misc/sys/mman.h: Fix typo in mremap comment.
3243
3244 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3245
3246         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
3247         the '\0' terminator.
3248
3249 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3250
3251         [BZ #13550]
3252         * debug/segfault.c: Don't include <bp-checks.h>.
3253         * sysdeps/generic/bp-checks.h: Remove file.
3254         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
3255         (__GETDENTS): Don't use CHECK_N.
3256         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
3257         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
3258         (__getgroups): Don't use CHECK_N.
3259         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
3260         (setgroups): Don't use CHECK_N.
3261         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
3262         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3263         (__libc_msgrcv): Don't use CHECK_N.
3264         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
3265         (__libc_msgsnd): Don't use CHECK_N.
3266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
3267         <bp-checks.h>.
3268         (__libc_pread): Don't use CHECK_N.
3269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
3270         include <bp-checks.h>.
3271         (__libc_pread64): Don't use CHECK_N.
3272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
3273         include <bp-checks.h>.
3274         (__libc_pwrite): Don't use CHECK_N.
3275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
3276         include <bp-checks.h>.
3277         (__libc_pwrite64): Don't use CHECK_N.
3278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
3279         <bp-checks.h>.
3280         (__libc_pread): Don't use CHECK_N.
3281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
3282         include <bp-checks.h>.
3283         (__libc_pread64): Don't use CHECK_N.
3284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
3285         include <bp-checks.h>.
3286         (__libc_pwrite): Don't use CHECK_N.
3287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
3288         include <bp-checks.h>.
3289         (__libc_pwrite64): Don't use CHECK_N.
3290         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
3291         (do_pread): Don't use CHECK_N.
3292         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
3293         (do_pread64): Don't use CHECK_N.
3294         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
3295         (do_pwrite): Don't use CHECK_N.
3296         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
3297         (do_pwrite64): Don't use CHECK_N.
3298         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
3299         (__libc_readv): Don't use CHECK_N.
3300         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
3301         (semop): Don't use CHECK_N.
3302         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
3303         <bp-checks.h>.
3304         (semtimedop): Don't use CHECK_N.
3305         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
3306         (__libc_pread): Don't use CHECK_N.
3307         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
3308         <bp-checks.h>.
3309         (__libc_pread64): Don't use CHECK_N.
3310         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
3311         <bp-checks.h>.
3312         (__libc_pwrite): Don't use CHECK_N.
3313         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
3314         <bp-checks.h>.
3315         (__libc_pwrite64): Don't use CHECK_N.
3316         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
3317         <bp-checks.h>.
3318         (__libc_msgrcv): Don't use CHECK_N.
3319         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
3320         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
3321         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
3322         (__libc_writev): Don't use CHECK_N.
3323
3324 2013-02-08  Roland McGrath  <roland@hack.frob.com>
3325
3326         * string/strcpy.c: Removed unused variable.
3327
3328         * Makeconfig (+sysdep-includes): Define with := rather than =.
3329         Use an existing include/ subdir of each sysdeps dir before it.
3330
3331 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3332
3333         * nscd/connection.c (register_traced_file): Comment function.
3334         [HAVE_INOTIFY] (union __inev): Define.
3335         [HAVE_INOTIFY] (inotify_check_files): New function.
3336         [HAVE_INOTIFY] (clear_db_cache): Likewise.
3337         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
3338         clear_db_cache.
3339         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
3340
3341 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3342
3343         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
3344         loaded if not already and that a failure is permanent.
3345
3346 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
3347
3348         [BZ #15006]
3349         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
3350         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
3351
3352 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
3353
3354         [BZ #13550]
3355         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
3356         (CHECK_1_NULL_OK): Likewise.
3357         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
3358         (__fxstat): Do not use CHECK_1.
3359         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3360         <bp-checks.h>.
3361         (___fxstat64): Do not use CHECK_1.
3362         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
3363         <bp-checks.h>.
3364         (__fxstatat): Do not use CHECK_1.
3365         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
3366         <bp-checks.h>.
3367         (__fxstatat64): Do not use CHECK_1.
3368         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
3369         <bp-checks.h>.
3370         (__fxstat): Do not use CHECK_1.
3371         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
3372         <bp-checks.h>.
3373         (__fxstatat): Do not use CHECK_1.
3374         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3375         <bp-checks.h>.
3376         (__getresgid): Do not use CHECK_1.
3377         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3378         <bp-checks.h>.
3379         (__getresuid): Do not use CHECK_1.
3380         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
3381         <bp-checks.h>.
3382         (__lxstat): Do not use CHECK_1.
3383         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3384         <bp-checks.h>.
3385         (__old_msgctl): Do not use CHECK_1.
3386         (__new_msgctl): Likewise.
3387         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
3388         <bp-checks.h>.
3389         (__new_setrlimit): Do not use CHECK_1.
3390         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3391         <bp-checks.h>.
3392         (__old_shmctl): Do not use CHECK_1.
3393         (__new_shmctl): Likewise.
3394         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
3395         <bp-checks.h>.
3396         (__xstat): Do not use CHECK_1.
3397         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
3398         (__lxstat): Do not use CHECK_1.
3399         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3400         <bp-checks.h>.
3401         (___lxstat64): Do not use CHECK_1.
3402         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
3403         (__old_msgctl): Do not use CHECK_1.
3404         (__new_msgctl): Likewise.
3405         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
3406         <bp-checks.h>.
3407         (__gettimeofday): Do not use CHECK_1.
3408         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
3409         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
3410         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
3411         <bp-checks.h>.
3412         (__gettimeofday): Do not use CHECK_1.
3413         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
3414         (__old_shmctl): Do not use CHECK_1_NULL_OK.
3415         (__new_shmctl): Do not use CHECK_1.
3416         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
3417         <bp-checks.h>.
3418         (do_sigtimedwait): Do not use CHECK_1.
3419         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
3420         <bp-checks.h>.
3421         (do_sigwaitinfo): Do not use CHECK_1.
3422         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
3423         <bp-checks.h>.
3424         (msgctl): Do not use CHECK_1.
3425         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
3426         <bp-checks.h>.
3427         (shmctl): Do not use CHECK_1.
3428         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
3429         (ustat): Do not use CHECK_1.
3430         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
3431         <bp-checks.h>.
3432         (__fxstat): Do not use CHECK_1.
3433         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
3434         <bp-checks.h>.
3435         (__fxstatat): Do not use CHECK_1.
3436         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
3437         <bp-checks.h>.
3438         (__lxstat): Do not use CHECK_1.
3439         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
3440         <bp-checks.h>.
3441         (__xstat): Do not use CHECK_1.
3442         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
3443         (__xstat): Do not use CHECK_1.
3444         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
3445         (___xstat64): Do not use CHECK_1.
3446
3447         [BZ #13550]
3448         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
3449         definitions.
3450         (CHECK_BOUNDS_HIGH): Likewise.
3451         * string/strcpy.c: Do not include <bp-checks.h>.
3452         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
3453
3454 2013-02-07  Roland McGrath  <roland@hack.frob.com>
3455
3456         * nscd/nscd-client.h (__nscd_drop_map_ref):
3457         Add __attribute__ ((unused)).
3458         * nis/nss-nisplus.h (niserr2nss): Likewise.
3459
3460         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
3461         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
3462
3463         * csu/libc-tls.c (init_static_tls, init_slotinfo):
3464         Remove inline keyword.
3465         * include/rounding-mode.h (round_away): Likewise.
3466         * libio/wfileops.c (adjust_wide_data): Likewise.
3467         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
3468         (__m128i_strloadu_tolower): Likewise.
3469         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
3470         (__m128i_strloadu_tolower): Likewise.
3471         * time/mktime.c (ydhms_diff): Likewise.
3472         * locale/elem-hash.h (elem_hash): Likewise.
3473         * locale/setlocale.c (setdata): Likewise.
3474         * posix/regex_internal.h (re_string_char_size_at): Likewise.
3475         (re_string_wchar_at): Likewise.
3476         (bitset_not, bitset_merge, bitset_mask): Likewise.
3477         [!(__GNUC__ > 3)] (inline): Remove macro.
3478         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
3479         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
3480         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
3481         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
3482         * string/memcmp.c (memcmp_bytes): Likewise.
3483         * locale/programs/locarchive.c (compute_hashval): Likewise.
3484         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
3485         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
3486         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
3487         * nss/getent.c (print_rpc, print_protocols): Likewise.
3488         (print_passwd, print_group, print_aliases): Likewise.
3489         * nis/nss-nisplus.h (niserr2nss): Likewise.
3490         * nscd/connections.c (restart_p): Likewise.
3491         Change return type to bool.
3492
3493 2013-02-05  Roland McGrath  <roland@hack.frob.com>
3494
3495         * Makeconfig (all-Depend-files): Add existing
3496         $(sorted-subdirs:=/Depend) files.
3497         (all-subdirs): Remove nss.
3498         * sysdeps/unix/inet/Subdirs: Add it here instead.
3499         * hesiod/Depend: New file.
3500
3501         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
3502         instead of calling alloca.
3503
3504         * io/lseek.c (__lseek): Rename to __libc_lseek.
3505         Define __lseek as an alias.
3506
3507         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
3508
3509 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
3510
3511         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
3512         else clause and remove check for non-standard endianness.
3513
3514 2013-02-04  David S. Miller  <davem@davemloft.net>
3515
3516         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3517
3518 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
3519
3520         [BZ #13550]
3521         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
3522         (__ubp_memchr): Remove prototype.
3523         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
3524         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3525         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
3526         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
3527         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3528         Remove alias.
3529         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
3530         (__ubp_memchr): Likewise.
3531         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
3532         (__ubp_memchr): Likewise.
3533         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
3534         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
3535         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
3536         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
3537         CHECK_STRING.
3538         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
3539         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
3540         (__getcwd): Do not use CHECK_STRING.
3541         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3542         <bp-checks.h>.
3543         (__real_chown): Do not use CHECK_STRING.
3544         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
3545         <bp-checks.h>.
3546         (fchownat): Do not use CHECK_STRING.
3547         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
3548         CHECK_STRING.
3549         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3550         <bp-checks.h>.
3551         (__lchown): Do not use CHECK_STRING.
3552         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
3553         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
3554         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
3555         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
3556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3557         include <bp-checks.h>.
3558         (truncate64): Do not use CHECK_STRING.
3559         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3560         <bp-checks.h>.
3561         (__real_chown): Do not use CHECK_STRING.
3562         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3563         <bp-checks.h>.
3564         (__lchown): Do not use CHECK_STRING.
3565         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3566         <bp-checks.h>.
3567         (__chown): Do not use CHECK_STRING.
3568         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
3569         <bp-checks.h>.
3570         (truncate64): Do not use CHECK_STRING.
3571         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
3572         Likewise.
3573         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
3574         (__xmknod): Do not use CHECK_STRING.
3575         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
3576         <bp-checks.h>.
3577         (__xmknodat): Do not use CHECK_STRING.
3578         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
3579         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
3580
3581 2013-02-04  Andreas Schwab  <schwab@suse.de>
3582
3583         [BZ #14142]
3584         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
3585         * include/netdb.h: Likewise for h_errno.
3586         * elf/tst-stackguard1.c: Include <tls.h>.
3587
3588 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3589
3590         * elf/link.h (struct link_map): Extend the l_addr comment.
3591         * include/link.h (struct link_map): Likewise.
3592
3593 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
3594
3595         [BZ #13550]
3596         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
3597         (BOUNDED_1): Remove macro.
3598         * debug/backtrace.c: Don't include <bp-checks.h>.
3599         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
3600         (__backtrace): Likewise.
3601         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
3602         <bp-checks.h>.
3603         (__backtrace): Don't use BOUNDED_1.
3604         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
3605         <bp-checks.h>.
3606         (__backtrace): Don't use BOUNDED_1.
3607         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
3608         (__backtrace): Don't use BOUNDED_1.
3609         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
3610         (shmat): Don't use BOUNDED_N.
3611
3612 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
3613
3614         [BZ #13550]
3615         * sysdeps/generic/bp-start.h: Remove file.
3616         * csu/libc-start.c: Don't include <bp-start.h>.
3617         (LIBC_START_MAIN): Set up __environ directly instead of using
3618         INIT_ARGV_and_ENVIRON.
3619         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
3620         <bp-start.h>.
3621
3622         [BZ #13550]
3623         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
3624         definitions.
3625         (CHECK_FCNTL): Likewise.
3626         (CHECK_N_PAGES): Likewise.
3627
3628         [BZ #13550]
3629         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
3630         definitions.
3631         (CHECK_SIGSET_NULL_OK): Likewise.
3632         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
3633         <bp-checks.h>.
3634         (sigpending): Don't use CHECK_SIGSET.
3635         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
3636         <bp-checks.h>.
3637         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3638         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
3639         <bp-checks.h>.
3640         (do_sigsuspend): Don't use CHECK_SIGSET.
3641         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
3642         use CHECK_SIGSET.
3643         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
3644         (do_sigwait): Don't use CHECK_SIGSET.
3645         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
3646         use CHECK_SIGSET.
3647         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
3648         include <bp-checks.h>.
3649         (sigpending): Don't use CHECK_SIGSET.
3650         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
3651         include <bp-checks.h>.
3652         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3653         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
3654         <bp-checks.h>.
3655         (sigpending): Don't use CHECK_SIGSET.
3656         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
3657         <bp-checks.h>.
3658         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
3659
3660         [BZ #13550]
3661         * sysdeps/generic/bp-semctl.h: Remove file.
3662         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
3663         <bp-checks.h> and <bp-semctl.h>.
3664         (__old_semctl): Don't use CHECK_SEMCTL.
3665         (__new_semctl): Likewise.
3666         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
3667         and <bp-semctl.h>.
3668         (__old_semctl): Don't use CHECK_SEMCTL.
3669         (__new_semctl): Likewise.
3670         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
3671         <bp-checks.h> and <bp-semctl.h>.
3672         (__old_semctl): Don't use CHECK_SEMCTL.
3673         (__new_semctl): Likewise.
3674         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
3675         <bp-checks.h> and <bp-semctl.h>.
3676         (semctl): Don't use CHECK_SEMCTL.
3677
3678         [BZ #13550]
3679         * Makerules (elide-bp-thunks): Remove variable.
3680         (elide-routines.oS): Don't use $(elide-bp-thunks).
3681         (elide-routines.os): Likewise.
3682         (elide-routines.o): Likewise.
3683         (elide-routines.op): Likewise.
3684         (elide-routines.og): Likewise.
3685         (objects): Don't use $(bp-thunks).
3686         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
3687         include.
3688         (common-generated): Do not add s-proto-bp.d.
3689         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
3690         (int): Likewise.
3691         (typ): Likewise.
3692         Do not generate makefile rules for bounded-pointer thunks.
3693         * sysdeps/generic/bp-thunks.h: Remove file.
3694         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
3695         * sysdeps/unix/s-proto-bp.S: Likewise.
3696
3697         [BZ #15062]
3698         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
3699         parts of result separately when argument is not close to line from
3700         -i to i and one part of argument is small.
3701         * math/k_casinhf.c (__kernel_casinhf): Likewise.
3702         * math/k_casinhl.c (__kernel_casinhl): Likewise.
3703         * math/libm-test.inc (cacos_test): Add more tests.
3704         (casin_test): Likewise.
3705         (casinh_test): Likewise.
3706         * sysdeps/i386/fpu/libm-test-ulps: Update.
3707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3708
3709 2013-01-31  David S. Miller  <davem@davemloft.net>
3710
3711         * po/de.po: Update from translation team.
3712
3713 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3714
3715         * time/tzfile.c: Include stdint.h for SIZE_MAX.
3716
3717 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
3718
3719         * configure.in (_AC_PROG_CC_C89): New definition.
3720         * configure: Regenerate.
3721
3722         * configure.in (AC_PROG_CPP): New definition.
3723         * configure: Regenerate.
3724
3725 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3726
3727         * debug/tst-backtrace.h: New file.
3728         * debug/tst-backtrace2.c: Include tst-backtrace.h.
3729         (ret): Remove variable.
3730         (x): Likewise.
3731         (FAIL): Remove macro.
3732         (NO_INLINE): Likewise.
3733         (fn1): Use match function instead of strstr.
3734         * debug/tst-backtrace3.c: Include tst-backtrace.h.
3735         (ret): Remove variable.
3736         (x): Likewise.
3737         (FAIL): Remove macro.
3738         (NO_INLINE): Likewise.
3739         (fn): Use match function instead of strstr.
3740         * debug/tst-backtrace4.c: Include tst-backtrace.h.
3741         (ret): Remove variable.
3742         (x): Likewise.
3743         (FAIL): Remove macro.
3744         (NO_INLINE): Likewise.
3745         (handle_signal): Use match function instead of strstr.
3746         * debug/tst-backtrace5.c: Include tst-backtrace.h.
3747         (ret): Remove variable.
3748         (x): Likewise.
3749         (FAIL): Remove macro.
3750         (NO_INLINE): Likewise.
3751         (handle_signal): Use match function instead of strstr.
3752
3753 2013-01-23  Roland McGrath  <roland@hack.frob.com>
3754
3755         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
3756
3757 2013-01-23  David S. Miller  <davem@davemloft.net>
3758
3759         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
3760         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
3761         argument of CAS if possible.
3762         * sysdeps/sparc/sparc64/bits/atomic.h
3763         (__arch_compare_and_exchange_val_32_acq): Likewise.
3764         (__arch_compare_and_exchange_val_64_acq): Likewise.
3765
3766 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
3767
3768         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
3769         * sysdeps/posix/ulimit.c: ... this.
3770         Include <limits.h>.
3771         * sysdeps/unix/bsd/ulimit.c: Remove file.
3772
3773 2013-01-23  Adam Conrad  <adconrad@0c3.net>
3774
3775         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
3776         (LDFLAGS-tst-array5): Likewise.
3777
3778 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
3779
3780         [BZ #15036]
3781         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
3782         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
3783         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
3784         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
3785
3786 2013-01-21  David S. Miller  <davem@davemloft.net>
3787
3788         * sysdeps/sparc/backtrace.c: New file.
3789         * sysdeps/sparc/sparc32/backtrace.h: New file.
3790         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
3791         * sysdeps/sparc/sparc64/backtrace.h: New file.
3792         * sysdeps/sparc/sparc64/backtrace.c: Delete.
3793         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
3794         -funwind-tables.
3795
3796 2013-01-21  Andreas Schwab  <schwab@suse.de>
3797
3798         [BZ #15020]
3799         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
3800         closed its stdout.
3801
3802 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
3803
3804         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
3805         "mpa2.h".
3806         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3807
3808 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
3809             Mark Mitchell  <mark@codesourcery.com>
3810             Tom de Vries  <tom@codesourcery.com>
3811             Paul Pluzhnikov  <ppluzhnikov@google.com>
3812
3813         * debug/tst-backtrace2.c: New file.
3814         * debug/tst-backtrace3.c: Likewise.
3815         * debug/tst-backtrace4.c: Likewise.
3816         * debug/tst-backtrace5.c: Likewise.
3817         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
3818         (CFLAGS-tst-backtrace3.c): Likewise.
3819         (CFLAGS-tst-backtrace4.c): Likewise.
3820         (CFLAGS-tst-backtrace5.c): Likewise.
3821         (LDFLAGS-tst-backtrace2): Likewise.
3822         (LDFLAGS-tst-backtrace3): Likewise.
3823         (LDFLAGS-tst-backtrace4): Likewise.
3824         (LDFLAGS-tst-backtrace5): Likewise.
3825         (tests): Add new tests tst-backtrace2, tst-backtrace3,
3826         tst-backtrace4 and tst-backtrace5.
3827
3828 2013-01-18  Anton Blanchard  <anton@samba.org>
3829             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3830
3831         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
3832         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
3833         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
3834         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
3835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3836         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
3837         "+r" and remove output regs list as redundant.  Add explicit inline
3838         asm to specify register of return val to work around compiler codegen
3839         bug.  Remove (int) cast on return value.  Add return type parameter to
3840         use in macro so that this macro does not truncate return value for
3841         64-bit values.
3842         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
3843         pass to INTERNAL_VSYSCALL_NCS.
3844         (INLINE_VSYSCALL): Add 'long int' as return type to
3845         INTERNAL_VSYSCALL_NCS macro invocation.
3846         (INTERNAL_VSYSCALL): Add 'long int' as return type to
3847         INTERNAL_VSYSCALL_NCS macro invocation.
3848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3849
3850 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3851
3852         [BZ #14496]
3853         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
3854         Fix application of SIMD FP exception mask.
3855
3856         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
3857         mp_no from a power of two.
3858         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
3859         __mpexp_twomm1.  Use __pow_mp.
3860
3861         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
3862         multiplication.
3863
3864 2013-01-17  David S. Miller  <davem@davemloft.net>
3865
3866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3867
3868 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3869
3870         [BZ #15023]
3871         * include/complex.h: Condition contents on [!_COMPLEX_H].
3872         (__kernel_casinhf): New prototype.
3873         (__kernel_casinh): Likewise.
3874         (__kernel_casinhl): Likewise.
3875         * math/Makefile (libm_calls): Add k_casinh.
3876         * math/k_casinh.c: New file.
3877         * math/k_casinhf.c: Likewise.
3878         * math/k_casinhl.c: Likewise.
3879         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
3880         finite nonzero arguments.
3881         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
3882         finite nonzero arguments.
3883         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
3884         finite nonzero arguments.
3885         * math/s_casinh.c: Do not include <float.h>.
3886         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
3887         * math/s_casinhf.c: Do not include <float.h>.
3888         (__casinhf): Move code for finite nonzero arguments to
3889         k_casinhf.c.
3890         * math/s_casinhl.c: Do not include <float.h>.
3891         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
3892         redefine.
3893         (__casinhl): Move code for finite nonzero arguments to
3894         k_casinhl.c.
3895         * math/libm-test.inc (cacos_test): Add more tests.
3896         * sysdeps/i386/fpu/libm-test-ulps: Update.
3897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3898
3899 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
3900
3901         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
3902         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
3903         [!HAVE_MREMAP]: Remove [defined linux] case.
3904         * malloc/arena.c: Do not include <malloc-sysdep.h>.
3905
3906 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3907
3908         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
3909
3910 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3911
3912         * elf/elf.h (R_386_SIZE32): New relocation.
3913         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
3914         R_386_SIZE32.
3915         (elf_machine_rela): Likewise.
3916         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3917         R_X86_64_SIZE64 and R_X86_64_SIZE32.
3918
3919 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
3920
3921         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
3922         (FP_FAST_FMA): Do not define.
3923         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
3924         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
3925         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
3926         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
3927         !_SOFT_FLOAT]: Likewise.
3928         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
3929         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
3930         value.
3931         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
3932         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
3933         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
3934         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
3935         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
3936         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
3937         file.
3938
3939 2013-01-16  Andreas Schwab  <schwab@suse.de>
3940
3941         [BZ #14327]
3942         * include/stdlib.h (__mktemp): Add declaration.
3943         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
3944         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
3945
3946 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3947
3948         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
3949         definitions.
3950         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3951         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
3952         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
3953         definitions here.
3954         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
3955         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
3956         definitions.
3957         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
3958         and ONE.
3959         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
3960         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
3961         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
3962         definitions.
3963         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
3964         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
3965         definitions.
3966         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3967
3968         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
3969
3970 2013-01-15  David S. Miller  <davem@davemloft.net>
3971
3972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3973         trunc{,f} to libm-sysdep_routes.
3974         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
3976         file.
3977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
3978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
3979         file.
3980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
3981         file.
3982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
3983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
3984         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
3985         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
3986         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
3987         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
3988         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
3989         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
3990
3991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
3992         nearbyint{,f} to libm-sysdep_routes.
3993         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
3994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
3995         New file.
3996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
3997         file.
3998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
3999         New file.
4000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
4001         file.
4002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
4003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
4004         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
4005         file.
4006         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
4007         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
4008         file.
4009         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
4010         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
4011         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
4012
4013         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4014         libc_feholdexcept and libc_fesetenv.
4015
4016 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
4017
4018         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
4019
4020 2013-01-14  David S. Miller  <davem@davemloft.net>
4021
4022         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
4023         (SPARC_ASM_VIS2_IFUNC): Likewise.
4024         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
4025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
4026         use of 'siam' instruction.
4027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
4028         Likewise.
4029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
4030         Likewise.
4031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
4032         Likewise.
4033         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
4034         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
4035         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
4036         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
4037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
4038         file.
4039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
4040         file.
4041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
4042         file.
4043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
4044         file.
4045         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
4046         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
4047         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
4048         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
4049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
4050         new VIS2 routines.
4051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
4052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
4054         Likewise.
4055         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
4056         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
4057         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
4058         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
4059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
4060         routines to libm-sysdep_routines.
4061         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
4062
4063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
4064         fdim/fdimf to libm-sysdep_routines.
4065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
4066         file.
4067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
4068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
4069         file.
4070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
4071         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
4072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
4073         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
4074         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
4075         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
4076         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
4077
4078 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
4079
4080         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
4081         to optimize copies.
4082
4083         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
4084         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4085         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4086
4087         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
4088         local variable MPTWO.
4089         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
4090         Likewise.
4091
4092 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4093
4094         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
4095         GLOB_NOESCAPE.
4096
4097 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4098
4099         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
4100
4101 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
4102
4103         * manual/pattern.texi (glob_t): Document gl_flags.
4104         (glob64_t): Likewise.
4105
4106 2013-01-11  David S. Miller  <davem@davemloft.net>
4107
4108         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
4109         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
4110         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
4111         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
4112         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
4113         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
4114         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
4115         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
4116         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
4117         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
4118         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
4119         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
4120         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
4121
4122         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4123         sparc V9 rather than using V8 code.
4124         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4125         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4126
4127         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
4128         Move to...
4129         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
4130         Here.
4131
4132 2013-01-11  Roland McGrath  <roland@hack.frob.com>
4133
4134         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
4135         not in the main loop.
4136         * configure: Regenerated.
4137
4138 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
4139
4140         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
4141         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
4142         to just #else.
4143         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
4144         [!__GLIBC_HAVE_LONG_LONG] case.
4145         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
4146         condition to just #else.
4147         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
4148         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
4149         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
4150         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
4151         unconditional.
4152         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
4153         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4154         #elif condition to just #else.
4155         * sysdeps/unix/sysv/linux/sys/sysmacros.h
4156         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
4157         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
4158         #elif condition to just #else.
4159
4160 2013-01-11  Steve Ellcey  <sellcey@mips.com>
4161
4162         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
4163         (EF_MIPS_ARCH_64): Fix value.
4164         (EF_MIPS_ARCH_32R2): New.
4165         (EF_MIPS_ARCH_64R2): New.
4166
4167 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
4168
4169         * Makeconfig (+link-pie-before-libc): New.
4170         (+link-pie-after-libc): Likewise.
4171         (+link-pie-tests): Likewise.
4172         (+link-pie): Rewritten.
4173         (link-before-libc): Remove $(config-LDFLAGS).
4174         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
4175         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
4176         (config-LDFLAGS): Renamed to ...
4177         (rtld-LDFLAGS): This.
4178         (rtld-tests-LDFLAGS): New macro.
4179         (link-libc-rpath-link): Likewise.
4180         (link-libc-tests-rpath-link): Likewise.
4181         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
4182         (link-libc): Prepand $(link-libc-rpath-link).
4183         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
4184         (test-program-prefix): New macro.
4185         (test-via-rtld-prefix): Likewise.
4186         (test-program-cmd): Likewise.
4187         (host-test-program-cmd): Likewise.
4188         * Makefile ($(common-objpfx)testrun.sh): Replace
4189         $(run-program-prefix) with $(test-program-prefix).
4190         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
4191         $(rtld-LDFLAGS).
4192         ($(common-objpfx)shlib.lds): Likewise.
4193         (build-module-helper): Likewise.
4194         ($(common-objpfx)format.lds): Likewise.
4195         * Rules (binaries-pie-tests): New.
4196         (binaries-pie-notests): Likewise.
4197         (binaries-pie): Rewritten.
4198         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
4199         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
4200         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
4201         (make-test-out): Replace $(host-built-program-cmd) with
4202         $(host-test-program-cmd).
4203         * config.make.in (build-hardcoded-path-in-tests): New variable.
4204         * configure.in (--enable-hardcoded-path-in-tests): New configure
4205         option.
4206         (hardcoded_path_in_tests): New AC_SUBST.
4207         * configure: Regenerated.
4208         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
4209         $(built-program-cmd) with $(test-program-cmd).
4210         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
4211         (test_program_cmd): This.
4212         * elf/Makefile ($(objpfx)order.out): Run test with
4213         $(test-program-prefix).
4214         ($(objpfx)order2.out): Likewise.
4215         ($(objpfx)tst-initorder.out): Likewise.
4216         ($(objpfx)tst-initorder2.out): Likewise.
4217         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
4218         $(test-program-cmd).
4219         ($(objpfx)tst-array1-static.out): Likewise.
4220         ($(objpfx)tst-array2.out): Likewise.
4221         ($(objpfx)tst-array3.out): Likewise.
4222         ($(objpfx)tst-array4.out): Likewise.
4223         ($(objpfx)tst-array5.out): Likewise.
4224         ($(objpfx)tst-array5-static.out): Likewise.
4225         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
4226         $(test-program-cmd).
4227         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
4228         $(run-program-prefix) with $(test-program-prefix).
4229         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
4230         (test_program_prefix): This.
4231         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
4232         $(run-program-prefix) with $(test-program-prefix).
4233         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
4234         (test_program_prefix): This.
4235         * iconvdata/tst-tables.sh: Likewise.
4236         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
4237         $(run-program-prefix) with $(test-program-prefix).
4238         ($(objpfx)tst-translit.out): Likewise.
4239         ($(objpfx)tst-gettext2.out): Likewise.
4240         ($(objpfx)tst-gettext4.out): Likewise.
4241         ($(objpfx)tst-gettext6.out): Likewise.
4242         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
4243         (test_program_prefix): This.
4244         * intl/tst-gettext2.sh: Likewise.
4245         * intl/tst-gettext4.sh  Likewise.
4246         * intl/tst-gettext6.sh: Likewise.
4247         * intl/tst-translit.sh: Likewise.
4248         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
4249         with $(test-program-cmd).
4250         * libio/Makefile ($(objpfx)test-freopen.out): Replace
4251         $(run-program-prefix) with $(test-program-prefix).
4252         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
4253         (test_program_prefix): This.
4254         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
4255         $(run-program-prefix) with $(test-program-prefix).
4256         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
4257         (test_program_prefix): This.
4258         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
4259         * posix/Makefile ($(objpfx)globtest.out): Replace
4260         $(run-via-rtld-prefix) and $(test-wrapper) with
4261         $(test-program-prefix) and $(test-via-rtld-prefix).
4262         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
4263         $(test-program-prefix).
4264         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
4265         $(host-test-program-cmd).
4266         (tst-spawn-ARGS): Likewise.
4267         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
4268         $(test-program-prefix).
4269         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
4270         (test_via_rtld_prefix): This.
4271         (test_wrapper): Renamed to ...
4272         (test_program_prefix): This.
4273         (run_program_prefix): Replaced by test_program_prefix.
4274         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
4275         (test_program_prefix): This.
4276         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
4277         with $(host-test-program-cmd).
4278         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
4279         $(run-program-prefix) with $(test-program-prefix).
4280         ($(objpfx)tst-printf.out): Likewise.
4281         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
4282         $(test-program-cmd).
4283         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
4284         (test_program_prefix): This.
4285         * stdio-common/tst-unbputc.sh: Likewise.
4286         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
4287         $(run-program-prefix) with $(test-program-prefix).
4288         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
4289         (test_program_prefix): This.
4290         * string/Makefile ($(objpfx)tst-svc.out):  Replace
4291         $(built-program-cmd) with $(test-program-cmd).
4292
4293 2013-01-11  Andreas Jaeger  <aj@suse.de>
4294
4295         [BZ #15003]
4296         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
4297         value. Sync with Linux 3.7.
4298
4299 2013-01-10  David S. Miller  <davem@davemloft.net>
4300
4301         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
4302         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4303         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4304
4305 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4306
4307         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
4308         never set.
4309         * configure: Regenerated.
4310
4311 2013-01-10  David S. Miller  <davem@davemloft.net>
4312
4313         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
4314         sparc V9 rather than using V8 code.
4315         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
4316         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
4317
4318 2013-01-10  Roland McGrath  <roland@hack.frob.com>
4319
4320         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
4321         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
4322         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
4323         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
4324         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
4325         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
4326         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
4327         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
4328         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
4329         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
4330         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
4331         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
4332         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
4333         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
4334         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
4335         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
4336         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
4337         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
4338         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
4339         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
4340         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
4341         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
4342         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
4343         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
4344         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
4345         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
4346         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
4347
4348 2013-01-10  David S. Miller  <davem@davemloft.net>
4349
4350         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4351
4352 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4353
4354         * posix/Makefile (tests-static): New variable.
4355         (tests): Add $(tests-static).
4356         (tst-exec-static-ARGS): New variable.
4357         (tst-spawn-static-ARGS): Likewise.
4358         * posix/tst-exec-static.c: New file.
4359         * posix/tst-spawn-static.c: Likewise.
4360         * posix/tst-exec.c: Support run directly.
4361         * posix/tst-spawn.c: Likewise.
4362
4363 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
4364
4365         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
4366         long.
4367         * math/bits/mathcalls.h (llrint): Likewise.
4368         (llround): Likewise.
4369         * stdlib/stdlib.h (struct drand48_data): Likewise.
4370         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
4371         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
4372         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
4373         Likewise.
4374         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
4375         Likewise.
4376         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
4377         (elf_greg_t): Likewise.
4378         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
4379         (__jmp_buf): Likewise.
4380         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
4381         definitions.
4382         (llrint): Likewise, for all definitions.
4383         (llrintl): Likewise.
4384
4385         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
4386         Remove [__GNUC__] condition.
4387         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
4388         condition to just [__USE_ISOC99].
4389         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
4390
4391 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
4392
4393         [BZ #14200]
4394         * sysdeps/unix/sysv/linux/x86/bits/environments.h
4395         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
4396         defined.
4397         (_POSIX_V6_ILP32_OFF32): Likewise.
4398         (_XBS5_ILP32_OFF32): Likewise.
4399         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
4400         (__ILP32_OFFBIG_LDFLAGS): Likewise.
4401
4402 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4403
4404         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
4405
4406         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
4407         doubles __mpexp_twomm1.  Adjust usage.
4408         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
4409         Remove.
4410
4411 2013-01-10  Andreas Schwab  <schwab@suse.de>
4412
4413         [BZ #14964]
4414         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
4415         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
4416
4417 2013-01-09  David S. Miller  <davem@davemloft.net>
4418
4419         [BZ #15003]
4420         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
4421         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
4422         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
4423         TCP_FASTOPEN): Define.
4424         (tcp_repair_opt): New structure.
4425         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
4426         enum values.
4427         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
4428         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
4429         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
4430         (tcp_cookie_transactions): New structure.
4431
4432 2013-01-09  Anton Blanchard  <anton@samba.org>
4433
4434         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
4435         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
4436         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
4437         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
4438
4439 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
4440
4441         * include/features.h (__USE_ANSI): Remove.
4442
4443 2013-01-09  Roland McGrath  <roland@hack.frob.com>
4444
4445         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
4446
4447         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
4448
4449 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
4450
4451         * sysdeps/s390/fpu/libm-test-ulps: Update.
4452
4453         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4454
4455         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
4456         (__acr): Likewise.
4457         (__cpy): Likewise.
4458         (norm): Likewise.
4459         (denorm): Likewise.
4460         (__mp_dbl): Likewise.
4461         (__dbl_mp): Likewise.
4462         (add_magnitudes): Likewise.
4463         (sub_magnitudes): Likewise.
4464         (__add): Likewise.
4465         (__sub): Likewise.
4466         (__mul): Likewise.
4467         (__inv): Likewise.
4468         (__dvd): Likewise.
4469         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
4470         (__acr): Likewise.
4471         (__cpy): Likewise.
4472         (norm): Likewise.
4473         (denorm): Likewise.
4474         (__mp_dbl): Likewise.
4475         (__dbl_mp): Likewise.
4476         (add_magnitudes): Likewise.
4477         (sub_magnitudes): Likewise.
4478         (__add): Likewise.
4479         (__sub): Likewise.
4480         (__mul): Likewise.
4481         (__inv): Likewise.
4482         (__dvd): Likewise.
4483         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
4484         (__acr): Likewise.
4485         (__cpy): Likewise.
4486         (norm): Likewise.
4487         (denorm): Likewise.
4488         (__mp_dbl): Likewise.
4489         (__dbl_mp): Likewise.
4490         (add_magnitudes): Likewise.
4491         (sub_magnitudes): Likewise.
4492         (__add): Likewise.
4493         (__sub): Likewise.
4494         (__mul): Likewise.
4495         (__inv): Likewise.
4496         (__dvd): Likewise.
4497
4498 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
4499
4500         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
4501         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
4502         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
4503         2 && __USE_EXTERN_INLINES]: Likewise.
4504
4505 2013-01-08  Andreas Jaeger  <aj@suse.de>
4506
4507         [BZ# 14985]
4508         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
4509         Remove.
4510         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4511         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
4512
4513 2013-01-07  Anton Blanchard  <anton@samba.org>
4514
4515         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
4516         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4517         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
4518         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4519         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
4520         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4521         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
4522         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4524         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4525         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4526         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4527         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4528         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4529         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
4530         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4531         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4532         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4533         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
4534         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
4535         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
4536         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
4537         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4538         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
4539         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
4540         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
4541         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4542         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
4543         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
4544         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4545         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
4546         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4547         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4548         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4549         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4550         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4551         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4552         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
4553         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
4554         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
4555         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
4556         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4557         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4558
4559 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
4560
4561         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
4562         (__MALLOC_PMT): Likewise.
4563         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
4564         [__GNUC__], only on [_LIBC].
4565         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4566         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
4567         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
4568         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
4569         forward declaration.
4570         (realloc_hook_ini): Likewise.
4571         (memalign_hook_ini): Likewise.
4572         (__libc_memalign): Do not use __MALLOC_PMT in variable
4573         declaration.
4574         (__libc_valloc): Likewise.
4575         (__libc_pvalloc): Likewise.
4576         (__libc_calloc): Likewise.
4577         (__posix_memalign): Likewise.
4578
4579         [BZ #14996]
4580         * math/s_casinh.c: Include <float.h>.
4581         (__casinh): Do not do computation with squaring and square root
4582         for large arguments.
4583         * math/s_casinhf.c: Include <float.h>.
4584         (__casinhf): Do not do computation with squaring and square root
4585         for large arguments.
4586         * math/s_casinhl.c: Include <float.h>.
4587         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
4588         (__casinhl): Do not do computation with squaring and square root
4589         for large arguments.
4590         * math/libm-test.inc (casin_test): Add more tests.
4591         (casinh_test): Likewise.
4592         * sysdeps/i386/fpu/libm-test-ulps: Update.
4593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4594
4595 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
4596
4597         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
4598         (__x86_64_raw_data_cache_size): Likewise.
4599         (__x86_64_data_cache_size_half): Likewise.
4600         (__x86_64_raw_data_cache_size_half): Likewise.
4601         (__x86_64_shared_cache_size): Likewise.
4602         (__x86_64_raw_shared_cache_size): Likewise.
4603         (__x86_64_shared_cache_size_half): Likewise.
4604         (__x86_64_raw_shared_cache_size_half): Likewise.
4605         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
4606         to ...
4607         (__x86_data_cache_size): This.
4608         (__x86_64_raw_data_cache_size): Renamed to ...
4609         (__x86_raw_data_cache_size): This.
4610         (__x86_64_data_cache_size_half): Renamed to ...
4611         (__x86_data_cache_size_half): This.
4612         (__x86_64_raw_data_cache_size_half): Renamed to ...
4613         (__x86_raw_data_cache_size_half): This.
4614         (__x86_64_shared_cache_size): Renamed to ...
4615         (__x86_shared_cache_size): This.
4616         (__x86_64_raw_shared_cache_size): Renamed to ...
4617         (__x86_raw_shared_cache_size): This.
4618         (__x86_64_shared_cache_size_half): Renamed to ...
4619         (__x86_shared_cache_size_half): This.
4620         (__x86_64_raw_shared_cache_size_half): Renamed to ...
4621         (__x86_raw_shared_cache_size_half): This.
4622         * sysdeps/x86_64/memcpy.S: Updated.
4623         * sysdeps/x86_64/memset.S: Likewise.
4624         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4625         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4626         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4627
4628 2013-01-04  David S. Miller  <davem@davemloft.net>
4629
4630         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4631
4632 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
4633
4634         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
4635         1 to avoid redefinition warning.
4636         (__USE_GNU): Don't define.
4637         (init_signaling_nan): Protoize.
4638
4639         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4640
4641 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4642
4643         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
4644         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
4645         (__cpymn): Likewise.
4646         (norm): Remove commented code.
4647         (denorm): Likewise.
4648         (__mp_dbl): Likewise.
4649         (__inv): Likewise.
4650         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
4651         (__cpymn): Likewise.
4652         (norm): Remove commented code.
4653         (denorm): Likewise.
4654         (__mp_dbl): Likewise.
4655         (__inv): Likewise.
4656
4657         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
4658         mp_no value for 1.0 and 2.0.
4659         (norm): Use RADIXI instead of radixi.d.
4660         (denorm): Likewise.
4661         (__mul): Use 0.0 instead of zero.d.
4662         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
4663         mp_no value for 1.0 and 2.0.
4664         (norm): Use RADIXI instead of radixi.d.
4665         (denorm): Likewise.
4666         (__mul): Use 0.0 instead of zero.d.
4667
4668 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
4669
4670         [BZ #14994]
4671         * math/s_casinh.c (__casinh): Reduce finite argument to first
4672         quadrant then set signs of results at the end.
4673         * math/s_casinhf.c (__casinhf): Likewise.
4674         * math/s_casinhl.c (__casinhl): Likewise.
4675         * math/libm-test.inc (casin_test): Add more tests.
4676         (casinh_test): Likewise.
4677         * sysdeps/i386/fpu/libm-test-ulps: Update.
4678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4679
4680 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4681
4682         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
4683
4684         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
4685
4686         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
4687         declarations.
4688         (denorm): Likewise.
4689         (__mp_dbl): Likewise.
4690         (__inv): Likewise.
4691
4692         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
4693         and adjust the header comment.
4694
4695         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
4696         variable name from declaration.
4697
4698 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
4699
4700         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4701         Initialize COMMON_CPUID_INDEX_7 element.
4702         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
4703         (CPUID_RTM): Likewise.
4704         (HAS_RTM): Likewise.
4705         (COMMON_CPUID_INDEX_7): New enum.
4706
4707 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
4708
4709         [BZ #14981]
4710         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
4711         size is zero, record memory as freed.
4712
4713 2013-01-03  Andreas Jaeger  <aj@suse.de>
4714
4715         * po/ia.po: Add new Interlingua translation.
4716
4717 2012-01-03  Allan McRae  <allan@archlinux.org>
4718
4719         * locale/programs/localedef.c: Fix description of '--posix' flag.
4720
4721 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
4722
4723         * NEWS: Update dates in second copyright notice.
4724         * README: Update copyright dates in example.
4725         * manual/libc.texinfo: Update copyright dates.
4726         * scripts/test-installation.pl: Update copyright date in --version
4727         output.
4728
4729         * hurd/ctty-input.c: Fix copyright notice formatting.
4730         * hurd/ctty-output.c: Likewise.
4731         * hurd/dtable.c: Likewise.
4732         * hurd/hurd-raise.c: Likewise.
4733         * hurd/hurdprio.c: Likewise.
4734         * hurd/msgportdemux.c: Likewise.
4735         * misc/sys/file.h: Likewise.
4736         * misc/sys/ioctl.h: Likewise.
4737         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
4738         * sysdeps/mach/hurd/chdir.c: Likewise.
4739         * sysdeps/mach/hurd/fchdir.c: Likewise.
4740         * sysdeps/mach/hurd/rename.c: Likewise.
4741         * sysdeps/mach/hurd/rmdir.c: Likewise.
4742         * sysdeps/mach/hurd/seekdir.c: Likewise.
4743         * sysdeps/mach/hurd/setsid.c: Likewise.
4744         * sysdeps/posix/wait3.c: Likewise.
4745
4746         * All files with FSF copyright notices: Update copyright dates
4747         using scripts/update-copyrights.
4748         * intl/plural.c: Regenerated.
4749         * locale/programs/charmap-kw.h: Likewise.
4750         * locale/programs/locfile-kw.h: Likewise.
4751
4752 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
4753
4754         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
4755         four values.
4756
4757         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
4758         calculation loop and add branch prediction.
4759
4760         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
4761         check access beyond bounds of m1np.
4762
4763         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4764         MPTWO.
4765         (__inv): Remove local variable MPTWO to use the global
4766         constant.
4767         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
4768         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4769         variable MPTWO.
4770         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
4771         MP3HALFS static const.
4772
4773 2013-01-01  David S. Miller  <davem@davemloft.net>
4774
4775         * po/ca.po: Update from translation team.
4776
4777 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
4778
4779         * scripts/update-copyrights: New file.
4780         * Makeconfig: Reformat copyright notice.
4781         * ctype/ctype.h: Likewise.
4782         * debug/swprintf_chk.c: Likewise.
4783         * elf/dl-cache.c: Likewise.
4784         * elf/dl-debug.c: Likewise.
4785         * elf/dl-object.c: Likewise.
4786         * grp/initgroups.c: Likewise.
4787         * hurd/Makefile: Likewise.
4788         * hurd/hurd/signal.h: Likewise.
4789         * hurd/hurdfault.c: Likewise.
4790         * hurd/hurdioctl.c: Likewise.
4791         * hurd/hurdlookup.c: Likewise.
4792         * hurd/intr-msg.c: Likewise.
4793         * iconv/gconv_open.c: Likewise.
4794         * libio/swprintf.c: Likewise.
4795         * locale/lc-ctype.c: Likewise.
4796         * locale/nl_langinfo.c: Likewise.
4797         * mach/Machrules: Likewise.
4798         * mach/Makefile: Likewise.
4799         * malloc/obstack.h: Likewise.
4800         * manual/Makefile: Likewise.
4801         * manual/tsort.awk: Likewise.
4802         * misc/bits/stab.def: Likewise.
4803         * nis/nis_print_group_entry.c: Likewise.
4804         * nis/nis_table.c: Likewise.
4805         * nis/nss_compat/compat-pwd.c: Likewise.
4806         * nis/nss_compat/compat-spwd.c: Likewise.
4807         * po/Makefile: Likewise.
4808         * posix/fnmatch.c: Likewise.
4809         * posix/regex.h: Likewise.
4810         * resolv/Makefile: Likewise.
4811         * resolv/nss_dns/dns-network.c: Likewise.
4812         * resolv/res_hconf.c: Likewise.
4813         * scripts/gen-sorted.awk: Likewise.
4814         * soft-fp/soft-fp.h: Likewise.
4815         * stdio-common/printf.h: Likewise.
4816         * stdlib/monetary.h: Likewise.
4817         * stdlib/random.c: Likewise.
4818         * stdlib/random_r.c: Likewise.
4819         * sysdeps/generic/Makefile: Likewise.
4820         * sysdeps/gnu/Makefile: Likewise.
4821         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
4822         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
4823         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4824         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4825         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4826         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
4827         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4828         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4829         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4830         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
4831         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
4832         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
4833         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
4834         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
4835         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
4836         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
4837         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
4838         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4839         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4840         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4841         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
4842         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
4843         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
4844         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
4845         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
4846         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
4847         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4848         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
4849         * sysdeps/mach/hurd/errnos.awk: Likewise.
4850         * sysdeps/mach/hurd/fork.c: Likewise.
4851         * sysdeps/mach/hurd/getcwd.c: Likewise.
4852         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
4853         * sysdeps/mach/hurd/mmap.c: Likewise.
4854         * sysdeps/mach/hurd/utimes.c: Likewise.
4855         * sysdeps/mach/hurd/xmknod.c: Likewise.
4856         * sysdeps/posix/profil.c: Likewise.
4857         * sysdeps/posix/readdir_r.c: Likewise.
4858         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4859         * sysdeps/powerpc/bits/setjmp.h: Likewise.
4860         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
4861         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
4862         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4863         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
4864         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
4865         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4866         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
4867         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
4868         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
4869         * sysdeps/pthread/lio_listio.c: Likewise.
4870         * sysdeps/sparc/dl-procinfo.h: Likewise.
4871         * sysdeps/unix/i386/sysdep.S: Likewise.
4872         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4873         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
4874         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4875         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
4876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4877         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4878         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4879         * sysdeps/unix/sysv/linux/speed.c: Likewise.
4880         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
4881         * sysdeps/wordsize-32/divdi3.c: Likewise.
4882         * time/sys/time.h: Likewise.
4883         * wcsmbs/Makefile: Likewise.
4884
4885 2013-01-01  David S. Miller  <davem@davemloft.net>
4886
4887         * po/fr.po: Update from translation team.
4888
4889         * catgets/gencat.c: Update copyright year.
4890         * csu/version.c: Likewise.
4891         * debug/catchsegv.sh: Likewise.
4892         * debug/pcprofiledump.c: Likewise.
4893         * debug/xtrace.sh: Likewise.
4894         * elf/ldconfig.c: Likewise.
4895         * elf/ldd.bash.in: Likewise.
4896         * elf/pldd.c: Likewise.
4897         * elf/sotruss.ksh: Likewise.
4898         * elf/sprof.c: Likewise.
4899         * iconv/iconv_prog.c: Likewise.
4900         * iconv/iconvconfig.c: Likewise.
4901         * locale/programs/locale.c: Likewise.
4902         * locale/programs/localedef.c: Likewise.
4903         * login/programs/pt_chown.c: Likewise.
4904         * malloc/memusage.sh: Likewise.
4905         * malloc/memusagestat.c: Likewise.
4906         * malloc/mtrace.pl: Likewise.
4907         * nscd/nscd.c: Likewise.
4908         * nss/getent.c: Likewise.
4909         * nss/makedb.c: Likewise.
4910         * posix/getconf.c: Likewise.
4911
4912 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
4913
4914         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
4915         numbers.
4916
4917 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
4918
4919         * math/bits/mathcalls.h (modf): Use __nonnull.
4920
4921 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4922
4923         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
4924         (split): Use macro CN instead of the bare value.
4925         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
4926         could be used.
4927         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
4928         instead of the bare value.
4929         (power1): Likewise.
4930
4931 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4932
4933         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
4934         __ATAN_TWOM.
4935         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
4936
4937         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
4938         their values.
4939         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
4940         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
4941         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
4942         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
4943
4944 2012-12-28  Andreas Jaeger  <aj@suse.de>
4945
4946         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
4947         values are from Linux 3.7.
4948
4949         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
4950         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
4951
4952 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4953
4954         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
4955         TRUE case.
4956
4957         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
4958         (norm): Likewise.
4959         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
4960         variables with preprocessor constants.
4961         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
4962         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
4963         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
4964
4965 2012-12-27  Bruno Haible  <bruno@clisp.org>
4966
4967         [BZ #14317]
4968         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
4969         only if needed.
4970
4971 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4972
4973         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
4974         and use variable directly.
4975         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
4976
4977         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
4978         MPONE.
4979         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
4980         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
4981         variable MPONE.
4982         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
4983         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
4984         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
4985         include directive.  Remove local variable MPONE.
4986         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
4987         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
4988         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
4989
4990 2012-12-25  David S. Miller  <davem@davemloft.net>
4991
4992         * version.h (RELEASE): Set to "development".
4993         (VERSION): Set to "2.17.90".
4994         * NEWS: Add 2.18 section.
4995
4996 2012-12-21  David S. Miller  <davem@davemloft.net>
4997
4998         * po/hr.po: Update from translation team.
4999
5000 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5001
5002         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
5003
5004 2012-12-19  Steve Ellcey  <sellcey@mips.com>
5005
5006         * NEWS:  Mention new memcpy for MIPS.
5007
5008 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5009
5010         * manual/contrib.texi (Contributors): Spelling correction.
5011
5012 2012-12-15  David S. Miller  <davem@davemloft.net>
5013
5014         * po/ru.po: Update from translation team.
5015
5016 2012-12-13  David S. Miller  <davem@davemloft.net>
5017
5018         * NEWS: Mention IFUNC testsuite enhancements.
5019
5020         * po/pl.po: Update from translation team.
5021         * po/bg.po: Likewise.
5022
5023         * manual/contrib.texi (Contributors): Update entries for Hongjiu
5024         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
5025
5026 2012-12-11  David S. Miller  <davem@davemloft.net>
5027
5028         * po/sv.po: Update from translation team.
5029
5030         * po/vi.po: Update from translation team.
5031
5032         * po/cs.po: Update from translation team.
5033
5034         * po/de.po: Update from translation team.
5035         * po/eo.po: Likewise.
5036         * po/nl.po: Likewise.
5037
5038 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5039
5040         [BZ #14246]
5041         * manual/argp.texi (Argp Helper Functions): Move node to follow
5042         Argp Parsing State.
5043
5044         [BZ #14872]
5045         * manual/conf.texi (Limits on File System Capacity): Mention if
5046         terminating null is included in the max size.
5047
5048 2012-12-10  Andreas Jaeger  <aj@suse.de>
5049
5050         * po/cs.po: Update from translation team.
5051
5052 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5053
5054         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
5055         void pointer and cast to uintptr_t.
5056         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
5057         path.
5058         * sysdeps/s390/s390-64/memcpy.S: Likewise.
5059         * sysdeps/s390/s390-64/memset.S: Likewise.
5060
5061 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
5062
5063         [BZ #14833]
5064         * menual/message.texi (Message Translation): Fix typos.
5065         (Helper programs for gettext): Likewise.
5066
5067 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
5068
5069         [BZ #14898]
5070         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
5071         Change to -1.
5072
5073 2012-12-07  David S. Miller  <davem@davemloft.net>
5074
5075         * po/libc.pot: Update.
5076
5077 2012-12-07  Richard Henderson  <rth@redhat.com>
5078
5079         [BZ #10114]
5080         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
5081         normal/normal case to before the switch.
5082         (_FP_DIV): Likewise.
5083
5084 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
5085             Mike Frysinger  <vapier@gentoo.org>
5086
5087         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
5088         check for __NR_fadvise64_64.
5089
5090 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
5091
5092         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
5093         0, not just to plain "0" as a statement.
5094         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
5095         with cw.
5096
5097 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
5098
5099         * NEWS: Use sourceware.org in Bugzilla URL.
5100
5101 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5102
5103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5104         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5105
5106         * stdio-common/tst-put-error.c (do_test): Add newline to the
5107         padded test to ensure flush.
5108
5109 2012-12-05  Jeff Law  <law@redhat.com>
5110
5111         * sunrpc/etc.rpc (fedfs_admin): Add entry.
5112
5113 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
5114
5115         * README: Don't refer to ports add-on as distributed separately.
5116         Mention AArch64 in list of systems supported in the ports add-on.
5117
5118         * LICENSES: Add more non-FSF copyright and license notices.
5119
5120         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
5121         ((unused)).
5122
5123         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
5124
5125         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
5126         10000 as width of padded output.
5127
5128 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5129
5130         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
5131
5132         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
5133         variable LX with __attribute__ ((unused)).
5134         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
5135         Likewise.
5136         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
5137         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5138         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
5139         with __attribute__ ((unused)).
5140
5141 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
5142
5143         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
5144
5145 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
5146
5147         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
5148         (CFLAGS-nldbl-acos.c): New variable.
5149         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
5150         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
5151         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
5152         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
5153         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
5154         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
5155         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
5156         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
5157         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
5158         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
5159         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
5160         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
5161         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
5162         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
5163         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
5164         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
5165         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
5166         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
5167         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
5168         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
5169         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
5170         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
5171         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
5172         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
5173         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
5174         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
5175         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
5176         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
5177         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
5178         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
5179         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
5180         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
5181         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
5182         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
5183         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
5184         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
5185         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
5186         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
5187         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
5188         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
5189         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
5190         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
5191         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
5192         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
5193         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
5194         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
5195         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
5196         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
5197         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
5198         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
5199         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
5200         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
5201         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
5202         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
5203         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
5204         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
5205         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
5206         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
5207         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
5208         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
5209         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
5210         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
5211         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
5212         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
5213         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
5214         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
5215         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
5216         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
5217         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
5218         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
5219         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
5220         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
5221         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
5222         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
5223         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
5224         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
5225         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
5226         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
5227         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
5228         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
5229         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
5230         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
5231         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
5232         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
5233         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
5234         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
5235         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
5236         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
5237         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
5238         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
5239         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
5240         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
5241         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
5242         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
5243         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
5244         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
5245         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
5246
5247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
5248         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
5249
5250         [BZ #14914]
5251         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
5252         whole low double instead of just low 47 bits when splitting values
5253         into two parts.
5254
5255 2012-12-03  Allan McRae  <allan@archlinux.org>
5256
5257         * manual/stdio.texi (Predefined Printf Handlers): Remove
5258         @hsep and @vsep usage.
5259
5260 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
5261
5262         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
5263         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
5264
5265 2012-12-03  Jeff Law  <law@redhat.com>
5266
5267         * time/sys/time.h (settimeofday): Do not mark TV argument
5268         as __nonnull.
5269
5270 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
5271
5272         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
5273         when currently writing and seek to current position when not.
5274         * libio/Makefile (tests): Remove bug-fclose1.
5275         * libio/bug-fclose1.c: Delete.
5276
5277 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
5278
5279         * manual/arith.texi (feenableexcept): Fix typo.
5280         (fedisableexcept): Likewise.
5281
5282 2012-11-30  Roland McGrath  <roland@hack.frob.com>
5283
5284         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
5285         second, differently-typed declaration, rather than a cast.
5286
5287 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5288
5289         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
5290         * include/rpc/svc.h: ... here.
5291
5292 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
5293
5294         [BZ #13013]
5295         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
5296         depending n and resplen2 to catch cases where answer
5297         equals answerp2.
5298
5299 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
5300
5301         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
5302         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
5303
5304 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
5305
5306         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
5307
5308 2012-11-29  Roland McGrath  <roland@hack.frob.com>
5309
5310         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
5311
5312 2012-11-28  Jeff Law  <law@redhat.com>
5313
5314         [BZ #13761]
5315         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
5316         dataset_temporary.  Track alloca usage into alloca_used.
5317         If dataset is large allocate and release it via malloc/free.
5318
5319 2012-06-04  Florian Weimer  <fweimer@redhat.com>
5320
5321         [BZ #14197]
5322         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
5323
5324 2012-11-28  David S. Miller  <davem@davemloft.net>
5325
5326         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5327
5328 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5329
5330         [BZ #14803]
5331         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
5332         of pi/2 rounded to nearest to 64 bits.
5333         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
5334         nearest to 64 bits.
5335         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
5336         bits.
5337
5338 2012-11-28  Jeff Law <law@redhat.com>
5339             Martin Osvald <mosvald@redhat.com>
5340
5341         [BZ #14889]
5342         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
5343         * sunrpc/svc.c: Include time.h.
5344         (__svc_accept_failed): New function.
5345         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
5346         any reason other than EINTR, call __svc_accept_failed.
5347         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
5348         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
5349
5350 2012-11-28  Andreas Schwab  <schwab@suse.de>
5351
5352         * scripts/abilist.awk: Also handle indirect functions in .opd
5353         section.
5354
5355 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
5356
5357         [BZ #13881]
5358         * sysdeps/x86/fpu/powl_helper.c: New file.
5359         * sysdeps/x86/fpu/Makefile: Likewise.
5360         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
5361         (p3): New object.
5362         (__ieee754_powl): Use __powl_helper for finite arguments except
5363         integer exponents below 8.
5364         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
5365         (p3): New object.
5366         (__ieee754_powl): Use __powl_helper for finite arguments except
5367         integer exponents below 8.
5368         * math/libm-test.inc (pow_test): Add more tests and enable some
5369         previously disabled tests.
5370         * sysdeps/i386/fpu/libm-test-ulps: Update.
5371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5372
5373 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5374             Carlos O'Donell  <carlos_odonell@mentor.com>
5375
5376         * nss/makedb.c (is_prime): Assert that input is odd and greater
5377         than 4.  Note that fact in a comment too.
5378         (next_prime): Add 4 to input.
5379
5380 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5381
5382         [BZ #11741]
5383         * libio/Makefile (tests): Add test case tst-fwrite-error.
5384         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
5385         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5386         * libio/tst-fwrite-error.c: New test case.
5387
5388 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
5389
5390         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
5391         before casting to void *.
5392         * include/libc-internal.h (__pointer_type): New macro.
5393         (__integer_if_pointer_type_sub): Likewise.
5394         (__integer_if_pointer_type): Likewise.
5395         (cast_to_integer): Likewise.
5396         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
5397         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
5398         before casting to atomic64_t.
5399         (atomic_exchange_acq): Likewise.
5400         (__arch_exchange_and_add_body): Likewise.
5401         (__arch_add_body): Likewise.
5402         (atomic_add_negative): Likewise.
5403         (atomic_add_zero): Likewise.
5404
5405 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
5406
5407         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
5408         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
5409         (add_fdes): Likewise.
5410         (linear_search_fdes): Likewise.
5411         (binary_search_unencoded_fdes): Likewise.
5412
5413 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
5414
5415         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
5416
5417 2012-11-24  Adam Conrad  <adconrad@0c3.net>
5418
5419         * configure.in: Autodetect C++ header directories.
5420         * configure: Regenerated.
5421
5422 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
5423
5424         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
5425
5426 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
5427
5428         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5429
5430 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
5431
5432         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
5433         LDBL_MANT_DIG == 106]: Disable some tests.
5434         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5435         Likewise.
5436         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
5437         Likewise.
5438
5439         [BZ #14871]
5440         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
5441         input for small inputs.  Return +/- pi/2 for large inputs.
5442         * math/libm-test.inc (atan_test): Add more tests.
5443
5444         * sysdeps/generic/unwind-dw2-fde-glibc.c
5445         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
5446         __attribute__ ((unused)).
5447
5448         [BZ #14645]
5449         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
5450         x * y if x and y are nonzero and z is zero.
5451
5452         [BZ #14811]
5453         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
5454         nonzero exponents with absolute value below 0x1p-117 to +/-
5455         0x1p-117.
5456
5457         [BZ #14869]
5458         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
5459         up arguments below 2**-450, not just those below 2**-500.
5460         * math/libm-test.inc (hypot_test): Add another test.
5461
5462         [BZ #14868]
5463         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
5464         Return a+b for ratio over 2**120, not 2**60.
5465         * math/libm-test.inc (hypot_test): Add another test.
5466
5467         * math/libm-test.inc (clog_test): Use
5468         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
5469         (clog10_test): Likewise.
5470
5471         [BZ #6778]
5472         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
5473
5474 2012-11-22  Andreas Schwab  <schwab@suse.de>
5475
5476         * sysdeps/i386/fpu/libm-test-ulps: Update.
5477
5478 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
5479
5480         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
5481         printf output with newline.
5482
5483 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
5484
5485         [BZ #14865]
5486         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
5487         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
5488         -z nodlopen, -z initfirst and -z execstack support.
5489         * configure: Regenerated.
5490
5491         * elf/elf.h (DF_1_NODIRECT): New macro.
5492         (DF_1_IGNMULDEF): Likewise.
5493         (DF_1_NOKSYMS): Likewise.
5494         (DF_1_NOHDR): Likewise.
5495         (DF_1_EDITED): Likewise.
5496         (DF_1_NORELOC): Likewise.
5497         (DF_1_SYMINTPOSE): Likewise.
5498         (DF_1_GLOBAUDIT): Likewise.
5499         (DF_1_SINGLETON): Likewise.
5500         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
5501         DT_1_SUPPORTED_MASK bits.
5502         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
5503
5504 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
5505
5506         * sysdeps/unix/make-syscalls.sh: Document prefixes.
5507
5508 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
5509
5510         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
5511         macro.
5512
5513         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
5514         (sendmmsg): Move declarations...
5515         * socket/sys/socket.h: ... here.
5516         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
5517         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
5518         include it from...
5519         * socket/recvmmsg.c: ... this new file.
5520         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
5521         (sendmmsg): Rename to __sendmmsg, create weak alias and make
5522         definition of __sendmmsg hidden.
5523         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
5524         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
5525         Move ENOSYS stub into and include it from...
5526         * socket/sendmmsg.c: ... this new file.
5527         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
5528         (sysdep_routines): Move recvmmsg and sendmmsg...
5529         * socket/Makefile (routines): ... here.
5530         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
5531         (GLIBC_PRIVATE): Add __sendmmsg.
5532         * include/sys/socket.h (__sendmmsg): Add declarations.
5533         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
5534         sendmmsg.
5535
5536 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
5537
5538         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
5539         variable I1 with __attribute__ ((unused)).
5540         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
5541
5542 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5543
5544         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
5545         DUMMY variables with __attribute__ ((unused)).
5546
5547         * bits/byteswap.h: Include <bits/types.h>.
5548         (__bswap_64): Use __uint64_t instead of unsigned long long int.
5549
5550 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5551
5552         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
5553         string_t.  Do not manually set errno.
5554         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
5555         length with __strnlen.  Make sure to both set errno and return it on
5556         failure.
5557
5558 2012-11-19  David S. Miller  <davem@davemloft.net>
5559
5560         With help from Joseph Myers.
5561         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
5562         very large arguments properly.
5563         * math/libm-test.inc (atan_test): New tests.
5564         (atan2_test): New tests.
5565         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5566         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5567
5568 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
5569
5570         [BZ #14856]
5571         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
5572         Define to 3.
5573
5574         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
5575         [POSIX] (EADDRNOTAVAIL): Likewise.
5576         [POSIX] (EAFNOSUPPORT): Likewise.
5577         [POSIX] (EALREADY): Likewise.
5578         [POSIX] (ECONNABORTED): Likewise.
5579         [POSIX] (ECONNREFUSED): Likewise.
5580         [POSIX] (ECONNRESET): Likewise.
5581         [POSIX] (EDESTADDRREQ): Likewise.
5582         [POSIX] (EDQUOT): Likewise.
5583         [POSIX] (EHOSTUNREACH): Likewise.
5584         [POSIX] (EIDRM): Likewise.
5585         [POSIX] (EISCONN): Likewise.
5586         [POSIX] (ELOOP): Likewise.
5587         [POSIX] (EMULTIHOP): Likewise.
5588         [POSIX] (ENETDOWN): Likewise.
5589         [POSIX] (ENETUNREACH): Likewise.
5590         [POSIX] (ENOBUFS): Likewise.
5591         [POSIX] (ENODATA): Likewise.
5592         [POSIX] (ENOLINK): Likewise.
5593         [POSIX] (ENOMSG): Likewise.
5594         [POSIX] (ENOPROTOOPT): Likewise.
5595         [POSIX] (ENOSR): Likewise.
5596         [POSIX] (ENOSTR): Likewise.
5597         [POSIX] (ENOTCONN): Likewise.
5598         [POSIX] (ENOTSOCK): Likewise.
5599         [POSIX] (EOPNOTSUPP): Likewise.
5600         [POSIX] (EOVERFLOW): Likewise.
5601         [POSIX] (EPROTO): Likewise.
5602         [POSIX] (EPROTONOSUPPORT): Likewise.
5603         [POSIX] (EPROTOTYPE): Likewise.
5604         [POSIX] (ESTALE): Likewise.
5605         [POSIX] (ETIME): Likewise.
5606         [POSIX] (ETXTBSY): Likewise.
5607         [POSIX] (EWOULDBLOCK): Likewise.
5608         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
5609         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
5610         [POSIX] (SEEK_CUR): Likewise.
5611         [POSIX] (SEEK_END): Likewise.
5612         [POSIX || UNIX98] (mode_t): Do not require.
5613         [POSIX] (off_t): Likewise.
5614         [POSIX] (pid_t): Likewise.
5615         [POSIX] (sys/stat.h): Do not allow header.
5616         [POSIX] (unistd.h): Likewise.
5617         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
5618         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
5619         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
5620         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
5621         require.
5622         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
5623         sigevent): Specify elements.
5624         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
5625         entry.
5626         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
5627         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
5628
5629         * conform/data/cpio.h-data [POSIX]: Disable whole file.
5630         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
5631         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
5632         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
5633         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
5634         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
5635         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
5636         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
5637         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
5638         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
5639         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
5640         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
5641         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
5642         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
5643         Likewise.
5644         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
5645         Likewise.
5646         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
5647         Likewise.
5648         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
5649         Likewise.
5650         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
5651         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
5652         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
5653         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
5654         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
5655         Specify lower bound on value.
5656         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
5657         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
5658         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
5659         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
5660         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
5661         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
5662         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
5663         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
5664         value.
5665         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
5666         as optional.
5667         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
5668         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
5669         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
5670         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
5671         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
5672         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
5673         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
5674         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
5675         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
5676         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
5677         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
5678         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
5679         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
5680         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
5681         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
5682         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
5683         entry.
5684         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
5685         optional.
5686         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
5687         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
5688         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
5689         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
5690         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
5691         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
5692         Likewise.
5693         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
5694         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
5695         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
5696         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
5697         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
5698         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
5699         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
5700         as optional.
5701         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
5702         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
5703         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
5704         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
5705         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
5706         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
5707         specify as optional.
5708         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
5709         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
5710         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
5711         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
5712         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
5713         [XPG3] (NL_LANGMAX): Likewise.
5714         [POSIX || XPG3] (NL_MSGMAX): Likewise.
5715         [POSIX || XPG3] (NL_NMAX): Likewise.
5716         [POSIX || XPG3] (NL_SETMAX): Likewise.
5717         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
5718         [XPG3] (NZERO): Likewise.
5719         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
5720         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
5721         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
5722         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
5723         (REG_ERANGE): Expect.
5724         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
5725         optional-constant.
5726         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
5727         Use (void) in prototype.
5728         [POSIX] (*_t): Allow.
5729         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
5730         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
5731         (WRDE_BADVAL): Expect.
5732
5733         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
5734         expect.
5735         [XPG3 || XPG4] (O_RSYNC): Likewise.
5736         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
5737         Likewise.
5738         [XPG3 || XPG4] (pthread_sigmask): Likewise.
5739         [XPG3 || XPG4] (sigqueue): Likewise.
5740         [XPG3 || XPG4] (sigtimedwait): Likewise.
5741         [XPG3 || XPG4] (sigwaitinfo): Likewise.
5742         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
5743         [XPG3 || XPG4] (vsnprintf): Likewise.
5744         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
5745         Likewise.
5746         [XPG3 || XPG4] (blksize_t): Likewise.
5747         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
5748         Likewise.
5749         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
5750         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
5751         [XPG3 || XPG4] (struct itimerspec): Likewise.
5752         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
5753         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
5754         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
5755         [XPG3 || XPG4] (clockid_t): Likewise.
5756         [XPG3 || XPG4] (timer_t): Likewise.
5757         [XPG3 || XPG4] (clock_getres): Likewise.
5758         [XPG3 || XPG4] (clock_gettime): Likewise.
5759         [XPG3 || XPG4] (clock_settime): Likewise.
5760         [XPG3 || XPG4] (nanosleep): Likewise.
5761         [XPG3 || XPG4] (timer_create): Likewise.
5762         [XPG3 || XPG4] (timer_delete): Likewise.
5763         [XPG3 || XPG4] (timer_gettime): Likewise.
5764         [XPG3 || XPG4] (timer_getoverrun): Likewise.
5765         [XPG3 || XPG4] (timer_settime): Likewise.
5766         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
5767         [XPG3 || XPG4] (getlogin_r): Likewise.
5768         [XPG3 || XPG4] (pread): Likewise.
5769         [XPG3 || XPG4] (pthread_atfork): Likewise.
5770         [XPG3 || XPG4] (pwrite): Likewise.
5771
5772         [BZ #14835]
5773         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
5774         <bits/siginfo.h>.
5775
5776 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
5777
5778         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
5779         finalizing MALLSTREAM.
5780
5781         * sysdeps/mach/hurd/syncfs.c: New file.
5782
5783 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5784
5785         [BZ #14719]
5786         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
5787         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
5788         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
5789         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
5790         (_nss_dns_gethostbyname4_r): Likewise.
5791         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
5792         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
5793
5794 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
5795
5796         [BZ #13763]
5797         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
5798
5799 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
5800
5801         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
5802         * elf/cache.c (print_entry): Print ",AArch64" for
5803         FLAG_AARCH64_LIB64
5804
5805         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
5806         * elf/cache.c (print_entry): Print ",hard-float" for
5807         FLAG_ARM_LIBHF.
5808
5809 2012-11-18  David S. Miller  <davem@davemloft.net>
5810
5811         With help from Joseph Myers.
5812         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
5813         cutoff to 2**-13.
5814         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
5815         cutoff to 2**-25.
5816         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
5817         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
5818         small.
5819         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
5820         * math/libm-test.inc (y0_test): New tests.
5821         (y1_test): New tests.
5822         * sysdeps/i386/fpu/libm-test-ulps: Update.
5823         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5824         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5825
5826 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
5827
5828         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
5829         64-bit targets.
5830         * configure: Regenerated.
5831
5832 2012-11-17  David S. Miller  <davem@davemloft.net>
5833
5834         [BZ #14811]
5835         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
5836         nonzero exponents with absolute value below 0x1p-128 to +/-
5837         0x1p-128.
5838
5839 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
5840
5841         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
5842
5843         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
5844
5845         * posix/getconf-speclist.c: New file.
5846         * posix/posix-envs.def: Likewise.
5847         * posix/confstr.c (START_ENV_GROUP): New macro.
5848         (END_ENV_GROUP): Likewise.
5849         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5850         (KNOWN_PRESENT_ENV_STRING): Likewise.
5851         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5852         (UNKNOWN_ENVIRONMENT): Likewise.
5853         (confstr): Include posix-envs.def instead of handling
5854         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
5855         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
5856         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
5857         (END_ENV_GROUP): Likewise.
5858         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
5859         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
5860         (UNKNOWN_ENVIRONMENT): Likewise.
5861         (__sysconf): Include posix-envs.def instead of handling associated
5862         cases directly here.
5863         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
5864         preprocessing getconf-speclist.c rather than running getconf or
5865         generating empty file.
5866
5867 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
5868
5869         * scripts/check-local-headers.sh: Ignore 'mach' headers.
5870
5871 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
5872
5873         [BZ #14672]
5874         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
5875
5876 2012-11-16  David S. Miller  <davem@davemloft.net>
5877
5878         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
5879         smaller than LDBL_EPSILON/2.0L, just return xm1.
5880
5881 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
5882
5883         * elf/tst-array1.c (init): Set constructor priority to 1000.
5884         (fini): Set destructor priority to 1000.
5885         * elf/tst-array2dep.c: Likewise.
5886
5887 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5888
5889         [BZ #11741]
5890         * libio/fileops.c (_IO_new_file_write): Correctly return error.
5891         (_IO_new_file_xsputn): Also return EOF if none of the input
5892         data was written when overflow failed.
5893         * libio/iopadn.c (_IO_padn): Likewise.
5894         * libio/iowpadn.c (_IO_wpadn): Likewise.
5895         * stdio-common/tst-put-error.c: Add copyright notice.
5896         (do_test): Add case for printing padded string.
5897         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
5898         _IO_padn returned error.
5899         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
5900         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
5901         return EOF.
5902
5903 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5904
5905         * libio/libioP.h: Add comment note that the references to C++
5906         bits are now obsolete.
5907
5908 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5909
5910         * math/libm-test.inc (check_complex): Use asprintf.
5911
5912 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
5913
5914         * debug/pcprofiledump.c (print_version): Update copyright year.
5915         * malloc/memusagestat.c (print_version): Likewise.
5916
5917 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
5918
5919         [BZ #14831]
5920         * elf/Makefile (tests): Add tst-audit8.
5921         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
5922         ($(objpfx)tst-audit8.out): New target.
5923         (tst-audit8-ENV): New variable.
5924         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
5925         audit if l_reloc_result is NULL.
5926         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
5927         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
5928         * elf/tst-audit8.c: New file.
5929
5930 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5931
5932         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
5933         * misc/Makefile (CFLAGS-select.c): Define.
5934         * posix/Makefile (CFLAGS-pause.c): Define.
5935
5936 2012-11-13  David S. Miller  <davem@davemloft.net>
5937
5938         * crypt/Makefile: Move test targets after toplevel Rules
5939         inclusion.  Grab any necessary sysdep routines when linking.
5940         * crypt/md5.c (md5_process_block): Remove define, we will always
5941         name it __md5_process_block.
5942         (md5_finish_ctx): Update md5_process_block call.
5943         (md5_stream): Likewise.
5944         (md5_process_bytes): Likewise.
5945         (md5_process_block): Rename to __md5_process_block and move to ...
5946         * crypt/md5-block.c: ... here.
5947         * crypt/sha256.c (sha256_process_block): Move to ...
5948         * crypt/sha256-block.c: ... here.
5949         * crypt/sha512.c (sha512_process_block): Move to ...
5950         * crypt/sha512-block.c: ... here.
5951         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
5952         path.
5953         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
5954         * sysdeps/sparc/sparc64/multiarch/Makefile
5955         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
5956         crypt subdir.
5957         (localedef-aux): Add md5 crypto assembler when in locale subdir.
5958         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
5959         multiarch changes.
5960         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
5961         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
5962         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
5963         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
5964         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
5965         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
5966         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
5967         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
5968         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
5969         file.
5970         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
5971         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
5972         file.
5973         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
5974
5975 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
5976
5977         * timezone/tzselect.ksh: Update from tzcode git revision
5978         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
5979         * timezone/zdump.c: Likewise.
5980         * timezone/zic.c: Likewise.
5981         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
5982         in TZVERSION setting, not $(PKGVERSION).
5983         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
5984         REPORT_BUGS_TO settings.
5985
5986         [BZ #14838]
5987         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
5988         macro.
5989
5990 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5991
5992         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
5993         detection to immediately after _FP_ROUND().
5994         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
5995         bits are 0.
5996
5997 2012-11-11  David S. Miller  <davem@davemloft.net>
5998
5999         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
6000         inttypes.h
6001         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
6002         __close rather than their public counterparts.
6003
6004 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
6005
6006         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
6007         file.
6008         [UNIX98] (sem_timedwait): Do not expect.
6009         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
6010         [XPG4 || UNIX98] (sockatmark): Do not expect.
6011         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
6012         (clock_getcpuclockid): Do not expect.
6013         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
6014         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
6015         Do not expect.
6016         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
6017         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
6018         [UNIX98] (vwscanf): Likewise.
6019         [UNIX98] (vswscanf): Likewise.
6020
6021 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
6022
6023         * timezone/version.h: Remove file.
6024         * timezone/README: Do not refer to version.h.
6025         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6026         $(objpfx)version.h.
6027         ($(objpfx)zdump.o): Likewise.
6028         ($(objpfx)version.h): New target.
6029
6030         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
6031         2012i.
6032         * timezone/README: Don't mention modification to tzselect.ksh.
6033         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
6034         work on unmodified tzselect.ksh.  Substitute version numbers in
6035         tzselect.ksh.
6036
6037         * Makefile (format-me): Remove.
6038         (INSTALL): Adjust indentation.  Use commands directly instead of
6039         using $(format-me).
6040
6041         * aclocal.m4 (ACX_PKGVERSION): New macro.
6042         (ACX_BUGURL): Likewise.
6043         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
6044         (PKGVERSION): New AC_DEFINE_UNQUOTED.
6045         (REPORT_BUGS_TO): Likewise.
6046         * configure: Regenerated.
6047         * config.h.in (PKGVERSION): New macro.
6048         (REPORT_BUGS_TO): Likewise.
6049         * config.make.in (PKGVERSION): New variable.
6050         (PKGVERSION_TEXI): Likewise.
6051         (REPORT_BUGS_TO): Likewise.
6052         (REPORT_BUGS_TEXI): Likewise.
6053         * Makefile (format-me): Use -I$(common-objpfx)manual.
6054         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
6055         ($(common-objpfx)manual/%): New target.
6056         (manual/%): Remove target.
6057         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
6058         (print_version): Use PKGVERSION.
6059         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
6060         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
6061         and REPORT_BUGS_TO.
6062         ($(objpfx)xtrace): Likewise.
6063         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
6064         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
6065         (print_version): Use PKGVERSION.
6066         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
6067         (do_version): Use PKGVERSION.
6068         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
6069         REPORT_BUGS_TO.
6070         (common-ldd-rewrite): Likewise.
6071         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
6072         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
6073         (print_version): Use PKGVERSION.
6074         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
6075         * elf/pldd.c (argp_program_bug_address): Remove variable.
6076         (more_help): New function.
6077         (argp): Use more_help.
6078         (print_version): Use PKGVERSION.
6079         * elf/sln.c (main): Use PKGVERSION.
6080         (usage): Use REPORT_BUGS_TO.
6081         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
6082         (top level): Use PKGVERSION.
6083         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
6084         (print_version): Use PKGVERSION.
6085         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
6086         (print_version): Use PKGVERSION.
6087         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
6088         (print_version): Use PKGVERSION.
6089         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
6090         (print_version): Use PKGVERSION.
6091         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
6092         (print_version): Use PKGVERSION.
6093         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
6094         (print_version): Use PKGVERSION.
6095         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
6096         and BUGURL.
6097         ($(objpfx)memusage): Likewise.
6098         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
6099         (do_version): Use PKGVERSION.
6100         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
6101         (print_version): Use PKGVERSION.
6102         * malloc/mtrace.pl ($PACKAGE): Remove variable.
6103         ($PKGVERSION): New variable.
6104         ($REPORT_BUGS_TO): Likewise.
6105         (usage): Use $REPORT_BUGS_TO.
6106         (top level): Use $PKGVERSION.
6107         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
6108         ($(objpfx)pkgvers.texi): New rule.
6109         ($(objpfx)stamp-pkgvers): Likewise.
6110         * manual/install.texi: Include pkgvers.texi.
6111         (--with-pkgversion): Document new configure option.
6112         (--with-bugurl): Likewise.
6113         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
6114         than necessarily for this particular distribution.  Use
6115         REPORT_BUGS_TO for where to report bugs.
6116         * INSTALL: Regenerated.
6117         * manual/libc.texinfo: Include pkgvers.texi.
6118         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
6119         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
6120         (print_version): Use PKGVERSION.
6121         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
6122         (print_version): Use PKGVERSION.
6123         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
6124         (print_version): Use PKGVERSION.
6125         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
6126         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
6127         macro.
6128         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
6129         (print_version): Use PKGVERSION.
6130         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
6131         (print_version): Use PKGVERSION.
6132         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
6133         and PKGVERSION.
6134
6135         * timezone/checktab.awk: Update from tzcode 2012i.
6136         * timezone/ialloc.c: Likewise.
6137         * timezone/private.h: Likewise.
6138         * timezone/scheck.c: Likewise.
6139         * timezone/tzfile.h: Likewise.
6140         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
6141         (TZVERSION): Hardcode tzcode version number.
6142         * timezone/zdump.c: Update from tzcode 2012i.
6143         * timezone/zic.c: Likewise.
6144         * timezone/version.h: New file.
6145         * timezone/README: Describe version.h.  Update upstream location.
6146
6147         [BZ #14824]
6148         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
6149         (mktemp): Enable declaration.
6150         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
6151         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
6152         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
6153         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
6154         Likewise.
6155         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
6156         Likewise.
6157         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
6158         Likewise.
6159         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
6160         Likewise.
6161         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
6162         Likewise.
6163         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
6164         Likewise.
6165
6166         [BZ #14821]
6167         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
6168         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
6169         for copies of such integer values.
6170         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6171         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6172
6173 2012-11-09  Andreas Jaeger  <aj@suse.de>
6174
6175         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
6176         definitions and declarations that are provided by
6177         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6178
6179 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6180
6181         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
6182         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
6183         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
6184         definition.
6185
6186 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6187
6188         * elf/elf.h: Update comment before AArch64 relocations.
6189
6190 2012-11-07  David S. Miller  <davem@davemloft.net>
6191
6192         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
6193         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6194         (__start_context): Declare.
6195         (__makecontext_ret): Delete.
6196         (__makecontext): Hook up __start_context instead of
6197         __makecontext_ret.
6198         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6199         (sysdep_routines): Add __start_context when in stdlib.
6200
6201 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6202
6203         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
6204         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
6205         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
6206         hardcoded "nm".
6207         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
6208         (READELF): New variable.  Use it instead of hardcoded "readelf".
6209
6210 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6211
6212         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
6213         * sysdeps/x86/Makefile: Here.
6214         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
6215         * sysdeps/x86/tst-xmmymm.sh: This.
6216
6217 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6218
6219         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
6220         expectations.
6221         [UNIX98] (pthread_barrier_t): Do not expect.
6222         [UNIX98] (pthread_barrierattr_t): Likewise.
6223         [UNIX98] (pthread_spinlock_t): Likewise.
6224         [UNIX98] (pthread_barrier_destroy): Likewise.
6225         [UNIX98] (pthread_barrier_init): Likewise.
6226         [UNIX98] (pthread_barrier_wait): Likewise.
6227         [UNIX98] (pthread_barrierattr_destroy): Likewise.
6228         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
6229         [UNIX98] (pthread_barrierattr_init): Likewise.
6230         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
6231         [UNIX98] (pthread_getcpuclockid): Likewise.
6232         [UNIX98] (pthread_mutex_timedlock): Likewise.
6233         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
6234         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
6235         [UNIX98] (pthread_sigmask): Likewise.
6236         [UNIX98] (pthread_spin_destroy): Likewise.
6237         [UNIX98] (pthread_spin_init): Likewise.
6238         [UNIX98] (pthread_spin_lock): Likewise.
6239         [UNIX98] (pthread_spin_trylock): Likewise.
6240         [UNIX98] (pthread_spin_unlock): Likewise.
6241         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
6242         Do not expect.
6243         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
6244         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
6245         [XPG3 || XPG4] (pthread_cond_t): Likewise.
6246         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
6247         [XPG3 || XPG4] (pthread_key_t): Likewise.
6248         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
6249         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
6250         [XPG3 || XPG4] (pthread_once_t): Likewise.
6251         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
6252         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
6253         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
6254         [XPG3 || XPG4] (pthread_t): Likewise.
6255
6256         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
6257         not expect.
6258         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
6259
6260         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
6261         Change function return type to int.
6262
6263         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
6264         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
6265         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
6266         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
6267         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
6268         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
6269         [!POSIX] (posix_madvise): Likewise.
6270         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
6271         && !UNIX98].
6272         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
6273         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
6274         (mode_t): Likewise.
6275         (posix_mem_offset): Likewise.
6276         (posix_typed_mem_get_info): Likewise.
6277         (posix_typed_mem_open): Likewise.
6278
6279         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
6280         Change condition to [XOPEN2K8].
6281
6282         * conform/conformtest.pl: Preprocess allow-header data with -x c
6283         instead of from stdin.
6284         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
6285         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
6286         [C99-based standards] (cerfc): Likewise.
6287         [C99-based standards] (cexp2): Likewise.
6288         [C99-based standards] (cexpm1): Likewise.
6289         [C99-based standards] (clog10): Likewise.
6290         [C99-based standards] (clog1p): Likewise.
6291         [C99-based standards] (clog2): Likewise.
6292         [C99-based standards] (clgamma): Likewise.
6293         [C99-based standards] (ctgamma): Likewise.
6294         [C99-based standards] (cerff): Likewise.
6295         [C99-based standards] (cerfcf): Likewise.
6296         [C99-based standards] (cexp2f): Likewise.
6297         [C99-based standards] (cexpm1f): Likewise.
6298         [C99-based standards] (clog10f): Likewise.
6299         [C99-based standards] (clog1pf): Likewise.
6300         [C99-based standards] (clog2f): Likewise.
6301         [C99-based standards] (clgammaf): Likewise.
6302         [C99-based standards] (ctgammaf): Likewise.
6303         [C99-based standards] (cerfl): Likewise.
6304         [C99-based standards] (cerfcl): Likewise.
6305         [C99-based standards] (cexp2l): Likewise.
6306         [C99-based standards] (cexpm1l): Likewise.
6307         [C99-based standards] (clog10l): Likewise.
6308         [C99-based standards] (clog1pl): Likewise.
6309         [C99-based standards] (clog2l): Likewise.
6310         [C99-based standards] (clgammal): Likewise.
6311         [C99-based standards] (ctgammal): Likewise.
6312         * conform/data/inttypes.h-data [C99-based standards]: Include
6313         stdint.h-data.  Remove all expectations for stdint.h contents.
6314         [C99-based standards] (PRI*): Do not allow.
6315         [C99-based standards] (SCN*): Likewise.
6316         [C99-based standards] (*_t): Likewise.
6317         [C99-based-standards] (PRId8): Expect macro.
6318         [C99-based-standards] (PRIi8): Likewise.
6319         [C99-based-standards] (PRIo8): Likewise.
6320         [C99-based-standards] (PRIu8): Likewise.
6321         [C99-based-standards] (PRIx8): Likewise.
6322         [C99-based-standards] (PRIX8): Likewise.
6323         [C99-based-standards] (SCNd8): Likewise.
6324         [C99-based-standards] (SCNi8): Likewise.
6325         [C99-based-standards] (SCNo8): Likewise.
6326         [C99-based-standards] (SCNu8): Likewise.
6327         [C99-based-standards] (SCNx8): Likewise.
6328         [C99-based-standards] (PRIdLEAST8): Likewise.
6329         [C99-based-standards] (PRIiLEAST8): Likewise.
6330         [C99-based-standards] (PRIoLEAST8): Likewise.
6331         [C99-based-standards] (PRIuLEAST8): Likewise.
6332         [C99-based-standards] (PRIxLEAST8): Likewise.
6333         [C99-based-standards] (PRIXLEAST8): Likewise.
6334         [C99-based-standards] (SCNdLEAST8): Likewise.
6335         [C99-based-standards] (SCNiLEAST8): Likewise.
6336         [C99-based-standards] (SCNoLEAST8): Likewise.
6337         [C99-based-standards] (SCNuLEAST8): Likewise.
6338         [C99-based-standards] (SCNxLEAST8): Likewise.
6339         [C99-based-standards] (PRIdFAST8): Likewise.
6340         [C99-based-standards] (PRIiFAST8): Likewise.
6341         [C99-based-standards] (PRIoFAST8): Likewise.
6342         [C99-based-standards] (PRIuFAST8): Likewise.
6343         [C99-based-standards] (PRIxFAST8): Likewise.
6344         [C99-based-standards] (PRIXFAST8): Likewise.
6345         [C99-based-standards] (SCNdFAST8): Likewise.
6346         [C99-based-standards] (SCNiFAST8): Likewise.
6347         [C99-based-standards] (SCNoFAST8): Likewise.
6348         [C99-based-standards] (SCNuFAST8): Likewise.
6349         [C99-based-standards] (SCNxFAST8): Likewise.
6350         [C99-based-standards] (PRId16): Likewise.
6351         [C99-based-standards] (PRIi16): Likewise.
6352         [C99-based-standards] (PRIo16): Likewise.
6353         [C99-based-standards] (PRIu16): Likewise.
6354         [C99-based-standards] (PRIx16): Likewise.
6355         [C99-based-standards] (PRIX16): Likewise.
6356         [C99-based-standards] (SCNd16): Likewise.
6357         [C99-based-standards] (SCNi16): Likewise.
6358         [C99-based-standards] (SCNo16): Likewise.
6359         [C99-based-standards] (SCNu16): Likewise.
6360         [C99-based-standards] (SCNx16): Likewise.
6361         [C99-based-standards] (PRIdLEAST16): Likewise.
6362         [C99-based-standards] (PRIiLEAST16): Likewise.
6363         [C99-based-standards] (PRIoLEAST16): Likewise.
6364         [C99-based-standards] (PRIuLEAST16): Likewise.
6365         [C99-based-standards] (PRIxLEAST16): Likewise.
6366         [C99-based-standards] (PRIXLEAST16): Likewise.
6367         [C99-based-standards] (SCNdLEAST16): Likewise.
6368         [C99-based-standards] (SCNiLEAST16): Likewise.
6369         [C99-based-standards] (SCNoLEAST16): Likewise.
6370         [C99-based-standards] (SCNuLEAST16): Likewise.
6371         [C99-based-standards] (SCNxLEAST16): Likewise.
6372         [C99-based-standards] (PRIdFAST16): Likewise.
6373         [C99-based-standards] (PRIiFAST16): Likewise.
6374         [C99-based-standards] (PRIoFAST16): Likewise.
6375         [C99-based-standards] (PRIuFAST16): Likewise.
6376         [C99-based-standards] (PRIxFAST16): Likewise.
6377         [C99-based-standards] (PRIXFAST16): Likewise.
6378         [C99-based-standards] (SCNdFAST16): Likewise.
6379         [C99-based-standards] (SCNiFAST16): Likewise.
6380         [C99-based-standards] (SCNoFAST16): Likewise.
6381         [C99-based-standards] (SCNuFAST16): Likewise.
6382         [C99-based-standards] (SCNxFAST16): Likewise.
6383         [C99-based-standards] (PRId32): Likewise.
6384         [C99-based-standards] (PRIi32): Likewise.
6385         [C99-based-standards] (PRIo32): Likewise.
6386         [C99-based-standards] (PRIu32): Likewise.
6387         [C99-based-standards] (PRIx32): Likewise.
6388         [C99-based-standards] (PRIX32): Likewise.
6389         [C99-based-standards] (SCNd32): Likewise.
6390         [C99-based-standards] (SCNi32): Likewise.
6391         [C99-based-standards] (SCNo32): Likewise.
6392         [C99-based-standards] (SCNu32): Likewise.
6393         [C99-based-standards] (SCNx32): Likewise.
6394         [C99-based-standards] (PRIdLEAST32): Likewise.
6395         [C99-based-standards] (PRIiLEAST32): Likewise.
6396         [C99-based-standards] (PRIoLEAST32): Likewise.
6397         [C99-based-standards] (PRIuLEAST32): Likewise.
6398         [C99-based-standards] (PRIxLEAST32): Likewise.
6399         [C99-based-standards] (PRIXLEAST32): Likewise.
6400         [C99-based-standards] (SCNdLEAST32): Likewise.
6401         [C99-based-standards] (SCNiLEAST32): Likewise.
6402         [C99-based-standards] (SCNoLEAST32): Likewise.
6403         [C99-based-standards] (SCNuLEAST32): Likewise.
6404         [C99-based-standards] (SCNxLEAST32): Likewise.
6405         [C99-based-standards] (PRIdFAST32): Likewise.
6406         [C99-based-standards] (PRIiFAST32): Likewise.
6407         [C99-based-standards] (PRIoFAST32): Likewise.
6408         [C99-based-standards] (PRIuFAST32): Likewise.
6409         [C99-based-standards] (PRIxFAST32): Likewise.
6410         [C99-based-standards] (PRIXFAST32): Likewise.
6411         [C99-based-standards] (SCNdFAST32): Likewise.
6412         [C99-based-standards] (SCNiFAST32): Likewise.
6413         [C99-based-standards] (SCNoFAST32): Likewise.
6414         [C99-based-standards] (SCNuFAST32): Likewise.
6415         [C99-based-standards] (SCNxFAST32): Likewise.
6416         [C99-based-standards] (PRId64): Likewise.
6417         [C99-based-standards] (PRIi64): Likewise.
6418         [C99-based-standards] (PRIo64): Likewise.
6419         [C99-based-standards] (PRIu64): Likewise.
6420         [C99-based-standards] (PRIx64): Likewise.
6421         [C99-based-standards] (PRIX64): Likewise.
6422         [C99-based-standards] (SCNd64): Likewise.
6423         [C99-based-standards] (SCNi64): Likewise.
6424         [C99-based-standards] (SCNo64): Likewise.
6425         [C99-based-standards] (SCNu64): Likewise.
6426         [C99-based-standards] (SCNx64): Likewise.
6427         [C99-based-standards] (PRIdLEAST64): Likewise.
6428         [C99-based-standards] (PRIiLEAST64): Likewise.
6429         [C99-based-standards] (PRIoLEAST64): Likewise.
6430         [C99-based-standards] (PRIuLEAST64): Likewise.
6431         [C99-based-standards] (PRIxLEAST64): Likewise.
6432         [C99-based-standards] (PRIXLEAST64): Likewise.
6433         [C99-based-standards] (SCNdLEAST64): Likewise.
6434         [C99-based-standards] (SCNiLEAST64): Likewise.
6435         [C99-based-standards] (SCNoLEAST64): Likewise.
6436         [C99-based-standards] (SCNuLEAST64): Likewise.
6437         [C99-based-standards] (SCNxLEAST64): Likewise.
6438         [C99-based-standards] (PRIdFAST64): Likewise.
6439         [C99-based-standards] (PRIiFAST64): Likewise.
6440         [C99-based-standards] (PRIoFAST64): Likewise.
6441         [C99-based-standards] (PRIuFAST64): Likewise.
6442         [C99-based-standards] (PRIxFAST64): Likewise.
6443         [C99-based-standards] (PRIXFAST64): Likewise.
6444         [C99-based-standards] (SCNdFAST64): Likewise.
6445         [C99-based-standards] (SCNiFAST64): Likewise.
6446         [C99-based-standards] (SCNoFAST64): Likewise.
6447         [C99-based-standards] (SCNuFAST64): Likewise.
6448         [C99-based-standards] (SCNxFAST64): Likewise.
6449         [C99-based-standards] (PRIdMAX): Likewise.
6450         [C99-based-standards] (PRIiMAX): Likewise.
6451         [C99-based-standards] (PRIoMAX): Likewise.
6452         [C99-based-standards] (PRIuMAX): Likewise.
6453         [C99-based-standards] (PRIxMAX): Likewise.
6454         [C99-based-standards] (PRIXMAX): Likewise.
6455         [C99-based-standards] (SCNdMAX): Likewise.
6456         [C99-based-standards] (SCNiMAX): Likewise.
6457         [C99-based-standards] (SCNoMAX): Likewise.
6458         [C99-based-standards] (SCNuMAX): Likewise.
6459         [C99-based-standards] (SCNxMAX): Likewise.
6460         [C99-based-standards] (PRIdPTR): Likewise.
6461         [C99-based-standards] (PRIiPTR): Likewise.
6462         [C99-based-standards] (PRIoPTR): Likewise.
6463         [C99-based-standards] (PRIuPTR): Likewise.
6464         [C99-based-standards] (PRIxPTR): Likewise.
6465         [C99-based-standards] (PRIXPTR): Likewise.
6466         [C99-based-standards] (SCNdPTR): Likewise.
6467         [C99-based-standards] (SCNiPTR): Likewise.
6468         [C99-based-standards] (SCNoPTR): Likewise.
6469         [C99-based-standards] (SCNuPTR): Likewise.
6470         [C99-based-standards] (SCNxPTR): Likewise.
6471         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
6472         allow.
6473         * conform/data/stdint.h-data: Update comments to clarify
6474         requirements.
6475         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
6476         type.
6477         [C99-based standards] (INT8_MAX): Likewise.
6478         [C99-based standards] (INT16_MIN): Likewise.
6479         [C99-based standards] (INT16_MAX): Likewise.
6480         [C99-based standards] (INT32_MIN): Likewise.
6481         [C99-based standards] (INT32_MAX): Likewise.
6482         [C99-based standards] (INT64_MIN): Likewise.
6483         [C99-based standards] (INT64_MAX): Likewise.
6484         [C99-based standards] (UINT8_MAX): Likewise.
6485         [C99-based standards] (UINT16_MAX): Likewise.
6486         [C99-based standards] (UINT32_MAX): Likewise.
6487         [C99-based standards] (UINT64_MAX): Likewise.
6488         [C99-based standards] (INT_LEAST8_MIN): Likewise.
6489         [C99-based standards] (INT_LEAST8_MAX): Likewise.
6490         [C99-based standards] (INT_LEAST16_MIN): Likewise.
6491         [C99-based standards] (INT_LEAST16_MAX): Likewise.
6492         [C99-based standards] (INT_LEAST32_MIN): Likewise.
6493         [C99-based standards] (INT_LEAST32_MAX): Likewise.
6494         [C99-based standards] (INT_LEAST64_MIN): Likewise.
6495         [C99-based standards] (INT_LEAST64_MAX): Likewise.
6496         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
6497         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
6498         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
6499         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
6500         [C99-based standards] (INT_FAST8_MIN): Likewise.
6501         [C99-based standards] (INT_FAST8_MAX): Likewise.
6502         [C99-based standards] (INT_FAST16_MIN): Likewise.
6503         [C99-based standards] (INT_FAST16_MAX): Likewise.
6504         [C99-based standards] (INT_FAST32_MIN): Likewise.
6505         [C99-based standards] (INT_FAST32_MAX): Likewise.
6506         [C99-based standards] (INT_FAST64_MIN): Likewise.
6507         [C99-based standards] (INT_FAST64_MAX): Likewise.
6508         [C99-based standards] (UINT_FAST8_MAX): Likewise.
6509         [C99-based standards] (UINT_FAST16_MAX): Likewise.
6510         [C99-based standards] (UINT_FAST32_MAX): Likewise.
6511         [C99-based standards] (UINT_FAST64_MAX): Likewise.
6512         [C99-based standards] (INTPTR_MIN): Likewise.
6513         [C99-based standards] (INTPTR_MAX): Likewise.
6514         [C99-based standards] (UINTPTR_MAX): Likewise.
6515         [C99-based standards] (INTMAX_MIN): Likewise.
6516         [C99-based standards] (INTMAX_MAX): Likewise.
6517         [C99-based standards] (UINTMAX_MAX): Likewise.
6518         [C99-based standards] (PTRDIFF_MIN): Likewise.
6519         [C99-based standards] (PTRDIFF_MAX): Likewise.
6520         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
6521         [C99-based standards] (SIZE_MAX): Likewise.
6522         [C99-based standards] (WCHAR_MAX): Likewise.
6523         [C99-based standards] (WINT_MAX): Likewise.
6524         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
6525         constraint on value.
6526         [C99-based standards] (WCHAR_MIN): Likewise.
6527         [C99-based standards] (WINT_MIN): Likewise.
6528         [C99-based standards] (*_t): Allow.
6529         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
6530         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
6531         Include math.h-data and complex.h-data.  Remove all expectations
6532         of math.h and complex.h contents.
6533         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
6534         at end of line.
6535         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
6536         (struct tm): Expect tag.
6537         [C99-based-standards] (wcstof): Expect function.
6538         [C99-based-standards] (wcstold): Likewise.
6539         [C99-based-standards] (wcstoll): Likewise.
6540         [C99-based-standards] (wcstoull): Likewise.
6541         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
6542         macro-int-constant.  Specify type.
6543         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
6544         constraint on value.
6545         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6546         Specify type.
6547         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
6548         Specify value.
6549         [ISO C standards]: Do not allow headers.
6550         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
6551         wcs[abcdefghijklmnopqrstuvwxyz]*.
6552         [ISO C standards] (*_t): Do not allow.
6553         * conform/data/wctype.h-data [C99-based standards] (iswblank):
6554         Expect function.
6555         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
6556         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
6557         Specify type.
6558         [ISO C standards]: Do not allow headers.
6559         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
6560         is[abcdefghijklmnopqrstuvwxyz]*.
6561         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
6562         to[abcdefghijklmnopqrstuvwxyz]*.
6563         [ISO C standards] (*_t): Do not allow.
6564         * conform/data/stdalign.h-data: New file.
6565         * conform/data/stdbool.h-data: Likewise.
6566         * conform/data/stdnoreturn.h-data: Likewise.
6567
6568 2012-11-07  Roland McGrath  <roland@hack.frob.com>
6569
6570         [BZ #14815]
6571         * manual/filesys.texi (Directory Entries): Typo fix.
6572         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
6573
6574 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
6575
6576         * elf/elf.h (EM_AARCH64): New macro.
6577         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
6578         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
6579         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
6580         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
6581         (R_AARCH64_TLSDESC): Likewise.
6582         (NT_ARM_TLS): Likewise.
6583         (NT_ARM_HW_BREAK): Likewise.
6584         (NT_ARM_HW_WATCH): Likewise.
6585
6586 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6587
6588         [BZ #14811]
6589         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
6590         (__ieee754_powl): Saturate nonzero exponents with absolute value
6591         below 0x1p-79 to +/- 0x1p-79.
6592         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
6593         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
6594         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
6595         nonzero exponents with absolute value below 0x1p-32 to +/-
6596         0x1p-32.
6597         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
6598         (__ieee754_powl): Saturate nonzero exponents with absolute value
6599         below 0x1p-79 to +/- 0x1p-79.
6600         * math/libm-test.inc (pow_test): Add more tests.
6601
6602 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6603
6604         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
6605         _dl_s390_cap_flags with kernel. Increase string length.
6606         (_dl_s390_platforms): Add z196 and zEC12.
6607
6608 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
6609
6610         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
6611         Change XOPEN21K to XOPEN2K.
6612
6613 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
6614
6615         * string/memmove.c: Use memcpy when possible.
6616
6617 2012-11-06  Andreas Jaeger  <aj@suse.de>
6618
6619         * po/eo.po: Update from translation team.
6620
6621 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
6622
6623         [BZ #14793]
6624         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
6625         exponent and small x and y exponents, scale x or y up.  Increase
6626         by 2 the exponent used in scaling up.
6627         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6628         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6629         * math/libm-test.inc (fma_test): Add more tests.
6630         (fma_test_towardzero): Likewise.
6631         (fma_test_downward): Likewise.
6632         (fma_test_upward): Likewise.
6633
6634 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
6635
6636         [BZ #14805]
6637         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
6638         fenv_t *.
6639
6640         [BZ #14801]
6641         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
6642         namespace for names of struct fields.
6643         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
6644         fenv_t fields.
6645         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
6646         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
6647
6648 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6649
6650         [BZ #3665]
6651         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6652
6653 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6654
6655         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
6656         PTR_DEMANGLE.
6657
6658         [BZ #5246]
6659         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
6660         PTR_DEMANGLE.
6661
6662 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
6663
6664         [BZ #14797]
6665         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
6666         definitely overflow as x * y not x * y + z.
6667         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6668         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6669         * math/libm-test.inc (fma_test): Add more tests.
6670         (fma_test_towardzero): Likewise.
6671         (fma_test_downward): Likewise.
6672         (fma_test_upward): Likewise.
6673
6674 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
6675
6676         [BZ #157]
6677
6678         * include/stub-tag.h: Remove file.
6679         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
6680         '#include' of it.
6681         * manual/maint.texi (Porting): Don't reference it.
6682         * Makerules ($(objpfx)stubs): Likewise.
6683         * dirent/closedir.c: Don't include <stub-tag.h>.
6684         * dirent/dirfd.c: Likewise.
6685         * dirent/fdopendir.c: Likewise.
6686         * dirent/getdents.c: Likewise.
6687         * dirent/getdents64.c: Likewise.
6688         * dirent/opendir.c: Likewise.
6689         * dirent/readdir.c: Likewise.
6690         * dirent/readdir64.c: Likewise.
6691         * dirent/readdir64_r.c: Likewise.
6692         * dirent/readdir_r.c: Likewise.
6693         * dirent/rewinddir.c: Likewise.
6694         * dirent/seekdir.c: Likewise.
6695         * dirent/telldir.c: Likewise.
6696         * gmon/profil.c: Likewise.
6697         * grp/setgroups.c: Likewise.
6698         * inet/if_index.c: Likewise.
6699         * io/access.c: Likewise.
6700         * io/chdir.c: Likewise.
6701         * io/chmod.c: Likewise.
6702         * io/chown.c: Likewise.
6703         * io/close.c: Likewise.
6704         * io/dup.c: Likewise.
6705         * io/dup2.c: Likewise.
6706         * io/dup3.c: Likewise.
6707         * io/euidaccess.c: Likewise.
6708         * io/faccessat.c: Likewise.
6709         * io/fchdir.c: Likewise.
6710         * io/fchmod.c: Likewise.
6711         * io/fchmodat.c: Likewise.
6712         * io/fchown.c: Likewise.
6713         * io/fchownat.c: Likewise.
6714         * io/fcntl.c: Likewise.
6715         * io/flock.c: Likewise.
6716         * io/fstatfs.c: Likewise.
6717         * io/fstatfs64.c: Likewise.
6718         * io/fstatvfs.c: Likewise.
6719         * io/fstatvfs64.c: Likewise.
6720         * io/futimens.c: Likewise.
6721         * io/fxstat.c: Likewise.
6722         * io/fxstat64.c: Likewise.
6723         * io/fxstatat.c: Likewise.
6724         * io/fxstatat64.c: Likewise.
6725         * io/getcwd.c: Likewise.
6726         * io/isatty.c: Likewise.
6727         * io/lchmod.c: Likewise.
6728         * io/lchown.c: Likewise.
6729         * io/link.c: Likewise.
6730         * io/linkat.c: Likewise.
6731         * io/lseek.c: Likewise.
6732         * io/lseek64.c: Likewise.
6733         * io/lxstat64.c: Likewise.
6734         * io/mkdir.c: Likewise.
6735         * io/mkdirat.c: Likewise.
6736         * io/mkfifo.c: Likewise.
6737         * io/mkfifoat.c: Likewise.
6738         * io/open.c: Likewise.
6739         * io/open64.c: Likewise.
6740         * io/openat.c: Likewise.
6741         * io/openat64.c: Likewise.
6742         * io/pipe.c: Likewise.
6743         * io/pipe2.c: Likewise.
6744         * io/poll.c: Likewise.
6745         * io/posix_fadvise.c: Likewise.
6746         * io/posix_fadvise64.c: Likewise.
6747         * io/posix_fallocate.c: Likewise.
6748         * io/posix_fallocate64.c: Likewise.
6749         * io/read.c: Likewise.
6750         * io/readlink.c: Likewise.
6751         * io/readlinkat.c: Likewise.
6752         * io/rmdir.c: Likewise.
6753         * io/sendfile.c: Likewise.
6754         * io/sendfile64.c: Likewise.
6755         * io/statfs.c: Likewise.
6756         * io/statfs64.c: Likewise.
6757         * io/statvfs.c: Likewise.
6758         * io/statvfs64.c: Likewise.
6759         * io/symlink.c: Likewise.
6760         * io/symlinkat.c: Likewise.
6761         * io/ttyname.c: Likewise.
6762         * io/ttyname_r.c: Likewise.
6763         * io/umask.c: Likewise.
6764         * io/unlink.c: Likewise.
6765         * io/unlinkat.c: Likewise.
6766         * io/utime.c: Likewise.
6767         * io/utimensat.c: Likewise.
6768         * io/write.c: Likewise.
6769         * io/xmknod.c: Likewise.
6770         * io/xmknodat.c: Likewise.
6771         * io/xstat.c: Likewise.
6772         * io/xstat64.c: Likewise.
6773         * login/getpt.c: Likewise.
6774         * login/grantpt.c: Likewise.
6775         * login/unlockpt.c: Likewise.
6776         * math/e_acoshl.c: Likewise.
6777         * math/e_acosl.c: Likewise.
6778         * math/e_asinl.c: Likewise.
6779         * math/e_atan2l.c: Likewise.
6780         * math/e_atanhl.c: Likewise.
6781         * math/e_coshl.c: Likewise.
6782         * math/e_expl.c: Likewise.
6783         * math/e_fmodl.c: Likewise.
6784         * math/e_gammal_r.c: Likewise.
6785         * math/e_hypotl.c: Likewise.
6786         * math/e_j0l.c: Likewise.
6787         * math/e_j1l.c: Likewise.
6788         * math/e_jnl.c: Likewise.
6789         * math/e_lgammal_r.c: Likewise.
6790         * math/e_log10l.c: Likewise.
6791         * math/e_log2l.c: Likewise.
6792         * math/e_logl.c: Likewise.
6793         * math/e_powl.c: Likewise.
6794         * math/e_rem_pio2l.c: Likewise.
6795         * math/e_sinhl.c: Likewise.
6796         * math/e_sqrtl.c: Likewise.
6797         * math/fclrexcpt.c: Likewise.
6798         * math/fedisblxcpt.c: Likewise.
6799         * math/feenablxcpt.c: Likewise.
6800         * math/fegetenv.c: Likewise.
6801         * math/fegetexcept.c: Likewise.
6802         * math/fegetround.c: Likewise.
6803         * math/feholdexcpt.c: Likewise.
6804         * math/fesetenv.c: Likewise.
6805         * math/fesetround.c: Likewise.
6806         * math/feupdateenv.c: Likewise.
6807         * math/fgetexcptflg.c: Likewise.
6808         * math/fraiseexcpt.c: Likewise.
6809         * math/fsetexcptflg.c: Likewise.
6810         * math/ftestexcept.c: Likewise.
6811         * math/k_cosl.c: Likewise.
6812         * math/k_rem_pio2l.c: Likewise.
6813         * math/k_sinl.c: Likewise.
6814         * math/k_tanl.c: Likewise.
6815         * math/s_asinhl.c: Likewise.
6816         * math/s_atanl.c: Likewise.
6817         * math/s_cbrtl.c: Likewise.
6818         * math/s_erfl.c: Likewise.
6819         * math/s_expm1l.c: Likewise.
6820         * math/s_log1pl.c: Likewise.
6821         * math/s_tanhl.c: Likewise.
6822         * misc/acct.c: Likewise.
6823         * misc/brk.c: Likewise.
6824         * misc/chflags.c: Likewise.
6825         * misc/chroot.c: Likewise.
6826         * misc/fchflags.c: Likewise.
6827         * misc/fgetxattr.c: Likewise.
6828         * misc/flistxattr.c: Likewise.
6829         * misc/fremovexattr.c: Likewise.
6830         * misc/fsetxattr.c: Likewise.
6831         * misc/fsync.c: Likewise.
6832         * misc/ftruncate.c: Likewise.
6833         * misc/futimes.c: Likewise.
6834         * misc/futimesat.c: Likewise.
6835         * misc/getdomain.c: Likewise.
6836         * misc/getdtsz.c: Likewise.
6837         * misc/gethostid.c: Likewise.
6838         * misc/gethostname.c: Likewise.
6839         * misc/getloadavg.c: Likewise.
6840         * misc/getpagesize.c: Likewise.
6841         * misc/getsysstats.c: Likewise.
6842         * misc/getxattr.c: Likewise.
6843         * misc/gtty.c: Likewise.
6844         * misc/ioctl.c: Likewise.
6845         * misc/lgetxattr.c: Likewise.
6846         * misc/listxattr.c: Likewise.
6847         * misc/llistxattr.c: Likewise.
6848         * misc/lremovexattr.c: Likewise.
6849         * misc/lsetxattr.c: Likewise.
6850         * misc/lutimes.c: Likewise.
6851         * misc/madvise.c: Likewise.
6852         * misc/mincore.c: Likewise.
6853         * misc/mlock.c: Likewise.
6854         * misc/mlockall.c: Likewise.
6855         * misc/mmap.c: Likewise.
6856         * misc/mprotect.c: Likewise.
6857         * misc/msync.c: Likewise.
6858         * misc/munlock.c: Likewise.
6859         * misc/munlockall.c: Likewise.
6860         * misc/munmap.c: Likewise.
6861         * misc/preadv.c: Likewise.
6862         * misc/preadv64.c: Likewise.
6863         * misc/ptrace.c: Likewise.
6864         * misc/pwritev.c: Likewise.
6865         * misc/pwritev64.c: Likewise.
6866         * misc/readv.c: Likewise.
6867         * misc/reboot.c: Likewise.
6868         * misc/remap_file_pages.c: Likewise.
6869         * misc/removexattr.c: Likewise.
6870         * misc/revoke.c: Likewise.
6871         * misc/select.c: Likewise.
6872         * misc/setdomain.c: Likewise.
6873         * misc/setegid.c: Likewise.
6874         * misc/seteuid.c: Likewise.
6875         * misc/sethostid.c: Likewise.
6876         * misc/sethostname.c: Likewise.
6877         * misc/setregid.c: Likewise.
6878         * misc/setreuid.c: Likewise.
6879         * misc/setxattr.c: Likewise.
6880         * misc/sstk.c: Likewise.
6881         * misc/stty.c: Likewise.
6882         * misc/swapoff.c: Likewise.
6883         * misc/swapon.c: Likewise.
6884         * misc/sync.c: Likewise.
6885         * misc/syncfs.c: Likewise.
6886         * misc/syscall.c: Likewise.
6887         * misc/truncate.c: Likewise.
6888         * misc/ualarm.c: Likewise.
6889         * misc/usleep.c: Likewise.
6890         * misc/ustat.c: Likewise.
6891         * misc/utimes.c: Likewise.
6892         * misc/vhangup.c: Likewise.
6893         * misc/writev.c: Likewise.
6894         * posix/_exit.c: Likewise.
6895         * posix/alarm.c: Likewise.
6896         * posix/execve.c: Likewise.
6897         * posix/fexecve.c: Likewise.
6898         * posix/fork.c: Likewise.
6899         * posix/fpathconf.c: Likewise.
6900         * posix/getaddrinfo.c: Likewise.
6901         * posix/getegid.c: Likewise.
6902         * posix/geteuid.c: Likewise.
6903         * posix/getgid.c: Likewise.
6904         * posix/getgroups.c: Likewise.
6905         * posix/getlogin.c: Likewise.
6906         * posix/getlogin_r.c: Likewise.
6907         * posix/getpgid.c: Likewise.
6908         * posix/getpid.c: Likewise.
6909         * posix/getppid.c: Likewise.
6910         * posix/getresgid.c: Likewise.
6911         * posix/getresuid.c: Likewise.
6912         * posix/getsid.c: Likewise.
6913         * posix/getuid.c: Likewise.
6914         * posix/glob64.c: Likewise.
6915         * posix/nanosleep.c: Likewise.
6916         * posix/pathconf.c: Likewise.
6917         * posix/pause.c: Likewise.
6918         * posix/posix_madvise.c: Likewise.
6919         * posix/pread.c: Likewise.
6920         * posix/pread64.c: Likewise.
6921         * posix/pwrite.c: Likewise.
6922         * posix/pwrite64.c: Likewise.
6923         * posix/sched_getaffinity.c: Likewise.
6924         * posix/sched_getp.c: Likewise.
6925         * posix/sched_gets.c: Likewise.
6926         * posix/sched_primax.c: Likewise.
6927         * posix/sched_primin.c: Likewise.
6928         * posix/sched_rr_gi.c: Likewise.
6929         * posix/sched_setaffinity.c: Likewise.
6930         * posix/sched_setp.c: Likewise.
6931         * posix/sched_sets.c: Likewise.
6932         * posix/sched_yield.c: Likewise.
6933         * posix/setgid.c: Likewise.
6934         * posix/setlogin.c: Likewise.
6935         * posix/setpgid.c: Likewise.
6936         * posix/setresgid.c: Likewise.
6937         * posix/setresuid.c: Likewise.
6938         * posix/setsid.c: Likewise.
6939         * posix/setuid.c: Likewise.
6940         * posix/sleep.c: Likewise.
6941         * posix/spawni.c: Likewise.
6942         * posix/sysconf.c: Likewise.
6943         * posix/times.c: Likewise.
6944         * posix/wait.c: Likewise.
6945         * posix/wait3.c: Likewise.
6946         * posix/wait4.c: Likewise.
6947         * posix/waitpid.c: Likewise.
6948         * resolv/gai_sigqueue.c: Likewise.
6949         * resource/getpriority.c: Likewise.
6950         * resource/getrlimit.c: Likewise.
6951         * resource/getrusage.c: Likewise.
6952         * resource/nice.c: Likewise.
6953         * resource/setpriority.c: Likewise.
6954         * resource/setrlimit.c: Likewise.
6955         * resource/ulimit.c: Likewise.
6956         * rt/aio_cancel.c: Likewise.
6957         * rt/aio_fsync.c: Likewise.
6958         * rt/aio_read.c: Likewise.
6959         * rt/aio_sigqueue.c: Likewise.
6960         * rt/aio_suspend.c: Likewise.
6961         * rt/aio_write.c: Likewise.
6962         * rt/clock_getres.c: Likewise.
6963         * rt/clock_gettime.c: Likewise.
6964         * rt/clock_nanosleep.c: Likewise.
6965         * rt/clock_settime.c: Likewise.
6966         * rt/lio_listio.c: Likewise.
6967         * rt/mq_close.c: Likewise.
6968         * rt/mq_getattr.c: Likewise.
6969         * rt/mq_notify.c: Likewise.
6970         * rt/mq_open.c: Likewise.
6971         * rt/mq_receive.c: Likewise.
6972         * rt/mq_send.c: Likewise.
6973         * rt/mq_setattr.c: Likewise.
6974         * rt/mq_timedreceive.c: Likewise.
6975         * rt/mq_timedsend.c: Likewise.
6976         * rt/mq_unlink.c: Likewise.
6977         * rt/shm_open.c: Likewise.
6978         * rt/shm_unlink.c: Likewise.
6979         * rt/timer_create.c: Likewise.
6980         * rt/timer_delete.c: Likewise.
6981         * rt/timer_getoverr.c: Likewise.
6982         * rt/timer_gettime.c: Likewise.
6983         * rt/timer_settime.c: Likewise.
6984         * setjmp/__longjmp.c: Likewise.
6985         * setjmp/setjmp.c: Likewise.
6986         * signal/kill.c: Likewise.
6987         * signal/killpg.c: Likewise.
6988         * signal/raise.c: Likewise.
6989         * signal/sigaction.c: Likewise.
6990         * signal/sigaltstack.c: Likewise.
6991         * signal/sigblock.c: Likewise.
6992         * signal/sigignore.c: Likewise.
6993         * signal/sigintr.c: Likewise.
6994         * signal/signal.c: Likewise.
6995         * signal/sigpause.c: Likewise.
6996         * signal/sigpending.c: Likewise.
6997         * signal/sigqueue.c: Likewise.
6998         * signal/sigreturn.c: Likewise.
6999         * signal/sigset.c: Likewise.
7000         * signal/sigsetmask.c: Likewise.
7001         * signal/sigstack.c: Likewise.
7002         * signal/sigsuspend.c: Likewise.
7003         * signal/sigtimedwait.c: Likewise.
7004         * signal/sigvec.c: Likewise.
7005         * signal/sigwait.c: Likewise.
7006         * signal/sigwaitinfo.c: Likewise.
7007         * signal/sysv_signal.c: Likewise.
7008         * socket/accept.c: Likewise.
7009         * socket/accept4.c: Likewise.
7010         * socket/bind.c: Likewise.
7011         * socket/connect.c: Likewise.
7012         * socket/getpeername.c: Likewise.
7013         * socket/getsockname.c: Likewise.
7014         * socket/getsockopt.c: Likewise.
7015         * socket/isfdtype.c: Likewise.
7016         * socket/listen.c: Likewise.
7017         * socket/recv.c: Likewise.
7018         * socket/recvfrom.c: Likewise.
7019         * socket/recvmsg.c: Likewise.
7020         * socket/send.c: Likewise.
7021         * socket/sendmsg.c: Likewise.
7022         * socket/sendto.c: Likewise.
7023         * socket/setsockopt.c: Likewise.
7024         * socket/shutdown.c: Likewise.
7025         * socket/sockatmark.c: Likewise.
7026         * socket/socket.c: Likewise.
7027         * socket/socketpair.c: Likewise.
7028         * stdio-common/ctermid.c: Likewise.
7029         * stdio-common/cuserid.c: Likewise.
7030         * stdio-common/remove.c: Likewise.
7031         * stdio-common/rename.c: Likewise.
7032         * stdio-common/renameat.c: Likewise.
7033         * stdio-common/tempname.c: Likewise.
7034         * stdlib/getcontext.c: Likewise.
7035         * stdlib/makecontext.c: Likewise.
7036         * stdlib/setcontext.c: Likewise.
7037         * stdlib/swapcontext.c: Likewise.
7038         * stdlib/system.c: Likewise.
7039         * streams/fattach.c: Likewise.
7040         * streams/fdetach.c: Likewise.
7041         * streams/getmsg.c: Likewise.
7042         * streams/getpmsg.c: Likewise.
7043         * streams/putmsg.c: Likewise.
7044         * streams/putpmsg.c: Likewise.
7045         * sysdeps/unix/bsd/getpt.c: Likewise.
7046         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
7047         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
7048         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
7049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
7050         Likewise.
7051         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
7052         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
7053         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
7054         * sysvipc/msgctl.c: Likewise.
7055         * sysvipc/msgget.c: Likewise.
7056         * sysvipc/msgrcv.c: Likewise.
7057         * sysvipc/msgsnd.c: Likewise.
7058         * sysvipc/semctl.c: Likewise.
7059         * sysvipc/semget.c: Likewise.
7060         * sysvipc/semop.c: Likewise.
7061         * sysvipc/semtimedop.c: Likewise.
7062         * sysvipc/shmat.c: Likewise.
7063         * sysvipc/shmctl.c: Likewise.
7064         * sysvipc/shmdt.c: Likewise.
7065         * sysvipc/shmget.c: Likewise.
7066         * termios/tcdrain.c: Likewise.
7067         * termios/tcflow.c: Likewise.
7068         * termios/tcflush.c: Likewise.
7069         * termios/tcgetattr.c: Likewise.
7070         * termios/tcgetpgrp.c: Likewise.
7071         * termios/tcsendbrk.c: Likewise.
7072         * termios/tcsetattr.c: Likewise.
7073         * termios/tcsetpgrp.c: Likewise.
7074         * time/adjtime.c: Likewise.
7075         * time/clock.c: Likewise.
7076         * time/getitimer.c: Likewise.
7077         * time/gettimeofday.c: Likewise.
7078         * time/setitimer.c: Likewise.
7079         * time/settimeofday.c: Likewise.
7080         * time/stime.c: Likewise.
7081         * time/time.c: Likewise.
7082
7083 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
7084
7085         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
7086         /usr/old/bin.
7087
7088         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
7089         instead of spaces.
7090         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
7091
7092 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
7093
7094         [BZ #14796]
7095         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
7096         FE_TONEAREST before applying Dekker multiplication and Knuth
7097         addition.  Clear inexact exceptions and check for exact zero
7098         results afterwards.
7099         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7100         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7101         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7102         * math/libm-test.inc (fma_test): Add more tests.
7103         (fma_test_towardzero): Likewise.
7104         (fma_test_downward): Likewise.
7105         (fma_test_upward): Likewise.
7106         * sysdeps/generic/math_private.h (default_libc_fesetround): New
7107         function.
7108         (libc_fesetround): New macro.
7109         (libc_fesetroundf): Likewise.
7110         (libc_fesetroundl): Likewise.
7111         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
7112         function.
7113         (libc_fesetround_387): Likewise.
7114         (libc_fesetroundf): New macro.
7115         (libc_fesetround): Likewise.
7116         (libc_fesetroundl): Likewise.
7117         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
7118         function.
7119         (libc_fesetroundf): New macro.
7120         (libc_fesetround): Likewise.
7121         (libc_fesetroundl): Likewise.
7122         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
7123         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
7124         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
7125         libm_hidden_ver.
7126         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
7127         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
7128         libm_hidden_def.
7129         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
7130         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
7131         libm_hidden_ver.
7132         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
7133         libm_hidden_def.
7134
7135         [BZ #3439]
7136         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
7137         integer constant usable in #if and use that to give value to enum
7138         constant.
7139         (FE_DIVBYZERO): Likewise.
7140         (FE_UNDERFLOW): Likewise.
7141         (FE_OVERFLOW): Likewise.
7142         (FE_INVALID): Likewise.
7143         (FE_INVALID_SNAN): Likewise.
7144         (FE_INVALID_ISI): Likewise.
7145         (FE_INVALID_IDI): Likewise.
7146         (FE_INVALID_ZDZ): Likewise.
7147         (FE_INVALID_IMZ): Likewise.
7148         (FE_INVALID_COMPARE): Likewise.
7149         (FE_INVALID_SOFTWARE): Likewise.
7150         (FE_INVALID_SQRT): Likewise.
7151         (FE_INVALID_INTEGER_CONVERSION): Likewise.
7152         (FE_TONEAREST): Likewise.
7153         (FE_TOWARDZERO): Likewise.
7154         (FE_UPWARD): Likewise.
7155         (FE_DOWNWARD): Likewise.
7156         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
7157         (FE_DIVBYZERO): Likewise.
7158         (FE_OVERFLOW): Likewise.
7159         (FE_UNDERFLOW): Likewise.
7160         (FE_INEXACT): Likewise.
7161         (FE_TONEAREST): Likewise.
7162         (FE_DOWNWARD): Likewise.
7163         (FE_UPWARD): Likewise.
7164         (FE_TOWARDZERO): Likewise.
7165         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
7166         (FE_UNDERFLOW): Likewise.
7167         (FE_OVERFLOW): Likewise.
7168         (FE_DIVBYZERO): Likewise.
7169         (FE_INVALID): Likewise.
7170         (FE_TONEAREST): Likewise.
7171         (FE_TOWARDZERO): Likewise.
7172         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
7173         (FE_OVERFLOW): Likewise.
7174         (FE_UNDERFLOW): Likewise.
7175         (FE_DIVBYZERO): Likewise.
7176         (FE_INEXACT): Likewise.
7177         (FE_TONEAREST): Likewise.
7178         (FE_TOWARDZERO): Likewise.
7179         (FE_UPWARD): Likewise.
7180         (FE_DOWNWARD): Likewise.
7181         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
7182         (FE_DIVBYZERO): Likewise.
7183         (FE_OVERFLOW): Likewise.
7184         (FE_UNDERFLOW): Likewise.
7185         (FE_INEXACT): Likewise.
7186         (FE_TONEAREST): Likewise.
7187         (FE_DOWNWARD): Likewise.
7188         (FE_UPWARD): Likewise.
7189         (FE_TOWARDZERO): Likewise.
7190
7191 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
7192
7193         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
7194
7195 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
7196
7197         * scripts/cross-test-ssh.sh (command): Use newlines to separate
7198         commands.  Quote $PWD.
7199         (blacklist_exports): Don't use remove_newlines.  Replace "declare
7200         -x" by "export".
7201         (remove_newlines): Remove.
7202
7203 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7204
7205         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
7206         * stdlib/stdlib.h (atof): Moved to ...
7207         * include/bits/stdlib-float.h: Here.  New file.
7208         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7209         * stdlib/bits/stdlib-float.h: New file.
7210         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
7211         -mno-sse -mno-mmx.
7212         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
7213         <xmmintrin.h>.
7214
7215 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7216
7217         * conform/conformtest.pl (@headers): Add fenv.h.
7218         * conform/data/fenv.h-data: New file.
7219         * include/fenv.h [_ISOMAC]: Disable all contents of file except
7220         include of <math/fenv.h>.
7221
7222         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
7223         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
7224         && !UNIX98].  Enables tests for XOPEN2K8.
7225         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
7226         POSIX2008]: Likewise.
7227
7228         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
7229         (struct rusage): Do not expect type or its members.
7230
7231         [BZ #3439]
7232         * math/math.h (FP_NAN): Define macro to integer constant usable in
7233         #if and use that to give value to enum constant.
7234         (FP_INFINITE): Likewise.
7235         (FP_ZERO): Likewise.
7236         (FP_SUBNORMAL): Likewise.
7237         (FP_NORMAL): Likewise.
7238
7239 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
7240
7241         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
7242         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
7243         arguments.
7244
7245 2012-11-02  Roland McGrath  <roland@hack.frob.com>
7246
7247         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
7248         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
7249         autoconf-time if not.
7250         * configure.in: Remove AC_PREREQ.
7251
7252 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7253
7254         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
7255         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
7256         of the internal implementation.
7257
7258 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
7259
7260         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
7261         except include of <misc/sys/syslog.h>.
7262
7263 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7264
7265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
7266         function returns with a NULL context exit with zero.
7267
7268 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7269
7270         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
7271
7272 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
7273
7274         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
7275         (run_program_cmd): This.
7276         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
7277         (tst_langinfo): New variable.  Use it.
7278
7279 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
7280
7281         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
7282         floating point opcodes.
7283
7284 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7285
7286         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
7287         variable.
7288
7289         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
7290
7291         * sysdeps/mach/hurd/powerpc: Remove directory.
7292         * sysdeps/mach/powerpc: Likewise.
7293
7294 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
7295
7296         * scripts/check-local-headers.sh: Ignore c++ headers.
7297
7298 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7299
7300         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
7301         __libc_cleanup_region_start argument.
7302
7303 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
7304
7305         [BZ #14784]
7306         [BZ #14785]
7307         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
7308         x * y using scaling, not as x * y + z.
7309         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7310         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7311         * math/libm-test.inc (fma_test): Add more tests.
7312         (fma_test_towardzero): Likewise.
7313         (fma_test_downward): Likewise.
7314         (fma_test_upward): Likewise.
7315
7316 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
7317
7318         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
7319
7320 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7321
7322         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
7323         New variable.
7324
7325 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
7326
7327         * rt/tst-shm.c (worker): Correct checking for mmap failure.
7328
7329 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7330
7331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7332         Fix sort order.
7333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7334         Likewise.
7335
7336 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7337
7338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7339         Fix the order of the list for glibc 2.17.
7340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7341         Likewise.
7342
7343 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
7344
7345         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7346
7347 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7348
7349         [BZ #14610]
7350         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
7351         for low part of x being zero before using __atanl (y).
7352         * math/libm-test.inc (atan2_test): Add another test.
7353
7354         * manual/install.texi (Configuring and compiling): Document
7355         general use of test-wrapper and test-wrapper-env.
7356         * INSTALL: Regenerated.
7357
7358         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
7359         (__fma): Do not extract and scale down low bits on after-rounding
7360         systems when result rounded to normal precision would have normal
7361         exponent.
7362         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
7363         (__fmal): Do not extract and scale down low bits on after-rounding
7364         systems when result rounded to normal precision would have normal
7365         exponent.
7366         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
7367         (__fmal): Do not extract and scale down low bits on after-rounding
7368         systems when result rounded to normal precision would have normal
7369         exponent.
7370         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
7371         macro.
7372         (fma_test): Add more tests.
7373         (fma_test_towardzero): Likewise.
7374         (fma_test_downward): Likewise.
7375         (fma_test_upward): Likewise.
7376
7377 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7378
7379         * sysdeps/i386/tininess.h: Renamed to ...
7380         * sysdeps/x86/tininess.h: This.
7381         * sysdeps/x86_64/tininess.h: Removed.
7382
7383 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7384
7385         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
7386         input.  Use $(build-program-cmd).
7387         ($(objpfx)tst-array1-static.out): Likewise.
7388         ($(objpfx)tst-array2.out): Likewise.
7389         ($(objpfx)tst-array3.out): Likewise.
7390         ($(objpfx)tst-array4.out): Likewise.
7391         ($(objpfx)tst-array5.out): Likewise.
7392         ($(objpfx)tst-array5-static.out): Likewise.
7393
7394 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
7395
7396         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
7397         if defined.
7398
7399         * nss/nsswitch.h (nss_interface_function): Provide new
7400         macro for use with NSS functions.
7401         * grp/initgroups.c: Use new macro.
7402         * nss/getXXbyYY.c: Likewise.
7403         * nss/getXXbyYY_r.c: Likewise.
7404         * nss/getXXent.c: Likewise.
7405         * nss/getXXent_r.c: Likewise.
7406         * sysdeps/posix/getaddrinfo.c: Likewise.
7407
7408 2012-10-30  Andreas Jaeger  <aj@suse.de>
7409
7410         * po/ru.po: Update Russion translation from translation project.
7411
7412 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
7413
7414         [BZ #14152]
7415         [BZ #14783]
7416         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
7417         result and shift together with sticky bit instead of replicating
7418         round-to-nearest rounding.
7419         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7420         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7421         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
7422         missing underflow exceptions.
7423         (fma_test_towardzero): Add more tests.
7424         (fma_test_downward): Likewise.
7425         (fma_test_upward): Likewise.
7426
7427         [BZ #14047]
7428         * sysdeps/generic/tininess.h: New file.
7429         * sysdeps/i386/tininess.h: Likewise.
7430         * sysdeps/sh/tininess.h: Likewise.
7431         * sysdeps/x86_64/tininess.h: Likewise.
7432         * stdlib/tst-strtod-underflow.c: Likewise.
7433         * stdlib/tst-tininess.c: Likewise.
7434         * stdlib/strtod_l.c: Include <tininess.h>.
7435         (round_and_return): Do not set errno for exact underflow cases.
7436         Force an underflow exception when setting errno for underflow.
7437         Determine underflow based on rounding to normal precision if
7438         TININESS_AFTER_ROUNDING.
7439         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
7440         ERANGE for exact underflow cases.
7441         * stdlib/Makefile (tests): Add tst-tininess and
7442         tst-strtod-underflow.
7443         ($(objpfx)tst-tininess): Use $(link-libm).
7444         ($(objpfx)tst-strtod-underflow): Likewise.
7445
7446 2012-10-30  Andreas Jaeger  <aj@suse.de>
7447
7448         [BZ#14767]
7449         * elf/Makefile (tests): Remove conditional for have-initfini-array
7450         since this is now always required and the variable does not exist
7451         anymore.
7452         (tests-static): Likewise.
7453         (modules-names): Likewise.
7454
7455         * po/eo.po: Add Esperanto translation from translation project.
7456
7457         * elf/tst-array1.c (fini_array): Make writeable so that it can be
7458         merged with constructor/destructor.
7459         (init_array): Likewise.
7460         * elf/tst-array2dep.c (fini_array): Likewise.
7461         (init_array): Likewise.
7462
7463 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
7464
7465         * manual/message.texi: Delete @cartouche tags.
7466
7467 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
7468
7469         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
7470         EOPNOTSUPP.
7471         * sysdeps/mach/hurd/fsync.c: Likewise.
7472
7473         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
7474         [_POSIX_REALTIME_SIGNALS]: Change condition to
7475         [_POSIX_REALTIME_SIGNALS > 0].
7476
7477 2012-10-27  Andreas Jaeger  <aj@suse.de>
7478
7479         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
7480         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
7481         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
7482         [__WORDSIZE != 64]: Likewise.
7483
7484 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
7485
7486         *  iconvdata/tst-table.sh: Remove ${SHELL}.
7487         *  iconvdata/tst-tables.sh: Likewise.
7488
7489 2012-10-25  David S. Miller  <davem@davemloft.net>
7490
7491         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7492         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
7493         of strtoull.
7494
7495         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
7496         ifunc-impl-list.c
7497         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7498         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
7499         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
7500         file.
7501
7502 2012-10-25  Roland McGrath  <roland@hack.frob.com>
7503
7504         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7505         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
7506         __getdirentries.
7507
7508 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7509             Jim Blandy  <jimb@codesourcery.com>
7510
7511         * scripts/cross-test-ssh.sh: New file.
7512         * manual/install.texi (Configuring and compiling): Document use of
7513         cross-test-ssh.sh.
7514         * INSTALL: Regenerated.
7515
7516 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
7517
7518         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
7519         EOPNOTSUPP.
7520
7521 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
7522
7523         * Makeconfig (run-program-prefix): Fix comment.
7524
7525 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7526             Jim Blandy  <jimb@codesourcery.com>
7527
7528         * Makeconfig (test-wrapper): New variable,
7529         (test-wrapper-env): Likewise.
7530         [$(cross-compiling) = yes && $(test-wrapper) != ""]
7531         (run-built-tests): Define to yes.
7532         (run-program-prefix): Use $(test-wrapper).
7533         (built-program-cmd): Likewise.
7534         * Rules (make-test-out): Use $(test-wrapper-env) and
7535         $(host-built-program-cmd).
7536         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
7537         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
7538         tst-pathopt.sh.
7539         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
7540         $(test-wrapper-env) to tst-rtld-load-self.sh.
7541         ($(objpfx)order2.out): Use $(test-wrapper).
7542         ($(objpfx)tst-initorder.out): Likewise.
7543         ($(objpfx)tst-initorder2.out): Likewise.
7544         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
7545         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
7546         (test_wrapper_env): New variable.  Use it to run ld.so.
7547         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
7548         Use it to run ld.so.
7549         (test_wrapper_env): Likewise.
7550         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
7551         $(test-wrapper) to run-iconv-test.sh.
7552         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
7553         (ICONV): Use $test_wrapper.
7554         * posix/Makefile ($(objpfx)globtest.out): Pass
7555         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
7556         globtest.sh, not $(run-program-prefix).
7557         * posix/globtest.sh (run_via_rtld_prefix): New variable.
7558         (test_wrapper): Likewise.
7559         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
7560         set together with run_via_rtld_prefix.
7561         (run_program_prefix): Define in terms of test_wrapper and
7562         run_via_rtld_prefix.
7563
7564 2012-10-24  Roland McGrath  <roland@hack.frob.com>
7565
7566         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
7567         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
7568         Targets removed.
7569
7570         [BZ #14743]
7571         * include/time.h: Remove librt_hidden_proto (clock_gettime).
7572         Declare __clock_getres, __clock_gettime, __clock_settime,
7573         __clock_nanosleep, and __clock_getcpuclockid.
7574         * rt/clock_gettime.c: Define __clock_gettime as an alias.
7575         Remove librt_hidden_def (clock_gettime).
7576         * sysdeps/unix/clock_gettime.c: Likewise.
7577         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
7578         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
7579         * rt/clock_getres.c: Define __clock_getres as an alias.
7580         * sysdeps/posix/clock_getres.c: Likewise.
7581         * rt/clock_settime.c: Define __clock_settime as an alias.
7582         * sysdeps/unix/clock_settime.c: Likewise.
7583         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
7584         * sysdeps/unix/clock_nanosleep.c: Likewise.
7585         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
7586         * rt/clock-compat.c: New file.
7587         * rt/Makefile (librt-routines): Add clock-compat and move
7588         $(clock-routines) to ...
7589         (routines): ... here, new variable.
7590         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
7591         Don't add get_clockfreq here.
7592         * rt/Versions (libc: GLIBC_2.17): New version set.
7593         Add clock_* symbols here.
7594         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
7595         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
7596         (GLIBC_2.17): Add clock_* symbols.
7597         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
7598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
7599         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
7600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7601         Likewise.
7602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7603         Likewise.
7604         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
7605         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
7606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
7607         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
7608         * NEWS: Mention the move.
7609
7610         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
7611         Use __open, __read, __close rather than their public counterparts.
7612         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7613         (__get_clockfreq_via_cpuinfo): Likewise.
7614         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
7615         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
7616
7617         * config.h.in (HAVE_IFUNC): New #undef.
7618         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
7619         was successful.
7620         * configure: Regenerated.
7621
7622 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7623
7624         * configure.in: Move READELF check to start of file.
7625         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
7626         libc_cv_asm_gnu_indirect_function in the process.
7627         * configure: Regenerated.
7628
7629 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
7630
7631         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
7632         send the output to /dev/null.
7633         (libc_cv_cc_with_libunwind): Likewise.
7634         (libc_cv_as_noexecstack): Likewise.
7635         * configure: Regenerate.
7636
7637 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
7638
7639         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
7640
7641         * posix/globtest.sh (TMPDIR): Do not set.
7642         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
7643         (testout): Likewise.
7644
7645 2012-10-24  Andreas Jaeger  <aj@suse.de>
7646
7647         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
7648         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
7649         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
7650         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
7651         posix_fadvise64, posix_fallocate64.
7652
7653         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
7654         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
7655         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
7656         Likewise.
7657         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
7658         Likewise.
7659         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
7660
7661         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
7662         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
7663         <bits/fcntl-linux.h>.
7664         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
7665
7666         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
7667         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
7668         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
7669         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
7670         [__WORDSIZE != 64]: Likewise.
7671
7672 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7673
7674         * Makeconfig (run-built-tests): New variable.
7675         * Rules [$(cross-compiling) = yes]: Change condition to
7676         [$(run-built-tests) = no].
7677         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
7678         to [$(run-built-tests) = yes].
7679         * elf/Makefile [$(cross-compiling) = no]: Likewise
7680         * grp/Makefile [$(cross-compiling) = no]: Likewise.
7681         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
7682         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
7683         * intl/Makefile [$(cross-compiling) = no]: Likewise.
7684         * io/Makefile [$(cross-compiling) = no]: Likewise.
7685         * libio/Makefile [$(cross-compiling) = no]: Likewise.
7686         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
7687         * misc/Makefile [$(cross-compiling) = no]: Likewise.
7688         * posix/Makefile [$(cross-compiling) = no]: Likewise.
7689         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
7690         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
7691         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
7692         * string/Makefile [$(cross-compiling) = no]: Likewise.
7693
7694         * posix/Makefile ($(objpfx)globtest.out): Pass
7695         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
7696         $(rtld-installed-name).
7697         * posix/globtest.sh (elf_objpfx): Remove variable.
7698         (rtld_installed_name): Likewise.
7699         (library_path): Likewise.
7700         (run_program_prefix): New variable.  Use for running globtest
7701         binary.
7702
7703 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
7704             Joseph Myers  <joseph@codesourcery.com>
7705
7706         * Makeconfig (host-built-program-cmd): New variable.
7707         * elf/Makefile (tst-stackguard1-ARGS): Use
7708         $(host-built-program-cmd).
7709         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
7710         (tst-spawn-ARGS): Likewise.
7711         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
7712
7713 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
7714             Jim Blandy  <jimb@codesourcery.com>
7715
7716         * Makeconfig (run-via-rtld-prefix): New variable.
7717         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
7718         (built-program-cmd): Likewise.
7719
7720 2012-10-22  Andreas Jaeger  <aj@suse.de>
7721
7722         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
7723         __O_RSYNC if it exists, otherwise to O_SYNC.
7724
7725 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
7726             Joseph Myers  <joseph@codesourcery.com>
7727
7728         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
7729         /dev/null.
7730         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
7731         from /dev/null
7732         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
7733         /dev/null.
7734
7735 2012-10-22  Andreas Jaeger  <aj@suse.de>
7736
7737         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
7738         Define always.
7739         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
7740
7741         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7742         bits/fcntl-linux.h.
7743
7744         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
7745         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
7746
7747         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
7748         to __O_LARGEFILE.
7749         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
7750         to __O_LARGEFILE.
7751
7752 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
7753             Joseph Myers  <joseph@codesourcery.com>
7754
7755         * config.make.in (NM): New variable.
7756
7757 2012-10-21  Andreas Jaeger  <aj@suse.de>
7758
7759         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
7760         definitions and declarations that are provided by
7761         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
7762
7763 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7764
7765         [BZ #14683]
7766         * elf/Makefile (tests-static): Add tst-leaks1-static.
7767         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
7768         ($(objpfx)tst-leaks1-static): New rule.
7769         ($(objpfx)tst-leaks1-static-mem): Likewise.
7770         (tst-leaks1-static-ENV): New macro.
7771         * elf/dl-open.c (dl_open_worker): Check the main application
7772         only if SHARED is defined.
7773         * elf/tst-leaks1-static.c: New file.
7774
7775 2012-10-20  Andreas Jaeger  <aj@suse.de>
7776
7777         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
7778         generic values for Linux.
7779         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
7780         and declarations that are provided by <bits/fcntl-linux.h> and
7781         include <bits/fcntl-linux.h>.
7782         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7783         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7784
7785 2012-10-20  Roland McGrath  <roland@hack.frob.com>
7786
7787         * io/fcntl.h: Move include of <bits/types.h> to the top and
7788         include it unconditionally.
7789
7790 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7791
7792         * wcsmbs/Makefile (tests-ifunc): New variable.
7793         (tests): Add $(tests-ifunc).
7794         * wcsmbs/test-wcschr-ifunc.c: New file.
7795         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
7796         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
7797         * wcsmbs/test-wcslen-ifunc.c: Likewise.
7798         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
7799         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
7800
7801         * string/Makefile (tests-ifunc): New variable.
7802         (tests): Add $(tests-ifunc).
7803         * string/test-memccpy.c (TEST_NAME): New macro.
7804         * string/test-memchr.c (TEST_NAME): Likewise.
7805         * string/test-memcmp.c (TEST_NAME): Likewise.
7806         * string/test-memcpy.c (TEST_NAME): Likewise.
7807         * string/test-memmem.c (TEST_NAME): Likewise.
7808         * string/test-memmove.c (TEST_NAME): Likewise.
7809         * string/test-memset.c (TEST_NAME): Likewise.
7810         * string/test-rawmemchr.c (TEST_NAME): Likewise.
7811         * string/test-stpcpy.c (TEST_NAME): Likewise.
7812         * string/test-stpncpy.c (TEST_NAME): Likewise.
7813         * string/test-strcasecmp.c (TEST_NAME): Likewise.
7814         * string/test-strcasestr.c (TEST_NAME): Likewise.
7815         * string/test-strcat.c (TEST_NAME): Likewise.
7816         * string/test-strchr.c (TEST_NAME): Likewise.
7817         * string/test-strcmp.c(TEST_NAME): Likewise.
7818         * string/test-strcpy.c (TEST_NAME): Likewise.
7819         * string/test-strcspn.c (TEST_NAME): Likewise.
7820         * string/test-strlen.c (TEST_NAME): Likewise.
7821         * string/test-strncasecmp.c (TEST_NAME): Likewise.
7822         * string/test-strncmp.c (TEST_NAME): Likewise.
7823         * string/test-strncpy.c (TEST_NAME): Likewise.
7824         * string/test-strnlen.c (TEST_NAME): Likewise.
7825         * string/test-strpbrk.c (TEST_NAME): Likewise.
7826         * string/test-strrchr.c (TEST_NAME): Likewise.
7827         * string/test-strspn.c (TEST_NAME): Likewise.
7828         * string/test-strstr.c (TEST_NAME): Likewise.
7829         * string/test-bcopy-ifunc.c: New file.
7830         * string/test-bzero-ifunc.c: Likewise.
7831         * string/test-memccpy-ifunc.c: Likewise.
7832         * string/test-memchr-ifunc.c: Likewise.
7833         * string/test-memcmp-ifunc.c: Likewise.
7834         * string/test-memcpy-ifunc.c: Likewise.
7835         * string/test-memmem-ifunc.c: Likewise.
7836         * string/test-memmove-ifunc.c: Likewise.
7837         * string/test-mempcpy-ifunc.c: Likewise.
7838         * string/test-memset-ifunc.c: Likewise.
7839         * string/test-rawmemchr-ifunc.c: Likewise.
7840         * string/test-stpcpy-ifunc.c: Likewise.
7841         * string/test-stpncpy-ifunc.c: Likewise.
7842         * string/test-strcasecmp-ifunc.c: Likewise.
7843         * string/test-strcasestr-ifunc.c: Likewise.
7844         * string/test-strcat-ifunc.c: Likewise.
7845         * string/test-strchr-ifunc.c: Likewise.
7846         * string/test-strchrnul-ifunc.c: Likewise.
7847         * string/test-strcmp-ifunc.c: Likewise.
7848         * string/test-strcpy-ifunc.c: Likewise.
7849         * string/test-strcspn-ifunc.c: Likewise.
7850         * string/test-strlen-ifunc.c: Likewise.
7851         * string/test-strncasecmp-ifunc.c: Likewise.
7852         * string/test-strncat-ifunc.c: Likewise.
7853         * string/test-strncmp-ifunc.c: Likewise.
7854         * string/test-strncpy-ifunc.c: Likewise.
7855         * string/test-strnlen-ifunc.c: Likewise.
7856         * string/test-strpbrk-ifunc.c: Likewise.
7857         * string/test-strrchr-ifunc.c: Likewise.
7858         * string/test-strspn-ifunc.c: Likewise.
7859         * string/test-strstr-ifunc.c: Likewise.
7860
7861         * debug/Makefile (tests-ifunc): New variable.
7862         (tests): Add $(tests-ifunc).
7863         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
7864         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
7865         * debug/test-stpcpy_chk-ifunc.c: New file.
7866         * debug/test-strcpy_chk-ifunc.c: Likewise.
7867
7868 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7869
7870         [BZ #13601]
7871         * elf/dl-load.c (open_verify): Retry read if the entire ELF
7872         header is not read in.
7873
7874 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
7875
7876         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
7877         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
7878         directly.  Pass built executable to script as
7879         $(built-program-cmd).
7880         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
7881         $testprogram without using LD_LIBRARY_PATH and $ldso.
7882
7883         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
7884         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
7885         $(rtld-installed-name).
7886         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
7887         (rtld_installed_name): Likewise.
7888         (library_path): Likewise.
7889         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
7890         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
7891         $(run-program-prefix) to tst-tables.sh.
7892         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
7893         it to run tst-table-from and tst-table-to.
7894         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
7895         Pass it to tst-table.sh.
7896         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
7897         $(run-program-prefix) to tst-gettext.sh.
7898         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
7899         tst-translit.sh.
7900         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
7901         tst-gettext2.sh.
7902         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
7903         to run tst-gettext.
7904         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
7905         to run tst-gettext2.
7906         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
7907         to run tst-translit.
7908         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
7909         $(run-program-prefix) to tst-mtrace.sh.
7910         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
7911         to run tst-mtrace.
7912         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
7913         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
7914         $(rtld-installed-name).
7915         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
7916         (rtld_installed_name): Likewise.
7917         (run_program_prefix): New variable.  Use it to run wordexp-test.
7918
7919         * Makeconfig (ARCH): Remove all definitions.
7920         (machine): Likewise.
7921         [ARCH]: Remove conditional code.
7922         [!objdir]: Give error.
7923         [!objdir] (objpfx): Remove.
7924         [!objdir] (common-objpfx): Likewise.
7925         [!objdir] (common-objdir): Likewise.
7926         * configure.in (config_makefile): Remove.  Hardcode Makefile in
7927         AC_CONFIG_FILES call.
7928         * configure: Regenerated.
7929
7930         [BZ #13888]
7931         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
7932         or TMPDIR.
7933         (testout): Likewise.
7934
7935         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
7936         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
7937         $(rtld-installed-name).
7938         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
7939         (rtld_installed_name): Likwise.
7940         (runit): Remove function.
7941         (run_getconf): New variable,  Use it for running getconf binary.
7942
7943 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
7944
7945         [BZ #14716]
7946         * string/test-memmem.c (check_result): New function.
7947         (do_one_test): Use it.
7948         (check1): New function.
7949         (test_main): Use it.
7950
7951 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
7952
7953         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
7954
7955 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
7956
7957         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
7958         (_G_LSEEK64): Likewise.
7959         (_G_MMAP64): Likewise.
7960         (_G_FSTAT64): Likewise.
7961         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
7962         (_G_LSEEK64): Likewise.
7963         (_G_MMAP64): Likewise.
7964         (_G_FSTAT64): Likewise.
7965         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
7966         unconditional.  Call __mmap64 directly.
7967         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
7968         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
7969         __lseek64 directly.
7970         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
7971         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
7972         __mmap64 directly.
7973         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
7974         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
7975         __lseek64 directly.
7976         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
7977         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
7978         __lseek64 directly.
7979         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
7980         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
7981         __lseek64 directly.
7982         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
7983         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
7984         __fxstat64 directly.
7985         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
7986         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
7987         unconditional.
7988         (freopen64) [!_G_OPEN64]: Remove conditional code.
7989         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
7990         unconditional.
7991         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
7992         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
7993         unconditional.
7994         (ftello64) [!_G_LSEEK64]: Remove conditional code.
7995         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
7996         unconditional.
7997         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
7998         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
7999         unconditional.
8000         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
8001         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
8002         unconditional.
8003         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8004         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
8005         unconditional.
8006         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
8007         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
8008         unconditional.
8009         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
8010
8011 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8012
8013         [BZ #12140]
8014         * manual/memory.texi (Malloc Tunable Parameters): Add note
8015         about free list pointers overwriting some perturb bytes.
8016         Wording suggested by Roland McGrath.
8017
8018 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
8019
8020         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
8021         (lgamma_test): Likewise.
8022         (tgamma_test): Likewise.
8023
8024 2012-10-16  Florian Weimer  <fweimer@redhat.com>
8025
8026         [BZ #14700]
8027         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
8028         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
8029
8030 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
8031
8032         * NEWS: Mention BZ #14716.
8033         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
8034         when removing AVAILABLE1_USES_J macro.
8035
8036 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8037
8038         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
8039         (__bswap_64): __uint64_t for unsigned 64-bit int.
8040
8041 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
8042
8043         * include/string.h (memmem): Declare libc hidden alias.
8044         * string/memmem.c (memmem): Define libc hidden alias.
8045         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
8046         __read, __close instead of open, read, close.
8047
8048 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
8049
8050         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
8051         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
8052         global and hidden.
8053         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
8054         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
8055         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
8056         Likewise.
8057         (__rawmemchr_sse2): Likewise.
8058         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
8059         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
8060         (__strchr_sse2): Likewise.
8061         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
8062         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
8063         (__strcasecmp_sse2): Likewise.
8064         (__strncasecmp_sse2): Likewise.
8065         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
8066         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
8067         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
8068         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
8069         (__strrchr_sse2): Likewise.
8070         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
8071         ifunc-impl-list.c.
8072         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
8073         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
8074         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
8075         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
8076         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
8077         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
8078         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8079         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8080         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
8081         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
8082         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
8083         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
8084         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
8085         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
8086         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
8087         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
8088         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
8089         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
8090         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
8091         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
8092         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
8093         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
8094         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
8095         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8096         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
8097         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
8098         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
8099         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8100         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
8101         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
8102
8103         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
8104         global and hidden.
8105         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
8106         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
8107         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
8108         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
8109         Likewise.
8110         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
8111         Likewise.
8112         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
8113         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
8114         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
8115         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
8116         ifunc-impl-list.c.
8117         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8118         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8119         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8120         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8121         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8122         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8123         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8124         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8125         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8126         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8127         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8128         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8129         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8130         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8131         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8132         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8133         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8134         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
8135         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8136         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8137         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8138         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8139         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8140         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8141         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8142         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8143         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8144         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8145         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8146         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8147         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8148         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8149         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8150         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
8151         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8152         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8153         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8154         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8155         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8156         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8157         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
8158
8159         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
8160         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
8161         * include/ifunc-impl-list.h: New file.
8162         * misc/ifunc-impl-list.c: Likewise.
8163         * misc/Makefile (routines): Add ifunc-impl-list.
8164         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
8165         * string/test-string.h: Include <ifunc-impl-list.h>.
8166         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
8167         impl_array): New variables.
8168         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
8169         are defined.
8170         (test_init): Call __libc_ifunc_impl_list to initialize
8171         func_list if TEST_IFUNC and TEST_NAME are defined.
8172
8173         * string/Makefile (strop-tests): Add bcopy and bzero.
8174         * string/test-bcopy.c: New file.
8175         * string/test-bzero.c: Likewise.
8176         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
8177         defined.
8178         * string/test-memset.c: Support bzero test if TEST_BZERO is
8179         defined.
8180         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
8181         __libc_memmove.
8182         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
8183         __libc_memset.
8184         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
8185         of memset.
8186
8187 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
8188
8189         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
8190         * configure: Regenerated.
8191
8192         * Makeconfig (+link-static-before-libc): Don't include
8193         $(link-static-libc).
8194
8195         * libio/libio.h (_IO_pos_t): Remove.
8196
8197 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8198
8199         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
8200         McGrath.
8201
8202 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8203
8204         * crypt/crypt-entry.c: Include fips-private.h.
8205         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
8206         * crypt/md5c-test.c (main): Tolerate disabled MD5.
8207         * sysdeps/unix/sysv/linux/fips-private.h: New file.
8208         * sysdeps/generic/fips-private.h: New file, dummy fallback.
8209
8210 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
8211
8212         * crypt/crypt-private.h: Include stdbool.h.
8213         (_ufc_setup_salt_r): Return bool.
8214         * crypt/crypt-entry.c: Include errno.h.
8215         (__crypt_r): Return NULL with EINVAL for bad salt.
8216         * crypt/crypt_util.c (bad_for_salt): New.
8217         (_ufc_setup_salt_r): Check that salt is long enough and within
8218         the specified alphabet.
8219         * crypt/badsalttest.c: New file.
8220         * crypt/Makefile (tests): Add it.
8221         ($(objpfx)badsalttest): New.
8222
8223 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8224
8225         * NEWS: Add entry for BZ #14602.
8226
8227 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8228
8229         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
8230         type-generic.
8231         * math/libm-test.inc: Update comment listing what functions and
8232         macros are tested.
8233         (isgreater_test): New function.
8234         (isgreaterequal_test): Likewise.
8235         (isless_test): Likewise.
8236         (islessequal_test): Likewise.
8237         (islessgreater_test): Likewise.
8238         (isunordered_test): Likewise.
8239         (main): Call the new functions.
8240
8241 2012-10-09  Roland McGrath  <roland@hack.frob.com>
8242
8243         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
8244         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
8245         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
8246         * sysdeps/i386/configure: Regenerated.
8247         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
8248         * sysdeps/mach/configure: Regenerated.
8249         * sysdeps/mach/hurd/configure: Regenerated.
8250         * sysdeps/powerpc/configure: Regenerated.
8251         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8252         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8253         * sysdeps/s390/s390-32/configure: Regenerated.
8254         * sysdeps/s390/s390-64/configure: Regenerated.
8255         * sysdeps/sh/configure: Regenerated.
8256         * sysdeps/sparc/configure: Regenerated.
8257         * sysdeps/unix/sysv/linux/configure: Regenerated.
8258         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
8259         * sysdeps/x86_64/configure: Regenerated.
8260
8261         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
8262         defined.  Don't check if MAP is NULL.
8263
8264 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
8265
8266         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
8267         (_G_stat64): Likewise.
8268         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
8269         (_G_stat64): Likewise.
8270         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
8271         instead of struct _G_stat64.
8272         * libio/fileops.c (mmap_remap_check): Likewise.
8273         (decide_maybe_mmap): Likewise.
8274         (_IO_new_file_seekoff): Likewise.
8275         (_IO_file_stat): Likewise.
8276         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
8277         _G_off64_t.
8278         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
8279         instead of struct _G_stat64.
8280         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8281
8282 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
8283
8284         [BZ #14602]
8285         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8286         Replace with ...
8287         (CHECK_EOL): New macro.
8288         (two_way_short_needle): Check beginning of haystack for EOL.  Use
8289         CHECK_EOL.
8290         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8291         Replace with CHECK_EOL.
8292         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
8293         Replace with CHECK_EOL.
8294
8295 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
8296
8297         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
8298         type-generic.
8299         * math/libm-test.inc: Update comment listing what functions and
8300         macros are tested.
8301         (finite_test): New function.
8302         (isinf_test): Likewise.
8303         (isnan_test): Likewise.
8304         (fpclassify_test): Test subnormal input.
8305         (isfinite_test): Likewise.
8306         (isnormal_test): Likewise.
8307         (main): Call the new functions.
8308
8309 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
8310
8311         [BZ #14660]
8312         * Makerules (%.dynsym): Force C locale when running
8313         $(OBJDUMP) --dynamic-syms.
8314
8315 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
8316
8317         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
8318         <stdint.h>.
8319
8320 2012-10-06  David S. Miller  <davem@davemloft.net>
8321
8322         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
8323         upper 32-bits of the length value in %o2 since we use branch-on-register
8324         tests which consider the entire 64-bit register.
8325
8326 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
8327
8328         * string/test-strstr.c (check2): Add a test for page boundary.
8329
8330 2012-10-05  David S. Miller  <davem@davemloft.net>
8331
8332         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
8333         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
8334         file.
8335         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8336         sysdep_routines.
8337         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8338         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
8339         and bzero when HWCAP_SPARC_CRYPTO is present.
8340
8341 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
8342
8343         [BZ #14602]
8344         * string/test-strstr.c (check2): New function.
8345         (test_main): Call check2.
8346
8347         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
8348         and bug-strchr1.
8349         * string/bug-strcasestr1.c (do_test): Moved to ...
8350         * string/test-strcasestr.c (check1): Here.  New function.
8351         (do_one_test): Break out result checking code into ...
8352         (check_result): This.  New function.
8353         (do_one_test): Call check_result.
8354         (test_main): Call check1.
8355         * string/bug-strchr1.c (do_test): Moved to ...
8356         * string/test-strchr.c (check1): Here.  New function.
8357         (do_one_test): Break out result checking code into ...
8358         (check_result): This.  New function.
8359         (do_one_test): Call check_result.
8360         (test_main): Call check1.
8361         * string/bug-strstr1.c (main): Moved to ...
8362         * string/test-strstr.c (check1): Here.  New function.
8363         (do_one_test): Break out result checking code into ...
8364         (check_result): This.  New function.
8365         (do_one_test): Call check_result.
8366         (test_main): Call check1.
8367         * string/bug-strcasestr1.c: Removed.
8368         * string/bug-strchr1.c: Likewise.
8369         * string/bug-strstr1.c: Likewise.
8370
8371         * elf/Makefile (dl-routines): Add hwcaps.
8372         * elf/dl-support.c (_dl_important_hwcaps): Removed.
8373         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
8374         (_dl_important_hwcaps): Moved to ...
8375         * elf/dl-hwcaps.c: Here.  New file.
8376         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
8377
8378         [BZ #14557]
8379         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
8380         if IS_IN_rtld isn't defined.
8381
8382         * elf/dl-support.c (_dl_sysinfo_map): New.
8383         Include "get-dynamic-info.h" and "setup-vdso.h".
8384         (_dl_non_dynamic_init): Call setup_vdso.
8385         * elf/dynamic-link.h: Don't include <assert.h>.
8386         (elf_get_dynamic_info): Moved to ...
8387         * elf/get-dynamic-info.h: Here.  New file.
8388         * elf/dynamic-link.h: Include "get-dynamic-info.h".
8389         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
8390         * elf/setup-vdso.h: Here.  New file.
8391         * elf/rtld.c: Include "setup-vdso.h".
8392         (dl_main): Call setup_vdso.
8393
8394 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
8395
8396         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
8397         creal in comment listing functions tested.  List finite, isinf,
8398         isnan, isless, islessequal, isgreater, isgreaterequal,
8399         islessgreater, isunordered, lgamma_r and pow10 as functions and
8400         macros not tested.  Mention which functions not tested are aliases
8401         for other functions.  Fix typo.  Note that signs of NaNs are not
8402         tested.
8403
8404         * scripts/config.guess: Update from config.git.
8405         * scripts/config.sub: Likewise.
8406
8407 2012-10-04  Roland McGrath  <roland@hack.frob.com>
8408
8409         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
8410         * misc/madvise.c (madvise): Renamed to __madvise.
8411         Make madvise a weak alias.
8412         * include/sys/mman.h: Declare __madvise.
8413         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
8414         * sysdeps/unix/syscalls.list
8415         (madvise): Make __madvise the strong name, and madvise a weak alias.
8416         * sysdeps/unix/sysv/linux/syscalls.list
8417         (madvise, mmap): Remove redundant entries.
8418         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
8419         * malloc/malloc.c (mtrim): Likewise.
8420         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
8421
8422 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8423
8424         * sysdeps/mach/hurd/dl-cache.c: File removed.
8425         * config.h.in (USE_LDCONFIG): New #undef.
8426         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
8427         * configure: Regenerated.
8428         * elf/Makefile (dl-routines): Add dl-cache only under
8429         [$(use-ldconfig) = yes].
8430         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
8431         cache on [USE_LDCONFIG].
8432         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
8433         [USE_LDCONFIG].
8434         * elf/rtld.c (dl_main): Likewise.
8435
8436 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
8437
8438         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
8439         _SC_LEVEL4_CACHE_LINESIZE.
8440
8441 2012-10-03  Roland McGrath  <roland@hack.frob.com>
8442
8443         * sysdeps/unix/bsd/confstr.h: File removed.
8444
8445 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
8446
8447         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
8448         sys/sdt-config.h.
8449
8450 2012-10-02  Roland McGrath  <roland@hack.frob.com>
8451
8452         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
8453         Make 'mapoff' field ElfW(Off) rather than off_t.
8454
8455 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8456
8457         * nscd/Makefile: Remove nscd-cflags and all its users.
8458         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
8459         (CFLAGS-nonlib): Add compiler flags for nscd modules.
8460
8461         [BZ #10631]
8462         * malloc.c (malloc_printerr): Clarify error message.
8463
8464 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8465
8466         [BZ #14648]
8467         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8468         Set bit_FMA_Usable if FMA is supported.
8469         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
8470         macro.
8471         (bit_FMA4_Usable): Updated.
8472         (index_FMA_Usable): New macro.
8473         (CPUID_FMA): Likewise
8474         (HAS_FMA): Defined with bit_FMA_Usable.
8475
8476 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8477
8478         * bits/types.h (__swblk_t): Type removed.
8479         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
8480         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
8481         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8482         (__SWBLK_T_TYPE): Likewise.
8483         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8484         (__SWBLK_T_TYPE): Likewise.
8485         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8486         (__SWBLK_T_TYPE): Likewise.
8487         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8488         (__SWBLK_T_TYPE): Likewise.
8489
8490 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
8491             Honza Horak <hhorak@redhat.com>
8492
8493         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
8494         (xdr_mapname): Use YPMAXMAP as maxsize.
8495         (xdr_peername): Use YPMAXPEER as maxsize.
8496         (xdr_keydat): Use YPAXRECORD as maxsize.
8497         (xdr_valdat): Use YPMAXRECORD as maxsize.
8498
8499 2012-10-01  Roland McGrath  <roland@hack.frob.com>
8500
8501         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
8502
8503         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
8504         * csu/init-first.c: ... here.
8505         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
8506         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
8507         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
8508         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
8509         * sysdeps/i386/init-first.c: File removed.
8510         * sysdeps/sh/init-first.c: File removed.
8511
8512 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
8513
8514         [BZ #14645]
8515         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
8516         if x * y might underflow to zero and z is zero.
8517         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8518         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8519         * math/libm-test.inc (min_subnorm_value): New variable.
8520         (fma_test): Add more tests.
8521         (fma_test_towardzero): Likewise.
8522         (fma_test_downward): Likewise
8523         (fma_test_upward): Likewise.
8524         (initialize): Set min_subnorm_value.
8525
8526 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
8527
8528         [BZ #14638]
8529         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
8530         0 + 0.
8531         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
8532         mode for addition resulting in exact zero.
8533         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
8534         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
8535         exact 0 + 0.
8536         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8537         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8538         * math/libm-test.inc (fma_test): Add more tests.
8539         (fma_test_towardzero): New function.
8540         (fma_test_downward): Likewise.
8541         (fma_test_upward): Likewise.
8542         (main): Call the new functions.
8543
8544 2012-09-28  David S. Miller  <davem@davemloft.net>
8545
8546         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
8547
8548 2012-09-28  Roland McGrath  <roland@hack.frob.com>
8549
8550         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
8551         instead of SIGALRM.
8552
8553         * sysdeps/gnu/_G_config.h: Moved to ...
8554         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
8555         * sysdeps/mach/hurd/_G_config.h: Moved to ...
8556         * sysdeps/generic/_G_config.h: ... here.
8557
8558         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
8559
8560         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
8561
8562         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
8563         Conditionalize target on [libnss_test1.so-version].
8564
8565         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
8566
8567         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
8568         (elfobjdir): Move out of conditionals.
8569
8570         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
8571         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
8572         (__nss_lookup_function): Conditionalize label remove_from_tree on
8573         [!DO_STATIC_NSS || SHARED], matching its only use.
8574
8575 2012-09-28  David S. Miller  <davem@davemloft.net>
8576
8577         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
8578         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
8579         file.
8580         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
8581         sysdep_routines.
8582         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
8583         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
8584         when HWCAP_SPARC_CRYPTO is present.
8585
8586 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8587
8588         * io/tst-mknodat.c: Create a FIFO instead of a socket.
8589
8590 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
8591
8592         [BZ #6530]
8593         * stdio-common/vfprintf.c (process_string_arg): Revert
8594         2000-07-22 change.
8595
8596 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
8597
8598         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
8599         for testcase.
8600         * stdio-common/tst-sprintf.c: Include <locale.h>
8601         (main): Test sprintf's handling of incomplete multibyte
8602         characters.
8603
8604 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
8605
8606         * elf/dl-runtime.c (VERSYMIDX): Removed.
8607         * elf/dl-version.c (VERSYMIDX): Likewise.
8608         * elf/do-rel.h (VERSYMIDX): Likewise.
8609         (VALIDX): Likewise.
8610         * elf/dynamic-link.h (VERSYMIDX): Likewise.
8611         * elf/rtld.c (VALIDX): Likewise.
8612         (ADDRIDX): Likewise.
8613         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
8614         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
8615         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
8616         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
8617         (VALIDX): Likewise.
8618         (ADDRIDX): Likewise.
8619
8620 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8621
8622         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
8623
8624 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
8625
8626         [BZ #11438]
8627         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
8628         to global scope.
8629         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
8630         addresses are in the same scope as 192.0.2/24.
8631         * posix/gai.conf: Document new scope table defaults.
8632
8633 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8634
8635         [BZ #5298]
8636         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
8637         for ftell.  Compute offsets from write pointers instead.
8638         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
8639
8640 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8641
8642         [BZ #14543]
8643         * libio/Makefile (tests): New test case tst-fseek.
8644         * libio/tst-fseek.c: New test case to verify that fseek/ftell
8645         combination works in wide mode.
8646         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
8647         state when the external buffer state changes.
8648
8649 2012-09-27  David S. Miller  <davem@davemloft.net>
8650
8651         [BZ #14376]
8652         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
8653         pass reloc->r_addend in as the 'high' argument to
8654         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
8655
8656         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8657
8658 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
8659
8660         * rt/tst-aio2.c: Include <pthread.h>.
8661         * rt/tst-aio3.c: Likewise.
8662
8663 2012-09-27  Steve Ellcey  <sellcey@mips.com>
8664
8665         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
8666
8667 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
8668
8669         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
8670         contents on [SHARED].
8671
8672 2012-09-26  Marek Polacek  <polacek@redhat.com>
8673
8674         [BZ #14530]
8675         [BZ #13741]
8676         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
8677         for C++ and GCC <4.3 as well as for non GCC compilers.
8678
8679 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
8680
8681         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8682
8683 2012-09-25  Roland McGrath  <roland@hack.frob.com>
8684
8685         * Makefile.in (all, install): Declare with .PHONY.
8686         Reported by Michael Hope <michael.hope@linaro.org>.
8687
8688 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8689
8690         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
8691         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
8692         system header.
8693         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
8694         Likewise.
8695         (sydep_routines): Add the new and the internal functions.
8696         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
8697         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
8698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
8699         (GLIBC_2.17): Add the new function.
8700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
8701         (GLIBC_2.17): Likewise.
8702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
8703         (GLIBC_2.17): Likewise.
8704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
8705         (GLIBC_2.17): Likewise.
8706         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
8707
8708 2012-09-25  Alan Modra  <amodra@gmail.com>
8709
8710         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
8711         Add release barrier before setting once_control to say
8712         initialisation is done.  Add hints on lwarx.  Use macro in
8713         place of isync.
8714         (clear_once_control): Add release barrier.
8715
8716 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8717
8718         [BZ #13629]
8719         * math/s_clog.c (__clog): Handle more values close to |z| = 1
8720         specially.
8721         * math/s_clog10.c (__clog10): Likewise.
8722         * math/s_clog10f.c (__clog10f): Likewise.
8723         * math/s_clog10l.c (__clog10l): Likewise.
8724         * math/s_clogf.c (__clogf): Likewise.
8725         * math/s_clogl.c (__clogl): Likewise.
8726         * math/Makefile (libm-calls): Add x2y2m1.
8727         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
8728         (__x2y2m1): Likewise.
8729         (__x2y2m1l): Likewise.
8730         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
8731         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
8732         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8733         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8734         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
8735         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8736         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
8737         * sysdeps/i386/fpu/libm-test-ulps: Update.
8738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8739
8740         [BZ #14621]
8741         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
8742         int as type of variable DEPTH.
8743         (glob): Use size_t instead of int as type of variables NEWCOUNT
8744         and OLD_PATHC.
8745
8746 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8747
8748         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
8749         Add s_sincosf-sse2.
8750         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
8751         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
8752         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
8753         macros for using routine as __sincosf_ia32.
8754         Use macro for function declaration and weak_alias.
8755         * sysdeps/i386/fpu/libm-test-ulps: Update.
8756
8757         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
8758         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8759
8760         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
8761         subnormal argument.
8762         * math/s_cexpf.c (__cexpf): Likewise.
8763         * math/s_csinf.c (__csinf): Likewise.
8764         * math/s_csinhf.c (__csinhf): Likewise.
8765         * math/s_ctanf.c (__ctanf): Likewise.
8766         * math/s_ctanhf.c (__ctanhf): Likewise.
8767         * math/s_ccosh.c (__ccoshf): Likewise.
8768         * math/s_cexp.c (__cexpl): Likewise.
8769         * math/s_csin.c (__csin): Likewise.
8770         * math/s_csinh.c (__csinh): Likewise.
8771         * math/s_ctan.c (__ctan): Likewise.
8772         * math/s_ctanh.c (ctanh): Likewise.
8773         * math/s_ccoshl.c (__ccoshl): Likewise.
8774         * math/s_cexpl.c (__cexpl): Likewise.
8775         * math/s_csinl.c (__csinl): Likewise.
8776         * math/s_csinhl.c (__csinhl): Likewise.
8777         * math/s_ctanl.c (__ctanl): Likewise.
8778         * math/s_ctanhl.c (__ctanhl): Likewise.
8779
8780 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
8781
8782         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
8783         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
8784         (_IO_off_t): Define to __off_t, not _G_off_t.
8785         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
8786         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
8787         (_IO_wint_t): Define to wint_t, not _G_wint_t.
8788         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
8789         type of __dummy and __dummy2 fields.
8790         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
8791         (_G_ssize_t): Likewise.
8792         (_G_off_t): Likewise.
8793         (_G_pid_t): Likewise.
8794         (_G_uid_t): Likewise.
8795         (_G_wchar_t): Likewise.
8796         (_G_wint_t): Likewise.
8797         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
8798         (_G_ssize_t): Likewise.
8799         (_G_off_t): Likewise.
8800         (_G_pid_t): Likewise.
8801         (_G_uid_t): Likewise.
8802         (_G_wchar_t): Likewise.
8803         (_G_wint_t): Likewise.
8804         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
8805         (_G_ssize_t): Likewise.
8806         (_G_off_t): Likewise.
8807         (_G_pid_t): Likewise.
8808         (_G_uid_t): Likewise.
8809         (_G_wchar_t): Likewise.
8810         (_G_wint_t): Likewise.
8811
8812 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8813
8814         * malloc/arena.c: Include malloc-sysdep.h.
8815         (shrink_heap): Use check_may_shrink_heap to decide if madvise
8816         is sufficient to shrink the heap or an unmap is needed.
8817         * sysdeps/generic/malloc-sysdep.h: New file.  Define
8818         new function check_may_shrink_heap.
8819         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
8820         new function check_may_shrink_heap.
8821
8822 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8823
8824         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
8825         comments.
8826
8827 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
8828
8829         * catgets/test-gencat.sh: Add "set -e".
8830         * elf/tst-pathopt.sh: Likewise.
8831         * grp/tst_fgetgrent.sh: Likewise.
8832         * iconvdata/run-iconv-test.sh: Likewise.
8833         * intl/tst-gettext.sh: Likewise.
8834         * intl/tst-gettext2.sh: Likewise.
8835         * intl/tst-gettext4.sh: Likewise.
8836         * intl/tst-gettext6.sh: Likewise.
8837         * intl/tst-translit.sh: Likewise.
8838         * io/ftwtest-sh: Likewise.
8839         * libio/test-freopen.sh: Likewise.
8840         * malloc/tst-mtrace.sh: Likewise.
8841         * posix/globtest.sh: Likewise.
8842         * posix/tst-getconf.sh: Likewise.
8843         * posix/wordexp-tst.sh: Likewise.
8844         * stdio-common/tst-printf.sh: Likewise.
8845         * stdio-common/tst-unbputc.sh: Likewise.
8846         * stdlib/tst-fmtmsg.sh: Likewise.
8847         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8848         * catgets/Makefile: Do not specify -e option when running
8849         testsuite shell scripts.
8850         * elf/Makefile: Likewise.
8851         * grp/Makefile: Likewise.
8852         * iconvdata/Makefile: Likewise.
8853         * intl/Makefile: Likewise.
8854         * io/Makefile: Likewise.
8855         * libio/Makefile: Likewise.
8856         * malloc/Makefile: Likewise.
8857         * posix/Makefile: Likewise.
8858         * stdio-common/Makefile: Likewise.
8859         * stdlib/Makefile: Likewise.
8860         * sysdeps/x86_64/Makefile: Likewise.
8861
8862         * io/ftwtest-sh: Add copyright header.
8863         * posix/globtest.sh: Likewise.
8864         * posix/tst-getconf.sh: Likewise.
8865         * posix/wordexp-tst.sh: Likewise.
8866         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
8867
8868 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
8869
8870         [BZ #13679]
8871         * Makeconfig (+link): Defined as $(+link-static) if
8872         $(build-shared) isn't yes.
8873         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
8874         isn't yes.
8875         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
8876
8877         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
8878
8879         [BZ #14562]
8880         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
8881         new chunk size with MALLOC_ALIGN_MASK.
8882
8883 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
8884
8885         [BZ #5044]
8886         * stdio-common/printf_fphex.c: Include <stdbool.h> and
8887         <rounding-mode.h>.
8888         (__printf_fphex): Determine rounding using get_rounding_mode and
8889         round_away.
8890         * stdio-common/tst-printf-round.c (struct hex_test): New
8891         structure.
8892         (hex_tests): New variable.
8893         (test_hex_in_one_mode): New function.
8894         (do_test): Also run tests for hex float output.
8895
8896 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
8897
8898         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
8899         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
8900         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
8901         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
8902         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
8903         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
8904         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
8905         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
8906
8907 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
8908
8909         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
8910         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
8911         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
8912         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
8913
8914 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
8915
8916         [BZ #14579]
8917         * elf/rtld.c (dl_main): Limit the check for self loading to normal
8918         mode only.
8919         * elf/tst-rtld-load-self.sh: New test.
8920         * elf/Makefile: Run it.
8921
8922 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
8923
8924         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
8925         (tst-writev-ENV): Remove.
8926         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
8927
8928 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
8929
8930         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
8931
8932 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
8933
8934         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
8935         unconditional.
8936         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
8937         Likewise.
8938         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
8939         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
8940         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
8941         Likewise.
8942
8943 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8944
8945         [BZ #14587]
8946         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
8947         * config.make.in (have-cpp-asm-debuginfo): Removed.
8948         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
8949         * configure: Regenerated.
8950
8951 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
8952
8953         [BZ #5044]
8954         * stdio-common/printf_fp.c: Include <stdbool.h> and
8955         <rounding-mode.h>.
8956         (___printf_fp): Determine rounding using get_rounding_mode and
8957         round_away.
8958         * stdio-common/tst-printf-round.c: New file.
8959         * stdio-common/Makefile (tests): Add tst-printf-round.
8960         (link-libm): New variable.
8961         ($(objpfx)tst-printf-round): Depend in $(link-libm).
8962
8963 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8964
8965         [BZ #14576]
8966         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
8967         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
8968         Likewise.
8969         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
8970         Likewise.
8971
8972 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
8973
8974         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
8975         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8976         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8977         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
8978
8979 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
8980
8981         [BZ #14518]
8982         * include/rounding-mode.h: New file.
8983         * sysdeps/generic/get-rounding-mode.h: Likewise.
8984         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
8985         * stdlib/strtod_l.c: Include <rounding-mode.h>.
8986         (MAX_VALUE): New macro.
8987         (MIN_VALUE): Likewise.
8988         (overflow_value): New function.
8989         (underflow_value): Likewise.
8990         (round_and_return): Use overflow_value and underflow_value to
8991         determine return values in overflow and underflow cases.  Use
8992         round_away to determine rounding depending on rounding mode.
8993         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
8994         determine return values in overflow and underflow cases.
8995         * stdlib/tst-strtod-round.c: Include <fenv.h>.
8996         (struct test_results): New structure.
8997         (struct test): Use struct test_results to store expected results
8998         for all rounding modes.
8999         (TEST): Include expected results for all rounding modes.
9000         (test_in_one_mode): New function.
9001         (do_test): Use test_in_one_mode to compute and check results.
9002         Check results for all rounding modes.
9003         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
9004         $(link-libm).
9005
9006 2012-12-09  Allan McRae  <allan@archlinux.org>
9007
9008         * sysdeps/i386/fpu/libm-test-ulps: Update
9009
9010 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
9011
9012         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
9013         (_G_int32_t): Likewise.
9014         (_G_uint16_t): Likewise.
9015         (_G_uint32_t): Likewise.
9016         (_G_HAVE_BOOL): Likewise.
9017         (_G_HAVE_ATEXIT): Likewise.
9018         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9019         (_G_HAVE_IO_FILE_OPEN): Likewise.
9020         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
9021         (_G_int32_t): Likewise.
9022         (_G_uint16_t): Likewise.
9023         (_G_uint32_t): Likewise.
9024         (_G_HAVE_BOOL): Likewise.
9025         (_G_HAVE_ATEXIT): Likewise.
9026         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9027         (_G_HAVE_IO_FILE_OPEN): Likewise.
9028         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
9029         (_G_int32_t): Likewise.
9030         (_G_uint16_t): Likewise.
9031         (_G_uint32_t): Likewise.
9032         (_G_HAVE_BOOL): Likewise.
9033         (_G_HAVE_ATEXIT): Likewise.
9034         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
9035         (_G_HAVE_IO_FILE_OPEN): Likewise.
9036
9037 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
9038
9039         * csu/libc-tls.c: Update copyright years.
9040
9041 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
9042
9043         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
9044         [!_G_USING_THUNKS]: Remove conditional code.
9045         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
9046         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
9047
9048         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
9049         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
9050         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9051         (_G_VTABLE_LABEL_PREFIX): Likewise.
9052         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9053         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9054         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9055         (_G_VTABLE_LABEL_PREFIX): Likewise.
9056         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9057         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
9058         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
9059         (_G_VTABLE_LABEL_PREFIX): Likewise.
9060         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
9061
9062 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9063
9064         * libio/Makefile: Include ../Makeconfig before tests.
9065         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
9066         only if $(build-shared) is yes.
9067
9068         * iconv/gconv_db.c: Update copyright years.
9069
9070 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9071
9072         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
9073         unwind info if defined PIC. Fix special cases description.
9074         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
9075
9076         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
9077         DP_HI_MASK entry.
9078         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
9079
9080 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9081
9082         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
9083
9084         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
9085         is NULL.
9086
9087         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9088         (LDLIBS-tst-chk4): This.
9089         (LDFLAGS-tst-chk5): Renamed to ...
9090         (LDLIBS-tst-chk5): This.
9091         (LDFLAGS-tst-chk6): Renamed to ...
9092         (LDLIBS-tst-chk6): This.
9093         (LDFLAGS-tst-lfschk4): Renamed to ...
9094         (LDLIBS-tst-lfschk4): This.
9095         (LDFLAGS-tst-lfschk5): Renamed to ...
9096         (LDLIBS-tst-lfschk5): This.
9097         (LDFLAGS-tst-lfschk6): Renamed to ...
9098         (LDLIBS-tst-lfschk6): This.
9099
9100         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
9101         on $(common-objpfx)soversions.mk.
9102
9103 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
9104
9105         [BZ #10014]
9106         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
9107         example host name.
9108
9109 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
9110
9111         * malloc/arena.c (arena_get_retry): New function that gets
9112         another arena for the caller to try its request on.
9113         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
9114         current arena cannot fulfill the request.
9115         (__libc_memalign): Likewise.
9116         (__libc_memalign): Likewise.
9117         (__libc_pvalloc): Likewise.
9118         (__libc_calloc): Likewise.
9119
9120 2012-09-05  John Tobey  <john.tobey@gmail.com>
9121
9122         [BZ #13542]
9123         * manual/arith.texi (Operations on Complex): Fix description
9124         of carg branch cut.
9125
9126 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9127
9128         [BZ #10014]
9129         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
9130         host name.
9131
9132         [BZ #10038]
9133         * manual/memory.texi (Memory): Make order of menu items match
9134         order of sections.
9135
9136 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9137
9138         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
9139         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
9140         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
9141
9142 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9143
9144         * csu/libc-tls.c (static_dtv): Renamed to ...
9145         (_dl_static_dtv): This.  Make it global.
9146         (_dl_initial_dtv): Removed.
9147         (__libc_setup_tls): Updated.
9148         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
9149         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
9150         DL_INITIAL_DTV.
9151
9152 2012-09-06  Petr Machata  <pmachata@redhat.com>
9153
9154         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
9155         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
9156         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
9157         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
9158
9159 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9160
9161         [BZ #14545]
9162         * csu/libc-tls.c (_dl_initial_dtv): New variable.
9163         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
9164         freeing dtv[-1].
9165
9166 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9167
9168         [BZ #14544]
9169         * Makeconfig (link-static-before-libc): Replace $(+prector)
9170         with $(+prectorT).
9171         (link-static-after-libc): Replace $(+postctor) with
9172         $(+postctorT).
9173         (link-bounded): Replace $(+prector)/$(+postctor) with
9174         $(+prectorT)/$(+postctorT).
9175         (+prectorT): New macro.
9176         (+postctorT): Likewise.
9177
9178 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
9179
9180         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
9181         (round_str): Handle values above the maximum for IBM long double
9182         as inexact.
9183         * stdlib/tst-strtod-round.c (tests): Regenerated.
9184
9185 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9186
9187         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
9188         assembler flag.
9189         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
9190         zarch_nohighgprs around the zarch optimized routines.
9191         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
9192         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9193         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
9194         for zarch.
9195
9196 2012-09-05  David S. Miller  <davem@davemloft.net>
9197
9198         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9199
9200         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
9201         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
9202         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
9203         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
9204         entries.
9205
9206 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9207
9208         * malloc/arena.c: Fold copyright years.
9209         * malloc/mcheck.c, malloc/memusage.c: Likewise.
9210
9211 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9212
9213         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
9214
9215 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9216
9217         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
9218
9219 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9220
9221         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
9222         change internal state upon failure.
9223
9224 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
9225
9226         * malloc/mcheck.c (mcheck_check_all): Fix typo.
9227         * malloc/memusage.c (mmap): Likewise.
9228         (mmap64, mremap): Likewise.  Adjust name in comment.
9229
9230 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9231
9232         * libio/fileops.c: Fix typos in comments.
9233         * libio/oldfileops.c: Likewise.
9234         * libio/wfileops.c: Likewise.
9235
9236 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9237
9238         [BZ #1349]
9239         * malloc/Makefile (tests): Add tst-malloc-usable test case.
9240         (tst-malloc-usable-ENV): Set environment for test case.
9241         * malloc/hooks.c (malloc_check_get_size): New function to get
9242         requested size.
9243         * malloc/malloc.c (musable): Use malloc_check_get_size.
9244         * malloc/tst-malloc-usable.c: New test case.
9245
9246 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9247
9248         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
9249
9250 2012-09-05  Allan McRae  <allan@archlinux.org>
9251
9252         [BZ #13966]
9253         * configure.in (CXX_SYSINCLUDES): Use compiler output to
9254         determine header location.
9255         * configure: Regenerated.
9256
9257 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
9258
9259         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
9260         float format.
9261         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
9262         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
9263         format.
9264         (test): Regenerate.
9265
9266 2012-09-04  David S. Miller  <davem@davemloft.net>
9267
9268         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
9269         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
9270         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
9271
9272 2012-09-04  Florian Weimer  <fweimer@redhat.com>
9273
9274         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
9275         failures.
9276
9277         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
9278
9279 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
9280
9281         [BZ #9914]
9282         * libio/iogetdelim.c: Include <limits.h>.
9283         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
9284         + len + 1 would overflow.
9285
9286 2012-09-03  Andreas Jaeger  <aj@suse.de>
9287
9288         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9289         * sysdeps/i386/fpu/libm-test-ulps: Update.
9290
9291 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9292
9293         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
9294         Add s_sinf-sse2, s_conf-sse2.
9295
9296         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
9297         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
9298         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
9299         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
9300
9301         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
9302         for using routine as __sinf_ia32.
9303         Use macro for function declaration and weak_alias.
9304         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
9305         for using routine as __cosf_ia32.
9306         Use macro for function declaration and weak_alias.
9307
9308         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
9309         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
9310
9311         * sysdeps/x86_64/fpu/s_sinf.S: New file.
9312         * sysdeps/x86_64/fpu/s_cosf.S: New file.
9313         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9314
9315         * math/libm-test.inc (cos_test): Add more test cases.
9316         (sin_test): Likewise.
9317         (sincos_test): Likewise.
9318
9319 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9320
9321         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
9322         (IFUNC_RESOLVE): Make pointers to the specialized implementations
9323         hidden.
9324         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
9325
9326 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
9327
9328         [BZ #14538]
9329         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
9330         first element of the GOT.
9331         (elf_machine_load_address): Return the difference between
9332         the runtime address of _DYNAMIC and elf_machine_dynamic ().
9333
9334 2012-09-01  Allan McRae  <allan@archlinux.org>
9335
9336         [BZ #13412]
9337         * configure.in (AWK): Require gawk version 3.0 or later.
9338         * configure: Regenerated.
9339
9340 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
9341
9342         * sysdeps/unix/sysv/linux/kernel-features.h
9343         (__ASSUME_POSIX_CPU_TIMERS): Remove.
9344         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
9345         [__NR_clock_getres]: Make code unconditional.
9346         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
9347         (clock_getcpuclockid): Remove code left unreachable by removal of
9348         conditionals.
9349         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
9350         code unconditional.
9351         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9352         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9353         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
9354         Make code unconditional.
9355         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
9356         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9357         * sysdeps/unix/sysv/linux/clock_settime.c
9358         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
9359         conditional code.
9360         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
9361         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
9362
9363 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
9364
9365         [BZ #14476]
9366         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
9367         scripts/test-installation.pl.
9368
9369         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
9370         and $ld_so_version if it is set.
9371
9372 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9373
9374         [BZ #14516]
9375         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
9376         failure if reading from procfs failed.
9377         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
9378
9379 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9380
9381         * sysdeps/unix/sysv/linux/kernel-features.h
9382         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
9383         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9384         Remove conditional code.
9385         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9386         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
9387         Remove conditional code.
9388         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9389         * sysdeps/unix/sysv/linux/i386/fxstat.c
9390         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9391         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9392         * sysdeps/unix/sysv/linux/i386/fxstatat.c
9393         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9394         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9395         * sysdeps/unix/sysv/linux/i386/lxstat.c
9396         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
9397         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9398         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
9399         Remove conditional code.
9400         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9401         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
9402         Remove conditional code.
9403         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9404         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
9405         <kernel-features.h>.
9406         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
9407         Remove.
9408         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
9409         Remove conditional code.
9410         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
9411         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
9412         Remove conditional.
9413
9414 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
9415
9416         [BZ #5400]
9417         * NEWS: Add fixed bug number.
9418
9419 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
9420
9421         [BZ #14519]
9422         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
9423         underflowing exponent in case of negative sign.
9424         * stdlib/tst-strtod-round-data: Add more tests.
9425         * stdlib/tst-strtod-round.c (tests): Regenerated.
9426
9427         [BZ #3479]
9428         * stdlib/strtod_l.c (NDIG): Remove.
9429         (HEXNDIG): Likewise.
9430         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
9431         smallest representable value.
9432         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
9433         lie within an exact representation of 1/2 ulp of the result.
9434         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
9435         unconditionally.
9436         (TENS_P9_IDX): Define unconditionally.
9437         (TENS_P9_SIZE): Likewise.
9438         (TENS_P10_IDX): Likewise.
9439         (TENS_P10_SIZE): Likewise.
9440         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
9441         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
9442         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
9443         entries for 10^2^13 and 10^2^14.
9444         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
9445         (TENS_P13_IDX): Define.
9446         (TENS_P13_SIZE): Likewise.
9447         (TENS_P14_IDX): Likewise.
9448         (TENS_P14_SIZE): Likewise.
9449         (_fpioconst_pow10): Change array size to
9450         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
9451         unconditional.
9452         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
9453         1024]: Add entries for 10^2^13 and 10^2^14.
9454         [LAST_POW10 > _LAST_POW10]: Remove #error.
9455         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
9456         (_fpioconst_pow10): Change array size to
9457         FPIOCONST_POW10_ARRAY_SIZE.
9458         * stdlib/gen-fpioconst.c: New file.
9459         * stdlib/gen-tst-strtod-round.c: Likewise.
9460         * stdlib/tst-strtod-round-data: Likewise.
9461         * stdlib/tst-strtod-round.c: Likewise.
9462         * stdlib/Makefile (tests): Add tst-strtod-round.
9463
9464         [BZ #14459]
9465         * stdlib/strtod_l.c: Include <stdint.h>.
9466         (NDEBUG): Do not define.
9467         (round_and_return): Change EXPONENT parameter to type intmax_t.
9468         Rearrange calculations to avoid internal overflow possibilities.
9469         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
9470         Rearrange calculations to avoid internal overflow possibilities.
9471         Assert that number fits inside MPNSIZE limbs.
9472         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
9473         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
9474         calculations and add assertions to avoid internal overflow
9475         possibilities.  Add casts to avoid signed/unsigned operations.
9476         * stdlib/tst-strtod-overflow.c: New file.
9477         * stdlib/Makefile (tests): Add tst-strtod-overflow.
9478
9479 2012-08-25  Marek Polacek  <polacek@redhat.com>
9480
9481         * time/time.h: Fix some typos in comments.
9482
9483 2012-08-23  Roland McGrath  <roland@hack.frob.com>
9484
9485         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
9486         * posix/tst-rfc3484-2.c: Likewise.
9487         * posix/tst-rfc3484-3.c: Likewise.
9488
9489 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
9490
9491         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
9492         (EF_ARM_ABI_FLOAT_HARD): Likewise.
9493
9494 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
9495
9496         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
9497         #include of fxstatat64.c.
9498
9499 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9500
9501         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
9502         * shadow/getspent_r.c: Likewise.
9503         * shadow/getspnam.c: Likewise.
9504         * shadow/getspnam_r.c: Likewise.
9505         * gshadow/getsgent.c: Likewise.
9506         * gshadow/getsgent_r.c: Likewise.
9507         * gshadow/getsgnam.c: Likewise.
9508         * gshadow/getsgnam_r.c: Likewise.
9509         * inet/getnetbyad.c: Likewise.
9510         * inet/getnetbyad_r.c: Likewise.
9511         * inet/getnetbynm.c: Likewise.
9512         * inet/getnetbynm_r.c: Likewise.
9513         * inet/getnetent.c: Likewise.
9514         * inet/getnetent_r.c: Likewise.
9515         * inet/getproto.c: Likewise.
9516         * inet/getproto_r.c: Likewise.
9517         * inet/getprtent.c: Likewise.
9518         * inet/getprtent_r.c: Likewise.
9519         * inet/getprtname.c: Likewise.
9520         * inet/getprtname_r.c: Likewise.
9521         * inet/getrpcbyname.c: Likewise.
9522         * inet/getrpcbyname_r.c: Likewise.
9523         * inet/getrpcbynumber.c: Likewise.
9524         * inet/getrpcbynumber_r.c: Likewise.
9525         * inet/getrpcent.c: Likewise.
9526         * inet/getrpcent_r.c: Likewise.
9527         * inet/getaliasent.c: Likewise.
9528         * inet/getaliasent_r.c: Likewise.
9529         * inet/getaliasname.c: Likewise.
9530         * inet/getaliasname_r.c: Likewise.
9531         * nscd/getgrgid_r.c: Likewise.
9532         * nscd/getgrnam_r.c: Likewise.
9533         * nscd/gethstbyad_r.c: Likewise.
9534         * nscd/gethstbynm3_r.c: Likewise.
9535         * nscd/getpwnam_r.c: Likewise.
9536         * nscd/getpwuid_r.c: Likewise.
9537         * nscd/getsrvbynm_r.c: Likewise.
9538         * nscd/getsrvbypt_r.c: Likewise.
9539         * nscd/gai.c: Likewise.
9540
9541         * configure.in (build_nscd): New substituted variable, set
9542         by --disable-build-nscd and defaults to $use_nscd.
9543         * configure: Regenerated.
9544         * config.make.in (build-nscd): New substituted variable.
9545         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
9546         Change conditional to require [$(build-nscd) = yes] as well.
9547         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
9548
9549         [BZ# 13696]
9550         * configure.in (use_nscd): New substituted variable, set by
9551         --disable-nscd.  If enabled, define USE_NSCD.
9552         * configure: Regenerated.
9553         * config.h.in: Add USE_NSCD.
9554         * config.make.in (use-nscd): New substituted variable.
9555         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
9556         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
9557         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
9558         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
9559         (CFLAGS-getgrnam_r.c): Likewise.
9560         (CFLAGS-initgroups.c): Likewise.
9561         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
9562         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
9563         Variables removed.
9564         * inet/getnetgrent_r.c
9565         (nscd_setnetgrent): New function, broken out of ...
9566         (setnetgrent): ... here.  Call it.
9567         (innetgr): Conditionalize nscd bits on [USE_NSCD].
9568         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
9569         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
9570         * nscd/Makefile (routines, aux): Move definitions after include of
9571         Makeconfig.  Conditionalize on [$(use-nscd) != no].
9572         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
9573         Conditionalize on [USE_NSCD].
9574         (is_nscd, nscd_init_cb): Likewise.
9575         (nss_load_library): Conditionalize init callback on [USE_NSCD].
9576         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
9577         * nss/nss_db/db-init.c: Likewise.
9578         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
9579         [USE_NSCD].
9580         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
9581         (make_request): Use it.
9582         (cache_valid_p): New function.
9583         (__check_pf): Use it.
9584         * NEWS: Add item for --disable-nscd.
9585
9586 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
9587
9588         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
9589         to support sed >= 4.2.1-20-ga9bf076.
9590         * configure: Regenerated.
9591
9592 2012-08-22  Roland McGrath  <roland@hack.frob.com>
9593
9594         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
9595         Conditionalize whole body on [IREL].
9596
9597 2012-08-22  Jeff Law <law@redhat.com>
9598
9599         [BZ #14505]
9600         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
9601         if the family is PF_UNSPEC.
9602
9603 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
9604
9605         * Makerules (lib-version): Rename from V.
9606         (install-lib-nosubdir): Change V to lib-version.
9607
9608 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
9609
9610         [BZ #14252]
9611         * powerpc32/power6/wcschr.c: New file.
9612         * powerpc32/power6/wcscpy.c: New file.
9613         * powerpc32/power6/wcsrchr.c: New file.
9614         * powerpc64/power6/wcschr.c: New file.
9615         * powerpc64/power6/wcscpy.c: New file.
9616         * powerpc64/power6/wcsrchr.c: New file.
9617
9618 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9619
9620         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
9621         (two_way_short_needle): Use it.
9622         * string/strstr.c (AVAILABLE1_USES_J): Define.
9623         * string/strcasestr.c: Likewise.
9624
9625         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
9626         array references.
9627         * string/strcasestr.c (TOLOWER): Make side-effect safe.
9628
9629         [BZ #11607]
9630         * NEWS: Add an entry.
9631         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
9632         define their defaults.
9633         (two_way_short_needle): Detect end-of-string on-the-fly.
9634         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
9635         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
9636         * string/bug-strcasestr1.c: New test.
9637         * string/Makefile: Run it.
9638
9639 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
9640
9641         [BZ #11607]
9642         * string/str-two-way.h (two_way_short_needle): Optimize matching of
9643         the first character.
9644
9645 2012-08-21  Roland McGrath  <roland@hack.frob.com>
9646
9647         * csu/elf-init.c (__libc_csu_irel): Function removed.
9648         * csu/libc-start.c (apply_irel): New function.
9649         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
9650
9651 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
9652
9653         * sysdeps/unix/sysv/linux/kernel-features.h
9654         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
9655         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
9656         <kernel-features.h>.
9657         [__NR_fadvise64_64]: Make code unconditional.
9658         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
9659         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9660         !__NR_fadvise64_64)]: Likewise.
9661         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
9662         !__NR_fadvise64_64))]: Likewise.
9663         [__NR_fadvise64]: Make code unconditional.
9664         [!__NR_fadvise64]: Remove conditional code.
9665         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
9666         <kernel-features.h>.
9667         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9668         unconditional.
9669         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9670         conditional code.
9671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
9672         not include <kernel-features.h>.
9673         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9674         unconditional.
9675         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9676         conditional code.
9677         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
9678         include <kernel-features.h>.
9679         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
9680         unconditional.
9681         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
9682         conditional code.
9683
9684 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9685
9686         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
9687         slight instruction rearrangements per scrollpipe analysis.
9688         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
9689
9690 2012-08-20  Roland McGrath  <roland@hack.frob.com>
9691
9692         * manual/syslog.texi (syslog; vsyslog, closelog):
9693         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
9694         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
9695
9696         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
9697         DSOCAPS to match condition on defining it.
9698
9699 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
9700
9701         * sysdeps/unix/sysv/linux/kernel-features.h
9702         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
9703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
9704         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9705         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
9707         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9708         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
9710         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
9711         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
9712
9713         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
9714         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
9715
9716         * sysdeps/unix/sysv/linux/kernel-features.h
9717         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
9718         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
9719         unconditional.
9720         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9721         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
9722         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9723         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9724         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
9725         Make code unconditional.
9726         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9727         (__mmap64) [!__NR_mmap2]: Likewise.
9728         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
9729         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
9730         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9731         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
9732         [__NR_mmap2]: Make code unconditional.
9733         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
9734         (__mmap64) [!__NR_mmap2]: Likewise.
9735
9736 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9737
9738         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
9739
9740 2012-08-18  Andreas Jaeger  <aj@suse.de>
9741
9742         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
9743
9744 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9745
9746         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
9747         * include/unistd.h (__have_sock_cloexec): Likewise.
9748         (__have_pipe2): Likewise.
9749         (__have_dup3): Likewise.
9750
9751 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
9752
9753         [BZ #9685]
9754         * include/unistd.h (__have_pipe2): Change define into an extern int.
9755         (__have_dup3): Likewise.
9756         * socket/have_sock_cloexec.c: Include fcntl.h.
9757         (__have_pipe2): New variable.
9758         (__have_dup3): Likewise.
9759
9760 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
9761
9762         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
9763
9764 2012-08-17  Marek Polacek  <polacek@redhat.com>
9765
9766         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
9767         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
9768
9769 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9770
9771         * configure.in: Add AC_SUBST for sysheaders.
9772         * configure: Regenerated.
9773         * config.make.in (sysheaders): New substituted variable.
9774
9775         * sysdeps/unix/mkfifo.c: Moved ...
9776         * sysdeps/posix/mkfifo.c: ... here.
9777         * sysdeps/unix/mkfifoat.c: Moved ...
9778         * sysdeps/posix/mkfifoat.c: ... here.
9779
9780         * sysdeps/unix/utime.c: Moved ...
9781         * sysdeps/posix/utime.c: ... here.
9782
9783         * sysdeps/unix/time.c: Moved ...
9784         * sysdeps/posix/time.c: ... here.
9785         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
9786         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
9787
9788         * sysdeps/unix/nice.c: Moved ...
9789         * sysdeps/posix/nice.c: ... here.
9790
9791         * sysdeps/unix/alarm.c: Moved ...
9792         * sysdeps/posix/alarm.c: ... here.
9793
9794         * intl/Makefile ($(codeset_mo)): Depend on the input file.
9795
9796 2012-08-17  Jeff Law <law@redhat.com>
9797
9798         * intl/Makefile (codeset_mo): New variable.
9799         ($(codeset_mo)): New target.
9800         (tst-codeset.out): Depend on that.  Remove explicit rule.
9801         (tst-gettext3.out, tst-gettext5.out): Likewise.
9802         (LOCPATH-ENV, tst-codeset-ENV): New variables.
9803         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
9804         * intl/tst-codeset.sh: Remove.
9805         * intl/tst-gettext3.sh: Likewise.
9806         * intl/tst-gettext5.sh: Likewise.
9807
9808 2012-08-17  Roland McGrath  <roland@hack.frob.com>
9809
9810         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
9811         * sysdeps/unix/syscalls.list: ... here.
9812
9813         * sysdeps/posix/getaddrinfo.c
9814         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
9815         (gaiconf_init, gaiconf_reload): Use them.
9816         [!_STATBUF_ST_NSEC]
9817         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
9818         Define using time_t rather than struct timespec.
9819
9820         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
9821         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
9822         Macros removed.
9823         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
9824         [!NO_THREADS].
9825         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
9826         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
9827         Likewise.
9828
9829         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
9830         __libc_cleanup_push argument.
9831
9832         * bits/param.h: New file.
9833         * misc/sys/param.h: New file.
9834         * include/sys/param.h: New file.
9835         * misc/Makefile (headers): Add bits/param.h.
9836         * sysdeps/generic/sys/param.h: File removed.
9837         * sysdeps/unix/sysv/linux/bits/param.h: New file.
9838         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
9839         * sysdeps/mach/hurd/bits/param.h: New file.
9840         * sysdeps/mach/hurd/sys/param.h: File removed.
9841
9842         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
9843         last change.
9844
9845         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
9846         [_IO_MTSAFE_IO].
9847         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
9848         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
9849         New macros.
9850
9851         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
9852         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
9853         rather than -D_IO_MTSAFE_IO conditionally.
9854         * stdio-common/Makefile (CPPFLAGS): Likewise.
9855         * wcsmbs/Makefile (CPPFLAGS): Likewise.
9856         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
9857         Use $(libio-mtsafe).
9858         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
9859         of -D_IO_MTSAFE_IO.
9860         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
9861         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
9862         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
9863         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
9864         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
9865         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
9866         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
9867         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
9868         (CFLAGS-fread_u_chk.c): Likewise.
9869         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
9870         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
9871         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
9872         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
9873         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
9874         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
9875         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
9876         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
9877         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
9878
9879         * libio/Makefile: Test [$(libc-reentrant) = yes]
9880         instead of [$(filter %REENTRANT, $(defines)) nonempty].
9881
9882         * Makeconfig
9883         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
9884         * sysdeps/pthread/configure: File removed.
9885         * sysdeps/pthread/Makeconfig: New file.
9886         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
9887         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
9888
9889 2012-08-16  Gary Benson  <gbenson@redhat.com>
9890
9891         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
9892         unmapping the first object in a namespace.
9893
9894 2012-08-16  Roland McGrath  <roland@hack.frob.com>
9895
9896         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
9897         (__internal_setnetgrent): ... this.  Add internal_function to
9898         definition.  Add libc_hidden_def.
9899         (setnetgrent): Update caller.
9900         (internal_endnetgrent): Renamed to ...
9901         (__internal_endnetgrent): ... this.  Add internal_function to
9902         definition.  Add libc_hidden_def.
9903         (endnetgrent): Update caller.
9904         (internal_getnetgrent_r): Renamed to ...
9905         (__internal_getnetgrent_r): ... this.  Add internal_function to
9906         definition.  Add libc_hidden_def.
9907         (__getnetgrent_r): Update caller.
9908         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
9909
9910 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
9911
9912         * stdlib/longlong.h: Update from GCC.
9913
9914 2012-08-16  Roland McGrath  <roland@hack.frob.com>
9915
9916         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
9917         on _QL, which is set by umul_ppmm but never used.
9918         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
9919         variables, which are set by GMP macros but never used.
9920         * stdio-common/_itowa.c (_itowa): Likewise.
9921         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
9922         * stdlib/mod_1.c (mpn_mod_1): Likewise.
9923
9924 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
9925
9926         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
9927         struct La_sh_regs is not constant.
9928         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
9929         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
9930         and struct La_sparc64_regs are not constant.
9931
9932 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
9933
9934         * sysdeps/unix/sysv/linux/kernel-features.h
9935         (__ASSUME_POSIX_TIMERS): Remove.
9936         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
9937         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9938         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
9939         Make code unconditional.
9940         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9941         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
9942         Make code unconditional.
9943         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9944         * sysdeps/unix/sysv/linux/clock_nanosleep.c
9945         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
9946         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9947         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
9948         Make code unconditional.
9949         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
9950         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
9951         (__libc_missing_posix_timers): Remove.
9952
9953 2012-08-15  Roland McGrath  <roland@hack.frob.com>
9954
9955         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
9956         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
9957
9958         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
9959
9960         * elf/dl-sym.c: Include <stdlib.h>.
9961
9962         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
9963         constants, which avoids warnings in 32-bit builds.
9964
9965         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
9966         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
9967
9968         * misc/lseek.c: File moved to ...
9969         * io/lseek.c: ... here.
9970
9971         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
9972
9973         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
9974         shifting LEN more than 31 bits at once.
9975
9976 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9977
9978         [BZ #14195]
9979         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
9980         segmentation fault for a case of two empty input strings.
9981         * string/test-strncasecmp.c (check1): Renamed to...
9982         (bz12205): ...this.
9983         (bz14195): Add new testcase for two empty input strings and N > 0.
9984         (test_main): Call new testcase, adapt for renamed function.
9985
9986 2012-08-15  Andreas Jaeger  <aj@suse.de>
9987
9988         [BZ #14090]
9989         * crypt/md5test2.c: New test, based on test supplied by Serge
9990         Belyshev <belyshev@depni.sinp.msu.ru>.
9991         * crypt/Makefile (xtests): Add md5test-giant..
9992         * crypt/Makefile ($(objpfx)md5test-giant): Add.
9993
9994 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         [BZ #14090]
9997         * crypt/md5.c (md5_process_block): Don't assume the buffer
9998         length is less than 2**32.
9999         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
10000         length is less than 2**64.
10001
10002 2012-08-15  Roland McGrath  <roland@hack.frob.com>
10003
10004         * string/str-two-way.h: Include <sys/param.h>.
10005         (MAX): Macro removed.
10006
10007         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
10008         Move #define and #undef of memmove to just before and after
10009         including <string.h>.
10010
10011         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
10012         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
10013         and after including <string.h>.  Move declarations of
10014         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
10015         to before #include "string/memmove.c".
10016
10017         * include/dirent.h: Declare __getdirentries.
10018
10019         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
10020         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
10021
10022 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
10023
10024         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
10025         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
10026         * sysdeps/i386/configure: Regenerated.
10027         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
10028         STABS_CURRENT_FILE, and STABS_FUN.
10029         (END): Remove call to STABS_FUN_END.
10030         (STABS_CURRENT_FILE1): Delete.
10031         (STABS_CURRENT_FILE): Likewise.
10032         (STABS_FUN): Likewise.
10033         (STABS_FUN_END): Likewise.
10034         (STABS_FUN2): Likewise.
10035         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
10036         * sysdeps/x86_64/configure: Regenerated.
10037
10038 2012-08-14  Roland McGrath  <roland@hack.frob.com>
10039
10040         * elf/dl-open.c: Include <atomic.h>.
10041         * elf/dl-lookup.c: Likewise.
10042
10043 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
10044
10045         * sysdeps/unix/sysv/linux/kernel-features.h
10046         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
10047         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
10048         unconditionally.
10049         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
10050         unconditionally.
10051         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
10052         condition on __ASSUME_CLONE_THREAD_FLAGS.
10053
10054 2012-08-14  Andreas Jaeger  <aj@suse.de>
10055
10056         * sysdeps/i386/fpu/libm-test-ulps: Update.
10057
10058 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
10059
10060         * include/atomic.h (atomic_exchange_and_add): Split into ...
10061         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
10062         New atomic macros.
10063
10064 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
10065
10066         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10067
10068 2012-08-13  Jeff Law <law@redhat.com>
10069
10070         * manual/stdio.texi (snprintf): Clarify handling of the trailing
10071         null byte in the output string.
10072
10073 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
10074
10075         * sysdeps/unix/sysv/linux/kernel-features.h
10076         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
10077         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
10078         (__ASSUME_ARG_MAX_STACK_BASED): Define.
10079         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10080         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
10081         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
10082         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
10083
10084 2012-08-09  Jeff Law <law@redhat.com>
10085
10086         [BZ #13939]
10087         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
10088         When avoid_arena is set, don't retry in the that arena.  Pick the
10089         next one, whatever it might be.
10090         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
10091         (arena_lock): Pass in new parameter to arena_get2.
10092         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
10093         arena_get2.
10094         (__libc_malloc): Unify retrying after main arena failure with
10095         __libc_memalign version.
10096         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
10097
10098 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10099
10100         [BZ #14166]
10101         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
10102         to __redirect_strstr.
10103         (__strstr_sse42): Use typeof __redirect_strstr.
10104         (__strstr_ia32): Likewise.
10105         (__libc_strstr): New prototype.
10106         (strstr): Renamed to ...
10107         (__libc_strstr): This.
10108         (strstr): New strong alias of __libc_strstr.
10109         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
10110         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
10111         __redirect_time.
10112         Include <time.h>.
10113         (__libc_time): New prototype.
10114         (time_ifunc): Replace time with __libc_time.
10115         (time): New strong alias and hidden definition of __libc_time.
10116         (__GI_time): Remove strong alias.
10117         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
10118         Include <stddef.h>.
10119         (memmove): Redefined to __redirect_memmove.
10120         (__memmove_sse2): Use typeof __redirect_memmove.
10121         (__memmove_ssse3): Likewise.
10122         (__memmove_ssse3_back): Likewise.
10123         (__libc_memmove): New prototype.
10124         (memmove): Renamed to ...
10125         (__libc_memmove): This.
10126         (memmove): New strong alias of __libc_memmove.
10127
10128 2012-08-08  Mark Salter  <msalter@redhat.com>
10129
10130         * elf/elf.h
10131         (R_MN10300_TLS_GD): Define.
10132         (R_MN10300_TLS_LD): Likewise.
10133         (R_MN10300_TLS_LDO): Likewise.
10134         (R_MN10300_TLS_GOTIE): Likewise.
10135         (R_MN10300_TLS_IE): Likewise.
10136         (R_MN10300_TLS_LE): Likewise.
10137         (R_MN10300_TLS_DTPMOD): Likewise.
10138         (R_MN10300_TLS_DTPOFF): Likewise.
10139         (R_MN10300_TLS_TPOFF): Likewise.
10140         (R_MN10300_SYM_DIFF): Likewise.
10141         (R_MN10300_ALIGN): Likewise.
10142         (R_MN10300_NUM): Update.
10143
10144 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10145
10146         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
10147         Remove.
10148
10149 2012-08-08  Roland McGrath  <roland@hack.frob.com>
10150
10151         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
10152
10153         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
10154         sysdeps/unix -> sysdeps/posix move.
10155         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10156
10157 2012-08-07      Allan McRae     <allan@archlinux.org>
10158
10159         [BZ #14303]
10160         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
10161         (SUNOS_CPP): Likewise.
10162         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
10163         not found.
10164         (open_input): Call CPP using execvp.
10165
10166 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10167
10168         * sysdeps/unix/sysv/linux/kernel-features.h
10169         (__ASSUME_PROT_GROWSUPDOWN): Remove.
10170         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10171         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10172         (__ASSUME_WAITID_SYSCALL): Likewise.
10173         * sysdeps/unix/sysv/linux/dl-execstack.c
10174         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
10175         code unconditional.
10176         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
10177         conditional code.
10178         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
10179         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
10180         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
10181         code.
10182         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
10183         unconditional.
10184         [__ASSUME_WAITID_SYSCALL]: Likewise.
10185         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
10186
10187 2012-08-07  Roland McGrath  <roland@hack.frob.com>
10188
10189         * sysdeps/unix/closedir.c: Renamed to ...
10190         * sysdeps/posix/closedir.c: ... here.
10191         * sysdeps/unix/dirfd.c: Renamed to ...
10192         * sysdeps/posix/dirfd.c: ... here.
10193         * sysdeps/unix/dirstream.h: Renamed to ...
10194         * sysdeps/posix/dirstream.h: ... here.
10195         * sysdeps/unix/fdopendir.c: Renamed to ...
10196         * sysdeps/posix/fdopendir.c: ... here.
10197         * sysdeps/unix/opendir.c: Renamed to ...
10198         * sysdeps/posix/opendir.c: ... here.
10199         * sysdeps/unix/readdir.c: Renamed to ...
10200         * sysdeps/posix/readdir.c: ... here.
10201         * sysdeps/unix/readdir_r.c: Renamed to ...
10202         * sysdeps/posix/readdir_r.c: ... here.
10203         * sysdeps/unix/rewinddir.c: Renamed to ...
10204         * sysdeps/posix/rewinddir.c: ... here.
10205         * sysdeps/unix/seekdir.c: Renamed to ...
10206         * sysdeps/posix/seekdir.c: ... here.
10207         * sysdeps/unix/telldir.c: Renamed to ...
10208         * sysdeps/posix/telldir.c: ... here.
10209         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
10210         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
10211         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10212         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10213
10214         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
10215         * bits/fcntl.h: ... here.
10216
10217         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
10218         not 0.
10219         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
10220         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
10221         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
10222         (struct flock): Move l_start, l_len to the beginning.
10223         Use __pid_t for l_pid.
10224         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
10225         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
10226         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
10227         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
10228         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
10229         [__USE_LARGEFILE64] (struct flock64): New type.
10230         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
10231
10232         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
10233         * bits/dirent.h: ... here.
10234
10235         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
10236         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
10237
10238 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
10239
10240         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10241         Change from 2.6.0 to 2.6.16.
10242         * sysdeps/unix/sysv/linux/configure: Regenerated.
10243         * sysdeps/unix/sysv/linux/kernel-features.h
10244         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
10245         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
10246         version.
10247         (__ASSUME_UTIMES): Likewise.
10248         (__ASSUME_CLONE_STOPPED): Remove.
10249         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
10250         architectures, not kernel version.
10251         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
10252         (__ASSUME_NO_CLONE_DETACHED): Likewise.
10253         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
10254         (__ASSUME_WAITID_SYSCALL): Likewise.
10255         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
10256         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
10257         * README: State 2.6.16 as minimum Linux kernel version.  Do not
10258         refer to older versions.
10259
10260 2012-08-06  Roland McGrath  <roland@hack.frob.com>
10261
10262         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
10263         Define alphasort64 as an alias.
10264         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
10265         Define versionsort64 as an alias.
10266         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
10267         Define scandir64 as an alias.
10268         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
10269         Define scandirat64 as an alias.
10270         * dirent/alphasort64.c (alphasort64):
10271         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
10272         * dirent/versionsort64.c: Likewise.
10273         * dirent/scandir64.c: Likewise.
10274         * dirent/scandirat64.c: Likewise.
10275         * sysdeps/wordsize-64/alphasort.c: File removed.
10276         * sysdeps/wordsize-64/alphasort64.c: File removed.
10277         * sysdeps/wordsize-64/scandir.c: File removed.
10278         * sysdeps/wordsize-64/scandir64.c: File removed.
10279         * sysdeps/wordsize-64/scandirat.c: File removed.
10280         * sysdeps/wordsize-64/scandirat64.c: File removed.
10281         * sysdeps/wordsize-64/versionsort.c: File removed.
10282         * sysdeps/wordsize-64/versionsort64.c: File removed.
10283         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
10284         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
10285         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
10286         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
10287         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
10288         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
10289         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
10290         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
10291
10292         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
10293         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10294         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
10295         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10296         [defined __arch64__ || defined __sparcv9]
10297         (__INO_T_MATCHES_INO64_T): New macro.
10298         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10299         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
10300         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
10301         * sysdeps/unix/sysv/linux/bits/dirent.h
10302         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
10303         (_DIRENT_MATCHES_DIRENT64): New macro.
10304
10305         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
10306         Define lockf64 as an alias.
10307         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
10308         Define fseeko64 as an alias.
10309         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
10310         Define ftello64 as an alias.
10311         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
10312         Define _IO_fgetpos64 and fgetpos64 as aliases.
10313         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
10314         Define _IO_fsetpos64 and fsetpos64 as aliases.
10315         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
10316         Conditionalize body on this.
10317         * libio/fseeko64.c: Likewise.
10318         * libio/ftello64.c: Likewise.
10319         * libio/iofgetpos64.c: Likewise.
10320         * libio/iofsetpos64.c: Likewise.
10321         * sysdeps/wordsize-64/lockf.c: File removed.
10322         * sysdeps/wordsize-64/lockf64.c: File removed.
10323         * sysdeps/wordsize-64/fseeko.c: File removed.
10324         * sysdeps/wordsize-64/fseeko64.c: File removed.
10325         * sysdeps/wordsize-64/ftello.c: File removed.
10326         * sysdeps/wordsize-64/ftello64.c: File removed.
10327         * sysdeps/wordsize-64/iofgetpos.c: File removed.
10328         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
10329         * sysdeps/wordsize-64/iofsetpos.c: File removed.
10330         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
10331         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
10332         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
10333         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
10334         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
10335         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
10336         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
10337         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
10338         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
10339         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
10340         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
10341
10342         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10343         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
10344         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
10345         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10346         [defined __arch64__ || defined __sparcv9]
10347         (__OFF_T_MATCHES_OFF64_T): New macro.
10348         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
10349         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
10350         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10351         (__OFF_T_MATCHES_OFF64_T): New macro.
10352
10353 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10354
10355         * stdlib/secure-getenv.c (__secure_getenv): Replace
10356         GLIBC_2_16 with GLIBC_2_17.
10357
10358 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
10359
10360         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
10361         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
10362
10363 2012-08-03  David S. Miller  <davem@davemloft.net>
10364
10365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10366
10367 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10368
10369         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
10370         Remove.
10371         (__ASSUME_CORRECT_SI_PID): Likewise.
10372         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
10373         (__ASSUME_TMPFS_NAME): Likewise.
10374         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
10375         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
10376         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
10377         (HAVE_AUX_SECURE): Make definition unconditional.
10378         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
10379         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
10380
10381 2012-08-03  Roland McGrath  <roland@hack.frob.com>
10382
10383         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
10384         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
10385         * sysdeps/mach/hurd/eloop-threshold.h: New file.
10386         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
10387         __eloop_threshold instead of SYMLOOP_MAX.
10388
10389         * sysdeps/generic/eloop-threshold.h: New file.
10390         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
10391         of MAXSYMLINKS.
10392         * elf/chroot_canon.c (chroot_canon): Likewise.
10393
10394 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
10395
10396         [BZ #13717]
10397         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10398         Change to 2.6.0 everywhere.
10399         * sysdeps/unix/sysv/linux/configure: Regenerated.
10400         * sysdeps/unix/sysv/linux/kernel-features.h
10401         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
10402         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
10403         kernel versions.
10404         (__ASSUME_POSIX_TIMERS): Define unconditionally.
10405         (__ASSUME_FUTEX_REQUEUE): Remove.
10406         (__ASSUME_STATFS64): Define unconditionally.
10407         (__ASSUME_AT_SECURE): Likewise.
10408         (__ASSUME_CORRECT_SI_PID): Likewise.
10409         (__ASSUME_TGKILL): Define without depending on kernel version for
10410         i386.
10411         (__ASSUME_UTIMES): Likewise.
10412         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
10413         kernel version.
10414         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
10415         (__ASSUME_TMPFS_NAME): Likewise.
10416         * README: Update reference to Linux kernel versions.
10417
10418 2012-08-02  Marek Polacek  <polacek@redhat.com>
10419
10420         [BZ# 14150]
10421         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
10422         libc_cv_asm_type_prefix with %.
10423         * configure: Regenerated.
10424         * include/libc-symbols.h: Remove comment about
10425         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10426         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
10427         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
10428         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
10429         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
10430         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
10431         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
10432         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
10433         * elf/tst-unique2mod1.c: Likewise.
10434         * elf/tst-unique1mod2.c: Likewise.
10435         * elf/tst-unique1mod1.c: Likewise.
10436         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
10437         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
10438         Replace ASM_TYPE_DIRECTIVE with .type.
10439         * sysdeps/s390/s390-64/sysdep.h: Likewise.
10440         * sysdeps/i386/sysdep.h: Likewise.
10441         * sysdeps/x86_64/sysdep.h: Likewise.
10442         * sysdeps/sh/sysdep.h: Likewise.
10443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10444         Do not define ASM_TYPE_DIRECTIVE.
10445         * sysdeps/powerpc/sysdep.h: Likewise.
10446         * sysdeps/powerpc/powerpc32/sysdep.h:
10447         Replace ASM_TYPE_DIRECTIVE with .type.
10448         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
10449         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
10450         * sysdeps/i386/fpu/e_powf.S: Likewise.
10451         * sysdeps/i386/fpu/e_expl.S: Likewise.
10452         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10453         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10454         * sysdeps/i386/fpu/e_pow.S: Likewise.
10455         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
10456         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10457         * sysdeps/i386/fpu/s_expm1.S: Likewise.
10458         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
10459         * sysdeps/i386/fpu/e_log2.S: Likewise.
10460         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10461         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10462         * sysdeps/i386/fpu/e_powl.S: Likewise.
10463         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10464         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
10465         * sysdeps/i386/fpu/e_logl.S: Likewise.
10466         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
10467         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
10468         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
10469         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10470         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10471         * sysdeps/i386/fpu/e_log.S: Likewise.
10472         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10473         * sysdeps/i386/fpu/e_logf.S: Likewise.
10474         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10475         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10476         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
10477         * sysdeps/i386/fpu/e_log10.S: Likewise.
10478         * sysdeps/i386/fpu/s_frexp.S: Likewise.
10479         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10480         * sysdeps/i386/fpu/s_asinh.S: Likewise.
10481         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
10482         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10483         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
10484         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
10485         * sysdeps/i386/i686/strtok.S: Likewise.
10486         * sysdeps/i386/i386-mcount.S: Likewise.
10487         * sysdeps/i386/strtok.S: Likewise.
10488         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
10489         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10490         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10491         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10492         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10493         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10494         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
10495         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
10496         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10497         * sysdeps/x86_64/_mcount.S: Likewise.
10498         * sysdeps/x86_64/strtok.S: Likewise.
10499         * sysdeps/sh/_mcount.S: Likewise.
10500
10501 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10502
10503         * libio/iofopen.c: Include <fcntl.h>.
10504         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
10505         (_IO_fopen64, fopen64): Define as aliases.
10506         * libio/iofopen64.c: Include <fcntl.h>.
10507         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
10508         Conditionalize body on this.
10509         * sysdeps/wordsize-64/iofopen.c: File removed.
10510         * sysdeps/wordsize-64/iofopen64.c: File removed.
10511
10512 2012-08-01  Marek Polacek  <polacek@redhat.com>
10513
10514         * libc/Makeconfig: Use elf in place of binfmt-subdir.
10515         Use dlfcn directly instead of a variable.
10516         (binfmt-subdir): Do not define.
10517         (dlfcn): Likewise.
10518
10519 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
10520
10521         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
10522         Remove all definitions.
10523         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
10524         <kernel-features.h>.
10525         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10526         (miss_F_GETOWN_EX): Remove all definitions.
10527         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
10528         macro definition.
10529         [!__ASSUME_FCNTL64]: Remove conditional code.
10530         [__ASSUME_FCNTL64]: Make code unconditional.
10531         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
10532         <kernel-features.h>.
10533         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
10534         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
10535         (lockf64) [__NR_fcntl64]: Make code unconditional.
10536         (lockf64) [__ASSUME_FCNTL64]: Likewise.
10537
10538         * sysdeps/unix/sysv/linux/kernel-features.h
10539         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
10540         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
10541         Make code unconditional.
10542         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10543         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
10545         [__NR_vfork]: Make code unconditional.
10546         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10547         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
10549         [__NR_vfork]: Make code unconditional.
10550         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
10551         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
10552
10553 2012-08-01  Roland McGrath  <roland@hack.frob.com>
10554
10555         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
10556         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
10557
10558         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10559         Define mkstemp64 as an alias.
10560         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10561         Define mkstemps64 as an alias.
10562         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10563         Define mkostemp64 as an alias.
10564         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
10565         Define mkostemps64 as an alias.
10566         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
10567         Conditionalize body on this.
10568         * misc/mkostemp64.c: Likewise.
10569         * misc/mkostemps64.c: Likewise.
10570         * misc/mkstemps64.c: Likewise.
10571         * sysdeps/wordsize-64/mkstemp64.c: File removed.
10572         * sysdeps/wordsize-64/mkostemp64.c: File removed.
10573         * sysdeps/wordsize-64/mkostemp.c: File removed.
10574         * sysdeps/wordsize-64/mkstemp.c: File removed.
10575         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
10576         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
10577         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
10578         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
10579
10580         [BZ #14138]
10581         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
10582         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
10583         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
10584         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
10585
10586         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
10587         compat_symbol macros from <shlib-compat.h> rather than the underlying
10588         default_symbol_version and symbol_version macros, so that DEFAULT
10589         lines in shlib-versions are respected.
10590         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
10591
10592 2012-08-01  Florian Weimer  <fweimer@redhat.com>
10593
10594         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
10595         Declare with warn_unused_result.
10596         (setgid, setregid, setegid, setresgid): Likewise.
10597         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
10598         Likewise.
10599         * WUR-REPORT: Remove set*id functions.
10600
10601 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
10602
10603         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
10604
10605 2012-07-31  Roland McGrath  <roland@hack.frob.com>
10606
10607         * include/sys/socket.h (__libc_accept, __libc_accept4):
10608         Add attribute_hidden.
10609         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
10610
10611         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
10612         use of PTR_MANGLE.
10613         * inet/getnetgrent_r.c (setup): Likewise.
10614
10615         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
10616
10617 2012-07-31  David S. Miller  <davem@davemloft.net>
10618
10619         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10620
10621 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
10622
10623         [BZ #13629]
10624         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
10625         value between 1.0 and 2.0 and smaller part has absolute value less
10626         than 1.0.
10627         * math/s_clog10.c (__clog10): Likewise.
10628         * math/s_clog10f.c (__clog10f): Likewise.
10629         * math/s_clog10l.c (__clog10l): Likewise.
10630         * math/s_clogf.c (__clogf): Likewise.
10631         * math/s_clogl.c (__clogl): Likewise.
10632         * math/libm-test.inc (clog_test): Add more tests.
10633         (clog10_test): Likewise.
10634         * sysdeps/i386/fpu/libm-test-ulps: Update.
10635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10636
10637 2012-07-31  Florian Weimer  <fweimer@redhat.com>
10638
10639         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
10640         Exit with zero in case no suitable GID is found, and write a
10641         message to standard error.
10642
10643 2012-07-30  Roland McGrath  <roland@hack.frob.com>
10644
10645         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
10646         rather than to 1.
10647         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
10648         (MAXPATHLEN): Removed.
10649         (NOGROUP, NODEV): New macros.
10650         (setbit, clrbit, isset, isclr): New macros.
10651         (howmany, roundup, powerof2): New macros.
10652         (DEV_BSIZE): New macro.
10653
10654         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
10655         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
10656
10657         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
10658         definition on [!__NO_LONG_DOUBLE_MATH].
10659
10660         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
10661         PTR_MANGLE and PTR_DEMANGLE.
10662
10663         * socket/accept4.c (accept4): Rename to __libc_accept4.
10664         Define accept4 as a weak alias.
10665
10666         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
10667         on [_DIRENT_HAVE_D_TYPE].
10668         * io/ftw.c (ftw_dir): Likewise.
10669
10670         * io/xmknod.c (__xmknod): Don't check PATH for being null.
10671
10672         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
10673
10674         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
10675         Use the BSD numbers rather than the arbitrary ones we had.
10676         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
10677         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
10678         (SIGXCPU, SIGXFSZ): New macros.
10679         (_NSIG): Now 32.
10680
10681         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
10682         initializer on [_LIBC_REENTRANT].
10683
10684         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
10685         definitions inside [_POSIX_MAPPED_FILES].
10686
10687         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
10688
10689         * dirent/opendir.c: Include <fcntl.h>.
10690
10691         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
10692         (__libc_getspecific): Likewise.
10693         (__libc_key_create): Likewise.
10694
10695         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
10696         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
10697         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
10698         (tmpfile64): Define as alias.
10699         * sysdeps/wordsize-64/tmpfile.c: File removed.
10700         * sysdeps/wordsize-64/tmpfile64.c: File removed.
10701         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
10702         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
10703
10704         * stdio-common/vfscanf.c: Include <stdbool.h>.
10705         * nss/makedb.c: Likewise.
10706         * stdio-common/_i18n_number.h: Likewise.
10707         * argp/argp-help.c: Likewise.
10708         * posix/wordexp.c: Likewise.
10709         * sysdeps/posix/spawni.c: Likewise.
10710         * nss/nss_files/files-initgroups.c: Likewise.
10711         * stdio-common/reg-modifier.c: Include <stdlib.h>.
10712         * nss/nss_files/files-initgroups.c: Likewise.
10713         * nss/nss_db/db-netgrp.c: Likewise.
10714         * nss/nss_db/db-initgroups.c: Likewise.
10715         * io/fchmodat.c: Include <sys/stat.h>.
10716
10717         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
10718         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
10719
10720         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
10721         [HAVE_MMAP].
10722
10723         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
10724         Add multiple inclusion protection.
10725
10726 2012-07-27  David S. Miller  <davem@davemloft.net>
10727
10728         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10729
10730 2012-07-27  Gary Benson  <gbenson@redhat.com>
10731
10732         [BZ #14298]
10733         * elf/rtld.c: Include <stap-probe.h>.
10734         (dl_main): Added static probes "init_start" and "init_complete".
10735         * elf/dl-load.c: Include <stap-probe.h>.
10736         (lose): Take new parameter "nsid".
10737         Added static probe "map_failed".
10738         (_dl_map_object_from_fd): Pass namespace id to lose.
10739         Added static probe "map_start".
10740         (open_verify): Pass namespace id to lose.
10741         * elf/dl-open.c: Include <stap-probe.h>.
10742         (dl_open_worker) Added static probes "map_complete", "reloc_start"
10743         and "reloc_complete".
10744         * elf/dl-close.c: Include <stap-probe.h>.
10745         (_dl_close_worker): Added static probes "unmap_start" and
10746         "unmap_complete".
10747         * elf/rtld-debugger-interface.txt: New file documenting the above.
10748
10749 2012-07-26  Roland McGrath  <roland@hack.frob.com>
10750
10751         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
10752         rather than a string variable.
10753         * sunrpc/rpc_main.c (h_output): Likewise.
10754         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
10755
10756 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
10757
10758         * inet/check_native.c: New file.
10759
10760 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
10761
10762         [BZ #13629]
10763         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
10764         if larger part has absolute value 1.0.
10765         * math/s_clog10.c (__clog10): Likewise.
10766         * math/s_clog10f.c (__clog10f): Likewise.
10767         * math/s_clog10l.c (__clog10l): Likewise.
10768         * math/s_clogf.c (__clogf): Likewise.
10769         * math/s_clogl.c (__clogl): Likewise.
10770         * math/libm-test.inc (clog_test): Add more tests.
10771         (clog10_test): Likewise.
10772         * sysdeps/i386/fpu/libm-test-ulps: Update.
10773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10774
10775         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
10776         (pltexit): Likewise.
10777         (La_regs): Likewise.
10778         (La_retval): Likewise.
10779         (int_retval): Likewise.
10780         Update #error for removed macros to refer only to definitions in
10781         tst-audit.h.
10782         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
10783         macro.
10784         (pltexit): Likewise.
10785         (La_regs): Likewise.
10786         (La_retval): Likewise.
10787         (int_retval): Likewise.
10788         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
10789         macro.
10790         (pltexit): Likewise.
10791         (La_regs): Likewise.
10792         (La_retval): Likewise.
10793         (int_retval): Likewise.
10794         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
10795         macro.
10796         (pltexit): Likewise.
10797         (La_regs): Likewise.
10798         (La_retval): Likewise.
10799         (int_retval): Likewise.
10800         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
10801         macro.
10802         (pltexit): Likewise.
10803         (La_regs): Likewise.
10804         (La_retval): Likewise.
10805         (int_retval): Likewise.
10806         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
10807         macro.
10808         (pltexit): Likewise.
10809         (La_regs): Likewise.
10810         (La_retval): Likewise.
10811         (int_retval): Likewise.
10812         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
10813         macro.
10814         (pltexit): Likewise.
10815         (La_regs): Likewise.
10816         (La_retval): Likewise.
10817         (int_retval): Likewise.
10818         * sysdeps/generic/tst-audit.h: Update comment to refer only to
10819         macro definitions in tst-audit.h.
10820         * sysdeps/i386/tst-audit.h: New file.
10821         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
10822         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
10823         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
10824         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
10825         * sysdeps/sh/tst-audit.h: Likewise.
10826         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
10827         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
10828         * sysdeps/x86_64/tst-audit.h: Likewise.
10829
10830 2012-07-26  Andreas Jaeger  <aj@suse.de>
10831
10832         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
10833         ptrace.
10834
10835         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
10836         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
10837         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
10838         PTRACE_O_MASK.
10839         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
10840         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
10841         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
10842
10843         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
10844         value.
10845
10846         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
10847         _sigsys.
10848         (si_call_addr, si_syscall, si_arch): Define new macro.
10849         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
10850         _sigsys.
10851         (si_call_addr, si_syscall, si_arch): Define new marcro.
10852         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
10853         _sigsys.
10854         (si_call_addr, si_syscall, si_arch): Define new macro.
10855         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
10856         _sigsys.
10857         (si_call_addr, si_syscall, si_arch): Define new macro.
10858
10859 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
10860
10861         [BZ #13717]
10862         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
10863         Change to 2.4.21 where previously 2.4.1.
10864         * sysdeps/unix/sysv/linux/configure: Regenerated.
10865         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
10866         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
10867         Linux kernel version.
10868         (__ASSUME_STD_AUXV): Remove.
10869         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
10870         kernel version.
10871         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
10872         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
10873         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
10874         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
10875         (__ASSUME_NETLINK_SUPPORT): Likewise.
10876         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
10877         (__no_netlink_support): Remove conditional definition.
10878         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
10879         Remove.
10880         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
10881         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
10882         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
10883         (if_nameindex_ioctl): Remove.
10884         (if_nameindex_netlink): Do not handle __no_netlink_support.
10885         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
10886         code.
10887         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
10888         Remove conditional code.
10889         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
10890         code.
10891         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
10892         unconditional.
10893         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
10894         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
10895         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
10896         Remove.
10897         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
10898         [!__ASSUME_STD_AUXV]: Remove conditional code.
10899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
10900         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
10901         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
10902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
10903         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
10904         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
10905         code.
10906         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
10907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
10908         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
10909         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
10910         conditional code.
10911         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
10912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
10913         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
10914         code.
10915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
10916         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
10917         conditional code.
10918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
10919         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10920         code unconditional.
10921         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10922         conditional code.
10923         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10924         unconditional.
10925         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10926         conditional code.
10927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10928         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10929         unconditional.
10930         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10931         conditional code.
10932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
10933         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10934         code unconditional.
10935         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10936         conditional code.
10937         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10938         unconditional.
10939         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10940         conditional code.
10941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
10942         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
10943         code unconditional.
10944         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10945         conditional code.
10946         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
10947         unconditional.
10948         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
10949         conditional code.
10950
10951 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
10952
10953         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
10954         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
10955         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
10956         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
10957         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
10958         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
10959         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10960         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10961         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
10962         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
10963         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
10964         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
10965         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
10966         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
10967         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10968         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
10969         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
10970         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
10971         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
10972         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
10973         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
10974         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
10975         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
10976
10977 2012-07-25  Florian Weimer  <fweimer@redhat.com>
10978
10979         * Versions.def: Add GLIBC_2.17.
10980         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
10981         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
10982         Introduce __libc_secure_getenv.
10983         * stdlib/Versions (2.17): Add secure_getenv
10984         (GLIBC_PRIVATE): Add __libc_secure_getenv.
10985         * stdlib/secure-getenv.c: Rename __secure_getenv to
10986         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
10987         symbol __secure_getenv for GLIBC_2.0.
10988         * stdlib/tst-secure-getenv.c: New.
10989         * stdlib/Makefile (tests): Add testcase.
10990         * manual/startup.texi (Environment Access): Document
10991         secure_getenv.
10992         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
10993         __libc_secure_getenv.
10994         * inet/ruserpass.c (ruserpass): Likewise.
10995         * malloc/mtrace.c (mtrace): Likewise.
10996         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
10997         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
10998         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
10999         * sysdeps/posix/tempname.c: Likewise.  Evaluate
11000         HAVE_SECURE_GETENV.
11001         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
11002         __secure_getenv to __libc_secure_getenv.
11003         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
11004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11005         Likewise.
11006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11007         Likewise.
11008         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11009         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11010         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11011         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11012         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11013         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11014         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11015
11016 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
11017
11018         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
11019         (struct La_i86_retval): Likewise.
11020         (struct La_x86_64_regs): Likewise.
11021         (struct La_x86_64_retval): Likewise.
11022         (struct La_x32_regs): Likewise.
11023         (struct La_x32_retval): Likewise.
11024         (struct La_ppc32_regs): Likewise.
11025         (struct La_ppc32_retval): Likewise.
11026         (struct La_ppc64_regs): Likewise.
11027         (struct La_ppc64_retval): Likewise.
11028         (struct La_sh_regs): Likewise.
11029         (struct La_sh_retval): Likewise.
11030         (struct La_s390_32_regs): Likewise.
11031         (struct La_s390_32_retval): Likewise.
11032         (struct La_s390_64_regs): Likewise.
11033         (struct La_s390_64_retval): Likewise.
11034         (struct La_sparc32_regs): Likewise.
11035         (struct La_sparc32_retval): Likewise.
11036         (struct La_sparc64_regs): Likewise.
11037         (struct La_sparc64_retval): Likewise.
11038         (struct audit_ifaces): Remove architecture-specific pltenter and
11039         pltexit members.
11040         * sysdeps/i386/ldsodefs.h: New file.
11041         * sysdeps/powerpc/ldsodefs.h: Likewise.
11042         * sysdeps/s390/ldsodefs.h: Likewise.
11043         * sysdeps/sh/ldsodefs.h: Likewise.
11044         * sysdeps/sparc/ldsodefs.h: Likewise.
11045         * sysdeps/x86_64/ldsodefs.h: Likewise.
11046
11047 2012-07-25  Marek Polacek  <polacek@redhat.com>
11048
11049         [BZ #6808]
11050         * math/libm-test.inc (yn_test): Add another test.
11051         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
11052         to ERANGE when the result is +-Inf.
11053         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11054         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
11055         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
11056         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
11057
11058 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
11059
11060         * conform/data/time.h-data (NULL): Use macro-constant.  Require
11061         equal to 0.
11062         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
11063         clock_t.
11064         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
11065
11066 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
11067
11068         * configure.in <sysdeps resolving>: Correct printing
11069         Implies_before.
11070         * configure: Regenerate.
11071
11072 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
11073
11074         * math/w_ilogb.c: Include <limits.h>.
11075         * math/w_ilogbl.c: Likewise.
11076
11077 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11078
11079         * manual/lang.texi (__va_copy): Document primarily as ISO C99
11080         va_copy.  Document allowing for unavailable va_copy only as
11081         pre-C99 compatibility.
11082         * manual/string.texi (Copying and Concatenation): Use va_copy
11083         instead of __va_copy in concat example.
11084
11085 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
11086
11087         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
11088         (__sendto): Use create_address_port.  Initialize APORT and deallocate
11089         it if not null.
11090
11091         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
11092         with O_NOLINK passed to __file_name_lookup.
11093
11094         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
11095         with O_NOLINK passed to __file_name_lookup.
11096
11097         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
11098         negative N or less than NGIDS.
11099
11100         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
11101         type to string_t.  Set ERANGE as errno and return it if NAME is not big
11102         enough.  Use memcpy instead of strncpy.
11103
11104 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
11105
11106         * elf/Makefile (check-data): Remove.
11107         (localplt.data): New vpath directive.
11108         ($(objpfx)check-localplt.out): Use localplt.data from vpath
11109         instead of $(check-data).
11110         * scripts/data/localplt-generic.data: Move to ...
11111         * sysdeps/generic/localplt.data: ... here.
11112         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
11113         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
11114         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
11115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
11116         ... here.
11117         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
11118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
11119         ... here.
11120         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
11121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
11122         ... here.
11123         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
11124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
11125         ... here.
11126         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
11127         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
11128         ... here.
11129         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
11130         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
11131         ... here.
11132
11133 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11134
11135         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
11136         PPC32 and PPC64 files.
11137         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
11138         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
11139
11140 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11141
11142         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
11143         __makecontext_ret to ...
11144         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
11145         ... here and call exit if uc_link is NULL.  New file.
11146         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
11147         __makecontext_ret.S.
11148         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
11149         __makecontext_ret to ...
11150         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
11151         ... here and call exit if uc_link is NULL.  New file.
11152         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
11153         __makecontext_ret.S.
11154
11155 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11156
11157         * elf/elf.h (R_390_IRELATIVE): New definition.
11158         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
11159         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
11160         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
11161         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
11162         (elf_machine_lazy_rel): Likewise.
11163         * sysdeps/s390/dl-irel.h: New file.
11164         * sysdeps/s390/s390-64/memcpy.S: New asm code.
11165         * sysdeps/s390/s390-64/memset.S: New asm code.
11166         * sysdeps/s390/s390-64/memcmp.S: New asm code.
11167         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
11168         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
11169         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
11170         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
11171         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
11172         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
11173         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
11174         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
11175         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
11176         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
11177         * sysdeps/s390/s390-32/memcpy.S: New asm code.
11178         * sysdeps/s390/s390-32/memset.S: New asm code.
11179         * sysdeps/s390/s390-32/memcmp.S: New asm code.
11180
11181 2012-07-17  Marek Polacek  <polacek@redhat.com>
11182
11183         [BZ #14349]
11184         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
11185         * sysdeps/s390/s390-64/configure.in: Likewise.
11186         * sysdeps/sparc/configure.in: Likewise.
11187         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
11188         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
11189         * sysdeps/i386/configure.in: Likewise.
11190         * sysdeps/x86_64/configure.in: Likewise.
11191         * sysdeps/sh/configure.in: Likewise.
11192         * sysdeps/s390/s390-32/configure: Regenerated.
11193         * sysdeps/s390/s390-64/configure: Likewise.
11194         * sysdeps/x86_64/configure: Likewise.
11195         * sysdeps/sh/configure: Likewise.
11196         * sysdeps/powerpc/powerpc64/configure: Likewise.
11197         * sysdeps/powerpc/powerpc32/configure: Likewise.
11198         * sysdeps/sparc/configure: Likwise.
11199         * sysdeps/i386/configure: Likewise.
11200
11201         * elf/dl-open.c: Comment fixes.
11202
11203 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
11204
11205         * Makefile [CXX] (check-data): Remove.
11206         [CXX] (c++-types.data): New vpath directive.
11207         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
11208         vpath.  Do not allow for C++ type data being missing.
11209         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
11210         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
11211         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
11212         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
11213         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
11214         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
11215         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
11216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
11217         ... here.
11218         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
11219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
11220         ... here.
11221         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
11222         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
11223         ... here.
11224         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
11225         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
11226         ... here.
11227         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
11228         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
11229         ... here.
11230         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
11231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
11232         ... here.
11233         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
11234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
11235         ... here.
11236         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
11237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
11238
11239         * elf/tls-macros.h (TLS_LE): Move architecture-specific
11240         definitions to architecture-specific files.
11241         (TLS_IE): Likewise.
11242         (TLS_LD): Likewise.
11243         (TLS_GD): Likewise.
11244         * sysdeps/i386/tls-macros.h: New file.
11245         * sysdeps/powerpc/tls-macros.h: Likewise.
11246         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
11247         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
11248         * sysdeps/sh/tls-macros.h: Likewise.
11249         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
11250         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
11251         * sysdeps/x86_64/tls-macros.h: Likewise.
11252
11253 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11254
11255         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
11256         zero value for regular exit case.
11257
11258         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
11259         (__start_context): Preserve zero value for regular exit case.
11260
11261 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
11262             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11263
11264         * manual/setjmp.texi (setcontext): Clarify normal process
11265         termination when uc_link is the null pointer.
11266         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
11267         exit call.
11268
11269 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
11270
11271         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
11272         preprocessor.  Test for each exception mask separately.
11273
11274 2012-07-16  Andreas Jaeger  <aj@suse.de>
11275
11276         * po/ru.po: Update from translation team.
11277
11278 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
11279
11280         * conform/data/string.h-data (NULL): Use macro-constant.  Require
11281         equal to 0.
11282         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11283         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11284         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
11285         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
11286         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11287
11288 2012-07-13  Andreas Jaeger  <aj@suse.de>
11289
11290         * po/fr.po: Update from translation team.
11291
11292 2012-07-12  Marek Polacek  <polacek@redhat.com>
11293
11294         [BZ #14173]
11295         * math/libm-test.inc (yn_test): Add test for BZ #14173.
11296         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
11297         loop condition.
11298
11299 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
11300
11301         [BZ #13717]
11302         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
11303         Change to 2.4.1 where previously 2.4.0.
11304         * sysdeps/unix/sysv/linux/configure: Regenerated.
11305         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
11306         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
11307         version.
11308         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
11309         (__ASSUME_AT_CLKTCK): Remove.
11310         (__ASSUME_AT_PAGESIZE): Likewise.
11311         (__ASSUME_AT_XID): Likewise.
11312         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
11313         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
11314         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
11315         unconditionally.
11316         (HAVE_AUX_PAGESIZE): Likewise.
11317         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
11318         [__ASSUME_AT_CLKTCK]: Make code unconditional.
11319         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
11320
11321 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
11322
11323         [BZ #14307]
11324         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
11325         the temporary buffer used to invoke __gethostbyname2_r,
11326         __gethostbyaddr_r and gethostbyname4_r to make room for struct
11327         host_data / struct gaih_addrtuple.
11328         * resolv/nss_dns/dns-host.c (global scope): Move definition of
11329         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
11330         header file nss/nsswitch.h.
11331         * nss/nsswitch.h (global scope): Add definition of implementation
11332         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
11333         resolv/nss_dns/dns-host.c).
11334
11335 2012-07-11  Andreas Jaeger  <aj@suse.de>
11336
11337         * po/fr.po: Update from translation team.
11338
11339         * po/sv.po: Update from translation team
11340         * po/fr.po: Another update from translation team.
11341
11342 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11343
11344         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
11345         for subnormals or multiply small sinh result by itself.
11346         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11347         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11348
11349 2012-07-11  David S. Miller  <davem@davemloft.net>
11350
11351         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11352
11353 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
11354
11355         [BZ #14347]
11356         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
11357         (INTERNAL_MARK): Shift it here.
11358
11359 2012-07-10  Marek Polacek  <polacek@redhat.com>
11360
11361         [BZ #14151]
11362         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
11363         libc_cv_asm_global_directive with .globl.
11364         * configure: Regenerated.
11365         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
11366         with .globl.
11367         * sysdeps/i386/configure: Regenerated.
11368         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
11369         with .globl.
11370         * sysdeps/x86_64/configure: Regenerated.
11371         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
11372         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
11373         * elf/tst-unique2mod2.c: Likewise.
11374         * elf/tst-unique2mod1.c: Likewise.
11375         * elf/tst-unique1mod2.c: Likewise.
11376         * elf/tst-unique1mod1.c: Likewise.
11377         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11378         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
11379         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11380         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
11381         * sysdeps/mach/sysdep.h: Likewise.
11382         * sysdeps/i386/sysdep.h: Likewise.
11383         * sysdeps/i386/i386-mcount.S: Likewise.
11384         * sysdeps/x86_64/_mcount.S: Likewise.
11385         * sysdeps/x86_64/sysdep.h: Likewise.
11386         * sysdeps/sh/_mcount.S: Likewise.
11387         * sysdeps/sh/sysdep.h: Likewise.
11388         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
11389         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
11390         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
11391         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11392         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
11393         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
11394         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
11395         * locale/localeinfo.h: Likewise.
11396         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
11397         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
11398
11399 2012-07-09  Roland McGrath  <roland@hack.frob.com>
11400
11401         [BZ #14336]
11402         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
11403         system".
11404         * manual/message.texi (The Uniforum approach): Likewise.
11405         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
11406         (glibc iconv Implementation): Likewise.
11407
11408 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
11409
11410         [BZ #14337]
11411         * math/s_clog.c (__clog): Avoid scaling a value down where that
11412         could result in underflow.
11413         * math/s_clog10.c (__clog10): Likewise.
11414         * math/s_clog10f.c (__clog10f): Likewise.
11415         * math/s_clog10l.c (__clog10l): Likewise.
11416         * math/s_clogf.c (__clogf): Likewise.
11417         * math/s_clogl.c (__clogl): Likewise.
11418         * math/libm-test.inc (clog_test): Add more tests.
11419         (clog10_test): Likewise.
11420         * sysdeps/i386/fpu/libm-test-ulps: Update.
11421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11422
11423 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
11424
11425         [BZ #14283]
11426         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
11427         by 7 not 8 to examine high bit of fractional part.
11428
11429         [BZ #14042]
11430         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
11431         for call to __mcount_internal.
11432         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
11433         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
11434         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
11435
11436 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
11437
11438         [BZ #14154]
11439         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
11440         approximation for values within 0x1p-13f of an odd multiple of
11441         pi/4.
11442         * math/libm-test.inc (tan_test): Do not allow spurious underflow
11443         exception.  Add more tests.
11444         * sysdeps/i386/fpu/libm-test-ulps: Update.
11445
11446         [BZ #6778]
11447         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
11448         inputs and return -1 for them.  Do not check for +Inf in case not
11449         reachable for +Inf.
11450         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
11451         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
11452         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11453         and return -1 for them.  Do not check for +Inf in case not
11454         reachable for +Inf.
11455         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
11456         define.
11457         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
11458         and return -1 for them.  Do not check for +Inf in case not
11459         reachable for +Inf.
11460         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
11461         spurious underflow.
11462         * sysdeps/i386/fpu/libm-test-ulps: Update.
11463         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11464
11465 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
11466
11467         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
11468
11469 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
11470
11471         [BZ #14157]
11472         [BZ #14331]
11473         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
11474         could result in spurious underflow.  Scale down values above
11475         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
11476         * math/s_csqrtf.c (__csqrtf): Likewise.
11477         * math/s_csqrtl.c (__csqrtl): Likewise.
11478         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
11479         spurious underflow.
11480         * sysdeps/i386/fpu/libm-test-ulps: Update.
11481         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11482
11483 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
11484
11485         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
11486         xopen-msg.sed.
11487         * catgets/xopen-msg.awk: New file.
11488         * catgets/xopen-msg.sed: Removed.
11489
11490         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
11491         po2text.sed.
11492         * intl/po2test.awk: New file.
11493         * intl/po2test.sed: Removed.
11494
11495 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
11496
11497         [BZ #14328]
11498         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
11499         or multiply small sinh result by itself.
11500         * math/s_ctanf.c (__ctanf): Likewise.
11501         * math/s_ctanh.c (__ctanh): Likewise.
11502         * math/s_ctanhf.c (__ctanhf): Likewise.
11503         * math/s_ctanhl.c (__ctanhl): Likewise.
11504         * math/s_ctanl.c (__ctanl): Likewise.
11505         * math/libm-test.inc (ctan_test_tonearest): New function.
11506         (ctan_test_towardzero): Likewise.
11507         (ctan_test_downward): Likewise.
11508         (ctan_test_upward): Likewise.
11509         (ctanh_test_tonearest): Likewise.
11510         (ctanh_test_towardzero): Likewise.
11511         (ctanh_test_downward): Likewise.
11512         (ctanh_test_upward): Likewise.
11513         (main): Call these new functions.
11514         * sysdeps/i386/fpu/libm-test-ulps: Update.
11515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11516
11517 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
11518
11519         * .gitignore: Delete /ports entry.
11520
11521 2012-07-03  Andreas Jaeger  <aj@suse.de>
11522
11523         * po/bg.po: Update from translation team.
11524         * po/cs.po: Likewise.
11525         * po/de.po: Likewise.
11526         * po/hr.po: Likewise.
11527         * po/nl.pl: Likewise.
11528         * po/pl.po: Likewise.
11529         * po/vi.po: Likewise.
11530
11531 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
11532
11533         * Makeconfig [!+link] (+link-before-libc): New variable.
11534         [!+link] (+link-after-libc): Likewise.
11535         [!+link] (+link-tests): Likewise.
11536         [!+link] (+link): Define in terms of $(+link-before-libc) and
11537         $(+link-after-libc).
11538         [!+link-static] (+link-static-before-libc): New variable.
11539         [!+link-static] (+link-static-after-libc): Likewise.
11540         [!+link-static] (+link-static-tests): Likewise.
11541         [!+link-static] (+link-static): Define in terms of
11542         $(+link-static-before-libc) and $(+link-static-after-libc).
11543         [build-shared] (link-libc-before-gnulib): New variable.
11544         [build-shared] (link-libc-tests): Likewise.
11545         [build-shared] (link-libc): Define in terms of
11546         $(link-libc-before-gnulib).
11547         [!build-shared] (link-libc-tests): New variable.
11548         (link-libc-static-tests): New variable.
11549         [!gnulib] (gnulib-arch): New variable.
11550         [!gnulib] (gnulib-tests): Likewise.
11551         [!gnulib] (static-gnulib-arch): Likewise.
11552         [!gnulib] (static-gnulib-tests): Likewise.
11553         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
11554         Define with "=" instead of ":=".
11555         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
11556         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
11557         * Rules (binaries-all-notests): New variable.
11558         (binaries-all-tests): Likewise.
11559         (binaries-static-notests): Likewise.
11560         (binaries-static-tests): Likewise.
11561         (binaries-all): Define using $(binaries-all-notests) and
11562         $(binaries-all-tests).
11563         (binaries-static): Define using $(binaries-static-notests) and
11564         $(binaries-static-tests).
11565         (binaries-shared-tests): New variable.
11566         (binaries-shared-notests): Likewise.
11567         (binaries-shared): Remove variable.
11568         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
11569         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
11570         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
11571         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
11572         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
11573         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
11574         * elf/Makefile (sln-modules): New variable.
11575         (extra-objs): Add $(sln-modules:=.o).
11576         (ldconfig-modules): Add static-stubs.
11577         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
11578         * elf/static-stubs.c: New file.
11579
11580         [BZ #14283]
11581         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
11582         by 7 not 8 to examine high bit of fractional part.  Use volatile
11583         variables when splitting into final array of floats if
11584         __FLT_EVAL_METHOD__ != 0.
11585         * math/libm-test.inc (cos_test): Add another test.
11586         (sin_test): Likewise.
11587         * sysdeps/i386/fpu/libm-test-ulps: Update.
11588
11589         [BZ #14273]
11590         * math/libm-test.inc (cosh_test): Add more tests.
11591
11592         * version.h (RELEASE): Set to "development".
11593         (VERSION): Set to "2.16.90".
11594
11595 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
11596
11597         * NEWS: Update copyright. Remove last-updated date.
11598         Mention math library bug fixes and timezone data changes.
11599         * README: Mention GNU/Hurd, x32, and HPPA support status.
11600
11601 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
11602
11603         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
11604
11605 2012-06-27  Andreas Jaeger  <aj@suse.de>
11606
11607         * manual/contrib.texi (Contributors): Add Samuel Thibault.
11608
11609 2012-06-25  Andreas Jaeger  <aj@suse.de>
11610
11611         * sysdeps/s390/fpu/libm-test-ulps: Update.
11612
11613 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
11614             Thomas Schwinge  <thomas@codesourcery.com>
11615
11616         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
11617         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
11618         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
11619         fanotify_mark.
11620
11621 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
11622
11623         * sysdeps/mach/start.c: Remove file.
11624         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
11625         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
11626         * sysdeps/sh/init-first.c: Likewise.
11627
11628         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
11629         registers for frame unwinding purposes, add CFI directives.
11630         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11631         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
11632         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
11633         Likewise.
11634
11635         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
11636         __fortify_fail returning.
11637         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
11638
11639         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
11640         sysdeps/sh/____longjmp_chk.S.
11641         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
11642         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
11643         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
11644         (gen-as-const-headers): Append sigaltstack-offsets.sym.
11645
11646         * sysdeps/sh/abort-instr.h: New file.
11647         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
11648         process in case exit returns.
11649
11650         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
11651         initialize the GOT register before use.
11652
11653         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
11654         calculation of ARGC > 4.
11655
11656         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
11657         meaningful names to some local labels.
11658
11659 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11660             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11661
11662         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
11663         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
11664         (__arch_compare_and_exchange_val_16_acq): Likewise.
11665         (__arch_compare_and_exchange_val_32_acq): Likewise.
11666         (atomic_exchange_and_add): Fix gUSA sequence.
11667         (atomic_add): Likewise.
11668         (atomic_add_negative): Likewise.
11669         (atomic_add_zero): Likewise.
11670         (atomic_bit_test_set): Likewise.
11671
11672 2012-06-22  Andreas Schwab  <schwab@redhat.com>
11673
11674         [BZ #13579]
11675         * include/link.h (struct link_map): Add l_free_initfini.
11676         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
11677         l_initfini.
11678         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
11679         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
11680         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
11681         set.
11682
11683 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
11684
11685         * configure.in: Use AC_LANG_SOURCE.
11686         * configure: Regenerate.
11687
11688 2012-06-22  Roland McGrath  <roland@hack.frob.com>
11689
11690         * configure.in (libc_cv_localstatedir): New substituted variable.
11691         * configure: Regenerated.
11692         * config.make.in (localstatedir): New variable, substituted from
11693         libc_cv_localstatedir.
11694         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
11695         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
11696         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
11697         * sysdeps/gnu/configure: Regenerated.
11698
11699 2012-06-21  Jeff Law  <law@redhat.com>
11700
11701         [BZ #14277]
11702         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
11703         free.  Simplify list management for _LIBC case.
11704
11705 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
11706
11707         [BZ #14273]
11708         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
11709         Clear sign bit of 64-bit integer value before comparing against
11710         overflow value.
11711
11712         * sysdeps/mach/configure: Regenerated.
11713
11714 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11715
11716         [BZ #14278]
11717         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
11718
11719 2012-06-21  Jeff Law  <law@redhat.com>
11720
11721         [BZ #13882]
11722         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
11723         uint16_t for elements in the "seen" array to avoid char overflows.
11724         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11725         * elf/dl-open.c (dl_open_worker): Likewise.
11726
11727 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
11728
11729         * scripts/list-sources.sh: Scan PORTS for translations.
11730         * po/libc.pot: Regenerated.
11731
11732 2012-06-21  Andreas Jaeger  <aj@suse.de>
11733
11734         [BZ #12194]
11735         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
11736         warning.
11737         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
11738         * bits/byteswap-16.h (__bswap_16): Likewise.
11739         * bits/byteswap.h (__bswap_constant_16): Likewise.
11740
11741 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11742
11743         [BZ #14117]
11744         * sysdeps/i386/fpu_control.h: Removed.
11745         * sysdeps/x86_64/fpu_control.h: Moved to ...
11746         * sysdeps/x86/fpu_control.h: Here.
11747
11748         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
11749         (_FPU_SETCW): Likewise.
11750
11751 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
11752
11753         [BZ #14117]
11754         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
11755         * sysdeps/x86/fpu/bits/mathinline.h: This.
11756         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
11757
11758         [BZ #14050]
11759         [BZ #14117]
11760         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
11761         functions if __x86_64__ is defined.
11762
11763 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
11764
11765         * string/endian.h: Add !__ASSEMBLER__ condition for including
11766         conversion interfaces.
11767
11768 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
11769
11770         [BZ #14241]
11771         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
11772         of ABS(x) in calculating zero to negative powers other than odd
11773         integers.
11774         * math/libm-test.inc (pow_test): Add more tests.
11775
11776 2012-06-15  Andreas Jaeger  <aj@suse.de>
11777
11778         * manual/contrib.texi (Contributors): Update entry of Liubov
11779         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
11780         Machado Filho.
11781
11782 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
11783
11784         * string/string.h: Add __wur to GNU version of strerror_r.
11785
11786 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11787
11788         [BZ #14229]
11789         * string/Makefile (tests): Add tst-strtok_r.
11790         * string/tst-strtok_r.c: New file.
11791         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
11792         RAX_LP/RDX_LP on SAVE_PTR.
11793
11794 2012-06-14  Roland McGrath  <roland@hack.frob.com>
11795
11796         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
11797
11798 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
11799
11800         * libm_test.inc (csqrt_test): Allow more spurious underflow
11801         exceptions.
11802         (j0_test): Likewise.
11803         (j1_test): Likewise.
11804         (y0_test): Likewise.
11805         (y1_test): Likewise.
11806
11807 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
11808
11809         * po/Makefile (libc.pot): Use UTF-8 charset.
11810
11811 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
11812
11813         [BZ #14210]
11814         Suppress sign-conversion warning from FD_SET.
11815         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
11816         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
11817         not unsigned long int.
11818         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
11819
11820 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11821
11822         [BZ #14050]
11823         [BZ #14117]
11824         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
11825         __extern_always_inline instead of __extern_inline.
11826         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
11827         (__signbit): Likewise.
11828         (__signbitl): Support C++ namespace.
11829         (lrintf): New inline function.
11830         (lrint): Likewise.
11831         (llrintf): Likewise.
11832         (llrint): Likewise.
11833         (fmaxf): Likewise.
11834         (fmax): Likewise.
11835         (fminf): Likewise.
11836         (fmin): Likewise.
11837         (rint): Likewise.
11838         (rintf): Likewise.
11839         (ceil): Likewise.
11840         (ceilf): Likewise.
11841         (floor): Likewise.
11842         (floorf): Likewise.
11843         (nearbyint): Likewise.
11844         (nearbyintf): Likewise.
11845
11846 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
11847
11848         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
11849         non-default versions.
11850
11851 2012-06-11  Roland McGrath  <roland@hack.frob.com>
11852
11853         [BZ #14218]
11854         * manual/argp.texi (Argp): Reword argp_parse description slightly.
11855
11856 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
11857
11858         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
11859         (FE_UPWARD, FE_DOWNWARD): Don't define.
11860         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
11861         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11862
11863         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
11864         reading it.
11865         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11866         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11867
11868 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11869
11870         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
11871         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
11872         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
11873         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
11874
11875 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
11876
11877         [BZ #14117]
11878         * sysdeps/i386/fpu/bits/fenv.h: Removed.
11879         * sysdeps/i386/fpu/Implies: New file.
11880         * sysdeps/x86_64/fpu/Implies: Likewise.
11881         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
11882         * sysdeps/x86/fpu/bits/fenv.h: This.
11883
11884         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
11885         __SSE_MATH__.
11886
11887 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11888
11889         [BZ #14134]
11890         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
11891         character 0xffff that matches the last element of the
11892         conversion table.
11893
11894 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11895
11896         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
11897         fmodl commit.
11898
11899 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11900
11901         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
11902         values higher than 25.6283.
11903
11904 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11905
11906         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
11907         subnormal exponent extraction and add some __builtin_expect.
11908         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
11909         Fix for subnormal mantissa calculation.
11910
11911 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
11912
11913         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
11914         cpu2 is -1 and errno is not ENOSYS.
11915
11916 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11917
11918         [BZ #14117]
11919         * sysdeps/i386/i486/bits/string.h: Renamed to ...
11920         * sysdeps/x86/bits/string.h: This.
11921         * sysdeps/x86_64/bits/string.h: Removed.
11922
11923         * sysdeps/i386/i486/bits/string.h: Define inline functions only
11924         if not compiling for x86-64, but compiling for >= i486.
11925
11926         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
11927         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
11928
11929         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
11930         New macro from Linux kernel 3.4.0.
11931         (FP_XSTATE_MAGIC2): Likewise.
11932         (FP_XSTATE_MAGIC2_SIZE): Likewise.
11933         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
11934         (struct _fpx_sw_bytes): New struct.
11935         (struct _xsave_hdr): Likewise.
11936         (struct _ymmh_state): Likewise.
11937         (struct _xstate): Likewise.
11938
11939         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
11940         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
11941         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
11942         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
11943         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
11944         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
11945
11946         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
11947         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
11948         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
11949         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
11950         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
11951         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
11952
11953 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11954
11955         [BZ #13743]
11956         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
11957         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
11958         (sysdep_headers): Include sys/platform/ppc.h.
11959         * sysdeps/powerpc/test-gettimebase.c: Test for
11960         __ppc_get_timebase() to catch future ISA opcode/insn changes.
11961         * manual/Makefile (appendices): Include platform.texi.
11962         * manual/contrib.texi (Contributors): Update @node pointers.
11963         * manual/maint.texi (Maintenance): Likewise.
11964         (Platform): New node.
11965         * manual/platform.texi: New file.  Document the new features.
11966
11967 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11968             Jakub Jelinek  <jakub@redhat.com>
11969
11970         [BZ #14188]
11971         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
11972         where __builtin_expect is unavailable.
11973
11974 2012-06-03  David S. Miller  <davem@davemloft.net>
11975
11976         * stdlib/longlong.h: Updated from GCC.
11977
11978 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
11979
11980         [BZ #14042]
11981         * sysdeps/powerpc/powerpc32/mcount.c: New file.
11982         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
11983         __mcount_internal.
11984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
11985         (GLIBC_2.16): Likewise.
11986
11987 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
11988
11989         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
11990
11991 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
11992
11993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
11994         (default-abi): New variable.
11995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
11996         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
11997         variable.
11998         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
11999         Likewise.
12000         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
12001         Likewise.
12002         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
12003         Likewise.
12004
12005         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
12006         definition.  Document in comment.
12007
12008 2012-06-01  David S. Miller  <davem@davemloft.net>
12009
12010         * stdlib/longlong.h: Updated from GCC.
12011
12012 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12013
12014         [BZ #14117]
12015         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
12016         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
12017         sys/debugreg.h sys/io.h here.
12018         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
12019         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
12020         sys/io.h.
12021         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
12022         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
12023         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
12024         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
12025         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
12026         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
12027
12028         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
12029         Define only if __x86_64__ is defined.
12030
12031 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
12032
12033         [BZ #14048]
12034         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
12035         Use int64_t for variable i.
12036         * math/libm-test.inc (fmod_test): Add more tests.
12037
12038         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
12039         z computation is not scheduled after fetestexcept.
12040         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
12041         Use math_force_eval instead of asm to ensure calculation scheduled
12042         before exception test.
12043         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
12044         Ensure a1 + u.d computation is not scheduled after fetestexcept.
12045
12046 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
12047
12048         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
12049         computation is not scheduled after fetestexcept.
12050
12051 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
12052
12053         [BZ #14117]
12054         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
12055         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
12056
12057 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12058
12059         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
12060         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12061
12062 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12063
12064         [BZ #14117]
12065         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
12066         <bits/wordsize.h>.
12067         (__WCHAR_MIN): Support __WORDSIZE == 64.
12068         (__WCHAR_MAX): Likewise.
12069
12070         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
12071         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
12072
12073         [BZ #14183]
12074         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
12075         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
12076
12077         [BZ #14117]
12078         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
12079         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
12080
12081         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
12082         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
12083
12084         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
12085         Defined to 1 if __x86_64__ isn't defined.
12086         (_STAT_VER_LINUX_OLD): New.
12087         (st_atime): Remove duplicate.
12088         (st_mtime): Likewise.
12089         (st_ctime): Likewise.
12090
12091 2012-05-31  David S. Miller  <davem@davemloft.net>
12092
12093         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
12094         entries.
12095
12096 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
12097
12098         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
12099         gen-libm-test.pl.
12100
12101         [BZ #14132]
12102         * elf/dl-reloc.c: Include <_itoa.h>.
12103         (_dl_reloc_bad_type): Remove use of INTUSE.
12104         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
12105         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
12106         * stdio-common/psiginfo.c (psiginfo): Likewise.
12107         * stdio-common/psignal.c (psignal): Likewise.
12108         * string/strsignal.c (strsignal): Likewise.
12109         * include/signal.h (_sys_siglist): Declare hidden proto.
12110         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
12111         INTVARDEF with libc_hidden_data_def.
12112         * stdio-common/itoa-udigits.c: Likewise.
12113         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
12114         (_itoa_lower_digits_internal): Remove declaration.
12115         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
12116         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
12117         (_sys_sigabbrev_internal): Remove aliases.
12118         (_sys_siglist): Define hidden alias.
12119
12120 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
12121
12122         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12123         bits/sysctl.h.
12124
12125 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12126
12127         [BZ #14117]
12128         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
12129         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
12130
12131         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
12132         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
12133         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
12134         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
12135         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
12136         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
12137
12138         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
12139         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
12140         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
12141
12142         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
12143         with __addr.
12144         (insw): Likewise.
12145         (insl): Likewise.
12146         (outsb): Likewise.
12147         (outsw): Likewise.
12148         (outsl): Likewise.
12149
12150         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
12151         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
12152         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
12153
12154         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
12155         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
12156         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
12157         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
12158         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
12159         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
12160
12161         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
12162         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
12163
12164         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
12165         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
12166
12167         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
12168         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
12169         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
12170
12171         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
12172         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
12173         to ...
12174         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
12175
12176         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
12177         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
12178         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
12179
12180         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
12181         for x86-64.
12182         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
12183
12184 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
12185
12186         * math/math.h (M_El): Use two more decimal places.
12187         (M_LOG2El): Likewise.
12188         (M_LOG10El): Likewise.
12189         (M_LN2l): Likewise.
12190         (M_LN10l): Likewise.
12191         (M_PIl): Likewise.
12192         (M_PI_2l): Likewise.
12193         (M_PI_4l): Likewise.
12194         (M_1_PIl): Likewise.
12195         (M_2_PIl): Likewise.
12196         (M_2_SQRTPIl): Likewise.
12197         (M_SQRT2l): Likewise.
12198         (M_SQRT1_2l): Likewise.
12199
12200 2012-05-31  David S. Miller  <davem@davemloft.net>
12201
12202         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
12203         values between float registers.
12204         * sysdeps/sparc/sparc64/memset.S: Likewise.
12205         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
12206
12207 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
12208
12209         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
12210         -D_FORTIFY_SOURCE=1.
12211         (CPPFLAGS-tst-longjmp_chk.c): Define.
12212         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
12213         (CPPFLAGS-tst-longjmp_chk2.c): Define.
12214         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
12215         CFLAGS-tst-wchar-h.c.
12216
12217 2012-05-31  Marek Polacek  <polacek@redhat.com>
12218
12219         [BZ #14132]
12220         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
12221         __endmntent_internal): Remove declaration.
12222         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
12223         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
12224         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
12225
12226 2012-05-30  David S. Miller  <davem@davemloft.net>
12227
12228         * sysdeps/sparc/sparc32/soft-fp/q_util.c
12229         (___Q_simulate_exceptions): Use real FP ops rather than writing
12230         into the %fsr.
12231         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
12232         Likewise.
12233
12234 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12235
12236         [BZ #14117]
12237         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
12238         * sysdeps/x86/bits/xtitypes.h: This.
12239
12240         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
12241         * sysdeps/x86/bits/wordsize.h: This.
12242
12243         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
12244         * sysdeps/x86/bits/huge_vall.h: This.
12245
12246         * sysdeps/i386/bits/select.h: Removed.
12247         * sysdeps/x86_64/bits/select.h: Renamed to ...
12248         * sysdeps/x86/bits/select.h: This.
12249
12250         * sysdeps/i386/bits/setjmp.h: Removed.
12251         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
12252         * sysdeps/x86/bits/setjmp.h: This.
12253
12254         * sysdeps/i386/bits/mathdef.h: Removed.
12255         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
12256         * sysdeps/x86/bits/mathdef.h: This.
12257
12258 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
12259
12260         [BZ #14132]
12261         * include/sys/socket.h (__connect_internal)
12262         (__libc_sa_len_internal): Remove declaration.
12263         (__connect, __libc_sa_len): Declare hidden_proto.
12264         (SA_LEN): Remove use of INTUSE.
12265         * socket/connect.c: Add libc_hidden_def.
12266         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
12267         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
12268         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
12269         alias.
12270         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
12271         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
12272         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
12273         of adding _internal alias.
12274
12275 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12276
12277         [BZ #14117]
12278         * sysdeps/i386/bits/link.h: Removed.
12279         * sysdeps/i386/bits/linkmap.h: Likewise.
12280         * sysdeps/x86_64/bits/link.h: Renamed to ...
12281         * sysdeps/x86/bits/link.h: This.
12282         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
12283         * sysdeps/x86/bits/linkmap.h: This.
12284
12285         * sysdeps/i386/bits/endian.h: Removed.
12286         * sysdeps/x86_64/bits/endian.h: Renamed to ...
12287         * sysdeps/x86/bits/endian.h: This.
12288
12289         * sysdeps/i386/bits/byteswap.h: Removed.
12290         * sysdeps/i386/bits/byteswap-16.h: Likewise.
12291         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
12292         * sysdeps/x86/bits/byteswap.h: This.
12293         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
12294         * sysdeps/x86/bits/byteswap-16.h: This.
12295         * sysdeps/i386/Implies: Add x86.
12296         * sysdeps/x86_64/Implies: Likewise.
12297
12298 2012-05-30  David S. Miller  <davem@davemloft.net>
12299
12300         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
12301         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
12302         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
12303         (FP_TRAPPING_EXCEPTIONS): Define.
12304         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
12305         (FP_TRAPPING_EXCEPTIONS): Define.
12306         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
12307         subnormals only when inexact has been signalled or underflow
12308         exceptions are enabled.
12309         (_FP_PACK_CANONICAL): Likewise.
12310
12311 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12312
12313         [BZ #14183]
12314         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
12315         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
12316
12317 2012-05-30  Richard Henderson  <rth@twiddle.net>
12318
12319         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
12320         with #ifndef NOT_IN_libc.
12321
12322         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
12323         marked to avoid plt entry.
12324
12325 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
12326
12327         [BZ #14112]
12328         * Makeconfig (default-abi): New macro.
12329         (abi-includes): Likewise.
12330         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
12331         $(abi-$(default-abi)-lib-soname) for soname if defined.
12332         ($(common-objpfx)gnu/lib-names.stmp): Generate from
12333         abi-variants.
12334         * Makefile (installed-stubs): Likewise.
12335         * include/stubs-biarch.h: Removed.
12336         * scripts/lib-names.awk: Only handle one library at a time.
12337         * scripts/soversions.awk: Remove WORDSIZE support.
12338         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
12339         entries.
12340         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
12341         Removed.
12342         (syscall-list-default-condition): Likewise.
12343         (syscall-list-default-condition): Likewise.
12344         (syscall-list-includes): Likewise.
12345         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
12346         syscall-list-* with abi-*.  Handle undefined abi-variants.
12347         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
12348         * sysdeps/unix/sysv/linux/i386/Implies: New file.
12349         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
12350         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
12351         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
12352         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
12353         Removed.
12354         (syscall-list-32-options): Likewise.
12355         (syscall-list-32-condition): Likewise.
12356         (syscall-list-64-options): Likewise.
12357         (syscall-list-64-condition): Likewise.
12358         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
12359         macro.
12360         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
12361         Renamed to ...
12362         (abi-*): This.
12363         (abi-64-ld-soname): New macro.
12364         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
12365         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
12366         Renamed to ...
12367         (abi-*): This.
12368         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
12369         * sysdeps/x86_64/x32/shlib-versions: Likewise.
12370
12371 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
12372
12373         * sysdeps/unix/sysv/linux/kernel-features.h
12374         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
12375         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
12376         include <kernel-features.h>.
12377         [!__NR_ftruncate64]: Remove conditional code.
12378         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12379         [__NR_ftruncate64]: Make code unconditional.
12380         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12381         * sysdeps/unix/sysv/linux/truncate64.c: Do not
12382         include <kernel-features.h>.
12383         [!__NR_ftruncate64]: Remove conditional code.
12384         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12385         [__NR_ftruncate64]: Make code unconditional.
12386         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
12388         include <kernel-features.h>.
12389         [!__NR_ftruncate64]: Remove conditional code.
12390         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12391         [__NR_ftruncate64]: Make code unconditional.
12392         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
12394         include <kernel-features.h>.
12395         [!__NR_ftruncate64]: Remove conditional code.
12396         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12397         [__NR_ftruncate64]: Make code unconditional.
12398         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
12399
12400         * configure.in (libc_cv_fpie): Weaken to a compile test using
12401         LIBC_TRY_CC_OPTION.
12402         * configure: Regenerated.
12403
12404 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12405
12406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
12407         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
12408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
12409         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
12410         Refreshed.
12411         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
12412         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
12413         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
12414         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
12415         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
12416         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
12417         Refreshed.
12418
12419 2012-05-27  David S. Miller  <davem@davemloft.net>
12420
12421         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
12422         (___Q_zero): New.
12423         (__Q_simulate_exceptions): Return void.  Change to simulate
12424         exceptions by writing into the %fsr.
12425         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
12426         (__Qp_handle_exceptions): Likewise.
12427         (numbers): Delete.
12428         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
12429         __Qp_handle_exceptions.
12430         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
12431         __Qp_handle_exceptions.
12432         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12433         as unused and give dummy FP_RND_NEAREST initializer.
12434         (FP_INHIBIT_RESULTS): Define.
12435         (___Q_simulate_exceptions): Update declaration.
12436         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
12437         formatting.
12438         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
12439         as unused and give dummy FP_RND_NEAREST initializer.
12440         (__Qp_handle_exceptions): Update declaration.
12441         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
12442         formatting.
12443
12444 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
12445
12446         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
12447         the temporary FPU control word.
12448         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
12449         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
12450         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
12451         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
12452         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
12453         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
12454         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
12455         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12456         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
12457         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12458         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
12459
12460 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12461
12462         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
12463         fields.
12464
12465 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
12466
12467         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
12468         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
12469         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
12470         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
12471         Likewise.
12472         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
12473         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
12474         Likewise.
12475
12476 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
12477
12478         * po/h.po: Update from translation team.
12479
12480 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
12481
12482         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
12483
12484         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
12485         handling of denormals.
12486         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
12487         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
12488         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
12489         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
12490         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12491         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
12492         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
12493         Likewise.
12494
12495 2012-05-26  Marek Polacek  <polacek@redhat.com>
12496
12497         [BZ #14152]
12498         * math/libm-test.inc (fma_test): Don't always expect underflow
12499         exception.
12500
12501 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
12502
12503         [BZ #12416]
12504         * elf/tst-execstack.c: Include stackinfo.h.
12505         (do_test): Adjust test case to ensure that pthread_getattr_np
12506         behaviour remains the same after marking stack executable.
12507
12508 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12509
12510         * sysdeps/unix/sysv/linux/kernel-features.h
12511         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
12512         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
12513         kernel-features.h.
12514         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12515         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12516         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
12517         kernel-features.h.
12518         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
12519         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
12520
12521 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12522
12523         * configure.in: Define the default includes to being none.
12524         * configure: Regenerated.
12525
12526 2012-05-25  Roland McGrath  <roland@hack.frob.com>
12527
12528         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
12529         * sysdeps/x86_64/setjmp.S: Likewise.
12530         * sysdeps/i386/bsd-setjmp.S: Likewise.
12531         * sysdeps/i386/bsd-_setjmp.S: Likewise.
12532         * sysdeps/i386/setjmp.S: Likewise.
12533         * sysdeps/i386/__longjmp.S: Likewise.
12534         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
12535         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
12536
12537         * include/stap-probe.h: New file.
12538         * configure.in: Handle --enable-systemtap.
12539         * configure: Regenerated.
12540         * config.h.in (USE_STAP_PROBE): New #undef.
12541         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
12542         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
12543         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
12544
12545 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
12546
12547         [BZ #13717]
12548         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12549         to 2.4.0 where earlier.
12550         * sysdeps/unix/sysv/linux/configure: Regenerated.
12551         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12552         <kernel-features.h>.
12553         [__ASSUME_32BITUIDS]: Make code unconditional.
12554         [!__ASSUME_32BITUIDS]: Remove conditional code.
12555         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
12556         <kernel-features.h>.
12557         [__ASSUME_32BITUIDS]: Make code unconditional.
12558         [!__ASSUME_32BITUIDS]: Remove conditional code.
12559         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
12560         [__ASSUME_32BITUIDS]: Make code unconditional.
12561         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
12562         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
12563         <kernel-features.h>.
12564         [__ASSUME_32BITUIDS]: Make code unconditional.
12565         [!__ASSUME_32BITUIDS]: Remove conditional code.
12566         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
12567         <kernel-features.h>.
12568         [__ASSUME_32BITUIDS]: Make code unconditional.
12569         [!__ASSUME_32BITUIDS]: Remove conditional code.
12570         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
12571         <kernel-features.h>.
12572         [__ASSUME_32BITUIDS]: Make code unconditional.
12573         [!__ASSUME_32BITUIDS]: Remove conditional code.
12574         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
12575         <kernel-features.h>.
12576         [__ASSUME_32BITUIDS]: Make code unconditional.
12577         [!__ASSUME_32BITUIDS]: Remove conditional code.
12578         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
12579         <kernel-features.h>.
12580         [__ASSUME_32BITUIDS]: Make code unconditional.
12581         [!__ASSUME_32BITUIDS]: Remove conditional code.
12582         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
12583         <kernel-features.h>.
12584         [__ASSUME_32BITUIDS]: Make code unconditional.
12585         [!__ASSUME_32BITUIDS]: Remove conditional code.
12586         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
12587         <kernel-features.h>.
12588         [__ASSUME_32BITUIDS]: Make code unconditional.
12589         [!__ASSUME_32BITUIDS]: Remove conditional code.
12590         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
12591         <kernel-features.h>.
12592         [__ASSUME_32BITUIDS]: Make code unconditional.
12593         [!__ASSUME_32BITUIDS]: Remove conditional code.
12594         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
12595         <kernel-features.h>.
12596         [__ASSUME_32BITUIDS]: Make code unconditional.
12597         [!__ASSUME_32BITUIDS]: Remove conditional code.
12598         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
12599         <kernel-features.h>.
12600         [__ASSUME_32BITUIDS]: Make code unconditional.
12601         [!__ASSUME_32BITUIDS]: Remove conditional code.
12602         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
12603         <kernel-features.h>.
12604         [__NR_setresgid] (__setresgid): Do not declare.
12605         [__ASSUME_32BITUIDS]: Make code unconditional.
12606         [!__ASSUME_32BITUIDS]: Remove conditional code.
12607         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
12608         <kernel-features.h>.
12609         [__NR_setresuid] (__setresuid): Do not declare.
12610         [__ASSUME_32BITUIDS]: Make code unconditional.
12611         [!__ASSUME_32BITUIDS]: Remove conditional code.
12612         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
12613         <kernel-features.h>.
12614         [__ASSUME_32BITUIDS]: Make code unconditional.
12615         [!__ASSUME_32BITUIDS]: Remove conditional code.
12616         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
12617         <kernel-features.h>.
12618         [__ASSUME_32BITUIDS]: Make code unconditional.
12619         [!__ASSUME_32BITUIDS]: Remove conditional code.
12620         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
12621         <kernel-features.h>.
12622         [__ASSUME_32BITUIDS]: Make code unconditional.
12623         [!__ASSUME_32BITUIDS]: Remove conditional code.
12624         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
12625         <kernel-features.h>.
12626         [__ASSUME_32BITUIDS]: Make code unconditional.
12627         [!__ASSUME_32BITUIDS]: Remove conditional code.
12628         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
12629         <kernel-features.h>.
12630         [__ASSUME_32BITUIDS]: Make code unconditional.
12631         [!__ASSUME_32BITUIDS]: Remove conditional code.
12632         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
12633         <kernel-features.h>.
12634         [__ASSUME_32BITUIDS]: Make code unconditional.
12635         [!__ASSUME_32BITUIDS]: Remove conditional code.
12636         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
12637         <kernel-features.h>.
12638         [__ASSUME_32BITUIDS]: Make code unconditional.
12639         [!__ASSUME_32BITUIDS]: Remove conditional code.
12640         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
12641         <kernel-features.h>.
12642         [__ASSUME_32BITUIDS]: Make code unconditional.
12643         [!__ASSUME_32BITUIDS]: Remove conditional code.
12644         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
12645         <kernel-features.h>.
12646         [__ASSUME_32BITUIDS]: Make code unconditional.
12647         [!__ASSUME_32BITUIDS]: Remove conditional code.
12648         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
12649         <kernel-features.h>.
12650         [__ASSUME_32BITUIDS]: Make code unconditional.
12651         [!__ASSUME_32BITUIDS]: Remove conditional code.
12652         * sysdeps/unix/sysv/linux/kernel-features.h
12653         (__ASSUME_SETRESUID_SYSCALL): Remove.
12654         (__ASSUME_SETRESGID_SYSCALL): Likewise.
12655         (__ASSUME_32BITUIDS): Likewise.
12656         (__ASSUME_LDT_WORKS): Likewise.
12657         (__ASSUME_O_DIRECTORY): Likewise.
12658         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
12659         architecture but not kernel version.
12660         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
12661         (__ASSUME_MMAP2_SYSCALL): Likewise.
12662         (__ASSUME_STAT64_SYSCALL): Likewise.
12663         (__ASSUME_IPC64): Likewise.
12664         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
12665         <kernel-features.h>.
12666         [__ASSUME_32BITUIDS]: Make code unconditional.
12667         [!__ASSUME_32BITUIDS]: Remove conditional code.
12668         * sysdeps/unix/sysv/linux/opendir.c: Do not include
12669         <kernel-features.h>.
12670         [__ASSUME_O_DIRECTORY]: Make code unconditional.
12671         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
12672         132096]: Remove conditional code.
12673         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
12674         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12675         <kernel-features.h>.
12676         [__ASSUME_32BITUIDS]: Make code unconditional.
12677         [!__ASSUME_32BITUIDS]: Remove conditional code.
12678         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12679         <kernel-features.h>.
12680         [__ASSUME_32BITUIDS]: Make code unconditional.
12681         [!__ASSUME_32BITUIDS]: Remove conditional code.
12682         * sysdeps/unix/sysv/linux/setegid.c: Do not include
12683         <kernel-features.h>.
12684         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
12685         unconditional.
12686         (__setresgid): Do not declare.
12687         [__ASSUME_32BITUIDS]: Make code unconditional.
12688         [!__ASSUME_32BITUIDS]: Remove conditional code.
12689         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
12690         <kernel-features.h>.
12691         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
12692         unconditional.
12693         (__setresuid): Do not declare.
12694         [__ASSUME_32BITUIDS]: Make code unconditional.
12695         [!__ASSUME_32BITUIDS]: Remove conditional code.
12696         * sysdeps/unix/sysv/linux/sh/chown.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/sparc/sparc32/semctl.c: Do not include
12701         <kernel-features.h>.
12702         [__ASSUME_32BITUIDS]: Make code unconditional.
12703         [!__ASSUME_32BITUIDS]: Remove conditional code.
12704
12705 2012-05-25  Richard Henderson  <rth@twiddle.net>
12706
12707         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
12708         dl_hwcap to ifunc resolver.
12709         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
12710         elf_ifunc_invoke.
12711         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
12712         dl_hwcap to ifunc resolver.
12713         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
12714
12715 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12716
12717         [BZ #14153]
12718         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
12719         for |x| <= 2**-26, not 2**-57.
12720         * math/libm-test.inc (acos_test): Do not allow spurious underflow
12721         exception.
12722
12723 2012-05-24  Jeff Law  <law@redhat.com>
12724
12725         * stdio-common/Makefile (tests): Add bug25.
12726         * stdio-common/bug25.c: New test.
12727
12728 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12729
12730         [BZ #13576]
12731         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
12732         multiple of MALLOC_ALIGNMENT in size.
12733         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
12734
12735 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
12736
12737         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
12738         Require >= 256.
12739         (FILENAME_MAX): Use macro-int-constant.
12740         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
12741         (_IOFBF): Use macro-int-constant.
12742         (_IOLBF): Likewise.
12743         (_IONBF): Likewise.
12744         (SEEK_CUR): Likewise.
12745         (SEEK_END): Likewise.
12746         (SEEK_SET): Likewise.
12747         (TMP_MAX): Likewise.
12748         (EOF): Use macro-int-constant.  Require < 0.
12749         (NULL): Use macro-constant.  Require == 0.
12750         (stdin): Require type to be FILE *.
12751         (stdout): Likewise.
12752         (stderr): Likewise.
12753         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
12754         macro-int-constant.
12755         (EXIT_SUCCESS): Likewise.
12756         (NULL): Use macro-constant.  Require == 0.
12757         (RAND_MAX): Use macro-int-constant.
12758         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
12759         [C99-based standards] (strtof): Require function.
12760         [C99-based standards] (strtold): Likewise.
12761         [C99-based standards] (strtoll): Likewise.
12762         [C99-based standards] (strtoull): Likewise.
12763         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
12764         [ISO || ISO99 || ISO11] (limits.h): Likewise.
12765         [ISO || ISO99 || ISO11] (math.h): Likewise.
12766         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
12767         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
12768         [ISO || ISO99 || ISO11] (*_t): Do not allow.
12769
12770 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
12771
12772         [BZ #14132]
12773         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
12774         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
12775         * intl/dgettext.c (DCGETTEXT): Likewise.
12776         * intl/gettext.c (DCGETTEXT): Likewise.
12777         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
12778         * posix/regex_internal.h (gettext): Likewise.
12779         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
12780         Remove declaration.
12781         * include/argz.h (__argz_count_internal)
12782         (__argz_stringify_internal): Remove declaration.
12783         (__argz_count, __argz_stringify): Declare hidden proto.
12784         * intl/dcgettext.c: Remove use of INTDEF.
12785         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
12786         * string/argz-stringify.c: Likewise.
12787         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12788         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12789         Declare hidden proto.
12790         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
12791         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
12792         Declare hidden proto.
12793         * include/stdio.h (__asprintf_internal): Don't declare.
12794         (__asprintf): Don't define as macro.  Declare hidden proto.
12795         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
12796         (__fsetlocking): Declare hidden proto.
12797         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
12798         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
12799         hidden proto.
12800         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
12801         (_IO_setlinebuf): Remove use of INTUSE.
12802         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
12803         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
12804         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
12805         Remove declaration.
12806         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
12807         (_IO_do_flush): Remove use of INTUSE.
12808         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
12809         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
12810         (_IO_adjust_column, _IO_least_wmarker)
12811         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
12812         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
12813         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
12814         (_IO_default_doallocate, _IO_wdefault_doallocate)
12815         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
12816         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
12817         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
12818         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
12819         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
12820         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
12821         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
12822         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
12823         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
12824         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
12825         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
12826         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
12827         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
12828         proto.
12829         (_IO_flush_all_internal, _IO_adjust_column_internal)
12830         (_IO_default_uflow_internal, _IO_default_finish_internal)
12831         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
12832         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
12833         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
12834         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
12835         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
12836         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
12837         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
12838         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
12839         (_IO_file_close_internal, _IO_file_close_it_internal)
12840         (_IO_file_underflow_internal, _IO_file_overflow_internal)
12841         (_IO_file_init_internal, _IO_file_attach_internal)
12842         (_IO_file_fopen_internal, _IO_file_read_internal)
12843         (_IO_file_sync_internal, _IO_file_seek_internal)
12844         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
12845         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
12846         (_IO_str_underflow_internal, _IO_str_overflow_internal)
12847         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
12848         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
12849         (_IO_list_all_internal, _IO_link_in_internal)
12850         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
12851         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
12852         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
12853         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
12854         (_IO_do_write_internal, _IO_padn_internal)
12855         (_IO_getline_info_internal, _IO_getline_internal)
12856         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
12857         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
12858         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
12859         (_IO_vfscanf_internal, _IO_vfprintf_internal)
12860         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
12861         (_IO_init_internal, _IO_un_link_internal): Don't declare.
12862         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
12863         with libc_hidden_ver, remove use of INTUSE.
12864         * libio/genops.c: Likewise.
12865         * libio/freopen.c: Likewise.
12866         * libio/freopen64.c: Likewise.
12867         * libio/iofclose.c: Likewise.
12868         * libio/iofdopen.c: Likewise.
12869         * libio/iofflush.c: Likewise.
12870         * libio/iofflush_u.c: Likewise.
12871         * libio/iofgets.c: Likewise.
12872         * libio/iofgets_u.c: Likewise.
12873         * libio/iofopen.c: Likewise.
12874         * libio/iofopncook.c: Likewise.
12875         * libio/iofread.c: Likewise.
12876         * libio/iofread_u.c: Likewise.
12877         * libio/ioftell.c: Likewise.
12878         * libio/iofwrite.c: Likewise.
12879         * libio/iogetline.c: Likewise.
12880         * libio/iogets.c: Likewise.
12881         * libio/iogetwline.c: Likewise.
12882         * libio/iopadn.c: Likewise.
12883         * libio/iopopen.c: Likewise.
12884         * libio/ioseekoff.c: Likewise.
12885         * libio/ioseekpos.c: Likewise.
12886         * libio/iosetbuffer.c: Likewise.
12887         * libio/iosetvbuf.c: Likewise.
12888         * libio/ioungetc.c: Likewise.
12889         * libio/ioungetwc.c: Likewise.
12890         * libio/iovdprintf.c: Likewise.
12891         * libio/iovsprintf.c: Likewise.
12892         * libio/iovsscanf.c: Likewise.
12893         * libio/memstream.c: Likewise.
12894         * libio/obprintf.c: Likewise.
12895         * libio/oldfileops.c: Likewise.
12896         * libio/oldiofclose.c: Likewise.
12897         * libio/oldiofdopen.c: Likewise.
12898         * libio/oldiofopen.c: Likewise.
12899         * libio/oldiopopen.c: Likewise.
12900         * libio/oldstdfiles.c: Likewise.
12901         * libio/putc.c: Likewise.
12902         * libio/setbuf.c: Likewise.
12903         * libio/setlinebuf.c: Likewise.
12904         * libio/stdfiles.c: Likewise.
12905         * libio/strops.c: Likewise.
12906         * libio/vasprintf.c: Likewise.
12907         * libio/vscanf.c: Likewise.
12908         * libio/vsnprintf.c: Likewise.
12909         * libio/vswprintf.c: Likewise.
12910         * libio/wfiledoalloc.c: Likewise.
12911         * libio/wfileops.c: Likewise.
12912         * libio/wgenops.c: Likewise.
12913         * libio/wmemstream.c: Likewise.
12914         * libio/wstrops.c: Likewise.
12915         * libio/__fpurge.c: Likewise.
12916         * libio/__fsetlocking.c: Likewise.
12917         * assert/assert.c: Likewise.
12918         * debug/fgets_chk.c: Likewise.
12919         * debug/fgets_u_chk.c: Likewise.
12920         * debug/fread_chk.c: Likewise.
12921         * debug/fread_u_chk.c: Likewise.
12922         * debug/gets_chk.c: Likewise.
12923         * debug/obprintf_chk.c: Likewise.
12924         * debug/vasprintf_chk.c: Likewise.
12925         * debug/vdprintf_chk.c: Likewise.
12926         * debug/vsnprintf_chk.c: Likewise.
12927         * debug/vsprintf_chk.c: Likewise.
12928         * malloc/mtrace.c: Likewise.
12929         * misc/error.c: Likewise.
12930         * misc/syslog.c: Likewise.
12931         * stdio-common/asprintf.c: Likewise.
12932         * stdio-common/fxprintf.c: Likewise.
12933         * stdio-common/getw.c: Likewise.
12934         * stdio-common/isoc99_fscanf.c: Likewise.
12935         * stdio-common/isoc99_scanf.c: Likewise.
12936         * stdio-common/isoc99_vfscanf.c: Likewise.
12937         * stdio-common/isoc99_vscanf.c: Likewise.
12938         * stdio-common/isoc99_vsscanf.c: Likewise.
12939         * stdio-common/printf-prs.c: Likewise.
12940         * stdio-common/printf_fp.c: Likewise.
12941         * stdio-common/printf_fphex.c: Likewise.
12942         * stdio-common/printf_size.c: Likewise.
12943         * stdio-common/putw.c: Likewise.
12944         * stdio-common/scanf.c: Likewise.
12945         * stdio-common/sprintf.c: Likewise.
12946         * stdio-common/tmpfile.c: Likewise.
12947         * stdio-common/vfprintf.c: Likewise.
12948         * stdio-common/vfscanf.c: Likewise.
12949         * stdlib/strfmon_l.c: Likewise.
12950         * sunrpc/openchild.c: Likewise.
12951         * sunrpc/xdr_stdio.c: Likewise.
12952         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12953         * sysdeps/mach/hurd/tmpfile.c: Likewise.
12954
12955 2012-05-24  Roland McGrath  <roland@hack.frob.com>
12956
12957         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
12958
12959         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
12960         in the third column, to generate for the shared library an IFUNC
12961         that uses _dl_vdso_vsym.
12962         * Makerules (COMPILE.c, compile-stdin.c): New variables.
12963         * Makeconfig (object-suffixes-noshared): New variable.
12964
12965         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
12966         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
12967         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
12968         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
12969
12970         [BZ #14132]
12971         * include/sys/time.h (__gettimeofday): Remove macro.
12972         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
12973         * time/gettimeofday.c (__gettimeofday): Remove #undef.
12974         Remove INTDEF.
12975         (__gettimeofday): Add libc_hidden_def.
12976         (gettimeofday): Add libc_hidden_weak.
12977         * sysdeps/mach/gettimeofday.c: Likewise.
12978         * sysdeps/posix/gettimeofday.c: Likewise.
12979         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
12980         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
12981         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
12982         (__gettimeofday_internal): Remove strong_alias.
12983         (__gettimeofday): Add libc_hidden_def.
12984         (gettimeofday): Add libc_hidden_weak.
12985         * sysdeps/unix/syscalls.list (gettimeofday):
12986         Remove __gettimeofday_internal alias.
12987
12988 2012-05-24  Daniel Jacobowitz  <drow@false.org>
12989             H.J. Lu  <hongjiu.lu@intel.com>
12990
12991         [BZ #12495]
12992         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
12993         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
12994         (largebin_index_32_big): New.
12995         (largebin_index): Use it for 16-byte alignment.
12996         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
12997         correction with front_misalign.
12998
12999 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13000
13001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
13002         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
13003         Likewise.
13004         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
13005         Likewise.
13006         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
13007         Likewise.
13008         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
13009         Likewise.
13010         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
13011         Likewise.
13012         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
13013         Likewise.
13014         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
13015         Likewise.
13016         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
13017         Likewise.
13018         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
13019         Likewise.
13020         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
13021         Likewise.
13022         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
13023         Likewise.
13024         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
13025         Likewise.
13026
13027         * scripts/data/c++-types-x32-linux-gnu.data: New file.
13028         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
13029
13030 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
13031
13032         [BZ #10846]
13033         [BZ #14036]
13034         * math/libm-test.inc (exp_test): Add test from bug 14036.
13035         (pow_test): Add test from bug 10846.
13036
13037         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
13038         and other flags.
13039         (special_function): Do not include flags in test name.
13040         (parse_args): Likewise.
13041         * sysdeps/i386/fpu/libm-test-ulps: Update.
13042         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13043         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13044         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13046
13047         * math/gen-libm-test.pl (%beautify): Add entries for underflow
13048         exceptions.
13049         * math/libm-test.inc ("Philosophy"): Update comment about
13050         exception testing.
13051         (UNDERFLOW_EXCEPTION): New macro.
13052         (UNDERFLOW_EXCEPTION_OK): Likewise.
13053         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
13054         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
13055         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
13056         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
13057         (INVALID_EXCEPTION_OK): Update value.
13058         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
13059         (OVERFLOW_EXCEPTION_OK): Likewise.
13060         (IGNORE_ZERO_INF_SIGN): Likewise.
13061         (test_exceptions): Handle underflow exceptions.
13062         (acos_test): Update for underflow exception expectations.
13063         (cexp_test): Likewise.
13064         (clog_test): Likewise.
13065         (clog10_test): Likewise.
13066         (csqrt_test): Likewise.
13067         (ctan_test): Likewise.
13068         (ctanh_test): Likewise.
13069         (exp_test): Likewise.
13070         (exp10_test): Likewise.
13071         (exp2_test): Likewise.
13072         (expm1_test): Likewise.
13073         (fma_test): Likewise.
13074         (j0_test): Likewise.
13075         (jn_test): Likewise.
13076         (nexttoward_test): Likewise.
13077         (pow_test): Likewise.
13078         (scalbn_test): Likewise.
13079         (scalbln_test): Likewise.
13080         (tan_test): Likewise.
13081         (y1_test): Likewise.
13082         * sysdeps/i386/fpu/libm-test-ulps: Update.
13083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13084
13085 2012-05-23  David S. Miller  <davem@davemloft.net>
13086
13087         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
13088         (__libc_sigaction): Remove unused local variables.
13089
13090 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13091
13092         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
13093
13094 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13095
13096         mktime: avoid signed integer overflow
13097         * time/mktime.c (__mktime_internal): Do not mishandle the case
13098         where diff == INT_MIN.
13099
13100         mktime: simplify computation of average
13101         * time/mktime.c (ranged_convert): Use new time_t_avg function
13102         instead of rolling our own (probably-slower) code.
13103
13104         mktime: do not assume signed right shift propagates sign bit
13105         * time/mktime.c (isdst_differ): New static function.
13106         (__mktime_internal): No need to normalize tm_isdst now.
13107         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
13108         tm_isdst values.
13109
13110         mktime: merge another wrapv change from gnulib
13111         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
13112         from some compilers.
13113
13114         mktime: remove incorrect attempt at unusual arithmetics
13115         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
13116         The code didn't really work on such machines anyway.
13117         (TYPE_MINIMUM): Assume two's complement.
13118         (twos_complement_arithmetic): Verify that long_int and time_t
13119         are two's complement (or unsigned, in the latter case).
13120
13121         mktime: check signed shifts on long_int and time_t, too
13122         * time/mktime.c (SHR): Check that shifts work as desired
13123         on the types long_int and time_t too, as SHR is used on
13124         such types.
13125
13126         mktime: do not assume 'long' is wide enough
13127         * time/mktime.c (verify): Move decl up.
13128         (long_int): New type.
13129         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
13130         to remove assumption in the code that 'long' is wide enough to
13131         store year values.  This assumption is not true on x32 and on
13132         some non-glibc platforms.
13133
13134         mktime: merge wrapv change from gnulib
13135         * time/mktime.c (WRAPV): New macro.
13136         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
13137         (guess_time_tm, __mktime_internal): Do not assume that signed
13138         integer overflow wraps around; modern compilers generate code
13139         where this assumption is no longer valid.
13140
13141 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13142
13143         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13144         Replace "jmp L(pseudo_end)" with "ret".
13145         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
13146         Likewise.
13147
13148 2012-05-23  Andreas Jaeger  <aj@suse.de>
13149
13150         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
13151         * sysdeps/unix/sysv/linux/poll.c: Remove file.
13152
13153 2012-05-23  Andreas Jaeger  <aj@suse.de>
13154             Maximilian Attems  <max@stro.at>
13155
13156         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
13157         New macros.
13158
13159 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13160
13161         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
13162         code so that pseudo_end is just ret and the stack pointer is
13163         correct also for static library in error case.
13164
13165 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
13166
13167         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
13168         move to syscalls.list.
13169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
13170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
13171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
13172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
13173
13174         * manual/install.texi (Running make install): Do not mention Linux
13175         kernel version for which pt_chown is not needed.
13176         (Linux): Do not mention problems with nscd with 2.0 kernels.
13177         * INSTALL: Regenerated.
13178
13179 2012-05-23  Andreas Jaeger  <aj@suse.de>
13180
13181         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
13182         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
13183         macro.
13184         * sysdeps/unix/sysv/linux/s390/bits/mman.h
13185         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13186         * sysdeps/unix/sysv/linux/sh/bits/mman.h
13187         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13188         * sysdeps/unix/sysv/linux/i386/bits/mman.h
13189         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13190         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
13191         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13192         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
13193         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
13194         * sysdeps/unix/sysv/linux/bits/in.h
13195         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
13196
13197 2012-05-22  Roland McGrath  <roland@hack.frob.com>
13198
13199         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
13200         (PREPARE_VERSION): Just use assert instead, it will be elided
13201         under [NDEBUG] anyway.
13202
13203 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13204
13205         * sysdeps/unix/sysv/linux/Makefile: Include
13206         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
13207         (sysdep_routines): Remove sysctl.
13208         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
13209         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
13210         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
13211         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
13212         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
13213
13214 2012-05-22  Andreas Jaeger  <aj@suse.de>
13215
13216         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
13217         that pseudo_end is just ret and the stack pointer is correct also
13218         for static library in error case.
13219
13220 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
13221
13222         [BZ #14122]
13223         * nss/nsswitch.c (defconfig_entries): New variable.
13224         (__nss_database_lookup): Don't leak defconfig entries.
13225         (nss_parse_service_list): Don't leak on error paths.
13226         (free_database_entries): New function.
13227         (free_defconfig): New function.
13228         (free_mem): Move common code to free_database_entries.
13229
13230 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13231
13232         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
13233         Add arch_prctl.
13234         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
13235
13236         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
13237         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
13238         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
13239         New macro.
13240         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
13241         (INTERNAL_SYSCALL_TYPES): Likewise.
13242         (LOAD_ARGS_TYPES_[1-6]): Likewise.
13243         (LOAD_REGS_TYPES_[1-6]): Likewise.
13244         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
13245         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
13246
13247 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13248
13249         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
13250         copysignl for GLIBC_2_0.
13251         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
13252         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
13253         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
13254         logbl for GLIBC_2_0.
13255         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
13256         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
13257
13258 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13259
13260         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
13261         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13262
13263         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
13264         Use "neg %eax".
13265
13266         * time/mktime.c: Update copyright years.
13267
13268 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13269
13270         mktime: merge comment-quoting-style change from gnulib
13271         * time/mktime.c: Quote 'like this' in comments.
13272         The GNU coding standards suggest that we no longer quote `like this',
13273         as "`" and "'" are typically rendered asymmetrically nowadays.
13274         The typical gnulib style is to quote 'like this' when quoting
13275         code, and "like this" when quoting English.
13276
13277         * time/mktime.c (compile-command): Add "-I.".
13278
13279         mktime: merge mktime-internal.h change from gnulib
13280         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
13281
13282         mktime: merge time_r change from gnulib
13283         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
13284
13285         mktime: merge DEBUG change from gnulib
13286         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
13287         case system <time.h> has a #define.
13288
13289         mktime: merge <sys/types.h> change from gnulib
13290         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
13291         since <time.t> is now guaranteed to define time_t.
13292
13293         mktime: merge HAVE_CONFIG_H change from gnulib
13294         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
13295
13296 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13297
13298         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13299         Use "neg %eax".
13300
13301         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
13302         __rlim_t cast.
13303         (struct rusage): Use anonymous union to pad each field to
13304         __syscall_slong_t.
13305
13306 2012-05-21  David S. Miller  <davem@davemloft.net>
13307
13308         * Makefules (o-iterator): Remove .s cases.
13309         (compile-command.s): Delete.
13310         (COMPILE.s): Delete.
13311         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
13312
13313 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
13314
13315         * configure.in (libc_cv_predef_stack_protector): Only consider
13316         "foobar" and "__stack_chk_fail" lines in libc_undefs.
13317         * configure: Regenerated.
13318
13319 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13320
13321         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
13322         New macro.  Use R*LP on int and pointer.
13323         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
13324         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
13325         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
13326         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
13327
13328         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
13329         [__WORDSIZE_TIME64_COMPAT32] instead of
13330         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
13331         (struct utmp): Likewise.
13332         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
13333         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
13334         Renamed to ...
13335         (__WORDSIZE_TIME64_COMPAT32): This.
13336         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
13337         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
13338         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
13339         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
13340         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
13341         (__WORDSIZE_TIME64_COMPAT32): New macro.
13342
13343 2012-05-21  Andreas Jaeger  <aj@suse.de>
13344
13345         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
13346         only if [SHARED]. Add prototype for __wcschr_ia32.
13347
13348 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13349
13350         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
13351         of %rbp unmolested in the jmp_buf while mangling the low bits.
13352         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
13353         unmolested high bits of %rbp while demangling the low bits.
13354         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
13355
13356 2012-05-21  Andreas Jaeger  <aj@suse.de>
13357
13358         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
13359         * sunrpc/svc_simple.c: Use it for registerrpc.
13360         * sunrpc/xcrypt.c: Use it for passwd2des.
13361
13362         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
13363
13364 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13365
13366         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
13367         Don't define if [__SYSCALL_WORDSIZE != 32].
13368         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
13369         New macro.
13370
13371 2012-05-21  Bruno Haible  <bruno@clisp.org>
13372             Andreas Jaeger  <aj@suse.de>
13373
13374         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
13375         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
13376         inptr and inend for must_buffer_ch.
13377         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
13378         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
13379         * stdio-common/Makefile (tests): Remove bug15.
13380         (bug15-ENV): Remove macro.
13381         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
13382         anymore.
13383
13384 2012-05-19  Andreas Jaeger  <aj@suse.de>
13385             Roland McGrath  <roland@hack.frob.com>
13386
13387         * manual/contrib.texi: Completely rewritten. It contains now an
13388         alphabetical list of contributors and their contributions.
13389
13390 2012-05-21  Richard Henderson  <rth@twiddle.net>
13391
13392         * misc/getauxval.c (__getauxval): Use unsigned long int.
13393         * misc/sys/auxv.h: Include <sys/cdefs.h>.
13394         (getauxval): Use unsigned long int.
13395
13396 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13397
13398         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
13399
13400 2012-05-21  Roland McGrath  <roland@hack.frob.com>
13401
13402         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
13403         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
13404         __alignof__ (long double).
13405
13406 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13407
13408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13409
13410 2012-05-20  Richard Henderson  <rth@twiddle.net>
13411
13412         * misc/getauxval.c: New file.
13413         * misc/sys/auxv.h: New file.
13414         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
13415         (routines): Add getauxval.
13416         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
13417         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
13418         * elf/dl-sysdep.c (_dl_auxv): Remove.
13419         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
13420         * elf/dl-support.c (_dl_auxv): New variable.
13421         (_dl_aux_init): Initialize it.
13422         * manual/startup.texi (Auxiliary Vector): New node.
13423         * sysdeps/generic/bits/hwcap.h: New file.
13424         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
13425         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
13426         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
13427         * sysdeps/sparc/sysdep.h: ... here.  Include it.
13428         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
13429         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
13430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13431         Update.
13432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
13433         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
13434         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
13435         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
13436         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13437         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
13438         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
13439         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
13440
13441 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13442
13443         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13444
13445 2012-05-19  David S. Miller  <davem@davemloft.net>
13446
13447         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13448
13449 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13450
13451         [BZ #14123]
13452         * math/s_ccosh.c: Include <float.h>
13453         (__ccosh): Avoid internal overflow calculating sinh and cosh
13454         values before multiplying by sin and cos values.
13455         * math/s_ccoshf.c: Likewise.
13456         * math/s_ccoshl.c: Likewise.
13457         * math/s_csin.c: Likewise.
13458         * math/s_csinf.c: Likewise.
13459         * math/s_csinl.c: Likewise.
13460         * math/s_csinh.c: Likewise.
13461         * math/s_csinhf.c: Likewise.
13462         * math/s_csinhl.c: Likewise.
13463         * math/libm-test.inc (ccos_test): Add more tests.
13464         (ccosh_test): Likewise.
13465         (csin_test): Likewise.
13466         (csinh_test): Likewise.
13467         * sysdeps/i386/fpu/libm-test-ulps: Update.
13468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13469
13470 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13471
13472         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
13473         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
13474
13475         * sysdeps/x86_64/x32/_itoa.h: Add comment.
13476
13477 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
13478
13479         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
13480         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
13481         * sysdeps/powerpc/soft-fp/Versions: Likewise.
13482         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
13483         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
13484         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
13485         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
13486         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
13487         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
13488         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
13489         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
13490         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
13491         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
13492         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
13493         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
13494         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
13495         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
13496         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
13497         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
13498         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
13499         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
13500         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
13501         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
13502         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
13503         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
13504         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
13505         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
13506         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
13507         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
13508         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
13509         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
13510
13511 2012-05-18  Andreas Jaeger  <aj@suse.de>
13512
13513         * csu/.gitignore: Delete.
13514
13515 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13516
13517         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
13518         (timex): Use __syscall_slong_t.
13519
13520 2012-05-18  Andreas Jaeger  <aj@suse.de>
13521             Carlos O'Donell  <carlos_odonell@mentor.com>
13522
13523         * manual/install.texi (Configuring and compiling): Update
13524         description about files modified in the source directory.
13525         * INSTALL: Regenerated.
13526
13527 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13528
13529         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
13530         value.  Use "or" to set return value to -1.
13531         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
13532         negate return value.
13533
13534 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13535
13536         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
13537         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
13538         failure if the compiler has Graphite support disabled.
13539         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
13540         Likewise.
13541         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
13542         CFLAGS-memmove.c): Likewise.
13543         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
13544         Likewise.
13545
13546 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13547
13548         * sysdeps/x86_64/x32/_itoa.h: New file.
13549
13550         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
13551         getdents system call only if kernel and user dirents have the
13552         same d_ino and d_off.
13553
13554         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
13555         LLONG_MAX != LONG_MAX.
13556         (_itoa_word): Use _ITOA_WORD_TYPE on value.
13557         (_fitoa_word): Likewise.
13558
13559         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
13560         years.
13561         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
13562         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
13563         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
13564
13565         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
13566         include <bits/wordsize.h>.  Check __x86_64__ instead of
13567         __WORDSIZE.
13568         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
13569         if __x86_64__ is defined.  Use anonymous union on fpstate.
13570
13571         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
13572         anonymous union.
13573
13574 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
13575
13576         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
13577         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
13578         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
13579         Refer to _rtld_local_ro instead of _rtld_global_ro.
13580         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
13581         Likewise.
13582         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
13583         Likewise.
13584         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
13585         Likewise.
13586         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
13587         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
13588         of _rtld_global, and rtld_progname instead of _dl_argv[0].
13589
13590         * sysdeps/powerpc/powerpc32/dl-machine.c
13591         (__elf_machine_runtime_setup) [PROF]: Don't reference
13592         _dl_prof_resolve.
13593
13594 2012-05-18  Andreas Jaeger  <aj@suse.de>
13595
13596         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
13597         function only available for GCCs before 3.4 since GCC 3.4
13598         introduced a builtin.
13599         (lrint): Likewise.
13600         (llrintf): Likewise.
13601         (llrint): Likewise.
13602         (fmaxf): Likewise.
13603         (fmax): Likewise.
13604         (fminf): Likewise.
13605         (fmin): Likewise.
13606         (rint): Likewise.
13607         (rintf): Likewise.
13608         (nearbyint): Likewise.
13609         (nearbyintf): Likewise.
13610         (ceil): Likewise.
13611         (ceilf): Likewise.
13612         (floor): Likewise.
13613         (floorf): Likewise.
13614
13615 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13616
13617         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
13618         on both fields and cast pointer to __syscall_ulong_t.
13619
13620         * bits/types.h (__fsword_t): New type.
13621         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
13622         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
13623         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13624         (__FSWORD_T_TYPE): Likewise.
13625         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13626         (__FSWORD_T_TYPE): Likewise.
13627         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13628         (__FSWORD_T_TYPE): Likewise.
13629         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
13630         (__FSWORD_T_TYPE): Likewise.
13631         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
13632         __SWORD_TYPE with __fsword_t.
13633         (statfs64): Likewise.
13634
13635 2012-05-17  David S. Miller  <davem@davemloft.net>
13636
13637         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
13638
13639 2012-05-17  Andreas Jaeger  <aj@suse.de>
13640
13641         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
13642         warning.
13643
13644 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13645
13646         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
13647
13648 2012-05-17  Andreas Jaeger  <aj@suse.de>
13649
13650         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
13651         when it is used.
13652
13653 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13654
13655         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
13656
13657 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13658
13659         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
13660         * sysdeps/x86_64/tst-mallocalign1.c: New file.
13661
13662 2012-05-17  Andreas Jaeger  <aj@suse.de>
13663             Carlos O'Donell  <carlos_odonell@mentor.com>
13664
13665         [BZ #14059]
13666         * sysdeps/x86_64/multiarch/init-arch.h
13667         (bit_YMM_Usable): Rename to...
13668         (bit_AVX_Usable): ... this.
13669         (bit_FMA4_Usable): New macro.
13670         (bit_XMM_state): New macro.
13671         (bit_YMM_state): New macro.
13672         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
13673         [__ASSEMBLER__] (index_AVX_Usable): ... this.
13674         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
13675         (CPUID_OSXSAVE): New macro.
13676         (CPUID_AVX): New macro.
13677         (CPUID_FMA4): New macro.
13678         (index_YMM_Usable): Rename to...
13679         (index_AVX_Usable): ... this.
13680         (HAS_AVX): Use HAS_ARCH_FEATURE.
13681         (HAS_FMA4): Likewise.
13682         (HAS_YMM_USABLE): Remove.
13683         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13684         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
13685         are present.
13686         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
13687         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
13688         * sysdeps/x86_64/multiarch/Makefile: Likewise.
13689         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
13690         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
13691
13692 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
13693
13694         * math/libm-test.c: Support platforms without multiple rounding modes.
13695         * math/bug-nextafter.c: Support platforms without FP exceptions.
13696         * math/bug-nexttoward.c: Likewise.
13697         * math/test-fenv.c: Likewise.
13698         * math/test-misc.c: Likewise.
13699         * stdlib/bug-getcontext.c: Likewise.
13700
13701 2012-05-17  Andreas Jaeger  <aj@suse.de>
13702
13703         * manual/examples/search.c (critter_cmp): Change signature to
13704         avoid warnings.
13705         * manual/string.texi (Collation Functions): Likewise.
13706
13707 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13708
13709         * bits/types.h: Fold copyright years.
13710         * bits/typesizes.h: Likewise.
13711         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
13712         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
13713         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
13714         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
13715         * time/time.h: Likewise.
13716
13717 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
13718
13719         [BZ #208]
13720         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
13721         in instead of returning them.  Return void.
13722         (__libc_mallinfo): Accumulate over all arenas.
13723         (__malloc_stats): Adjust for change in int_mallinfo interface.
13724
13725 2012-05-16  Roland McGrath  <roland@hack.frob.com>
13726
13727         [BZ #10375]
13728         * configure.in (NM): Add AC_CHECK_TOOL for it.
13729         (libc_extra_cflags): New substituted variable.
13730         Check for -fstack-protector being used implicitly.
13731         * configure: Regenerated.
13732         * config.make.in (config-extra-cflags): New variable,
13733         gets @libc_extra_cflags@.
13734         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
13735
13736         [BZ #10375]
13737         * configure.in: Check for _FORTIFY_SOURCE being predefined.
13738         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
13739         * configure: Regenerated.
13740         * config.make.in (CPPUNDEFS): New substituted variable.
13741         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
13742         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
13743         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
13744
13745 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13746
13747         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
13748         (mq_attr): Use __syscall_slong_t.
13749
13750 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13751
13752         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
13753         Check __x86_64__ instead of __WORDSIZE.
13754         (_STAT_VER_LINUX): Likewise.
13755         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
13756         __syscall_ulong_t and __syscall_slong_t.
13757         (stat64): Likewise.
13758
13759 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13760
13761         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
13762
13763 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13764
13765         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
13766
13767 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13768
13769         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
13770         __syscall_ulong_t.
13771
13772         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
13773         include <bits/wordsize.h>.  Check __x86_64__ instead of
13774         __WORDSIZE.
13775         (greg_t): Use "__extension__ long long int" if __x86_64__ is
13776         defined.
13777         (mcontext_t): Replace "unsigned long" with "unsigned long long".
13778
13779         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
13780         include <bits/wordsize.h>.  Check __x86_64__ instead of
13781         __WORDSIZE.
13782         (user_regs_struct): Use "__extension__ unsigned long long"
13783         instead of "unsigned long" if __x86_64__ is defined.
13784         (user): Likewise.  Pad after pointer field if __ILP32__ is
13785         defined.
13786
13787 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
13788
13789         * configure.in (makeinfo): Require version 4.5 or later.  Allow
13790         versions 5 to 9.
13791         * configure: Regenerated.
13792         * manual/install.texi (texinfo): Increase version requirement to
13793         4.5 or later.
13794         * INSTALL: Regenerated.
13795
13796         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
13797
13798 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13799
13800         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
13801
13802         * sysdeps/x86_64/x32/ffs.c: New file.
13803
13804         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
13805         __syscall_ulong_t.
13806         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
13807         defined.  Use __syscall_ulong_t.
13808         (shminfo): Use __syscall_ulong_t.
13809         (shm_info): Likewise.
13810
13811         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
13812         __syscall_ulong_t.
13813
13814         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
13815         <bits/wordsize.h>.
13816         (msgqnum_t): Use __syscall_ulong_t.
13817         (msglen_t): Likewise.
13818         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
13819         __syscall_ulong_t.
13820
13821         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
13822         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13823
13824         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
13825
13826         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
13827         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
13828
13829         * sysvipc/sys/msg.h (msgbuf): Replace long int with
13830         __syscall_slong_t.
13831
13832         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
13833         include <bits/wordsize.h>.  Check __x86_64__ instead of
13834         __WORDSIZE.
13835
13836         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
13837         "unsigned long long int" if __x86_64__ is defined.
13838         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
13839
13840         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
13841         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
13842         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
13843
13844         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
13845         <stdint.h>.
13846         (GET_PC): Cast to uintptr_t first.
13847         (GET_FRAME): Likewise.
13848         (GET_STACK): Likewise.
13849
13850         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
13851         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
13852         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
13853         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
13854         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
13855         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
13856         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
13857         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
13858         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
13859         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
13860         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
13861         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
13862         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
13863         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
13864         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
13865         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
13866         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
13867         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
13868         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
13869         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
13870         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
13871         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
13872         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
13873         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
13874         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
13875         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
13876         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
13877         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
13878         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
13879
13880 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
13881
13882         * Makerules (+depfiles): Also collect depfiles from .oS in
13883         $(extra-objs).
13884         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
13885         .oS, $(libnldbl-routines)).
13886
13887         * Makerules (native-compile-mkdep-flags): Define.
13888         * sunrpc/Makefile (extra-objs): Add $(addprefix
13889         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
13890         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
13891         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
13892         calling $(make-target-directory).
13893
13894 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13895
13896         * bits/types.h (__snseconds_t): Removed.
13897         * time/time.h (struct timespec): Replace __snseconds_t with
13898         __syscall_slong_t.
13899         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
13900         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
13901         Likewise.
13902         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13903         (__SNSECONDS_T_TYPE): Likewise.
13904         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13905         (__SNSECONDS_T_TYPE): Likewise.
13906         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13907         (__SNSECONDS_T_TYPE): Likewise.
13908
13909 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13910
13911         * sysdeps/mach/hurd/bits/typesizes.h
13912         (__SYSCALL_SLONG_TYPE): New macro.
13913         (__SYSCALL_ULONG_TYPE): Likewise.
13914
13915 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13916
13917         * bits/types.h (__syscall_slong_t): New type.
13918         (__syscall_ulong_t): Likewise.
13919
13920         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
13921         (__SYSCALL_ULONG_TYPE): Likewise.
13922         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13923         (__SYSCALL_SLONG_TYPE): Likewise.
13924         (__SYSCALL_ULONG_TYPE): Likewise.
13925         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13926         (__SYSCALL_SLONG_TYPE): Likewise.
13927         (__SYSCALL_ULONG_TYPE): Likewise.
13928         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13929         (__SYSCALL_SLONG_TYPE): Likewise.
13930         (__SYSCALL_ULONG_TYPE): Likewise.
13931
13932 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13933
13934         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
13935         Add sigaltstack-offsets.sym.
13936         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
13937         <sigaltstack-offsets.h>.
13938         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
13939         longjmp_msg pointer.
13940         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
13941         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
13942         signal stack.
13943         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
13944
13945 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
13946
13947         * elf/stackguard-macros.h: Remove file.
13948         * sysdeps/generic/stackguard-macros.h: New file.
13949         * sysdeps/i386/stackguard-macros.h: Likewise.
13950         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13951         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13952         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13953         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13954         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13955         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13956         * sysdeps/x86_64/stackguard-macros.h: Likewise.
13957         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
13958         <elf/stackguard-macros.h>.
13959
13960         [BZ #14109]
13961         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
13962         __aligned__ in attribute.
13963         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
13964         (gregset_t): Likewise.
13965
13966 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13967
13968         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
13969         * sysdeps/x86_64/64/Implies-after: Here.  New file.
13970         * sysdeps/x86_64/x32/Implies-after: New file.
13971
13972 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13973
13974         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
13975         and access return value for _dl_profile_fixup.  Use R10_LP to
13976         load frame size.
13977
13978 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13979
13980         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
13981
13982 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13983
13984         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
13985         * sysdeps/x86_64/x32/sysdep.h: New file.
13986
13987 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13988
13989         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
13990         * sysdeps/x86_64/setjmp.S: Likewise.
13991
13992 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13993
13994         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
13995         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
13996         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
13997         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
13998         remove unused global constant.
13999
14000 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
14001
14002         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
14003         include of <not-cancel.h>.
14004
14005 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14006
14007         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
14008
14009 2012-05-15  Jeff Law  <law@redhat.com>
14010             Andreas Jaeger  <aj@suse.de>
14011
14012         [BZ #13594]
14013         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
14014         out from...
14015         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
14016         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
14017         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
14018         code changing __hst_map_handle.map.
14019
14020 2012-05-15  Roland McGrath  <roland@hack.frob.com>
14021
14022         * configure.in (sysnames): Look for Implies-before and Implies-after
14023         files.
14024         * configure: Regenerated.
14025
14026 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14027
14028         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
14029         8-byte data alignment with LP_SIZE alignment.
14030
14031 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14032
14033         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
14034         into R10_LP.
14035
14036 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14037
14038         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
14039
14040 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14041
14042         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
14043         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
14044         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
14045         Likewise.
14046         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14047
14048 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14049
14050         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
14051         (stackinfo_sub_sp): Likewise.
14052
14053 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14054
14055         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
14056         RAX_LP.
14057
14058 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14059
14060         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
14061         into R*_LP.
14062
14063 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14064
14065         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
14066         sizes into R*_LP.
14067
14068 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14069
14070         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
14071
14072 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14073
14074         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
14075         into R11_LP and load __x86_64_shared_cache_size_half into
14076         R8_LP.
14077
14078 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14079
14080         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
14081         R8_LP.
14082
14083 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14084
14085         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
14086         logb for POWER7.
14087         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
14088         logbf for POWER7.
14089         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
14090         logbl for POWER7.
14091         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
14092         powerpc32/power7/fpu/s_logb.c via #include.
14093         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
14094         powerpc32/power7/fpu/s_logbf.c via #include.
14095         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
14096         powerpc32/power7/fpu/s_logbl.c via #include.
14097
14098 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
14099
14100         * README.libm: Remove file.
14101
14102 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14103
14104         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
14105         count for x32.  Use R*_LP and omit operand-size suffix.
14106
14107 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14108
14109         * shlib-versions: Move x86_64-.*-linux.* entries to ...
14110         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
14111         * sysdeps/x86_64/x32/shlib-versions: New file.
14112
14113 2012-05-14  Roland McGrath  <roland@hack.frob.com>
14114
14115         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
14116         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
14117         Use _dl_fatal_printf instead.
14118
14119 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14120
14121         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
14122         set if not set by the user.  Do not allow for being unset.
14123         * sysdeps/unix/sysv/linux/configure: Regenerated.
14124
14125 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14126
14127         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
14128         the `q' suffix from lea and replace .quad with ASM_ADDR.
14129
14130 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14131
14132         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
14133         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
14134         instead of $17.
14135         (PTR_DEMANGLE): Likewise.
14136
14137 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14138
14139         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
14140         (LP_OP): Likewise.
14141         (ASM_ADDR): Likewise.
14142         (RAX_LP): Likewise.
14143         (RBP_LP): Likewise.
14144         (RBX_LP): Likewise.
14145         (RCX_LP): Likewise.
14146         (RDI_LP): Likewise.
14147         (RSI_LP): Likewise.
14148         (RSP_LP): Likewise.
14149         (R8_LP): Likewise.
14150         (R9_LP): Likewise.
14151         (R10_LP): Likewise.
14152         (R10_LP): Likewise.
14153         (R11_LP): Likewise.
14154         (R12_LP): Likewise.
14155         (R13_LP): Likewise.
14156         (R14_LP): Likewise.
14157         (R15_LP): Likewise.
14158
14159 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14160
14161         * sysdeps/x86_64/x32/dl-machine.h: New file.
14162
14163 2012-05-14  Andreas Jaeger  <aj@suse.de>
14164
14165         * manual/Makefile (subdir): Remove export of subdir.
14166         (all): Remove target.
14167         (.PHONY): Remove all from list.
14168         (mkinstalldirs): Remove.
14169         (.PHONY): Remove installdirs from list.
14170         ($(inst_infodir)/libc.info): Use make-target-directory.
14171         (installdirs): Remove.
14172         (subdir_%): Remove.
14173         (glibc-targets): Remove.
14174         (lib): Remove.
14175         (stubs): Remove.
14176         ($(objpfx)stubs ../po/manual.pot): Remove.
14177         ($(objpfx)stamp%): Remove.
14178         (make-target-directory): Remove.
14179         (subdir_install): Remove.
14180         (routines): Remove.
14181         (aux): Remove.
14182         (sources): Remove.
14183         (objects): Remove.
14184         (headers): Remove.
14185
14186         [BZ #13750]
14187         * manual/.gitignore: Remove, it's not needed anymore.
14188         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
14189         all files in it.
14190         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
14191         directory.
14192         (texis): Renamed to $(objpfx)texis.
14193         (texis-path): New, contains path to generated files.
14194         (chapters.%): Use texis-path for complete path, add extra argument
14195         libc-texinfo.sh.
14196         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
14197         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
14198         (summary,texi, stamp-summary): Use complete path of
14199         files. Generate files in build dir.
14200         (dir-add.texi): Build in build dir.
14201         (libm-err.texi,stamp-libm-err): Likewise.
14202         (version.texi, stamp-version): Likewise.
14203         (.%c.texi): Likewise.
14204         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
14205         (mostlyclean): Remove target.
14206         (realclean): Remove target.
14207         (generated): Add new variable with contents from mostlyclean and
14208         realclean, remove entries duplicated in common-mostlyclean, add
14209         stamp-libm-err and stamp-version.
14210         (generated-dirs): Add libc directory.
14211         ($(inst_infodir)/libc.info): Install files from build dir.
14212
14213         * manual/install.texi (Configuring and compiling): Adjust since
14214         the info files are not part of the tar ball anymore.
14215
14216 2012-05-14  Andreas Jaeger  <aj@suse.de>
14217
14218         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
14219         variable.
14220
14221 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
14222
14223         [BZ #13717]
14224         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
14225         to 2.2.0 where earlier.
14226         * sysdeps/unix/sysv/linux/configure: Regenerated.
14227         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
14228         Remove conditional code.
14229         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
14230         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
14231         Remove conditional code.
14232         [!__NR_lchown]: Likewise.
14233         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14234         [__NR_lchown]: Likewise.
14235         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
14236         comment referencing __ASSUME_LCHOWN_SYSCALL.
14237         * sysdeps/unix/sysv/linux/i386/sigaction.c
14238         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14239         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14240         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
14241         Remove conditional code.
14242         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
14243         (__protocol_available): Remove #if 0 code.
14244         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
14245         conditional code.
14246         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
14247         * sysdeps/unix/sysv/linux/kernel-features.h
14248         (__ASSUME_GETCWD_SYSCALL): Don't define.
14249         (__ASSUME_REALTIME_SIGNALS): Likewise.
14250         (__ASSUME_PREAD_SYSCALL): Likewise.
14251         (__ASSUME_PWRITE_SYSCALL): Likewise.
14252         (__ASSUME_POLL_SYSCALL): Likewise.
14253         (__ASSUME_LCHOWN_SYSCALL): Likewise.
14254         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
14255         non-SPARC.
14256         (__ASSUME_SIOCGIFNAME): Don't define.
14257         (__ASSUME_MSG_NOSIGNAL): Likewise.
14258         (__ASSUME_SENDFILE): Define unconditionally.
14259         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
14260         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
14261         conditional code.
14262         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
14263         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
14264         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14265         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14266         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
14267         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
14268         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
14269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
14270         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14271         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
14273         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14274         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
14276         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14277         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
14279         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14280         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
14282         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14283         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
14285         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
14286         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
14288         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14289         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
14291         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14292         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14293         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
14294         Remove conditional code.
14295         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14296         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14297         Remove conditional code.
14298         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14299         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
14300         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
14301         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14302         Remove conditional code.
14303         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14304         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
14305         Remove conditional code.
14306         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14307         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
14308         Remove conditional code.
14309         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14310         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
14311         Remove conditional code.
14312         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
14313         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
14314         Remove conditional code.
14315         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14316         * sysdeps/unix/sysv/linux/sh/pwrite64.c
14317         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
14318         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
14319         * sysdeps/unix/sysv/linux/sigaction.c
14320         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14321         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14322         * sysdeps/unix/sysv/linux/sigpending.c
14323         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14324         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14325         * sysdeps/unix/sysv/linux/sigprocmask.c
14326         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14327         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14328         * sysdeps/unix/sysv/linux/sigsuspend.c
14329         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
14330         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
14331         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
14332         (__libc_missing_rt_sigs): Remove.
14333         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
14334         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
14335         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
14336         Remove conditional code.
14337         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
14338         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
14339         return 1.
14340         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
14341         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
14342         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
14343         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
14344
14345 2012-05-14  Andreas Jaeger  <aj@suse.de>
14346
14347         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
14348         it's not used in glibc.
14349         (__coshm1): Likewise.
14350         (__acosh1p): Likewise.
14351         (__sgn): Likewise.
14352
14353         * manual/string.texi (Copying and Concatenation): Add missing
14354         variable in concat example.
14355         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
14356
14357 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14358
14359         [BZ #14103]
14360         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
14361         __builtin_clzl with __builtin_clzll.
14362
14363 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14364
14365         [BZ #14104]
14366         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
14367         libc_freeres_ptr.
14368
14369 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14370
14371         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
14372         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
14373         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
14374         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
14375
14376 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
14377
14378         * NEWS: Update ia64 info.
14379
14380 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
14381
14382         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
14383         used as bcopy.
14384
14385 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
14386
14387         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
14388         * sysdeps/unix/syscalls.list (dup3): Likewise.
14389         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
14390         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
14391
14392 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14393
14394         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
14395         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
14396
14397 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14398
14399         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
14400         thread pointer.
14401         (TLS_IE): Use mov/add instead of movq/addq to load thread
14402         pointer.
14403         (TLS_GD_PREFIX): New.
14404         (TLS_GD): Use it.
14405
14406 2012-05-11  David S. Miller  <davem@davemloft.net>
14407
14408         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
14409         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
14410         (_FPU_SETCW): Likewise.
14411
14412 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14413
14414         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
14415         is 32-byte aligned.
14416
14417 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
14418
14419         [BZ #11837]
14420         * iconvdata/gb18030.c: Update tables.
14421         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
14422         characters specially.
14423         (BODY for TO_LOOP): Add encoding of missing ranges.
14424
14425 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
14426
14427         [BZ #13673]
14428         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
14429         * sysdeps/mach/hurd/dup3.c: Likewise.
14430         * sysdeps/mach/hurd/readlinkat.c: Likewise.
14431         * sysdeps/powerpc/memmove.c:: Likewise.
14432
14433 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14434
14435         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
14436         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
14437
14438 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14439
14440         * elf/elf.h (R_X86_64_RELATIVE64): New.
14441         (R_X86_64_NUM): Updated.
14442         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
14443         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
14444         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
14445         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
14446         tst-quad1pie tst-quad2pie
14447         (modules-names): Add tst-quadmod1 tst-quadmod2.
14448         ($(objpfx)tst-quad1): New dependency.
14449         ($(objpfx)tst-quad2): Likewise.
14450         ($(objpfx)tst-quad1pie): Likewise.
14451         ($(objpfx)tst-quad2pie): Likewise.
14452         * sysdeps/x86_64/tst-quad1.c: New file.
14453         * sysdeps/x86_64/tst-quad1pie.c: New file.
14454         * sysdeps/x86_64/tst-quad2.c: Likewise.
14455         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
14456         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
14457         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
14458         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
14459         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
14460
14461 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14462
14463         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
14464         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
14465         * streams/stropts.h (t_scalar_t): Define type.
14466
14467         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
14468         (_PATH_PRESERVE): Set to "/var/lib".
14469         (_PATH_RWHODIR): Set to "/var/spool/rwho".
14470
14471         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
14472         instead of int.
14473
14474         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
14475         if __dir_mkfile succeeded.
14476
14477         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
14478         checking for _hurd_dtablesize.  Unlock it right after having
14479         finished _hurd_dtable allocation.
14480
14481 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14482
14483         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
14484         * sysdeps/mach/hurd/configure: Regenerated.
14485         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
14486         special-casing to...
14487         * sysdeps/gnu/configure.in: ... this new file.
14488         * sysdeps/unix/sysv/linux/configure: Regenerated.
14489         * sysdeps/gnu/configure: New generated file.
14490
14491         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
14492         for Linux: use nsec instead of usec, as well as:
14493         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
14494         members of type struct timespec.
14495         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
14496         New macros.
14497         (struct stat64): Likewise.
14498         (_STATBUF_ST_NSEC): New macro.
14499         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
14500
14501         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
14502         __strtoul_internal rather than strtoul.
14503
14504 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14505
14506         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
14507         and reject them.
14508
14509 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14510
14511         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
14512         which preserves existing values.
14513         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
14514
14515 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14516
14517         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
14518         TIMEOUT values.  Return EINVAL for NFDS values either negative or
14519         greater than FD_SETSIZE.
14520
14521 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14522
14523         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
14524         allocated, call __vm_protect to finish enabling the existing space, and
14525         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
14526         allocate the remainder.
14527
14528 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14529
14530         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
14531         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
14532
14533 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14534
14535         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
14536         sysdeps/mach/hurd/readlink.c.
14537
14538         * posix/tst-sysconf.c (posix_options): Only use
14539         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
14540         _POSIX_SYNCHRONIZED_IO when they are defined
14541         * sysdeps/mach/hurd/bits/posix_opt.h:
14542         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
14543         (_XOPEN_REALTIME): Undefine macro.
14544         (_XOPEN_REALTIME_THREADS): Undefine macro.
14545         (_XOPEN_SHM): Undefine macro.
14546         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
14547         macro to -1.
14548         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
14549         macro to -1.
14550         (_POSIX_ASYNC_IO): Undefine macro.
14551         (_POSIX_PRIORITIZED_IO): Undefine macro.
14552         (_POSIX_SPIN_LOCKS): Define macro to -1.
14553
14554         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
14555         SA_NODEFER, SA_RESETHAND.
14556         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
14557         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
14558         F_DUPFD_CLOEXEC.
14559
14560 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14561
14562         * elf/Makefile (pldd-modules): Define unconditionally.
14563
14564 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14565
14566         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
14567
14568 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14569
14570         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
14571         Return ENOENT when name is empty.
14572         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
14573
14574 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14575
14576         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
14577
14578         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
14579
14580 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14581
14582         Fix mlock in all cases except non-readable pages.
14583         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
14584         instead of VM_PROT_ALL as parameter to __vm_wire function.
14585
14586         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
14587         (__mkdir): When path is `/', just fail with EEXIST.
14588         * sysdeps/mach/hurd/mkdirat.c: Likewise.
14589
14590 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14591
14592         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
14593         <sys/uio.h> (for writev).
14594         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
14595         and <sys/param.h> (for MIN).
14596
14597 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
14598
14599         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
14600         REQUESTED_TIME.  Properly set the remaining time and return EINTR
14601         if interrupted.
14602
14603 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14604
14605         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
14606         Depend on against $(link-rpcuserlibs).
14607
14608 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14609
14610         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
14611         (__libc_stack_end): Do not use attribute_relro.
14612         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
14613         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
14614         to libthread-provided value.
14615         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
14616         attribute_relro.
14617
14618 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14619
14620         [BZ #3748]
14621         * bits/libc-lock.h (__libc_once_get): New macro.
14622         * sysdeps/mach/bits/libc-lock.h: Likewise.
14623         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
14624         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
14625         instead of using implementation details.
14626
14627         * libio/fileops.c: Unconditionally include <kernel-features.h>.
14628         * libio/freopen.c: Likewise.
14629         * libio/freopen64.c: Likewise.
14630         * misc/syslog.c: Likewise.
14631         * nscd/connections.c: Likewise.
14632         * nscd/netgroupcache.c: Likewise.
14633         * sysdeps/posix/getcwd.c: Likewise.
14634
14635 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14636
14637         * math/w_ilogbf.c: Add #include <limits.h>.
14638
14639 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14640
14641         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
14642         path instead of returning without unlocking.
14643
14644         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
14645         immediate-write ioctls.
14646         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
14647
14648 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14649
14650         * sysdeps/mach/hurd/i386/init-first.c (init): Use
14651         __builtin_frame_address instead of making assumptions about the
14652         location of the return address relative to DATA.  Force early load of
14653         the return address.
14654         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
14655         __builtin_frame_address.
14656
14657         dup3 for GNU Hurd.
14658         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
14659         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
14660         implement dup3 and do some further code clean-ups.
14661         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
14662         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
14663
14664 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14665
14666         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
14667
14668         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
14669         HURD_CRITICAL_END around holding _hurd_dtable_lock.
14670         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
14671         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
14672         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
14673         d->port.lock.
14674
14675         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
14676         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
14677         when handler == SIG_ERR, not when handler != SIG_ERR.
14678
14679 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14680
14681         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
14682         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
14683         definitions.
14684
14685         accept4 for GNU Hurd.
14686         * include/sys/socket.h (__libc_accept4): New prototype.
14687         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
14688         to implement __libc_accept4.
14689         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
14690         __libc_accept4.
14691         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
14692
14693         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
14694         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
14695         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
14696         signal-defines.sym.
14697
14698 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14699
14700         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
14701
14702 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
14703
14704         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
14705         assertion on O_CLOEXEC flag.
14706         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
14707         * hurd/intern-fd.c: Likewise.
14708         * hurd/port2fd.c: Likewise.
14709
14710 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14711
14712         [BZ #3906]
14713         * bits/in.h (IPV6_PKTINFO): Define new macro.
14714         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
14715
14716 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14717
14718         [BZ #13954]
14719         [BZ #13955]
14720         [BZ #13956]
14721         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
14722         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
14723         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
14724         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
14725         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14726         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
14727         * math/libm-test.inc (logb_test) : Additional logb tests.
14728
14729 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
14730             Andreas Jaeger  <aj@suse.de>
14731
14732         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
14733         * configure: Regenerated.
14734         * config.h.in (LINK_OBSOLETE_RPC): New macro.
14735         * config.make.in (link-obsolete-rpc): New substituted variable.
14736         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
14737         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
14738         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14739         (shared-only-routines): Don't set it under [link-obsolete-rpc],
14740         so that libc.a contains the symbols.
14741         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
14742         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
14743         * sunrpc/auth_none.c: Likewise.
14744         * sunrpc/auth_unix.c: Likewise.
14745         * sunrpc/authdes_prot.c: Likewise.
14746         * sunrpc/authuxprot.c: Likewise.
14747         * sunrpc/clnt_gen.c: Likewise.
14748         * sunrpc/clnt_perr.c: Likewise.
14749         * sunrpc/clnt_raw.c: Likewise.
14750         * sunrpc/clnt_simp.c: Likewise.
14751         * sunrpc/clnt_tcp.c: Likewise.
14752         * sunrpc/clnt_udp.c: Likewise.
14753         * sunrpc/clnt_unix.c: Likewise.
14754         * sunrpc/des_crypt.c: Likewise.
14755         * sunrpc/des_soft.c: Likewise.
14756         * sunrpc/get_myaddr.c: Likewise.
14757         * sunrpc/key_call.c: Likewise.
14758         * sunrpc/key_prot.c: Likewise.
14759         * sunrpc/netname.c: Likewise.
14760         * sunrpc/pm_getmaps.c: Likewise.
14761         * sunrpc/pm_getport.c: Likewise.
14762         * sunrpc/pmap_clnt.c: Likewise.
14763         * sunrpc/pmap_prot.c: Likewise.
14764         * sunrpc/pmap_prot2.c: Likewise.
14765         * sunrpc/pmap_rmt.c: Likewise.
14766         * sunrpc/publickey.c: Likewise.
14767         * sunrpc/rpc_cmsg.c: Likewise.
14768         * sunrpc/rpc_common.c: Likewise.
14769         * sunrpc/rpc_dtable.c: Likewise.
14770         * sunrpc/rpc_prot.c: Likewise.
14771         * sunrpc/rpc_thread.c: Likewise.
14772         * sunrpc/rtime.c: Likewise.
14773         * sunrpc/svc.c: Likewise.
14774         * sunrpc/svc_auth.c: Likewise.
14775         * sunrpc/svc_raw.c: Likewise.
14776         * sunrpc/svc_run.c: Likewise.
14777         * sunrpc/svc_tcp.c: Likewise.
14778         * sunrpc/svc_udp.c: Likewise.
14779         * sunrpc/svc_unix.c: Likewise.
14780         * sunrpc/svcauth_des.c: Likewise.
14781         * sunrpc/xcrypt.c: Likewise.
14782         * sunrpc/xdr.c: Likewise.
14783         * sunrpc/xdr_array.c: Likewise.
14784         * sunrpc/xdr_float.c: Likewise.
14785         * sunrpc/xdr_intXX_t.c: Likewise.
14786         * sunrpc/xdr_mem.c: Likewise.
14787         * sunrpc/xdr_rec.c: Likewise.
14788         * sunrpc/xdr_ref.c: Likewise.
14789         * sunrpc/xdr_sizeof.c: Likewise.
14790         * sunrpc/xdr_stdio.c: Likewise.
14791
14792 2012-05-10  Roland McGrath  <roland@hack.frob.com>
14793
14794         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
14795         change.  Update copyright years.
14796
14797 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14798
14799         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
14800
14801 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
14802             Joseph Myers  <joseph@codesourcery.com>
14803             Paul Pluzhnikov  <ppluzhnikov@google.com>
14804
14805         [BZ #14012]
14806         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
14807         requiring rpcgen.
14808         [cross-compiling] (extra-libs): Likewise.
14809         [cross-compiling] (extra-libs-others): Likewise.
14810         [cross-compiling] (librpcsvc-routines): Likewise.
14811         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
14812         [cross-compiling] (omit-deps): Likewise.
14813         (sunrpc-CPPFLAGS): New variable.
14814         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
14815         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
14816         (cross-rpcgen-objs): New variable.
14817         (extra-objs): Append $(cross-rpcgen-objs).
14818         ($(cross-rpcgen-objs)): New rule.
14819         ($(objpfx)cross-rpcgen): Likewise.
14820         (rpcgen-cmd): Define to use $(built-program-file).  Expand
14821         comment.
14822         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
14823         ($(objpfx)x%.stmp): Likewise.
14824         * sunrpc/proto.h [IS_IN_build] (_): Define.
14825         [IS_IN_build] (_libc_intl_domainname): Likewise.
14826
14827 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14828
14829         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
14830         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
14831         and R_X86_64_TPOFF64.
14832
14833 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
14834
14835         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
14836         sysdeps/unix/sysv/syscalls.list.
14837         (stime): Likewise.
14838         (utime): Likewise.
14839         * sysdeps/unix/sysv/syscalls.list: Remove file.
14840
14841 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14842
14843         [BZ #3440]
14844         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
14845         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
14846         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
14847         (__LC_IDENTIFICATION): Make these macros useful in #if
14848         expressions, as required by C99.
14849
14850 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
14851
14852         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
14853         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
14854         after this.
14855
14856 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14857
14858         * stdlib/longlong.h: Updated from GCC.
14859
14860 2012-05-09  Andreas Jaeger  <aj@suse.de>
14861
14862         * nscd/nscd.c (run_modes): Make named enum, reorder so that
14863         default is first entry.
14864         (run_mode): Set type.
14865         (main): Remove informal message about syslog.
14866         (options): Fix typo.
14867
14868         [BZ #14053]
14869         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
14870         to asm.
14871         (lrint): Likewise.
14872         (llrintf): Likewise.
14873         (llrint): Likewise.
14874         (rint): Likewise.
14875         (rintf): Likewise.
14876         (nearbyint): Likewise.
14877         (nearbyintf): Likewise.
14878
14879 2012-05-09  Andreas Jaeger  <aj@suse.de>
14880             Pedro Alves  <palves@redhat.com>
14881
14882         * nscd/nscd.c (run_mode): Use enum.
14883         (main): Cleanup coding style issue.
14884
14885 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
14886             Andreas Jaeger  <aj@suse.de>
14887
14888         * nscd/nscd.c (go_background): Replaced with...
14889         (run_mode): ... this.
14890         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
14891         (options): Add -F --foreground.
14892         (main): Implement it.
14893         (parse_opt): Parse it.
14894
14895 2012-05-09  Andreas Jaeger  <aj@suse.de>
14896
14897         [BZ #14083]
14898         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
14899         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
14900         -Wconversion warning.
14901         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
14902         Likewise.
14903
14904 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
14905
14906         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
14907         == 0.
14908         (LC_ALL): Use macro-int-constant.
14909         (LC_COLLATE): Likewise.
14910         (LC_CTYPE): Likewise.
14911         (LC_MESSAGES): Likewise.
14912         (LC_MONETARY): Likewise.
14913         (LC_NUMERIC): Likewise.
14914         (LC_TIME): Likewise.
14915         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
14916         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
14917         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14918         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
14919         Specify type.
14920         [C99-based standards] (float_t): Expect type.
14921         [C99-based standards] (double_t): Expect type.
14922         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
14923         type.
14924         [C99-based standards] (HUGE_VALL): Likewise.
14925         [C99-based standards] (INFINITY): Likewise.
14926         [C99-based standards] (NAN): Likewise.
14927         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
14928         [C99-based standards] (FP_NAN): Likewise.
14929         [C99-based standards] (FP_NORMAL): Likewise.
14930         [C99-based standards] (FP_SUBNORMAL): Likewise.
14931         [C99-based standards] (FP_ZERO): Likewise.
14932         [C99-based standards] (FP_FAST_FMA): Use
14933         optional-macro-int-constant.  Specify type.  Require == 1.
14934         [C99-based standards] (FP_FAST_FMAF): Likewise.
14935         [C99-based standards] (FP_FAST_FMAL): Likewise.
14936         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
14937         [C99-based standards] (FP_ILOGBNAN): Likewise.
14938         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
14939         Specify type.
14940         [C99-based standards] (MATH_ERREXCEPT): Likewise.
14941         [C99-based standards] (math_errhandling): Specify type.
14942         [ISO99 || ISO11] (signgam): Do not allow.
14943         [non-C99-based standards] (copysignf): Do not allow.
14944         [non-C99-based standards] (exp2f): Likewise.
14945         [non-C99-based standards] (log2f): Likewise.
14946         [non-C99-based standards] (modff): Allow.
14947         [non-C99-based standards] (erff): Do not allow.
14948         [non-C99-based standards] (erfcf): Likewise.
14949         [non-C99-based standards] (gammaf): Likewise.
14950         [non-C99-based standards] (hypotf): Likewise.
14951         [non-C99-based standards] (j0f): Likewise.
14952         [non-C99-based standards] (j1f): Likewise.
14953         [non-C99-based standards] (jnf): Likewise.
14954         [non-C99-based standards] (lgammaf): Likewise.
14955         [non-C99-based standards] (tgammaf): Likewise.
14956         [non-C99-based standards] (y0f): Likewise.
14957         [non-C99-based standards] (y1f): Likewise.
14958         [non-C99-based standards] (ynf): Likewise.
14959         [non-C99-based standards] (isnanf): Likewise.
14960         [non-C99-based standards] (acoshf): Likewise.
14961         [non-C99-based standards] (asinhf): Likewise.
14962         [non-C99-based standards] (atanhf): Likewise.
14963         [non-C99-based standards] (cbrtf): Likewise.
14964         [non-C99-based standards] (expm1f): Likewise.
14965         [non-C99-based standards] (ilogbf): Likewise.
14966         [non-C99-based standards] (log1pf): Likewise.
14967         [non-C99-based standards] (logbf): Likewise.
14968         [non-C99-based standards] (nextafterf): Likewise.
14969         [non-C99-based standards] (remainderf): Likewise.
14970         [non-C99-based standards] (rintf): Likewise.
14971         [non-C99-based standards] (scalbf): Likewise.
14972         [non-C99-based standards] (copysignl): Likewise.
14973         [non-C99-based standards] (exp2l): Likewise.
14974         [non-C99-based standards] (log2l): Likewise.
14975         [non-C99-based standards] (modfl): Allow.
14976         [non-C99-based standards] (erfl): Do not allow.
14977         [non-C99-based standards] (erfcl): Likewise.
14978         [non-C99-based standards] (gammal): Likewise.
14979         [non-C99-based standards] (hypotl): Likewise.
14980         [non-C99-based standards] (j0l): Likewise.
14981         [non-C99-based standards] (j1l): Likewise.
14982         [non-C99-based standards] (jnl): Likewise.
14983         [non-C99-based standards] (lgammal): Likewise.
14984         [non-C99-based standards] (tgammal): Likewise.
14985         [non-C99-based standards] (y0l): Likewise.
14986         [non-C99-based standards] (y1l): Likewise.
14987         [non-C99-based standards] (ynl): Likewise.
14988         [non-C99-based standards] (isnanl): Likewise.
14989         [non-C99-based standards] (acoshl): Likewise.
14990         [non-C99-based standards] (asinhl): Likewise.
14991         [non-C99-based standards] (atanhl): Likewise.
14992         [non-C99-based standards] (cbrtl): Likewise.
14993         [non-C99-based standards] (expm1l): Likewise.
14994         [non-C99-based standards] (ilogbl): Likewise.
14995         [non-C99-based standards] (log1pl): Likewise.
14996         [non-C99-based standards] (logbl): Likewise.
14997         [non-C99-based standards] (nextafterl): Likewise.
14998         [non-C99-based standards] (remainderl): Likewise.
14999         [non-C99-based standards] (rintl): Likewise.
15000         [non-C99-based standards] (scalbl): Likewise.
15001         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15002         [non-C99-based standards] (FP_*): Do not allow.
15003         [C99-based standards] (FP_*): Change to
15004         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
15005         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15006         allow.
15007         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
15008         (SIG_ERR): Likewise.
15009         [X/Open-based standards] (SIG_HOLD): Likewise.
15010         (SIG_IGN): Likewise.
15011         (SIGABRT): Use macro-int-constant.  Specify type.  Require
15012         positive value.
15013         (SIGFPE): Likewise.
15014         (SIGILL): Likewise.
15015         (SIGINT): Likewise.
15016         (SIGSEGV): Likewise.
15017         (SIGTER): Likewise.
15018         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
15019         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
15020         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
15021         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
15022         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
15023         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
15024         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
15025         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
15026         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
15027         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
15028         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
15029         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
15030         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
15031         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
15032         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
15033         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
15034         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
15035         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
15036         [X/Open-based standards] (SIGTRAP): Likewise.
15037         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
15038         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
15039         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
15040         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
15041         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15042         allow.
15043
15044 2012-05-08  Ian Wienand  <ianw@vmware.com>
15045
15046         [BZ #14080]
15047         * time/tzset.c (__tzset_parse_tz): Update default rules for
15048         daylight time changes in the Energy Policy Act of 2005.
15049
15050 2012-05-09  Andreas Jaeger  <aj@suse.de>
15051
15052         [BZ #13983]
15053         * elf/ldconfig.c (parse_conf): Change string to make clear that
15054         ldconfig only issued a warning if ld.so.conf does not exist.
15055
15056 2012-05-08  David S. Miller  <davem@davemloft.net>
15057
15058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
15059         movxtod instead of popping the value on the stack.
15060
15061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15062
15063 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
15064
15065         * config.h.in: Add HAVE_ARM_PCS_VFP.
15066
15067 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
15068
15069         [BZ #13979]
15070         * include/features.h: Warn if user requests __FORTIFY_SOURCE
15071         checking but the checks are disabled for any reason.
15072
15073 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
15074
15075         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
15076         and ELF64_R_TYPE with ELFW(R_TYPE).
15077
15078 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
15079
15080         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
15081         (ulimit): Likewise.
15082
15083         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
15084         (settimeofday): Likewise.
15085
15086 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
15087
15088         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
15089         a struct th_u2 inside the union, and move tu_block/tu_code into
15090         a new th_u3 union of tu_block/tu_code inside of that.  Move
15091         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
15092         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
15093         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
15094         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
15095         (th_stuff): Change to th_u1.tu_stuff.
15096         (th_data): Define.
15097         (th_msg): Change to th_u1.th_u2.tu_data.
15098
15099 2012-05-07  David S. Miller  <davem@davemloft.net>
15100
15101         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15102
15103         [BZ #14074]
15104         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
15105         (SETUP_PIC_REG): Use it.
15106         (SETUP_PIC_REG_LEAF): Use it.
15107
15108 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
15109
15110         [BZ #13885]
15111         [BZ #13923]
15112         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15113         USE_AS_EXPM1L.
15114         (EXPL_FINITE): Likewise.
15115         (FLDLOG): Likewise.
15116         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15117         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15118         e_expl.S.
15119         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15120         USE_AS_EXPM1L.
15121         (EXPL_FINITE): Likewise.
15122         (FLDLOG): Likewise.
15123         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
15124         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
15125         e_expl.S.
15126         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
15127         test of -max_value argument for long double.
15128         * sysdeps/i386/fpu/libm-test-ulps: Update.
15129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15130
15131 2012-05-06  David S. Miller  <davem@davemloft.net>
15132
15133         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
15134         quad soft-float symbols whose references which are compiler
15135         generated.
15136         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15137
15138 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
15139
15140         [BZ #13884]
15141         [BZ #13914]
15142         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15143         USE_AS_EXP10L.
15144         (EXPL_FINITE): Likewise.
15145         (FLDLOG): Likewise.
15146         (c0): Likewise.
15147         (c1): Likewise.
15148         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15149         Adjust comments for base varying.
15150         (__expl_finite): Change alias to EXPL_FINITE.
15151         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
15152         e_expl.S.
15153         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
15154         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
15155         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15156         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
15157         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
15158         USE_AS_EXP10L.
15159         (EXPL_FINITE): Likewise.
15160         (FLDLOG): Likewise.
15161         (c0): Likewise.
15162         (c1): Likewise.
15163         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
15164         Adjust comments for base varying.
15165         (__expl_finite): Change alias to EXPL_FINITE.
15166         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
15167         tests for bugs.
15168         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15169
15170         [BZ #14064]
15171         * math/libm-test.inc (check_float_internal): Correct ulp
15172         calculation for subnormal expected results.
15173
15174 2012-05-06  Andreas Jaeger  <aj@suse.de>
15175
15176         * Makeconfig (+math-flags): New, set to -frounding-math.
15177         (+cflags): Add +math-flags so that all of glibc gets compiled with
15178         it.
15179
15180         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
15181
15182 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
15183
15184         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
15185         Disable one test.
15186
15187         [BZ #13787]
15188         [BZ #13922]
15189         [BZ #14036]
15190         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
15191         (__ieee754_expl): Allow for and saturate large arguments.
15192         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
15193         (u_threshold): Likewise.
15194         (__exp): Call __ieee754_exp before checking for overflow and
15195         underflow.
15196         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
15197         (u_threshold): Likewise.
15198         (__expf): Call __ieee754_expf before checking for overflow and
15199         underflow.
15200         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
15201         (u_threshold): Likewise.
15202         (__expl): Call __ieee754_expl before checking for overflow and
15203         underflow.
15204         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
15205         (__ieee754_expl): Allow for and saturate large arguments.
15206         * math/libm-test.inc (exp_test): Add another test.  Do not allow
15207         missing overflow exception on overflow.
15208         (expm1_test): Do not allow missing overflow exception on overflow.
15209
15210         * sysdeps/i386/fpu/e_expl.c: Move to ...
15211         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
15212         rather than using inline asm.
15213         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
15214         * sysdeps/x86_64/fpu/e_expl.S: Copy from
15215         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
15216
15217         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
15218         (nice): Likewise.
15219         (poll): Likewise.
15220         (signal): Likewise.
15221         (time): Likewise.
15222         (times): Likewise.
15223
15224 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15225
15226         * sysdeps/unix/syscalls.list (adjtime): Add entry from
15227         sysdeps/unix/common/syscalls.list.
15228         (fchmod): Likewise.
15229         (fchown): Likewise.
15230         (ftruncate): Likewise.
15231         (getrusage): Likewise.
15232         (gettimeofday): Likewise.
15233         (setpgid): Likewise.
15234         (setregid): Likewise.
15235         (setreuid): Likewise.
15236         (sigaction): Likewise.
15237         (truncate): Likewise.
15238         (vhangup): Likewise.
15239         * sysdeps/unix/common/syscalls.list: Remove file.
15240         * sysdeps/unix/bsd/Implies: Don't include unix/common.
15241         * sysdeps/unix/sysv/linux/Implies: Likewise.
15242
15243 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15244
15245         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
15246         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
15247         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
15248         Moved to ...
15249         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
15250         Here.
15251         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
15252         to ...
15253         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
15254         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
15255         to ...
15256         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
15257         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
15258         to ...
15259         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
15260         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
15261         to ...
15262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
15263         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
15264         to ...
15265         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
15266         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
15267         to ...
15268         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
15269         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
15270         to ...
15271         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15272         Here.
15273         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
15274         to ...
15275         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
15276         Here.
15277         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
15278         to ...
15279         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
15280         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
15281         Moved to ...
15282         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
15283         Here.
15284         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
15285         to ...
15286         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
15287
15288 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15289
15290         * sysdeps/unix/common/bits/dirent.h: Remove file.
15291         * sysdeps/unix/common/bits/fcntl.h: Likewise.
15292
15293         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
15294         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
15295         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
15296         * sysdeps/unix/bsd/isatty.c: Likewise.
15297         * sysdeps/unix/bsd/tcdrain.c: Likewise.
15298         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
15299         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
15300
15301 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15302
15303         [BZ #13563]
15304         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
15305         long double comparison inaccuracies.
15306         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15307         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15308
15309 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
15310
15311         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
15312         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
15313
15314 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
15315
15316         [BZ #14049]
15317         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
15318         nonzero digits before rounding a hex value.
15319         * stdlib/tst-strtod.c (tests): Add another test.
15320
15321 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15322
15323         * sysdeps/s390/fpu/libm-test-ulps: Update.
15324
15325 2012-05-03  Andreas Jaeger  <aj@suse.de>
15326
15327         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
15328         does not get optimized out.
15329         (malloc_opt_barrier): New.
15330
15331 2012-05-03  Andreas Jaeger  <aj@suse.de>
15332             Roland McGrath  <roland@hack.frob.com>
15333
15334         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
15335         intermediate file deletion.
15336         (generated): Add .symlist files.
15337
15338 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
15339
15340         [BZ #13775]
15341         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
15342         Redirect under this condition.
15343         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15344         [__USE_GNU] (__dprintf_chk): Not under this condition.
15345         [__USE_GNU] (__vdprintf_chk): Likewise.
15346         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
15347         under this condition.
15348         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
15349         [__USE_XOPEN2K8] (dprintf): Define under this condition.
15350         [__USE_XOPEN2K8] (vdprintf): Likewise.
15351         [__USE_GNU] (__dprintf_chk): Not under this condition.
15352         [__USE_GNU] (__vdprintf_chk): Likewise.
15353         [__USE_GNU] (dprintf): Likewise.
15354         [__USE_GNU] (vdprintf): Likewise.
15355
15356 2012-05-03  Roland McGrath  <roland@hack.frob.com>
15357
15358         * elf/Makefile (common-generated): Set this instead of generated for
15359         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
15360         $(all-built-dso)-derived lists.
15361
15362 2012-05-03  Andreas Jaeger  <aj@suse.de>
15363
15364         * sysdeps/i386/fpu/libm-test-ulps: Update.
15365
15366         * FAQ: Removed.
15367         * FAQ.in: Likewise.
15368         * scripts/gen-FAQ.pl: Likewise.
15369         * manual/install.texi (Installation): Point to online location of
15370         FAQ.
15371         * Makefile (files-for-dist): Remove FAQ.
15372         (FAQ): Remove.
15373
15374 2012-05-02  Allan McRae  <allan@archlinux.org>
15375
15376         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
15377         (LDFLAGS-reldepmod5.so): Likewise.
15378         (LDFLAGS-reldep6mod1.so): Likewise.
15379         (LDFLAGS-reldep6mod4.so): Likewise.
15380         (LDFLAGS-reldep8mod3.so): Likewise.
15381         (LDFLAGS-unload4mod1.so): Likewise.
15382         (LDFLAGS-unload4mod2.so): Likewise.
15383         (LDFLAGS-tst-initorder): Likewise.
15384         (LDFLAGS-tst-initordera2.so): Likewise.
15385         (LDFLAGS-tst-initordera3.so): Likewise.
15386         (LDFLAGS-tst-initordera4.so): Likewise.
15387         (LDFLAGS-tst-initorderb2.so): Likewise.
15388         (LDFLAGS-noload): Likewise.
15389         (LDFLAGS-next): Likewise.
15390         (LDFLAGS-order2mod1.so): Likewise.
15391         (LDFLAGS-order2mod2.so): Likewise.
15392         (LDFLAGS-tst-initorder2): Likewise.
15393         (LDFLAGS-tst-initorder2a.so): Likewise.
15394         (LDFLAGS-tst-initorder2b.so): Likewise.
15395         (LDFLAGS-tst-initorder2c.so): Likewise.
15396         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
15397
15398 2012-05-02  David S. Miller  <davem@davemloft.net>
15399
15400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15401
15402 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
15403
15404         [BZ #14055]
15405         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
15406
15407 2012-05-02  Andreas Jaeger  <aj@suse.de>
15408
15409         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
15410         since we manipulate rounding mode.
15411         (CPPFLAGS-test-idouble.c): Likewise.
15412         (CPPFLAGS-test-ifloat.c): Likewise.
15413         (CFLAGS-test-ldouble.c): Likewise.
15414         (CFLAGS-test-double.c): Likewise.
15415         (CFLAGS-test-float.c): Likewise.
15416         (CFLAGS-test-misc.c): Likewise.
15417         (CFLAGS-test-test-fenv.c): Likewise.
15418
15419 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15420
15421         [BZ #2550]
15422         [BZ #2570]
15423         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
15424         comparisons to determine direction to adjust input.
15425
15426 2012-05-01  Roland McGrath  <roland@hack.frob.com>
15427
15428         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
15429         output to the target.
15430
15431         * scripts/localplt.awk: New file.
15432         * elf/Makefile ($(objpfx)check-localplt): Target removed.
15433         (check-localplt-CFLAGS): Variable removed.
15434         ($(all-built-dso:=.jmprel)): New static pattern rule.
15435         (generated): Add those targets.
15436         (localplt-built-dso): New variable.
15437         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
15438
15439         * elf/check-localplt.c: File removed.
15440
15441         * scripts/check-execstack.awk: New file.
15442         * elf/Makefile ($(objpfx)check-execstack): Target removed.
15443         (check-execstack-CFLAGS): Variable removed.
15444         ($(objpfx)check-execstack.h): Target removed.
15445         ($(objpfx)execstack-default): New target.
15446         (generated): Add that instead of check-execstack.h.
15447         ($(all-built-dso:=.phdr)): New static pattern rule.
15448         (generated): Add those targets.
15449         * elf/check-execstack.c: File removed.
15450
15451         * scripts/check-textrel.awk: New file.
15452         * elf/Makefile ($(objpfx)check-textrel): Target removed.
15453         (check-textrel-CFLAGS): Variable removed.
15454         (all-built-dso): Use := to define.o
15455         ($(all-built-dso:=.dyn)): New static pattern rule.
15456         (generated): Add those targets.
15457         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
15458         * config.make.in (READELF): New substituted variable.
15459         * elf/check-textrel.c: File removed.
15460
15461 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
15462
15463         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
15464         allow.
15465         * conform/data/ctype.h-data [C99-based standards] (isblank):
15466         Expect function.
15467         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
15468         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
15469         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15470         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
15471         Specify type.  Require positive value.
15472         (EILSEQ): Likewise.
15473         (ERANGE): Likewise.
15474         [ISO || POSIX] (EILSEQ): Do not expect.
15475         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
15476         Specify type.  Require positive value.
15477         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
15478         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
15479         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
15480         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
15481         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
15482         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
15483         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
15484         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
15485         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
15486         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
15487         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
15488         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
15489         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
15490         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
15491         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
15492         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
15493         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
15494         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
15495         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
15496         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
15497         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
15498         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
15499         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
15500         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
15501         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
15502         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
15503         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
15504         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
15505         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
15506         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
15507         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
15508         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
15509         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
15510         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
15511         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
15512         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
15513         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
15514         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
15515         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
15516         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
15517         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
15518         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
15519         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
15520         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
15521         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
15522         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
15523         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
15524         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
15525         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
15526         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
15527         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
15528         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
15529         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
15530         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
15531         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
15532         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
15533         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
15534         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
15535         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
15536         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
15537         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
15538         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
15539         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
15540         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
15541         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
15542         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
15543         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
15544         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
15545         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
15546         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
15547         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
15548         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
15549         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
15550         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
15551         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
15552         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
15553         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
15554         Require >= 2.
15555         (FLT_ROUNDS): Expect as macro, not constant.
15556         (FLT_MANT_DIG): Use macro-int-constant.
15557         (DBL_MANT_DIG): Likewise.
15558         (LDBL_MANT_DIG): Likewise.
15559         (FLT_DIG): Likewise.
15560         (DBL_DIG): Likewise.
15561         (LDBL_DIG): Likewise.
15562         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
15563         (DBL_MIN_EXP): Likewise.
15564         (LDBL_MIN_EXP): Likewise.
15565         (FLT_MAX_EXP): Use macro-int-constant.
15566         (DBL_MAX_EXP): Likewise.
15567         (LDBL_MAX_EXP): Likewise.
15568         (FLT_MAX_10_EXP): Likewise.
15569         (DBL_MAX_10_EXP): Likewise.
15570         (LDBL_MAX_10_EXP): Likewise.
15571         (FLT_MAX): Use macro-constant.
15572         (DBL_MAX): Likewise.
15573         (LDBL_MAX): Likewise.
15574         (FLT_EPSILON): Use macro-constant.  Give upper bound.
15575         (DBL_EPSILON): Likewise.
15576         (LDBL_EPSILON): Likewise.
15577         (FLT_MIN): Likewise.
15578         (DBL_MIN): Likewise.
15579         (LDBL_MIN): Likewise.
15580         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
15581         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
15582         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
15583         [ISO11] (FLT_HAS_SUBNORM): Likewise.
15584         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
15585         [ISO11] (DBL_DECIMAL_DIG): Likewise.
15586         [ISO11] (FLT_DECIMAL_DIG): Likewise.
15587         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
15588         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
15589         [ISO11] (FLT_TRUE_MIN): Likewise.
15590         [ISO11] (LDBL_TRUE_MIN): Likewise.
15591         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15592         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
15593         (SCHAR_MIN): Use macro-int-constant.  Specify type.
15594         (SCHAR_MAX): Likewise.
15595         (UCHAR_MAX): Likewise.
15596         (CHAR_MIN): Likewise.
15597         (CHAR_MAX): Likewise.
15598         (MB_LEN_MAX): Use macro-int-constant.
15599         (SHRT_MIN): Use macro-int-constant.  Specify type.
15600         (SHRT_MAX): Likewise.
15601         (USHRT_MAX): Likewise.
15602         (INT_MAX): Likewise.
15603         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
15604         bound negative.
15605         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15606         bound with "U".
15607         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15608         bound with "L".
15609         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
15610         bound negative.  Suffix upper bound with "L".
15611         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
15612         bound with "UL".
15613         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
15614         Specify type.
15615         [C99-based standards] (LLONG_MAX): Likewise.
15616         [C99-based standards] (ULLONG_MAX): Likewise.
15617         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
15618         == 0.
15619         [ISO11] (max_align_t): Require type.
15620         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15621
15622         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
15623         from $CFLAGS, without defining away __attribute__ calls.
15624         (checknamespace): Use $CFLAGS_namespace.
15625
15626         * conform/conformtest.pl (@keywords): Only include C99 keywords
15627         for standards based on C99 or C11.
15628
15629         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
15630         Disable tests.
15631         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
15632         UNIX98]: Likewise.
15633
15634         * conform/conformtest.pl: Handle "macro-int-constant" and test for
15635         usability of symbols in #if.
15636
15637         * conform/conformtest.pl: If macro or constant types start
15638         "promoted:", expect the symbol to be of the following type
15639         promoted by the integer promotions.
15640
15641         * conform/conformtest.pl: Parse all "constant" and "macro" lines
15642         in one place.  Also handle "macro-constant".
15643
15644         * conform/conformtest.pl: Only accept expected macro values with
15645         "==".  Parse all "macro" lines in one place.
15646         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
15647
15648         * conform/conformtest.pl: Handle braced types on "constant" lines
15649         instead of handling "typed-constant".
15650         * conform/data/signal.h-data: Use "constant" instead of
15651         "typed-constant".
15652
15653         * conform/conformtest.pl: Handle "optional-" at start of lines in
15654         one place rather than duplicating several cases.  Handle each
15655         format of "macro" line with initial "optional-".
15656
15657         * conform/conformtest.pl: Only accept expected constant or
15658         optional-constant values with "==".  Parse all "constant" lines in
15659         one place.  Parse all "optional-constant" lines in one place.
15660         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
15661         * conform/data/fmtmsg.h-data: Likewise.
15662         * conform/data/netinet/in.h-data: Likewise.
15663         * conform/data/tar.h-data: Likewise.
15664         * conform/data/limits.h-data: Use "==" form on "constant" and
15665         "optional-constant" lines.
15666
15667         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
15668         Use -std=c99 for XOPEN2K.
15669         (@knownproblems): Remove.
15670         (newtoken): Don't check %isknown.
15671
15672         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
15673         Do not expect macro.
15674         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
15675         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
15676         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
15677         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
15678         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
15679         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
15680         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
15681         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
15682         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
15683         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
15684         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
15685         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
15686         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
15687         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
15688         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
15689         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
15690         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
15691         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
15692         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
15693         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
15694         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
15695         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
15696         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
15697         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
15698         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
15699         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
15700         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
15701         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
15702         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
15703         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
15704         [XPG3] (acosh): Likewise.
15705         [XPG3] (asinh): Likewise.
15706         [XPG3] (atanh): Likewise.
15707         [XPG3] (cbrt): Likewise.
15708         [XPG3] (expm1): Likewise.
15709         [XPG3] (ilogb): Likewise.
15710         [XPG3] (log1p): Likewise.
15711         [XPG3] (logb): Likewise.
15712         [XPG3] (nextafter): Likewise.
15713         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
15714         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
15715         [XPG3] (remainder): Likewise.
15716         [XPG3] (rint): Likewise.
15717         [XPG3 || XPG4 || UNIX98] (round): Likewise.
15718         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
15719         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
15720         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
15721         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
15722         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
15723         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
15724         [UNIX98 || XOPEN2K] (scalb): Expect.
15725         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
15726         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
15727         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
15728         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
15729         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
15730         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
15731         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
15732         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
15733         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
15734         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
15735         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
15736         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
15737         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
15738         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
15739         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
15740         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
15741         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
15742         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
15743         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
15744         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
15745         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
15746         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
15747         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
15748         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
15749         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
15750         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
15751         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
15752         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
15753         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
15754         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
15755         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
15756         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
15757         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
15758         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
15759         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
15760         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
15761         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
15762         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
15763         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
15764         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
15765         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
15766         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
15767         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
15768         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
15769         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
15770         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
15771         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
15772         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
15773         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
15774         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
15775         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
15776         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
15777         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
15778         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
15779         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
15780         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
15781         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
15782         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
15783         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
15784         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
15785         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
15786         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
15787         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
15788         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
15789         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
15790         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
15791         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
15792         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
15793         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
15794         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
15795         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
15796         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
15797         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
15798         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
15799         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
15800         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
15801         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
15802         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
15803         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
15804         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
15805         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
15806         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
15807         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
15808         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
15809         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
15810         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
15811         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
15812         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
15813         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
15814         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
15815         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
15816         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
15817         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
15818         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
15819         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
15820         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
15821         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
15822         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
15823         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
15824         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
15825         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
15826         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
15827         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
15828         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
15829         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
15830         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
15831         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
15832         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
15833         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
15834         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
15835         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
15836         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
15837         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
15838         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
15839         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
15840         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
15841         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
15842         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
15843         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
15844         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
15845         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
15846         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
15847         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
15848         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
15849         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
15850         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
15851         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
15852         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
15853         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
15854         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
15855         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
15856         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
15857         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
15858         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
15859         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
15860         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
15861         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
15862
15863         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
15864         _XOPEN_SOURCE_EXTENDED for XPG4.
15865
15866         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
15867
15868         * Makeconfig (localtime): Remove variable.
15869         (inst_localtime-file): Likewise.
15870
15871 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15872
15873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
15874         Update.
15875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15876         Update.
15877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
15878         Update.
15879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15880         Update.
15881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
15882         Update.
15883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
15884         Update.
15885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
15886         Update.
15887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
15888         Update.
15889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15890         Update.
15891
15892 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
15893
15894         [BZ #2550]
15895         [BZ #2570]
15896         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
15897         comparisons to determine direction to adjust input.
15898         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
15899         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
15900         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
15901         Likewise.
15902         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
15903         Likewise.
15904         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
15905         Likewise.
15906         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
15907         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
15908         Likewise.
15909         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
15910         Likewise.
15911         * math/libm-test.inc (nexttoward_test): Add more tests.
15912
15913 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15914
15915         [BZ #14040]
15916         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
15917         in version GLIBC_2.1, not GLIBC_2.0.
15918         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
15919         Likewise.
15920
15921 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
15922
15923         [BZ #13942]
15924         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
15925         (1 - x) * (1 + x).
15926         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
15927         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
15928         * math/libm-test.inc (acos_test): Add more tests.
15929         (asin_test): Likewise.
15930         * sysdeps/i386/fpu/libm-test-ulps: Update.
15931         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15932
15933         [BZ #14034]
15934         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
15935         of square root.
15936         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
15937         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
15938         * math/libm-test.inc (acos_test_tonearest): New function.
15939         (acos_test_towardzero): Likewise.
15940         (acos_test_downward): Likewise.
15941         (acos_test_upward): Likewise.
15942         (asin_test_tonearest): Likewise.
15943         (asin_test_towardzero): Likewise.
15944         (asin_test_downward): Likewise.
15945         (asin_test_upward): Likewise.
15946         (main): Call the new functions.
15947         * sysdeps/i386/fpu/libm-test-ulps: Update.
15948         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15949
15950         [BZ #13884]
15951         [BZ #13924]
15952         * math/e_exp10.c: Include <float.h>.
15953         (__ieee754_exp10): Handle underflow here rather than multiplying
15954         large negative argument by M_LN10.
15955         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
15956         of __ieee754_expf.
15957         * math/e_exp10l.c: Include <float.h>.
15958         (__ieee754_exp10l): Handle underflow here rather than multiplying
15959         large negative argument by M_LN10l.
15960         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
15961         spurious overflow exception on underflow.
15962
15963 2012-04-29  Marek Polacek  <polacek@redhat.com>
15964
15965         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
15966         (__fortify_function): New macro.
15967         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
15968         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
15969         __extern_always_inline.
15970         * libio/bits/stdio2.h: Likewise.
15971         * libio/bits/stdio.h: Likewise.
15972         * string/string.h: Likewise.
15973         * string/bits/string3.h: Likewise.
15974         * include/stdio.h: Likewise.
15975         * stdlib/bits/stdlib.h: Likewise.
15976         * stdlib/stdlib.h: Likewise.
15977         * rt/bits/mqueue2.h: Likewise.
15978         * rt/mqueue.h: Likewise.
15979         * posix/bits/unistd.h: Likewise.
15980         * posix/unistd.h: Likewise.
15981         * io/bits/poll2.h: Likewise.
15982         * io/bits/fcntl2.h: Likewise.
15983         * io/fcntl.h: Likewise.
15984         * io/sys/poll.h: Likewise.
15985         * misc/bits/syslog.h: Likewise.
15986         * misc/bits/syslog-ldbl.h: Likewise.
15987         * misc/sys/syslog.h: Likewise.
15988         * socket/bits/socket2.h: Likewise.
15989         * socket/sys/socket.h: Likewise.
15990         * debug/tst-chk1.c: Likewise.
15991         * wcsmbs/bits/wchar2.h: Likewise.
15992         * wcsmbs/bits/wchar-ldbl.h: Likewise.
15993         * wcsmbs/wchar.h: Likewise.
15994
15995 2012-04-29  Andreas Jaeger  <aj@suse.de>
15996
15997         * Makerules (tests): Remove enable-check-abi protection.
15998         (check-abi-warn): Remove.
15999         (check-abi-%): Remove check-abi-warn usage.
16000
16001         * configure.in: Remove check-abi configure option.
16002         * configure: Regenerated.
16003         * config.make.in (enable-check-abi): Remove.
16004
16005 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
16006
16007         [BZ #14033]
16008         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
16009         double functions to double *_finite functions.
16010
16011         [BZ #13941]
16012         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
16013         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
16014         LDBL_MIN_EXP.
16015         * stdio-common/Makefile (tests): Add tst-sprintf3.
16016         * stdio-common/tst-sprintf3.c: New file.
16017
16018         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
16019         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
16020
16021 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16022
16023         * conform/conformtest.pl: Remove duplicate typed-constant
16024         handling.
16025
16026 2012-04-28  David S. Miller  <davem@davemloft.net>
16027
16028         * Makerules (%.abilist): Add vpath on sysdep_dirs.
16029         (check-abi-%): Remove AWK script prerequisite and explicit
16030         abilist directory.
16031         (check-abi): Rewrite to just diff the symlist with the abilist.
16032         (config-tls, config-abi-config): Delete, no longer used.
16033         (update-abi-%): Remove AWK script and explicit abilist directory.
16034         (update-abi): Rewrite to simply compare and conditionally copy the
16035         symlist and the sysdep abilist file.  Remove update-abi-config
16036         checks.
16037         * abilist/ld.abilist: Remove.
16038         * abilist/libBrokenLocale.abilist: Remove.
16039         * abilist/libanl.abilist: Remove.
16040         * abilist/libcrypt.abilist: Remove.
16041         * abilist/libdl.abilist: Remove.
16042         * abilist/librt.abilist: Remove.
16043         * abilist/libthread_db.abilist: Remove.
16044         * abilist/libutil.abilist: Remove.
16045         * scripts/extract-abilist.awk: Remove.
16046         * scripts/merge-abilist.awk: Remove.
16047         * sysdeps/generic/libcidn.abilist: New file.
16048         * sysdeps/generic/libnss_compat.abilist: New file.
16049         * sysdeps/generic/libnss_db.abilist: New file.
16050         * sysdeps/generic/libnss_dns.abilist: New file.
16051         * sysdeps/generic/libnss_files.abilist: New file.
16052         * sysdeps/generic/libnss_hesiod.abilist: New file.
16053         * sysdeps/generic/libnss_nis.abilist: New file.
16054         * sysdeps/generic/libnss_nisplus.abilist: New file.
16055         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
16056         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
16057         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
16058         file.
16059         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
16060         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
16061         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
16062         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
16063         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
16064         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
16065         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
16066         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
16067         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
16068         file.
16069         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
16070         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
16071         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
16072         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
16073         file.
16074         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
16075         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
16076         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
16077         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
16078         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
16079         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
16080         file.
16081         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
16082         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
16083         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
16084         file.
16085         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
16086         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
16087         New file.
16088         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
16089         New file.
16090         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
16091         New file.
16092         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
16093         New file.
16094         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
16095         New file.
16096         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
16097         New file.
16098         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
16099         New file.
16100         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
16101         New file.
16102         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
16103         New file.
16104         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
16105         New file.
16106         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
16107         New file.
16108         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
16109         New file.
16110         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
16111         New file.
16112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
16113         file.
16114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
16115         New file.
16116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
16117         New file.
16118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
16119         file.
16120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
16121         New file.
16122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
16123         New file.
16124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
16125         file.
16126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
16127         New file.
16128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16129         New file.
16130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
16131         New file.
16132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
16133         New file.
16134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
16135         New file.
16136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
16137         New file.
16138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
16139         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
16140         file.
16141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
16142         New file.
16143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
16144         file.
16145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
16146         file.
16147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
16148         file.
16149         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
16150         file.
16151         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
16152         file.
16153         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16154         New file.
16155         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
16156         file.
16157         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
16158         file.
16159         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
16160         New file.
16161         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
16162         file.
16163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
16164         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
16165         file.
16166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
16167         New file.
16168         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
16169         file.
16170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
16171         file.
16172         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
16173         file.
16174         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
16175         file.
16176         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
16177         file.
16178         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16179         New file.
16180         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
16181         file.
16182         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
16183         file.
16184         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
16185         New file.
16186         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
16187         file.
16188         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16189         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
16190         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
16191         file.
16192         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
16193         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
16194         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
16195         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
16196         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
16197         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
16198         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
16199         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
16200         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
16201         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
16202         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
16203         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
16204         file.
16205         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
16206         New file.
16207         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
16208         file.
16209         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
16210         file.
16211         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
16212         file.
16213         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
16214         file.
16215         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
16216         file.
16217         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16218         New file.
16219         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
16220         New file.
16221         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
16222         file.
16223         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
16224         New file.
16225         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
16226         file.
16227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
16228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
16229         file.
16230         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
16231         New file.
16232         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
16233         file.
16234         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
16235         file.
16236         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
16237         file.
16238         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
16239         file.
16240         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
16241         file.
16242         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16243         New file.
16244         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
16245         New file.
16246         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
16247         file.
16248         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
16249         New file.
16250         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
16251         file.
16252
16253 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
16254
16255         * conform/conformtest.pl: Fix typo in handling typed-constant from
16256         allow-header.
16257
16258 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16259
16260         * README: Cut down references to pre-2.6 Linux kernels and
16261         Linuxthreads.  Update lists of configurations in libc and ports
16262         and sort alphabetically.  Say "or newer" with Linux kernel version
16263         requirements.
16264
16265         * config.h.in [IS_IN_build]: Allow compiling without optimization.
16266
16267 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16268
16269         [BZ #887]
16270         * math/libm-test.inc (logb_test_downward): New test to expose
16271         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
16272         rounding mode.
16273
16274 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
16275
16276         [BZ #14027]
16277         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
16278         to be done.
16279         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
16280         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
16281
16282 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
16283
16284         * sysdeps/unix/i386/brk.S: Remove file.
16285         * sysdeps/unix/i386/dl-brk.S: Likewise.
16286         * sysdeps/unix/i386/pipe.S: Likewise.
16287         * sysdeps/unix/i386/sigreturn.S: Likewise.
16288         * sysdeps/unix/i386/syscall.S: Likewise.
16289         * sysdeps/unix/i386/vfork.S: Likewise.
16290         * sysdeps/unix/i386/wait.S: Likewise.
16291
16292         * sysdeps/unix/common/tcsendbrk.c: Move to ...
16293         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
16294
16295         * configure.in (arm*-none*): Do not allow without
16296         --enable-hacker-mode.
16297         (netbsd*): Remove case setting base_os.
16298         (386bsd*): Likewise.
16299         (freebsd*): Likewise.
16300         (bsdi*): Likewise.
16301         (osf*): Likewise.
16302         (sunos*): Likewise.
16303         (ultrix*): Likewise.
16304         (newsos*): Likewise.
16305         (dynix*): Likewise.
16306         (*bsd*): Likewise.
16307         (sysv*): Likewise.
16308         (isc*): Likewise.
16309         (esix*): Likewise.
16310         (sco*): Likewise.
16311         (minix*): Likewise.
16312         (irix4*): Likewise.
16313         (irix6*): Likewise.
16314         (solaris[2-9]*): Likewise.
16315         (none): Likewise.
16316         * configure: Regenerated.
16317
16318 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16319
16320         [BZ #11521]
16321         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
16322         overflow or cancellation in calculating denominator.
16323         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
16324         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
16325         down expression to avoid unexpected rounding in newer GCCs.
16326         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
16327
16328 2012-04-26  David S. Miller  <davem@davemloft.net>
16329
16330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
16331         long-double compat symbols.
16332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
16336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
16338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
16339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
16340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
16341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
16342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
16343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
16344         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
16345
16346 2012-04-25  David S. Miller  <davem@davemloft.net>
16347
16348         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
16349         HWCAP_* values only after the memory barriers have been defined.
16350         (atomic_full_barrier): Define.
16351         (atomic_read_barrier): Define.
16352         (atomic_write_barrier): Define.
16353
16354 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16355
16356         * shlib-versions: Add libgcc_s version information.
16357         * sysdeps/generic/libgcc_s.h: Remove.
16358         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
16359         libgcc_s.h.
16360         * sysdeps/gnu/unwind-resume.c: Likewise.
16361         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
16362
16363 2012-04-25  David S. Miller  <davem@davemloft.net>
16364
16365         * sysdeps/unix/sparc/brk.S: Delete.
16366         * sysdeps/unix/sparc/dl-brk.S: Delete.
16367         * sysdeps/unix/sparc/pipe.S: Delete.
16368         * sysdeps/unix/sparc/sysdep.S: Delete.
16369         * sysdeps/unix/sparc/sysdep.h: Delete.
16370         * sysdeps/unix/sparc/vfork.S: Delete.
16371         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
16372         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
16373         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
16374         ret_ERRVAL, r0, r1, MOVE): Define.
16375         (JUMPTARGET): Remove.
16376         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
16377         sysdeps/unix/sparc/sysdep.h
16378         (ENTRY, END): Remove.
16379         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16380
16381 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
16382
16383         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
16384         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
16385         -DIS_IN_build.
16386
16387         * timezone/README: Update upstream location and email address for
16388         tzcode and tzdata.
16389         * timezone/zdump.c: Update from tzcode 2012b.
16390         * timezone/zic.c: Likewise.
16391
16392         * configure.in (libc_cv_as_needed): Remove test.
16393         * configure: Regenerated.
16394         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
16395         conditional definition.
16396         [$(have-as-needed) != yes] (no-as-needed): Likewise.
16397         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
16398         * config.make.in (have-as-needed): Remove variable.
16399
16400 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
16401             Paul Pluzhnikov  <ppluzhnikov@google.com>
16402
16403         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
16404         strings correctly.
16405
16406 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
16407
16408         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
16409         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
16410         * sysdeps/sh/strlen.S: Likewise.
16411
16412 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16413
16414         * sysdeps/unix/fork.S: Remove file.
16415         * sysdeps/unix/i386/fork.S: Likewise.
16416         * sysdeps/unix/sparc/fork.S: Likewise.
16417
16418         * sysdeps/unix/system.c: Remove file.
16419         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
16420
16421         * sysdeps/unix/getegid.S: Remove file.
16422         * sysdeps/unix/geteuid.S: Likewise.
16423
16424 2012-04-24  Roland McGrath  <roland@hack.frob.com>
16425
16426         * scripts/check-localplt.awk: New file.
16427         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
16428         of diff.
16429         * scripts/data/localplt-generic.data: Add a comment.
16430
16431         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
16432         NODE when __dir_mkfile failed.
16433         * sysdeps/mach/hurd/symlinkat.c: Likewise.
16434         Reported by Ludovic Courtès <ludo@gnu.org>.
16435
16436 2012-04-24  Andreas Jaeger  <aj@suse.de>
16437
16438         * Makerules (common-clean): Also remove gen-as-const-headers
16439         files.
16440
16441 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16442
16443         * Makerules (native-compile): Do not change working directory for
16444         build.  Use $(OUTPUT_OPTION) in command.
16445         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
16446
16447 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16448
16449         [BZ #13886]
16450         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
16451         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
16452         * math/libm-test.inc (floor_test): Add more tests.
16453         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
16454
16455 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
16456
16457         * sysdeps/unix/getdents.c: Remove file.
16458         * sysdeps/unix/sysv/getdents.c: Likewise.
16459         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
16460
16461         * sysdeps/unix/syscalls.list (madvise): Add syscall from
16462         sysdeps/unix/mman/syscalls.list.
16463         (mmap): Likewise.
16464         (mprotect): Likewise.
16465         (msync): Likewise.
16466         (munmap): Likewise.
16467         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
16468         * sysdeps/unix/mman/syscalls.list: Remove.
16469         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
16470
16471         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
16472         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
16473         * configure: Regenerated.
16474         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
16475         $(libgcc_s_suffix).
16476         * config.make.in (libgcc_s_suffix): Remove variable.
16477
16478 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
16479
16480         * sysdeps/unix/sysv/gethostname.c: Move to ...
16481         * sysdeps/posix/gethostname.c: ... here.
16482
16483         * sysdeps/unix/execve.S: Remove file.
16484
16485         * sysdeps/unix/_exit.S: Remove file.
16486
16487 2012-04-23  Andreas Jaeger  <aj@suse.de>
16488
16489         [BZ #13739]
16490         * manual/Makefile: Remove make dist support, there's no
16491         need for a stand-alone documentation tar ball.
16492         (TEXI2DVI): Define always, it's not in Makeconfig.
16493         (dist): Removed.
16494         (tar-it): Removed.
16495         (edition): Removed.
16496         (glibc-doc-$(edition).tar): Removed
16497         (%.Z): Removed.
16498         (%.gz): Removed.
16499         (%.uu): Removed.
16500         (ETAGS): Remove, it's in Makeconfig.
16501         (move-if-change): Remove, it's in Makeconfig.
16502
16503 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
16504
16505         [BZ #13970]
16506         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
16507         (strtod, strtof, strtold, strtol, strtoul, strtoq)
16508         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
16509         (strtod_l, strtof_l, strtold_l): Remove __wur.
16510         It is not necessarily an error to ignore strtol's return value.
16511         One can reliably look at the stored endptr to decide whether
16512         the number had valid syntax.
16513
16514 2012-04-21  Andreas Jaeger  <aj@suse.de>
16515
16516         [BZ #13739]
16517         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
16518
16519 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
16520
16521         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
16522         * sysdeps/unix/sysv/Versions: Remove file.
16523
16524 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16525
16526         [BZ #13927]
16527         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16528
16529 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
16530
16531         [BZ #7064]
16532         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
16533         version from __vm86.
16534
16535 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
16536
16537         * sysdeps/unix/common/lxstat.c: Remove file.
16538         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
16539
16540         * sysdeps/unix/sysv/Makefile: Remove file.
16541
16542         * sysdeps/unix/sysv/direct.h: Remove file.
16543
16544         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
16545         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
16546         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
16547         * sysdeps/unix/sysv/bits/signum.h: Likewise.
16548         * sysdeps/unix/sysv/bits/stat.h: Likewise.
16549         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
16550         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
16551
16552         * sysdeps/unix/sysv/setrlimit.c: Remove file.
16553
16554         * sysdeps/unix/xmknod.c: Remove file.
16555         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
16556
16557         * sysdeps/unix/sysv/settimeofday.c: Remove file.
16558
16559         * sysdeps/unix/sysv/i386/time.S: Remove file.
16560
16561         * sysdeps/unix/fxstat.c: Remove file.
16562         * sysdeps/unix/xstat.c: Likewise.
16563         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
16564
16565         * sysdeps/unix/sysv/sigaction.c: Remove file.
16566
16567         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
16568         (sysdep_headers): Remove variable.
16569         [termio.h not in sysdep_headers] (generated): Likewise.
16570         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
16571         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
16572         * sysdeps/unix/sysv/tcdrain.c: Likewise.
16573         * sysdeps/unix/sysv/tcflow.c: Likewise.
16574         * sysdeps/unix/sysv/tcflush.c: Likewise.
16575         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
16576         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
16577         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
16578         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
16579         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
16580
16581         * sysdeps/unix/siglist.c: Remove file.
16582
16583         * sysdeps/unix/getppid.S: Remove file.
16584
16585         * sysdeps/unix/mkdir.c: Remove file.
16586         * sysdeps/unix/rmdir.c: Likewise.
16587
16588 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
16589
16590         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
16591         ERR_MAX value.
16592         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
16593         errlist-compat value.
16594
16595 2012-04-18  David S. Miller  <davem@davemloft.net>
16596
16597         * sysdeps/generic/memcopy.h (reg_char): Delete.
16598         * debug/strcat_chk.c: Use char, not reg_char.
16599         * debug/strcpy_chk.c: Likewise.
16600         * debug/strncat_chk.c: Likewise.
16601         * debug/strncpy_chk.c: Likewise.
16602         * string/memchr.c: Likewise.
16603         * string/memrchr.c: Likewise.
16604         * string/rawmemchr.c: Likewise.
16605         * string/strcat.c: Likewise.
16606         * string/strchr.c: Likewise.
16607         * string/strchrnul.c: Likewise.
16608         * string/strcmp.c: Likewise.
16609         * string/strcpy.c: Likewise.
16610         * string/strncat.c: Likewise.
16611         * string/strncmp.c: Likewise.
16612         * string/strncpy.c: Likewise.
16613
16614 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16615
16616         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
16617         __builtin_memcopy is called when src and dest ranges are known to not
16618         overlap.
16619
16620 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16621
16622         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
16623         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
16624         fwd_align_merge macro call.
16625         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
16626         bwd_align_merge macro call.
16627         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16628
16629 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
16630
16631         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
16632         bwd_align_merge macros.
16633         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
16634         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
16635         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16636
16637 2012-04-18  David S. Miller  <davem@davemloft.net>
16638
16639         * sysdeps/sparc/sparc64/memcopy.h: Delete.
16640
16641 2012-04-18  Andreas Jaeger  <aj@suse.de>
16642
16643         [BZ# 6794]
16644         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
16645         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
16646         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16647
16648         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
16649         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
16650         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16651
16652         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
16653         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
16654         Adjust for changed ldbl-128 files.
16655
16656         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
16657         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
16658         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
16659
16660 2012-04-17  David S. Miller  <davem@davemloft.net>
16661
16662         * sysdeps/sparc/sparc32/memcopy.h: Delete.
16663
16664 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
16665
16666         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
16667         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
16668         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
16669         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
16670         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
16671         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
16672
16673 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16674
16675         [BZ #6794]
16676         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
16677         * math/libm-test.inc: Add ilogb errno and exception tests.
16678         * math/w_ilogb.c: New file: ilogb wrapper.
16679         * math/w_ilogbf.c: New file: ilogbf wrapper.
16680         * math/w_ilogbl.c: New file: ilogbl wrapper.
16681         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
16682         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
16683         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
16684         exception being thrown with 0.0 as argument.
16685         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
16686         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
16687         exception being thrown with 0.0 as argument.
16688         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
16689         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16690         exception being thrown with 0.0 as argument.
16691         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
16692         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
16693         exception being thrown with 0.0 as argument.
16694         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
16695         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
16696         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
16697         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
16698         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
16699         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
16700         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
16701         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
16702         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
16703
16704 2012-04-17  Petr Baudis  <pasky@ucw.cz>
16705
16706         * include/sys/uio.h: Change __vector to __iovec to avoid clash
16707         with altivec.
16708
16709 2012-04-16  Marek Polacek  <polacek@redhat.com>
16710
16711         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
16712
16713 2012-04-16  Marek Polacek  <polacek@redhat.com>
16714
16715         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
16716         operands of fdivp instruction.
16717
16718 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16719
16720         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
16721         * elf/tst-auditmod3b.c: Likewise.
16722         * elf/tst-auditmod4b.c: Likewise.
16723         * elf/tst-auditmod5b.c: Likewise.
16724         * elf/tst-auditmod6b.c: Likewise.
16725         * elf/tst-auditmod6c.c: Likewise.
16726         * elf/tst-auditmod7b.c: Likewise.
16727         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
16728         * sysdeps/x86_64/preconfigure.in: Likewise.
16729         * sysdeps/x86_64/preconfigure: Regenerated.
16730
16731 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16732
16733         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
16734         __ILP32__.
16735
16736 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
16737
16738         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16739         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
16740
16741 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
16742
16743         [BZ #13973]
16744         * locale/iso-639.def: Fix gl language name. Spotted by
16745         Yaron Shahrabani.
16746
16747 2012-04-12  Roland McGrath  <roland@hack.frob.com>
16748
16749         [BZ #2074]
16750         * libio/libio.h (__io_write_fn): Update comment.
16751
16752 2012-04-12  Petr Baudis  <pasky@ucw.cz>
16753
16754         [BZ #2074]
16755         * stdio.texi (Hook Functions): The user provided writer function
16756         is not allowed to return -1.
16757
16758 2012-04-11  David S. Miller  <davem@davemloft.net>
16759
16760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16761
16762 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
16763
16764         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
16765         Add a leading slash to rtkaio.
16766
16767 2012-04-11  Jim Meyering  <meyering@redhat.com>
16768
16769         [BZ #11959]
16770         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
16771         It is not necessarily an error to ignore fwrite's return
16772         value.  One can reliably use ferror to test for errors after
16773         the fact.
16774
16775 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16776
16777         * bits/types.h (__snseconds_t): New type.
16778         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
16779
16780         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
16781         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16782         (__SNSECONDS_T_TYPE): Likewise.
16783         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
16784         (__SNSECONDS_T_TYPE): Likewise.
16785         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16786         (__SNSECONDS_T_TYPE): Likewise.
16787
16788 2012-04-10  Andreas Jaeger  <aj@suse.de>
16789
16790         [BZ #2636]
16791         * manual/time.texi (Processor Time): Return type of times is
16792         elapsed real time since an arbitrary point in the past.
16793         (CPU Time): Move CLK_TCK from here...
16794         (Processor Time): ...to here.  Correct description.
16795         * manual/conf.texi (Constants for Sysconf): Correct description of
16796         _SC_CLK_TCK.
16797
16798 2012-04-10  David S. Miller  <davem@davemloft.net>
16799
16800         [BZ #13967]
16801         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
16802         where the is a gap between DT_REL(A) and DT_JMPREL.
16803
16804 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
16805
16806         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
16807         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16808         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16809
16810 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16811
16812         * elf/dl-support.c (_dl_inhibit_cache): New variable.
16813         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
16814         (dl_main): Handle --inhibit-cache.
16815         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
16816         _dl_inhibit_cache.
16817         * elf/dl-load.c (_dl_map_object): Use it.
16818         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
16819
16820 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16821
16822         [BZ #13872]
16823         * sysdeps/i386/fpu/e_powl.S (p78): New object.
16824         (__ieee754_powl): Saturate large exponents rather than testing for
16825         overflow of y*log2(x).
16826         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16827         * math/libm-test.inc (pow_test): Do not permit spurious overflow
16828         exceptions.
16829
16830         [BZ #11521]
16831         * math/s_ctan.c: Include <float.h>.
16832         (__ctan): Avoid internal overflow or cancellation in calculating
16833         denominator.
16834         * math/s_ctanf.c: Likewise.
16835         * math/s_ctanl.c: Likewise.
16836         * math/s_ctanh.c: Likewise.
16837         * math/s_ctanhf.c: Likewise.
16838         * math/s_ctanhl.c: Likewise.
16839         * math/libm-test.inc (ctan_test): Add more tests.
16840         (ctanh_test): Likewise.
16841         * sysdeps/i386/fpu/libm-test-ulps: Update.
16842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16843
16844 2012-04-09  Andreas Jaeger  <aj@suse.de>
16845
16846         [BZ #6894]
16847         * manual/filesys.texi (Directory Entries): Mention that d_namlen
16848         is an optional BSD extension.
16849
16850         [BZ #10254]
16851         * manual/stdio.texi (Opening Streams): Document additional fopen
16852         parameters.
16853
16854 2012-04-09  Roland McGrath  <roland@hack.frob.com>
16855
16856         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
16857         %eax without telling the compiler.
16858
16859 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
16860
16861         [BZ # 13963]
16862         * manual/install.texi: Use sourceware.org.
16863
16864 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
16865
16866         [BZ #13873]
16867         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
16868         (__ieee754_pow): Generate overflow and underflow using huge*huge
16869         and tiny*tiny rather than just returning constant infinity or zero
16870         for large exponents.
16871         * math/libm-test.inc (pow_test): Require overflow exceptions for
16872         applicable cases of large exponents.
16873
16874         [BZ #706]
16875         * sysdeps/i386/fpu/e_pow.S (p10): New object.
16876         (__ieee754_pow): Use iterative multiplication algorithm only for
16877         integer exponents with absolute value below 1024.  Check for odd
16878         integer exponents when using algorithm for real exponents.
16879         * math/libm-test.inc (pow_test): Add more tests.
16880         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16881
16882 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
16883
16884         [BZ #13705]
16885         * math/libm-test.inc (exp_test): Do not allow overflow exception
16886         on underflow test.
16887
16888 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
16889
16890         [BZ #13705]
16891         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
16892         instead of __kernel_standard_f.
16893
16894 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
16895
16896         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
16897         * sysdeps/x86_64/memset_chk.S: Likewise.
16898
16899 2012-04-08  Andreas Jaeger  <aj@suse.de>
16900
16901         [BZ #10153]
16902         * manual/startup.texi (Environment Access): Describe return value
16903         for putenv and setenv.
16904
16905         [BZ #6895]
16906         * manual/filesys.texi (Directory Entries): Add description for
16907         DT_LNK.
16908
16909         [BZ #6890]
16910         * manual/filesys.texi (Directory Entries): Clarify that it's file
16911         system not operating system in the description of DT_UNKNOWN.
16912
16913         [BZ #6578]
16914         * manual/syslog.texi (closelog): Fix reference, it's openlog.
16915
16916 2012-04-08  Stephen Compall  <s11@member.fsf.org>
16917
16918         [BZ #6649]
16919         * manual/llio.texi (Opening and Closing Files): Add cross
16920         reference to explain mode argument.
16921
16922 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
16923
16924         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
16925         * sysdeps/x86_64/memset_chk.S: Likewise.
16926
16927 2012-04-07  David S. Miller  <davem@davemloft.net>
16928
16929         * elf/elf.h (R_SPARC_WDISP10): Define.
16930         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
16931         R_SPARC_SIZE32.
16932         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
16933         R_SPARC_SIZE64 and R_SPARC_H34.
16934
16935 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
16936
16937         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
16938         conditions and remove no longer applicable assertion.
16939
16940 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
16941
16942         * bits/byteswap.h: Include <features.h>.
16943         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
16944         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
16945
16946 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
16947
16948         * bits/byteswap.h (__bswap_16): Removed.
16949         Include <bits/byteswap-16.h> to get __bswap_16.
16950         * sysdeps/i386/bits/byteswap.h: Likewise.
16951         * sysdeps/s390/bits/byteswap.h: Likewise.
16952         * sysdeps/x86_64/bits/byteswap.h: Likewise.
16953         * bits/byteswap-16.h: New file.
16954         * sysdeps/i386/bits/byteswap-16.h: Likewise.
16955         * sysdeps/s390/bits/byteswap-16.h: Likewise.
16956         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
16957         * string/Makefile (headers): Add bits/byteswap-16.h.
16958
16959 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16960
16961         [BZ #13895]
16962         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
16963         extra indirection.
16964         * nss/Makefile (tests-static, tests): Add tst-nss-static.
16965         * nss/tst-nss-static.c: New.
16966
16967 2012-04-06  Robert Millan  <rmh@gnu.org>
16968
16969         [BZ #6486]
16970         * manual/llio.texi (File Position Primitive): lseek
16971         refers to WHENCE when it really means OFFSET.
16972
16973 2012-04-06  Andreas Jaeger  <aj@suse.de>
16974
16975         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
16976         strncmp declarations.
16977
16978         * abilist/libc.abilist: Add __poll and __ppoll.
16979
16980 2012-04-05  David S. Miller  <davem@davemloft.net>
16981
16982         * scripts/check-local-headers.sh: Accept a host triplet in the
16983         path matched by the exclude regexp.
16984
16985         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
16986         definition.
16987         * sysdeps/powerpc/powerpc32/dl-machine.h
16988         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
16989         * sysdeps/s390/s390-32/dl-machine.h
16990         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16991         * sysdeps/sparc/sparc32/dl-machine.h
16992         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16993         * sysdeps/sparc/sparc64/dl-machine.h
16994         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
16995
16996         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
16997         lazy binding.
16998         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
16999         undefined symbol errors.
17000
17001         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
17002         DT_NEEDED entries.
17003
17004 2012-04-05  Michael Matz  <matz@suse.de>
17005
17006         [BZ #13592]
17007         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
17008
17009 2012-04-05  Andreas Jaeger  <aj@suse.de>
17010
17011         [BZ #13908]
17012         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
17013         comment.
17014
17015 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17016
17017         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
17018         which ROUND is no valid rounding mode.
17019
17020 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17021
17022         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
17023         read again.
17024         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
17025
17026 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17027
17028         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
17029         an exception using FPU order intentionally.
17030
17031 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
17032
17033         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
17034         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
17035         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
17036         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
17037
17038 2012-04-05  Simon Josefsson  <simon@josefsson.org>
17039
17040         [BZ #12340]
17041         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
17042         EINVAL when BUFLEN is too smal.
17043
17044 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
17045
17046         [BZ #13553]
17047         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
17048         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
17049
17050 2012-04-03  Andreas Jaeger  <aj@suse.de>
17051
17052         [BZ #13938]
17053         * manual/setjmp.texi (System V contexts): Fix sentence.
17054
17055         [BZ #13926]
17056         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
17057         New macro for this case.
17058         [!__GNUC__] (__bswap_64): New inline function for this case.
17059         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17060         * bits/byteswap.h: Likewise.
17061         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
17062         ull, guard with __GLIBC_HAVE_LONG_LONG.
17063
17064         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
17065         __GLIBC_HAVE_LONG_LONG.
17066
17067         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
17068         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
17069
17070 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17071
17072         [BZ #13691]
17073         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
17074         inptr and inend, rather than using last_ch.
17075
17076 2012-04-02  David S. Miller  <davem@davemloft.net>
17077
17078         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
17079         * stdio-common/printf-parse.h (read_int): Change return type to
17080         'int', return -1 on INT_MAX overflow.
17081         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
17082         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
17083         overflows INT_MAX.  Check for overflow of in-format-string precision
17084         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
17085         SIZE_MAX not INT_MAX for integer overflow test.
17086         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
17087         skip the construct in the format string but do not record anything.
17088         * stdio-common/bug22.c: Adjust to test both width/prevision
17089         INT_MAX overflow as well as total length INT_MAX overflow.  Check
17090         explicitly for proper errno values.
17091
17092 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
17093
17094         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
17095         CHAR_MAX.
17096         * string/test-strcmp.c [! WIDE]: Likewise.
17097         * time/tst-mktime2.c: Likewise for INT_MAX.
17098         * string/test-string.h: #include <sys/param.h> for MIN.
17099
17100         * csu/init-first.c (__libc_init_first): Call __ctype_init.
17101         * sysdeps/i386/init-first.c (init): Likewise.
17102         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
17103         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
17104         * sysdeps/sh/init-first.c (init): Likewise.
17105
17106 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
17107
17108         * po/ru.po: Update from translation team.
17109         * po/vi.po: Likewise.
17110
17111 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
17112
17113         * resolv/nss_dns/dns-host.c: Merge copyright years.
17114
17115 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17116
17117         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
17118         Optimize memcpy with prefetch if
17119         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
17120         src, dst pointers have unequal 16 byte alignments.
17121
17122 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
17123
17124         [BZ #13928]
17125         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
17126         from a CNAME entry and return the minimum ttl for the query.
17127         (gaih_getanswer_slice): Likewise.
17128
17129 2012-03-30  Jeff Law  <law@redhat.com>
17130
17131         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
17132         due to long keys.
17133         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
17134         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
17135
17136         * resolv/nss_dns/dns-host.c: Update copyright year.
17137
17138 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
17139
17140         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
17141         requests to save a system call.  Fix check that all bytes are sent.
17142
17143         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
17144         comments for sendmmsg.
17145
17146 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17147
17148         [BZ #13691]
17149         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
17150         with only 1 character between 0x0041 and 0x01b0.
17151         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
17152         * wcsmbs/tst-mbsnrtowcs.c: New file.
17153
17154 2012-03-29  David S. Miller  <davem@davemloft.net>
17155
17156         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
17157         small copies by hand.
17158
17159 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17160
17161         [BZ #13761]
17162         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
17163         _nss_compat_initgroups_dyn): Fall back to malloc/free
17164         for large group memberships.
17165
17166 2012-03-28  David S. Miller  <davem@davemloft.net>
17167
17168         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
17169         that branches into memcpy.
17170         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17171         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
17172         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17173         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
17174         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
17175         bits.
17176         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
17177         implementation too.
17178         * sysdeps/sparc/mempcpy.S: New file.
17179
17180         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
17181         the IFUNC routine in the libc case.
17182         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
17183
17184         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
17185         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
17186         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
17187         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
17188         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
17189         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
17190         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
17191         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
17192
17193         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
17194         loop to 256 bytes instead of 64 bytes and fix test signedness.
17195
17196         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
17197         * sysdeps/sparc/sparc32/Makefile: rather than here...
17198         * sysdeps/sparc/sparc64/Makefile: and here.
17199
17200 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
17201
17202         * malloc/mallocbug.c: Avoid warnings about unused variables.
17203
17204 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17205
17206         [BZ #13760]
17207         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
17208         in the right place. Discard and retry query if response is
17209         larger than input buffer size.
17210
17211 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
17212
17213         [BZ #369]
17214         [BZ #2678]
17215         [BZ #3866]
17216         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
17217         x for large integer exponent.
17218         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
17219         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
17220         sign of result as needed afterwards.
17221         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
17222         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
17223         result for underflowing pow the same as for overflow.
17224         (__kernel_standard_l): Handle powl overflow and underflow here
17225         rather than calling __kernel_standard.
17226         * math/libm-test.inc (pow_test): Add more tests.
17227
17228         [BZ #3868]
17229         [BZ #13879]
17230         [BZ #13910]
17231         [BZ #13911]
17232         [BZ #13912]
17233         [BZ #13913]
17234         [BZ #13915]
17235         [BZ #13916]
17236         [BZ #13917]
17237         [BZ #13918]
17238         [BZ #13919]
17239         [BZ #13920]
17240         [BZ #13921]
17241         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
17242         * sysdeps/ieee754/k_standard.c: Include <float.h>.
17243         (__kernel_standard_l): New function.
17244         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
17245         __kernel_standard.
17246         * math/w_acosl.c (__acosl): Likewise.
17247         * math/w_asinl.c (__asinl): Likewise.
17248         * math/w_atan2l.c (__atan2l): Likewise.
17249         * math/w_atanhl.c (__atanhl): Likewise.
17250         * math/w_coshl.c (__coshl): Likewise.
17251         * math/w_exp10l.c (__exp10l): Likewise.
17252         * math/w_exp2l.c (__exp2l): Likewise.
17253         * math/w_fmodl.c (__fmodl): Likewise.
17254         * math/w_hypotl.c (__hypotl): Likewise.
17255         * math/w_j0l.c (__j0l, __y0l): Likewise.
17256         * math/w_j1l.c (__j1l, __y1l): Likewise.
17257         * math/w_jnl.c (__jnl, __ynl): Likewise.
17258         * math/w_lgammal.c (__lgammal): Likewise.
17259         * math/w_log10l.c (__log10l): Likewise.
17260         * math/w_log2l.c (__log2l): Likewise.
17261         * math/w_logl.c (__logl): Likewise.
17262         * math/w_powl.c (__powl): Likewise.
17263         * math/w_remainderl.c (__remainderl): Likewise.
17264         * math/w_scalbl.c (sysv_scalbl): Likewise.
17265         * math/w_sinhl.c (__sinhl): Likewise.
17266         * math/w_sqrtl.c (__sqrtl): Likewise.
17267         * math/w_tgammal.c (__tgammal): Likewise.
17268         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
17269         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
17270         * math/libm-test.inc (acos_test): Add more tests.
17271         (acosh_test): Likewise.
17272         (asin_test): Likewise.
17273         (atanh_test): Likewise.
17274         (exp_test): Likewise.
17275         (exp10_test): Likewise.
17276         (exp2_test): Likewise.
17277         (expm1_test): Likewise.
17278         (lgamma_test): Likewise.
17279         (log_test): Likewise.
17280         (log10_test): Likewise.
17281         (log1p_test): Likewise.
17282         (log2_test): Likewise.
17283         (pow_test): Do not allow some spurious overflow exceptions.
17284         (sqrt_test): Add more tests.
17285         (tgamma_test): Likewise.
17286         (y0_test): Likewise.
17287         (y1_test): Likewise.
17288         (yn_test): Likewise.
17289
17290 2012-03-27  Anton Blanchard  <anton@samba.org>
17291
17292         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
17293         MAP_HUGETLB.
17294         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17295         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17296         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17297
17298 2012-03-27  David S. Miller  <davem@davemloft.net>
17299
17300         * conform/Makefile: Run run-conformtest.sh using $(BASH).
17301
17302         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
17303         have-as-vis3 check.
17304
17305 2012-03-27  Andreas Jaeger  <aj@suse.de>
17306
17307         * sysdeps/x86_64/elf/configure.in: Moved to ...
17308         * sysdeps/x86_64/configure.in: ... here.
17309         * sysdeps/x86_64/elf/start.S: Moved to ...
17310         * sysdeps/x86_64/start.S: ... here.
17311         * sysdeps/x86_64/elf/configure: Delete.
17312
17313         * sysdeps/x86_64/configure.in: Merge contents from
17314         sysdeps/i386/configure.in (without i686 check).
17315
17316         * sysdeps/i386/elf/Versions: Merge into ...
17317         * sysdeps/i386/Versions: ... this.
17318         * sysdeps/i386/elf/Versions: Delete file.
17319         * sysdeps/i386/elf/start.S: Moved to ...
17320         * sysdeps/i386/start.S: ...here.
17321         * sysdeps/i386/elf/configure.in: Merge into...
17322         * sysdeps/i386/configure.in: ...here.
17323         * sysdeps/i386/elf/configure.in: Delete file.
17324         * sysdeps/i386/elf/configure: Delete file.
17325
17326         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
17327         * debug/backtracesyms.c: ... here.
17328         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
17329         * debug/backtracesymsfd.c: ... here.
17330         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
17331         * sysdeps/generic/ifunc-sel.h: ... here.
17332
17333         * sysdeps/unix/i386/start.c: Delete file.
17334         * sysdeps/unix/sparc/start.c: Delete file.
17335         * sysdeps/unix/start.c: Delete file.
17336
17337         * sysdeps/sh/elf/configure.in: Moved to ...
17338         * sysdeps/sh/configure.in: ... here.
17339         * sysdeps/sh/elf/start.S: Moved to ...
17340         * sysdeps/sh/start.S: ... here.
17341         * sysdeps/sh/elf/configure: Delete file.
17342
17343         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
17344         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
17345         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
17346         * sysdeps/powerpc/powerpc64/entry.h: ... here.
17347         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
17348         * sysdeps/powerpc/powerpc64/start.S: here.
17349         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
17350         * sysdeps/powerpc/powerpc64/Makefile: ... this.
17351         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
17352         * sysdeps/powerpc/powerpc64/configure.in: ... this.
17353         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
17354
17355         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
17356         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
17357         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
17358         * sysdeps/powerpc/powerpc32/start.S: ... here.
17359         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
17360         * sysdeps/powerpc/powerpc32/configure.in: ... this.
17361         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
17362
17363         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
17364         * sysdeps/powerpc/ifunc-sel.h: ... here.
17365         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
17366         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
17367
17368         * sysdeps/sparc/elf/configure.in: Moved to ...
17369         * sysdeps/sparc/configure.in: ... here.
17370         * sysdeps/sparc/elf/configure: Delete file.
17371         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
17372         * sysdeps/sparc/sparc32/start.S: ... here.
17373         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
17374         * sysdeps/sparc/sparc64/start.S: ... here.
17375         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
17376         * sysdeps/sparc/sparc32/Makefile: ... this.
17377         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
17378         * sysdeps/sparc/sparc64/Makefile: ... this.
17379
17380         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
17381         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
17382         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
17383         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
17384         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
17385         * sysdeps/s390/s390-32/setjmp.S: ... here.
17386         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
17387         * sysdeps/s390/s390-32/configure.in: ... here.
17388         * sysdeps/s390/s390-32/elf/configure: Delete file.
17389         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
17390         * sysdeps/s390/s390-32/start.S: ... here.
17391
17392         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
17393         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
17394         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
17395         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
17396         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
17397         * sysdeps/s390/s390-64/setjmp.S: ... here.
17398         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
17399         * sysdeps/s390/s390-64/configure.in: ... here
17400         * sysdeps/s390/s390-64/elf/configure: Delete file.
17401         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
17402         * sysdeps/s390/s390-64/start.S: ... here.
17403         * sysdeps/s390/s390-64/elf/configure: Delete.
17404
17405         * configure.in: Remove support for elf directories in sysdeps.
17406
17407         * configure: Regenerated.
17408         * sysdeps/i386/configure: Regenerated.
17409         * sysdeps/powerpc/powerpc32/configure: Regenerated.
17410         * sysdeps/powerpc/powerpc64/configure: Regenerated.
17411         * sysdeps/s390/s390-32/configure: Regenerated.
17412         * sysdeps/s390/s390-64/configure: Regenerated.
17413         * sysdeps/sh/configure: Regenerated.
17414         * sysdeps/sparc/configure: Regenerated.
17415         * sysdeps/x86_64/configure: Regenerated.
17416
17417 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
17418
17419         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17420
17421         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
17422         denormal result into account.
17423
17424 2012-03-25  Roland McGrath  <roland@hack.frob.com>
17425
17426         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
17427         Reported by Allan McRae <allan@archlinux.org>.
17428
17429 2012-03-23  Jeff Law  <law@redhat.com>
17430
17431         * nss/getnssent.c (__nss_getent): Fix typo.
17432
17433 2012-03-23  David S. Miller  <davem@davemloft.net>
17434
17435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17436
17437 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
17438
17439         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
17440         to pad to uint64_t for each field.
17441         (dl_tls_index): Replace unsigned long with uint64_t.
17442
17443 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
17444         Paul Pluzhnikov  <ppluzhnikov@google.com>
17445
17446         [BZ #6528]
17447         * grp/Makefile (otherlibs): Don't set it.
17448         * inet/Makefile (otherlibs): Likewise.
17449         * login/Makefile (otherlibs): Likewise.
17450         * nscd/Makefile (otherlibs): Likewise.
17451         * posix/Makefile (otherlibs): Likewise.
17452         * pwd/Makefile (otherlibs): Likewise.
17453         * rt/Makefile (otherlibs): Likewise.
17454         * sunrpc/Makefile (otherlibs): Likewise.
17455         * nss/Makefile (otherlibs): Likewise.
17456         Add libnss_files to routines and static-only-routines.
17457         ($(objpfx)getent): Remove rule.
17458         * resolv/Makefile: Add libnss_dns and libresolv to routines and
17459         static-only-routines.
17460
17461 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17462
17463         [BZ #13892]
17464         * math/s_cexp.c: Include <float.h>.
17465         (__cexp): Handle exp result overflowing not necessarily
17466         overflowing both real and imaginary parts of result.
17467         * math/s_cexpf.c: Likewise.
17468         * math/s_cexpl.c: Likewise.
17469         * math/libm-test.inc (cexp_test): Add more tests.
17470         * sysdeps/i386/fpu/libm-test-ulps: Update.
17471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17472
17473 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17474
17475         * include/link.h (ELFW): New macro.
17476         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
17477         Replace ELF64_R_TYPE with ELFW(R_TYPE).
17478
17479 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17480
17481         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
17482         with uint64_t.
17483
17484 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17485
17486         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
17487         declaration.
17488         (struct La_x32_retval): Likewise.
17489
17490 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17491
17492         * sysdeps/x86_64/preconfigure.in: New file.
17493         * sysdeps/x86_64/preconfigure: New generated file.
17494
17495 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
17496
17497         [BZ #13824]
17498         * math/e_exp2l.c: Include <float.h>.
17499         (__ieee754_exp2l): Handle overflow and underflow cases
17500         separately.  Only pass fractional part of argument to
17501         __ieee754_expl.
17502         * math/libm-test.inc (exp2_test): Add more tests.
17503
17504         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
17505         negating x to take absolute value.
17506         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
17507         Likewise.
17508         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
17509         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
17510         Likewise.
17511         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
17512         computing low part if x was negated.
17513         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
17514
17515 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17516
17517         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
17518         la_x32_gnu_pltexit.
17519         (pltexit): Cast int_retval to ptrdiff_t.
17520         * elf/tst-auditmod3b.c: Likewise.
17521         * elf/tst-auditmod4b.c: Likewise.
17522         * elf/tst-auditmod5b.c: Likewise.
17523         * elf/tst-auditmod6b.c: Likewise.
17524         * elf/tst-auditmod6c.c: Likewise.
17525         * elf/tst-auditmod7b.c: Likewise.
17526
17527         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
17528         and x32_gnu_pltexit.
17529
17530         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
17531         __ELF_NATIVE_CLASS.
17532         (La_x32_regs): New macro.
17533         (La_x32_retval): Likewise.
17534         (la_x32_gnu_pltenter): New function prototype.
17535         (la_x32_gnu_pltexit): Likewise.
17536
17537 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
17538
17539         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
17540         exponent.
17541
17542         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17543
17544         * configure.in (libc_cv_cc_nofma): Check for option to disable
17545         generation of FMA instructions.
17546         * configure: Regenerate.
17547         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
17548         * sysdeps/ieee754/dbl-64/Makefile: New file.
17549         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17550         Remove brandred-fma4.
17551         (CFLAGS-brandred-fma4.c): Remove.
17552         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
17553         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
17554         define.
17555         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
17556         define.
17557
17558 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17559
17560         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
17561         LLONG_MAX != LONG_MAX.
17562         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17563         (_fitoa_word): Likewise.
17564         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
17565         LLONG_MAX != LONG_MAX.
17566         * stdio-common/_itowa.h: Include <_itoa.h>.
17567         (_itowa_word): Use _ITOA_WORD_TYPE on value.
17568         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
17569         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
17570         only if not defined.
17571         (_ITOA_WORD_TYPE): Likewise.
17572         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17573         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
17574
17575 2012-03-21  David S. Miller  <davem@davemloft.net>
17576
17577         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17578
17579 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
17580
17581         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
17582         of x86_64 when setting libc_cv_slibdir, libdir and
17583         libc_cv_localedir.
17584         * sysdeps/unix/sysv/linux/configure: Regenerated.
17585
17586 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17587
17588         * manual/lang.texi (Old Varargs): Remove section.
17589         (How Variadic): Update menu.
17590         (va_start): Do not mention varargs.h.
17591
17592 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17593             Joseph Myers  <joseph@codesourcery.com>
17594
17595         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
17596         link test.
17597         * configure: Regenerated.
17598
17599 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
17600
17601         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
17602         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
17603         conformtest.pl
17604
17605 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17606
17607         * NOTES: Remove.
17608         * Makefile (files-for-dist): Remove NOTES.
17609         (NOTES): Remove rule.
17610         * README: Don't refer to NOTES.
17611         * manual/creature.texi: Don't include macros.texi.
17612         * manual/intro.texi (creature.texi): Remove comment referring to
17613         NOTES.
17614
17615         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
17616         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
17617         * configure: Regenerated.
17618         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
17619         LIBC_TRY_CC_OPTION.
17620         (libc_cv_as_i686): Likewise.
17621         (libc_cv_cc_avx): Likewise.
17622         (libc_cv_cc_sse2avx): Likewise.
17623         (libc_cv_cc_fma4): Likewise.
17624         (libc_cv_cc_novzeroupper): Likewise.
17625         * sysdeps/i386/configure: Regenerated.
17626
17627         [BZ #13883]
17628         * sysdeps/i386/fpu/s_cexp.S: Remove.
17629         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
17630         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
17631         * math/libm-test.inc (cexp_test): Add more tests.
17632         * sysdeps/i386/fpu/libm-test-ulps: Update.
17633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17634
17635 2012-03-21  Allan McRae  <allan@archlinux.org>
17636
17637         * timezone/Makefile: Do not install iso3166.tab and zone.tab
17638
17639 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
17640
17641         [BZ #13871]
17642         * math/w_exp2.c: Do not include <float.h>.
17643         (o_threshold, u_threshold): Remove.
17644         (__exp2): Calculate result before checking finiteness and calling
17645         __kernel_standard.
17646         * math/w_exp2f.c: Likewise.
17647         * math/w_exp2l.c: Likewise.
17648         * math/libm-test.inc (exp2_test): Require overflow exception for
17649         1e6 input.
17650
17651         [BZ #3866]
17652         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
17653         range of signed 64-bit integers before using fistpll.  Remove
17654         checks for whether integers fit in mantissa bits.
17655         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
17656         the range of signed 32-bit integers before using fistpl.  Remove
17657         checks for whether integers fit in mantissa bits.
17658         * sysdeps/i386/fpu/e_powl.S (p64): New object.
17659         (__ieee754_powl): Test for y outside the range of signed 64-bit
17660         integers before using fistpll.  Reduce 64-bit values to 63-bit
17661         ones as needed.
17662         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
17663         divide-by-zero is raised for zero to large negative powers.
17664         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
17665         (__ieee754_powl): Test for y outside the range of signed 64-bit
17666         integers before using fistpll.  Reduce 64-bit values to 63-bit
17667         ones as needed.
17668         * math/libm-test.inc (pow_test): Add more tests.
17669
17670 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17671
17672         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
17673         <stdio-common/_itoa.h>.
17674         * debug/segfault.c: Likewise.
17675         * elf/dl-cache.c: Likewise.
17676         * elf/dl-minimal.c: Likewise.
17677         * elf/dl-misc.c: Likewise.
17678         * elf/dl-sysdep.c: Likewise.
17679         * elf/dl-version.c: Likewise.
17680         * elf/rtld.c: Likewise.
17681         * hurd/hurdsock.c: Likewise.
17682         * hurd/lookup-retry.c: Likewise.
17683         * malloc/malloc.c: Likewise.
17684         * malloc/mtrace.c: Likewise.
17685         * nscd/nscd_getgr_r.c: Likewise.
17686         * nscd/nscd_getpw_r.c: Likewise.
17687         * nscd/nscd_getserv_r.c: Likewise.
17688         * posix/getopt_init.c: Likewise.
17689         * posix/wordexp.c: Likewise.
17690         * stdio-common/_itoa.c: Likewise.
17691         * stdio-common/printf_fphex.c: Likewise.
17692         * stdio-common/vfprintf.c: Likewise.
17693         * string/_strerror.c: Likewise.
17694         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
17695         * sysdeps/i386/i686/hp-timing.h: Likewise.
17696         * sysdeps/mach/_strerror.c: Likewise.
17697         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
17698         * sysdeps/mach/hurd/sethostid.c: Likewise.
17699         * sysdeps/mach/hurd/xmknodat.c: Likewise.
17700         * sysdeps/mach/xpg-strerror.c: Likewise.
17701         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
17702         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
17703         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
17704         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
17705         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
17706         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
17707         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
17708         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
17709         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
17710         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
17711         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
17712         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
17713         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
17714         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17715         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17716         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
17717         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
17718         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
17719         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
17720         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
17721         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
17722
17723         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
17724
17725         * stdio-common/_itoa.h: Moved to ...
17726         * sysdeps/generic/_itoa.h: Here.
17727
17728         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
17729
17730         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
17731         instead of "_itoa.h" and "_itowa.h".
17732         * stdio-common/vfprintf.: Likewise.
17733
17734 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17735
17736         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
17737         <bits/wordsize.h>.
17738         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
17739         (__signbit): Likwise.
17740         (llrintf): Likwise.
17741         (llrint): Likwise.
17742
17743 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17744
17745         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
17746         __WORDSIZE != 64.
17747
17748 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
17749
17750         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
17751         OVERFLOW_EXCEPTION_OK.
17752         * math/libm-test.inc ("Philosophy"): Update comment about
17753         exception testing.
17754         (OVERFLOW_EXCEPTION): Define.
17755         (OVERFLOW_EXCEPTION_OK): Likewise.
17756         (INVALID_EXCEPTION_OK): Renumber.
17757         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17758         (IGNORE_ZERO_INF_SIGN): Likewise.
17759         (test_exceptions): Handle FE_OVERFLOW.
17760         (exp10_test): Expect overflow exceptions.
17761         (exp2_test): Likewise.
17762         (expm1_test): Likewise.
17763         (nextafter_test): Likewise.
17764         (pow_test): Likewise.
17765         (scalbn_test): Likewise.
17766         (scalbln_test): Likewise.
17767
17768 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17769
17770         * sysdeps/x86_64/bits/atomic.h
17771         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
17772         64bit integer.
17773         (atomic_exchange_acq): Likewise.
17774         (__arch_exchange_and_add_body): Likewise.
17775         (__arch_add_body): Likewise.
17776         (atomic_add_negative): Likewise.
17777         (atomic_add_zero): Likewise.
17778
17779 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17780
17781         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
17782         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
17783
17784 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17785
17786         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
17787         Check __x86_64__ instead of __WORDSIZE.
17788
17789 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17790
17791         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
17792
17793 2012-03-19  David S. Miller  <davem@davemloft.net>
17794
17795         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17796
17797         * sysdeps/sparc/fpu/fenv_private.h: New file.
17798         * sysdeps/sparc/fpu/math_private.h: Use it.
17799         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
17800         Remove.
17801         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
17802         (libc_feholdexcept_setroundl): Remove.
17803         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
17804         Remove.
17805         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
17806         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
17807
17808 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17809
17810         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
17811         int64_t instead of long int.
17812         (INSERT_WORDS64): Likwise.
17813
17814 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
17815
17816         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
17817         _Unwind_GetCFA return to _Unwind_Ptr first.
17818
17819 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
17820
17821         [BZ #13629]
17822         * math/s_clog.c: Include <float.h>.
17823         (__clog): Scale large or subnormal inputs.
17824         * math/s_clogf.c: Likewise.
17825         * math/s_clogl.c: Likewise.
17826         * math/s_clog10.c: Include <float.h>.
17827         (M_LOG10_2): Define.
17828         (__clog10): Scale large or subnormal inputs.
17829         * math/s_clog10f.c: Likewise.
17830         * math/s_clog10l.c: Likewise.
17831         * math/libm-test.inc (clog_test): Add more tests.
17832         (clog10_test): Likewise.
17833         * sysdeps/i386/fpu/libm-test-ulps: Update.
17834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17835
17836         [BZ #11451]
17837         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
17838         x and y.
17839         * math/libm-test.inc (atan2_test): Add another test.
17840
17841         * Makerules (common-objdir-compile): Remove.
17842         * sysdeps/unix/Makefile (config-generated): Do not add
17843         $(unix-generated) to variable.
17844         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
17845         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
17846         Remove rule.
17847         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
17848         Likewise.
17849         [generic bits/local_lim.h] (before-compile): Do not append to
17850         variable.
17851         [generic bits/local_lim.h] (common-generated): Likewise.
17852         [generic sys/param.h] (before-compile): Do not append to variable.
17853         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
17854         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
17855         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
17856         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
17857         include.
17858         [generic sys/param.h] (sys/param.h-includes): Remove variable.
17859         [generic sys/param.h] (sys/param.h-includes): Remove rule.
17860         [generic sys/param.h] ($(addprefix
17861         $(common-objpfx),$(sys/param.h-includes))): Likewise.
17862         [generic sys/param.h] (common-generated): Do not append to
17863         variable.
17864         [generic sys/param.h] (sysdep_headers): Likewise.
17865         [generic bits/errno.h] (before-compile): Do not append to
17866         variable.
17867         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
17868         rule.
17869         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
17870         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
17871         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
17872         [generic bits/errno.h] (common-generated): Do not append to
17873         variable.
17874         [generic bits/ioctls.h] (before-compile): Do not append to
17875         variable.
17876         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
17877         rule.
17878         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
17879         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
17880         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
17881         rule.
17882         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
17883         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
17884         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
17885         [generic bits/ioctls.h] (common-generated): Do not append to
17886         variable.
17887         [generic sys/syscall.h] (syscall.h): Remove variable.
17888         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
17889         rule.
17890         [generic sys/syscall.h] (before-compile): Do not append to
17891         variable.
17892         [generic sys/syscall.h] (common-generated): Likewise.
17893         * sysdeps/unix/errnos-tmpl.c: Remove file.
17894         * sysdeps/unix/errnos.awk: Likewise.
17895         * sysdeps/unix/ioctls-tmpl.c: Likewise.
17896         * sysdeps/unix/ioctls.awk: Likewise.
17897         * sysdeps/unix/mk-local_lim.c: Likewise.
17898         * sysdeps/unix/snarf-ioctls: Likewise.
17899
17900 2012-03-19  Richard Henderson  <rth@twiddle.net>
17901
17902         * sysdeps/i386/fpu/fenv_private.h: New file.
17903         * sysdeps/i386/fpu/math_private.h: Use it.
17904         (math_opt_barrier, math_force_eval): Remove.
17905         (libc_feholdexcept_setround_53bit): Remove.
17906         (libc_feupdateenv_53bit): Remove.
17907         * sysdeps/x86_64/fpu/math_private.h: Likewise.
17908         (math_opt_barrier, math_force_eval): Remove.
17909         (libc_feholdexcept): Remove.
17910         (libc_feholdexcept_setround): Remove.
17911         (libc_fetestexcept, libc_fesetenv): Remove.
17912         (libc_feupdateenv_test): Remove.
17913         (libc_feupdateenv, libc_feholdsetround): Remove.
17914         (libc_feresetround): Remove.
17915
17916         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
17917         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
17918
17919         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
17920         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
17921         (libc_feupdateenv_testl): New.
17922         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
17923         (libc_feupdateenv_testf): New.
17924         (libc_feupdateenv): Use libc_feupdateenv_test.
17925         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
17926         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
17927
17928         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
17929         (libc_feholdsetroundf, libc_feholdsetroundl): New.
17930         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
17931         (libc_feresetround_noex): New.
17932         (libc_feresetround_noexf): New.
17933         (libc_feresetround_noexl): New.
17934         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
17935         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
17936         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
17937         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
17938         SET_RESTORE_ROUND.
17939         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
17940         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
17941         (__cos): Likewise.
17942         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
17943         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
17944         SET_RESTORE_ROUND_NOEX.
17945         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
17946         SET_RESTORE_ROUND_NOEXF.
17947         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
17948         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
17949         (libc_feholdsetroundf): New.
17950         (libc_feresetround, libc_feresetroundf): New.
17951
17952         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
17953         (libc_feholdexcept_setround_53bit): Convert from macro to function.
17954         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
17955
17956         * sysdeps/generic/math_private.h: Include <fenv.h>.
17957         (default_libc_feholdexcept): New.
17958         (default_libc_feholdexcept_setround): New.
17959         (default_libc_fesetenv, default_libc_feupdateenv): New.
17960         (libc_feholdexcept): Only define if undefined.
17961         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
17962         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
17963         (libc_feholdexcept_setroundl): Likewise.
17964         (libc_feholdexcept_setround_53bit): Likewise.
17965         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
17966         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
17967         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
17968         (libc_feupdateenv_53bit): Likewise.
17969         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
17970         (libc_feholdexcept): Convert from macro to inline function.
17971         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
17972         (libc_fesetenv, libc_feupdateenv): Likewise.
17973
17974         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
17975         not previously defined.
17976         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
17977         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
17978         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
17979         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
17980         * sysdeps/ieee754/flt-32/math_private.h: New file.
17981         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
17982         math_private.h below SET_FLOAT_WORD.
17983         (__isnan, __isinf_ns, __finite): Remove.
17984         (__isnanf, __isinf_nsf, __finitef): Remove.
17985
17986 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
17987
17988         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17989
17990 2012-03-17  David S. Miller  <davem@davemloft.net>
17991
17992         [BZ #6471]
17993         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
17994         for 2.16.
17995
17996 2012-03-16  David S. Miller  <davem@davemloft.net>
17997
17998         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
17999         warnings.
18000
18001         [BZ #6471]
18002         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
18003         properly.
18004         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
18005         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
18006         sysdep_routines when subdir is sysvipc.
18007         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
18008         __getshmlba helper.
18009
18010         * sysdeps/sparc/fpu/libm-test/ulps: Update.
18011
18012 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18013
18014         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
18015         [__LP64__].
18016
18017 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18018
18019         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
18020         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
18021         (__lround): Renamed to ...
18022         (__llround): This.  Replace long int with long long int.
18023         Define lround functions as aliases of llround functions.
18024         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
18025
18026 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18027
18028         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
18029         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
18030         adresses to uintptr_t.  Replace "long int" and "unsigned long
18031         int" with "greg_t" on va_arg.
18032
18033 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18034
18035         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
18036         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
18037
18038         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
18039         Move e_machine check before EI_CLASS check.  Handle x32
18040         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
18041         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
18042         SKIP_EM_IA_64 and include
18043         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
18044
18045         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
18046         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
18047         (add_system_dir): New macro.
18048
18049         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
18050         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
18051
18052 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18053
18054         [BZ #2551]
18055         [BZ #2552]
18056         [BZ #2553]
18057         [BZ #2554]
18058         [BZ #2562]
18059         [BZ #2563]
18060         [BZ #2565]
18061         [BZ #2566]
18062         [BZ #2576]
18063         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
18064         (y0): Likewise.
18065         * math/w_j0f.c (j0f): Likewise.
18066         (y0f): Likewise.
18067         * math/w_j0l.c (__j0l): Likewise.
18068         (__y0l): Likewise.
18069         * math/w_j1.c (j1): Likewise.
18070         (y1): Likewise.
18071         * math/w_j1f.c (j1f): Likewise.
18072         (y1f): Likewise.
18073         * math/w_j1l.c (__j1l): Likewise.
18074         (__y1l): Likewise.
18075         * math/w_jn.c (jn): Likewise.
18076         (yn): Likewise.
18077         * math/w_jnf.c (jnf): Likewise.
18078         (ynf): Likewise.
18079         * math/w_jnl.c (__jnl): Likewise.
18080         (__ynl): Likewise.
18081         * math/libm-test.inc (j0_test): Add more tests.
18082         (j1_test): Likewise.
18083         (jn_test): Likewise.  Add trailing semicolon to existing test.
18084         (y0_test): Likewise.
18085         (y1_test): Likewise.
18086         * sysdeps/i386/fpu/libm-test-ulps: Update.
18087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18088
18089         [BZ #13851]
18090         [BZ #13854]
18091         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
18092         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
18093         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
18094         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
18095         (__tanl): Set errno for infinite argument.
18096         * sysdeps/i386/fpu/mptan.c: Remove.
18097         * sysdeps/i386/fpu/s_tan.S: Likewise.
18098         * sysdeps/i386/fpu/s_tanl.S: Likewise.
18099         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
18100         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
18101         * math/libm-test.inc (tan_test): Add more tests and enable more
18102         tests for double and long double.
18103         * sysdeps/i386/fpu/libm-test-ulps: Update.
18104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18105
18106 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
18107
18108         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
18109         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
18110
18111 2012-03-16  Roland McGrath  <roland@hack.frob.com>
18112
18113         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
18114         * configure.in: Use it for both main tree and add-ons.
18115         * configure: Regenerated.
18116
18117 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18118
18119         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
18120
18121 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
18122
18123         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
18124         in comment.
18125
18126         [BZ #13851]
18127         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
18128         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
18129         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18130         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
18131         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
18132         infinite argument.
18133         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
18134         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
18135         != 0 for prec == 2.
18136         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
18137         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
18138         * sysdeps/i386/fpu/s_cosl.S: Likewise.
18139         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
18140         * sysdeps/i386/fpu/s_sinl.S: Likewise.
18141         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
18142         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
18143         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
18144         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
18145         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
18146         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
18147         * math/libm-test.inc (cos_test): Add more tests and enable more
18148         tests for long double.
18149         (sin_test): Likewise.
18150         (sincos_test): Likewise.
18151         * sysdeps/i386/fpu/libm-test-ulps: Update.
18152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18153
18154 2012-03-16  David S. Miller  <davem@davemloft.net>
18155
18156         * sysdeps/sparc/fpu/math_private.h: New file.
18157
18158 2012-03-15  David S. Miller  <davem@davemloft.net>
18159
18160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
18161         file.
18162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
18163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
18164         file.
18165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
18166         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
18167         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
18168         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
18169         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
18170         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
18171         sysdep routines.
18172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18173
18174         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
18175         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
18176
18177         * sysdeps/sparc/sparc-ifunc.h: New file.
18178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
18179         sparc-ifunc.h
18180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
18181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18182         Likewise.
18183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
18184         Likewise.
18185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
18186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
18187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
18188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
18189         Likewise.
18190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
18191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
18192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
18194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
18195         Likewise.
18196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
18197         Likewise.
18198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
18199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
18200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
18201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
18202         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
18203         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
18204         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
18205         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
18206         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
18207         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
18208         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
18209         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
18210         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
18211         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
18212         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
18213         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18214         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
18215         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18216         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
18217         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
18218         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
18219         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
18220         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
18221         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
18222
18223 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18224
18225         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
18226         scaling.
18227         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18228
18229 2012-03-15  Andreas Jaeger  <aj@suse.de>
18230
18231         [BZ #13852]
18232         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
18233         ieee754/flt-32 implementation for sin, cos and sincos.
18234         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
18235         * sysdeps/i386/fpu/s_cosf.S: Likewise.
18236         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
18237         * sysdeps/i386/fpu/s_sinf.S: Likewise.
18238         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
18239         ieee754/flt-32 implementation for tan.
18240
18241         * math/libm-test.inc (cos_test): Enable some large input tests for
18242         float as well
18243         (sin_test): Likewise.
18244         (sincos_test): Likewise.
18245         (tan_test): Add tests for large input.
18246
18247         * sysdeps/i386/fpu/libm-test-ulps: Update.
18248
18249 2012-03-15  Andreas Jaeger  <aj@suse.de>
18250
18251         [BZ #13658]
18252         * math/libm-test.inc (cos_test): Add more test cases.
18253         (sin_test): Likewise.
18254         (sincos_test): Likewise.
18255
18256 2012-03-15  Andreas Jaeger  <aj@suse.de>
18257
18258         [BZ #13837]
18259         * math/libm-test.inc (cos_test): Add a test case for large input
18260         value.
18261         (sin_test): Likewise.
18262         (sincos_test): Likewise.
18263
18264 2012-03-15  Andreas Jaeger  <aj@suse.de>,
18265         Joseph Myers  <joseph@codesourcery.com>
18266
18267         [BZ #13658]
18268         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
18269         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
18270         * sysdeps/i386/fpu/branred.c: Likewise.
18271         * sysdeps/i386/fpu/dosincos.c: Likewise.
18272         * sysdeps/i386/fpu/mpa.c: Likewise.
18273         * sysdeps/i386/fpu/s_cos.S: Likewise.
18274         * sysdeps/i386/fpu/s_sin.S: Likewise.
18275         * sysdeps/i386/fpu/s_sincos.S: Likewise.
18276         * sysdeps/i386/fpu/sincos32.c: Likewise.
18277
18278         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
18279         Define.
18280         (libc_feupdateenv_53bit): Define.
18281         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
18282         Define.
18283         (libc_feupdateenv_53bit): Define.
18284
18285         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
18286         53 bit (without extend i386 double precision).
18287
18288         * math/libm-test.inc (sincos_test): Add tests for large input.
18289         (sin): Likewise.
18290         (cos): Likewise.
18291
18292         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
18293
18294 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
18295
18296         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18297
18298 2012-03-15  David S. Miller  <davem@davemloft.net>
18299
18300         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
18301         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
18302         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
18303         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
18304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
18305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
18306         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
18307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
18308         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
18309         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
18310         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
18311         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
18312         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
18313         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
18314         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
18315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
18316         file.
18317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
18318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
18319         file.
18320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
18321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
18322         file.
18323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
18324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
18325         file.
18326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
18327         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
18328         fmin/fmax sysdep routines.
18329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
18330
18331 2012-03-14  David S. Miller  <davem@davemloft.net>
18332
18333         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
18334         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
18335         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
18336         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
18337         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
18338         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
18339         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
18340         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
18341         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
18342         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
18343         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
18344         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
18345         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
18346         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
18347         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
18348         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
18349         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
18350         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
18351         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
18352         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
18353         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
18354         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
18355         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
18356         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
18357         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
18358         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
18359         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
18360         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
18361         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
18362         routines.
18363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
18364         file.
18365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
18366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
18367         file.
18368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
18369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
18370         file.
18371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
18372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
18373         file.
18374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
18375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
18376         file.
18377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
18378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
18379         file.
18380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
18381         file.
18382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
18383         file.
18384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
18385         file.
18386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
18387         New file.
18388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
18389         file.
18390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
18391         file.
18392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
18393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
18394         file.
18395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
18396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
18397         file.
18398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
18399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
18400         file.
18401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
18402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
18403         VIS3 routines.
18404
18405         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
18406         New file.
18407
18408         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18409
18410         * sysdeps/sparc/configure.in: New file.
18411         * sysdeps/sparc/configure: Generate.
18412         * configure.in (libc_cv_sparc_as_vis3): Substitute.
18413         * configure: Regenerate.
18414         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
18415         * config.make.in (have-as-vis3): New.
18416         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
18417         available use -Av9d instead of -Av9a.
18418         * sysdeps/sparc/sparc64/Makefile: Likewise.
18419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
18420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
18421         New file.
18422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
18423         file.
18424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
18425         New file.
18426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
18427         file.
18428         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
18429         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
18430         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
18431         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
18432         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
18433
18434         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
18435         fzeros/fnegs to load 0x80000000 into a float register instead of
18436         using the stack.
18437         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
18438
18439 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18440
18441         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18442         bits/syscall.h.
18443         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
18444         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
18445         ($(inst_includedir)/bits/syscall.h): Remove rule.
18446         ($(objpfx)bits/syscall.d): Include instead of
18447         $(objpfx)syscall-list.d.
18448         (generated): Change syscall-list.h and syscall-list.d to
18449         bits/syscall.h and bits/syscall.d.
18450
18451 2012-03-14  Roland McGrath  <roland@hack.frob.com>
18452
18453         [BZ #13846]
18454         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
18455
18456 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
18457
18458         [BZ #13841]
18459         * math/s_csqrt.c: Include <float.h>.
18460         (__csqrt): Scale large or subnormal inputs.
18461         * math/s_csqrtf.c: Likewise.
18462         * math/s_csqrtl.c: Likewise.
18463         * math/libm-test.inc (csqrt_test): Add more tests.
18464         * sysdeps/i386/fpu/libm-test-ulps: Update.
18465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18466
18467         [BZ #13840]
18468         * math/libm-test.inc (hypot_test): Add more tests.
18469
18470 2012-03-13  David S. Miller  <davem@davemloft.net>
18471
18472         [BZ #13840]
18473         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
18474         double-precision for the calculation instead of scaling.
18475
18476 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
18477
18478         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
18479         manipulate bits before adding and subtracting TWO52[sx].
18480         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
18481         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
18482         Likewise.
18483         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
18484
18485 2012-03-13  David S. Miller  <davem@davemloft.net>
18486
18487         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
18488         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
18489         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
18490         rtld-global-offsets.h
18491         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18492
18493         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
18494         large parameters.
18495
18496         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
18497
18498         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
18499         'err' in the ifdef scope in which it is actually used.
18500
18501         * nss/nss_db/db-init.c: Include string.h
18502
18503 2012-03-12  David S. Miller  <davem@davemloft.net>
18504
18505         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18506         masking out of the most significant byte of random value used.
18507         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18508         Fix coding style in previous change.
18509
18510         * sysdeps/unix/sysv/linux/kernel-features.h
18511         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
18512         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
18513         expression.
18514         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
18515         later.
18516
18517 2012-03-11  David S. Miller  <davem@davemloft.net>
18518
18519         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
18520         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
18521         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
18522         for 'resultvar' otherwise things get truncated on 64-bit.
18523
18524         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18525         Fix masking out of the most significant byte of random value used.
18526
18527         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18528
18529 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
18530
18531         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18532
18533 2012-03-09  David S. Miller  <davem@davemloft.net>
18534
18535         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
18536         variables with appropriate CPP guards.
18537         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
18538         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
18539         on resulting framesize and the management of the outregs buffer for pltexit.
18540         Preserve floating point return values across _dl_call_pltexit call.
18541         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
18542         framesize and the management of the outregs buffer for pltexit.
18543         Preserve floating point return values across _dl_call_pltexit
18544         call.
18545         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
18546         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
18547         (print_exit): Fix format string for return register value.
18548
18549 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
18550
18551         * sunrpc/Makefile (others): Add rpcgen.
18552         ($(objpfx)rpcgen): Remove special build rule and dependency on
18553         libc.
18554         * sunrpc/rpcgen.c: New file.
18555
18556 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
18557
18558         [BZ #13673]
18559         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
18560         * stdio-common/bug-vfprintf-nargs.c: Likewise.
18561         * sysdeps/i386/crti.S: Likewise.
18562         * sysdeps/i386/crtn.S: Likewise.
18563         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
18564         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
18565         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
18566         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
18567         * sysdeps/sh/crti.S: Likewise.
18568         * sysdeps/sh/crtn.S: Likewise.
18569         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
18570
18571         [BZ #13673]
18572         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
18573         with URL.
18574         * locale/programs/locfile-kw.gperf: Likewise.
18575         * locale/programs/charmap-kw.h: Regenerated.
18576         * locale/programs/locfile-kw.h: Likewise.
18577
18578         [BZ #13673]
18579         * intl/plural.y: Replace FSF snail mail address with URL.
18580         * intl/plural.c: Regenerated.
18581
18582 2012-03-09  Richard Henderson  <rth@twiddle.net>
18583
18584         * include/math_private.h: Remove file.
18585         * math/math_private.h: Move file ...
18586         * sysdeps/generic/math_private.h: ... here.
18587
18588         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
18589         * sysdeps/powerpc/fpu/math_private.h: Likewise.
18590         * sysdeps/x86_64/fpu/math_private.h: Likewise.
18591
18592         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
18593         and <math_private.h>.
18594         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
18595         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
18596         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18597         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18598         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18599         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
18600         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
18601         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
18602         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
18603         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18604         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18605         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18606         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18607         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18608         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
18609         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18610         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18611         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18612         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18613         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18614         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
18615         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
18616         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
18617         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18618         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
18619         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
18620         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18621         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18622         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
18623         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18624         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18625         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18626         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
18627         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
18628         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
18629         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18630         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18631         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
18632         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
18633         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
18634         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
18635         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
18636         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
18637         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
18638         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
18639         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
18640         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18641         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
18642         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18643         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
18644         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18645         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
18646         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
18647         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18648         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
18649         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
18650         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
18651         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
18652         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
18653         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
18654         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18655         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
18656         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18657         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18658         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
18659         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
18660         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
18661         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18662         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
18663         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
18664         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18665         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
18666         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18667         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18668         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
18669         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
18670         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
18671         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18672         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
18673         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
18674         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18675         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18676         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18677         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
18678         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18679         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
18680         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
18681         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
18682         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
18683         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
18684         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18685         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
18686         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18687         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18688         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
18689         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
18690         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18691         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18692         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18693         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18694         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
18695         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
18696         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
18697         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
18698         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
18699         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
18700         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18701         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
18702         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
18703         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18704         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18705         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18706         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18707         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18708         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
18709         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
18710         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
18711         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
18712         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18713         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18714         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
18715         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
18716         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
18717         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
18718         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
18719         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
18720         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
18721         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
18722         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
18723         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18724         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
18725         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18726         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
18727         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18728         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
18729         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
18730         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18731         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18732         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
18733         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
18734         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
18735         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
18736         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
18737         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
18738         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
18739         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18740         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
18741         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18742         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
18743         * sysdeps/ieee754/k_standard.c: Likewise.
18744         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
18745         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
18746         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18747         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
18748         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18749         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
18750         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
18751         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18752         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
18753         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18754         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18755         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
18756         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
18757         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
18758         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
18759         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18760         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
18761         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
18762         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18763         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
18764         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18765         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18766         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18767         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18768         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18769         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
18770         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
18771         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
18772         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
18773         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18774         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18775         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
18776         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
18777         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
18778         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
18779         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
18780         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
18781         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
18782         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
18783         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
18784         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
18785         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
18786         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18787         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
18788         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
18789         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
18790         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
18791         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18792         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18793         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18794         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18795         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
18796         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
18797         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
18798         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
18799         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
18800         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
18801         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
18802         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
18803         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18804         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
18805         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
18806         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
18807         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
18808         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
18809         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18810         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
18811         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18812         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
18813         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
18814         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18815         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18816         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
18817         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
18818         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
18819         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18820         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
18821         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
18822         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18823         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
18824         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18825         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18826         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18827         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18828         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18829         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
18830         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
18831         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
18832         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
18833         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18834         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
18835         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
18836         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
18837         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
18838         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
18839         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
18840         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
18841         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
18842         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
18843         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
18844         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
18845         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
18846         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18847         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18848         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
18849         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
18850         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
18851         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
18852         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
18853         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
18854         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18855         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
18856         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
18857         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18858         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
18859         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18860         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
18861         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18862         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18863         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18864         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18865         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
18866         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18867         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18868         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18869         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
18870         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18871         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
18872         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
18873         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18874         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18875         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18876         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18877         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
18878         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
18879         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
18880         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
18881         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
18882         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18883         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
18884         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
18885         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
18886         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
18887         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
18888         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
18889         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
18890         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
18891         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18892         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18893         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
18894         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
18895         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
18896         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
18897         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18898         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
18899         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
18900         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
18901         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18902         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
18903         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
18904         * sysdeps/ieee754/s_lib_version.c: Likewise.
18905         * sysdeps/ieee754/s_matherr.c: Likewise.
18906         * sysdeps/ieee754/s_signgam.c: Likewise.
18907         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18908         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18909         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
18910         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
18911         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
18912         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
18913         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
18914         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
18915         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
18916         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
18917         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
18918         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
18919         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
18920         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
18921         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
18922         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
18923         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
18924         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
18925         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
18926         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
18927         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
18928
18929 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
18930
18931         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
18932         * sunrpc/rpc_main.c: Likewise.
18933         * sunrpc/rpc_svcout.c: Likewise.
18934
18935 2012-03-09  David S. Miller  <davem@davemloft.net>
18936
18937         * include/math_private.h: New file.
18938
18939 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
18940
18941         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
18942         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
18943         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
18944         from <bits/socket_type.h>.
18945         (enum __socket_type): Don't define here.
18946         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
18947         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18948         bits/socket_type.h.
18949
18950         [BZ #13566]
18951         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
18952         checking __USE_GNU.
18953
18954         * Makerules ($(inst_includedir)/%.h): New rule.
18955         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
18956         (install-others): Remove variable setting.
18957         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
18958
18959 2012-03-08  Richard Henderson  <rth@twiddle.net>
18960
18961         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
18962         from macro to inline function; merge with the
18963         !__LIBC_INTERNAL_MATH_INLINES version.
18964         (__ieee754_sqrtf): Likewise.
18965
18966         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
18967         to inline function.
18968         (__rintf, __floor, __floorf): Likewise.
18969
18970         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
18971         macro to inline function.
18972         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
18973
18974         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
18975         not <math/math_private.h>.
18976
18977 2012-03-08  David S. Miller  <davem@davemloft.net>
18978
18979         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
18980         copyright year.
18981         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
18982
18983 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
18984
18985         * resolv/gai_misc.c (handle_requests): Fix struct timespec
18986         normalization.
18987         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
18988         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
18989
18990 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
18991
18992         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
18993         be defined individually, they must be defined as a block.  Define
18994         S for printing a string instead of hidint the different by using a
18995         macro for adding the 'l'.
18996         * stdio-common/tst-fphex-wide.c: Adjust.
18997
18998 2012-03-07  Marek Polacek  <polacek@redhat.com>
18999
19000         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
19001
19002 2012-03-08  Marek Polacek  <polacek@redhat.com>
19003
19004         [BZ #13806]
19005         * stdio-common/Makefile (tests): Add tst-fphex-wide.
19006         * stdio-common/tst-fphex.c: Define a few macros to make the
19007         test reusable.  Use them.
19008         * stdio-common/tst-fphex-wide.c: New file.
19009
19010 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
19011
19012         [BZ #6911]
19013         * manual/macros.texi (gnusystems): New macro.
19014         (nongnusystems): Likewise.
19015         (gnulinuxhurdsystems): Likewise.
19016         (gnuhurdsystems): Likewise..
19017         (gnulinuxsystems): Likewise.
19018         * manual/charset.texi: Use new macros or @theglibc{} to refer to
19019         variants of the GNU system, not "GNU system".
19020         * manual/conf.texi: Likewise.
19021         * manual/errno.texi: Likewise.  Update example of errno macro
19022         expansion.
19023         * manual/filesys.texi: Likewise.
19024         (getumask): Document as specific to GNU/Hurd.
19025         * manual/install.texi: Likewise.  Reword some references to
19026         GNU/Linux.
19027         * manual/intro.texi: Likewise.
19028         * manual/io.texi: Likewise.
19029         (File Name Portability): Detail which constraints are inapplicable
19030         to all GNU systems and which are only inapplicable to GNU/Hurd.
19031         * manual/job.texi: Likewise.
19032         * manual/llio.texi: Likewise.
19033         (O_NOCTTY): Document as present on GNU/Linux.
19034         * manual/maint.texi: Likewise.
19035         * manual/memory.texi: Likewise.
19036         * manual/pattern.texi: Likewise.
19037         * manual/pipe.texi: Likewise.
19038         * manual/process.texi: Likewise.
19039         * manual/resource.texi: Likewise.
19040         (RUSAGE_CHILDREN): Remove statement about specifying a particular
19041         child on GNU/Hurd.
19042         * manual/setjmp.texi: Likewise.
19043         * manual/signal.texi: Likewise.
19044         * manual/startup.texi: Likewise.
19045         * manual/stdio.texi: Likewise.
19046         * manual/terminal.texi: Likewise.
19047         (ONLCR): Document as POSIX.
19048         (OXTABS): Document availability on GNU/Linux as XTABS.
19049         (ONOEOT): Document availability separately from other bits.
19050         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
19051         * manual/time.texi: Likewise.
19052         * manual/users.texi: Likewise.
19053         * INSTALL: Regenerated.
19054         * sysdeps/gnu/errlist.c: Regenerated.
19055
19056         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
19057         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
19058         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
19059         puts.
19060         * configure: Regenerated.
19061
19062 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
19063
19064         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
19065         default includes instead of AC_HEADER_CHECK.
19066         * sysdeps/i386/configure: Regenerated.
19067
19068         [BZ #10716]
19069         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
19070         * math/s_cacoshf.c (__cacoshf): Likewise.
19071         * math/s_cacoshl.c (__cacoshl): Likewise.
19072         * math/s_casinh.c (__casinh): Set signs of result from argument.
19073         * math/s_casinhf.c (__casinhf): Likewise.
19074         * math/s_casinhl.c (__casinhl): Likewise.
19075         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
19076         (casinh_test): Add more tests.
19077         * sysdeps/i386/fpu/libm-test-ulps: Update.
19078         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19079
19080 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
19081
19082         * po/zh_TW.po: Update from translation team.
19083
19084         * login/Makefile (distribute): Remove variable.
19085         * catgets/Makefile: Likewise.
19086         * mach/Makefile: Likewise.
19087         * malloc/Makefile: Likewise.
19088         * misc/Makefile: Likewise.
19089         * iconv/Makefile: Likewise.
19090         * nscd/Makefile: Likewise.
19091         * hurd/Makefile: Likewise.
19092         * manual/Makefile: Likewise.
19093         * locale/Makefile: Likewise.
19094         * intl/Makefile: Likewise.
19095         * conform/Makefile: Likewise.
19096         * nss/Makefile: Likewise.
19097         * time/Makefile: Likewise.
19098         * soft-fp/Makefile: Likewise.
19099         * dirent/Makefile: Likewise.
19100         * gmon/Makefile: Likewise.
19101         * po/Makefile: Likewise.
19102         * rt/Makefile: Likewise.
19103         * socket/Makefile: Likewise.
19104         * math/Makefile: Likewise.
19105         * signal/Makefile: Likewise.
19106         * debug/Makefile: Likewise.
19107         * elf/Makefile: Likewise.
19108         * timezone/Makefile: Likewise.
19109         * stdlib/Makefile: Likewise.
19110         * iconvdata/Makefile: Likewise.
19111         * sunrpc/Makefile: Likewise.
19112         * io/Makefile: Likewise.
19113         * argp/Makefile: Likewise.
19114         * inet/Makefile: Likewise.
19115         * hesiod/Makefile: Likewise.
19116         * grp/Makefile: Likewise.
19117         * csu/Makefile: Likewise.
19118         * wctype/Makefile: Likewise.
19119         * crypt/Makefile: Likewise.
19120         * libio/Makefile: Likewise.
19121         * string/Makefile: Likewise.
19122         * nis/Makefile: Likewise.
19123         * resolv/Makefile: Likewise.
19124         * stdio-common/Makefile: Likewise.
19125         * wcsmbs/Makefile: Likewise.
19126         * dlfcn/Makefile: Likewise.
19127         * posix/Makefile: Likewise.
19128
19129         [BZ #6959]
19130         * timezone/Makefile: Don't install timezone files, just the programs
19131         and scripts.
19132
19133 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
19134
19135         * nss/databases.def: Add missing gshadow entry.
19136
19137         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
19138
19139 2012-03-06  Marek Polacek  <polacek@redhat.com>
19140
19141         [BZ #13726]
19142         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
19143         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
19144         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
19145         * stdio-common/tst-long-dbl-fphex.c: New file.
19146
19147 2012-03-06  David S. Miller  <davem@davemloft.net>
19148
19149         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19150         (set_obp_int): New function.
19151         (get_obp_int): New function.
19152         (__get_clockfreq_via_dev_openprom): Likewise.
19153         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
19154         Avoid unused variable warnings on 'val' and use builtin_expect.
19155         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
19156         __builtin_expect.
19157         (INLINE_CLONE_SYSCALL): Likewise.
19158
19159 2012-03-05  David S. Miller  <davem@davemloft.net>
19160
19161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19162
19163 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
19164
19165         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19166
19167         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
19168         only for |x| >= 40.
19169         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
19170
19171 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19172
19173         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
19174         Replace gettimeofday with __vdso_gettimeofday.
19175
19176         * sysdeps/unix/sysv/linux/x86_64/init-first.c
19177         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
19178         __vdso_clock_gettime and __vdso_getcpu.
19179
19180         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
19181         time with __vdso_time.
19182
19183 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19184
19185         * manual/lang.texi (size_t): Note types to which size_t may be
19186         equivalent with the GNU C Library, but do not describe when
19187         differences between them are significant.
19188
19189 2012-03-05  Andreas Jaeger  <aj@suse.de>
19190
19191         * sysdeps/i386/fpu/libm-test-ulps: Update.
19192
19193 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
19194
19195         [BZ #3976]
19196         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
19197         (__ieee754_pow): Save and restore rounding mode and use
19198         round-to-nearest for main computations.
19199         * math/libm-test.inc (pow_test_tonearest): New function.
19200         (pow_test_towardzero): Likewise.
19201         (pow_test_downward): Likewise.
19202         (pow_test_upward): Likewise.
19203         (main): Call the new functions.
19204         * sysdeps/i386/fpu/libm-test-ulps: Update.
19205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19206
19207         [BZ #3976]
19208         * math/libm-test.inc (cosh_test_tonearest): New function.
19209         (cosh_test_towardzero): Likewise.
19210         (cosh_test_downward): Likewise.
19211         (cosh_test_upward): Likewise.
19212         (sinh_test_tonearest): Likewise.
19213         (sinh_test_towardzero): Likewise.
19214         (sinh_test_downward): Likewise.
19215         (sinh_test_upward): Likewise.
19216         (main): Call the new functions.
19217         * sysdeps/i386/fpu/libm-test-ulps: Update.
19218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19219
19220 2012-03-05  Tom de Vries  <tom@codesourcery.com>
19221
19222         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
19223         default stack guard is set in last bytes.
19224         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
19225
19226 2012-03-05  Kees Cook  <keescook@chromium.org>
19227
19228         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
19229
19230         [BZ #13656]
19231         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
19232         possibly allocate from heap instead of stack.
19233         * stdio-common/bug-vfprintf-nargs.c: New file.
19234         * stdio-common/Makefile (tests): Add nargs overflow test.
19235
19236 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
19237
19238         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19239
19240 2012-03-03  Marek Polacek  <polacek@redhat.com>
19241
19242         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
19243         * math/math_private.h: Likewise.
19244         * stdlib/tst-strtod.c: Likewise.
19245         * sysdeps/i386/i486/bits/atomic.h: Likewise.
19246         * sysdeps/x86_64/bits/atomic.h: Likewise.
19247
19248 2012-03-02  David S. Miller  <davem@davemloft.net>
19249
19250         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
19251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
19252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
19253         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
19254         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
19255         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
19256         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
19257         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
19258
19259 2012-03-02  Roland McGrath  <roland@hack.frob.com>
19260
19261         [BZ #13792]
19262         * manual/examples/README: New file, says the example source files
19263         can be used under GPL>=2.
19264         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
19265         line containing just "*/".
19266         * manual/examples/add.c: Add copyright header (GPL>=2).
19267         * manual/examples/argp-ex1.c: Likewise.
19268         * manual/examples/argp-ex2.c: Likewise.
19269         * manual/examples/argp-ex3.c: Likewise.
19270         * manual/examples/argp-ex4.c: Likewise.
19271         * manual/examples/atexit.c: Likewise.
19272         * manual/examples/db.c: Likewise.
19273         * manual/examples/dir.c: Likewise.
19274         * manual/examples/dir2.c: Likewise.
19275         * manual/examples/execinfo.c: Likewise.
19276         * manual/examples/filecli.c: Likewise.
19277         * manual/examples/filesrv.c: Likewise.
19278         * manual/examples/fmtmsgexpl.c: Likewise.
19279         * manual/examples/genpass.c: Likewise.
19280         * manual/examples/inetcli.c: Likewise.
19281         * manual/examples/inetsrv.c: Likewise.
19282         * manual/examples/isockad.c: Likewise.
19283         * manual/examples/longopt.c: Likewise.
19284         * manual/examples/memopen.c: Likewise.
19285         * manual/examples/memstrm.c: Likewise.
19286         * manual/examples/mkfsock.c: Likewise.
19287         * manual/examples/mkisock.c: Likewise.
19288         * manual/examples/mygetpass.c: Likewise.
19289         * manual/examples/pipe.c: Likewise.
19290         * manual/examples/popen.c: Likewise.
19291         * manual/examples/rprintf.c: Likewise.
19292         * manual/examples/search.c: Likewise.
19293         * manual/examples/select.c: Likewise.
19294         * manual/examples/setjmp.c: Likewise.
19295         * manual/examples/sigh1.c: Likewise.
19296         * manual/examples/sigusr.c: Likewise.
19297         * manual/examples/stpcpy.c: Likewise.
19298         * manual/examples/strdupa.c: Likewise.
19299         * manual/examples/strftim.c: Likewise.
19300         * manual/examples/strncat.c: Likewise.
19301         * manual/examples/subopt.c: Likewise.
19302         * manual/examples/swapcontext.c: Likewise.
19303         * manual/examples/termios.c: Likewise.
19304         * manual/examples/testopt.c: Likewise.
19305         * manual/examples/testpass.c: Likewise.
19306         * manual/examples/timeval_subtract.c: Likewise.
19307
19308         [BZ #13792]
19309         * manual/time.texi (Elapsed Time): Move timeval_subtract example
19310         function to ...
19311         * manual/timeval_subtract.c.texi: ... here, new file.
19312
19313 2012-03-02  David S. Miller  <davem@davemloft.net>
19314
19315         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
19316
19317 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
19318
19319         [BZ #3976]
19320         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
19321         (__sin): Save and restore rounding mode and use round-to-nearest
19322         for all computations.
19323         (__cos): Save and restore rounding mode and use round-to-nearest
19324         for all computations.
19325         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
19326         <fenv.h>.
19327         (tan): Save and restore rounding mode and use round-to-nearest for
19328         all computations.
19329         * math/libm-test.inc (cos_test_tonearest): New function.
19330         (cos_test_towardzero): Likewise.
19331         (cos_test_downward): Likewise.
19332         (cos_test_upward): Likewise.
19333         (sin_test_tonearest): Likewise.
19334         (sin_test_towardzero): Likewise.
19335         (sin_test_downward): Likewise.
19336         (sin_test_upward): Likewise.
19337         (tan_test_tonearest): Likewise.
19338         (tan_test_towardzero): Likewise.
19339         (tan_test_downward): Likewise.
19340         (tan_test_upward): Likewise.
19341         (main): Call the new functions.
19342         * sysdeps/i386/fpu/libm-test-ulps: Update.
19343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19344
19345         [BZ #10135]
19346         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
19347         small n, then large n, before computing and testing k+n.
19348         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
19349         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
19350         Likewise.
19351         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
19352         Likewise.
19353         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
19354         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
19355         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
19356         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
19357         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
19358         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
19359         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
19360         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
19361         * math/libm-test.inc (scalbn_test): Add more tests.
19362         (scalbln_test): Likewise.
19363
19364         * manual/filesys.texi (mode_t): Describe constraints on size and
19365         signedness, not exact equivalence to a particular type.
19366         (ino_t): Likewise.
19367         (ino64_t): Likewise.
19368         (dev_t): Likewise.
19369         (nlink_t): Likewise.
19370         (blkcnt_t): Likewise.
19371         (blkcnt64_t): Likewise.
19372         * manual/llio.texi (off_t): Likewise.
19373
19374         [BZ #3976]
19375         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
19376         (__ieee754_exp): Save and restore rounding mode and use
19377         round-to-nearest for all computations.
19378         * math/libm-test.inc (exp_test_tonearest): New function.
19379         (exp_test_towardzero): Likewise.
19380         (exp_test_downward): Likewise.
19381         (exp_test_upward): Likewise.
19382         (main): Call the new functions.
19383         * sysdeps/i386/fpu/libm-test-ulps: Update.
19384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19385
19386 2012-03-01  Chris Demetriou  <cgd@google.com>
19387
19388         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
19389         have predictable order.
19390
19391 2012-03-01  David S. Miller  <davem@davemloft.net>
19392
19393         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
19394
19395         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
19396         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
19397         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
19398         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
19399
19400         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
19401         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
19402         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
19403         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
19404         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
19405         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
19406         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
19407         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
19408         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
19409
19410         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19411
19412         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
19413         * sysdeps/sparc/fpu/libm-test-ulps: to here.
19414         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
19415
19416         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
19417         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
19418         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
19419         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
19420         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
19421         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
19422         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
19423         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
19424         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
19425         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
19426         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
19427         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19428         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
19429         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
19430         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
19431         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
19432         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
19433         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
19434         * sysdeps/sparc/elf/configure: Regenerated.
19435
19436 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
19437
19438         * configure.in (AS, LD): Require binutils 2.20 or later.
19439         * configure: Regenerated.
19440         * manual/install.texi (Tools for Compilation): Give binutils 2.20
19441         as required minimum version.
19442         * INSTALL: Regenerated.
19443
19444         [BZ #2541]
19445         [BZ #4108]
19446         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
19447         before squaring exponent.
19448         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
19449         bottom long double and 27 bits of top long double before squaring
19450         exponent.
19451         * math/libm-test.inc (erfc_test): Add more tests.
19452         * sysdeps/i386/fpu/libm-test-ulps: Update.
19453         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19455
19456 2012-03-01  Kai Tietz  <ktietz@redhat.com>
19457
19458         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
19459         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
19460         containing bit-fields.
19461         * soft-fp/extended.h (_FP_UNION_E): Likewise.
19462         * soft-fp/single.h (_FP_UNION_S): Likewise.
19463         * soft-fp/double.h (_FP_UNION_D): Likewise.
19464
19465 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19466
19467         [BZ #13786]
19468         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
19469         not include ../strcmp.S.
19470         [USE_AS_STRNCASECMP_L]: Likewise.
19471         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
19472         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
19473         * sysdeps/i386/i686/multiarch/strncase_l-c.c
19474         (__strncasecmp_l_ia32): Define as alias to
19475         __strncasecmp_l_nonascii.
19476
19477         [BZ #5794]
19478         * math/libm-test.inc (expm1_test): Add test for bug 5794.
19479         * sysdeps/i386/fpu/libm-test-ulps: Update.
19480         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19481
19482         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
19483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19484
19485 2012-02-29  Jeff Law  <law@redhat.com>
19486
19487         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
19488         out of bounds read.
19489
19490 2012-02-29  Marek Polacek  <polacek@redhat.com>
19491
19492         [BZ #13706]
19493         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
19494         * elf/Makefile: Add rules to run tst-unused-dep.out.
19495
19496 2012-02-28  David S. Miller  <davem@davemloft.net>
19497
19498         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
19499         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
19500         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
19501         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
19502         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
19503         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
19504
19505 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
19506
19507         * math/libm-test.inc (llround_test): Move one test from
19508         lround_test.  Use TEST_f_L in moved test.
19509         (lround_test): Move misplaced test to llround_test.  Add testcase
19510         from bug 2561.
19511
19512 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
19513
19514         * sysdeps/x86_64/fpu/e_expf.S: New file.
19515         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
19516
19517 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
19518
19519         [BZ #13637]
19520         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
19521         of remain_len that may cause incomplete multi-byte character and
19522         false match.
19523         * posix/bug-regex33.c: New file.
19524         * posix/Makefile (tests): Add bug-regex33.
19525
19526 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
19527
19528         * manual/macros.texi: New file.
19529         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
19530         * manual/libc.texinfo: Include macros.texi.
19531         * manual/creatute.texi: Likewise.
19532         * manual/install.texi: Likewise.
19533         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
19534         @glibcadj{} in references to the GNU C Library.
19535         * manual/charset.texi: Likewise.
19536         * manual/conf.texi: Likewise.
19537         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
19538         when not using those macros.
19539         * manual/creature.texi: Likewise.
19540         * manual/crypt.texi: Likewise.
19541         * manual/errno.texi: Likewise.
19542         * manual/filesys.texi: Likewise.
19543         * manual/header.texi: Likewise.
19544         * manual/install.texi: Likewise.
19545         * manual/intro.texi: Likewise.
19546         * manual/io.texi: Likewise.
19547         * manual/job.texi: Likewise.
19548         * manual/lang.texi: Likewise.
19549         * manual/libc.texiinfo: Likewise.
19550         * manual/llio.texi: Likewise.
19551         * manual/locale.texi: Likewise.
19552         * manual/maint.texi: Likewise.
19553         * manual/math.texi: Likewise.
19554         * manual/memory.texi: Likewise.
19555         * manual/message.texi: Likewise.
19556         * manual/nss.texi: Likewise.
19557         * manual/pattern.texi: Likewise.
19558         * manual/process.texi: Likewise.
19559         * manual/resource.texi: Likewise.
19560         * manual/search.texi: Likewise.
19561         * manual/setjmp.texi: Likewise.
19562         * manual/signal.texi: Likewise.
19563         * manual/socket.texi: Likewise.
19564         * manual/startup.texi: Likewise.
19565         * manual/stdio.texi: Likewise.
19566         * manual/string.texi: Likewise.
19567         * manual/sysinfo.texi: Likewise.
19568         * manual/syslog.texi: Likewise.
19569         * manual/terminal.texi: Likewise.
19570         * manual/time.texi: Likewise.
19571         * manual/users.texi: Likewise.
19572         * INSTALL: Regenerated.
19573         * NOTES: Regenerated.
19574         * sysdeps/gnu/errlist.c: Regenerated.
19575
19576 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
19577
19578         * include/dirent.h: Include <dirstream.h> before
19579         <dirent/dirent.h>.
19580
19581 2012-02-28  David S. Miller  <davem@davemloft.net>
19582
19583         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
19584         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
19585         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
19586         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
19587
19588 2012-02-27  David S. Miller  <davem@davemloft.net>
19589
19590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
19591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
19592         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
19593         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
19594
19595         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
19596         frame pointer instead of stack pointer relative arg slot.
19597         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19598         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19599         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19600
19601 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
19602
19603         [BZ #3992]
19604         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
19605
19606 2012-02-27  David S. Miller  <davem@davemloft.net>
19607
19608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
19609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
19610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
19611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
19612         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
19613         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
19614         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
19615         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
19616
19617 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19618
19619         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
19620         later.  Allow versions 5-9.
19621         * configure: Regenerated.
19622         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
19623         required minimum version and 4.6 as recommended version.  Do not
19624         mention bugs in GCC 2.7 and 2.8.
19625         * INSTALL: Regenerated.
19626
19627 2012-02-27  David S. Miller  <davem@davemloft.net>
19628
19629         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
19630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
19631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
19632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
19633         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
19634         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
19635         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
19636         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
19637
19638         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
19639         manipulate bits before adding and subtracting TWO112[sx].
19640         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
19641
19642 2012-02-27  Roland McGrath  <roland@hack.frob.com>
19643
19644         [BZ #13775]
19645         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
19646         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
19647         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
19648         being in POSIX, because they are in 1003.1-2008.
19649
19650         * rt/tst-aio.c: Include <fcntl.h>.
19651         * rt/tst-aio7.c: Likewise.
19652         * rt/tst-aio64.c: Likewise.
19653
19654         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
19655
19656 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
19657
19658         * manual/install.texi (--with-headers): Describe headers as
19659         interface headers, not private headers.
19660         (Specific advice for GNU/Linux systems): Describe use of headers
19661         from "make headers_install", not private headers from older
19662         kernels.
19663         * INSTALL: Regenerated.
19664         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
19665         Change to 2.6.19.
19666         * sysdeps/unix/sysv/linux/configure: Regenerated.
19667
19668         * manual/llio.texi (fclean): Remove documentation.
19669
19670         * manual/Makefile (libc-texi-generated): New variable.  Include
19671         version.texi.
19672         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
19673         $(libc-texi-generated), not duplicated list of files.
19674         (version.texi, stamp-version): New rules.
19675         (realclean): Remove $(libc-texi-generated), not individual files
19676         from that list.  Do not remove dir-add.texinfo.
19677         * manual/libc.texinfo: Comment out uses of edition numbers and
19678         references to printed manual.  Remove last-updated dates.
19679         (EDITION): Comment out.
19680         (ISBN): Likewise.
19681         (VERSION, UPDATED): Remove.
19682         (version.texi): Include.
19683
19684 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
19685
19686         * sysdeps/posix/spawni.c: Include <signal.h>.
19687         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
19688         * sysdeps/pthread/aio_fsync.c: Likewise.
19689
19690 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
19691
19692         * conform/Makefile (tests): Run only when not cross-compiling and
19693         when fast-check is not defined.
19694
19695         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
19696         * conform/data/limits.h-data: Fixes for POSIX2008.
19697         * conform/run-conformtest.sh: Run all tests.
19698         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
19699         headers.
19700         * include/bits/dlfcn.h: Likewise.
19701         * include/langinfo.h: Likewise.
19702         * include/monetary.h: Likewise.
19703         * include/sys/poll.h: Likewise.
19704
19705         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
19706         for __USE_GNU.
19707         * posix/spawn.h: Define __need_sigset_t.
19708         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
19709         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
19710         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
19711         to get sigevent_t only.
19712         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
19713         only for __USE_GNU.
19714         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19715         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
19716         process_vm_writev only for __USE_GNU.
19717         * termios/termios.h: Declare tcgetsid also for POSIX2008.
19718
19719         * conform/Makefile: For now ignore errors from run-conformtest.
19720         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
19721         POSIX to avoid namespace pollution.  Don't prepend headers.
19722         * conform/data/aio.h-data: Fixes for POSIX testing.
19723         * conform/data/fcntl.h-data: Likewise.
19724         * conform/data/glob.h-data: Likewise.
19725         * conform/data/grp.h-data: Likewise.
19726         * conform/data/pthread.h-data: Likewise.
19727         * conform/data/pwd.h-data: Likewise.
19728         * conform/data/signal.h-data: Likewise.
19729         * conform/data/spawn.h-data: Likewise.
19730         * conform/data/stdio.h-data: Likewise.
19731         * conform/data/stdlib.h-data: Likewise.
19732         * conform/data/stropts.h-data: Likewise.
19733         * conform/data/sys/mman.h-data: Likewise.
19734         * conform/data/sys/stat.h-data: Likewise.
19735         * conform/data/sys/types.h-data: Likewise.
19736         * conform/data/sys/wait.h-data: Likewise.
19737         * conform/data/time.h-data: Likewise.
19738         * conform/data/unistd.h-data: Likewise.
19739         * conform/data/utime.h-data: Likewise.
19740
19741         * io/sys/stat.h: fchmod was always in POSIX.
19742         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
19743         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
19744         * rt/aio.h: Define __need_timespec before including <time.h>.
19745         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
19746         struct.  Add forward declaration of pthread_attr_t and use it in
19747         sigevent.
19748         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19749         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19750         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
19751         always remove CLK_TCK definition.
19752
19753 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
19754
19755         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
19756
19757 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
19758
19759         * conform/run-conformtest.sh: New file.
19760         * conform/Makefile: Run run-conformtest for tests.
19761         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
19762         support.
19763
19764         * conform/data/uchar.h-data: New file.
19765         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
19766         * conform/data/arpa/inet.h-data: Likewise.
19767         * conform/data/assert.h-data: Likewise.
19768         * conform/data/complex.h-data: Likewise.
19769         * conform/data/cpio.h-data: Likewise.
19770         * conform/data/ctype.h-data: Likewise.
19771         * conform/data/dirent.h-data: Likewise.
19772         * conform/data/dlfcn.h-data: Likewise.
19773         * conform/data/errno.h-data: Likewise.
19774         * conform/data/fcntl.h-data: Likewise.
19775         * conform/data/float.h-data: Likewise.
19776         * conform/data/fmtmsg.h-data: Likewise.
19777         * conform/data/fnmatch.h-data: Likewise.
19778         * conform/data/ftw.h-data: Likewise.
19779         * conform/data/glob.h-data: Likewise.
19780         * conform/data/grp.h-data: Likewise.
19781         * conform/data/iconv.h-data: Likewise.
19782         * conform/data/inttypes.h-data: Likewise.
19783         * conform/data/langinfo.h-data: Likewise.
19784         * conform/data/libgen.h-data: Likewise.
19785         * conform/data/limits.h-data: Likewise.
19786         * conform/data/locale.h-data: Likewise.
19787         * conform/data/math.h-data: Likewise.
19788         * conform/data/monetary.h-data: Likewise.
19789         * conform/data/mqueue.h-data: Likewise.
19790         * conform/data/ndbm.h-data: Likewise.
19791         * conform/data/net/if.h-data: Likewise.
19792         * conform/data/netdb.h-data: Likewise.
19793         * conform/data/netinet/in.h-data: Likewise.
19794         * conform/data/nl_types.h-data: Likewise.
19795         * conform/data/poll.h-data: Likewise.
19796         * conform/data/pthread.h-data: Likewise.
19797         * conform/data/pwd.h-data: Likewise.
19798         * conform/data/regex.h-data: Likewise.
19799         * conform/data/sched.h-data: Likewise.
19800         * conform/data/search.h-data: Likewise.
19801         * conform/data/semaphore.h-data: Likewise.
19802         * conform/data/setjmp.h-data: Likewise.
19803         * conform/data/signal.h-data: Likewise.
19804         * conform/data/spawn.h-data: Likewise.
19805         * conform/data/stdarg.h-data: Likewise.
19806         * conform/data/stdio.h-data: Likewise.
19807         * conform/data/stdlib.h-data: Likewise.
19808         * conform/data/string.h-data: Likewise.
19809         * conform/data/strings.h-data: Likewise.
19810         * conform/data/stropts.h-data: Likewise.
19811         * conform/data/sys/ipc.h-data: Likewise.
19812         * conform/data/sys/mman.h-data: Likewise.
19813         * conform/data/sys/msg.h-data: Likewise.
19814         * conform/data/sys/resource.h-data: Likewise.
19815         * conform/data/sys/select.h-data: Likewise.
19816         * conform/data/sys/sem.h-data: Likewise.
19817         * conform/data/sys/shm.h-data: Likewise.
19818         * conform/data/sys/socket.h-data: Likewise.
19819         * conform/data/sys/stat.h-data: Likewise.
19820         * conform/data/sys/statvfs.h-data: Likewise.
19821         * conform/data/sys/time.h-data: Likewise.
19822         * conform/data/sys/timeb.h-data: Likewise.
19823         * conform/data/sys/times.h-data: Likewise.
19824         * conform/data/sys/types.h-data: Likewise.
19825         * conform/data/sys/uio.h-data: Likewise.
19826         * conform/data/sys/un.h-data: Likewise.
19827         * conform/data/sys/utsname.h-data: Likewise.
19828         * conform/data/sys/wait.h-data: Likewise.
19829         * conform/data/syslog.h-data: Likewise.
19830         * conform/data/tar.h-data: Likewise.
19831         * conform/data/termios.h-data: Likewise.
19832         * conform/data/utime.h-data: Likewise.
19833         * conform/data/utmpx.h-data: Likewise.
19834         * conform/data/varargs.h-data: Likewise.
19835         * conform/data/wchar.h-data: Likewise.
19836         * conform/data/wctype.h-data: Likewise.
19837         * conform/data/wordexp.h-data: Likewise.
19838
19839         * include/stropts.h: New file.
19840         * include/uchar.h: New file.
19841         * include/aio.h: Changes to allow conformtest.pl to use the headers.
19842         * include/assert.h: Likewise.
19843         * include/ctype.h: Likewise.
19844         * include/dirent.h: Likewise.
19845         * include/dlfcn.h: Likewise.
19846         * include/fcntl.h: Likewise.
19847         * include/fnmatch.h: Likewise.
19848         * include/glob.h: Likewise.
19849         * include/grp.h: Likewise.
19850         * include/libio.h: Likewise.
19851         * include/locale.h: Likewise.
19852         * include/math.h: Likewise.
19853         * include/net/if.h: Likewise.
19854         * include/netdb.h: Likewise.
19855         * include/netinet/in.h: Likewise.
19856         * include/pthread.h: Likewise.
19857         * include/pwd.h: Likewise.
19858         * include/regex.h: Likewise.
19859         * include/sched.h: Likewise.
19860         * include/search.h: Likewise.
19861         * include/setjmp.h: Likewise.
19862         * include/signal.h: Likewise.
19863         * include/stdio.h: Likewise.
19864         * include/stdlib.h: Likewise.
19865         * include/string.h: Likewise.
19866         * include/sys/cdefs.h: Likewise.
19867         * include/sys/mman.h: Likewise.
19868         * include/sys/msg.h: Likewise.
19869         * include/sys/resource.h: Likewise.
19870         * include/sys/select.h: Likewise.
19871         * include/sys/socket.h: Likewise.
19872         * include/sys/stat.h: Likewise.
19873         * include/sys/statvfs.h: Likewise.
19874         * include/sys/time.h: Likewise.
19875         * include/sys/times.h: Likewise.
19876         * include/sys/uio.h: Likewise.
19877         * include/sys/utsname.h: Likewise.
19878         * include/sys/wait.h: Likewise.
19879         * include/termios.h: Likewise.
19880         * include/time.h: Likewise.
19881         * include/ulimit.h: Likewise.
19882         * include/unistd.h: Likewise.
19883         * include/utime.h: Likewise.
19884         * include/wchar.h: Likewise.
19885         * include/wctype.h: Likewise.
19886         * include/wordexp.h: Likewise.
19887
19888         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
19889
19890         * time/time.h: TIME_UTC must be a macro.
19891         Make timespec_get available for ISO C11 only as well.
19892
19893 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
19894
19895         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
19896         Reported by Peng Haitao <penght@cn.fujitsu.com>.
19897
19898 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19899
19900         * configure.in: Use -o not -a in test for unsupported multi-arch.
19901
19902 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19903
19904         * manual/texinfo.tex: Update to version 2012-01-19.16.
19905
19906 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
19907
19908         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
19909
19910 2012-02-24  Roland McGrath  <roland@hack.frob.com>
19911
19912         [BZ #13738]
19913         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
19914         * manual/fdl-1.3.texi: New file.
19915         * manual/fdl-1.1.texi: File removed.
19916
19917         [BZ #13738]
19918         * manual/libc.texinfo (FDL_VERSION): New @set.
19919         Use it for mention of FDL in cover text.
19920         (Documentation License): Use it in @include file name.
19921
19922 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19923             Roland McGrath  <roland@hack.frob.com>
19924
19925         [BZ #5461]
19926         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
19927         not LONG_LONG_MAX and LONG_LONG_MIN.
19928         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
19929         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
19930         name.
19931         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
19932
19933 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19934
19935         [BZ #2547]
19936         [BZ #11365]
19937         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
19938         manipulate bits before adding and subtracting TWO23[sx].
19939         * math/libm-test.inc (nearbyint_test): Add more tests.
19940
19941 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19942
19943         [BZ #2548]
19944         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
19945         bits before adding and subtracting TWO23[sx].
19946         * math/libm-test.inc (rint_test): Add more tests.
19947         (rint_test_tonearest): Likewise.
19948         (rint_test_towardzero): Likewise.
19949         (rint_test_downward): Likewise.
19950         (rint_test_upward: Likewise.
19951
19952 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19953
19954         [BZ #10110]
19955         * include/stdc-predef.h: New file.  Extracted from features.h.
19956         * include/features.h: Include stdc-predef.h.
19957         * Makefile (headers): Add stdc-predef.h.
19958         * CONFORMANCE (Compiler limitations): Update.
19959
19960 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
19961
19962         * manual/libc.texinfo (VERSION, UPDATED): Revert.
19963
19964 2012-02-21  David S. Miller  <davem@davemloft.net>
19965
19966         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
19967         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
19968
19969 2012-02-20  David S. Miller  <davem@davemloft.net>
19970
19971         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
19972         using a normal save/restore sequence, rather than allocating a
19973         dummy stack frame just to store a frame pointer and restore.
19974         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19975
19976 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
19977
19978         * manual/install.texi: Fix stray word in line-wrapped comment.
19979
19980 2012-02-20  David S. Miller  <davem@davemloft.net>
19981
19982         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
19983         both binutils and gcc support GOTDATA.
19984
19985         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
19986         "rd %pc" in the PIC register setup sequences.
19987
19988         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
19989         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
19990         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
19991         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
19992         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
19993         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
19994         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
19995         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
19996         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
19997         (SYSCALL_ERROR_HANDLER): Likewise.
19998         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
19999         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
20000         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
20001         (SYSCALL_ERROR_HANDLER): Likewise.
20002
20003         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
20004         (HAVE_GCC_GOTDATA): New.
20005         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
20006         relocation support in both binutils and gcc.
20007         * sysdeps/sparc/elf/configure: Regenerate.
20008
20009         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
20010         * sysdeps/sparc/sparc32/elf/configure: Delete.
20011         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
20012         * sysdeps/sparc/sparc64/elf/configure: Delete.
20013         * sysdeps/sparc/elf/configure.in: New file.
20014         * sysdeps/sparc/elf/configure: Generate.
20015
20016         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
20017         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
20018         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
20019         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
20020         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
20021
20022 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20023
20024         * manual/install.texi: Do not mention specific glibc version
20025         numbers.
20026         * manual/libc.texinfo (VERSION, UPDATED): Update.
20027         (@copying): Use @copyright{} and range of years.
20028
20029 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
20030
20031         [BZ #13695]
20032         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
20033         [crti.S not in sysdirs] (generated): Do not append.
20034         [crti.S not in sysdirs] (omit-deps): Likewise.
20035         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
20036         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
20037         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
20038         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
20039         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
20040         Likewise.
20041         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
20042         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
20043         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
20044         * csu/defs.awk: Remove file.
20045         * sysdeps/generic/initfini.c: Likewise.
20046         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
20047         variable.
20048         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
20049         Likewise.
20050
20051 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20052
20053         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
20054         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
20055         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
20056         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
20057         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20058         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
20059         <bits/epoll.h>.
20060         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
20061         (__EPOLL_PACKED): Define to empty if not defined by
20062         <bits/epoll.h>.
20063         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
20064         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20065         bits/epoll.h.
20066
20067 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20068
20069         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
20070         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
20071         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
20072         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
20073         <bits/timerfd.h>.
20074         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
20075         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20076         bits/timerfd.h.
20077
20078 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
20079
20080         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
20081         in C locale.
20082         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20083         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
20084         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
20085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20086
20087 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
20088
20089         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20090         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
20091
20092 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20093
20094         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
20095         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
20096         defined.
20097         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
20098         Likewise.
20099         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
20100         entry for 2.16.
20101
20102 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
20103
20104         * math/w_acos.c: Use non-signaling floating-point comparisons.
20105         * math/w_acosf.c: Likewise.
20106         * math/w_acosh.c: Likewise.
20107         * math/w_acoshf.c: Likewise.
20108         * math/w_acoshl.c: Likewise.
20109         * math/w_acosl.c: Likewise.
20110         * math/w_asin.c: Likewise.
20111         * math/w_asinf.c: Likewise.
20112         * math/w_asinl.c: Likewise.
20113         * math/w_atanh.c: Likewise.
20114         * math/w_atanhf.c: Likewise.
20115         * math/w_atanhl.c: Likewise.
20116         * math/w_exp2.c: Likewise.
20117         * math/w_exp2f.c: Likewise.
20118         * math/w_exp2l.c: Likewise.
20119         * math/w_j0.c: Likewise.
20120         * math/w_j0f.c: Likewise.
20121         * math/w_j0l.c: Likewise.
20122         * math/w_j1.c: Likewise.
20123         * math/w_j1f.c: Likewise.
20124         * math/w_j1l.c: Likewise.
20125         * math/w_jn.c: Likewise.
20126         * math/w_jnf.c: Likewise.
20127         * math/w_log.c: Likewise.
20128         * math/w_log10.c: Likewise.
20129         * math/w_log10f.c: Likewise.
20130         * math/w_log10l.c: Likewise.
20131         * math/w_log2.c: Likewise.
20132         * math/w_log2f.c: Likewise.
20133         * math/w_log2l.c: Likewise.
20134         * math/w_logf.c: Likewise.
20135         * math/w_logl.c: Likewise.
20136         * math/w_sqrt.c: Likewise.
20137         * math/w_sqrtf.c: Likewise.
20138         * math/w_sqrtl.c: Likewise.
20139         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
20140         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
20141         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20142         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
20143         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
20144
20145 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20146
20147         [BZ #9739]
20148         * manual/string.texi (strnlen): Use correct parameter name in
20149         equivalent expression.
20150
20151 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20152
20153         [BZ #11174]
20154         * manual/users.texi (seteuid): Consistently use neweuid for
20155         argument name.
20156
20157 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
20158
20159         [BZ #13704]
20160         * manual/nss.texi (Services in the NSS configuration): Correct
20161         list of services in example configuration file.
20162
20163 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
20164
20165         [BZ #11322]
20166         * manual/arith.texi: Remove statements about negative zero
20167         behaving identically to zero.
20168
20169 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20170
20171         [BZ #5993]
20172         * manual/install.texi: Do not document upgrading from libc5.
20173
20174 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
20175
20176         [BZ #4596]
20177         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
20178
20179 2012-02-18  David S. Miller  <davem@davemloft.net>
20180
20181         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
20182         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
20183         %o7 across the call.
20184         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
20185         instead.
20186         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
20187         SETUP_PIC_REG_LEAF.
20188         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20189         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
20190         * sysdeps/sparc/crtn.S: Likewise.
20191
20192 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
20193
20194         * aout/Makefile: Remove.
20195
20196 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
20197
20198         [BZ #13058]
20199         * manual/examples/argp-ex1.c (main): Format definition in GNU
20200         style.
20201         * manual/examples/argp-ex2.c (main): Likewise.
20202         * manual/examples/argp-ex3.c (main): Likewise.
20203         * manual/examples/argp-ex4.c (main): Likewise.
20204         * manual/examples/longopt.c (main): Use new-style prototype
20205         definition.
20206         * manual/examples/strncat.c (main): Specify return type and use
20207         (void) for arguments.
20208         * manual/examples/subopt.c (main): Use char **argv argument.
20209
20210 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20211
20212         [BZ #5077]
20213         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
20214         rounding modes.
20215
20216 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
20217
20218         [BZ #6907]
20219         * manual/string.texi (strchr): Change when strchrnul is
20220         recommended.
20221
20222 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
20223
20224         [BZ #174]
20225         * manual/locale.texi (setlocale): Document LOCPATH.
20226
20227 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20228
20229         [BZ #10210]
20230         * manual/process.texi (execle): Move @dots{} before last argument.
20231
20232 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
20233
20234         [BZ #12047]
20235         * manual/charset.texi (Generic Charset Conversion): Fix typo
20236         (LC_TYPE -> LC_CTYPE).
20237
20238 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
20239
20240         [BZ #5805]
20241         * manual/arith.texi (scalbn): Use @var{} on parameter names.
20242         (scalbnf): Likewise.
20243         (scalbnl): Likewise.
20244         (scalbln): Likewise.
20245         (scalblnf): Likewise.
20246         (scalblnl): Likewise.
20247         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
20248         (vwarnx): Likewise.
20249         (verr): Likewise.
20250         (verrx): Likewise.
20251         * manual/filesys.texi (telldir): Use braces around return type.
20252         * manual/llio.texi (mmap): Add space after comma.
20253         (mmap64): Likewise.
20254         * manual/math.texi (jn): Use @var{} on parameter names.
20255         (jnf): Likewise.
20256         (jnl): Likewise.
20257         (yn): Likewise.
20258         (ynf): Likewise.
20259         (ynl): Likewise.
20260         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
20261         line.
20262         * manual/resource.texi (ulimit): Use @dots{} instead of literal
20263         "...".
20264         (sched_get_priority_min): Remove semicolon on @deftypefun line.
20265         (sched_get_priority_max): Likewise.
20266         * manual/signal.texi (sigvec): Add space after comma.
20267         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
20268         names.
20269         (if_indextoname): Likewise.
20270         (if_freenameindex): Likewise.
20271         (sendto): Use ',' instead of '.' in prototype.
20272         * manual/startup.texi (syscall): Use @dots{} instead of literal
20273         "...".
20274         * manual/stdio.texi (__fpending): Separate initial words of
20275         paragraph from @deftypefun line.
20276         * manual/syslog.texi (syslog): Use @dots{} instead of literal
20277         "...".
20278         (vsyslog): Use @var{} on parameter names.
20279         * manual/terminal.texi (stty): Use @var{} on parameter names.
20280         * manual/users.texi (getutmp): Use @var{} on parameter names.
20281         (getutmpx): Likewise.
20282
20283 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20284
20285         [BZ #6884]
20286         * manual/stdio.texi (fopen): Fix typos in description of
20287         ",ccs=STRING".
20288
20289 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
20290
20291         [BZ #4026]
20292         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
20293         get clock_id definition.
20294
20295 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
20296
20297         [BZ #4822]
20298         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
20299         (madvise): Cast every argument to void on its own.
20300
20301 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20302
20303         [BZ #9902]
20304         * manual/startup.texi (Exit Status): Fix typo.
20305
20306 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
20307
20308         [BZ #10140]
20309         * manual/examples/argp-ex1.c: Include <stdlib.h>.
20310         * manual/examples/argp-ex2.c: Likewise.
20311         * manual/examples/argp-ex3.c: Likewise.
20312
20313 2012-02-16  Richard Henderson  <rth@redhat.com>
20314
20315         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
20316         * sysdeps/s390/s390-32/initfini.c: Remove.
20317         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
20318         * sysdeps/s390/s390-64/initfini.c: Remove.
20319
20320 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20321
20322         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
20323         compiler output for sysdeps/generic/initfini.c.
20324         * sysdeps/sh/elf/initfini.c: Remove file.
20325
20326 2012-02-16  David S. Miller  <davem@davemloft.net>
20327
20328         [BZ #11494]
20329         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
20330
20331         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
20332         * sysdeps/sparc/crti.S: New file.
20333         * sysdeps/sparc/crtn.S: New file.
20334         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
20335         * sysdeps/sparc/sparc64/Makefile: Likewise.
20336
20337 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
20338
20339         [BZ #3335]
20340         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
20341
20342 2012-02-15  Roland McGrath  <roland@hack.frob.com>
20343
20344         [BZ #4822]
20345         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
20346
20347         * mach/devstream.c (cookie_io_functions_t): Macro removed.
20348         (write, read, close): Likewise.
20349         Patch by Aurelien Jarno <aurelien@aurel32.net>.
20350
20351 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
20352
20353         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
20354         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
20355         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
20356         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
20357         <bits/signalfd.h>.
20358         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
20359         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20360         bits/signalfd.h.
20361
20362 2012-02-14  Marek Polacek  <polacek@redhat.com>
20363
20364         * sysdeps/x86_64/crti.S: New file.
20365         * sysdeps/x86_64/crtn.S: New file.
20366         * sysdeps/x86_64/elf/initfini.c: Remove file.
20367
20368 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20369
20370         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
20371         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
20372         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
20373         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
20374         <bits/inotify.h>.
20375         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
20376         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20377         bits/inotify.h.
20378
20379 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
20380
20381         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
20382         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
20383         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
20384         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
20385         <bits/eventfd.h>.
20386         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
20387         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20388         bits/eventfd.h.
20389
20390 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
20391
20392         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
20393         __feraiseexcept instead of feraiseexcept.
20394
20395         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
20396         nanosleep invocations.
20397         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
20398         strings, and add error checking for a nanosleep invocations.
20399
20400 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20401
20402         Replace FSF snail mail address with URLs, as per GNU coding standards.
20403         Most of the snail mail addresses were wrong anyway, and omitting
20404         them makes the source code easier to maintain.  Almost all of the
20405         changes are to license notices and to locale LC_IDENTIFICATION
20406         addresses, except for this one:
20407         * manual/libc.texinfo: In "Published by", give the FSF's URL,
20408         not its snail mail address.
20409
20410 2012-02-09  Richard Henderson  <rth@twiddle.net>
20411
20412         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
20413         of kernel-features.h.
20414
20415         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
20416
20417 2012-02-08  Marek Polacek  <polacek@redhat.com>
20418
20419         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
20420         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
20421         * sysdeps/gnu/_G_config.h: Likewise.
20422         * sysdeps/generic/_G_config.h: Likewise.
20423
20424 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
20425
20426         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
20427         tests.
20428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20429
20430         * sysdeps/powerpc/powerpc32/crti.S: New file.
20431         * sysdeps/powerpc/powerpc32/crtn.S: New file.
20432         * sysdeps/powerpc/powerpc64/crti.S: New file.
20433         * sysdeps/powerpc/powerpc64/crtn.S: New file.
20434
20435         * Makeconfig (have-initfini): Don't set.
20436         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
20437         * configure.in (nopic_initfini): Don't substitute.
20438         * config.h.in (HAVE_INITFINI): Don't #undef.
20439         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
20440         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
20441
20442 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
20443
20444         Support crti.S and crtn.S provided directly by architectures.
20445         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
20446         [crti.S in sysdirs] (omit-deps): Likewise.
20447         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
20448         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
20449         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
20450         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
20451         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
20452         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
20453         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
20454         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
20455         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
20456         compiler output for sysdeps/generic/initfini.c.
20457         * sysdeps/i386/elf/Makefile: Remove file.
20458         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
20459
20460 2012-02-07  Marek Polacek  <polacek@redhat.com>
20461
20462         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
20463         * sysdeps/gnu/_G_config.h: Likewise.
20464         * sysdeps/mach/hurd/_G_config.h: Likewise.
20465
20466 2012-02-07  Marek Polacek  <polacek@redhat.com>
20467
20468         * math/Makefile (tests): Add tst-CMPLX2.
20469         * math/tst-CMPLX2.c: New file.
20470
20471 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
20472
20473         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
20474
20475         * math/libm-test.inc (jn_test): Add missing L suffix.
20476
20477 2012-02-06  Marek Polacek  <polacek@redhat.com>
20478
20479         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
20480         * sysdeps/i386/fpu/e_powf.S: Likewise.
20481         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
20482         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
20483         * sysdeps/i386/fpu/e_acosh.S: Likewise.
20484         * sysdeps/i386/fpu/e_pow.S: Likewise.
20485         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
20486         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
20487         * sysdeps/i386/fpu/s_expm1.S: Likewise.
20488         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
20489         * sysdeps/i386/fpu/e_log2.S: Likewise.
20490         * sysdeps/i386/fpu/e_log2l.S: Likewise.
20491         * sysdeps/i386/fpu/e_scalb.S: Likewise.
20492         * sysdeps/i386/fpu/e_powl.S: Likewise.
20493         * sysdeps/i386/fpu/s_log1p.S: Likewise.
20494         * sysdeps/i386/fpu/e_log10f.S: Likewise.
20495         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
20496         * sysdeps/i386/fpu/e_logl.S: Likewise.
20497         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
20498         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
20499         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
20500         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
20501         * sysdeps/i386/fpu/e_log2f.S: Likewise.
20502         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
20503         * sysdeps/i386/fpu/e_log.S: Likewise.
20504         * sysdeps/i386/fpu/s_cexp.S: Likewise.
20505         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
20506         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
20507         * sysdeps/i386/fpu/e_logf.S: Likewise.
20508         * sysdeps/i386/fpu/e_log10l.S: Likewise.
20509         * sysdeps/i386/fpu/e_atanh.S: Likewise.
20510         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
20511         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
20512         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
20513         * sysdeps/i386/fpu/e_log10.S: Likewise.
20514         * sysdeps/i386/fpu/s_frexp.S: Likewise.
20515         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
20516         * sysdeps/i386/fpu/s_asinh.S: Likewise.
20517         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
20518         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
20519         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
20520         * sysdeps/i386/asm-syntax.h: Likewise.
20521         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
20522         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20523         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
20524         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
20525         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
20526         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
20527         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
20528         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
20529         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
20530         * sysdeps/powerpc/sysdep.h: Likewise.
20531         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20532         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20533
20534 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20535
20536         [BZ #411]
20537         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
20538
20539 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
20540
20541         * sysdeps/i386/sysdep.h: Include <features.h>.
20542         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
20543         version.
20544
20545 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
20546
20547         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
20548         Define.
20549         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
20550         LOAD_PIC_REG_STR.
20551
20552 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20553
20554         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
20555         (SETUP_PIC_REG): Use GET_PC_THUNK.
20556         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
20557         macro.
20558
20559 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20560
20561         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
20562         for non-PIC compilation.
20563         (SETUP_PIC_REG): Add .p2align directive.
20564         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
20565         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
20566         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
20567         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
20568         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
20569         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
20570         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
20571         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20572         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
20573         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
20574         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
20575         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
20576         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
20577         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
20578         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
20579         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
20580         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
20581         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
20582         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
20583         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
20584         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
20585         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
20586         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
20587         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
20588         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
20589         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
20590         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20591         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
20592         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
20593         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
20594         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
20595         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20596         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
20597         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
20598         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
20599         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
20600         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
20601         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
20602         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
20603         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
20604         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
20605
20606 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
20607
20608         * math/tst-CMPLX.c: Include <stdio.h>.
20609
20610 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
20611
20612         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
20613         float.
20614         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
20615         * sysdeps/sparc/bits/mathdef.h: Likewise.
20616
20617 2012-01-31  Marek Polacek  <polacek@redhat.com>
20618
20619         * libio/libio.h: Don't define _PARAMS.
20620         * locale/programs/config.h: Don't define PARAMS.
20621         * stdlib/strtol_l.c: Likewise.
20622         (__strtol_l): Remove PARAMS from the prototype.
20623
20624 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
20625
20626         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
20627         names.  Just use the correct names.  Remove unnecessary wrapper
20628         functions.
20629         * malloc/arena.c: Likewise.
20630         * malloc/hooks.c: Likewise.
20631
20632         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
20633         ARENA_TEST says not to.  Simplify test for creation of a new arena.
20634         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
20635
20636 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
20637
20638         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
20639         into tail calls.
20640         (update_get_addr): New function.
20641         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
20642         GET_ADDR_MODULE parameter.
20643
20644 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20645
20646         * crypt/cert.c: Remove __STDC__ conditionals.
20647         * crypt/crypt-entry.c: Likewise.
20648         * crypt/crypt_util.c: Likewise.
20649         * libio/filedoalloc.c: Likewise.
20650         * libio/fileops.c: Likewise.
20651         * libio/genops.c: Likewise.
20652         * libio/iofclose.c: Likewise.
20653         * libio/iofdopen.c: Likewise.
20654         * libio/iofopen.c: Likewise.
20655         * libio/iofopen64.c: Likewise.
20656         * libio/iogetdelim.c: Likewise.
20657         * libio/iopopen.c: Likewise.
20658         * libio/obprintf.c: Likewise.
20659         * libio/oldfileops.c: Likewise.
20660         * libio/oldiofclose.c: Likewise.
20661         * libio/oldiofdopen.c: Likewise.
20662         * libio/oldiofopen.c: Likewise.
20663         * libio/oldiopopen.c: Likewise.
20664         * libio/wfiledoalloc.c: Likewise.
20665         * libio/wgenops.c: Likewise.
20666         * locale/programs/xmalloc.c: Likewise.
20667         * misc/syslog.c: Likewise.
20668         * stdio-common/xbug.c: Likewise.
20669         * string/memchr.c: Likewise.
20670         * string/memcmp.c: Likewise.
20671         * string/memrchr.c: Likewise.
20672         * string/rawmemchr.c: Likewise.
20673         * sysdeps/posix/getcwd.c: Likewise.
20674         * time/strftime_l.c: Likewise.
20675
20676 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
20677
20678         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
20679         * config.make.in (config-cflags-sse2avx): Define.
20680         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
20681         Fix typo.
20682
20683 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
20684
20685         * scripts/config.guess: Update from upstream config git repository.
20686         * scripts/config.sub: Likewise.
20687
20688 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
20689
20690         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
20691         (EM_NUM): Update.
20692         (R_TILEPRO_*, R_TILEGX_*): New macros.
20693
20694         * scripts/firstversions.awk: Fix bug in version range handling.
20695
20696         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
20697
20698         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
20699
20700         * include/sys/epoll.h: New file.
20701         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
20702         libc_hidden_def.
20703
20704 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
20705
20706         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
20707         Avoid unnecessary __WORDSIZE == 64 test.
20708         (fmaxf): Use VEX format if possible.
20709         (fmax): Likewise.
20710         (fminf): Likewise.
20711         (fmin): Likewise.
20712
20713         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
20714         * math/math_private.h: Remove libc_fegetround* and
20715         libc_fesetround*.
20716         * sysdeps/i386/configure.in: Check for -msse2avx.
20717         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
20718         also if SSE2AVX is defined.
20719         Remove libc_fegetround* and libc_fesetround*.
20720         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
20721         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
20722         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
20723         of HAS_YMM_USABLE.
20724         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20725         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20726         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20727         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20728         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20729
20730         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
20731
20732 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20733
20734         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
20735         size is not set.
20736         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20737
20738 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
20739
20740         [BZ #13618]
20741         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
20742         relocation.
20743         * Makeconfig (libm): Define.
20744         * elf/Makefile: Add rules to build and run tst-relsort1.
20745         * elf/tst-relsort1.c: New file.
20746         * elf/tst-relsort1mod1.c: New file.
20747         * elf/tst-relsort1mod2.c: New file.
20748
20749 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
20750
20751         * math/s_ldexp.c: Remove __STDC__ conditionals.
20752         * math/s_ldexpf.c: Likewise.
20753         * math/s_ldexpl.c: Likewise.
20754         * math/s_nextafter.c: Likewise.
20755         * math/s_nexttowardf.c: Likewise.
20756         * math/s_significand.c: Likewise.
20757         * math/s_significandf.c: Likewise.
20758         * math/s_significandl.c: Likewise.
20759         * math/w_jnl.c: Likewise.
20760         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
20761         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
20762         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
20763         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
20764         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
20765         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
20766         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
20767         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
20768         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
20769         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
20770         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
20771         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20772         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
20773         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
20774         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20775         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
20776         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
20777         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
20778         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20779         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
20780         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
20781         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
20782         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
20783         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
20784         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
20785         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
20786         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
20787         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
20788         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
20789         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
20790         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
20791         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
20792         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
20793         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
20794         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
20795         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
20796         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
20797         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20798         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
20799         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
20800         * sysdeps/ieee754/k_standard.c: Likewise.
20801         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
20802         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
20803         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
20804         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
20805         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
20806         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
20807         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
20808         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
20809         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
20810         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
20811         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
20812         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
20813         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
20814         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
20815         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
20816         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
20817         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
20818         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
20819         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
20820         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
20821         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
20822         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
20823         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
20824         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
20825         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
20826         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
20827         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
20828         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
20829         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
20830         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
20831         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
20832         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
20833         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
20834         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
20835         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
20836         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
20837         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
20838         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
20839         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
20840         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
20841         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
20842         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
20843         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
20844         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
20845         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
20846         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
20847         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
20848         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
20849         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
20850         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
20851         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
20852         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
20853         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
20854         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
20855         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
20856         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
20857         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
20858         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
20859         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
20860         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
20861         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
20862         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
20863         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
20864         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
20865         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
20866         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
20867         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
20868         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
20869         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
20870         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
20871         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
20872         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
20873         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
20874         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
20875         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
20876         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
20877         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
20878         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
20879         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
20880         * sysdeps/ieee754/s_matherr.c: Likewise.
20881         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
20882         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
20883         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
20884         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
20885
20886 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
20887
20888         * crypt/md5.h: Remove __STDC__ conditionals.
20889         * libio/libioP.h: Likewise.
20890         * locale/programs/config.h: Likewise.
20891         * sysdeps/generic/sysdep.h: Likewise.
20892         * sysdeps/i386/asm-syntax.h: Likewise.
20893         * sysdeps/s390/asm-syntax.h: Likewise.
20894         * sysdeps/unix/sysdep.h: Likewise.
20895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
20896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
20897
20898 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
20899
20900         * libio/libio.h: Remove __STDC__ conditionals.
20901         * malloc/obstack.h: Likewise.
20902         * math/complex.h: Likewise.
20903         * math/math.h: Likewise.
20904         * sysdeps/generic/_G_config.h: Likewise.
20905         * sysdeps/gnu/_G_config.h: Likewise.
20906         * sysdeps/mach/hurd/_G_config.h: Likewise.
20907         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20908         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
20909         * sysdeps/sparc/bits/mathdef.h: Likewise.
20910
20911 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
20912
20913         [BZ #13583]
20914         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
20915         Clean up HAS_* macros.
20916         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
20917         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
20918         possible.
20919         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
20920         HAS_AVX.
20921         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20922         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20923         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20924         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20925         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20926
20927 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
20928
20929         * elf/tst-unique3.cc (gets): Remove declaration.
20930         * elf/tst-unique3lib.cc (gets): Likewise.
20931         * elf/tst-unique3lib2.cc (gets): Likewise.
20932         * elf/tst-unique4.cc (gets): Likewise.
20933
20934 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
20935
20936         * include/stdio.h: Add C++ protection.  Add gets declarations and
20937         definitions.
20938         * debug/tst-chk1.c: Don't declare gets here.
20939         * stdio-common/tst-gets.c: Likewise.
20940
20941 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
20942
20943         * posix/glob: Remove directory.
20944
20945 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
20946
20947         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
20948
20949 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
20950
20951         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
20952         of the non-standard EPFNOSUPPORT.
20953
20954 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20955
20956         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
20957         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
20958         ANYWHERE set to 1 only on KERN_NO_SPACE error.
20959
20960 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
20961
20962         * wcsmbs/uchar.h: Test __STDC_VERSION__.
20963
20964 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
20965
20966         * nscd/aicache.c (addhstaiX): Do not cache negative results of
20967         transient errors.
20968         * nscd/grpcache.c (cache_addgr): Likewise.
20969         * nscd/hstcache.c (cache_addhst): Likewise.
20970         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20971         * nscd/pwdcache.c (cache_addpw): Likewise.
20972         * nscd/servicescache.c (cache_addserv): Likewise.
20973
20974 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
20975
20976         * malloc/malloc.c: Various cleanups.
20977         * malloc/hooks.c: Likewise.
20978
20979         * stdlib/Makefile (tests): Add bug-fmtmsg1.
20980         * stdlib/bug-fmtmsg1.c: New file.
20981
20982         * stdlib/fmtmsg.c (init): Add missing unlock.
20983         Patch by Peng Haitao <penght@cn.fujitsu.com>.
20984
20985 2012-01-12  Marek Polacek  <polacek@redhat.com>
20986
20987         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
20988         and _GNU_SOURCE.
20989
20990 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
20991
20992         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
20993         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
20994         macro to ensure uniqueness of label name.
20995         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
20996         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
20997
20998 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
20999
21000         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
21001
21002         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
21003         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
21004         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
21005         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
21006
21007 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
21008
21009         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
21010
21011         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
21012         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
21013         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
21014
21015         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
21016
21017         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
21018         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
21019         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
21020         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
21021
21022         * math/bits/math-finite.h: Add ldexp support.
21023
21024 2012-01-10  Marek Polacek  <polacek@redhat.com>
21025
21026         * locale/programs/localedef.h (show_archive_content): Add noreturn
21027         attribute.
21028
21029 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
21030
21031         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
21032
21033 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21034
21035         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
21036
21037         * io/Makefile (headers): Add bits/poll2.h.
21038
21039 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
21040
21041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
21042         typo #include statement.
21043
21044 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21045
21046         * include/sys/cdefs.h: Define __attribute_alloc_size.
21047         * catgets/gencat.c: Add alloc_size attribute and apply consistently
21048         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
21049         * elf/pldd.c: Likewise.
21050         * iconv/iconv_charmap.c: Likewise.
21051         * iconv/iconvconfig.c: Likewise.
21052         * iconv/strtab.c: Likewise.
21053         * locale/programs/locale.c: Likewise.
21054         * locale/programs/localedef.h: Likewise.
21055         * locale/programs/simple-hash.c: Likewise.
21056         * nscd/nscd.h: Likewise.
21057         * nss/makedb.c: Likewise.
21058         * sysdeps/generic/ldconfig.h: Likewise.
21059         * locale/programs/localedef.c: Remove xmalloc prototype.
21060         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
21061
21062 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21063
21064         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
21065         appropriate.
21066
21067 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
21068
21069         * math/Makefile (tests): Add tst-CMPLX.
21070         * math/tst-CMPLX.c: New file.
21071
21072         * math/complex.h (CMPLXL): Fix typo.
21073
21074         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
21075         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
21076         GLIBC_2.16.
21077         * debug/tst-chk1.c: Add poll and ppoll tests.
21078         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
21079         * include/sys/poll.h: Add hidden proto for ppoll.
21080         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
21081         * sysdeps/mach/hurd/ppoll.c: Likewise.
21082         * io/ppoll.c: Likewise.
21083         * debug/poll_chk.c: New file.
21084         * debug/ppoll_chk.c: New file.
21085         * include/bits/poll2.h: New file.
21086         * io/bits/poll2.h: New file.
21087
21088         [BZ #1350]
21089         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
21090
21091         * configure.in: static is always set to yes.  Remove.
21092         * config.make.in: Don't set build-static.
21093         * Makeconfig: Remove use of build-static.
21094         * dlfcn/Makefile: Likewise.
21095         * elf/Makefile: Likewise.
21096         * math/Makefile: Likewise.
21097         * misc/Makefile: Likewise.
21098         * nptl/Makefile: Likewise.
21099         * sysdeps/mach/hurd/Makefile: Likewise.
21100
21101         * configure.in: PWD_P is not used anymore.
21102         * config.make.in: Remove PWD_P entry.
21103
21104         * configure.in: Remove last remnants of RANLIB.
21105         No need to check for signed size_t anymore.
21106         Don't set libc_commonpagesize and libc_relro_required here for Alpha
21107         and IA-64.
21108         Remove __builtin_expect test because we require at least gcc 3.4.
21109         * aclocal.m4: Likewise.
21110
21111         * wcsmbs/mbrtoc16.c: Implement using towc function.
21112         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
21113         * wcsmbs/wcsmbsload.c: Likewise.
21114         * iconv/gconv_simple.c: Likewise.
21115         * iconv/gconv_int.h: Likewise.
21116         * iconv/gconv_builtin.h: Likewise.
21117         * iconv/iconv_prog.c: Remove CHAR16 handling.
21118
21119         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
21120
21121         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
21122
21123         * configure.in: Remove --with-elf and --enable-bounded options.
21124         Dont set base_machine for ia64.  More non-ELF conditions removed.
21125         Remove testing and setting of leading underscore information.
21126         * config.make.in (build-bounded): Set to no.
21127         * config.h.in: Remove NO_UNDERSCORES entry.
21128         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
21129         them.
21130         * csu/start.c: Remove !NO_UNDERSCORE code.
21131         * locale/localeinfo.h: Likewise.
21132         * sysdeps/generic/machine-gmon.h: Likewise.
21133         * sysdeps/generic/sysdep.h: Likewise.
21134         * sysdeps/i386/sysdep.h: Likewise.
21135         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21136         * sysdeps/mach/sysdep.h: Likewise.
21137         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21138         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21139         * sysdeps/sh/sysdep.h: Likewise.
21140         * sysdeps/sparc/sparc32/alloca.S: Likewise.
21141         * sysdeps/unix/i386/sysdep.S: Likewise.
21142         * sysdeps/unix/sparc/start.c: Likewise.
21143         * sysdeps/unix/sparc/sysdep.S: Likewise.
21144         * sysdeps/unix/sparc/sysdep.h: Likewise.
21145         * sysdeps/unix/start.c: Likewise.
21146         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21147         * sysdeps/x86_64/sysdep.h: Likewise.
21148
21149 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
21150
21151         [BZ #13553]
21152         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
21153         for non-gcc.
21154         * argp/argp-fmtstream.h: Use const instead __const.
21155         * argp/argp.h: Likewise.
21156         * assert/assert.h: Likewise.
21157         * bits/fenv.h: Likewise.
21158         * bits/sched.h: Likewise.
21159         * bits/sigset.h: Likewise.
21160         * bits/sigthread.h: Likewise.
21161         * catgets/nl_types.h: Likewise.
21162         * conform/data/pthread.h-data: Likewise.
21163         * crypt/crypt-private.h: Likewise.
21164         * crypt/crypt.h: Likewise.
21165         * crypt/crypt_util.c: Likewise.
21166         * ctype/ctype.h: Likewise.
21167         * debug/execinfo.h: Likewise.
21168         * debug/mbsnrtowcs_chk.c: Likewise.
21169         * debug/mbsrtowcs_chk.c: Likewise.
21170         * debug/wcsnrtombs_chk.c: Likewise.
21171         * debug/wcsrtombs_chk.c: Likewise.
21172         * debug/wcstombs_chk.c: Likewise.
21173         * dirent/dirent.h: Likewise.
21174         * dlfcn/dlfcn.h: Likewise.
21175         * elf/neededtest4.c: Likewise.
21176         * grp/grp.h: Likewise.
21177         * gshadow/gshadow.h: Likewise.
21178         * iconv/gconv.h: Likewise.
21179         * iconv/gconv_int.h: Likewise.
21180         * iconv/gconv_simple.c: Likewise.
21181         * iconv/iconv.h: Likewise.
21182         * iconv/loop.c: Likewise.
21183         * iconv/skeleton.c: Likewise.
21184         * include/aio.h: Likewise.
21185         * include/aliases.h: Likewise.
21186         * include/argz.h: Likewise.
21187         * include/arpa/inet.h: Likewise.
21188         * include/assert.h: Likewise.
21189         * include/dirent.h: Likewise.
21190         * include/dlfcn.h: Likewise.
21191         * include/execinfo.h: Likewise.
21192         * include/fcntl.h: Likewise.
21193         * include/fenv.h: Likewise.
21194         * include/glob.h: Likewise.
21195         * include/grp.h: Likewise.
21196         * include/libintl.h: Likewise.
21197         * include/mntent.h: Likewise.
21198         * include/netdb.h: Likewise.
21199         * include/pwd.h: Likewise.
21200         * include/rpc/netdb.h: Likewise.
21201         * include/sched.h: Likewise.
21202         * include/search.h: Likewise.
21203         * include/shadow.h: Likewise.
21204         * include/signal.h: Likewise.
21205         * include/stdio.h: Likewise.
21206         * include/stdlib.h: Likewise.
21207         * include/string.h: Likewise.
21208         * include/sys/socket.h: Likewise.
21209         * include/sys/stat.h: Likewise.
21210         * include/sys/statfs.h: Likewise.
21211         * include/sys/statvfs.h: Likewise.
21212         * include/sys/syslog.h: Likewise.
21213         * include/sys/time.h: Likewise.
21214         * include/sys/uio.h: Likewise.
21215         * include/time.h: Likewise.
21216         * include/unistd.h: Likewise.
21217         * include/utmp.h: Likewise.
21218         * include/wchar.h: Likewise.
21219         * include/wctype.h: Likewise.
21220         * inet/aliases.h: Likewise.
21221         * inet/arpa/inet.h: Likewise.
21222         * inet/netinet/ether.h: Likewise.
21223         * inet/netinet/in.h: Likewise.
21224         * intl/libintl.h: Likewise.
21225         * io/bits/fcntl2.h: Likewise.
21226         * io/fcntl.h: Likewise.
21227         * io/ftw.h: Likewise.
21228         * io/sys/poll.h: Likewise.
21229         * io/sys/stat.h: Likewise.
21230         * io/sys/statfs.h: Likewise.
21231         * io/sys/statvfs.h: Likewise.
21232         * io/utime.h: Likewise.
21233         * libio/bits/stdio.h: Likewise.
21234         * libio/bits/stdio2.h: Likewise.
21235         * libio/libio.h: Likewise.
21236         * libio/libioP.h: Likewise.
21237         * libio/stdio.h: Likewise.
21238         * locale/lc-ctype.c: Likewise.
21239         * locale/locale.h: Likewise.
21240         * login/utmp.h: Likewise.
21241         * malloc/arena.c: Likewise.
21242         * malloc/malloc.c: Likewise.
21243         * malloc/malloc.h: Likewise.
21244         * malloc/mcheck.c: Likewise.
21245         * malloc/mtrace.c: Likewise.
21246         * math/bits/mathcalls.h: Likewise.
21247         * math/fenv.h: Likewise.
21248         * math/math_private.h: Likewise.
21249         * misc/bits/error.h: Likewise.
21250         * misc/bits/syslog.h: Likewise.
21251         * misc/err.h: Likewise.
21252         * misc/error.h: Likewise.
21253         * misc/fstab.h: Likewise.
21254         * misc/mntent.h: Likewise.
21255         * misc/regexp.h: Likewise.
21256         * misc/search.h: Likewise.
21257         * misc/sgtty.h: Likewise.
21258         * misc/sys/mman.h: Likewise.
21259         * misc/sys/syslog.h: Likewise.
21260         * misc/sys/uio.h: Likewise.
21261         * misc/sys/xattr.h: Likewise.
21262         * misc/ttyent.h: Likewise.
21263         * nis/rpcsvc/ypclnt.h: Likewise.
21264         * nss/nss.h: Likewise.
21265         * posix/bits/unistd.h: Likewise.
21266         * posix/fnmatch.h: Likewise.
21267         * posix/glob.h: Likewise.
21268         * posix/sched.h: Likewise.
21269         * posix/spawn.h: Likewise.
21270         * posix/sys/wait.h: Likewise.
21271         * posix/unistd.h: Likewise.
21272         * posix/wordexp.h: Likewise.
21273         * pwd/pwd.h: Likewise.
21274         * resolv/netdb.h: Likewise.
21275         * resource/sys/resource.h: Likewise.
21276         * rt/aio.h: Likewise.
21277         * rt/bits/mqueue2.h: Likewise.
21278         * rt/mqueue.h: Likewise.
21279         * shadow/shadow.h: Likewise.
21280         * signal/signal.h: Likewise.
21281         * socket/send.c: Likewise.
21282         * socket/sendto.c: Likewise.
21283         * socket/sys/socket.h: Likewise.
21284         * stdio-common/printf.h: Likewise.
21285         * stdlib/bits/stdlib.h: Likewise.
21286         * stdlib/fmtmsg.h: Likewise.
21287         * stdlib/monetary.h: Likewise.
21288         * stdlib/stdlib.h: Likewise.
21289         * stdlib/ucontext.h: Likewise.
21290         * streams/stropts.h: Likewise.
21291         * string/argz.h: Likewise.
21292         * string/bits/string2.h: Likewise.
21293         * string/string.h: Likewise.
21294         * string/strings.h: Likewise.
21295         * sunrpc/rpc/auth.h: Likewise.
21296         * sunrpc/rpc/auth_des.h: Likewise.
21297         * sunrpc/rpc/clnt.h: Likewise.
21298         * sunrpc/rpc/netdb.h: Likewise.
21299         * sunrpc/rpc/pmap_clnt.h: Likewise.
21300         * sunrpc/rpc/xdr.h: Likewise.
21301         * sysdeps/generic/inttypes.h: Likewise.
21302         * sysdeps/generic/net/if.h: Likewise.
21303         * sysdeps/generic/sys/swap.h: Likewise.
21304         * sysdeps/gnu/net/if.h: Likewise.
21305         * sysdeps/gnu/utmpx.h: Likewise.
21306         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
21307         * sysdeps/i386/i486/bits/string.h: Likewise.
21308         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
21309         * sysdeps/s390/bits/string.h: Likewise.
21310         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
21311         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
21312         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
21313         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
21314         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
21315         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
21316         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
21317         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
21318         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
21319         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
21320         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
21321         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
21322         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
21323         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
21324         * sysdeps/unix/sysv/linux/readv.c: Likewise.
21325         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
21326         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
21327         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
21328         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
21329         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
21330         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21331         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
21332         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
21333         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
21334         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
21335         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
21336         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
21337         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21338         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
21339         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
21340         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
21341         * sysvipc/sys/ipc.h: Likewise.
21342         * sysvipc/sys/msg.h: Likewise.
21343         * sysvipc/sys/sem.h: Likewise.
21344         * sysvipc/sys/shm.h: Likewise.
21345         * termios/termios.h: Likewise.
21346         * time/sys/time.h: Likewise.
21347         * time/time.h: Likewise.
21348         * wcsmbs/bits/wchar2.h: Likewise.
21349         * wcsmbs/uchar.h: Likewise.
21350         * wcsmbs/wchar.h: Likewise.
21351         * wctype/wctype.h: Likewise.
21352
21353         [BZ #13551]
21354         * Makeconfig: Remove all but ELF support including AIX support.
21355         * Makerules: Likewise.
21356         * config.h.in: Likewise.
21357         * config.make.in: Likewise.
21358         * configure: Likewise.
21359         * configure.in: Likewise.
21360         * csu/Makefile: Likewise.
21361         * csu/version.c: Likewise.
21362         * debug/Makefile: Likewise.
21363         * dlfcn/Makefile: Likewise.
21364         * elf/Makefile: Likewise.
21365         * extra-lib.mk: Likewise.
21366         * iconv/Makefile: Likewise.
21367         * include/libc-symbols.h: Likewise.
21368         * include/shlib-compat.h: Likewise.
21369         * resolv/Makefile: Likewise.
21370         * resolv/res_libc.c: Likewise.
21371         * rt/Makefile: Likewise.
21372         * sysdeps/i386/asm-syntax.h: Likewise.
21373         * sysdeps/i386/sysdep.h: Likewise.
21374         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
21375         * sysdeps/mach/sysdep.h: Likewise.
21376         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
21377         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
21378         * sysdeps/s390/asm-syntax.h: Likewise.
21379         * sysdeps/s390/s390-32/sysdep.h: Likewise.
21380         * sysdeps/s390/s390-64/sysdep.h: Likewise.
21381         * sysdeps/sh/sysdep.h: Likewise.
21382         * sysdeps/unix/sparc/sysdep.h: Likewise.
21383         * sysdeps/wordsize-32/divdi3.c: Likewise.
21384         * sysdeps/x86_64/sysdep.h: Likewise.
21385
21386         * argp/Versions: Remove _argp_unlock_xxx.
21387
21388         [BZ #13559]
21389         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
21390         * abilist/libBrokenLocale.abilist: Likewise.
21391         * abilist/libanl.abilist: Likewise.
21392         * abilist/libc.abilist: Likewise.
21393         * abilist/libcrypt.abilist: Likewise.
21394         * abilist/libdl.abilist: Likewise.
21395         * abilist/libm.abilist: Likewise.
21396         * abilist/libnsl.abilist: Likewise.
21397         * abilist/libpthread.abilist: Likewise.
21398         * abilist/libresolv.abilist: Likewise.
21399         * abilist/librt.abilist: Likewise.
21400         * abilist/libthread_db.abilist: Likewise.
21401         * abilist/libutil.abilist: Likewise.
21402         * abilist/libnss_db.abilist: New file.
21403
21404         * scripts/abilist.awk: Add support for indirect functions.
21405
21406         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
21407
21408         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
21409
21410         * shlib-versions: Remove entries for ports architectures.
21411
21412         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
21413         files in ports.
21414         * elf/stackguard-macros.h: Remove support for IA-64.
21415         * elf/tst-auditmod1.c: Likewise.
21416         * sysdeps/generic/ldsodefs.h: Likewise.
21417
21418         * sysdeps/unix/sysv/linux/configure.in: Ports should define
21419         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
21420         configure files.
21421
21422         [BZ #13552]
21423         * configure.in: Remove --enable-omitfp support.
21424         * FAQ.in: Adjust.
21425         * config.make.in: Likewise.
21426         * Makeconfig: Likewise.
21427         * manual/install.texi: Likewise.
21428
21429         In case anyone cares, the IA-64 architecture could move to ports.
21430         * sysdeps/ia64/*: Removed.
21431         * sysdeps/unix/sysv/linux/ia64/*: Removed.
21432         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
21433
21434         [BZ #13555]
21435         * configure.in: Remove entries for unsupported architectures.
21436
21437         [BZ #13533]
21438         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
21439         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
21440         routines.
21441         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
21442         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
21443         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
21444         fall back to using wcrtomb.
21445         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
21446         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
21447         renaming.
21448         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
21449         * wcsmbs/tst-c16c32-1.c: New file.
21450
21451         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
21452         local variable.
21453
21454         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
21455
21456         * elf/tst-unique3.cc: Add explicit declaration of gets.
21457         * elf/tst-unique3lib.cc: Likewise.
21458         * elf/tst-unique3lib2.cc: Likewise.
21459         * elf/tst-unique4.cc: Likewise.
21460
21461         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
21462
21463 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
21464
21465         [BZ #13566]
21466         * assert/assert.h (static_assert): Don't define for C++.
21467         * libio/stdio.h (gets): Do declare for C++ <= C++11.
21468         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
21469
21470 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
21471
21472         * iconv/loop.c (single loop): Fix assertion in storing of
21473         remaining bytes.
21474
21475         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
21476
21477 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
21478
21479         * posix/getconf.c: Update copyright year.
21480         * nss/getent.c: Likewise.
21481         * nss/makedb.c: Likewise.
21482         * iconv/iconvconfig.c: Likewise.
21483         * iconv/iconv_prog.c: Likewise.
21484         * elf/ldconfig.c: Likewise.
21485         * elf/pldd.c: Likewise.
21486         * elf/sotruss.ksh: Likewise.
21487         * catgets/gencat.c: Likewise.
21488         * csu/version.c: Likewise.
21489         * elf/ldd.bash.in: Likewise.
21490         * elf/sprof.c (print_version): Likewise.
21491         * locale/programs/locale.c: Likewise.
21492         * locale/programs/localedef.c: Likewise.
21493         * login/programs/pt_chown.c: Likewise.
21494         * nscd/nscd.c (print_version): Likewise.
21495         * debug/xtrace.sh: Likewise.
21496         * malloc/memusage.sh: Likewise.
21497         * malloc/mtrace.pl: Likewise.
21498         * debug/catchsegv.sh: Likewise.
21499
21500 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
21501
21502         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
21503         pure attribute.
21504
21505 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
21506
21507         [BZ #13533]
21508         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
21509         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
21510         transformations.
21511         * iconv/gconv_int.h: Likewise.
21512         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
21513         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
21514         from libc for GLIBC_2.16.
21515         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
21516         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
21517         * wcsmbs/uchar.h: Really define mbstate_t.
21518         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
21519         * wcsmbs/c16rtomb.c: New file.
21520         * wcsmbs/mbrtoc16.c: New file.
21521         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
21522         for C/POSIX locale.
21523         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
21524         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
21525
21526         * wcsmbs/wchar.h: Add missing __restrict.
21527
21528 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21529
21530         [BZ #13532]
21531         * time/Makefile (routines): Add timespec_get.
21532         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
21533         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
21534         timespec for ISO C11.
21535         * time/timespec_get.c: New file.
21536         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
21537         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
21538
21539         [BZ #13531]
21540         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
21541         * stdlib/stdlib.h: Declare aligned_alloc.
21542         * Versions.def: Add GLIBC_2.16 for libc.
21543         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
21544
21545         [BZ 13527]
21546         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
21547         ISO C11.
21548
21549         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
21550         code.
21551
21552         [BZ #13528]
21553         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
21554
21555         [BZ #13529]
21556         * assert/assert.h (static_assert): Define.
21557
21558         * version.h: Update for 2.16 development version.
21559
21560         [BZ #13526]
21561         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
21562         _ISOC11_SOURCE.
21563
21564         * version.h (RELEASE): Bump for 2.15 release.
21565         * include/features.h (__GLIBC_MINOR__): Bump to 15.
21566
21567         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
21568         Patch by Marek Polacek <mpolacek@redhat.com>.
21569
21570         * bits/byteswap.h: Protect long long constants with __extension__.
21571         * sysdeps/i386/bits/byteswap.h: Likewise.
21572         * sysdeps/ia64/bits/byteswap.h: Likewise.
21573         * sysdeps/s390/bits/byteswap.h: Likewise.
21574         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21575
21576 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21577
21578         [BZ #13540]
21579         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
21580         destination buffer.
21581         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
21582
21583 2011-12-23  Marek Polacek  <polacek@redhat.com>
21584
21585         * elf/dl-addr.c (determine_info): Add inline keyword.
21586         * elf/tst-auditmod4b.c (check_avx): Likewise.
21587         * elf/tst-auditmod6b.c (check_avx): Likewise.
21588         * elf/tst-auditmod6c.c (check_avx): Likewise.
21589         * elf/tst-auditmod7b.c (check_avx): Likewise.
21590
21591 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
21592
21593         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
21594         !__SSE_MATH__.
21595
21596 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21597
21598         [BZ #13540]
21599         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
21600         processing for last bytes.
21601
21602 2011-08-06  Bruno Haible  <bruno@clisp.org>
21603
21604         [BZ #13061]
21605         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
21606         U+0385, not to U+1FEE.
21607
21608         [BZ #13062]
21609         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
21610         entry for U+00A5 U+0301.
21611
21612 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21613
21614         [BZ #13166]
21615         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
21616         buffer for the output is too small.
21617
21618         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
21619         optimization.
21620
21621         [BZ #13185]
21622         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
21623         SSE flags if possible.
21624
21625 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21626
21627         [BZ #13540]
21628         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
21629         processing for last bytes.
21630
21631 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
21632
21633         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
21634         (syscall-list-default-options, syscall-list-default-condition)
21635         (syscall-list-includes): Define.
21636         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
21637         list of ABIs and options and #if conditions for each ABI.  Do not
21638         handle common syscalls between ABIs specially.
21639         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
21640         Remove.
21641         (syscall-list-variants, syscall-list-32bit-options)
21642         (syscall-list-32bit-condition, syscall-list-64bit-options)
21643         (syscall-list-64bit-condition): Define.
21644         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
21645         (syscall-list-variants, syscall-list-32bit-options)
21646         (syscall-list-32bit-condition, syscall-list-64bit-options)
21647         (syscall-list-64bit-condition): Define.
21648         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
21649         Remove.
21650         (syscall-list-variants, syscall-list-32bit-options)
21651         (syscall-list-32bit-condition, syscall-list-64bit-options)
21652         (syscall-list-64bit-condition): Define.
21653         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
21654         Remove.
21655         (syscall-list-variants, syscall-list-32bit-options)
21656         (syscall-list-32bit-condition, syscall-list-64bit-options)
21657         (syscall-list-64bit-condition): Define.
21658
21659 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
21660
21661         * locale/iso-639.def: Add brx entry.
21662
21663         [BZ #13328]
21664         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
21665         Proposed by Mariusz_Cukr <marcukr@op.pl>.
21666
21667         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
21668         __feraiseexcept_renamed.
21669
21670 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21671
21672         [BZ #13538]
21673         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
21674         EPOLLET with unsigned values.
21675         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
21676         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
21677
21678         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
21679         to large cancellation.
21680         * math/s_cacoshf.c: Likewise.
21681         * math/s_cacoshl.c: Likewise.
21682
21683 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
21684
21685         [BZ #13305]
21686         [BZ #12786]
21687         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
21688         * math/s_cacoshf.c: Likewise.
21689         * math/s_cacoshl.c: Likewise.
21690
21691 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
21692
21693         [BZ #13439]
21694         * iconv/gconv.h: Define __GCONV_SWAP.
21695         * iconvdata/unicode.c: The swap bit must be stored in __flags.
21696         * iconvdata/utf-16.c: Likewise.
21697         * iconvdata/utf-32.c: Likewise.
21698
21699 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
21700
21701         [BZ #13524]
21702         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
21703         numerator after shifting it by one limb.
21704
21705 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
21706
21707         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
21708         under [__USE_EXTERN_INLINES].
21709
21710 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21711
21712         [BZ #13446]
21713         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
21714
21715 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21716
21717         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
21718         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
21719         optimized code.
21720         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
21721         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
21722         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
21723         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
21724         for strncasecmp/strncasecmp_l compilation.
21725         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
21726         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
21727
21728 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
21729
21730         [BZ #13484]
21731         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
21732         of __asm__.
21733
21734 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
21735
21736         [BZ #13506]
21737         * time/tzfile.c (__tzfile_read): Check values from file header.
21738
21739 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
21740
21741         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
21742         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
21743         * powerpc/powerpc32/dl-start.S: Likewise.
21744         * powerpc/powerpc32/elf/start.S: Likewise.
21745         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
21746         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
21747         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
21748         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
21749         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
21750         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
21751         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
21752         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
21753         * powerpc/powerpc32/fpu/s_round.S: Likewise.
21754         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
21755         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
21756         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
21757         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
21758         * powerpc/powerpc32/memset.S: Likewise.
21759         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
21760         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
21761         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
21762         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
21763         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
21764         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
21765         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
21766         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
21767         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
21768         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
21769         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
21770         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
21771         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
21772
21773 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21774
21775         * math/libm-test.inc: Added more nearbyint tests.
21776         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
21777         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
21778         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
21779         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
21780
21781 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
21782
21783         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
21784         FD_CLOEXEC.
21785
21786 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21787
21788         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
21789         Add wcscpy-ssse3 wcscpy-c.
21790         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
21791         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
21792         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
21793         * sysdeps/x86_64/wcschr.S: New file.
21794         * sysdeps/x86_64/wcsrchr.S: New file.
21795         * string/test-strcmp.c: Remove checking of wcscmp function for
21796         wrong alignments.
21797         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
21798         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
21799         wcsrchr-sse2 wcsrchr-c.
21800         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
21801         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
21802         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
21803         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
21804         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
21805         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
21806         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
21807         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
21808         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
21809         * wcsmbc/wcschr.c (WCSCHR): New macro.
21810
21811 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21812
21813         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
21814         * wcsmbs/test-wcsrchr.c: New file.
21815         * string/test-strrchr.c: Add wcsrchr support.
21816         (WIDE): New macro.
21817         * wcsmbs/test-wcscpy.c: New file.
21818         * string/test-strcpy.c: Add wcscpy support.
21819         (WIDE): New macro.
21820
21821 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
21822
21823         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
21824         the inner loop.
21825
21826 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
21827
21828         [BZ #13472]
21829         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
21830
21831 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
21832
21833         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
21834         Minor optimizations.
21835
21836         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
21837         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
21838         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
21839
21840 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
21841
21842         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
21843         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
21844         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
21845         for gcc to avoid warnings.
21846         * inet/Makefile (tests): Add tst-checks.
21847         * inet/tst-checks.c: New file.
21848
21849         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
21850         warning.
21851
21852         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
21853         __wmemcmp_sse2.
21854
21855         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
21856         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
21857
21858         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
21859
21860 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
21861
21862         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
21863         problem.
21864
21865         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
21866
21867 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
21868
21869         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
21870         conditional on GCC version.
21871         (__arch_compare_and_exchange_val_8_acq)
21872         (__arch_compare_and_exchange_val_16_acq)
21873         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
21874         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
21875         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
21876
21877 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
21878
21879         * sysdeps/sh/backtrace.c: New file.
21880
21881 2011-12-02  Andreas Schwab  <schwab@redhat.com>
21882
21883         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
21884         parenthesis.
21885
21886 2011-12-01  Andreas Schwab  <schwab@redhat.com>
21887
21888         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
21889         falling back to utime.
21890
21891 2011-11-30  Andreas Schwab  <schwab@redhat.com>
21892
21893         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
21894         expectations for float.
21895
21896 2011-11-29  Andreas Schwab  <schwab@redhat.com>
21897
21898         * locale/weight.h (findidx): Add parameter len.
21899         * locale/weightwc.h (findidx): Likewise.
21900         * posix/fnmatch_loop.c (FCT): Adjust caller.
21901         * posix/regcomp.c (build_equiv_class): Likewise.
21902         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
21903         * posix/regexec.c (check_node_accept_bytes): Likewise.
21904         * string/strcoll_l.c (STRCOLL): Likewise.
21905         * string/strxfrm_l.c (STRXFRM): Likewise.
21906
21907 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
21908
21909         * Makefile.in: Remove CVSOPT handling.
21910         * configure.in: Remove use of AC_REVISION.
21911         * iconvdata/Makefile (distribute): No need to filter out CVS.
21912         * scripts/list-sources.sh: Remove CVS, subversion and monotone
21913         handling.
21914
21915 2011-11-16  Andreas Schwab  <schwab@redhat.com>
21916
21917         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
21918         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
21919         [USE_AS_STRNCASECMP_L]: Likewise.
21920         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
21921         NO_TLS_DIRECT_SEG_REFS.
21922         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
21923         Fix argument offsets for non-PIC.
21924         [USE_AS_STRNCASECMP_L]: Likewise.
21925         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
21926         NO_TLS_DIRECT_SEG_REFS.
21927
21928 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
21929
21930         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
21931         O_CLOEXEC.
21932         * locale/loadlocale.c (_nl_load_locale): Likewise.
21933
21934 2011-11-15  Andreas Schwab  <schwab@redhat.com>
21935
21936         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
21937         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
21938         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
21939         (SYSCALL_GETTIME): Set errno on error.
21940
21941         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
21942         count references to noai6ai_cached.
21943
21944 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
21945
21946         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
21947
21948         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
21949         FD_CLOEXEC for /proc/self/maps.
21950
21951         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
21952         FD_CLOEXEC for /proc/meminfo.
21953
21954         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
21955         gai.conf.
21956
21957         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
21958         FD_CLOEXEC for given file.
21959
21960         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
21961
21962         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
21963         FD_CLOEXEC for /etc/hosts.
21964         (_gethtent): Likewise.
21965
21966         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
21967
21968         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
21969         cancellation and set FD_CLOEXEC for /etc/netgroup.
21970
21971         * nss/nss_files/files-key.c (search): Don't allow cancellation when
21972         reading /etc/publickey.
21973
21974         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
21975         allow cancellation when reading /etc/group.
21976
21977         * nss/nss_files/files-alias.c (internal_setent): Don't allow
21978         cancellation.
21979         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
21980
21981         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
21982         when using data file.
21983
21984         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
21985
21986         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
21987         (write_nis_obj): Use "c" and "e" in fopen.
21988
21989         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
21990
21991         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
21992
21993         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
21994
21995         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
21996
21997         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
21998         locale.alias.
21999
22000         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
22001
22002         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
22003
22004         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
22005
22006         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
22007         file parsing and set FD_CLOEXEC.
22008
22009 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22010
22011         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
22012
22013 2011-11-14  Andreas Schwab  <schwab@redhat.com>
22014
22015         * malloc/arena.c (arena_get2): Don't call reused_arena when
22016         _int_new_arena failed.
22017
22018 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
22019
22020         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
22021         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
22022         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
22023         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
22024         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
22025         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
22026         to compile strcasecmp and strncasecmp.
22027         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
22028         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
22029
22030         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
22031
22032 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
22033
22034         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
22035         locale-defines.sym to gen-as-const-headers.
22036         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
22037         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
22038         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
22039         to compile strcasecmp and strncasecmp.
22040         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
22041         strcasecmp_l and strncasecmp_l.
22042         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
22043         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
22044         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
22045         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
22046         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
22047         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
22048         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
22049         * sysdeps/i386/i686/multiarch/strncase.S: New file.
22050         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
22051         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
22052         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
22053
22054 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
22055
22056         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
22057         result of SYSDEP_GETTIME_CPU to retval.
22058         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
22059         parameter list to macro.  Remove trailing semicolon.  Adjust users.
22060
22061         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
22062         variable.
22063
22064         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
22065         mantissa words.
22066         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
22067
22068         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
22069         from unused variable.
22070
22071         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
22072         DWARF definitions.
22073         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
22074         for assembling.
22075
22076         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
22077         over namespaces.
22078
22079         * sunrpc/rpc_prot.c (rejected): Fix case value.
22080
22081         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
22082         unsigned long long int to avoid warnings in shift.
22083
22084         * posix/regex_internal.c (re_string_reconstruct): Actually use result
22085         of use of trans.
22086         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
22087         variable tmp.
22088
22089         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
22090         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
22091         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
22092
22093         * nis/nis_table.c (nis_list): Use variable of correct type for
22094         result of __follow_path call.
22095
22096 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22097
22098         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
22099         of math functions ceil, trunc, floor, round, and sqrt, when
22100         avaliable on the platform.
22101         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
22102         name clash.
22103         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
22104         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
22105         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
22106
22107 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
22108
22109         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
22110         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22111
22112 2011-11-11  Roland McGrath  <roland@hack.frob.com>
22113
22114         * include/unistd.h: Fix __readlink return type.
22115         Reported by Chris Metcalf <cmetcalf@tilera.com>.
22116
22117 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
22118
22119         * stdlib/ucontext.h: Undo last change for makecontext.
22120
22121 2011-11-11  Andreas Schwab  <schwab@redhat.com>
22122
22123         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
22124
22125         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
22126         * setjmp/setjmp.h: Mark functions as non-leaf.
22127         * setjmp/bits/setjmp2.h: Likewise.
22128         * stdlib/ucontext.h: Likewise.
22129
22130 2011-11-10  Andreas Schwab  <schwab@redhat.com>
22131
22132         * malloc/arena.c (_int_new_arena): Don't increment narenas.
22133         (reused_arena): Don't check arena limit.
22134         (arena_get2): Atomically check arena limit.
22135
22136 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
22137
22138         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
22139         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
22140
22141         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
22142         instructions.
22143
22144 2011-11-07  Andreas Schwab  <schwab@redhat.com>
22145
22146         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
22147         handler when locking.
22148
22149         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22150         Fix size of allocated buffer.
22151
22152 2011-11-04  Andreas Schwab  <schwab@redhat.com>
22153
22154         [BZ #10103]
22155         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
22156         declarations for long double functions.
22157         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
22158
22159         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
22160
22161 2011-11-03  Andreas Schwab  <schwab@redhat.com>
22162
22163         * nscd/nscd.c (main): Don't start AVC thread until credentials are
22164         installed.
22165
22166         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
22167         is disabled.
22168
22169 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22170
22171         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
22172
22173 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
22174
22175         * include/alloca.h (stackinfo_alloca_round): Define.
22176         (extend_alloca): Use it.
22177         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
22178         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
22179         here.
22180
22181         * scripts/check-local-headers.sh: Ignore libaudit.h.
22182
22183         * nscd/Makefile (extra-objs): Make recursively expanded.
22184
22185 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
22186
22187         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
22188         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
22189
22190         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
22191         * posix/tst-rfc3484-2.c: Likewise.
22192         * posix/tst-rfc3484-3.c: Likewise.
22193
22194         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
22195         process_vm_writev.
22196         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
22197         process_vm_writev.
22198         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
22199         process_vm_writev from libc using GLIBC_2.15 version.
22200
22201         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
22202
22203 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
22204
22205         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
22206         stack usage.
22207
22208 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
22209
22210         [BZ #13367]
22211         * nss/getent.c (initgroups_keys): Show error message in case no group
22212         names are given.
22213
22214         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
22215         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
22216         __bump_nl_timestamp.
22217         * nscd/connections (nscd_init): When host database is served open
22218         netlink socket and request notification about configuration changes.
22219         (main_loop_poll): Track netlink file descriptor and bump timestamp
22220         in case data becomes available.
22221         (main_loop_epoll): Likewise.
22222         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
22223         (database_pers_head): Add extra_data fileds.
22224         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
22225         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
22226         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
22227         Adjust caller.
22228         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
22229         in6ai data, call __free_in6ai.
22230         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
22231         Add -DHAVE_NETLINK.
22232         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
22233         interface information.  Reuse previous data if netlink timestamp
22234         is not changed.
22235         (__bump_nl_timestamp): New function.
22236         (__free_in6ai): New function.
22237
22238 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
22239
22240         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
22241         close_not_cancel_no_status here.
22242         (__check_pf): Reorganize code a bit to not call close twice if OOM.
22243
22244 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22245
22246         [BZ #13276]
22247         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
22248         return value.
22249
22250         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
22251         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
22252         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
22253
22254 2011-07-03  Andreas Jaeger  <aj@suse.de>
22255
22256         [BZ #10709]
22257         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
22258         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
22259         * math/libm-test.inc (sin_test): Add test case.
22260
22261 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
22262
22263         [BZ #13337]
22264         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
22265         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22266
22267         * elf/chroot_canon.c (chroot_canon): Cleanups.
22268
22269         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
22270
22271         [BZ #13335]
22272         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
22273         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
22274
22275         * string/test-strchr.c: Make usable for strchrnul testing.
22276         * string/test-strchrnul.c: New file.
22277         * string/Makefile (strop-tests): Add strchrnul.
22278
22279         * po/it.po: Update from translation team.
22280         * po/es.po: Likewise.
22281
22282 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
22283
22284         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
22285         the three constants needed as parameters.  Drop the others.
22286         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
22287         __m128i_strloadu_tolower.
22288         Create and initialize variable zero and use it in all the places
22289         where _mm_setzero_si128 was used.
22290
22291         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
22292         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
22293         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
22294         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
22295         anymore.
22296         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
22297         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
22298         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
22299         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
22300         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
22301         __mpranred, __mptan.
22302         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
22303         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
22304         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
22305         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
22306         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
22307         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
22308         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
22309         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
22310         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
22311
22312 2011-10-28  Andreas Schwab  <schwab@redhat.com>
22313
22314         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
22315         redefine if SHARED.
22316         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
22317
22318         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
22319         wide char related routines to wcsmbs subdir.
22320
22321 2011-10-27  Andreas Schwab  <schwab@redhat.com>
22322
22323         [BZ #13344]
22324         * misc/sys/cdefs.h (__THROWNL): Define.
22325         * posix/unistd.h: Use __THREADNL instead of __THREAD
22326         for memory synchronization functions.
22327
22328 2011-10-26  Roland McGrath  <roland@hack.frob.com>
22329
22330         [BZ #13349]
22331         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
22332         doesn't exist.
22333         * manual/stdio.texi (Obstack Streams): Node removed.
22334
22335 2011-10-26  Andreas Schwab  <schwab@redhat.com>
22336
22337         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
22338         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22339         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22340
22341         * math/math_private.h (math_force_eval): Allow non-addressable
22342         arguments.
22343         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
22344
22345 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22346
22347         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
22348         file is not needed.
22349
22350         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
22351         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
22352         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
22353         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
22354         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
22355         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
22356         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
22357         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
22358         Add AVX variants.
22359         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
22360         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
22361         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
22362         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
22363         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
22364         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
22365         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
22366         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
22367         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
22368         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
22369         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
22370         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
22371         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
22372         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
22373         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
22374         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
22375         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
22376         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
22377         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
22378
22379         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
22380         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
22381
22382         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
22383         place.  Use VEX encoding when compiling for AVX.
22384
22385 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22386
22387         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
22388         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
22389
22390         * string/test-strchr.c (do_test): Don't generate NUL bytes.
22391
22392 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22393
22394         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
22395         useless if() expression.
22396         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
22397         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
22398         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
22399         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22400         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
22401         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22402         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22403         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22404         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
22405         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22406         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
22407         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22408         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
22409         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22410         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
22411         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22412         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
22413         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
22414         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
22415
22416         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
22417
22418 2011-10-25  Andreas Schwab  <schwab@redhat.com>
22419
22420         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
22421         condition.
22422         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22423
22424 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
22425
22426         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
22427         .text section.  Avoid duplicate constants.
22428         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
22429         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22430         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22431         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22432         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22433         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22434         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22435         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22436         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
22437         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
22438         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
22439         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22440         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
22441         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
22442         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
22443         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
22444         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
22445         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
22446         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
22447         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22448         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
22449         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
22450         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22451         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
22452         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
22453         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
22454         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
22455         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
22456         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
22457         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
22458         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
22459         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
22460         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22461         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
22462         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
22463         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
22464         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
22465         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
22466         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
22467         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
22468         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
22469         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
22470         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
22471         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
22472         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
22473
22474 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
22475
22476         * sysdeps/x86_64/dla.h: Move to ...
22477         * sysdeps/x86_64/fpu/dla.h: ...here.
22478         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
22479         situations.  Use __builtin_fma only for gcc 4.6 and up.
22480
22481         * config.make.in: Add have-mfma4 entry.
22482         * configure.in: Substitute libc_cv_cc_fma4.
22483         * math/Makefile (dbl-only-routines): Add sincostab.
22484         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
22485         Use __sincostab not sincos.
22486         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
22487         name is a macro.
22488         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22489         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22490         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22491         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
22492         using __copysign.
22493         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
22494         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
22495         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
22496         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
22497         and __inv.
22498         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
22499         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
22500         __copysign.
22501         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
22502         define aliases when function name is a macro.
22503         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
22504         sysdeps/ieee754/dbl-64/sincos.tbl.
22505         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
22506         fma4-enabled routines.
22507         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
22508         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
22509         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
22510         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
22511         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
22512         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
22513         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
22514         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
22515         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
22516         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
22517         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
22518         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
22519         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
22520         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
22521         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
22522         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
22523         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
22524         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
22525         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
22526         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
22527         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
22528         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
22529         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
22530         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
22531         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
22532         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
22533         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
22534         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
22535         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
22536         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
22537
22538         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
22539         rename.
22540         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22541         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22542         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22543         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22544         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22545         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22546         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22547         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22548
22549 2011-10-24  Andreas Schwab  <schwab@redhat.com>
22550
22551         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
22552
22553 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22554
22555         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
22556
22557         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
22558         prediction.
22559         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
22560
22561         * string/strnlen.c: Don't define STRNLEN, reverse logic.
22562         Remove unused variable magic_bits.
22563         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
22564
22565         * string/strnlen.c: Define and use STRNLEN macro.
22566         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
22567         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
22568         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
22569         * wcsmbs/wcslen.c: Define and use WCSLEN.
22570         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
22571         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
22572         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
22573         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
22574         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
22575         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
22576         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22577
22578 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22579
22580         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22581         strnlen-sse2-no-bsf.
22582         Rename strlen-no-bsf to strlen-sse2-no-bsf.
22583         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
22584         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
22585         Add strnlen support.
22586         (USE_AS_STRNLEN): New macro.
22587         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
22588         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
22589         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
22590         * sysdeps/x86_64/wcslen.S: New file.
22591
22592 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22593
22594         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
22595         XMM-moves are used for copying on small sizes.
22596
22597 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22598
22599         * wcsmbs/Makefile (strop-tests): Add wcschr.
22600         * wcsmbs/test-wcschr.c: New file.
22601         * string/test-strchr.c: Update.
22602         Add wcschr support.
22603         (WIDE): New macro.
22604
22605 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22606
22607         * wcsmbs/Makefile (strop-tests): Add wcslen.
22608         * wcsmbs/test-wcslen.c: New file.
22609         * string/test-strlen.c: Update.
22610         Add wcslen support.
22611         (WIDE): New macro.
22612
22613 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22614
22615         * po/it.po: Update from translation team.
22616
22617 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22618
22619         * sysdeps/x86_64/wcscmp.S: Update.
22620         Fix wrong comparison semantics.
22621         wcscmp shall use signed comparison not unsigned.
22622         Don't use substraction to avoid overflow bug.
22623         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
22624         * wcsmbc/wcscmp.c: Likewise.
22625         * string/test-strcmp.c: Likewise.
22626         Add new tests to check cases with negative values.
22627
22628 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
22629
22630         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
22631         * sysdeps/x86_64/dla.h: ...here.  New file.
22632         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
22633         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22634         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22635         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22636         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22637         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22638         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22639         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22640         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22641
22642 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
22643
22644         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
22645         __ynl_finite aliases.
22646
22647 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22648
22649         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22650
22651         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
22652         define DLA_FMA.
22653         [DLA_FMA] (EMULV): Use DLA_FMA.
22654         [DLA_FMA] (MUL12): Use EMULV.
22655         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
22656         that are not needed.
22657         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22658         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22659         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22660         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22661         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22662         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22663         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22664
22665 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
22666
22667         * math/s_nan.c: Undef __nan.
22668         * math/s_nanf.c: Undef __nanf.
22669         * math/s_nanl.c: Undef __nanl.
22670         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
22671         "math_private.h".
22672
22673 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
22674
22675         * math/s_catan.c: Add branch predictions.
22676         * math/s_catanf.c: Likewise.
22677         * math/s_catanh.c: Likewise.
22678         * math/s_catanhf.c: Likewise.
22679         * math/s_catanhl.c: Likewise.
22680         * math/s_catanl.c: Likewise.
22681         * math/s_cexp.c: Likewise.
22682         * math/s_cexpf.c: Likewise.
22683         * math/s_cexpl.c: Likewise.
22684         * math/s_clog.c: Likewise.
22685         * math/s_clog10.c: Likewise.
22686         * math/s_clog10f.c: Likewise.
22687         * math/s_clog10l.c: Likewise.
22688         * math/s_clogf.c: Likewise.
22689         * math/s_clogl.c: Likewise.
22690         * math/s_csqrt.c: Likewise.
22691         * math/s_csqrtf.c: Likewise.
22692         * math/s_csqrtl.c: Likewise.
22693         * math/s_ctanf.c: Likewise.
22694         * math/s_ctanh.c: Likewise.
22695         * math/s_ctanhf.c: Likewise.
22696         * math/s_ctanhl.c: Likewise.
22697         * math/s_ctanl.c: Likewise.
22698
22699         * math/math_private.h: Define __nan, __nanf, __nanl.
22700         * math/s_cacosh.c: Include <math_private.h>.
22701         * math/s_cacoshl.c: Likewise.
22702         * math/s_casinh.c: Likewise.
22703         * math/s_casinhf.c: Likewise.
22704         * math/s_casinhl.c: Likewise.
22705         * math/s_ccos.c: Rely entire on ccosh.
22706         * math/s_ccosf.c: Rely entire on ccoshf.
22707         * math/s_ccosl.c: Rely entirely on ccoshl.
22708         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
22709         Remove tests for FE_INVALID.
22710         * math/s_ccoshf.c: Likewise.
22711         * math/s_ccoshl.c: Likewise.
22712         * math/s_csin.c: Likewise.
22713         * math/s_csinf.c: Likewise.
22714         * math/s_csinh.c Likewise.
22715         * math/s_csinhf.c: Likewise.
22716         * math/s_csinhl.c: Likewise.
22717         * math/s_csinl.c: Likewise.
22718         * math/s_ctan.c: Likewise.
22719         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
22720         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
22721         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
22722
22723 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
22724
22725         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
22726         compilation problems.
22727
22728         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
22729         __builtin_expect.
22730
22731 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
22732
22733         * sysdeps/i386/configure.in: Test for -mfma4 option.
22734         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
22735         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
22736         COMMON_CPUID_INDEX_80000001.
22737         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
22738         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
22739         use it if FMA3 is not supported.
22740         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
22741
22742         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
22743         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
22744
22745 2011-10-20  Andreas Schwab  <schwab@redhat.com>
22746
22747         [BZ #12892]
22748         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
22749         it would create a cycle with a link time dependency.
22750
22751 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
22752
22753         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
22754         instruction.
22755         * string/Makefile (strop-tests): Add rawmemchr.
22756         * string/test-rawmemchr.c: New file.
22757
22758         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
22759         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
22760         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
22761         when compiling str{,n}casecmp and when AVX is available.  Hook up
22762         new optimized code in initializers.
22763
22764 2011-10-19  Andreas Schwab  <schwab@redhat.com>
22765
22766         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
22767         __feraiseexcept instead of feraiseexcept.
22768
22769 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
22770
22771         * math/math_private.h: Define defaults for libc_fetestexcept and
22772         libc_feupdateenv.
22773         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
22774         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
22775         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
22776         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22777         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
22778         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22779         libc_fetestexcept and libc_feupdateenv.
22780
22781         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
22782         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
22783         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
22784         * sysdeps/x86_64/fpu/math_private.h: Define special version of
22785         libc_feholdexcept_setround.
22786
22787         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
22788         Add s_nearbyint-c and s_nearbyintf-c.
22789         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
22790         nearbyintf inlines.
22791         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
22792         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
22793         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
22794         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
22795
22796         * math/math_private.h: Define defaults for libc_fegetround,
22797         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
22798         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
22799         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
22800         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
22801         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
22802         standard functions.
22803         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
22804         Remove comments and hacks for old compiler versions.
22805         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
22806         libc_fegetround, libc_fesetround, libc_feholdexcept, and
22807         libc_feholdexceptl.
22808
22809 2011-10-18  Andreas Schwab  <schwab@redhat.com>
22810
22811         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
22812         (__feraiseexcept_renamed): Add __NTH.
22813         (feraiseexcept): Add __NTH.  Rename local variables to fix
22814         namespace violations.
22815
22816 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
22817
22818         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
22819
22820         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
22821
22822         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
22823         recently added interfaces.
22824         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
22825
22826         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
22827         about macro parameter expansion.
22828
22829         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
22830         __NO_MATH_INLINES is defined.  Cleanups.
22831
22832         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
22833         and __floorf is target has SSE4.1.
22834         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
22835         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
22836         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
22837         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
22838
22839         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
22840         name.
22841         (floorf): Likewise.
22842
22843         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
22844
22845 2011-10-17  Andreas Schwab  <schwab@redhat.com>
22846
22847         * misc/sys/cdefs.h: Fix last change.
22848
22849         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
22850         database lookup.
22851
22852 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
22853
22854         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
22855
22856         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
22857         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22858         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
22859         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22860         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22861         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
22862         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22863         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22864         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
22865         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
22866         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
22867         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
22868         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
22869         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
22870         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
22871         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
22872         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
22873         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
22874         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
22875         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
22876         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
22877         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
22878
22879         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
22880         ceil, ceilf, floor, floorf.
22881
22882         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
22883         Perform IRELATIVE relocations last.
22884
22885         * elf/do-rel.h: Add another parameter nrelative, replacing the
22886         local variable with the same name.  Change name of the function
22887         to end in Rel or Rela (uppercase).
22888         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
22889         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
22890         elf_dynamic_do_##reloc function.
22891
22892 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
22893
22894         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
22895         is sufficient, at least on modern CPUs.
22896
22897         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
22898
22899         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
22900         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
22901
22902         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
22903         __expl_finite.
22904         * math/bits/math-finite.h: Add entries for exp.
22905         * math/e_expl.c: Add __*_finite alias.
22906         * sysdeps/i386/fpu/e_exp.S: Likewise.
22907         * sysdeps/i386/fpu/e_expf.S: Likewise.
22908         * sysdeps/i386/fpu/e_expl.c: Likewise.
22909         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22910         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
22911         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
22912         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
22913         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
22914         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
22915         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
22916
22917         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
22918         is sufficient, at least on modern CPUs.
22919
22920         * ctype/ctype-info.c (__ctype_init): Define.
22921         * include/ctype.h (__ctype_init): Declare.
22922         (__ctype_b_loc): The variable is always initialized.
22923         (__ctype_toupper_loc): Likewise.
22924         (__ctype_tolower_loc): Likewise.
22925         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
22926         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
22927
22928 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
22929
22930         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
22931
22932         * configure.in: Also look in $cxxmachine/include for C++ system
22933         headers.
22934
22935 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22936
22937         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
22938         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
22939         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
22940         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
22941         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
22942         (USE_AS_WMEMCMP): New macro.
22943         Fixing indents.
22944         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
22945         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
22946         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
22947         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
22948         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22949         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
22950         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
22951         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
22952         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
22953         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
22954         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
22955         (USE_AS_WMEMCMP): New macro.
22956         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
22957         * sysdeps/string/test-memcmp.c: Update.
22958         Fix simple_wmemcmp.
22959         Add new tests.
22960         * wcsmbs/wmemcmp.c: Update.
22961         (WMEMCMP): New macro.
22962         Fix overflow bug.
22963
22964 2011-10-12  Andreas Jaeger  <aj@suse.de>
22965
22966         [BZ #13268]
22967         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
22968
22969 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
22970
22971         * libio/iofwide.c (do_length): Avoid warning.
22972
22973         * ctype/ctype.h (__isctype_f): Add missing __THROW.
22974
22975 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
22976
22977         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
22978
22979         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
22980         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
22981         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
22982         * sysdeps/i386/i686/fpu/e_log.S: New file.
22983         * sysdeps/i386/i686/fpu/e_logf.S: New file.
22984         * sysdeps/i386/i686/fpu/e_logl.S: New file.
22985
22986         * ctype/ctype.h: Add support for inlined isXXX functions when
22987         compiling C++ code.
22988
22989 2011-10-14  Andreas Schwab  <schwab@redhat.com>
22990
22991         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22992
22993         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
22994
22995 2011-10-13  Roland McGrath  <roland@hack.frob.com>
22996
22997         [BZ #13291]
22998         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
22999
23000 2011-10-13  Andreas Schwab  <schwab@redhat.com>
23001
23002         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
23003         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
23004         feraiseexcept.
23005
23006         * sysdeps/x86_64/memrchr.S: Check for zero size.
23007
23008         * string/stratcliff.c: Add memrchr tests.
23009
23010 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23011
23012         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23013         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
23014         rawmemchr-sse2 rawmemchr-sse2-bsf.
23015         * sysdeps/i386/i686/multiarch/memchr.S: New file.
23016         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
23017         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
23018         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
23019         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
23020         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
23021         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
23022         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
23023         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
23024         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
23025         * string/memrchr.c (MEMRCHR): New macro.
23026
23027 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
23028
23029         Add integration with gcc's -ffinite-math-only and optimize wrapper
23030         functions in libm.
23031         * Versions.def: Define GLIBC_2.15 version for libm.
23032         * math/Makefile (headers): Add bits/math-finite.h.
23033         * math/bits/math-finite.h: New file.
23034         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
23035         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
23036         * math/e_acoshl.c: Add __*_finite alias.
23037         * math/e_acosl.c: Likewise.
23038         * math/e_asinl.c: Likewise.
23039         * math/e_atan2l.c: Likewise.
23040         * math/e_atanhl.c: Likewise.
23041         * math/e_coshl.c: Likewise.
23042         * math/e_exp10.c: Likewise.
23043         * math/e_exp10f.c: Likewise.
23044         * math/e_exp10l.c: Likewise.
23045         * math/e_exp2l.c: Likewise.
23046         * math/e_fmodl.c: Likewise.
23047         * math/e_gammal_r.c: Likewise.
23048         * math/e_hypotl.c: Likewise.
23049         * math/e_j0l.c: Likewise.
23050         * math/e_j1l.c: Likewise.
23051         * math/e_jnl.c: Likewise.
23052         * math/e_lgammal_r.c: Likewise.
23053         * math/e_log10l.c: Likewise.
23054         * math/e_log2l.c: Likewise.
23055         * math/e_logl.c: Likewise.
23056         * math/e_powl.c: Likewise.
23057         * math/e_sinhl.c: Likewise.
23058         * math/e_sqrtl.c: Likewise.
23059         * math/e_scalb.c: Completely rewritten and optimized.
23060         * math/e_scalbf.c: Likewise.
23061         * math/e_scalbl.c: Likewise.
23062         * math/w_acos.c: Likewise.
23063         * math/w_acosf.c: Likewise.
23064         * math/w_acosl.c: Likewise.
23065         * math/w_acosh.c: Likewise.
23066         * math/w_acoshf.c: Likewise.
23067         * math/w_acoshl.c: Likewise.
23068         * math/w_asin.c: Likewise.
23069         * math/w_asinf.c: Likewise.
23070         * math/w_asinl.c: Likewise.
23071         * math/w_atan2.c: Likewise.
23072         * math/w_atan2f.c: Likewise.
23073         * math/w_atan2l.c: Likewise.
23074         * math/w_atanh.c: Likewise.
23075         * math/w_atanhf.c: Likewise.
23076         * math/w_atanhl.c: Likewise.
23077         * math/w_exp10.c: Likewise.
23078         * math/w_exp10f.c: Likewise.
23079         * math/w_exp10l.c: Likewise.
23080         * math/w_fmod.c: Likewise.
23081         * math/w_fmodf.c: Likewise.
23082         * math/w_fmodl.c: Likewise.
23083         * math/w_j0.c: Likewise.
23084         * math/w_j0f.c: Likewise.
23085         * math/w_j0l.c: Likewise.
23086         * math/w_j1.c: Likewise.
23087         * math/w_j1f.c: Likewise.
23088         * math/w_j1l.c: Likewise.
23089         * math/w_jn.c: Likewise.
23090         * math/w_jnf.c: Likewise.
23091         * math/w_log.c: Likewise.
23092         * math/w_logf.c: Likewise.
23093         * math/w_logl.c: Likewise.
23094         * math/w_log10.c: Likewise.
23095         * math/w_log10f.c: Likewise.
23096         * math/w_log10l.c: Likewise.
23097         * math/w_log2.c: Likewise.
23098         * math/w_log2f.c: Likewise.
23099         * math/w_log2l.c: Likewise.
23100         * math/w_pow.c: Likewise.
23101         * math/w_powf.c: Likewise.
23102         * math/w_powl.c: Likewise.
23103         * math/w_remainder.c: Likewise.
23104         * math/w_remainderf.c: Likewise.
23105         * math/w_remainderl.c: Likewise.
23106         * math/w_scalb.c: Likewise.
23107         * math/w_scalbf.c: Likewise.
23108         * math/w_scalbl.c: Likewise.
23109         * math/w_sqrt.c: Likewise.
23110         * math/w_sqrtf.c: Likewise.
23111         * math/w_sqrtl.c: Likewise.
23112         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
23113         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
23114         used.
23115         * math/math_private.h: Declare __kernel_standard_f.
23116         * math/w_cosh.c: Remove cruft and optimize a bit.
23117         * math/w_coshf.c: Likewise.
23118         * math/w_coshl.c: Likewise.
23119         * math/w_exp2.c: Likewise.
23120         * math/w_exp2f.c: Likewise.
23121         * math/w_exp2l.c: Likewise.
23122         * math/w_hypot.c: Likewise.
23123         * math/w_hypotf.c: Likewise.
23124         * math/w_hypotl.c: Likewise.
23125         * math/w_lgamma.c: Likewise.
23126         * math/w_lgamma_r.c: Likewise.
23127         * math/w_lgammaf.c: Likewise.
23128         * math/w_lgammaf_r.c: Likewise.
23129         * math/w_lgammal.c: Likewise.
23130         * math/w_lgammal_r.c: Likewise.
23131         * math/w_sinh.c: Likewise.
23132         * math/w_sinhf.c: Likewise.
23133         * math/w_sinhl.c: Likewise.
23134         * math/w_tgamma.c: Likewise.
23135         * math/w_tgammaf.c: Likewise.
23136         * math/w_tgammal.c: Likewise.
23137         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23138         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23139         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
23140         Minor optimizations.  Pretty printing.  Remove cruft.
23141         * sysdeps/i386/fpu/e_acosf.S: Likewise.
23142         * sysdeps/i386/fpu/e_acosh.S: Likewise.
23143         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
23144         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
23145         * sysdeps/i386/fpu/e_acosl.c: Likewise.
23146         * sysdeps/i386/fpu/e_asin.S: Likewise.
23147         * sysdeps/i386/fpu/e_asinf.S: Likewise.
23148         * sysdeps/i386/fpu/e_atan2.S: Likewise.
23149         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
23150         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
23151         * sysdeps/i386/fpu/e_atanh.S: Likewise.
23152         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
23153         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
23154         * sysdeps/i386/fpu/e_exp10.S: Likewise.
23155         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
23156         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
23157         * sysdeps/i386/fpu/e_exp2.S: Likewise.
23158         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
23159         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
23160         * sysdeps/i386/fpu/e_fmod.S: Likewise.
23161         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
23162         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
23163         * sysdeps/i386/fpu/e_hypot.S: Likewise.
23164         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
23165         * sysdeps/i386/fpu/e_log.S: Likewise.
23166         * sysdeps/i386/fpu/e_log10.S: Likewise.
23167         * sysdeps/i386/fpu/e_log10f.S: Likewise.
23168         * sysdeps/i386/fpu/e_log10l.S: Likewise.
23169         * sysdeps/i386/fpu/e_log2.S: Likewise.
23170         * sysdeps/i386/fpu/e_log2f.S: Likewise.
23171         * sysdeps/i386/fpu/e_log2l.S: Likewise.
23172         * sysdeps/i386/fpu/e_logf.S: Likewise.
23173         * sysdeps/i386/fpu/e_logl.S: Likewise.
23174         * sysdeps/i386/fpu/e_pow.S: Likewise.
23175         * sysdeps/i386/fpu/e_powf.S: Likewise.
23176         * sysdeps/i386/fpu/e_powl.S: Likewise.
23177         * sysdeps/i386/fpu/e_remainder.S: Likewise.
23178         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
23179         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
23180         * sysdeps/i386/fpu/e_scalb.S: Likewise.
23181         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
23182         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
23183         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
23184         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
23185         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
23186         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23187         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23188         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23189         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23190         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
23191         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23192         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
23193         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23194         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23195         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23196         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23197         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23198         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23199         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23200         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23201         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23202         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23203         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23204         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23205         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23206         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23207         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23208         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23209         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23210         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23211         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23212         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
23213         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23214         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
23215         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23216         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23217         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23218         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23219         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23220         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23221         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23222         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23223         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23224         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23225         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23226         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23227         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23228         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23229         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23230         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23231         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23232         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23233         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23234         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23235         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
23236         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23237         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23238         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23239         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23240         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23241         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23242         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23243         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23244         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23245         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23246         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23247         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23248         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23249         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23250         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23251         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23252         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23253         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23254         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
23255         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23256         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23257         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23258         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23259         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23260         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23261         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23262         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23263         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23264         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23265         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23266         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23267         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23268         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
23269         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23270         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23271         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23272         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23273         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23274         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23275         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23276         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23277         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23278         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23279         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
23280         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
23281         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
23282         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
23283         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
23284         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
23285         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
23286         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
23287         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
23288         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
23289         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
23290         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
23291         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
23292         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
23293         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23294         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
23295         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
23296         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
23297         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
23298         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
23299         (__isnanf): Likewise.
23300         (__isinf_ns): Likewise.
23301         (__isinf_nsf): Likewise.
23302         (__finite): Likewise.
23303         (__finitef): Likewise.
23304         (__ieee754_sqrt): Define as macro.
23305         (__ieee754_sqrtf): Define as macro.
23306         (__ieee754_sqrtl): Define as macro.
23307         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
23308         inlined copy.
23309         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
23310         __FINITE_MATH_ONLY__ consistent.
23311         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
23312
23313 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
23314
23315         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
23316         of rawmemchr.
23317
23318         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
23319
23320 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
23321
23322         * po/ja.po: Update from translation team.
23323
23324 2011-10-08  Roland McGrath  <roland@hack.frob.com>
23325
23326         * locale/programs/locarchive.c (prepare_address_space): New function.
23327         (create_archive, enlarge_archive, open_archive): Use it.
23328
23329         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
23330         inside [SHARED], where it is used.
23331
23332         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
23333
23334         * nss/getent.c (netgroup_keys): Remove unused variable.
23335         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
23336
23337 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
23338
23339         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
23340         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
23341         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
23342         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
23343         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
23344         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
23345         * math/Makefile (libm-calls): Add s_isinf_ns.
23346         * math/divtc3.c: Use __isinf_nsl instead of isinf.
23347         * math/multc3.c: Likewise.
23348         * math/s_casin.c: Likewise.
23349         * math/s_casinf.c: Likewise.
23350         * math/s_casinl.c: Likewise.
23351         * math/s_ccos.c: Likewise.
23352         * math/s_ccosf.c: Likewise.
23353         * math/s_ccosl.c: Likewise.
23354         * math/s_ctan.c: Likewise.
23355         * math/s_ctanf.c: Likewise.
23356         * math/s_ctanh.c: Likewise.
23357         * math/s_ctanhf.c: Likewise.
23358         * math/s_ctanhl.c: Likewise.
23359         * math/s_ctanl.c: Likewise.
23360         * math/w_fmod.c: Likewise.
23361         * math/w_fmodf.c: Likewise.
23362         * math/w_fmodl.c: Likewise.
23363         * math/w_remainder.c: Likewise.
23364         * math/w_remainderf.c: Likewise.
23365         * math/w_remainderl.c: Likewise.
23366         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
23367         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
23368         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
23369         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
23370         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
23371         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
23372         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
23373         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
23374
23375         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
23376         of the number.
23377         * stdio-common/printf_fphex.c: Likewise.
23378         * stdio-common/printf_size.c: Likewise.
23379
23380         * math/e_exp10.c: Include math_private.h using <...> not "...".
23381         * math/e_exp10f.c: Likewise.
23382         * math/e_exp10l.c: Likewise.
23383         * math/e_exp2l.c: Likewise.
23384         * math/e_j0l.c: Likewise.
23385         * math/e_j1l.c: Likewise.
23386         * math/e_jnl.c: Likewise.
23387         * math/e_lgammal_r.c: Likewise.
23388         * math/e_rem_pio2l.c: Likewise.
23389         * math/e_scalb.c: Likewise.
23390         * math/e_scalbf.c: Likewise.
23391         * math/e_scalbl.c: Likewise.
23392         * math/k_cosl.c: Likewise.
23393         * math/k_sinl.c: Likewise.
23394         * math/k_tanl.c: Likewise.
23395         * math/s_cacoshf.c: Likewise.
23396         * math/s_catan.c: Likewise.
23397         * math/s_catanf.c: Likewise.
23398         * math/s_catanh.c: Likewise.
23399         * math/s_catanhf.c: Likewise.
23400         * math/s_catanhl.c: Likewise.
23401         * math/s_catanl.c: Likewise.
23402         * math/s_ccosh.c: Likewise.
23403         * math/s_ccoshf.c: Likewise.
23404         * math/s_ccoshl.c: Likewise.
23405         * math/s_cexp.c: Likewise.
23406         * math/s_cexpf.c: Likewise.
23407         * math/s_cexpl.c: Likewise.
23408         * math/s_clog.c: Likewise.
23409         * math/s_clog10.c: Likewise.
23410         * math/s_clog10f.c: Likewise.
23411         * math/s_clog10l.c: Likewise.
23412         * math/s_clogf.c: Likewise.
23413         * math/s_clogl.c: Likewise.
23414         * math/s_csin.c: Likewise.
23415         * math/s_csinf.c: Likewise.
23416         * math/s_csinh.c: Likewise.
23417         * math/s_csinhf.c: Likewise.
23418         * math/s_csinhl.c: Likewise.
23419         * math/s_csinl.c: Likewise.
23420         * math/s_csqrt.c: Likewise.
23421         * math/s_csqrtf.c: Likewise.
23422         * math/s_csqrtl.c: Likewise.
23423         * math/s_ctan.c: Likewise.
23424         * math/s_ctanf.c: Likewise.
23425         * math/s_ctanh.c: Likewise.
23426         * math/s_ctanhf.c: Likewise.
23427         * math/s_ctanhl.c: Likewise.
23428         * math/s_ctanl.c: Likewise.
23429         * math/s_ldexp.c: Likewise.
23430         * math/s_ldexpf.c: Likewise.
23431         * math/s_ldexpl.c: Likewise.
23432         * math/s_significand.c: Likewise.
23433         * math/s_significandf.c: Likewise.
23434         * math/s_significandl.c: Likewise.
23435         * math/w_acos.c: Likewise.
23436         * math/w_acosf.c: Likewise.
23437         * math/w_acosh.c: Likewise.
23438         * math/w_acoshf.c: Likewise.
23439         * math/w_acoshl.c: Likewise.
23440         * math/w_acosl.c: Likewise.
23441         * math/w_asin.c: Likewise.
23442         * math/w_asinf.c: Likewise.
23443         * math/w_asinl.c: Likewise.
23444         * math/w_atan2.c: Likewise.
23445         * math/w_atan2f.c: Likewise.
23446         * math/w_atan2l.c: Likewise.
23447         * math/w_atanh.c: Likewise.
23448         * math/w_atanhf.c: Likewise.
23449         * math/w_atanhl.c: Likewise.
23450         * math/w_cosh.c: Likewise.
23451         * math/w_coshf.c: Likewise.
23452         * math/w_coshl.c: Likewise.
23453         * math/w_dremf.c: Likewise.
23454         * math/w_exp10.c: Likewise.
23455         * math/w_exp10f.c: Likewise.
23456         * math/w_exp10l.c: Likewise.
23457         * math/w_exp2.c: Likewise.
23458         * math/w_exp2f.c: Likewise.
23459         * math/w_fmod.c: Likewise.
23460         * math/w_fmodf.c: Likewise.
23461         * math/w_fmodl.c: Likewise.
23462         * math/w_hypot.c: Likewise.
23463         * math/w_hypotf.c: Likewise.
23464         * math/w_hypotl.c: Likewise.
23465         * math/w_j0.c: Likewise.
23466         * math/w_j0f.c: Likewise.
23467         * math/w_j0l.c: Likewise.
23468         * math/w_j1.c: Likewise.
23469         * math/w_j1f.c: Likewise.
23470         * math/w_j1l.c: Likewise.
23471         * math/w_jn.c: Likewise.
23472         * math/w_jnf.c: Likewise.
23473         * math/w_jnl.c: Likewise.
23474         * math/w_lgamma.c: Likewise.
23475         * math/w_lgamma_r.c: Likewise.
23476         * math/w_lgammaf.c: Likewise.
23477         * math/w_lgammaf_r.c: Likewise.
23478         * math/w_lgammal.c: Likewise.
23479         * math/w_lgammal_r.c: Likewise.
23480         * math/w_log.c: Likewise.
23481         * math/w_log10.c: Likewise.
23482         * math/w_log10f.c: Likewise.
23483         * math/w_log10l.c: Likewise.
23484         * math/w_log2.c: Likewise.
23485         * math/w_log2f.c: Likewise.
23486         * math/w_log2l.c: Likewise.
23487         * math/w_logf.c: Likewise.
23488         * math/w_logl.c: Likewise.
23489         * math/w_pow.c: Likewise.
23490         * math/w_powf.c: Likewise.
23491         * math/w_powl.c: Likewise.
23492         * math/w_remainder.c: Likewise.
23493         * math/w_remainderf.c: Likewise.
23494         * math/w_remainderl.c: Likewise.
23495         * math/w_scalb.c: Likewise.
23496         * math/w_scalbf.c: Likewise.
23497         * math/w_scalbl.c: Likewise.
23498         * math/w_sinh.c: Likewise.
23499         * math/w_sinhf.c: Likewise.
23500         * math/w_sinhl.c: Likewise.
23501         * math/w_sqrt.c: Likewise.
23502         * math/w_sqrtf.c: Likewise.
23503         * math/w_sqrtl.c: Likewise.
23504         * math/w_tgamma.c: Likewise.
23505         * math/w_tgammaf.c: Likewise.
23506         * math/w_tgammal.c: Likewise.
23507
23508         * po/ja.po: Update from translation team.
23509
23510 2011-09-29  Andreas Jaeger  <aj@suse.de>
23511
23512         [BZ #13179]
23513         * sunrpc/netname.c (netname2host): Fix logic.
23514
23515         [BZ #6779]
23516         [BZ #6783]
23517         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
23518         correctly.
23519         * math/w_remainder.c (__remainder): Likewise.
23520         * math/w_remainderf.c (__remainderf): Likewise.
23521         * math/libm-test.inc (remainder_test): Add test cases.
23522
23523 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23524
23525         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
23526         sdiv_qrnnd.
23527
23528 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23529
23530         * string/test-memcmp.c: Avoid unncessary #defines.
23531         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
23532
23533 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23534
23535         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
23536         Use new sse2 version for core i3 - i7 as it's faster
23537         than sse42 version.
23538         (bit_Prefer_PMINUB_for_stringop): New.
23539         * sysdeps/x86_64/rawmemchr.S: Update.
23540         Replace with faster SSE2 version.
23541         * sysdeps/x86_64/memrchr.S: New file.
23542         * sysdeps/x86_64/memchr.S: Update.
23543         Replace with faster SSE2 version.
23544
23545 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
23546
23547         * elf/dl-load.c (lose): Add cast to avoid warning.
23548
23549 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
23550
23551         * po/ca.po: Update from translation team.
23552
23553         * inet/getnetgrent_r.c: Hook up nscd.
23554         * nscd/Makefile (routines): Add nscd_netgroup.
23555         (nscd-modules): Add netgroupcache.
23556         (CFLAGS-netgroupcache.c): Define.
23557         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
23558         (cache_search): Add const to second parameter.
23559         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
23560         INNETGR.
23561         (dbs): Add netgrdb entry.
23562         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
23563         (verify_persistent_db): Handle netgrdb.
23564         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
23565         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
23566         GETFDNETGR.
23567         (netgroup_response_header): Define.
23568         (innetgroup_response_header): Define.
23569         (datahead): Add netgroup_response_header and innetgroup_response_header
23570         elements.
23571         * nscd/nscd.conf: Add entries for netgroup cache.
23572         * nscd/nscd.h (dbtype): Add netgrdb.
23573         (_PATH_NSCD_NETGROUP_DB): Define.
23574         (netgroup_iov_disabled): Declare.
23575         (xmalloc, xcalloc, xrealloc): Move declarations here.
23576         (cache_search): Adjust prototype.
23577         Add netgroup-related prototypes.
23578         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
23579         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
23580         (__nscd_innetgr): Declare.
23581         * nscd/selinux.c (perms): Use access_vector_t as element type and
23582         add netgroup-related initializers.
23583         * nscd/netgroupcache.c: New file.
23584         * nscd/nscd_netgroup.c: New file.
23585         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
23586         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
23587         For four parameters use innetgr.
23588         * nss/nss_files/files-init.c: Add definition and callback for netgr.
23589         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
23590         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
23591         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
23592
23593         * nscd/connections.c (register_traced_file): Don't register file
23594         for disabled databases.
23595
23596 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
23597
23598         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
23599
23600         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
23601         from tree and freeing node.
23602
23603 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
23604
23605         * nss/nsswitch.c (__nss_database_lookup): Handle
23606         nss_parse_service_list out of memory case.
23607
23608 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
23609
23610         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
23611         out of memory case.
23612
23613 2011-10-04  Andreas Schwab  <schwab@redhat.com>
23614
23615         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
23616         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
23617         pass it down.
23618         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
23619         elf_machine_rela, elf_machine_lazy_rel.
23620         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
23621         (ELF_DYNAMIC_DO_REL): Likewise.
23622         (ELF_DYNAMIC_DO_RELA): Likewise.
23623         (ELF_DYNAMIC_RELOCATE): Likewise.
23624         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
23625         to ELF_DYNAMIC_DO_REL.
23626         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
23627         (dl_main): In trace mode always set __RTLD_NOIFUNC.
23628         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
23629         elf_machine_rela.
23630         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
23631         skip_ifunc, don't call ifunc function if non-zero.
23632         (elf_machine_rela): Likewise.
23633         (elf_machine_lazy_rel): Likewise.
23634         (elf_machine_lazy_rela): Likewise.
23635         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
23636         (elf_machine_lazy_rel): Likewise.
23637         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
23638         Likewise.
23639         (elf_machine_lazy_rel): Likewise.
23640         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23641         Likewise.
23642         (elf_machine_lazy_rel): Likewise.
23643         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
23644         (elf_machine_lazy_rel): Likewise.
23645         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
23646         (elf_machine_lazy_rel): Likewise.
23647         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
23648         (elf_machine_lazy_rel): Likewise.
23649         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
23650         (elf_machine_lazy_rel): Likewise.
23651         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
23652         (elf_machine_lazy_rel): Likewise.
23653         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
23654         (elf_machine_lazy_rel): Likewise.
23655
23656 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
23657
23658         * nss/nss_files/files-init.c (_nss_files_init): Use static
23659         initialization for all the *_traced_file variables.
23660
23661 2011-09-28  Andreas Schwab  <schwab@redhat.com>
23662
23663         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23664
23665 2011-09-27  Roland McGrath  <roland@hack.frob.com>
23666
23667         [BZ #13226]
23668         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
23669
23670 2011-09-27  Andreas Schwab  <schwab@redhat.com>
23671
23672         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
23673         Reread the line before reparsing it.
23674
23675 2011-09-26  Andreas Schwab  <schwab@redhat.com>
23676
23677         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
23678
23679 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
23680             Maxim Kuvyrkov  <maxim@codesourcery.com>
23681             Joseph Myers  <joseph@codesourcery.com>
23682
23683         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
23684         if needed for __stack_chk_guard.
23685
23686 2011-09-19  Roland McGrath  <roland@hack.frob.com>
23687
23688         * sysdeps/posix/spawni.c (script_execute): Always define it.
23689         It will be optimized away if unused.
23690         (maybe_script_execute): New function.
23691         (__spawni): Call it.
23692
23693         * Makerules: Don't include tls.make.
23694         (config-tls): Always set to thread.
23695         * tls.make.c: File removed.
23696
23697 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
23698
23699         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
23700         * config.make.in (CPPFLAGS-config): New substituted variable.
23701
23702 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23703
23704         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
23705
23706         [BZ #13192]
23707         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
23708         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
23709
23710 2011-09-15  Roland McGrath  <roland@hack.frob.com>
23711
23712         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
23713         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
23714         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
23715         (CALL_FAIL): Likewise.
23716         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
23717         (CALL_FAIL): Macro removed.
23718         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
23719
23720 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
23721
23722         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
23723         for __FINITE_MATH_ONLY__ == 1.
23724
23725 2011-09-15  Andreas Schwab  <schwab@redhat.com>
23726
23727         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
23728         __ieee754_sqrt instead of sqrt.
23729         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
23730         __ieee754_sqrtf instead of sqrtf.
23731         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
23732         __floorf instead of floorf.
23733         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
23734         __floorf, __truncf instead of floorf, truncf.
23735
23736 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
23737
23738         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
23739
23740         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
23741         __extern_always_inline.
23742         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
23743         32-bit.
23744
23745 2011-09-14  Andreas Schwab  <schwab@redhat.com>
23746
23747         * elf/rtld.c (dl_main): Also relocate in dependency order when
23748         doing symbol dependency testing.
23749
23750 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
23751
23752         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23753         Always define `refsym'.
23754
23755 2011-09-13  Andreas Schwab  <schwab@redhat.com>
23756
23757         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
23758         (__FD_ELT): Renamed from __FDELT.
23759         * misc/bits/select2.h (__FD_ELT): Likewise.
23760         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
23761         __FD_MASK instead of __FDELT, __FDMASK.
23762         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23763         Likewise.
23764         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
23765         Likewise.
23766
23767         * elf/Makefile (gen-ldd): Fix pattern.
23768
23769         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
23770         (init_tls): Likewise.
23771
23772 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
23773
23774         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
23775
23776 2011-09-12  Andreas Schwab  <schwab@redhat.com>
23777
23778         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
23779         `struct cmsghdr *' instead of `void *'.
23780         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
23781         Likewise.
23782
23783 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
23784
23785         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
23786         if non-absolute.
23787         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
23788         ldd_rewrite_script.
23789
23790 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
23791
23792         * configure.in: Remove --with-tls option.
23793         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
23794         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
23795         out in case it is missing.
23796         * sysdeps/ia64/elf/configure.in: Likewise.
23797         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
23798         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
23799         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
23800         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
23801         * sysdeps/sh/elf/configure.in: Likewise.
23802         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
23803         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
23804         * sysdeps/x86_64/elf/configure.in: Likewise.
23805         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
23806         * sysdeps/mach/hurd/tls.h: Likewise.
23807
23808         [BZ #13067]
23809         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
23810
23811         [BZ #13090]
23812         * configure.in: Fix use of AC_INIT.
23813
23814         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
23815
23816 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
23817
23818         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
23819         __set_errno.
23820         * malloc/hooks.c: Likewise.
23821
23822         [BZ #11929]
23823         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
23824         variables statically.
23825         (narenas): Initialize.
23826         (list_lock): Initialize.
23827         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
23828         initializtion of main_arena and list_lock.  Small cleanups.
23829         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
23830         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
23831         Add initializers to main_arena and mp_.
23832         (malloc_state): Remove pagesize member.  Change all users to use
23833         GLRO(dl_pagesize).
23834
23835         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
23836         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
23837         is always initialized.
23838
23839         * malloc/malloc.c: Removed unused configurations and dead code.
23840         * malloc/arena.c: Likewise.
23841         * malloc/hooks.c: Likewise.
23842         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
23843
23844         * include/tls.h: Removed.  USE___THREAD must always be defined.
23845         * bits/libc-tsd.h: Don't handle !USE___THREAD.
23846         * elf/dl-libc.c: Likewise.
23847         * elf/dl-tsd.c: Likewise.
23848         * include/errno.h: Likewise.
23849         * include/netdb.h: Likewise.
23850         * include/resolv.h: Likewise.
23851         * inet/herrno-loc.c: Likewise.
23852         * inet/herrno.c: Likewise.
23853         * malloc/arena.c: Likewise.
23854         * malloc/hooks.c: Likewise.
23855         * malloc/malloc.c: Likewise.
23856         * resolv/res-state.c: Likewise.
23857         * resolv/res_libc.c: Likewise.
23858         * sysdeps/i386/dl-machine.h: Likewise.
23859         * sysdeps/ia64/dl-machine.h: Likewise.
23860         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
23861         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23862         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
23863         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
23864         * sysdeps/sh/dl-machine.h: Likewise.
23865         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
23866         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
23867         * sysdeps/unix/i386/sysdep.S: Likewise.
23868         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23869         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23870         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23871         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23872         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23873         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23874         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23875         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23876         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23877         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23878         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23879         * sysdeps/x86_64/dl-machine.h: Likewise.
23880         * tls.make.c: Likewise.
23881
23882         * configure.in: Remove --with-__thread option.  Make tests for
23883         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
23884         tls_model attribute fail if no support is available.  Remove
23885         USE_IN_LIBIO.
23886         * Makeconfig: Adjust for dropped configure option.  All features are
23887         now mandatory.
23888         * Makerules: Likewise.
23889         * Versions.def: Likewise.
23890         * argp/argp-fmtstream.c: Likewise.
23891         * argp/argp-fmtstream.h: Likewise.
23892         * argp/argp-help.c: Likewise.
23893         * assert/assert.c: Likewise.
23894         * config.h.in: Likewise.
23895         * config.make.in: Likewise.
23896         * configure: Likewise.
23897         * configure.in: Likewise.
23898         * csu/Versions: Likewise.
23899         * csu/init.c: Likewise.
23900         * elf/tst-audit2.c: Likewise.
23901         * elf/tst-tls10.c: Likewise.
23902         * elf/tst-tls10.h: Likewise.
23903         * elf/tst-tls11.c: Likewise.
23904         * elf/tst-tls12.c: Likewise.
23905         * elf/tst-tls14.c: Likewise.
23906         * elf/tst-tlsmod11.c: Likewise.
23907         * elf/tst-tlsmod12.c: Likewise.
23908         * elf/tst-tlsmod13.c: Likewise.
23909         * elf/tst-tlsmod13a.c: Likewise.
23910         * elf/tst-tlsmod14a.c: Likewise.
23911         * elf/tst-tlsmod15b.c: Likewise.
23912         * elf/tst-tlsmod16a.c: Likewise.
23913         * elf/tst-tlsmod16b.c: Likewise.
23914         * elf/tst-tlsmod7.c: Likewise.
23915         * elf/tst-tlsmod8.c: Likewise.
23916         * elf/tst-tlsmod9.c: Likewise.
23917         * gmon/gmon.c: Likewise.
23918         * grp/fgetgrent_r.c: Likewise.
23919         * grp/putgrent.c: Likewise.
23920         * hurd/fopenport.c: Likewise.
23921         * include/libc-symbols.h: Likewise.
23922         * include/tls.h: Likewise.
23923         * intl/gettextP.h: Likewise.
23924         * intl/loadinfo.h: Likewise.
23925         * locale/global-locale.c: Likewise.
23926         * locale/localeinfo.h: Likewise.
23927         * mach/devstream.c: Likewise.
23928         * malloc/arena.c: Likewise.
23929         * malloc/set-freeres.c: Likewise.
23930         * misc/err.c: Likewise.
23931         * misc/getttyent.c: Likewise.
23932         * misc/mntent_r.c: Likewise.
23933         * posix/getopt.c: Likewise.
23934         * posix/wordexp.c: Likewise.
23935         * pwd/fgetpwent_r.c: Likewise.
23936         * resolv/Versions: Likewise.
23937         * resolv/res_hconf.c: Likewise.
23938         * shadow/fgetspent_r.c: Likewise.
23939         * shadow/putspent.c: Likewise.
23940         * stdio-common/printf_fphex.c: Likewise.
23941         * stdio-common/tmpfile.c: Likewise.
23942         * stdlib/abort.c: Likewise.
23943         * stdlib/fmtmsg.c: Likewise.
23944         * sunrpc/auth_unix.c: Likewise.
23945         * sunrpc/clnt_perr.c: Likewise.
23946         * sunrpc/clnt_tcp.c: Likewise.
23947         * sunrpc/clnt_udp.c: Likewise.
23948         * sunrpc/clnt_unix.c: Likewise.
23949         * sunrpc/openchild.c: Likewise.
23950         * sunrpc/svc_simple.c: Likewise.
23951         * sunrpc/svc_tcp.c: Likewise.
23952         * sunrpc/svc_udp.c: Likewise.
23953         * sunrpc/svc_unix.c: Likewise.
23954         * sunrpc/xdr.c: Likewise.
23955         * sunrpc/xdr_array.c: Likewise.
23956         * sunrpc/xdr_rec.c: Likewise.
23957         * sunrpc/xdr_ref.c: Likewise.
23958         * sunrpc/xdr_stdio.c: Likewise.
23959
23960 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23961
23962         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23963
23964 2011-07-03  Andreas Jaeger  <aj@suse.de>
23965
23966         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
23967         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
23968         regenerate with gen-libm-tests.pl.
23969
23970 2010-05-12  Petr Baudis  <pasky@suse.cz>
23971
23972         [BZ #11589]
23973         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
23974         around j0() zero points by switching to j1().
23975         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23976         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23977         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23978         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23979
23980 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23981
23982         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
23983         instead of 0.
23984         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
23985         instead of 0.
23986         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
23987         Patch in part by Pavel Roskin <proski@gnu.org>.
23988
23989         [BZ #13138]
23990         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
23991         realloc.
23992         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
23993         Free memory block if necessary.
23994
23995         [BZ #12847]
23996         * libio/genops.c (INTDEF): For string streams the _lock pointer can
23997         be NULL.  Don't lock in this case.
23998
23999 2011-09-09  Roland McGrath  <roland@hack.frob.com>
24000
24001         * elf/elf.h (ELFOSABI_GNU): New macro.
24002         (ELFOSABI_LINUX): Define to that.
24003
24004 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
24005
24006         * string/strncat.c (strncat): Undef the symbol in case it has been
24007         defined in bits/string.h.
24008
24009 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
24010
24011         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
24012
24013         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
24014         link map.
24015
24016 2011-08-17  Andreas Jaeger  <aj@suse.de>
24017
24018         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
24019
24020 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
24021             Ian Lance Taylor  <iant@google.com>
24022
24023         * math/libm-test.inc (lround_test): New testcase.
24024         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
24025
24026 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
24027
24028         * Makefile: Remove support for automatic cvs check-ins.
24029         * Makerules: Likewise.
24030         * config.make.in: Likewise.
24031         * configure.in: Likewise.
24032         * intl/Makefile: Likewise.
24033         * locale/Makefile: Likewise.
24034         * po/Makefile: Likewise.
24035         * posix/Makefile: Likewise.
24036         * sysdeps/gnu/Makefile: Likewise.
24037         * sysdeps/mach/hurd/Makefile: Likewise.
24038         * sysdeps/sparc/sparc32/Makefile: Likewise.
24039
24040         [BZ #13118]
24041         * posix/Makefile (bug-regex32-ENV): Define.
24042         Patch by John Stanley <jpsinthemix@verizon.net>.
24043
24044         * misc/Makefile (headers): Add bits/select2.h.
24045         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
24046         * misc/bits/select2.h: New file.
24047         * include/bits/select2.h: New file.
24048         * debug/Makefile (routines): Add fdelt_chk.
24049         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
24050         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
24051         FD_ISSET.
24052         * debug/fdelt_chk.c: New file.
24053
24054         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
24055         * wcsmbs/test-wmemcmp.c: Likewise.
24056         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
24057         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
24058
24059 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24060
24061         * string/Makefile (strop-tests): Add memcmp.
24062         * string/test-wmemcmp.c: New file.
24063         * string/test-memcmp.c: Add wmemcmp support.
24064
24065 2011-09-08  Roland McGrath  <roland@hack.frob.com>
24066
24067         [BZ #13153]
24068         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
24069         2011-07-19 change.
24070
24071         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
24072         garbage value in a __mach_port_mod_refs call in the cases of the
24073         task-self and thread-self ports.
24074
24075 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24076
24077         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
24078
24079 2011-09-08  Andreas Schwab  <schwab@redhat.com>
24080
24081         * elf/dl-load.c (lose): Check for non-null L.
24082
24083 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24084
24085         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
24086
24087         * elf/dl-libc.c (dlerror_run): Pass back error code from
24088         dl_catch_error.
24089
24090         [BZ #13123]
24091         * elf/dl-load.c (lose): Free l_origin if it is valid.
24092
24093         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
24094         names.
24095         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24096         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24097         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24098         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24099         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24100         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
24101
24102 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24103
24104         * sysdeps/powerpc/fpu/e_hypot.c: New file.
24105         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
24106         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
24107         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
24108         * sysdeps/powerpc/fpu/k_cosf.c: New file.
24109         * sysdeps/powerpc/fpu/k_sinf.c: New file.
24110         * sysdeps/powerpc/fpu/s_cosf.c: New file.
24111         * sysdeps/powerpc/fpu/s_sinf.c: New file.
24112         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
24113         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
24114
24115 2011-08-15  Alan Modra  <amodra@gmail.com>
24116
24117         [BZ #13092]
24118         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
24119         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
24120         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
24121         ppc_mcount to static-only-routines.
24122         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
24123         __mcount_internal.
24124         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
24125         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
24126
24127 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
24128
24129         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
24130         for finite and infinity parameters.
24131
24132 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24133
24134         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
24135         and add nop instructions for throughput optimization.
24136         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24137
24138 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
24139
24140         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
24141         aligned copy for power7 with vector-scalar instructions.
24142         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
24143
24144 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
24145
24146         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
24147         AVX check.
24148
24149 2011-09-07  Andreas Schwab  <schwab@redhat.com>
24150
24151         [BZ #13144]
24152         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
24153         last change.
24154
24155 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
24156
24157         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24158         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
24159         syscall wrapper around clock_gettime in __vdso_clock_gettime.
24160         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
24161         clock_gettime.
24162
24163 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24164
24165         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
24166         Forgot to demangle the pointer.
24167
24168         * sysdeps/i386/sysdep.h: Define atom_text_section.
24169         * sysdeps/x86_64/sysdep.h: Likewise.
24170         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
24171         section with atom_text_section.
24172         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24173         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24174         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24175         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24176         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
24177
24178         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
24179         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
24180         already be defined.  Change to take two parameters and don't assign
24181         result to variable.  Adjust all users.
24182         Define INTERNAL_GETTIME if not already defined.
24183         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
24184         call.
24185         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
24186         HAVE_CLOCK_GETTIME_VSYSCALL.
24187         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
24188
24189         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
24190         gettimeofday vsyscall, just use time.
24191
24192 2011-09-06  Andreas Schwab  <schwab@redhat.com>
24193
24194         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
24195         <errno.h>.
24196
24197 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
24198
24199         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
24200         syscall on x86-64.
24201         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
24202         syscall.
24203         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
24204         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
24205         syscall if possible.
24206
24207 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24208
24209         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
24210         e_ident.  Don't pass to find_mapsXX.
24211         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
24212
24213 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24214
24215         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24216         strchr-sse2-no-bsf strrchr-sse2-no-bsf
24217         * sysdeps/x86_64/multiarch/strchr.S: Update.
24218         Check bit_slow_BSF bit.
24219         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
24220         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
24221         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
24222
24223 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24224
24225         [BZ #13134]
24226         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
24227         before glibc 2.15.
24228         (tryshell): Define.
24229         (__spawni): Change last parameter to be flag.  Test
24230         SPAWN_XFLAGS_USE_PATH flag to use path or not.
24231         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
24232         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
24233         * posix/spawni.c: Likewise.
24234         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
24235         * posix/spawnp.c: Likewise.  Change normal version to use
24236         SPAWN_XFLAGS_USE_PATH.
24237         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
24238         SPAWN_XFLAGS_TRY_SHELL.
24239
24240         [BZ #13150]
24241         * posix/glob.h: Remove gcc 1.x support.
24242
24243         [BZ #13068]
24244         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
24245
24246 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24247
24248         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24249         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
24250         strrchr-sse2-bsf
24251         * sysdeps/i386/i686/multiarch/strchr.S: New file.
24252         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
24253         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
24254         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
24255         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
24256         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
24257
24258 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24259
24260         * sysdeps/x86_64/wcscmp.S: New file.
24261
24262         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
24263         wcscmp-c wcscmp-sse2
24264         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
24265         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
24266         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
24267         * wcsmbs/wcscmp.c: Allow renaming.
24268
24269 2011-09-05  David S. Miller  <davem@davemloft.net>
24270
24271         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
24272         stack slot, rather than the struct return pointer slot.
24273         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
24274         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
24275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
24276         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
24277
24278 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
24279
24280         * po/ja.po: Update from translation team.
24281
24282         [BZ #13144]
24283         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
24284         kernel in 64-bit binaries.
24285
24286 2011-09-01  David S. Miller  <davem@davemloft.net>
24287
24288         * elf/elf.h (HWCAP_SPARC_*): Move to..
24289         * sysdeps/sparc/sysdep.h: this new file and add new values.
24290         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
24291         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
24292         _DL_HWCAP_COUNT to 24.
24293         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
24294         entries.
24295         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
24296         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
24297         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
24298         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
24299         instead of magic constants.
24300         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24301
24302 2011-08-31  David S. Miller  <davem@davemloft.net>
24303
24304         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
24305         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
24306         Reimplement to do errno handling inline.
24307         (SYSCALL_ERROR_HANDLER): New macro.
24308         (__SYSCALL_STRING): Do not do errno handling in asm.
24309         (__CLONE_SYSCALL_STRING): Delete.
24310         (__INTERNAL_SYSCALL_STRING): Delete.
24311         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
24312         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
24313         (PSEUDO): Reimplement to do errno handling inline.
24314         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
24315         (SYSCALL_ERROR_HANDLER): New macro.
24316         (__SYSCALL_STRING): Do not do errno handling in asm.
24317         (__CLONE_SYSCALL_STRING): Delete.
24318         (__INTERNAL_SYSCALL_STRING): Delete.
24319         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
24320         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
24321         i386.
24322         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
24323         (inline_syscall*): Add 'err' argument.
24324         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
24325         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
24326         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
24327         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
24328
24329         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
24330         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
24331
24332 2011-08-30  Andreas Schwab  <schwab@redhat.com>
24333
24334         * elf/rtld.c (dl_main): Relocate objects in dependency order.
24335
24336 2011-08-29  Jiri Olsa <jolsa@redhat.com>
24337
24338         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
24339         directive.
24340
24341 2011-08-24  David S. Miller  <davem@davemloft.net>
24342
24343         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
24344
24345 2011-08-24  Andreas Schwab  <schwab@redhat.com>
24346
24347         * elf/Makefile: Add rules to build and run unload8 test.
24348         * elf/unload8.c: New file.
24349         * elf/unload8mod1.c: New file.
24350         * elf/unload8mod1x.c: New file.
24351         * elf/unload8mod2.c: New file.
24352         * elf/unload8mod3.c: New file.
24353
24354         * elf/dl-close.c (_dl_close_worker): Reset private search list if
24355         it wasn't used.
24356
24357 2011-08-23  David S. Miller  <davem@davemloft.net>
24358
24359         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
24360         subtract stack bias.
24361         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
24362         %sp not %fp in calculations.
24363         (_JMPBUF_UNWINDS_ADJ): Likewise.
24364
24365         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
24366         (aio_suspend): Call it to force an exception region around the
24367         AIO_MISC_WAIT() invocation.
24368
24369 2011-08-23  Andreas Schwab  <schwab@redhat.com>
24370
24371         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
24372         backslash.
24373
24374 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
24375
24376         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
24377         protection macro.
24378         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
24379         and <dl-machine.h>.
24380         (Elf64_FuncDesc): Remove.
24381
24382 2011-08-22  David S. Miller  <davem@davemloft.net>
24383
24384         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
24385         sigaltstack check, add missing cfi directives.
24386         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
24387         missing cfi directives, and sigaltstack handling.
24388
24389 2011-08-16  Andreas Schwab  <schwab@redhat.com>
24390
24391         [BZ #11724]
24392         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
24393         object is seen twice.
24394         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24395
24396         * elf/Makefile (distribute): Add tst-initorder2.c.
24397         (tests): Add tst-initorder2.
24398         (modules-names): Add tst-initorder2a tst-initorder2b
24399         tst-initorder2c tst-initorder2d.  Add rules to build them.
24400         ($(objpfx)tst-initorder2.out): New rule.
24401         * elf/tst-initorder2.c: New file.
24402         * elf/tst-initorder2.exp: New file.
24403
24404 2011-08-22  Andreas Schwab  <schwab@redhat.com>
24405
24406         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
24407
24408         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
24409         dependencies back to end of function.
24410
24411         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
24412         $(elfobjdir)/ld.so.
24413
24414 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
24415
24416         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
24417         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
24418         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
24419         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
24420         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
24421         of __vdso_gettimeofday.
24422         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
24423         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
24424         attribute_hidden.
24425         (_libc_vdso_platform_setup): Remove initialization of
24426         __vdso_gettimeofday and __vdso_time.
24427
24428 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24429
24430         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
24431         and fgetc_unlocked.
24432         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
24433         getc_unlocked.
24434
24435         * elf/dl-open.c (add_to_global): Report additions to the global scope
24436         for LD_DEBUG=scopes.
24437         (dl_open_worker): Also print scope of newly loaded dependencies.
24438         (_dl_show_scope): Indicate if there is no scope.
24439
24440         [BZ #13114]
24441         * stdio-common/Makefile (tests): Add bug24.
24442         * stdio-common/bug24.c: New file.
24443
24444 2011-08-19  Andreas Jaeger  <aj@suse.de>
24445
24446         [BZ #13114]
24447         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
24448         non-existant file when using close-on-exec mode.
24449
24450 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
24451
24452         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
24453         the very first instruction.
24454
24455         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
24456         the CFI state in the end.
24457         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
24458         inclusion of dl-trampoline.h.
24459         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
24460
24461 2011-08-19  Andreas Schwab  <schwab@redhat.com>
24462
24463         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
24464         expectations for long double.
24465
24466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
24467         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
24468
24469 2011-08-14  David S. Miller  <davem@davemloft.net>
24470
24471         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
24472         artificual limit depends upon the system page size.
24473
24474 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24475
24476         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
24477         * resolv/Makefile: Define CFLAGS-libresolv.
24478
24479 2011-08-17  Andreas Schwab  <schwab@redhat.com>
24480
24481         * nss/makedb.c (compute_tables): Make variables used in nested
24482         function static.
24483
24484 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
24485
24486         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
24487         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
24488         if buffer was too small.
24489
24490         * elf/pldd.c (main): Attach to all threads in the process.
24491         Rewrite /proc handling to use *at functions.
24492
24493 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
24494
24495         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
24496         specifies first scope to show.
24497         (dl_open_worker): Update callers.  Move printing scope of new
24498         object to before the relocation.
24499         * elf/rtld.c (dl_main): Update _dl_show_scope call.
24500         * sysdeps/generic/ldsodefs.h: Update declaration.
24501
24502         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
24503         string for the scope number.
24504
24505 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
24506
24507         * nscd/servicescache.c (cache_addserv): Make sure written is always
24508         initialized.
24509
24510 2011-08-14  Roland McGrath  <roland@hack.frob.com>
24511
24512         * sysdeps/i386/i486/bits/atomic.h
24513         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
24514         statement expression, so as to suppress "set but not used" warning.
24515         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
24516
24517         * string/strncat.c (STRNCAT): Use prototype definition.
24518
24519         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
24520         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
24521         -Iprograms here.
24522         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
24523         (localedef-modules): Add localedef.
24524         (locale-modules): Add locale.
24525
24526         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
24527         * elf/rtld.c (dl_main): Invert order of assignment in last change,
24528         to avoid a warning.
24529
24530 2011-08-14  David S. Miller  <davem@davemloft.net>
24531
24532         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
24533         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
24534
24535 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
24536
24537         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
24538         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
24539         * elf/rtld.c (dl_main): Set l_name of vDSO.
24540         Call _dl_show_scope when DL_DEBUG_SCOPES.
24541         (process_dl_debug): Recognize scopes flag and also set it for all.
24542         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
24543         Declare _dl_show_scope.
24544
24545         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
24546         (do_dlopen): Pass caller_dlopen to dl_open.
24547         (__libc_dlopen_mode): Initialize caller_dlopen.
24548
24549         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
24550         of libc.  Make tolower call locale-independent.  Optimize a bit by
24551         using isdigit instead of isalnum.
24552         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
24553
24554 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
24555
24556         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
24557         was a dependency or dynamically loaded.
24558
24559 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
24560
24561         * intl/l10nflist.c: Allow architecture-specific pop function.
24562         * sysdeps/x86_64/l10nflist.c: New file.
24563
24564         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
24565         classification.
24566
24567 2011-08-10  Andreas Schwab  <schwab@redhat.com>
24568
24569         * include/dirent.h: Add libc_hidden_proto for scandirat and
24570         scandirat64.  Don't declare __scandirat64.
24571         * dirent/scandirat.c: Add libc_hidden_def.
24572         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
24573         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
24574
24575 2011-08-10  David S. Miller  <davem@davemloft.net>
24576
24577         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
24578         enum.
24579         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24580         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24581         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24582
24583 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
24584
24585         * Versions.def [libc]: Add GLIBC_2.15.
24586         * dirent/Makefile (routines): Add scandirat and scandirat64.
24587         * dirent/Versions [libc]: Export scandirat and scandirat64 for
24588         GLIBC_2.15.
24589         * dirent/dirent.h: Declare scandirat and scandirat64.
24590         * dirent/scandirat.c: New file.
24591         * dirent/scandirat64.c: New file.
24592         * sysdeps/wordsize-64/scandirat.c: New file.
24593         * sysdeps/wordsize-64/scandirat64.c: New file.
24594         * dirent/opendir.c: Define opendirat.
24595         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
24596         using scandirat.
24597         * dirent/scandir64.c: Adjust for scandir.c change.
24598         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
24599         __scandirat64, and __scandir_cancel_handler.
24600         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
24601         additional parameter and use openat instead of open (outside of ld.so).
24602         Add new __opendir as wrapper around __opendirat.
24603         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
24604         here without requiring old scandirat implementation.
24605
24606 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
24607
24608         * dirent/scandir.c (cancel_handler): Renamed to
24609         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
24610         defined.  Adjust users.
24611         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
24612         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
24613
24614 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
24615
24616         * string/test-string.h (IMPL): Use __STRING to expand name and then
24617         stringify it.
24618
24619         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
24620         of cleanups.
24621
24622 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24623
24624         * string/Makefile: Update.
24625         (strop-tests): Append strncat.
24626         * string/test-wcscmp.c: New file.
24627         New comprehensive test for wcscmp.
24628         * string/test-strcmp.c: Update.
24629         (WIDE): New define.
24630
24631 2011-07-22  Andreas Schwab  <schwab@redhat.com>
24632
24633         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
24634         line.
24635
24636 2011-07-26  Andreas Schwab  <schwab@redhat.com>
24637
24638         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
24639         encoding to ACE if AI_IDN.
24640
24641 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
24642
24643         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
24644         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
24645
24646 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24647
24648         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
24649         Fix overflow bug in strncat.
24650         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24651
24652         * string/test-strncat.c: Update.
24653         Add new tests for checking overflow bugs.
24654
24655 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24656
24657         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24658         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
24659         * sysdeps/i386/i686/multiarch/strcat.S: New file.
24660         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
24661         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
24662         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
24663         * sysdeps/i386/i686/multiarch/strncat.S: New file.
24664         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
24665         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
24666
24667         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
24668         (USE_AS_STRCAT): Define.
24669         Add strcat and strncat support.
24670         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24671
24672 2011-07-25  Andreas Schwab  <schwab@redhat.com>
24673
24674         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
24675         __n bigger than INT_MAX+1.
24676         (__strncmp_g): Likewise.
24677
24678 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
24679
24680         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
24681         * libio/stido.h: Likewise.
24682
24683         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
24684         (AF_NFC): Define.
24685         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
24686         (AF_NFC): Define.
24687
24688         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
24689         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24690         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24691         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24692         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24693
24694         [BZ #13021]
24695         * scripts/test-installation.pl: Don't expect libnss_test1 to be
24696         installed.
24697
24698         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
24699         typo.
24700         (_dl_x86_64_save_sse): Likewise.
24701
24702 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
24703
24704         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
24705         OSXSAVE.
24706         (_dl_x86_64_save_sse): Likewise.
24707
24708         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
24709
24710         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
24711
24712 2011-07-21  Andreas Schwab  <schwab@redhat.com>
24713
24714         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
24715         change.
24716         (_dl_x86_64_save_sse): Use correct AVX check.
24717
24718 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24719
24720         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
24721         bug in strncpy/strncat.
24722         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24723
24724 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
24725
24726         * string/tester.c (test_strcat): Add tests for different alignments
24727         of source and destination.
24728         (test_strncat): Likewise.
24729
24730 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24731
24732         [BZ #12852]
24733         * posix/glob.c (glob): Check passed in values before using them in
24734         expressions to avoid some overflows.
24735         (glob_in_dir): Likewise.
24736
24737         [BZ #13007]
24738         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
24739         check for AVX enablement so that we don't crash with old kernels and
24740         new hardware.
24741         * elf/tst-audit4.c: Add same checks here.
24742         * elf/tst-audit6.c: Likewise.
24743
24744         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
24745
24746 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
24747
24748         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
24749
24750 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
24751
24752         * po/cs.po: Update from translation team.
24753         * po/bg.po: Likewise.
24754
24755 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
24756
24757         * misc/sys/cdefs.h: Add support for const attribute.
24758         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
24759         to gnu_dev_{major,minor,makedev} functions.
24760
24761 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
24762
24763         * intl/dcigettext.c (get_output_charset): Add missing bracket.
24764
24765 2011-07-20  Andreas Schwab  <schwab@redhat.com>
24766
24767         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
24768         strlen results.
24769
24770 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24771
24772         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
24773         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
24774         register in order to avoid conflicts with the soft frame pointer
24775         being held in r11 when necessary.
24776         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24777         (INTERNAL_VSYSCALL_NCS): Likewise.
24778
24779 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
24780
24781         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
24782         * elf/dl-fini.c (_dl_fini): Adjust caller.
24783         * elf/dl-close.c (_dl_close_worker): Likewise.
24784         * sysdeps/generic/ldsodefs.h: Adjust declaration.
24785
24786 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24787
24788         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
24789         "aux_cache->nlibs < 0".
24790
24791         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
24792         in the reload-count case.
24793
24794 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
24795
24796         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
24797         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
24798         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
24799         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
24800         * sysdeps/x86_64/multiarch/strcat.S: New file.
24801         * sysdeps/x86_64/multiarch/strncat.S: New file.
24802         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
24803         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
24804         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
24805         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
24806         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
24807         (USE_AS_STRCAT): Define.
24808         Add strcat and strncat support.
24809         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
24810         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24811         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
24812         * string/strncat.c: Update.
24813         (USE_AS_STRNCAT): Define.
24814         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24815         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
24816         and i7.
24817         * sysdeps/x86_64/multiarch/init-arch.h
24818         (bit_Prefer_PMINUB_for_stringop): New.
24819         (index_Prefer_PMINUB_for_stringop): Likewise.
24820         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
24821         bit_Prefer_PMINUB_for_stringop.
24822
24823 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24824
24825         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
24826         buffer64.
24827         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
24828         of casting of buffer.
24829         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
24830         buffer32 and buffer64.
24831         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
24832         writes instead of casting of buffer.
24833         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
24834         buffer32.
24835         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
24836         casting of buffer.
24837
24838 2011-07-19  Andreas Schwab  <schwab@redhat.com>
24839
24840         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
24841
24842 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
24843
24844         * nscd/nscd.c (termination_handler): Don't do anything for a database
24845         if it has not yet been initialized.
24846
24847 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24848
24849         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24850
24851 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
24852
24853         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
24854
24855 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
24856
24857         * po/nl.po: Update from translation team.
24858         * po/sv.po: Likewise.
24859
24860 2011-07-16  Roland McGrath  <roland@hack.frob.com>
24861
24862         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
24863         now disallowed by GCC.
24864
24865         * configure.in (use-default-link): Default to yes if a test -shared
24866         link meets our qualifications.
24867         * configure: Regenerated.
24868
24869         * config.make.in (output-format): New variable.
24870         * configure.in: Check for ld --print-output-format support.
24871         * configure: Regenerated.
24872         * Makerules ($(common-objpfx)format.lds)
24873         [$(output-format) != unknown]: Just use $(output-format),
24874         instead of the linker-script munging.
24875
24876 2011-07-14  Roland McGrath  <roland@hack.frob.com>
24877
24878         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
24879         of $(common-objpfx)shlib.lds.
24880         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
24881
24882         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
24883         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
24884
24885         * configure.in (-z relro check): Adjust test code to add a large
24886         writable data section after it.
24887         * configure: Regenerated.
24888
24889 2011-07-11  Roland McGrath  <roland@hack.frob.com>
24890
24891         * configure.in (-z relro check): Fix test code to make the variable
24892         truly const.
24893         * configure: Regenerated.
24894
24895 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
24896
24897         * nscd/nscd.h (struct traced_file): Define.
24898         (struct database_dyn): Remove inotify_descr, reset_res, and filename
24899         elements.  Add traced_files.
24900         (inotify_fd): Declare.
24901         (register_traced_file): Declare.
24902         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
24903         (inotify_fd): Export.
24904         (resolv_conf_descr): Remove.
24905         (nscd_init): Move inotify descriptor creation to main.
24906         Don't register files for notification here.
24907         (register_traced_file): New function.
24908         (invalidate_cache): Don't use reset_res to determine whether to call
24909         res_init, go through the list of registered files.
24910         (main_loop_poll): The inotify descriptors are now stored in the
24911         structures for the traced files.
24912         (main_loop_epoll): Likewise
24913         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
24914         to __nss_disable_nscd.
24915         * nscd/cache.c (prune_cache): There is no single inotify descriptor
24916         for a database anymore.  Check the records for all the registered
24917         files instead.
24918         * nss/Makefile (libnss_files-routines): Add files-init.
24919         (libnss_db-routines): Add db-init.
24920         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
24921         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
24922         * nss/nss_db/db-init.c: New file.
24923         * nss/nss_files/files-init.c: New file.
24924         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
24925         __nss_lookup_function.
24926         (__nss_lookup_function): Call nss_load_library.
24927         (nss_load_all_libraries): New function.
24928         (__nss_disable_nscd): Take parameter with callback function for files
24929         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
24930         used for the cached services.
24931         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
24932         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
24933         options for features to all the files in nscd.
24934
24935         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
24936
24937 2011-07-10  Roland McGrath  <roland@hack.frob.com>
24938
24939         * csu/elf-init.c (__libc_csu_init): Comment typo.
24940
24941 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
24942
24943         * po/pl.po: Update from translation team.
24944         * po/ja.po: Likewise.
24945         * po/ru.po: Likewise.
24946         * po/ko.po: Likewise.
24947         * po/fr.po: Likewise.
24948
24949 2011-07-09  Roland McGrath  <roland@hack.frob.com>
24950
24951         * configure.in (.ctors/.dtors header and trailer check):
24952         Use an empirical test on a built program.
24953         * configure: Regenerated.
24954
24955         * configure.in (-z relro check): Use an empirical test on a built DSO.
24956         Detect, but do not require, on ia64.
24957         * configure: Regenerated.
24958
24959         * configure.in (READELF): Find it with AC_CHECK_TOOL.
24960         Update tests that use readelf to use $READELF instead.
24961         * configure: Regenerated.
24962
24963 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
24964
24965         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
24966         if the result is not used.
24967
24968 2011-07-05  Andreas Jaeger  <aj@suse.de>
24969
24970         [BZ#9696]
24971         * stdlib/tst-strtod.c: Add testcase.
24972
24973 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
24974
24975         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
24976         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
24977         The latter has a higher limit.  Take additional parameter to pass to
24978         the new function.
24979         (__pathconf): Pass file to __statfs_link_max.
24980         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
24981         __statfs_link_max.
24982         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
24983         __statfs_link_max.
24984
24985         [BZ #12868]
24986         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
24987         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
24988         Handle Lustre.
24989         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
24990         (__statfs_filesize_max): Likewise.
24991         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
24992
24993 2011-07-05  Andreas Jaeger  <aj@suse.de>
24994
24995         * resolv/res_comp.c (dn_skipname): Remove unused variable.
24996
24997 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
24998
24999         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
25000         `status' variable.
25001         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
25002         Likewise.
25003
25004 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
25005
25006         * Makefile (strop-tests): Add strncat.
25007         * string/test-strncat.c: New file.
25008
25009 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
25010
25011         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
25012
25013 2011-06-21  Andreas Jaeger  <aj@suse.de>
25014
25015         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
25016         Copy rule from iconvdata/Makefile.
25017
25018 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25019
25020         [BZ #12922]
25021         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
25022         but no long options are defined, just return 'W'.
25023
25024 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
25025
25026         [BZ #9696]
25027         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
25028
25029 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
25030
25031         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
25032         netgroups to read.
25033         (innetgr): Likewise.
25034
25035 2011-07-05  Roland McGrath  <roland@hack.frob.com>
25036
25037         * config.make.in (install_root): Default to $(DESTDIR).
25038
25039 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
25040
25041         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
25042
25043 2011-07-02  Roland McGrath  <roland@hack.frob.com>
25044
25045         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
25046
25047         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
25048         containing directory rather than embedding absolute directory names.
25049
25050         * scripts/check-local-headers.sh: Rewritten using awk.
25051         Match by word, not by line.  Print error messages for matches.
25052         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
25053
25054         * Makerules [shlib-lds-flags empty]:
25055         ($(common-objpfx)libc_pic.opts): New target.
25056         ($(common-objpfx)libc_pic.os.clean): New target.
25057         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
25058
25059         * config.make.in (OBJCOPY): New variable.
25060         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
25061         * configure: Regenerated.
25062
25063         * config.make.in (use-default-link): New variable.
25064         * configure.in (use_default_link): Grok --with-default-link to set it.
25065         * configure: Regenerated.
25066         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
25067         (shlib-lds, shlib-lds-flags): Define to empty.
25068
25069         * Makerules (shlib-lds): New variable.
25070         (shlib-lds-flags): New variable.
25071         (build-shlib, build-moduile, build-module-asneeded): Use it.
25072         ($(common-objpfx)libc.so): Use $(shlib-lds).
25073         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
25074         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
25075
25076         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
25077         DT_FLAGS/DT_FLAGS_1 with zero flags.
25078
25079         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
25080         linker script munging.
25081
25082 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
25083
25084         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
25085         as 128-bit value.
25086         * crypt/sha512.c (sha512_process_block): Perform total addition using
25087         128-bit if possible.
25088         (__sha512_finish_ctx): Likewise.
25089         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
25090         as 64-bit value.
25091         * crypt/sha256.c (SWAP64): Define.
25092         (sha256_process_block): Perform total addition using 64-bit if
25093         possible.
25094         (__sha256_finish_ctx): Likewise.
25095
25096 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
25097
25098         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
25099         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25100         * nscd/hstcache.c (cache_addhst): Likewise.
25101         * nscd/grpcache.c (cache_addgr): Likewise.
25102         * nscd/aicache.c (addhstaiX): Likewise
25103         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
25104
25105 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
25106
25107         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
25108         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25109         * nscd/hstcache.c (cache_addhst): Likewise.
25110         * nscd/grpcache.c (cache_addgr): Likewise.
25111         * nscd/aicache.c (addhstaiX): Likewise
25112
25113 2011-07-01  Andreas Schwab  <schwab@redhat.com>
25114
25115         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
25116         domain only when needed.
25117
25118 2011-06-30  Andreas Schwab  <schwab@redhat.com>
25119
25120         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
25121         is always restored.
25122
25123 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
25124
25125         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
25126         are re-adding the entry.
25127         * nscd/servicescache.c (cache_addserv): Likewise.
25128
25129 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
25130
25131         * sysdeps/generic/dl-irel.h: fix protection against multiple
25132         inclusions.
25133         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
25134
25135 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
25136
25137         [BZ #12935]
25138         * malloc/memusage.sh: Fix quoting in message.
25139         * debug/xtrace.sh: Likewise.
25140
25141         * configure.in: Remove support for --experimental-malloc option, make
25142         it the default.
25143         * config.make.in: Likewise.
25144         * malloc/Makefile: Likewise.
25145
25146 2011-06-27  Andreas Schwab  <schwab@redhat.com>
25147
25148         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
25149         two-byte characters.
25150
25151 2011-06-27  Roland McGrath  <roland@hack.frob.com>
25152
25153         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
25154         AC_CACHE_CHECK invocation.
25155         * configure: Regenerated.
25156
25157         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
25158
25159 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
25160
25161         [BZ #12350]
25162         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
25163         bit from old_res_options.
25164
25165         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
25166
25167         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
25168         value type for setfct.
25169
25170 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
25171
25172         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25173         __gettimeofday instead of gettimeofday.
25174
25175 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
25176
25177         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
25178
25179 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
25180
25181         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
25182
25183         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
25184         info.
25185
25186 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25187
25188         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25189         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25190         strcpy-sse2-unaligned strncpy-sse2-unaligned
25191         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
25192         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
25193         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
25194         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
25195         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
25196         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
25197         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
25198         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
25199         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
25200         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
25201         (STRCPY): Support SSE2 and SSSE3 versions.
25202
25203 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
25204
25205         [BZ #12874]
25206         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
25207         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
25208         kernels which artificially limit size of requests.
25209
25210 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
25211
25212         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
25213         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
25214         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
25215         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
25216         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
25217         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
25218         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
25219         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
25220         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
25221         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
25222         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
25223         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
25224         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
25225         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
25226         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
25227         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25228         Enable unaligned load optimization for Intel Core i3, i5 and i7
25229         processors.
25230         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
25231         Define.
25232         (index_Fast_Unaligned_Load): Define.
25233         (HAS_FAST_UNALIGNED_LOAD): Define.
25234
25235 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
25236
25237         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
25238
25239 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25240
25241         [BZ #12907]
25242         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
25243         until it is clear that the information is realy needed.
25244         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
25245
25246 2011-06-22  Andreas Schwab  <schwab@redhat.com>
25247
25248         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
25249
25250 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
25251
25252         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
25253         /sys/devices/system/cpu/online if it is usable.
25254
25255         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
25256         reading the information from the /proc filesystem to once a second.
25257
25258 2011-06-21  Andreas Jaeger  <aj@suse.de>
25259
25260         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
25261         NULL after inclusion of kernel headers.
25262
25263 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
25264
25265         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
25266         calls to internal_setent.
25267
25268         [BZ #12885]
25269         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
25270         addresses using gethostbyname4_r ignore IPv4 addresses.
25271
25272         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
25273         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
25274
25275         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
25276
25277 2011-06-20  David S. Miller  <davem@davemloft.net>
25278
25279         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
25280         inclusions.
25281         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
25282
25283         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
25284         (elf_irel): Use it.
25285         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
25286         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
25287         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
25288         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
25289         * sysdeps/x86_64/dl-irel.h: Likewise.
25290
25291         * elf/dl-runtime.c: Use elf_ifunc_invoke.
25292         * elf/dl-sym.c: Likewise.
25293
25294 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25295
25296         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
25297         need to dereference resplen2.
25298
25299 2011-06-14  Andreas Schwab  <schwab@redhat.com>
25300
25301         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
25302
25303 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
25304
25305         * Makeconfig: Define vardbdir and inst_vardbdir.
25306         * nss/Makefile: Add rules to install db-Makefile.
25307
25308         * nss/nss_db/db-XXX.c: Cleanup.
25309
25310         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
25311         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
25312         GLIBC_PRIVATE.
25313         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
25314         * nss/makedb.c: Implement -g option to specify that value strings
25315         are generated and should not be added to table iterated over for
25316         get*ent calls.
25317         * nss/nss_db/db-initgroups.c: New file.
25318
25319         * nss/getent.c: Add support for initgroups lookups through getgrouplist
25320         interface.
25321
25322         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
25323         (internal_getgrouplist): Adjust to name change.
25324         Update use_initgroups_entry if this is not the first call.
25325         * nss/databases.def: Add initgroups entry.
25326
25327         * nss/makedb.c (compute_tables): Check result of multiple hash table
25328         sizes to minimize maximum chain length.
25329
25330 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
25331
25332         * Versions.def: Add entry for libnss_db.
25333         * shlib-versions: Likewise.
25334         * nss/Makefile: Add rules to build libnss_db.
25335         * nss/Versions: Add libnss_db information.  Organize libnss_files
25336         entries better.
25337         * nss/db-Makefile: Add gshadow support.  Change rules for the new
25338         makedb progra.  Some minor improvements to generate smaller files.
25339         * nss/nss_db/nss_db.h: Move NSS database header data structures to
25340         here from...
25341         * nss/makedb.c: ...here.
25342         Improve database format to be smaller and require less memory at
25343         runtime.
25344         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
25345         db anymore.
25346         * nss/nss_db/db-netgrp.c: Likewise.
25347         * nss/nss_db/db-open.c: Likewise.
25348         * nss/nss_files/flies-XXX.x: Adjust comments.
25349         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
25350         * nss/nss_files/files-grp.c: Likewise.
25351         * nss/nss_files/files-hosts.c: Likewise.
25352         * nss/nss_files/files-network.c: Likewise.
25353         * nss/nss_files/files-proto.c: Likewise.
25354         * nss/nss_files/files-pwd.c: Likewise.
25355         * nss/nss_files/files-rpc.c: Likewise.
25356         * nss/nss_files/files-service.c: Likewise.
25357         * nss/nss_files/files-sgrp.c: Likewise.
25358         * nss/nss_files/files-spwd.c: Likewise.
25359         * nss/nss_db/db-alias.c: Removed.
25360         * nss/nss_db/dummy-db.h: Removed.
25361
25362 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
25363
25364         * nss/makedb.c: Rewritten to not use database library.
25365         * nss/Makefile: Update to build new makedb program.
25366
25367 2011-06-14  Andreas Jaeger  <aj@suse.de>
25368
25369         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
25370         memset declaration.
25371
25372 2011-06-10  Andreas Schwab  <schwab@redhat.com>
25373
25374         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
25375         tmpbuf.
25376
25377 2011-06-10  Roland McGrath  <roland@hack.frob.com>
25378
25379         * Makerules (shlib.lds): Fail if the linker script comes out empty.
25380         * elf/Makefile ($(objpfx)ld.so): Likewise.
25381
25382         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
25383         Don't list ld.so twice in dependencies.
25384
25385         * posix/bug-regex31.c: Include <stdlib.h>.
25386
25387         * nscd/hstcache.c (cache_addhst): Remove unused variable.
25388
25389         * nis/nss_compat/compat-spwd.c
25390         (getspent_next_nss_netgr): Remove unused variable.
25391         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
25392
25393         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
25394         nonmembers" output to use the right array.
25395
25396         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
25397
25398         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
25399
25400         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
25401         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
25402         * catgets/gencat.c (read_input_file): Likewise.
25403         * locale/programs/locarchive.c (enlarge_archive): Likewise.
25404
25405         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
25406         variable definition inside #if's controlling its use.
25407
25408         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
25409
25410         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
25411
25412         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
25413
25414         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
25415         unreachable code.
25416
25417         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
25418
25419         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
25420         * configure: Regenerated.
25421
25422         * Makerules: Revert last change.
25423         * elf/Makefile: Likewise.
25424
25425 2011-06-09  Roland McGrath  <roland@hack.frob.com>
25426
25427         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
25428         * elf/Makefile ($(objpfx)librtld.os): Likewise.
25429         (reloc-link): Likewise.
25430
25431 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
25432
25433         * elf/Makefile: Add rules to build pldd.
25434         * elf/pldd.c: New file.
25435         * elf/pldd-xx.c: New file.
25436
25437 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
25438
25439         * version.h: Update for 2.15 development version.
25440
25441 2011-06-07  David S. Miller  <davem@davemloft.net>
25442
25443         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
25444         ifuncs.
25445         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
25446         elf_machine_lazy_rel): Likewise.
25447         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
25448         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
25449         elf_machine_lazy_rel): Likewise.
25450         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
25451         dl_hwcap via passed in argument.
25452         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
25453         Likewise.
25454
25455 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25456
25457         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
25458
25459 2011-06-06  Roland McGrath  <roland@hack.frob.com>
25460
25461         [BZ #12849]
25462         * manual/fdl-1.1.texi: New file, verbatim from:
25463         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
25464         * manual/lgpl-2.1.texi: New file, verbatim from:
25465         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
25466         * manual/Makefile (licenses): New variable, list those new file names.
25467         (texis): Use it.
25468         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
25469
25470         * manual/fdl.texi: File removed.
25471         * manual/lesser.texi: File removed.
25472         * manual/libc.texinfo (Copying, Documentation License):
25473         Use new @include file names, put @appendix directive before @include.
25474
25475 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
25476
25477         [BZ #12841]
25478         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
25479         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
25480         (mq_open): Add __NTH.
25481
25482 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
25483
25484         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25485         Assume Intel Core i3/i5/i7 processor if AVX is available.
25486
25487 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25488
25489         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
25490         typo.
25491
25492 2011-05-31  Andreas Schwab  <schwab@redhat.com>
25493
25494         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
25495         memory.  Use alloca_account.  Fix memory leak when retrying.
25496
25497 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
25498
25499         * version.h (RELEASE): Bump for 2.14 release.
25500         * include/features.h (__GLIBC_MINOR__): Bump to 14.
25501
25502         * config.make.in (RANLIB): Remove entry.
25503
25504 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
25505
25506         * po/Makefile (po-sed-cmd): Add ksh to extensions.
25507         (libc.pot): Work around missing support for .ksh extension in xgettext.
25508
25509         [BZ #12684]
25510         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
25511         if both request failed.
25512         (send_dg): In case of server errors clear resplen or *resplen2.
25513
25514         [BZ #12454]
25515         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
25516         when there are multiple maps.
25517         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
25518         (_dl_fini): Remove test here.
25519
25520         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
25521
25522 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
25523
25524         [BZ #12350]
25525         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
25526         bit from old_res_options.
25527         (gaih_inet): Likewise.
25528
25529         [BZ #11099]
25530         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
25531         as signed.
25532
25533         * resolv/res_init.c (res_setoptions): Make the code more compact.
25534
25535         [BZ #11558]
25536         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
25537         set RES_USEVC.
25538
25539         [BZ #11634]
25540         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
25541
25542         * malloc/malloc.h: Mark malloc hook variables as deprecated.
25543
25544         [BZ #11781]
25545         * malloc/malloc.h: Declare malloc hook variables as volatile.
25546
25547         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
25548         in last patch.
25549
25550         [BZ #11799]
25551         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
25552         raise in the comment.
25553         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
25554         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
25555         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
25556
25557 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
25558
25559         [BZ #12811]
25560         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
25561         grow the buffers more if it already has to be sufficient.
25562         (build_wcs_upper_buffer): Likewise.
25563         * posix/regexec.c (check_matching): Likewise.
25564         (clean_state_log_if_needed): Likewise.
25565         (extend_buffers): Don't enlarge buffers beyond size of the input
25566         buffer.
25567         Patches mostly by Emil Wojak <emil@wojak.eu>.
25568         * posix/bug-regex32.c: New file.
25569         * posix/Makefile (tests): Add bug-regex32.
25570
25571         * locale/findlocale.c (_nl_find_locale): Return right away if
25572         _nl_explode_name failed.
25573         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
25574
25575         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
25576
25577         * debug/xtrace.sh: Unify messages.
25578         * malloc/memusage.sh: Likewise.
25579
25580         [BZ #12813]
25581         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
25582         time symbol from vDSO.  Substitute with vsyscall if not available.
25583         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
25584         __vdso_time.
25585
25586         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
25587         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
25588         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
25589         Add sendmmsg and internal_sendmmsg.
25590         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
25591         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
25592         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
25593
25594         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
25595         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
25596         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
25597
25598 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
25599
25600         [BZ #12813]
25601         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
25602         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
25603         available.
25604         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
25605         __vdso_getcpu.
25606
25607         [BZ #12814]
25608         * iconvdata/Makefile (tests): Add bug-iconv9.
25609         * iconvdata/bug-iconv9.c: New file.
25610
25611 2011-05-27  Andreas Schwab  <schwab@redhat.com>
25612
25613         [BZ #12814]
25614         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
25615
25616 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
25617
25618         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25619         (struct user_regs_struct): Change intcs field back to cs.
25620
25621 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
25622
25623         * po/ja.po: Update from translation team.
25624
25625 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
25626
25627         [BZ #12795]
25628         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
25629         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
25630
25631 2011-05-20  Andreas Schwab  <schwab@redhat.com>
25632
25633         * stdlib/longlong.h: Update from GCC.
25634
25635 2011-05-23  Andreas Schwab  <schwab@redhat.com>
25636
25637         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
25638         parameter name.
25639         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
25640         Add parameter name.
25641         (__sysconf): Pass it down.
25642
25643 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
25644
25645         [BZ #12671]
25646         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
25647         some situations.
25648         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
25649         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
25650         add in in __libc_use_alloca calls.  Adjust callers.
25651         (glob): Use malloc in some situations.
25652
25653         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
25654         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
25655         pltexit.
25656
25657 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
25658
25659         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
25660         and CLOCK_BOOTTIME_ALARM.
25661
25662         [BZ #12782]
25663         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
25664         is returned.
25665
25666         * string/_strerror.c (__strerror_r): Print negative errors as signed
25667         numbers.
25668
25669         [BZ #12777]
25670         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
25671         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
25672         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
25673
25674         * configure.in: Fix typo in redirection and correct removal of test
25675         files in two cases.
25676
25677         [BZ #12788]
25678         * locale/setlocale.c (new_composite_name): Fix test to check for
25679         identical name of all categories.
25680
25681         [BZ #12792]
25682         * libio/filedoalloc.c (local_isatty): New function.
25683         (_IO_file_doallocate): Use local_isatty.
25684         * stdio-common/perror.c (perror): In case a new stream is used
25685         forward the stream error.
25686         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
25687         error flag.
25688
25689 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
25690
25691         [BZ #11869]
25692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
25693         alloca.
25694         * include/alloca.h (extend_alloca_account): Define.
25695
25696         [BZ #11857]
25697         * posix/regex.h: Fix comments with documentation of user-accessible
25698         fields after compilation and describe correct free'ing of pattern
25699         after re_compile_pattern.
25700         Patch by Reuben Thomas <rrt@sc3d.org>.
25701
25702 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
25703
25704         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
25705         and -mno-altivec to prevent the compiler from using Altivec and/or
25706         VSX instructions when the corresponding registers are not available.
25707
25708 2011-05-19  Andreas Schwab  <schwab@redhat.com>
25709
25710         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
25711
25712 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
25713
25714         * libio/freopen.c (freopen): Use __dup2, not dup2.
25715         * libio/freopen64.c (freopen64): Likewise.
25716
25717 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
25718
25719         [BZ #12775]
25720         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
25721         * math/Makefile (tests): Add test-powl.
25722         (CFLAGS-test-powl.c): Define.
25723         * math/test-powl.c: New file.
25724
25725 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
25726
25727         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
25728
25729 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
25730
25731         [BZ #11837]
25732         * iconvdata/gb18030.c: Update to GB18020-2005.
25733
25734 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
25735
25736         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
25737         RE_SYNTAX_POSIX_AWK): Update to match recent development.
25738         Patch by Aharon Robbins <arnold@skeeve.com>.
25739
25740         [BZ #11892]
25741         * stdlib/putenv.c (putenv): Don't always create copy of the variable
25742         on the stack.
25743
25744         [BZ #11895]
25745         * misc/pselect.c (__pselect): Handle timeout value errors hidden
25746         through underflows.
25747
25748         [BZ #12766]
25749         * misc/error.c (error_at_line): Ensure file_name and old_file_name
25750         point to strings before performing equality test for error_one_per_line
25751         mode.
25752
25753         [BZ #11697]
25754         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
25755
25756         [BZ #11820]
25757         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
25758         (struct user_fpregs_struct): Avoid __uint*_t types.
25759
25760         [BZ #6420]
25761         * malloc/mtrace.c (tr_where): Add additional parameter to point to
25762         symbol info.  Use it instead of calling _dl_addr locally.
25763         (lock_and_info): New function.
25764         (tr_freehook): Call lock_and_info and pass symbol info as additional
25765         parameter to tr_where.
25766         (tr_mallochook): Likewise.
25767         (tr_reallochook): Likewise.
25768         (tr_memalignhook): Likewise.
25769
25770         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
25771         used and couldn't be at all thread-safe.
25772
25773 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
25774
25775         * libio/freopen.c (freopen): Don't close old file descriptor
25776         before the new one is opened.  Instead dup the new file descriptor
25777         to the old one after the new stream is created.
25778         * libio/freopen64.c (freopen64): Likewise.
25779         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
25780         * libio/fileops.c (_IO_new_file_close_it): Handle new
25781         _IO_FLAGS2_NOCLOSE flag.
25782         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
25783         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
25784         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
25785         _IO_FLAGS2_NOCLOSE flag.
25786         * include/unistd.h: Add hidden_proto for dup3.
25787         Define __have_dup3.
25788         * io/dup3.c: Define hidden symbol.
25789         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
25790
25791         [BZ #7101]
25792         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
25793         when an incomplete long option is used.
25794         * posix/tst-getopt_long1.c: New file.
25795         * posix/Makefile (tests): Add tst-getopt_long1.
25796
25797         [BZ #10138]
25798         * scripts/config.guess: Update from autoconf-2.68.
25799         * scripts/config.sub: Likewise.
25800
25801         [BZ #10157]
25802         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
25803         tests into ...
25804         (has_cpuclock): ...this.  New function.
25805         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
25806         macro here based on has_cpuclock code.
25807
25808         [BZ #10149]
25809         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25810         First byte (not low byte) is now always NUL.
25811         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
25812
25813         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25814         Use non-cancelable interfaces.
25815
25816         [BZ #9809]
25817         * locale/iso-639.def: Add entry for Sorani.
25818
25819         [BZ #11901]
25820         * include/stdlib.h: Move include protection to the right place.
25821         Define abort_msg_s.  Declare __abort_msg with it.
25822         * stdlib/abort.c (__abort_msg): Adjust type.
25823         * assert/assert.c (__assert_fail_base): New function.  Majority
25824         of code from __assert_fail.  Allocate memory for __abort_msg with
25825         mmap.
25826         (__assert_fail): Now call __assert_fail_base.
25827         * assert/assert-perr.c: Remove bulk of implementation.  Use
25828         __assert_fail_base.
25829         * include/assert.hL Declare __assert_fail_base.
25830         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
25831         mmap.
25832         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
25833
25834 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
25835
25836         [BZ #11952]
25837         [BZ #12453]
25838         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
25839         until all modules are registered in the DTV.
25840         * elf/Makefile: Add rules to build and run tst-tls19.
25841         * elf/tst-tls19.c: New file.
25842         * elf/tst-tls19mod1.c: New file.
25843         * elf/tst-tls19mod2.c: New file.
25844         * elf/tst-tls19mod3.c: New file.
25845         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
25846
25847         [BZ #12083]
25848         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
25849         correctly.
25850
25851         [BZ #12601]
25852         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
25853         two-byte sequence errors.
25854         * iconvdata/Makefile (tests): Add bug-iconv8.
25855         * iconvdata/bug-iconv8.c: New file.
25856
25857         [BZ #12626]
25858         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
25859         buf2 definition.
25860
25861         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
25862
25863         [BZ #12432]
25864         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
25865         (dummy_getcfa): New function.
25866         (init): Get _Unwind_GetCFA address, use dummy if not found.
25867         (backtrace_helper): In recursion check, also check whether CFA changes.
25868         (__backtrace): Completely initialize arg.
25869
25870         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
25871         storing incomplete byte sequence in state object.  Avoid testing for
25872         guaranteed too small input if we know there is enough data available.
25873
25874 2011-05-11  Andreas Schwab  <schwab@redhat.com>
25875
25876         * Makeconfig (+link-pie): Indent.
25877         * Rules (binaries-pie): Define if $(have-fpie) and
25878         $(build-shared).
25879         (binaries-shared): Also filter out $(binaries-pie).
25880         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
25881         * nscd/Makefile (others-pie): Add nscd.
25882         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
25883         ($(objpfx)nscd): Remove command override.
25884         * login/Makefile (others-pie): Add pt_chown.
25885         ($(objpfx)pt_chown): Remove command override.
25886         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
25887         remove command overrides.
25888
25889 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
25890
25891         * libio/tst_putwc.c: Fix error messages.
25892
25893         [BZ #12724]
25894         * libio/fileops.c (_IO_new_file_close_it): Always flush when
25895         currently writing and seek to current position when not.
25896         * libio/Makefile (tests): Add bug-fclose1.
25897         * libio/bug-fclose1.c: New file.
25898
25899 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
25900
25901         [BZ #12511]
25902         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
25903         don't set DF_1_NODELETE here.
25904         (do_lookup_x): When entering new entry test for copy relocation
25905         and if necessary set DF_1_NODELETE flag.
25906         * elf/tst-unique4.cc: New file.
25907         * elf/tst-unique4.h: New file.
25908         * elf/tst-unique4lib.cc: New file.
25909         * elf/Makefile: Add rules to build and run tst-unique4.
25910         Patch by Piotr Bury <pbury@goahead.com>.
25911
25912 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
25913
25914         [BZ #12052]
25915         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
25916
25917         [BZ #12625]
25918         * misc/mntent_r.c (addmntent): Flush the stream after the output
25919
25920         [BZ #12393]
25921         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
25922         (is_trusted_path_normalize): Skip initial colon.  Append slash
25923         to empty buffer.  Duplicate is_trusted_path code but allow
25924         constructed patch to be prefix.
25925         (is_dst): Allow $ORIGIN followed by /.
25926         (_dl_dst_substitute): Correct clearing of check_for_trusted.
25927         Correct testing of result of is_trusted_path_normalize
25928         (decompose_rpath): Fix warning.
25929
25930 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
25931
25932         [BZ #11257]
25933         * grp/initgroups.c (internal_getgrouplist): When we found the service
25934         list through the initgroups entry in nsswitch.conf do not always
25935         continue on a successful lookup.  Don't always use the
25936         __nss_group_database value if it is set.
25937         * nss/nsswitch.conf (initgroups): Change action for successful db
25938         lookup to continue for compatibility.
25939
25940 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
25941
25942         [BZ #11532]
25943         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
25944         and CP774 modules.
25945         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
25946         and CP774 modules.
25947         * iconvdata/tst-tables.sh: Likewise.
25948         * iconvdata/cp770.c: New file.
25949         * iconvdata/cp771.c: New file.
25950         * iconvdata/cp772.c: New file.
25951         * iconvdata/cp773.c: New file.
25952         * iconvdata/cp774.c: New file.
25953         * iconvdata/testdata/CP770: New file.
25954         * iconvdata/testdata/CP770..UTF8: New file.
25955         * iconvdata/testdata/CP771: New file.
25956         * iconvdata/testdata/CP771..UTF8: New file.
25957         * iconvdata/testdata/CP772: New file.
25958         * iconvdata/testdata/CP772..UTF8: New file.
25959         * iconvdata/testdata/CP773: New file.
25960         * iconvdata/testdata/CP773..UTF8: New file.
25961         * iconvdata/testdata/CP774: New file.
25962         * iconvdata/testdata/CP774..UTF8: New file.
25963
25964         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
25965         END CHARMAP line.
25966         * iconvdata/gen-8bit-gap.sh: Likewise.
25967         * iconvdata/gen-8bit.sh: Likewise.
25968
25969         * locale/iso-639.def: Add ary entry.
25970
25971         [BZ #11258]
25972         * locale/C-translit.h.in: Add U20A1 transliteration.
25973
25974         [BZ #12178]
25975         * locale/iso-639.def: Add wae entry.
25976         Patch by Kevin Bortis <bortis@translate-wae.ch>.
25977
25978         [BZ #12545]
25979         * locale/programs/localedef.c (construct_output_path): Use ssize_t
25980         for n.
25981
25982         [BZ #12711]
25983         * locale/C-translit.h.in: Add entry for U20B9.
25984         Patch by pravin.d.s@gmail.com.
25985
25986 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
25987
25988         [BZ #12713]
25989         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
25990         ENAMETOOLONG use generic getcwd.
25991         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
25992         in rtld.  Use *stat64.
25993         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
25994         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
25995         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
25996         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
25997         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
25998         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
25999         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
26000         __fstatat64 macros.
26001         * include/dirent.h: Add libc_hidden_proto for rewinddir.
26002         * dirent/rewinddir.c: Add libc_hidden_def.
26003         * sysdeps/mach/hurd/rewinddir.c: Likewise.
26004         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
26005
26006         * include/dirent.h (__alloc_dir): Add flags parameter.
26007         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
26008         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
26009         __alloc_dir.
26010         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
26011         from fdopendir if O_CLOEXEC is already set.
26012
26013 2011-03-15  Alan Modra  <amodra@gmail.com>
26014
26015         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
26016         l_tls_firstbyte_offset non-zero.  Save padding offset in
26017         l_tls_firstbyte_offset for later use.
26018         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
26019         freeing static tls block.
26020
26021 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
26022
26023         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
26024         where #ifdef was intended.  The intent is to prevent ARG_MAX from
26025         being defined by the kernel headers.
26026
26027 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
26028
26029         [BZ #12734]
26030         * resolv/resolv.h: Define RES_NOTLDQUERY.
26031         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
26032         no-tld-query and set RES_NOTLDQUERY.
26033         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
26034         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
26035         modern BIND to search name as TLD unless forbidden.
26036
26037 2011-05-07  Petr Baudis  <pasky@suse.cz>
26038             Ulrich Drepper  <drepper@gmail.com>
26039
26040         [BZ #12393]
26041         * elf/dl-load.c (fillin_rpath): Move trusted path check...
26042         (is_trusted_path): ...to here.
26043         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
26044         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
26045         using is_trusted_path_normalize() in setuid scripts.
26046
26047 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26048
26049         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
26050         __BEGIN/__END_DECLS.
26051
26052 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
26053
26054         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
26055         NSS_STATUS_NOTFOUND if no record was found.
26056
26057 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26058
26059         * sunrpc/Makefile (headers): Add rpc/netdb.h.
26060         (headers-not-in-tirpc): Remove rpc/netdb.h
26061         * resolv/netdb.h: Revert last change.
26062
26063 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
26064
26065         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
26066         circular dependency between libgcc.a and libc.a.
26067
26068 2011-05-05  Andreas Schwab  <schwab@redhat.com>
26069
26070         * resolv/netdb.h: Don't include <rpc/netdb.h>.
26071         * nis/Makefile: Don't install rpcsvc/*.
26072         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
26073         instead of <rpc/types.h>.
26074         (MAXHOSTNAMELEN): Define.
26075
26076 2011-05-03  Andreas Schwab  <schwab@redhat.com>
26077
26078         * elf/ldconfig.c (add_dir): Don't crash on empty path.
26079
26080 2011-04-28  Maciej Babinski  <mbabinski@google.com>
26081
26082         [BZ #12714]
26083         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
26084         gethostbyname4_r when IPv6 results are possible.
26085
26086 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
26087
26088         [BZ #12723]
26089         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
26090         _PC_PIPE_BUF handling.
26091
26092 2011-04-30  Bruno Haible  <bruno@clisp.org>
26093
26094         [BZ #12717]
26095         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
26096         * resolv/netdb.h (getnameinfo): Change type of flags parameter
26097         to 'int'.
26098         * inet/getnameinfo.c (getnameinfo): Likewise.
26099
26100 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
26101
26102         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
26103         to groups setting in database lookup.
26104         * nss/nsswitch.conf: Add initgroups entry.
26105
26106 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
26107
26108         [BZ #12685]
26109         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
26110         mode string.
26111         Patch by Eric Blake <eblake@redhat.com>.
26112
26113 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26114
26115         * sunrpc/Makefile (need-export-routines): Add svc_run.
26116         (routines): Remove svc_run.
26117         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
26118         * sunrpc/clnt_perr.c (clnt_perrno): Export.
26119         * sunrpc/svc_run.c (svc_run): Likewise.
26120         * sunrpc/svc_udp.c (svcudp_create): Likewise.
26121
26122 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
26123
26124         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
26125         problem in reallocation in last patch.
26126
26127 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
26128
26129         * sunrpc/Makefile: Move inclusion of Rules.
26130
26131 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26132
26133         * nss/nss_files/files-initgroups.c: New file.
26134         * nss/Makefile (libnss_files-routines): Add files-initgroups.
26135         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
26136         _nss_files_initgroups_dyn.
26137
26138 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
26139
26140         * elf/elf.h (R_ARM_IRELATIVE): Define.
26141
26142 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
26143
26144         * po/ru.po: Update from translation team.
26145
26146 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26147
26148         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
26149         dependencies.
26150
26151 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
26152
26153         [BZ #12653]
26154         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
26155         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
26156         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
26157         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
26158         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
26159
26160 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
26161
26162         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
26163         differing bytes.
26164         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
26165         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
26166         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
26167
26168 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
26169
26170         [BZ #12420]
26171         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
26172         storing it.
26173         * stdlib/bug-getcontext.c: New file.
26174         * stdlib/Makefile: Add rules to build and run bug-getcontext.
26175
26176 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26177
26178         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
26179         instructions into .machine "z9-109".
26180         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
26181         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
26182
26183 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26184
26185         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
26186         between environment variables and auxiliary vector.
26187
26188 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
26189
26190         * Makefile: Add rules to build linkobj/libc.so.
26191         * include/libc-symbols.h: Define libc_hidden_nolink.
26192         * include/rpc/auth.h: Mark functions which are to be hidden.
26193         * include/rpc/auth_des.h: Likewise.
26194         * include/rpc/auth_unix.h: Likewise.
26195         * include/rpc/clnt.h: Likewise.
26196         * include/rpc/des_crypt.h: Likewise.
26197         * include/rpc/key_prot.h: Likewise.
26198         * include/rpc/pmap_clnt.h: Likewise.
26199         * include/rpc/pmap_prot.h: Likewise.
26200         * include/rpc/pmap_rmt.h: Likewise.
26201         * include/rpc/rpc_msg.h: Likewise.
26202         * include/rpc/svc.h: Likewise.
26203         * include/rpc/svc_auth.h: Likewise.
26204         * include/rpc/xdr.h: Likewise.
26205         * nis/Makefile: Link all DSOs against linkobj/libc.so.
26206         * nss/Makefile: Likewise.
26207         * sunrpc/Makefile: Don't install headers.  Build library with normal
26208         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
26209         * sunrpc/auth_des.c: Hide exported symbols by default, export some
26210         for the compat linking library.  Remove use of INTDEF/INTUSE.
26211         * sunrpc/auth_none.c: Likewise.
26212         * sunrpc/auth_unix.c: Likewise.
26213         * sunrpc/authdes_prot.c: Likewise.
26214         * sunrpc/authuxprot.c: Likewise.
26215         * sunrpc/clnt_gen.c: Likewise.
26216         * sunrpc/clnt_perr.c: Likewise.
26217         * sunrpc/clnt_raw.c: Likewise.
26218         * sunrpc/clnt_simp.c: Likewise.
26219         * sunrpc/clnt_tcp.c: Likewise.
26220         * sunrpc/clnt_udp.c: Likewise.
26221         * sunrpc/clnt_unix.c: Likewise.
26222         * sunrpc/des_crypt.c: Likewise.
26223         * sunrpc/des_soft.c: Likewise.
26224         * sunrpc/get_myaddr.c: Likewise.
26225         * sunrpc/key_call.c: Likewise.
26226         * sunrpc/key_prot.c: Likewise.
26227         * sunrpc/netname.c: Likewise.
26228         * sunrpc/pm_getmaps.c: Likewise.
26229         * sunrpc/pm_getport.c: Likewise.
26230         * sunrpc/pmap_clnt.c: Likewise.
26231         * sunrpc/pmap_prot.c: Likewise.
26232         * sunrpc/pmap_prot2.c: Likewise.
26233         * sunrpc/pmap_rmt.c: Likewise.
26234         * sunrpc/publickey.c: Likewise.
26235         * sunrpc/rpc_cmsg.c: Likewise.
26236         * sunrpc/rpc_common.c: Likewise.
26237         * sunrpc/rpc_dtable.c: Likewise.
26238         * sunrpc/rpc_prot.c: Likewise.
26239         * sunrpc/rpc_thread.c: Likewise.
26240         * sunrpc/rtime.c: Likewise.
26241         * sunrpc/svc.c: Likewise.
26242         * sunrpc/svc_auth.c: Likewise.
26243         * sunrpc/svc_authux.c: Likewise.
26244         * sunrpc/svc_raw.c: Likewise.
26245         * sunrpc/svc_run.c: Likewise.
26246         * sunrpc/svc_simple.c: Likewise.
26247         * sunrpc/svc_tcp.c: Likewise.
26248         * sunrpc/svc_udp.c: Likewise.
26249         * sunrpc/svc_unix.c: Likewise.
26250         * sunrpc/svcauth_des.c: Likewise.
26251         * sunrpc/xcrypt.c: Likewise.
26252         * sunrpc/xdr.c: Likewise.
26253         * sunrpc/xdr_array.c: Likewise.
26254         * sunrpc/xdr_float.c: Likewise.
26255         * sunrpc/xdr_intXX_t.c: Likewise.
26256         * sunrpc/xdr_mem.c: Likewise.
26257         * sunrpc/xdr_rec.c: Likewise.
26258         * sunrpc/xdr_ref.c: Likewise.
26259         * sunrpc/xdr_sizeof.c: Likewise.
26260         * sunrpc/xdr_stdio.c: Likewise.
26261
26262 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
26263
26264         [BZ #12650]
26265         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
26266         * sysdeps/ia64/dl-tls.h: Likewise.
26267         * sysdeps/powerpc/dl-tls.h: Likewise.
26268         * sysdeps/s390/dl-tls.h: Likewise.
26269         * sysdeps/sh/dl-tls.h: Likewise.
26270         * sysdeps/sparc/dl-tls.h: Likewise.
26271         * sysdeps/x86_64/dl-tls.h: Likewise.
26272         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
26273
26274 2011-03-14  Andreas Schwab  <schwab@redhat.com>
26275
26276         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
26277         rpath element also skip the following colon.
26278         (expand_dynamic_string_token): Add is_path parameter and pass
26279         down to DL_DST_REQUIRED and _dl_dst_substitute.
26280         (decompose_rpath): Call expand_dynamic_string_token with
26281         non-zero is_path.  Ignore empty rpaths.
26282         (_dl_map_object_from_fd): Call expand_dynamic_string_token
26283         with zero is_path.
26284
26285 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
26286
26287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26288         Make cancelable.
26289
26290 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
26291
26292         [BZ #12655]
26293         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
26294         Patch by Filipe David Manana <fdmanana@apache.org>.
26295
26296 2011-04-07  Andreas Schwab  <schwab@redhat.com>
26297
26298         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
26299         Maintain aligned stack.
26300         (CHECK_RSP): Remove unused macro.
26301
26302 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
26303
26304         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
26305         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
26306
26307 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
26308
26309         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
26310
26311         * include/features.h: Mention __USE_XOPEN2K8 in comment.
26312
26313 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
26314
26315         [BZ #12518]
26316         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
26317         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
26318         * sysdeps/x86_64/memmove.c: New file.
26319         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
26320         (memcpy): Renamed to ...
26321         (__new_memcpy): This.
26322         (memcpy): Provide GLIBC_2_14 memcpy.
26323         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
26324         (memcpy): Provide GLIBC_2_2_5 memcpy.
26325
26326 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26327
26328         [BZ #12631]
26329         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
26330
26331 2011-03-30  Andreas Schwab  <schwab@redhat.com>
26332
26333         * misc/syncfs.c: New file.
26334         * misc/Makefile (routines): Add syncfs.
26335         * posix/unistd.h: Declare syncfs.
26336         * sysdeps/unix/syscalls.list: Add syncfs.
26337
26338 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26339
26340         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
26341         open_by_handle_at.
26342         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26343         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26344         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26345         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26347         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
26348         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26349
26350 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26351
26352         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
26353         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26354         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
26355         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26356         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26357         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26358         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26359
26360         * io/Makefile: Compile fallocate.c, fallocate64.c, and
26361         sync_file_range.c with -fexceptions.
26362         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
26363         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
26364         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
26365         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
26366         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
26367         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26368         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
26369         sync_file_range as cancellation point
26370         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
26371         now a wrapper around __call_sync_file_range with cancellation handling.
26372         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
26373         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
26374         function name to __call_sync_file_range.
26375         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
26376         Add call_sync_file_range.
26377
26378 2011-04-01  Andreas Schwab  <schwab@redhat.com>
26379
26380         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26381         bits/timex.h.
26382
26383 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
26384
26385         * iconv/iconv.h: Fix typo in comment.
26386         * io/fcntl.h: Likewise.
26387         * libio/stdio.h: Likewise.
26388         * posix/spawn.h: Likewise.
26389         * posix/unistd.h: Likewise.
26390         * stdlib/stdlib.h: Likewise.
26391         * time/time.h: Likewise.
26392         * wcsmbs/wchar.h: Likewise.
26393
26394         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
26395         open_by_handle): Add.
26396         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
26397         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
26398         Augment a few comments.
26399         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
26400         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26401         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26402         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26403         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26404         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
26405         open_by_handle.
26406
26407         * io/fcntl.h (AT_EMPTY_PATH): Define.
26408
26409 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
26410
26411         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
26412         * sysdeps/unix/sysv/linux/bits/time.h: New file.
26413         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
26414         to...
26415         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
26416         * Versions.def: Add GLIBC_2.14.
26417         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
26418         Export.
26419
26420 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
26421
26422         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
26423         round counter.
26424         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26425
26426 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26427
26428         [BZ #12597]
26429         * string/test-strncmp.c (do_page_test): New function.
26430         (check2): Likewise.
26431         (test_main): Call check2.
26432         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
26433
26434 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
26435
26436         [BZ #12587]
26437         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
26438         Handle cache information in CPU leaf 4.
26439         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
26440
26441 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
26442
26443         [BZ #12583]
26444         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
26445         character representation.
26446         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
26447
26448 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
26449
26450         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
26451         END(__isnan) to END(__isnanf) to match function entry point/label
26452         EALIGN(__isnanf,...).
26453
26454 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26455
26456         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
26457
26458 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
26459
26460         [BZ #12510]
26461         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
26462         copy from the symbol referenced in the relocation to initialize the
26463         used variable.
26464         Patch by Piotr Bury <pbury@goahead.com>.
26465         * elf/Makefile: Add rules to build and tst-unique3.
26466         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
26467         * elf/tst-unique3.cc: New file.
26468         * elf/tst-unique3.h: New file.
26469         * elf/tst-unique3lib.cc: New file.
26470         * elf/tst-unique3lib2.cc: New file.
26471
26472         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
26473
26474 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
26475
26476         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
26477         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
26478         to _start.
26479
26480 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
26481
26482         * elf/dl-load.c (_dl_map_object): If we are looking for the first
26483         to-be-loaded object along a path to loader is ld.so.
26484
26485 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26486             Ulrich Drepper  <drepper@gmail.com>
26487
26488         * sysdeps/x86_64/memset.S: After aligning destination, code
26489         branches to different locations depending on the value of
26490         misalignment, when multiarch is enabled. Fix this.
26491
26492 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
26493
26494         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
26495         Set _x86_64_preferred_memory_instruction for AMD processsors.
26496         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26497         Set bit_Prefer_SSE_for_memop for AMD processors.
26498
26499 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
26500
26501         * libio/fmemopen.c (fmemopen): Optimize a bit.
26502
26503 2011-03-03  Andreas Schwab  <schwab@redhat.com>
26504
26505         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
26506
26507 2011-03-03  Roland McGrath  <roland@redhat.com>
26508
26509         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
26510
26511 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
26512
26513         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
26514         __bzero_ultra1 instead of __memset_ultra1.
26515
26516 2011-02-23  Andreas Schwab  <schwab@redhat.com>
26517             Ulrich Drepper  <drepper@gmail.com>
26518
26519         [BZ #12509]
26520         * include/link.h (struct link_map): Add l_orig_initfini.
26521         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
26522         returning unsuccessfully.
26523         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
26524         close of a file loaded at startup, restore the original l_initfini
26525         list.
26526         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
26527         list, store the pointer.
26528         * elf/Makefile ($(objpfx)noload-mem): New rule.
26529         (noload-ENV): Define.
26530         (tests): Add $(objpfx)noload-mem.
26531         * elf/noload.c: Include <memcheck.h>.
26532         (main): Call mtrace.  Close all opened handles.
26533
26534 2011-02-17  Andreas Schwab  <schwab@redhat.com>
26535
26536         [BZ #12454]
26537         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
26538         dependencies are missing.
26539
26540 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26541
26542         Fix __if_freereq crash: Unlike the generic version which uses free,
26543         Hurd needs munmap.
26544         * sysdeps/mach/hurd/ifreq.h: New file.
26545
26546 2011-01-27  Petr Baudis  <pasky@suse.cz>
26547             Ulrich Drepper  <drepper@gmail.com>
26548
26549         [BZ 12445]#
26550         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
26551         to extend_alloca().
26552         * stdio-common/bug23.c: New file.
26553         * stdio-common/Makefile (tests): Add bug23.
26554
26555 2010-09-28  Andreas Schwab  <schwab@redhat.com>
26556             Ulrich Drepper  <drepper@gmail.com>
26557
26558         [BZ #12489]
26559         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
26560         before performing relro protection.  At old place add assertion
26561         to make sure nothing changed.
26562
26563 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
26564             Glauber de Oliveira Costa  <glommer@gmail.com>
26565
26566         * elf/elf.h: Add new ARM TLS relocs.
26567
26568 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
26569
26570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
26571         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
26572         cast from r3.
26573         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
26574         'tests' variable.
26575         * sysdeps/wordsize-64/tst-writev.c: New file.
26576
26577 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
26578
26579         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
26580         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
26581         insns in _dl_start to prevent a TOC reference before relocs are
26582         resolved.
26583
26584 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
26585
26586         [BZ #12469]
26587         * Makeconfig: Remove RANLIB definition.
26588         * Makerules: Don't use RANLIB.
26589         * aclocal.m4: Remove ranlib test.
26590         * configure.in: No need to check for ranlib.
26591         * elf/rtld-Rules: Don't use RANLIB.
26592
26593 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26594
26595         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
26596         protection macro.
26597         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
26598         inclusion protection macro.
26599
26600         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
26601         SIGRTMIN and SIGRTMAX and print information in that case only when
26602         SIGRTMIN is defined.
26603
26604 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
26605
26606         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
26607         arginfo fn returning -1.
26608
26609         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
26610         and thousands string is zero terminated.
26611
26612 2011-02-03  Andreas Schwab  <schwab@redhat.com>
26613
26614         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
26615         sysdeps/unix/sysv/linux/bits/socket.h.
26616
26617 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26618
26619         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
26620         (__CPU_COUNT): Remove old macros.
26621         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
26622         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
26623         (__CPU_ALLOC, __CPU_FREE): Add macros.
26624         (__sched_cpualloc, __sched_cpufree): Add declarations.
26625
26626 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
26627
26628         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
26629         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
26630         * nscd/aicache.c (addhstaiX): Return timeout of added value.
26631         (readdhstai): Return value of addhstaiX call.
26632         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
26633         (addgrbyX): Return value returned by cache_addgr.
26634         (readdgrbyname): Return value returned by addgrbyX.
26635         (readdgrbygid): Likewise.
26636         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
26637         (addpwbyX): Return value returned by cache_addpw.
26638         (readdpwbyname): Return value returned by addhstbyX.
26639         (readdpwbyuid): Likewise.
26640         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
26641         (addservbyX): Return value returned by cache_addserv.
26642         (readdservbyname): Return value returned by addservbyX:
26643         (readdservbyport): Likewise.
26644         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
26645         (addhstbyX): Return value returned by cache_addhst.
26646         (readdhstbyname): Return value returned by addhstbyX.
26647         (readdhstbyaddr): Likewise.
26648         (readdhstbynamev6): Likewise.
26649         (readdhstbyaddrv6): Likewise.
26650         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
26651         (readdinitgroups): Return value returned by addinitgroupsX.
26652         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
26653         (prune_cache): Keep track of timeout value of re-added entries.
26654         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
26655         * nscd/nscd.h: Adjust prototypes of readd* functions.
26656
26657 2011-02-04  Roland McGrath  <roland@redhat.com>
26658
26659         * nis/nis_server.c (nis_servstate): Use the right name for 0.
26660         (nis_stats): Likewise.
26661         * nis/nis_modify.c (nis_modify): Likewise.
26662         * nis/nis_remove.c (nis_remove): Likewise.
26663         * nis/nis_add.c (nis_add): Likewise.
26664
26665         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
26666
26667         * posix/fnmatch_loop.c: Add some consts.
26668
26669         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
26670
26671 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26672
26673         [BZ #12460]
26674         * config.make.in (config-cflags-novzeroupper): Define.
26675         * configure.in: Substitute libc_cv_cc_novzeroupper.
26676         * elf/Makefile (AVX-CFLAGS): Define.
26677         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
26678         (CFLAGS-tst-auditmod4a.c): Likewise.
26679         (CFLAGS-tst-auditmod4b.c): Likewise.
26680         (CFLAGS-tst-auditmod6b.c): Likewise.
26681         (CFLAGS-tst-auditmod6c.c): Likewise.
26682         (CFLAGS-tst-auditmod7b.c): Likewise.
26683         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
26684
26685 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
26686
26687         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
26688         function to the callback.
26689         Patch partly by Jiri Olsa <jolsa@redhat.com>.
26690
26691 2011-02-02  Andreas Schwab  <schwab@redhat.com>
26692
26693         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
26694         of errno.
26695
26696 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
26697
26698         [BZ #11724]
26699         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
26700         of constructors.
26701         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
26702         of destructors.
26703         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
26704
26705         [BZ #11724]
26706         * elf/Makefile: Add rules to build and run new test.
26707         * elf/tst-initorder.c: New file.
26708         * elf/tst-initorder.exp: New file.
26709         * elf/tst-initordera1.c: New file.
26710         * elf/tst-initordera2.c: New file.
26711         * elf/tst-initordera3.c: New file.
26712         * elf/tst-initordera4.c: New file.
26713         * elf/tst-initorderb1.c: New file.
26714         * elf/tst-initorderb2.c: New file.
26715         * elf/tst-order-a1.c: New file.
26716         * elf/tst-order-a2.c: New file.
26717         * elf/tst-order-a3.c: New file.
26718         * elf/tst-order-a4.c: New file.
26719         * elf/tst-order-b1.c: New file.
26720         * elf/tst-order-b2.c: New file.
26721         * elf/tst-order-main.c: New file.
26722         New test case by George Gensure <werkt0@gmail.com>.
26723
26724 2010-10-01  Andreas Schwab  <schwab@redhat.com>
26725
26726         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
26727         decoding ACE if AI_CANONIDN.
26728
26729 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
26730
26731         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
26732
26733 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
26734
26735         * version.h (RELEASE): Bump for 2.13 release.
26736         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
26737
26738         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
26739
26740         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
26741         MADV_NOHUGEPAGE.
26742         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
26743         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
26744         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26745         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26746         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26747         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
26748
26749         * posix/getconf.c: Update copyright year.
26750         * catgets/gencat.c: Likewise.
26751         * csu/version.c: Likewise.
26752         * debug/catchsegv.sh: Likewise.
26753         * debug/xtrace.sh: Likewise.
26754         * elf/ldconfig.c: Likewise.
26755         * elf/ldd.bash.in: Likewise.
26756         * elf/sprof.c (print_version): Likewise.
26757         * iconv/iconv_prog.c: Likewise.
26758         * iconv/iconvconfig.c: Likewise.
26759         * locale/programs/locale.c: Likewise.
26760         * locale/programs/localedef.c: Likewise.
26761         * malloc/memusage.sh: Likewise.
26762         * malloc/mtrace.pl: Likewise.
26763         * nscd/nscd.c (print_version): Likewise.
26764         * nss/getent.c: Likewise.
26765
26766         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
26767         PF_CAIF, and PF_ALG.
26768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26769
26770 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
26771
26772         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
26773         (modules-names): Use them.
26774         (ifunc-test-modules, ifunc-pie-tests): Define.
26775         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
26776         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
26777         (test-extras): Likewise.
26778         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
26779         $(compile-command.c).
26780         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
26781         (all-built-dso): Define.
26782         (check-textrel.out, check-execstack.out): Depend on it.
26783
26784         * configure.in: Don't override --enable-multi-arch.
26785
26786 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
26787
26788         [BZ #6812]
26789         * nscd/hstcache.c (tryagain): Define.
26790         (cache_addhst): Return tryagain not notfound for temporary errors.
26791         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
26792         failed.
26793
26794 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
26795
26796         [BZ #10563]
26797         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
26798         to make the syscall.
26799         * sysdeps/unix/sysv/linux/setgroups.c: New file.
26800
26801         [BZ #12378]
26802         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
26803         and fall back to matching as normal character if the string ends before
26804         the matching ']' is found.  This is what POSIX requires.
26805         * posix/testfnm.c: Adjust test result.
26806         * posix/globtest.sh: Adjust test result.  Add new test.
26807         * posix/tst-fnmatch.input: Likewise.
26808         * posix/tst-fnmatch2.c: Add new test.
26809
26810 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
26811
26812         * elf/Makefile (check-execstack): Revert last change.  Depend on
26813         check-execstack.h.
26814         (check-execstack.h): New target.
26815         (generated): Add check-execstack.h.
26816         * elf/check-execstack.c: Include "check-execstack.h".
26817         (main): Revert last change.
26818         (handle_file): Return zero if GNU_STACK is absent and
26819         DEFAULT_STACK_PERMS doesn't include PF_X.
26820
26821 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
26822
26823         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
26824         in child fails because the descriptor is already closed.
26825         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
26826         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
26827         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
26828
26829         [BZ #12397]
26830         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
26831         syscall.
26832
26833         [BZ #10484]
26834         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
26835         temporary buffer used to handle multi lookups locally.
26836         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
26837
26838 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26839
26840         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
26841         loader is ld.so.
26842
26843 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
26844
26845         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
26846         alignment for SSE2.
26847
26848 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
26849
26850         [BZ #12394]
26851         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
26852         characters.  When rounding increased number of integer digits recompute
26853         number of groups.
26854         * stdio-common/tst-grouping.c: New file.
26855         * stdio-common/Makefile: Add rules to build and run tst-grouping.
26856
26857 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
26858
26859         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
26860         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
26861
26862         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
26863         void.
26864         * bits/select.h: Likewise.
26865
26866 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
26867
26868         * po/ja.po: Update from translation team.
26869
26870 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
26871
26872         [BZ #11155]
26873         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
26874         implementation just like for lxstat, fxstatat, et al.
26875
26876 2010-12-27  Jim Meyering  <meyering@redhat.com>
26877
26878         [BZ #12348]
26879         * posix/regexec.c (build_trtable): Return failure indication upon
26880         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26881
26882 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
26883
26884         [BZ #12201]
26885         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
26886         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
26887         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
26888         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
26889
26890         [BZ #12207]
26891         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
26892
26893         [BZ #12204]
26894         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
26895         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
26896
26897 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
26898
26899         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
26900         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
26901         script has SORT_BY_INIT_PRIORITY.
26902         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
26903         NO_CTORS_DTORS_SECTIONS is defined.
26904         * elf/soinit.c: Likewise.
26905         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
26906         NO_CTORS_DTORS_SECTIONS is defined.
26907         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
26908         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
26909         * sysdeps/sh/init-first.c: Likewise.
26910         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
26911
26912 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
26913
26914         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
26915         always use the slow path.
26916
26917 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
26918
26919         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
26920         similar rule which adds the sysdep directories to the header search in
26921         order to pick up the correct platform stackinfo.h.
26922         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
26923         perform test if it is, otherwise return successfully without testing.
26924         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
26925         DEFAULT_STACK_PERMS define in stackinfo.h.
26926         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
26927         defined in stackinfo.h.
26928         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
26929         DEFAULT_STACK_PERMS defined in stackinfo.h.
26930         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
26931         * sysdeps/ia64/stackinfo.h: Likewise.
26932         * sysdeps/s390/stackinfo.h: Likewise.
26933         * sysdeps/sh/stackinfo.h: Likewise.
26934         * sysdeps/sparc/stackinfo.h: Likewise.
26935         * sysdeps/x86_64/stackinfo.h: Likewise.
26936         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
26937         PF_X for powerpc64.  Retain PF_X for powerpc32.
26938
26939 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
26940
26941         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
26942         accurately.
26943         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
26944         GETDENTS_64BIT_ALIGNED.
26945
26946 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
26947
26948         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
26949
26950 2010-12-10  Andreas Schwab  <schwab@redhat.com>
26951
26952         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
26953         _GNU_SOURCE.
26954
26955         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
26956         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
26957         Remove __restrict.
26958         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
26959         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
26960
26961 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
26962
26963         [BZ #11655]
26964         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
26965         are initialized.
26966
26967 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
26968
26969         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
26970
26971 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
26972
26973         * po/it.po: Update from translation team.
26974
26975 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
26976
26977         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
26978         unused codes.
26979
26980 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
26981
26982         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
26983
26984 2010-11-24  Andreas Schwab  <schwab@redhat.com>
26985
26986         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
26987         specially.
26988         (gaih_getanswer_slice): Likewise.
26989
26990 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
26991
26992         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
26993
26994 2010-05-31  Petr Baudis  <pasky@suse.cz>
26995
26996         [BZ #11149]
26997         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
26998         silently even in the chroot mode.
26999
27000 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
27001
27002         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
27003         last patch a bit.  Pretty printing
27004
27005 2010-05-31  Petr Baudis <pasky@suse.cz>
27006
27007         [BZ #10085]
27008         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
27009         initialization of skip_initgroups_dyn.
27010
27011 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
27012
27013         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
27014         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
27015
27016 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
27017
27018         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
27019
27020 2010-11-11  Andreas Schwab  <schwab@redhat.com>
27021
27022         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
27023         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
27024         (tst-fnmatch-ENV): Set MALLOC_TRACE.
27025         ($(objpfx)tst-fnmatch-mem): New rule.
27026         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
27027         * posix/tst-fnmatch.c (main): Call mtrace.
27028
27029 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
27030
27031         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27032         Support Intel processor model 6 and model 0x2c.
27033
27034 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
27035
27036         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
27037           signed comparison.
27038
27039 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
27040
27041         [BZ #12205]
27042         * string/test-strncasecmp.c (check_result): New function.
27043         (do_one_test): Use it.
27044         (check1): New function.
27045         (test_main): Use it.
27046         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
27047         Support strcasecmp and strncasecmp.
27048
27049 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
27050
27051         [BZ #12194]
27052         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
27053         * sysdeps/x86_64/bits/byteswap.h: Likewise.
27054
27055 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
27056
27057         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
27058         IFUNC support.
27059         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27060         memset-x86-64.
27061         * sysdeps/x86_64/multiarch/bzero.S: New file.
27062         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
27063         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
27064         * sysdeps/x86_64/multiarch/memset.S: New file.
27065         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
27066         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27067         Set bit_Prefer_SSE_for_memop for Intel processors.
27068         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
27069         Define.
27070         (index_Prefer_SSE_for_memop): Define.
27071         (HAS_PREFER_SSE_FOR_MEMOP): Define.
27072
27073 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
27074
27075         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
27076         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
27077
27078 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
27079
27080         [BZ #12191]
27081         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27082         (__x86_64_raw_data_cache_size_half): Likewise.
27083         (__x86_64_raw_shared_cache_size): Likewise.
27084         (__x86_64_raw_shared_cache_size_half): Likewise.
27085
27086         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
27087         (__x86_64_raw_data_cache_size_half): Likewise.
27088         (__x86_64_raw_shared_cache_size): Likewise.
27089         (__x86_64_raw_shared_cache_size_half): Likewise.
27090         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
27091         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
27092         and __x86_64_raw_shared_cache_size_half.  Round
27093         __x86_64_data_cache_size_half, __x86_64_data_cache_size
27094         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
27095         to multiple of 256 bytes.
27096
27097 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
27098
27099         [BZ #12167]
27100         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
27101         of inacessible symlinks.  Verify result of symlink before returning it.
27102         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27103         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
27104
27105 2010-10-28  Erich Ritz  <erichritz@gmail.com>
27106
27107         * math/math.h (isinf): Fix typo in comment.
27108
27109 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
27110
27111         * po/da.po: Update from translation team.
27112
27113 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
27114
27115         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
27116         is added to the list.
27117
27118 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27119             Ulrich Drepper  <drepper@gmail.com>
27120
27121         * elf/dl-object.c (_dl_new_object): Don't append the new object to
27122         the global list here.  Move code to...
27123         (_dl_add_to_namespace_list): ...here.  New function.
27124         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
27125         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
27126         * elf/dl-load.c (lose): Don't remove the element from the list.
27127         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
27128         (_dl_map_object): Likewise.
27129
27130 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
27131
27132         [BZ #12159]
27133         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
27134         into all bytes of SSE register.
27135         Patch by Richard Li <richardpku@gmail.com>.
27136
27137 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
27138
27139         [BZ #12140]
27140         * malloc/malloc.c (_int_free): Fill correct number of bytes when
27141         perturbing.
27142
27143 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
27144
27145         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
27146         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
27147         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
27148         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
27150         submachine.
27151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
27152
27153 2010-10-22  Andreas Schwab  <schwab@redhat.com>
27154
27155         * include/dlfcn.h (__RTLD_SECURE): Define.
27156         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
27157         mode & __RTLD_SECURE instead.
27158         (open_path): Rename preloaded parameter to secure.
27159         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
27160         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
27161         * elf/dl-deps.c (openaux): Likewise.
27162         * elf/rtld.c (struct map_args): Remove is_preloaded.
27163         (map_doit): Don't use it.
27164         (dl_main): Likewise.
27165         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
27166         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
27167
27168 2010-09-09  Andreas Schwab  <schwab@redhat.com>
27169
27170         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
27171         (sysd-rules-targets): Remove duplicates.
27172         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
27173         rtld-%.$o dependency.
27174
27175 2010-10-18  Andreas Schwab  <schwab@redhat.com>
27176
27177         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
27178         _dl_map_object do it.
27179
27180 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
27181
27182         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
27183         fast fma builtins, define the macros in the C99 standard.
27184         (FP_FAST_FMAF): Likewise.
27185         (FP_FAST_FMAL): Likewise.
27186         * sysdeps/x86_64/bits/mathdef.h: Likewise.
27187
27188         * bits/mathdef.h: Update copyright year.
27189         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27190
27191 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
27192
27193         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
27194         builtins, define the macros in the C99 standard.
27195         (FP_FAST_FMAF): Likewise.
27196         (FP_FAST_FMAL): Likewise.
27197         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
27198         multiply/add.
27199         (FP_FAST_FMAF): Likewise.
27200
27201 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
27202
27203         [BZ #3268]
27204         * math/libm-test.inc (fma_test): Some new testcases.
27205         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
27206         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
27207         y and infinite z.  Do multiplication by C already in long double.
27208         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
27209         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
27210         y and infinite z.  Do bitwise or of inexact bit into u.d.
27211         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
27212         * sysdeps/i386/fpu/s_fmaf.S: Removed.
27213         * sysdeps/i386/fpu/s_fma.S: Removed.
27214         * sysdeps/i386/fpu/s_fmal.S: Removed.
27215
27216 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
27217
27218         [BZ #3268]
27219         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
27220         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
27221         computation is not scheduled after fetestexcept.  Fix value
27222         of minimum denormal long double.
27223
27224 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
27225
27226         [BZ #3268]
27227         * math/libm-test.inc (fma_test): Add some more tests.
27228         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
27229         correctly.
27230
27231 2010-10-15  Andreas Schwab  <schwab@redhat.com>
27232
27233         * scripts/data/localplt-s390-linux-gnu.data: New file.
27234         * scripts/data/localplt-s390x-linux-gnu.data: New file.
27235
27236 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
27237
27238         [BZ #3268]
27239         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
27240         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
27241         instead of dbl-64.
27242         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
27243         inlines.
27244         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
27245         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
27246         if one of x and y is very large and the other is subnormal.
27247         * sysdeps/s390/fpu/s_fmaf.c: New file.
27248         * sysdeps/s390/fpu/s_fma.c: New file.
27249         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
27250         * sysdeps/powerpc/fpu/s_fma.S: New file.
27251         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
27252         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
27253         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
27254
27255 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
27256
27257         [BZ #3268]
27258         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
27259         fma tests.
27260         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
27261         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
27262         * sysdeps/i386/i686/multiarch/s_fma.c: Include
27263         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
27264         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
27265         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
27266         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
27267
27268 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
27269
27270         [BZ #12078]
27271         * posix/regcomp.c (parse_branch): One more memory leak plugged.
27272         * posix/bug-regex31.input: Add test case.
27273
27274 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27275
27276         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
27277         * posix/bug-regex31.input: New file.
27278
27279         [BZ #12078]
27280         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
27281         (parse_sub_exp): Fix last change, use postorder.
27282
27283         * posix/bug-regex31.c: New file.
27284         * posix/Makefile: Add rules to build and run bug-regex31.
27285
27286         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
27287
27288         [BZ #12078]
27289         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
27290
27291         [BZ #12108]
27292         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
27293         to have entries in sys_siglist.
27294
27295         [BZ #12093]
27296         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
27297         be NULL.
27298
27299 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
27300
27301         [BZ #3268]
27302         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
27303         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
27304         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27305         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
27306         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
27307         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
27308         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
27309         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
27310         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
27311         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
27312         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
27313         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
27314         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
27315         * math/ftestexcept.c (fetestexcept): Likewise.
27316         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
27317         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
27318         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
27319         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
27320         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
27321         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
27322         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
27323
27324 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
27325
27326         [BZ #12107]
27327         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
27328         newline.
27329
27330 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
27331
27332         * string/bug-strstr1.c: New file.
27333         * string/Makefile: Add rules to build and run bug-strstr1.
27334
27335 2010-10-05  Eric Blake  <eblake@redhat.com>
27336
27337         [BZ #12092]
27338         * string/str-two-way.h (two_way_long_needle): Always clear memory
27339         when skipping input due to the shift table.
27340
27341 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
27342
27343         [BZ #12005]
27344         * malloc/mcheck.c: Handle large requests.
27345
27346         [BZ #12077]
27347         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
27348         for strncmp and strncasecmp.
27349         * string/stratcliff.c: Add tests for strcmp and strncmp.
27350         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
27351
27352 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
27353
27354         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
27355         __set_fpscr.
27356
27357 2010-09-30  Andreas Jaeger  <aj@suse.de>
27358
27359         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
27360         (CGROUP_SUPER_MAGIC): Define.
27361         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27362         Handle btrfs and cgroup file systems.
27363         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
27364         Likewise.
27365
27366 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
27367
27368         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
27369         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
27370
27371 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27372
27373         [BZ #12067]
27374         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
27375         trying to locate the ELF header.
27376
27377 2010-09-27  Andreas Schwab  <schwab@redhat.com>
27378
27379         [BZ #11611]
27380         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
27381         Mask out sign-bit copies when constructing f_fsid.
27382
27383 2010-09-24  Petr Baudis <pasky@suse.cz>
27384
27385         * debug/stack_chk_fail_local.c: Add missing licence exception.
27386         * debug/warning-nop.c: Likewise.
27387
27388 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
27389
27390         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
27391         implementing getdents64 using getdents syscall, set d_type if
27392         __ASSUME_GETDENTS32_D_TYPE.
27393
27394 2010-09-16  Andreas Schwab  <schwab@redhat.com>
27395
27396         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
27397         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
27398
27399 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
27400
27401         [BZ #12037]
27402         * posix/unistd.h: Undo change of feature selection for ftruncate from
27403         2010-01-11.
27404
27405 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
27406
27407         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
27408         detection.
27409
27410 2010-09-20  Andreas Schwab  <schwab@redhat.com>
27411
27412         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
27413         fanotify_mark.
27414         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27415
27416 2010-09-14  Andreas Schwab  <schwab@redhat.com>
27417
27418         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
27419         variables after CHECK_SP call.
27420         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
27421
27422 2010-09-13  Andreas Schwab  <schwab@redhat.com>
27423             Ulrich Drepper  <drepper@redhat.com>
27424
27425         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
27426         re-relocationg ld.so.
27427         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
27428         _dl_init_paths call.
27429         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
27430         here anymore.
27431
27432 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
27433
27434         * resolv/res_init.c (__res_vinit): Count the default server we added.
27435
27436 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
27437             Ulrich Drepper  <drepper@redhat.com>
27438
27439         [BZ #11968]
27440         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
27441         (____longjmp_chk): Use %ebx for saving value across system call.
27442         Add unwind info.
27443
27444 2010-09-06  Andreas Schwab  <schwab@redhat.com>
27445
27446         * manual/Makefile: Don't mix pattern rules with normal rules.
27447
27448 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27449
27450         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
27451         operation.
27452         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
27453         * libio/iofopncook.c (_IO_cookie_init): Likewise.
27454         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
27455         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
27456         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
27457         Likewise.
27458
27459 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
27460
27461         [BZ #11979]
27462         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
27463         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
27464
27465 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
27466
27467         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
27468         * sysdeps/x86_64/addmul_1.S: Likewise.
27469         * sysdeps/x86_64/lshift.S: Likewise.
27470         * sysdeps/x86_64/mul_1.S: Likewise.
27471         * sysdeps/x86_64/rshift.S: Likewise.
27472         * sysdeps/x86_64/sub_n.S: Likewise.
27473         * sysdeps/x86_64/submul_1.S: Likewise.
27474
27475 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27476
27477         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
27478         Define __sched_param instead of SCHED_* and sched_param when
27479         <bits/sched.h> is included with __need_schedparam defined.
27480         * bits/sched.h [__need_schedparam]
27481         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
27482         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
27483         (__defined_schedparam): Define to 1.
27484         (__sched_param): New structure, identical to sched_param.
27485         (__need_schedparam): Undefine.
27486
27487 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
27488
27489         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
27490         (epoll_create1): Declare.
27491
27492         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
27493
27494 2010-08-31  Andreas Schwab  <schwab@redhat.com>
27495
27496         [BZ #7066]
27497         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
27498         shifting retval into place.
27499
27500 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
27501
27502         * nis/rpcsvc/nis.h: Update copyright notice.
27503         * nis/rpcsvc/nis.x: Likewise.
27504         * nis/rpcsvc/nis_callback.h: Likewise.
27505         * nis/rpcsvc/nis_callback.x: Likewise.
27506         * nis/rpcsvc/nis_object.x: Likewise.
27507         * nis/rpcsvc/nis_tags.h: Likewise.
27508         * nis/rpcsvc/yp.h: Likewise.
27509         * nis/rpcsvc/yp.x: Likewise.
27510         * nis/rpcsvc/ypupd.h: Likewise.
27511         * nis/yp_xdr.c: Likewise.
27512         * nis/ypupdate_xdr.c: Likewise.
27513
27514         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
27515         mainly the body of pmap_getport.  Add parameters to specify timeouts.
27516         (pmap_getport): Use __libc_rpc_getport.
27517         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
27518         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
27519         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
27520
27521 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
27522
27523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
27524         fanotify_mark.
27525
27526 2010-08-27  Roland McGrath  <roland@redhat.com>
27527
27528         * sysdeps/i386/i686/multiarch/Makefile
27529         (CFLAGS-varshift.c): New variable.
27530
27531 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
27532
27533         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
27534         * sysdeps/i386/i686/multiarch/varshift.c: New file.
27535
27536         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
27537
27538         * sysdeps/x86_64/strlen.S: Minimal code improvement.
27539
27540 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
27541
27542         * sysdeps/x86_64/strlen.S: Unroll the loop.
27543         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27544         strlen-sse2 strlen-sse2-bsf.
27545         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
27546         __strlen_no_bsf if bit_Slow_BSF is set.
27547         (__strlen_sse42): Removed.
27548         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
27549         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
27550
27551 2010-08-25  Roland McGrath  <roland@redhat.com>
27552
27553         * sysdeps/x86_64/multiarch/varshift.S: File removed.
27554         * sysdeps/x86_64/multiarch/varshift.c: New file.
27555         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
27556         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
27557         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
27558         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27559
27560 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27561
27562         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27563         strlen-sse2 strlen-sse2-bsf.
27564         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
27565         __strlen_sse2_bsf if bit_Slow_BSF is unset.
27566         (__strlen_sse2): Removed.
27567         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
27568         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
27569         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
27570         bit_Slow_BSF for Atom.
27571         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
27572         (index_Slow_BSF): Define.
27573         (HAS_SLOW_BSF): Define.
27574
27575 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
27576
27577         [BZ #10851]
27578         * resolv/res_init.c (__res_vinit): When no server address at all
27579         is given default to loopback.
27580
27581 2010-08-24  Roland McGrath  <roland@redhat.com>
27582
27583         * configure.in: Remove config-name.h generation.
27584         * configure: Regenerated.
27585         * config-name.in: File removed.
27586         * scripts/config-uname.sh: New file.
27587         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
27588         ($(objdir)config-name.h): New target.
27589
27590         * sunrpc/rpc_parse.h: Avoid nested comment.
27591
27592 2010-08-24  Richard Henderson  <rth@redhat.com>
27593             Ulrich Drepper  <drepper@redhat.com>
27594             H.J. Lu  <hongjiu.lu@intel.com>
27595
27596         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
27597         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
27598         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
27599         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
27600         _mm_alignr_epi8 with _mm_loadu_si128.
27601         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
27602         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
27603         (__m128i_shift_right): Removed.
27604         * sysdeps/i386/i686/multiarch/varshift.h: New file.
27605         * sysdeps/i386/i686/multiarch/varshift.S: New file.
27606         * sysdeps/x86_64/multiarch/varshift.h: New file.
27607         * sysdeps/x86_64/multiarch/varshift.S: New file.
27608
27609 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
27610
27611         * configure.in: Move assembler checks to before sysdep dir checking.
27612
27613 2010-08-20  Petr Baudis  <pasky@suse.cz>
27614
27615         * LICENSES: Sync the sunrpc license.
27616
27617 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
27618
27619         * sunrpc/auth_des.c: Update copyright notice once again.
27620         * sunrpc/auth_none.c: Likewise.
27621         * sunrpc/auth_unix.c: Likewise.
27622         * sunrpc/authdes_prot.c: Likewise.
27623         * sunrpc/authuxprot.c: Likewise.
27624         * sunrpc/bindrsvprt.c: Likewise.
27625         * sunrpc/clnt_gen.c: Likewise.
27626         * sunrpc/clnt_perr.c: Likewise.
27627         * sunrpc/clnt_raw.c: Likewise.
27628         * sunrpc/clnt_simp.c: Likewise.
27629         * sunrpc/clnt_tcp.c: Likewise.
27630         * sunrpc/clnt_udp.c: Likewise.
27631         * sunrpc/clnt_unix.c: Likewise.
27632         * sunrpc/des_crypt.c: Likewise.
27633         * sunrpc/des_soft.c: Likewise.
27634         * sunrpc/get_myaddr.c: Likewise.
27635         * sunrpc/getrpcport.c: Likewise.
27636         * sunrpc/key_call.c: Likewise.
27637         * sunrpc/key_prot.c: Likewise.
27638         * sunrpc/openchild.c: Likewise.
27639         * sunrpc/pm_getmaps.c: Likewise.
27640         * sunrpc/pm_getport.c: Likewise.
27641         * sunrpc/pmap_clnt.c: Likewise.
27642         * sunrpc/pmap_prot.c: Likewise.
27643         * sunrpc/pmap_prot2.c: Likewise.
27644         * sunrpc/pmap_rmt.c: Likewise.
27645         * sunrpc/rpc/auth.h: Likewise.
27646         * sunrpc/rpc/auth_unix.h: Likewise.
27647         * sunrpc/rpc/clnt.h: Likewise.
27648         * sunrpc/rpc/des_crypt.h: Likewise.
27649         * sunrpc/rpc/key_prot.h: Likewise.
27650         * sunrpc/rpc/netdb.h: Likewise.
27651         * sunrpc/rpc/pmap_clnt.h: Likewise.
27652         * sunrpc/rpc/pmap_prot.h: Likewise.
27653         * sunrpc/rpc/pmap_rmt.h: Likewise.
27654         * sunrpc/rpc/rpc.h: Likewise.
27655         * sunrpc/rpc/rpc_des.h: Likewise.
27656         * sunrpc/rpc/rpc_msg.h: Likewise.
27657         * sunrpc/rpc/svc.h: Likewise.
27658         * sunrpc/rpc/svc_auth.h: Likewise.
27659         * sunrpc/rpc/types.h: Likewise.
27660         * sunrpc/rpc/xdr.h: Likewise.
27661         * sunrpc/rpc_clntout.c: Likewise.
27662         * sunrpc/rpc_cmsg.c: Likewise.
27663         * sunrpc/rpc_common.c: Likewise.
27664         * sunrpc/rpc_cout.c: Likewise.
27665         * sunrpc/rpc_dtable.c: Likewise.
27666         * sunrpc/rpc_hout.c: Likewise.
27667         * sunrpc/rpc_main.c: Likewise.
27668         * sunrpc/rpc_parse.c: Likewise.
27669         * sunrpc/rpc_parse.h: Likewise.
27670         * sunrpc/rpc_prot.c: Likewise.
27671         * sunrpc/rpc_sample.c: Likewise.
27672         * sunrpc/rpc_scan.c: Likewise.
27673         * sunrpc/rpc_scan.h: Likewise.
27674         * sunrpc/rpc_svcout.c: Likewise.
27675         * sunrpc/rpc_tblout.c: Likewise.
27676         * sunrpc/rpc_util.c: Likewise.
27677         * sunrpc/rpc_util.h: Likewise.
27678         * sunrpc/rpcinfo.c: Likewise.
27679         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
27680         * sunrpc/rpcsvc/key_prot.x: Likewise.
27681         * sunrpc/rpcsvc/klm_prot.x: Likewise.
27682         * sunrpc/rpcsvc/mount.x: Likewise.
27683         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
27684         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
27685         * sunrpc/rpcsvc/rex.x: Likewise.
27686         * sunrpc/rpcsvc/rstat.x: Likewise.
27687         * sunrpc/rpcsvc/rusers.x: Likewise.
27688         * sunrpc/rpcsvc/sm_inter.x: Likewise.
27689         * sunrpc/rpcsvc/spray.x: Likewise.
27690         * sunrpc/rpcsvc/yppasswd.x: Likewise.
27691         * sunrpc/rtime.c: Likewise.
27692         * sunrpc/svc.c: Likewise.
27693         * sunrpc/svc_auth.c: Likewise.
27694         * sunrpc/svc_authux.c: Likewise.
27695         * sunrpc/svc_raw.c: Likewise.
27696         * sunrpc/svc_run.c: Likewise.
27697         * sunrpc/svc_simple.c: Likewise.
27698         * sunrpc/svc_tcp.c: Likewise.
27699         * sunrpc/svc_udp.c: Likewise.
27700         * sunrpc/svc_unix.c: Likewise.
27701         * sunrpc/svcauth_des.c: Likewise.
27702         * sunrpc/xcrypt.c: Likewise.
27703         * sunrpc/xdr.c: Likewise.
27704         * sunrpc/xdr_array.c: Likewise.
27705         * sunrpc/xdr_float.c: Likewise.
27706         * sunrpc/xdr_mem.c: Likewise.
27707         * sunrpc/xdr_rec.c: Likewise.
27708         * sunrpc/xdr_ref.c: Likewise.
27709         * sunrpc/xdr_sizeof.c: Likewise.
27710         * sunrpc/xdr_stdio.c: Likewise.
27711
27712         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
27713         handling.
27714
27715 2010-08-19  Andreas Schwab  <schwab@redhat.com>
27716
27717         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
27718
27719 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
27720
27721         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
27722         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
27723         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
27724         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
27725         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
27726         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
27727         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
27728         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
27729         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
27730         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
27731         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
27732         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
27733         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
27734         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
27735
27736 2010-07-26  Anton Blanchard  <anton@samba.org>
27737
27738         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
27739         * malloc/arena.c (heap_trim): Likewise.
27740
27741 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
27742
27743         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
27744         here.  Not...
27745         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
27746         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
27747
27748 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27749
27750         * sysdeps/i386/elf/Makefile: New file.
27751
27752 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27753
27754         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
27755         from fanotify_init.
27756         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
27757         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27758
27759 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
27760
27761         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
27762         of strncasecmp_l.
27763         * sysdeps/multiarch/strcmp.S: Likewise.
27764
27765 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
27766
27767         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27768         strncase_l-nonascii.
27769         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27770         Add strncase_l-ssse3.
27771         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
27772         * sysdeps/x86_64/strcmp.S: Likewise.
27773         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
27774         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
27775         * sysdeps/x86_64/strncase.S: New file.
27776         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
27777         * sysdeps/x86_64/strncase_l.S: New file.
27778         * string/Makefile (strop-tests): Add strncasecmp.
27779         * string/test-strncasecmp.c: New file.
27780
27781         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
27782         warning.
27783
27784         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
27785         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
27786
27787 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
27788
27789         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
27790
27791 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
27792
27793         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
27794         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
27795         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
27796
27797 2010-05-01  Alan Modra  <amodra@gmail.com>
27798
27799         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
27800         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
27801         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
27802         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
27803         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
27804         tidying.  Don't tail-call __sigjmp_save for static lib.
27805         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
27806         save location.
27807         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
27808         (CALL_MCOUNT): Add eh info, and nop after bl.
27809         (TAIL_CALL_SYSCALL_ERROR): New macro.
27810         (PSEUDO_RET): Use it.
27811         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
27812         Correct save location of integer regs and cr.
27813         (_dl_profile_resolve): Correct cr save location.  Delete nops
27814         after bl when SHARED.  Reduce cfi size a little by better
27815         placement of cfi directives.
27816         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
27817         make a stack frame.  Instead use parm save area as a temp.
27818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
27819         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
27820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
27821         Don't make a stack frame for parent, use parm save area.
27822         Increase child stack frame to 112 bytes.  Don't save unused reg,
27823         and adjust reg usage.  Set up cfi on error recovery and
27824         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
27825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
27826         (__makecontext): Add dummy nop after jump to exit.
27827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
27828         Use correct parm save area and cr save, reduce stack frame.
27829         Correct cfi for possible PSEUDO_RET frame setup.
27830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
27831         Branch to local label emitted by PSEUDO_RET rather than
27832         __syscall_error.
27833
27834 2010-08-12  Andreas Schwab  <schwab@redhat.com>
27835
27836         [BZ #11904]
27837         * locale/programs/locale.c (print_assignment): New function.
27838         (show_locale_vars): Use it.
27839
27840 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
27841
27842         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
27843         field.
27844         (struct statfs64): Likewise.
27845         (_STATFS_F_FLAGS): Define.
27846         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
27847         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27848         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
27849         (ST_VALID): Define locally.
27850         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
27851         __statvfs_getflags, use the provided value.
27852         * sysdeps/unix/sysv/linux/kernel-features.h: Define
27853         __ASSUME_STATFS_F_FLAGS.
27854
27855         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
27856
27857         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
27858         Add sys/fanotify.h.
27859         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
27860         fanotify_mask for GLIBC_2.13.
27861         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
27862         fanotify_init and fanotify_mark.
27863         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
27864         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
27865
27866         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
27867         Add prlimit.
27868         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
27869         prlimit64 for GLIBC_2.13.
27870         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
27871         prlimit64.
27872         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
27873         syscall.
27874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
27875         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
27876         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
27877         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
27878         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
27879         add prlimit alias.
27880         * sysdeps/unix/sysv/linux/prlimit.c: New file.
27881
27882         [BZ #11903]
27883         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
27884         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
27885
27886         * nss/Makefile: Add rules to build and run tst-nss-test1.
27887         * shlib-versions: Add entry for libnss_test1.
27888         * nss/nss_test1.c: New file.
27889         * nss/tst-nss-test1.c: New file.
27890
27891         * nss/nsswitch.c (__nss_database_custom): Define new variable.
27892         (__nss_configure_lookup): Set appropriate entry in
27893         __nss_configure_lookup to true.
27894         * nss/nsswitch.h: Define enum with indeces of databases in
27895         databases and __nss_database_custom arrays.  Declare
27896         __nss_database_custom.
27897         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
27898         to avoid using nscd when custom rules are installed.
27899         * nss/getXXbyYY_r.c: Likewise.
27900         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
27901
27902         * nss/nss_files/files-parse.c: Whitespace fixes.
27903
27904 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
27905
27906         [BZ #11883]
27907         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
27908         * posix/fnmatch_loop.c: Likewise.
27909
27910 2010-07-17  Andi Kleen  <ak@linux.intel.com>
27911
27912         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
27913         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
27914         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
27915         * Versions.def [GLIBC_2.13]: Add.
27916
27917 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
27918
27919         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27920         Also fail if tpwd after pwuid call is NULL.
27921
27922 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27923
27924         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
27925         when converting to ms.
27926
27927 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27928
27929         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
27930         EOPNOTSUPP errors with ENOTTY.
27931         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
27932         EOPNOTSUPP errors with ENOTTY.
27933
27934 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
27935
27936         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
27937         Add strcasecmp_l-ssse3.
27938         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
27939         strcasecmp.
27940         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
27941         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
27942         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
27943
27944 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
27945
27946         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
27947
27948         * string/Makefile (strop-tests): Add strcasecmp.
27949         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
27950         strcasecmp_l-nonascii.
27951         (gen-as-const-headers): Add locale-defines.sym.
27952         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
27953         * sysdeps/x86_64/strcasecmp.S: New file.
27954         * sysdeps/x86_64/strcasecmp_l.S: New file.
27955         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
27956         * sysdeps/x86_64/locale-defines.sym: New file.
27957         * string/test-strcasecmp.c: New file.
27958
27959         * string/test-strcasestr.c: Test both ends of the range of characters.
27960         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
27961
27962 2010-07-29  Roland McGrath  <roland@redhat.com>
27963
27964         [BZ #11856]
27965         * manual/locale.texi (Yes-or-No Questions): Fix example code.
27966
27967 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
27968
27969         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
27970         for ld.so.
27971
27972 2010-07-27  Andreas Schwab  <schwab@redhat.com>
27973
27974         * manual/memory.texi (Malloc Tunable Parameters): Document
27975         M_PERTURB.
27976
27977 2010-07-26  Roland McGrath  <roland@redhat.com>
27978
27979         [BZ #11840]
27980         * configure.in (-fgnu89-inline check): Set and substitute
27981         gnu89_inline, not libc_cv_gnu89_inline.
27982         * configure: Regenerated.
27983         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
27984
27985 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
27986
27987         * string/test-strnlen.c: New file.
27988         * string/Makefile (strop-tests): Add strnlen.
27989         * string/tester.c (test_strnlen): Add a few more test cases.
27990         * string/tst-strlen.c: Better error reporting.
27991
27992         * sysdeps/x86_64/strnlen.S: New file.
27993
27994 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
27995
27996         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
27997         lower-latency instructions.
27998
27999 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
28000
28001         * string/test-strcasestr.c: New file.
28002         * string/test-strstr.c: New file.
28003         * string/Makefile (strop-tests): Add strstr and strcasestr.
28004         * string/str-two-way.h: Don't undefine MAX.
28005         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
28006
28007 2010-07-21  Andreas Schwab  <schwab@redhat.com>
28008
28009         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28010         strcasestr-nonascii.
28011         (CFLAGS-strcasestr-nonascii.c): Define.
28012         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
28013         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
28014         Remove unused attribute.
28015
28016 2010-07-20  Roland McGrath  <roland@redhat.com>
28017
28018         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
28019         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
28020         ld.so.cache was broken.  With it, there is no way to disable dsocaps
28021         like LD_HWCAP_MASK can disable hwcaps.
28022
28023 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28024
28025         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
28026
28027 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
28028
28029         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
28030         call in strcasestr.
28031         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
28032         __strcasestr_sse42_nonascii.
28033         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
28034         strcasestr-nonascii.c.
28035         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
28036
28037 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
28038
28039         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
28040         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
28041         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
28042         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
28043
28044 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
28045
28046         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
28047         fcntl.
28048
28049 2010-07-06  Andreas Schwab  <schwab@redhat.com>
28050
28051         [BZ #11577]
28052         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
28053         dl_signal_cerror.
28054
28055 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
28056
28057         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
28058         _PC_PIPE_BUF using F_GETPIPE_SZ.
28059
28060 2010-07-05  Roland McGrath  <roland@redhat.com>
28061
28062         * manual/arith.texi (Rounding Functions): Fix rint description
28063         implicit in round description.
28064
28065 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
28066
28067         * elf/Makefile: Fix linking for a few tests to make recent linker
28068         happy.
28069
28070 2010-06-30  Andreas Schwab  <schwab@redhat.com>
28071
28072         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28073         $(common-objpfx)libc_nonshared.a.
28074
28075 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
28076
28077         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
28078         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
28079         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28080         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28081         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
28082         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
28083         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28084         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
28086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
28087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
28088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
28089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
28090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
28091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
28092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
28093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
28094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
28095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
28096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
28097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
28098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
28099         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
28100         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
28101         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
28102         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
28103         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
28104         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
28105         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
28106         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
28107         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
28108         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
28109         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
28110         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
28111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
28112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
28113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
28114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
28115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
28116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
28117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
28118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
28119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
28120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
28121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
28122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
28123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
28124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
28125
28126 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
28127
28128         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
28129         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
28130         * string/memmove.c (memmove): Renamed to ...
28131         (MEMMOVE): ...this.  Default to memmove.
28132         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
28133         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
28134         (END_CHK): Define.
28135         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28136         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
28137         mempcpy-ssse3-back memmove-ssse3-back.
28138         * sysdeps/x86_64/multiarch/bcopy.S: New file .
28139         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
28140         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
28141         * sysdeps/x86_64/multiarch/memcpy.S: New file.
28142         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
28143         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
28144         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
28145         * sysdeps/x86_64/multiarch/memmove.c: New file.
28146         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
28147         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
28148         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
28149         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
28150         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
28151         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
28152         Define.
28153         (index_Fast_Copy_Backward): Define.
28154         (HAS_ARCH_FEATURE): Define.
28155         (HAS_FAST_REP_STRING): Define.
28156         (HAS_FAST_COPY_BACKWARD): Define.
28157
28158 2010-06-21  Andreas Schwab  <schwab@redhat.com>
28159
28160         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28161         Restore proper fallback handling.
28162
28163 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
28164
28165         [BZ #11701]
28166         * posix/group_member.c (__group_member): Correct checking loop.
28167
28168         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
28169         OOM in getpwuid_r correctly.  Return error number when the caller
28170         should return, otherwise -1.
28171         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
28172         call returning > 0 value.
28173         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
28174
28175 2010-06-07  Andreas Schwab  <schwab@redhat.com>
28176
28177         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
28178         libc_nonshared.a from targets in modules-names.
28179
28180 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
28181
28182         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
28183         requires it.
28184
28185 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
28186
28187         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
28188         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
28189         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
28190         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
28191
28192 2010-06-02  Andreas Schwab  <schwab@redhat.com>
28193
28194         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
28195
28196 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
28197
28198         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
28199         and F_GETPIPE_SZ.
28200         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
28201         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
28202         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28203         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28204         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
28205         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
28206
28207 2010-06-14  Roland McGrath  <roland@redhat.com>
28208
28209         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
28210
28211 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
28212
28213         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
28214         __REDIRECT followed by __THROW.
28215         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
28216         * posix/getopt.h (getopt): Likewise.
28217
28218 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
28219
28220         * hurd/lookup-at.c (__file_name_lookup_at): Accept
28221         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
28222         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
28223         in AT_FLAGS.
28224         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
28225         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
28226
28227 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
28228
28229         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
28230
28231 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
28232
28233         [BZ #11640]
28234         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28235         Properly check family and model.
28236
28237 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
28238
28239         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
28240
28241 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
28242
28243         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
28244
28245 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
28246
28247         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
28248         symbol reference.
28249
28250 2010-05-19  Andreas Schwab  <schwab@redhat.com>
28251
28252         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
28253         symbol reference.
28254
28255 2010-05-21  Andreas Schwab  <schwab@redhat.com>
28256
28257         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
28258         and internal_recvmmsg.
28259         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
28260         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
28261         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
28262         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
28263
28264         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
28265         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
28266         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
28267
28268 2010-05-20  Andreas Schwab  <schwab@redhat.com>
28269
28270         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
28271
28272 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
28273
28274         POWER7 optimizations.
28275         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
28276         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
28277
28278 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
28279
28280         * version.h: Update for 2.13 development version.
28281
28282 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
28283
28284         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
28285         exceptions.  Return 0.
28286
28287 2010-05-07  Roland McGrath  <roland@redhat.com>
28288
28289         * elf/ldconfig.c (main): Add a const.
28290
28291 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
28292
28293         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
28294         (args_options): Add no-idn option.
28295         (ahosts_keys_int): Add idn_flags to ai_flags.
28296         (parse_option): Handle 'i' option to clear idn_flags.
28297
28298         * malloc/malloc.c (_int_free): Possible race in the most recently
28299         added check.  Only act on the data if no current modification
28300         happened.
28301
28302 See ChangeLog.17 for earlier changes.