6e8b99ff421689b4a0bc3537b319ed9c5bb72db4
[platform/upstream/glibc.git] / ChangeLog
1 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
4         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
6         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
8         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9         * sysdeps/unix/bsd/clock.c: Likewise.
10         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
11         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
12         * sysdeps/unix/bsd/init-posix.c: Likewise.
13         * sysdeps/unix/bsd/poll.c: Likewise.
14         * sysdeps/unix/bsd/ptsname.c: Likewise.
15         * sysdeps/unix/bsd/seekdir.c: Likewise.
16         * sysdeps/unix/bsd/setegid.c: Likewise.
17         * sysdeps/unix/bsd/seteuid.c: Likewise.
18         * sysdeps/unix/bsd/setgid.c: Likewise.
19         * sysdeps/unix/bsd/setrgid.c: Likewise.
20         * sysdeps/unix/bsd/setruid.c: Likewise.
21         * sysdeps/unix/bsd/setsid.c: Likewise.
22         * sysdeps/unix/bsd/setuid.c: Likewise.
23         * sysdeps/unix/bsd/sigaction.c: Likewise.
24         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
25         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
26         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
27         * sysdeps/unix/bsd/telldir.c: Likewise.
28         * sysdeps/unix/bsd/times.c: Likewise.
29         * sysdeps/unix/bsd/usleep.c: Likewise.
30
31         * misc/Makefile (install-lib): Remove libbsd-compat.a.
32         ($(objpfx)libbsd-compat.a): Remove rule.
33
34         * include/features.h (__FAVOR_BSD): Do not define.
35         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
36         features conflicting with POSIX.
37         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
38         (_BSD_SOURCE): Remove description of not being a subset of other
39         feature test macros.
40         * manual/job.texi (getpgrp): Do not document BSD version.
41         (getpgid): Do not document by reference to BSD getpgrp.
42         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
43         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
44         * signal/signal.h [__FAVOR_BSD]: Likewise.
45         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
46         instead of making contents conditional on [__FAVOR_BSD].
47         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
48
49 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50
51         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52
53 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
54
55         [BZ #16314]
56         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
57         values below 2**-450, not 2**-500.
58         * math/auto-libm-test-in: Don't allow spurious underflow from
59         hypot.
60         * math/auto-libm-test-out: Regenerated.
61
62         [BZ #16316]
63         [BZ #16330]
64         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
65         values of ha and hb and sort them after adjusting subnormal
66         arguments.
67         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
68         Likewise.
69         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
70         values of ea and eb and sort them after adjusting subnormal
71         arguments.
72         * math/auto-libm-test-in: Do not expect some hypot tests of
73         subnormals to fail.  Add more hypot tests.
74         * math/auto-libm-test-out: Regenerated.
75
76 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
77
78         [BZ #13304]
79         * sysdeps/sh/s_fma.c: New file.
80         * sysdeps/sh/s_fmaf.c: New file.
81         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
82         version.
83         * sysdeps/sh/Implies: Add sh/soft-fp.
84
85 2013-12-16  Roland McGrath  <roland@hack.frob.com>
86
87         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
88         level of indirection to members `objname', `errstring', `malloced'.
89         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
90         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
91         it as the __longjmp argument (just pass 1 instead).
92         (_dl_catch_error): Initialize C with argument pointers and address of
93         volatile local ERRCODE rather than copying values out of C at return.
94
95 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
96
97         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
98         * math/auto-libm-test-out: Regenerated.
99         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
100         (hypot_test_data): Likewise.
101         (pow_test_data): Likewise.
102         (pow_tonearest_test_data): Likewise.
103         * math/gen-auto-libm-tests.c (func_calc_method): Add value
104         mpfr_ff_f.
105         (func_calc_desc): Add mpfr_ff_f union field.
106         (FUNC_mpfr_ff_f): New macro.
107         (test_functions): Add atan2, hypot and pow.
108         (special_fill_min): New function.
109         (special_fill_minus_min): Likewise.
110         (special_fill_min_subnorm): Likewise.
111         (special_fill_minus_min_subnorm): Likewise.
112         (special_real_inputs): Add min, -min, min_subnorm and
113         -min_subnorm.
114         (calc_generic_results): Handle mpfr_ff_f.
115         * sysdeps/i386/fpu/libm-test-ulps: Update.
116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
117
118 2013-12-16  Will Newton  <will.newton@linaro.org>
119
120         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
121         (Aligned Memory Blocks): Add documentation for aligned_alloc
122         and suggest it as an alternative to posix_memalign.
123         (Hooks for Malloc): Document __memalign_hook is also called
124         for aligned_alloc.  (Summary of Malloc): Add summary for
125         aligned alloc.  Document __memalign_hook is also called
126         for aligned_alloc.
127
128 2013-12-16  Will Newton  <will.newton@linaro.org>
129
130         * manual/memory.texi (Malloc Examples): Clarify default
131         alignment documentation.  Suggest posix_memalign rather
132         than memalign or valloc.
133         (Aligned Memory Blocks): Remove suggestion to use memalign
134         or valloc.  Remove obsolete comment about BSD.
135         Document memalign errno values and mark the function obsolete.
136         Document posix_memalign returned error codes.  Mark valloc
137         as obsolete.  (Hooks for Malloc): __memalign_hook is also
138         called for posix_memalign and valloc.
139         (Summary of Malloc): Add posix_memalign to function summary.
140         __memalign_hook is also called for posix_memalign and valloc.
141
142 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
143
144         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
145         TAYLOR_SIN.
146         (__sin): Adjust.
147         (__cos): Likewise.
148         (sloww): Use mynumber union.  Expand ternary operator into
149         if-else statements.
150         (cslow): use mynumber union.
151
152 2013-12-16  Allan McRae  <allan@archlinux.org>
153
154         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
155         * configure: Regenerated.
156
157         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
158
159         [BZ #14120]
160         * configure.ac: Added --enable-maintainer-mode. Check for
161         autoconf when enabled.
162         * configure: Regenerated.
163
164         * nscd/nscd.service: New file.
165         * nscd/nscd.tmpfiles: New file.
166
167 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
168
169         [BZ #12100]
170         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
171         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
172         * sysdeps/x86_64/multiarch/strstr.c: ... here.
173         (strstr): Add __strstr_sse2_unaligned ifunc.
174         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
175         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
176         (strcasestr): Remove __strcasestr_sse42 ifunc.
177         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
178         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
179         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
180
181 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
182
183         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
184         * sysdeps/sh/bits/fenv.h: ... here.
185         * sysdeps/sh/sh4/fpu/bits: Remove directory.
186
187 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
188
189         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
190
191 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
192
193         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
194         hypotf multiarch implementations.
195         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
196         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
197         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
198         multiarch hypot for PPC64.
199         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
200         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
201         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
202         multiarch hypotf for PPC64.
203
204 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
205
206         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
207         modff multiarch implementations.
208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
210         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
211         multiarch modf for PPC64.
212         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
215         multiarch modff for PPC64.
216
217 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
218
219         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
220         and logl multiarch implementations.
221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
222         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
224         multiarch logb for PPC64.
225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
228         multiarch logb for PPC64.
229         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
231         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
232         multiarch logb for PPC64.
233
234 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
235
236         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
237         isinff multiarch implementation.
238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
239         file.
240         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
242         multiarch isinf for PPC64.
243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
244         file.
245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
246         multiarch isinff for PPC64.
247
248 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
249
250         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
251         finitef multiarch implementation.
252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
253         file.
254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
256         multiarch finite for PPC64.
257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
258         file.
259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
260         multiarch finitef for PPC64.
261
262 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
263
264         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
265         lrint multiarch implementation.
266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
267         file.
268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
270         multiarch llrint for PPC64.
271         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
272         multiarch lrint for PPC64.
273
274 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
275
276         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
277         copysignf multiarch implementation.
278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
279         file.
280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
281         file.
282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
283         multiarch copysign for PPC64.
284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
285         multiarch copysignf for PPC64.
286
287 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
288
289         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
290         multiarch implementation.
291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
292         file.
293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
294         file.
295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
296         file.
297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
298         file.
299         multiarch llround for PPC64.
300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
301         multiarch trunc for PPC64.
302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
303         multiarch truncf for PPC64.
304
305 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
306
307         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
308         multiarch implementation.
309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
310         file.
311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
312         file.
313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
314         file.
315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
316         file.
317         multiarch llround for PPC64.
318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
319         multiarch round for PPC64.
320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
321         multiarch roundf for PPC64.
322
323 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
324
325         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
326         multiarch implementation.
327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
328         file.
329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
330         file.
331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
332         file.
333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
334         file.
335         multiarch llround for PPC64.
336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
337         multiarch floor for PPC64.
338         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
339         multiarch floorf for PPC64.
340
341 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
342
343         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
344         multiarch implementation.
345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
346         file.
347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
348         file.
349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
350         file.
351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
352         file.
353         multiarch llround for PPC64.
354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
355         multiarch ceil for PPC64.
356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
357         multiarch ceilf for PPC64.
358
359 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
360
361         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
362         multiarch implementation.
363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
364         file.
365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
366         file.
367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
368         file.
369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
370         multiarch llround for PPC64.
371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
372         multiarch lround for PPC64.
373
374 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
375
376         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
377         multiarch implementation.
378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
381         file.
382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
385         multiarch isnan for PPC64.
386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
387         multiarch isnanf for PPC64.
388
389 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
390
391         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
392         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
393         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
394         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
395         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
397
398 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
399
400         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
401         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
402         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
403         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
404
405 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
406
407         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
408         multiarch implementations.
409         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
410         (__libc_ifunc_impl_list): Likewise.
411         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
412         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
413         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
414         multiarch stpcpy for PPC64.
415
416 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
417
418         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
419         multiarch implementations.
420         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
421         (__libc_ifunc_impl_list): Likewise.
422         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
423         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
424         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
425         multiarch strcpy for PPC64.
426
427 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
428
429         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
430         redefine function name.
431         (_wordcopy_fwd_dest_aligned): Likewise.
432         (_wordcopy_bwd_aligned): Likewise.
433         (_wordcopy_bwd_dest_aligned): Likewise.
434         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
435         multiarch implementations.
436         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
437         (__libc_ifunc_impl_list): Likewise.
438         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
439         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
440         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
441         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
442         multiarch wcscpy for PPC64.
443
444 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
445
446         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
447         multiarch implementations.
448         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
449         (__libc_ifunc_impl_list): Likewise.
450         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
451         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
452         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
453         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
454         multiarch wcscpy for PPC64.
455
456 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
457
458         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
459         multiarch implementations.
460         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
461         (__libc_ifunc_impl_list): Likewise.
462         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
463         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
464         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
465         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
466         multiarch wcsrchr for PPC64.
467
468 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
469
470         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
471         multiarch implementations.
472         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
473         (__libc_ifunc_impl_list): Likewise.
474         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
475         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
476         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
477         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
478         multiarch wcschr for PPC64.
479
480 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
481
482         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
483         multiarch implementations.
484         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
485         (__libc_ifunc_impl_list): Likewise.
486         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
487         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
488         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
489         multiarch strchrnul for PPC64.
490
491 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
492
493         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
494         implementations.
495         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
496         (__libc_ifunc_impl_list): Likewise.
497         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
498         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
499         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
500         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
501         strchr for PPC64.
502
503 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
504
505         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
506         implementations.
507         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
508         (__libc_ifunc_impl_list): Likewise.
509         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
510         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
511         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
512         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
513         strncmp for PPC64.
514
515 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
516
517         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
518         multiarch implementations.
519         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
520         (__libc_ifunc_impl_list): Likewise.
521         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
522         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
523         strncasecmp for PPC64.
524         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
525         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
526         multiarch strncasecmp_l for PPC64.
527
528 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
529
530         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
531         multiarch implementations.
532         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
533         (__libc_ifunc_impl_list): Likewise.
534         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
535         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
536         multiarch strcasecmp for PPC64.
537         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
538         file.
539         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
540         multiarch strcasecmp_l for PPC64.
541
542 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
543
544         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
545         implementations.
546         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
547         (__libc_ifunc_impl_list): Likewise.
548         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
549         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
550         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
551         strnlen for PPC64.
552
553 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
554
555         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
556         implementations.
557         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
558         (__libc_ifunc_impl_list): Likewise.
559         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
560         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
561         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
562         strlen for PPC64.
563
564 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
565
566         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
567         implementations.
568         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
569         (__libc_ifunc_impl_list): Likewise.
570         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
571         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
572         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
573         rawmemrchr for PPC64.
574
575 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
576
577         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
578         implementation.
579         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
580         (__libc_ifunc_impl_list): Likewise.
581         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
582         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
583         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
584         memrchr for PPC64.
585
586 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
587
588         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
589         implementation.
590         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
591         (__libc_ifunc_impl_list): Likewise.
592         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
593         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
594         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
595         memchr for PPC64.
596
597 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
598
599         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
600         implementation.
601         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
602         (__libc_ifunc_impl_list): Likewise.
603         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
604         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
605         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
606         mempcpy for PPC64.
607
608 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
609
610         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
611         avoid cretion of __bzero symbol.
612         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
613         Likewise.
614         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
615         Likewise.
616         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
617         Likewise.
618         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
619         multiarch implementations.
620         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
621         (__libc_ifunc_impl_list): Likewise.
622         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
623         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
624         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
625         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
626         bzero for PPC32.
627         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
628         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
629         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
630         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
631         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
632         memset for PPC64.
633         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
634
635 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
636
637         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
638         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
639         implementations.
640         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
641         (__libc_ifunc_impl_list): Likewise.
642         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
643         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
644         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
645         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
646         memcmp for PPC64.
647
648 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
649
650         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
651         multiarch for POWER/PPC64.
652         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
653         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
654         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
655         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
656         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
657         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
658         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
659         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
660         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
661         memcpy for PPC64.
662
663 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
664
665         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
666         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
667         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
668         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
669         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
670         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
671         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
672         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
673         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
674         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
675         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
676         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
677         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
678         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
679         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
687
688 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
689
690         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
691
692 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
693
694         * benchtests/Makefile (bench): Add exp2 and log2.
695         (LDLIBS-bench-exp2): Add -lm.
696         (LDLIBS-bench-log2): Likewise.
697         * benchtests/exp2-inputs: New inputs file.
698         * benchtests/log2-inputs: New inputs file.
699         * benchtests/log-inputs: Add new inputs.
700         * benchtests/tan-inputs: Likewise.
701
702 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
703
704         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
705         definition...
706         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2,
707         csloww1, csloww2): ... from here.
708
709         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
710         instead of structures.
711         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
712         (POLYNOMIAL): Likewise.
713         (TAYLOR_SLOW): Likewise.
714         (__sin): Likewise.
715         (__cos): Likewise.
716         (slow1): Likewise.
717         (slow2): Likewise.
718         (sloww): Likewise.
719         (sloww1); Likewise.
720         (sloww2): Likewise.
721         (bsloww1): Likewise.
722         (bsloww2): Likewise.
723         (cslow2): Likewise.
724         (csloww): Likewise.
725         (csloww1): Likewise.
726         (csloww2): Likewise.
727
728 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
729
730         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
731         (__malloc_assert, __libc_realloc, __libc_calloc,
732         _int_realloc): Expand MALLOC_COPY and MALLOC_ZERO to
733         memcpy and memset.
734         * malloc/hooks.c (realloc_check): Likewise.
735
736 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
737
738         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
739         * malloc/arena.c: Remove PER_THREAD conditional.
740         [!PER_THREAD]: Remove code.
741         (ptmalloc_unlock_all2): Likewise.
742         (ptmalloc_init): Likewise.
743         (_int_new_arena): Likewise.
744         (arena_get2): Likewise.
745         * malloc/hooks.c (__malloc_get_state): Likewise.
746         (__malloc_set_state): Likewise.
747         * malloc/malloc.c: Likewise.
748         (struct malloc_state): Likewise.
749         (struct malloc_par): Likewise.
750         (__libc_realloc): Likewise.
751         (__libc_mallopt): Likewise.
752
753 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
754
755         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
756
757 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
758
759         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
760         macro to a function.  Check for zero perturb_byte.
761         (_int_malloc, _int_free): Remove zero perturb_byte checks.
762
763 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
764
765         * malloc/malloc.c: (force_reg): Remove.
766         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc,
767         _mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
768         force_reg by atomic_forced_read.
769         * malloc/arena.c (ptmalloc_init): Likewise.
770         * malloc/hooks.c (top_check): Likewise.
771
772 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
773
774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
775
776 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
777
778         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
779
780 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
781
782         * math/auto-libm-test-in: Add tests of lgamma.
783         * math/auto-libm-test-out: Regenerated.
784         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
785         (M_LOG_2_SQRT_PIl): Likewise.
786         (lgamma_test_data): Use AUTO_TESTS_f_f1.
787         * math/gen-auto-libm-tests.c (func_calc_method): Add value
788         mpfr_f_f1.
789         (func_calc_desc): Add mpfr_f_f1 union field.
790         (ARGS1): New macro.
791         (ARGS2): Likewise.
792         (ARGS3): Likewise.
793         (ARGS4): Likewise.
794         (RET1): Likewise.
795         (RET2): Likewise.
796         (CALC): Likewise.
797         (FUNC): Likewise.
798         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
799         (test_functions): Add lgamma.
800         (calc_generic_results): Handle mpfr_f_f1.
801         * sysdeps/i386/fpu/libm-test-ulps: Update.
802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
803
804 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
805
806         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
807         __mpn_add_n for PowerPC64/POWER7.
808         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
809         __mpn_sub_n for PowerPC64/POWER7.
810
811 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
812
813         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
814         __mpn_addmul_1 for PowerPC64.
815         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
816         __mpn_submul_1 for PowerPC64.
817         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
818         for PowerPC64.
819         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
820         for PowerPC64.
821
822 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
823
824         [BZ #15089]
825         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
826
827 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
828
829         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
830
831 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
832
833         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
834         add multiarch folders.
835         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
836         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
837         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
838         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
839         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
840         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
841         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
842         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
843         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
844         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
845         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
852
853 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
854
855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
856         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
858         New file.
859         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
860         New file.
861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
862         multiarch __ieee754_hypot for PowerPC32.
863         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
864         New file.
865         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
866         New file.
867         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
868         multiarch __ieee754_hypotf for PowerPC32.
869
870 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
871
872         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
873         long_double_symbol only if __logbl is defined.
874         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
875         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
876         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
877         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
878         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
879         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
880         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
881         path for implementation.
882         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
883         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
885         logb, and logbl multiarch implementations for PowerPC32.
886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
887         file.
888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
889         file.
890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
891         multiarch logb for PowerPC32.
892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
893         file.
894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
895         file.
896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
897         multiarch logbf for PowerPC32.
898         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
900         file.
901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
902         multiarch logbl implementation for PowerPC32.
903
904 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
905
906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
907         and modff multiarch implementations.
908         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
909         New file.
910         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
911         New file.
912         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
913         multiarch modf for PowerPC32.
914         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
915         New file.
916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
917         New file.
918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
919         multiarch modff for PowerPC32.
920
921 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
922
923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
924         and lrintf multiarch implementations.
925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
926         New file.
927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
928         New file.
929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
930         multiarch lrint for PowerPC32.
931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
932         file: multiarch lrintf for PowerPC32.
933
934 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
935
936         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
937         and lroundf multiarch implementations.
938         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
939         New file.
940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
941         New file.
942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
943         New file.
944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
945         multiarch lround for PowerPC32.
946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
947         file: multiarch lroundf for PowerPC32.
948
949 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
950
951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
952         copysign and copysignf multiarch implementations.
953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
954         New file.
955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
956         New file.
957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
958         file: multiarch copysign for PowerPC32.
959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
960         file: multiarch copysignf for PowerPC32.
961
962 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
963
964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
965         and truncf multiarch implementations.
966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
967         New file.
968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
969         file.
970         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
971         multiarch trunc for PowerPC32.
972         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
973         New file.
974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
975         New file.
976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
977         multiarch truncf for PowerPC32.
978
979 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
980
981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
982         and roundf multiarch implementations.
983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
984         New file.
985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
986         file.
987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
988         multiarch round for PowerPC32.
989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
990         New file.
991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
992         New file.
993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
994         multiarch roundf for PowerPC32.
995
996 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
997
998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
999         and floorf multiarch implementations.
1000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1001         New file.
1002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
1003         file.
1004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
1005         multiarch floor for PowerPC32.
1006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1007         New file.
1008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1009         New file.
1010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
1011         multiarch floorf for PowerPC32.
1012
1013 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1014
1015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
1016         and ceilf multiarch implementations.
1017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1018         New file.
1019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
1020         file.
1021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
1022         multiarch ceil for PowerPC32.
1023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1024         New file.
1025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
1026         file.
1027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
1028         multiarch ceilf for PowerPC32.
1029
1030 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1031
1032         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
1033         is defined.
1034         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
1035         FINITEF is defined.
1036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
1037         and finitef multiarch implementations.
1038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
1039         New file.
1040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
1041         file.
1042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
1043         multiarch finite for PowerPC32.
1044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
1045         New file.
1046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
1047         file: multiarch finitef for PowerPC32.
1048
1049 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1050
1051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
1052         and isinff multiarch implementations.
1053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
1054         file.
1055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
1056         file.
1057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
1058         multiarch isinf for PowerPC32.
1059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
1060         New file.
1061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
1062         multiarch isinff for PowerPC32.
1063
1064 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1065
1066         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
1067         alias when __isnan is defined.
1068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
1069         and isnanf multiarch implementations.
1070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
1071         file.
1072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
1073         file.
1074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
1075         file.
1076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
1077         file.
1078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
1079         multiarch isnan for PowerPC32.
1080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
1081         New file.
1082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
1083         New file.
1084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
1085         multiarch isnanf for PowerPC32.
1086
1087 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1088
1089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
1090         and sqrtf multiarch implementations.
1091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
1092         file.
1093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
1094         file.
1095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
1096         multiarch sqrt for PowerPC32.
1097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
1098         file.
1099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
1100         file.
1101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
1102         multiarch sqrtf for PowerPC32.
1103
1104 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1105
1106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
1107         and llroundf multiarch implementations.
1108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
1109         New file.
1110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
1111         New file.
1112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
1113         New file.
1114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
1115         file: multiarch llround for PowerPC32.
1116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
1117         file: multiarch llroundf for PowerPC32.
1118
1119 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1120
1121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
1122         multiarch PowerPC32 fpu implementations.
1123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
1124         New file.
1125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
1126         New file.
1127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
1128         multiarch llrint for PowerPC32.
1129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
1130         New file.
1131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
1132         New file.
1133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
1134         file.
1135
1136 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1137
1138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
1139
1140 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1141
1142         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
1143         file.
1144         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
1145         file.
1146         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
1147         file.
1148         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
1149         multiarch wordcopy for PPC32.
1150         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1151         wordcopy objects.
1152         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1153         (__libc_ifunc_impl_list): Likewise.
1154         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
1155         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
1156         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
1157         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
1158         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
1159         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
1160
1161 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1162
1163         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
1164         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
1165         file.
1166         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
1167         file.
1168         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
1169         file.
1170         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
1171         multiarch wcscpy for PPC32.
1172         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
1173         multiarch objects.
1174         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1175         (__libc_ifunc_impl_list): Likewise.
1176         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1177         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1178         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
1179         sysdeps/powerpc/power6/wcscpy.c.
1180
1181 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1182
1183         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
1184         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
1185         file.
1186         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
1187         file.
1188         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
1189         file.
1190         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
1191         multiarch wcsrchr for PPC32.
1192         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1193         multiarch objects.
1194         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1195         (__libc_ifunc_impl_list): Likewise.
1196         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
1197         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
1198         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
1199         sysdeps/powerpc/power6/wcsrchr.c.
1200
1201 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1202
1203         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
1204         file.
1205         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
1206         file.
1207         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
1208         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
1209         multiarch wcschr for PPc32.
1210         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
1211         multiarch objects.
1212         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1213         (__libc_ifunc_impl_list): Likewise.
1214         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
1215         * sysdeps/powerpc/power6/wcschr.c: ... to here.
1216         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
1217         sysdeps/powerpc/power6/wcschr.c.
1218
1219 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1220
1221         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
1222         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
1223         file.
1224         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
1225         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
1226         file: multiarch strchr for PPC32.
1227         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
1228         multiarch objects.
1229         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1230         (__libc_ifunc_impl_list): Likewise.
1231
1232 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1233
1234         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
1235         name.
1236         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
1237         file.
1238         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
1239         file.
1240         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
1241         multiarch strchrnul for PPC32.
1242         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
1243         multiarch objects.
1244         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1245         (__libc_ifunc_impl_list): Likewise.
1246
1247 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1248
1249         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
1250         file.
1251         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
1252         multiarch strncasecmp for PPC32.
1253         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
1254         file.
1255         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
1256         multiarch strncasecmp_l for PPC32.
1257         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
1258         strncasecmp multiarch objects.
1259         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1260         (__libc_ifunc_impl_list): Likewise.
1261
1262 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1263
1264         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
1265         file.
1266         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
1267         multiarch strncasecmp for PPC32.
1268         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
1269         New file.
1270         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
1271         multiarch strcasecmp_l for PPC32.
1272         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
1273         multiarch objects.
1274         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1275         (__libc_ifunc_impl_list): Likewise.
1276
1277 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1278
1279         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
1280         file.
1281         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
1282         file.
1283         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
1284         multiarch strncmp for PPC32.
1285         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
1286         multiarch objects.
1287         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1288         (__libc_ifunc_impl_list): Likewise.
1289
1290 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1291
1292         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
1293         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
1294         file.
1295         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
1296         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
1297         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
1298         multiarch objects.
1299         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1300         (__libc_ifunc_impl_list): Likewise.
1301
1302 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1303
1304         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
1305         file.
1306         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
1307         file.
1308         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
1309         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
1310         multiarch objects.
1311         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1312         (__libc_ifunc_impl_list): Likewise.
1313
1314 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1315
1316         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
1317         file.
1318         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
1319         file.
1320         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
1321         multiarch rawmemchr for PPC32.
1322         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
1323         multiarch objects.
1324         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1325         (__libc_ifunc_impl_list): Likewise.
1326
1327 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1328
1329         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
1330         file.
1331         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
1332         file.
1333         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
1334         file: memrchr multiarch for PPC32.
1335         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
1336         multiarch objects.
1337         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
1338         (__libc_ifunc_impl_list): Likewise.
1339
1340 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1341
1342         * string/memchr.c (__memchr): Using macro to redefine symbol name.
1343         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
1344         file.
1345         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
1346         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
1347         multiarch memchr for PPC32.
1348         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
1349         multiarch objects.
1350         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1351         (__libc_ifunc_impl_list): Likewise.
1352
1353 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1354
1355         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
1356         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
1357         file.
1358         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
1359         file.
1360         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
1361         file: multiarch mempcpy for PPC32.
1362         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
1363         multiarch objects.
1364         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1365         (__libc_ifunc_impl_list): Likewise.
1366
1367 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1368
1369         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
1370         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
1371         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
1372         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
1373         multiarch bzero for PPC32.
1374         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
1375         file.
1376         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
1377         file.
1378         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
1379         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
1380         file: multiarch memset for PPC32.
1381         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
1382         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
1383         memset multiarch objects.
1384         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1385         (__libc_ifunc_impl_list): Likewise.
1386
1387 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1388
1389         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
1390         file.
1391         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
1392         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
1393         memcmp for PPC32.
1394         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
1395         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
1396         multiarch objects.
1397         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1398         (__libc_ifunc_impl_list): Likewise.
1399
1400 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1401
1402         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
1403         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
1404         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
1405         file.
1406         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
1407         file.
1408         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
1409         file.
1410         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
1411         multiarch memcpy for PPC32.
1412         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
1413         multiarch objects.
1414         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
1415         (__libc_ifunc_impl_list): Likewise.
1416
1417 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1418
1419         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
1420         support multiarch for POWER/PPC32.
1421         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1422         Likewise.
1423         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
1424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
1425         Implies file to make multiarch folder appers before the fpu and
1426         default folder for power4 configuration.
1427
1428 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
1429
1430         * scripts/bench.pl: Append volatile keyword to type.
1431
1432 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1433
1434         * sysdeps/sh/sotruss-lib.c: New file.
1435         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
1436
1437 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1438
1439         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1440
1441 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
1442
1443         [BZ #6810]
1444         * math/w_tgamma.c: Include <errno.h>.
1445         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
1446         * math/w_tgammaf.c: Include <errno.h>.
1447         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
1448         * math/w_tgammal.c: Include <errno.h>.
1449         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
1450         * math/auto-libm-test-in: Do not allow missing errno on tgamma
1451         underflow.  Add more tgamma tests.
1452         * math/auto-libm-test-out: Regenerated.
1453         * sysdeps/i386/fpu/libm-test-ulps: Update.
1454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1455
1456         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
1457         sin, sinh, tan, tanh, tgamma, y0 and y1.
1458         * math/auto-libm-test-out: Regenerated.
1459         * math/libm-test.inc (TEST_COND_x86_64): New macro.
1460         (TEST_COND_x86): Likewise.
1461         (M_E2l): Remove macro.
1462         (M_E3l): Likewise.
1463         (M_2_SQRT_PIl): Likewise.
1464         (M_SQRT_PIl): Likewise.
1465         (M_1_DIV_El): Likewise.
1466         (log_test_data): Use AUTO_TESTS_f_f.
1467         (log10_test_data): Likewise.
1468         (log1p_test_data): Likewise.
1469         (log2_test_data): Likewise.
1470         (sin_test_data): Likewise.
1471         (sin_tonearest_test_data): Likewise.
1472         (sin_towardzero_test_data): Likewise.
1473         (sin_downward_test_data): Likewise.
1474         (sin_upward_test_data): Likewise.
1475         (sinh_test_data): Likewise.
1476         (sinh_tonearest_test_data): Likewise.
1477         (sinh_towardzero_test_data): Likewise.
1478         (sinh_downward_test_data): Likewise.
1479         (sinh_upward_test_data): Likewise.
1480         (tan_test_data): Likewise.
1481         (tan_tonearest_test_data): Likewise.
1482         (tan_towardzero_test_data): Likewise.
1483         (tan_downward_test_data): Likewise.
1484         (tan_upward_test_data): Likewise.
1485         (tanh_test_data): Likewise.
1486         (tgamma_test_data): Likewise.
1487         (y0_test_data): Likewise.
1488         (y1_test_data): Likewise.
1489         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
1490         (special_real_inputs): Add pi/4.
1491         * sysdeps/i386/fpu/libm-test-ulps: Update.
1492         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1493
1494 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1495
1496         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
1497         "longjmp_target" static probes.
1498         (__longjmp): Rename to __longjmp_symbol.
1499         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1500         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
1501         on which longjmp to generate.
1502         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1503         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
1504         probe.
1505         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1506         (__sigjmp_save): Rename to __sigjmp_save_symbol.
1507         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1508         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
1509         and __sigjmp_save_symbol based on which sigsetjmp to generated.
1510         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
1511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
1512         __longjmp_symbol based on which __longjmp to generate.
1513         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
1514         probe.
1515         (setjmp): Rename to setjmp_symbol.
1516         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1517         (_setjmp): Rename to _setjmp_symbol.
1518         (__sigsetjmp): Rename to __sigsetjmp_symbol.
1519         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
1520         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
1521         which setjmp to generate.
1522         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
1523         "longjmp_target" static probes.
1524
1525 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1526
1527         * benchtests/README: Add note about output arguments.
1528         * benchtests/bench-sincos.c: Remove file.
1529         * benchtests/sincos-inputs: New file.
1530         * scripts/bench.pl: Identify output arguments and define
1531         static variables for them.
1532
1533         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
1534
1535         [BZ #15941]
1536         * Makefile (INSTALL): Add install-plain.texi as the primary
1537         dependency.
1538         * manual/install-plain.texi: New file.
1539         * manual/install.texi: Include node directive only for
1540         non-plaintext output.
1541
1542 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1543
1544         * stdlib/longlong.h: Update from GCC.
1545
1546         [BZ #6807]
1547         [BZ #15901]
1548         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
1549         * math/w_j0f.c (y0f): Likewise.
1550         * math/w_j0l.c (__y0l): Likewise.
1551         * math/w_j1.c (y1): Likewise.
1552         * math/w_j1f.c (y1f): Likewise.
1553         * math/w_j1l.c (__y1l): Likewise
1554         * math/w_jn.c (yn): Likewise.
1555         * math/w_jnf.c (ynf): Likewise.
1556         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
1557         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
1558         value for Bessel function domain errors outside _SVID_ mode.
1559         Adjust sign of return value for yn (negative integer, 0).
1560         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
1561         by zero in return for negative x and set sign appropriately for
1562         negative n.
1563         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
1564         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1565         * math/libm-test.inc (y0_test_data): Add more tests and adjust
1566         expectations in error cases.
1567         (y1_test_data): Likewise.
1568         (yn_test_data): Likewise.
1569         * sysdeps/i386/fpu/libm-test-ulps: Update.
1570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1571
1572 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1573
1574         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
1575         "64" to "64-v1".  Add "64-v2".
1576         (abi-64-options): Rename to ...
1577         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
1578         (abi-64-condition): Rename to ...
1579         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
1580         (abi-64-ld-soname): Rename to ...
1581         (abi-64-v1-ld-soname): ... this.
1582         (abi-64-v2-options): Define.
1583         (abi-64-v2-condition): Likewise.
1584         (abi-64-v2-ld-soname): Likewise.
1585         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
1586         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
1587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
1588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
1589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
1590
1591 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1592             Alan Modra  <amodra@gmail.com>
1593
1594         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
1595         New versions for use with the ELFv2 ABI.
1596         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
1597         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
1598         declaration.
1599         (struct La_ppc64v2_retval): Likewise.
1600         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
1601         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
1602         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
1603         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
1604         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
1605         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
1606         Do not save or restore CR.
1607         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
1608         (_dl_profile_resolve): Do no save or restore CR.  Support extended
1609         return values for ELFv2 ABI.  Fix location of FPR return registers.
1610         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
1611         updated values for _CALL_ELF == 2.
1612         (La_regs, La_retval, int_retval): Likewise.
1613
1614 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1615
1616         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
1617         (FRAME_MIN_SIZE_PARM): Likewise.
1618         (FRAME_BACKCHAIN): Likewise.
1619         (FRAME_CR_SAVE): Likewise.
1620         (FRAME_LR_SAVE): Likewise.
1621         (FRAME_TOC_SAVE): Likewise.
1622         (FRAME_PARM_SAVE): Likewise.
1623         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
1624         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
1625         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
1626         (call_mcount_parm_offset): New macro.
1627         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
1628         (PROF): Use symbolic stack frame offsets.
1629         (TAIL_CALL_SYSCALL_ERROR): Likewise.
1630         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
1631         Redefine in terms of FRAME_MIN_SIZE.
1632         (_dl_runtime_resolve): Use symbolic stack frame offsets.
1633         (_dl_profile_resolve): Likewise.  Update comment.
1634         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
1635         symbols stack frame offsets.
1636         (__sigsetjmp): Likewise.
1637         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1638         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
1639         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
1640         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
1641
1642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
1643         (FRAME_BACKCHAIN): Remove.
1644         (FRAME_CR_SAVE): Likewise.
1645         (FRAME_LR_SAVE): Likewise.
1646         (FRAME_COMPILER_DW): Likewise.
1647         (FRAME_LINKER_DW): Likewise.
1648         (FRAME_TOC_SAVE): Likewise.
1649         (FRAME_PARM_SAVE): Likewise.
1650         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
1651         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
1652         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
1653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
1654         (CHECK_SP): Use symbolic stack frame offsets.
1655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
1656         zone" instead of caller's parameter save area for temp storage.
1657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
1658         Likewise.  Also, use symbolic stack frame offsets.
1659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
1660         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
1661         our own stack frame instead of the caller's.
1662         (__socket): Use symbolic stack frame offsets.
1663
1664 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1665             Alan Modra  <amodra@gmail.com>
1666
1667         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
1668         Define.
1669         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK,
1670         PPC64_LOCAL_ENTRY_OFFSET): Define.
1671         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
1672         New function.
1673         (elf_machine_fixup_plt): Call it.
1674         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
1675         reloc arguments.
1676         (elf_machine_rela): Update call to elf_machine_plt_conflict.
1677         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
1678         _dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
1679         r2 before calling target.
1680
1681 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1682             Alan Modra  <amodra@gmail.com>
1683
1684         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
1685         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
1686         versions of macros to support ELFv2 ABI.
1687         (LOCALENTRY): New macro.
1688         (ENTRY, EALIGN): Use it.
1689         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
1690         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
1691         fall through into ENTRY entry point.
1692         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
1693         Only define if _CALL_ELF != 2.
1694
1695         (elf_machine_matches_host): Verify ABI version matches.
1696         (RTLD_START): Use LOCALENTRY.
1697         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
1698         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
1699         (PLT_ENTRY_WORDS): New macro.
1700         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
1701         (elf_machine_runtime_setup): Support ELFv2 ABI.
1702         (elf_machine_fixup_plt): Likewise.
1703         (elf_machine_plt_conflict): Likewise.
1704         (resolve_ifunc): Likewise.
1705         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
1706         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
1707         Likewise.
1708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1709         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
1710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1711         (makecontext): Support ELFv2 ABI.
1712         * elf/elf.h (EF_PPC64_ABI): Define.
1713
1714 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1715
1716         * sysdeps/powerpc/powerpc64/sysdep.h [ASSEMBLER] (PPC64_LOAD_FUNCPTR):
1717         New assembler macro.
1718         [ASSEMBLER] (ENTRY_1): Do not switch to .text section here ...
1719         [ASSEMBLER] (ENTRY): ... but instead here ...
1720         [ASSEMBLER] (EALIGN): ... and here.
1721         [!ASSEMBLER] (PPC64_LOAD_FUNCPTR): New macro.
1722         [!ASSEMBLER] (ENTRY_1): New macro; set up .opd entry.
1723         [!ASSEMBLER] (ENTRY_2): Use it.
1724         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
1725         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
1726         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve,
1727         _dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
1728         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
1729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
1730         Use PPC64_LOAD_FUNCPTR.
1731
1732 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1733
1734         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
1735
1736 2013-12-04  Alan Modra  <amodra@gmail.com>
1737
1738         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
1739         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
1740         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
1741         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
1742
1743         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
1744         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
1745         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
1746         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
1747         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
1748         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
1749
1750 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1751
1752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1753         (__makecontext): Fix incorrect CFI when backtracing out of
1754         context created via makecontext.
1755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
1756         (__setcontext): Fix incorrect CFI during switch to new context.
1757         (__novec_setcontext): Likewise.
1758
1759 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
1760
1761         [BZ #4772]
1762         * time/strptime_l.c (__strptime_internal): Allow modifiers
1763         in strptime.
1764         * time/tst-strptime.c (day_tests): Add testcase.
1765
1766
1767 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1768
1769         * scripts/bench.pl: Skip over blank lines.
1770
1771 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1772
1773         [BZ #926]
1774         * manual/time.texi (Calendar Time): Clarify what timezone functions
1775         use.
1776
1777 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1778
1779         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1780
1781 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
1782
1783         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
1784         implementation.
1785         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
1786         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
1787         * debug/memset_chk.c (__memset_chk): Likewise.
1788         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
1789         * debug/strncpy_chk.c: Likewise.
1790
1791 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
1792
1793         [BZ #15268]
1794         [BZ #15425]
1795         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
1796         (__ieee754_exp): For possibly underflowing results, check size of
1797         result and force underflow exception if required.
1798         * math/auto-libm-test-in: Add more tests of exp.
1799         * math/auto-libm-test-out: Regenerated.
1800         * sysdeps/i386/fpu/libm-test-ulps: Update.
1801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1802
1803         [BZ #16283]
1804         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
1805         * math/w_exp2f.c (__exp2f): Likewise.
1806         * math/w_exp2l.c (__exp2l): Likewise.
1807         * math/auto-libm-test-in: Do not allow missing errno on exp2
1808         underflow.
1809         * math/auto-libm-test-out: Regenerated.
1810
1811 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
1812
1813         [BZ #16274]
1814         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
1815         handle filename validation.
1816         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
1817         (do_open): Delete.
1818
1819 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
1820
1821         [BZ #6786]
1822         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
1823         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
1824         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
1825         <float.h>.
1826         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
1827         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
1828         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1829         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
1830         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1831         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
1832         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
1833         * math/auto-libm-test-in: Don't allow missing errno from erfc.
1834         Add more erfc tests.
1835         * math/auto-libm-test-out: Regenerated.
1836         * sysdeps/i386/fpu/libm-test-ulps: Update.
1837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1838
1839         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
1840         exp2, expm1, j0 and j1.
1841         * math/auto-libm-test-out: Regenerated.
1842         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
1843         (erfc_test_data): Likewise.
1844         (exp_test_data): Likewise.
1845         (exp_tonearest_test_data): Likewise.
1846         (exp_towardzero_test_data): Likewise.
1847         (exp_downward_test_data): Likewise.
1848         (exp_upward_test_data): Likewise.
1849         (exp10_test_data): Likewise.
1850         (exp2_test_data): Likewise.
1851         (expm1_test_data): Likewise.
1852         (j0_test_data): Likewise.
1853         (j1_test_data): Likewise.
1854         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
1855         (input_flag_type): Add flag_xfail_rounding.
1856         (input_flags): Add xfail-rounding.
1857         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
1858         (output_for_one_input_case): Handle flag_xfail_rounding.
1859         * sysdeps/i386/fpu/libm-test-ulps: Update.
1860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1861
1862 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
1863
1864         [BZ #16289]
1865         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
1866         division by 0.
1867
1868 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1869
1870         [BZ #16195]
1871         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1872         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
1873         (STAP_PROBE0): New macro.
1874         (STAP_PROBE1): Likewise.
1875         (STAP_PROBE2): Likewise.
1876         (STAP_PROBE3): Likewise.
1877         (STAP_PROBE4): Likewise.
1878
1879 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
1880
1881         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
1882
1883 2013-12-02  Steve Ellcey  <sellcey@mips.com>
1884
1885         * benchtests/Makefile (bench): Add sqrt.
1886         (LDLIBS-bench-sqrt): New.
1887         * benchtests/sqrt-input: New.
1888
1889 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
1890
1891         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
1892         (GAIH_EAI): Likewise.
1893         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
1894         (gaih_inet): Likewise.
1895         (getaddrinfo): Don't use GAIH_EAI.
1896
1897         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
1898         (struct gaih): Remove definition.
1899
1900 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1901
1902         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
1903         Use HERRNOP directly.
1904
1905 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1906
1907         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1908
1909 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
1910
1911         * math/gen-auto-libm-tests.c (test_functions): Add more
1912         single-argument functions.
1913         (special_fill_pi_2): New function.
1914         (special_fill_minus_pi_2): Likewise.
1915         (special_fill_pi_6): Likewise.
1916         (special_fill_minus_pi_6): Likewise.
1917         (special_fill_pi_3): Likewise.
1918         (special_fill_2pi_3): Likewise.
1919         (special_fill_e): Likewise.
1920         (special_fill_1_e): Likewise.
1921         (special_fill_e_minus_1): Likewise.
1922         (special_real_inputs): Add more special inputs.
1923         (output_for_one_input_case): Do not require ERANGE on underflow to
1924         zero if round-to-nearest result does not underflow to zero, unless
1925         exact results required.
1926         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
1927         atan, atanh, cbrt, cos and cosh.
1928         * math/auto-libm-test-out: Regenerated.
1929         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
1930         (acos_tonearest_test_data): Likewise.
1931         (acos_towardzero_test_data): Likewise.
1932         (acos_downward_test_data): Likewise.
1933         (acos_upward_test_data): Likewise.
1934         (acosh_test_data): Likewise.
1935         (asin_test_data): Likewise.
1936         (asin_tonearest_test_data): Likewise.
1937         (asin_towardzero_test_data): Likewise.
1938         (asin_upward_test_data): Likewise.
1939         (asinh_test_data): Likewise.
1940         (atan_test_data): Likewise.
1941         (atanh_test_data): Likewise.
1942         (cbrt_test_data): Likewise.
1943         (cos_test_data): Likewise.
1944         (cos_tonearest_test_data): Likewise.
1945         (cos_towardzero_test_data): Likewise.
1946         (cos_downward_test_data): Likewise.
1947         (cos_upward_test_data): Likewise.
1948         (cosh_test_data): Likewise.
1949         (cosh_tonearest_test_data): Likewise.
1950         (cosh_towardzero_test_data): Likewise.
1951         (cosh_downward_test_data): Likewise.
1952         (cosh_upward_test_data): Likewise.
1953         * sysdeps/i386/fpu/libm-test-ulps: Update.
1954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1955
1956 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
1957
1958         [BZ #6787]
1959         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
1960         * math/w_exp10f.c (__exp10f): Likewise.
1961         * math/w_exp10l.c (__exp10l): Likewise.
1962         * math/libm-test.inc (exp10_test_data): Add more tests and expect
1963         errno settings in existing tests.
1964
1965         [BZ #14032]
1966         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
1967         precision control set to double precision.
1968         * sysdeps/i386/fpu/w_sqrt.c: New file.
1969         * math/auto-libm-test-in: Add more tests.
1970         * math/auto-libm-test-out: Update.
1971
1972         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
1973         (sqrt_test_tonearest): New function.
1974         (sqrt_towardzero_test_data): New variable.
1975         (sqrt_test_towardzero): New function.
1976         (sqrt_downward_test_data): New variable.
1977         (sqrt_test_downward): New function.
1978         (sqrt_upward_test_data): New variable.
1979         (sqrt_test_upward): New function.
1980         (main): Call the new functions.
1981
1982         * math/gen-auto-libm-tests.c: New file.
1983         * math/auto-libm-test-in: Likewise.
1984         * math/auto-libm-test-out: New generated file.
1985         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
1986         variables.
1987         (%beautify): Add generated representations of zero.
1988         (top level): Set $auto_input and call parse_auto_input.
1989         (beautify): Remove trailing "f" from hex float constants.
1990         (parse_args): Handle XFAIL_TEST.
1991         (convert_condition): New function.
1992         (or_value): Likewise.
1993         (or_cond_value): Likewise.
1994         (generate_testfile): Handle AUTO_TESTS_* lines.
1995         (parse_auto_input): New function.
1996         * math/libm-test.inc (XFAIL_TEST): New macro.
1997         (ERRNO_UNCHANGED): Update value.
1998         (ERRNO_EDOM): Likewise.
1999         (ERRNO_ERANGE): Likewise.
2000         (IGNORE_RESULT): Likewise.
2001         (TEST_COND_flt_32): New macro.
2002         (TEST_COND_dbl_64): Likewise.
2003         (TEST_COND_ldbl_96_intel): Likewise.
2004         (TEST_COND_ldbl_96_m68k): Likewise.
2005         (TEST_COND_ldbl_128): Likewise.
2006         (TEST_COND_ldbl_128ibm): Likewise.
2007         (TEST_COND_long32): Likewise.
2008         (TEST_COND_long64): Likewise.
2009         (TEST_COND_before_rounding): Likewise.
2010         (TEST_COND_after_rounding): Likewise.
2011         (enable_test): Handle XFAIL_TEST flag.
2012         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
2013         with finite results.
2014         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
2015         auto-libm-test-out.
2016
2017 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2018             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2019
2020         [BZ #16214]
2021         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
2022         __tls_get_addr_internal instead of __tls_get_offset in order to
2023         avoid GOT pointer dependency.  Make rtld export
2024         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
2025         __tls_get_addr since we are a __tls_get_offset platform.
2026         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
2027         GOT pointer being set up before.
2028         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
2029
2030 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
2031
2032         * manual/math.texi (Errors in Math Functions): Document accuracy
2033         goals.
2034
2035         [BZ #15004]
2036         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
2037         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
2038         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2039         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2040         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2041         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2042         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2043         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2044         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2045         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2046         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2047         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2048         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2049         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2050         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2051         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2052
2053         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
2054         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
2055         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
2056         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
2057         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
2058         Likewise.
2059         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
2060         Likewise.
2061         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
2062         Likewise.
2063         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
2064         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
2065         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
2066         atomic-feupdateenv and flt-rounds.
2067         * sysdeps/powerpc/nofpu/Versions (libc): Add
2068         __atomic_feholdexcept, __atomic_feclearexcept,
2069         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
2070         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
2071         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
2072         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
2073         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
2074         here.
2075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
2076         Update.
2077
2078         * manual/arith.texi (FP Exceptions): Document that exceptions may
2079         not be raised when matherr is used.
2080         (Math Error Reporting): Document overflow in directed rounding
2081         modes.  Document that errno may not be set when finite values are
2082         returned on overflow.  Document intent to set errno on underflow
2083         only for underflow to zero.
2084
2085         [BZ #16271]
2086         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
2087         round-to-nearest then adjust result for other rounding modes.
2088         * include/fenv.h (fegetround): Use libm_hidden_proto.
2089         * math/fegetround.c (fegetround): Use libm_hidden_def.
2090         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
2091         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
2092         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2093         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
2094         Likewise.
2095         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
2096         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
2097         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
2098         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
2099
2100 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2101
2102         [BZ #16077]
2103         * nss/Versions (libnss_files): Add
2104         _nss_files_gethostbyname3_r.
2105         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
2106         New function.
2107         (HOST_DB_LOOKUP): Remove macro.
2108         (_nss_files_gethostbyname_r): Implement function without the
2109         HOST_DB_LOOKUP macro.
2110         (_nss_files_gethostbyname2_r): Likewise.
2111
2112 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
2113
2114         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
2115
2116 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
2117
2118         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
2119         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
2120         warning.
2121
2122 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2123
2124         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
2125         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
2126         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
2127         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
2128         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
2129         __fe_nomask_env_priv and attribute_hidden.
2130         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
2131         (libc_feupdateenv_test_ppc): Likewise.
2132         (libc_feresetround_ppc): Likewise.
2133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2134         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
2135         compat_symbol macro.
2136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2137         (__fe_nomask_env): Likewise.
2138         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
2139
2140 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2141
2142         * string/Makefile: Remove ifunc tests.
2143         * string/test-string.h: Define TEST_IFUNC.
2144         * string/test-bcopy-ifunc.c: Remove.
2145         * string/test-bzero-ifunc.c: Likewise.
2146         * string/test-memccpy-ifunc.c: Likewise.
2147         * string/test-memchr-ifunc.c: Likewise.
2148         * string/test-memcmp-ifunc.c: Likewise.
2149         * string/test-memcpy-ifunc.c: Likewise.
2150         * string/test-memmem-ifunc.c: Likewise.
2151         * string/test-memmove-ifunc.c: Likewise.
2152         * string/test-mempcpy-ifunc.c: Likewise.
2153         * string/test-memrchr-ifunc.c: Likewise.
2154         * string/test-memset-ifunc.c: Likewise.
2155         * string/test-rawmemchr-ifunc.c: Likewise.
2156         * string/test-stpcpy-ifunc.c: Likewise.
2157         * string/test-stpncpy-ifunc.c: Likewise.
2158         * string/test-strcasecmp-ifunc.c: Likewise.
2159         * string/test-strcasestr-ifunc.c: Likewise.
2160         * string/test-strcat-ifunc.c: Likewise.
2161         * string/test-strchr-ifunc.c: Likewise.
2162         * string/test-strchrnul-ifunc.c: Likewise.
2163         * string/test-strcmp-ifunc.c: Likewise.
2164         * string/test-strcpy-ifunc.c: Likewise.
2165         * string/test-strcspn-ifunc.c: Likewise.
2166         * string/test-strlen-ifunc.c: Likewise.
2167         * string/test-strncasecmp-ifunc.c: Likewise.
2168         * string/test-strncat-ifunc.c: Likewise.
2169         * string/test-strncmp-ifunc.c: Likewise.
2170         * string/test-strncpy-ifunc.c: Likewise.
2171         * string/test-strnlen-ifunc.c: Likewise.
2172         * string/test-strpbrk-ifunc.c: Likewise.
2173         * string/test-strrchr-ifunc.c: Likewise.
2174         * string/test-strspn-ifunc.c: Likewise.
2175         * string/test-strstr-ifunc.c: Likewise.
2176
2177 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2178
2179         * benchtests/Makefile: Remove ifunc tests.
2180         * benchtests/bench-string.h: Define TEST_IFUNC.
2181         * benchtests/bench-bcopy-ifunc.c: Remove.
2182         * benchtests/bench-bzero-ifunc.c: Likewise.
2183         * benchtests/bench-memccpy-ifunc.c: Likewise.
2184         * benchtests/bench-memchr-ifunc.c: Likewise.
2185         * benchtests/bench-memcmp-ifunc.c: Likewise.
2186         * benchtests/bench-memcpy-ifunc.c: Likewise.
2187         * benchtests/bench-memmem-ifunc.c: Likewise.
2188         * benchtests/bench-memmove-ifunc.c: Likewise.
2189         * benchtests/bench-mempcpy-ifunc.c: Likewise.
2190         * benchtests/bench-memrchr-ifunc.c: Likewise.
2191         * benchtests/bench-memset-ifunc.c: Likewise.
2192         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
2193         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
2194         * benchtests/bench-stpcpy-ifunc.c: Likewise.
2195         * benchtests/bench-stpncpy-ifunc.c: Likewise.
2196         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
2197         * benchtests/bench-strcasestr-ifunc.c: Likewise.
2198         * benchtests/bench-strcat-ifunc.c: Likewise.
2199         * benchtests/bench-strchr-ifunc.c: Likewise.
2200         * benchtests/bench-strchrnul-ifunc.c: Likewise.
2201         * benchtests/bench-strcmp-ifunc.c: Likewise.
2202         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
2203         * benchtests/bench-strcpy-ifunc.c: Likewise.
2204         * benchtests/bench-strcspn-ifunc.c: Likewise.
2205         * benchtests/bench-strlen-ifunc.c: Likewise.
2206         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
2207         * benchtests/bench-strncat-ifunc.c: Likewise.
2208         * benchtests/bench-strncmp-ifunc.c: Likewise.
2209         * benchtests/bench-strncpy-ifunc.c: Likewise.
2210         * benchtests/bench-strnlen-ifunc.c: Likewise.
2211         * benchtests/bench-strpbrk-ifunc.c: Likewise.
2212         * benchtests/bench-strrchr-ifunc.c: Likewise.
2213         * benchtests/bench-strsep-ifunc.c: Likewise.
2214         * benchtests/bench-strspn-ifunc.c: Likewise.
2215         * benchtests/bench-strstr-ifunc.c: Likewise.
2216
2217 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2218
2219         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
2220
2221 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
2222
2223         * resolv/netdb.h: Use __glibc_reserved instead __unused.
2224         * rt/aio.h: Likewise.
2225         * sysdeps/gnu/bits/utmp.h: Likewise.
2226         * sysdeps/gnu/bits/utmpx.h: Likewise.
2227         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
2228         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
2229         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
2230         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
2231         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2232         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2233         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
2234         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
2235         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
2236         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
2237         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
2238         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2239         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
2241         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
2242         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
2243         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
2244         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
2245         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2246         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2247         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
2248         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
2249         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
2250         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
2251         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2252         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2253         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
2254         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
2255         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
2256         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2257         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2258         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
2259         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
2260         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
2261         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
2262         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
2263         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
2264         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
2265         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2266         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
2267         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2268         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2269
2270 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
2271
2272         [BZ #16245]
2273         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
2274         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
2275
2276 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
2277
2278         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
2279         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
2280         Likewise.
2281
2282 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2283
2284         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2285         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
2286         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
2287         (__fesetround): Remove define.
2288         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
2289         rounding and exceptions handling.
2290         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
2291         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
2292         (__fe_nomask_env): Likewise.
2293         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
2294         __fegetround instead of fegetround.
2295         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
2296         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
2297
2298 2013-11-21  Roland McGrath  <roland@hack.frob.com>
2299
2300         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
2301         it's there.
2302
2303         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
2304
2305 2013-11-21  Meador Inge  <meadori@codesourcery.com>
2306
2307         [BZ #11157]
2308         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
2309         (encrypt_r): Likewise.
2310         * malloc/obstack.h (obstack_free): Likewise.
2311         * posix/unistd.h (encrypt): Likewise.
2312
2313 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
2314
2315         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
2316         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
2317         DL_CALL_DT_FINI() that call the functions directly.
2318         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
2319         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
2320         * elf/dl-fini.c: Likewise.
2321
2322 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
2323
2324         * malloc/hooks.c (memalign_check): Add alignment rounding.
2325         * malloc/malloc.c (_mid_memalign): New function.
2326         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
2327         Implement by calling _mid_memalign.
2328         * manual/probes.texi (Memory Allocation Probes): Remove
2329         memory_valloc_retry and memory_pvalloc_retry.
2330
2331 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2332
2333         * locale/programs/locarchive.c (open_archive): Add const
2334         qualifier to ARCHIVEFNAME and copy default fname to
2335         DEFAULT_FNAME.
2336
2337         [BZ #15601]
2338         * libio/tst-widetext.input: Rename Oriya to Odia.
2339         * locale/iso-639.def: Likewise.
2340
2341         * manual/probes.texi (Mathematical Function Probes): Add
2342         documentation for sin, cos, asin and acos probes.
2343         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
2344         (__sin32): Add slowasin probe.
2345         (__cos32): Add slowacos probe.
2346         (__mpsin): Add slowsin probe.
2347         (__mpcos): Add slowcos probe.
2348
2349 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2350
2351         [BZ #15483]
2352         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
2353         thread-local __sim_exceptions_thread and global
2354         __sim_exceptions_global.
2355         (__sim_disabled_exceptions): Change to thread-local
2356         __sim_disabled_exceptions_thread and global
2357         __sim_disabled_exceptions_global.
2358         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2359         and global __sim_round_mode_global.
2360         (__simulate_exceptions): Use thread-local floating-point state and
2361         set global state from it as needed.
2362         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
2363         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
2364         __sim_round_mode_thread.
2365         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
2366         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
2367         and global __sim_exceptions_global.
2368         (__sim_disabled_exceptions): Change to thread-local
2369         __sim_disabled_exceptions_thread and global
2370         __sim_disabled_exceptions_global.
2371         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
2372         and global __sim_round_mode_global.
2373         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
2374         (SIM_SET_GLOBAL): Likewise.
2375         * sysdeps/powerpc/soft-fp/sfp-machine.h
2376         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
2377         __sim_round_mode_thread.
2378         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
2379         __sim_disabled_exceptions_thread.
2380         (__sim_exceptions): Change to __sim_exceptions_thread.
2381         (__sim_disabled_exceptions): Change to
2382         __sim_disabled_exceptions_thread.
2383         (__sim_round_mode): Change to __sim_round_mode_thread.
2384         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
2385         thread-local floating-point state and set global state from it as
2386         needed.
2387         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
2388         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
2389         (__sim_disabled_exceptions): Remove extern declaration.
2390         (feenableexcept): Use thread-local floating-point state and set
2391         global state from it as needed.
2392         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
2393         extern declaration.
2394         (__sim_disabled_exceptions): Likewise.
2395         (__sim_round_mode): Likewise.
2396         (__fegetenv): Use thread-local floating-point state.
2397         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
2398         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
2399         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
2400         floating-point state and set global state from it as needed.
2401         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
2402         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
2403         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
2404         Likewise.
2405         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
2406         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
2407         Likewise.
2408         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
2409         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
2410         Use __sim_round_mode_thread.
2411         * math/test-fenv-tls.c: New file.
2412         * math/Makefile (tests): Add test-fenv-tls.
2413         ($(objpfx)test-fenv-tls): Depend on
2414         $(common-objpfx)nptl/libpthread.so.
2415
2416 2013-11-19  Andreas Schwab  <schwab@suse.de>
2417
2418         * locale/programs/locale.c (show_info): Decode wordarray elements.
2419         * locale/categories.def (LC_MONETARY): Add element for
2420         _NL_MONETARY_CRNCYSTR.
2421         * locale/C-monetary.c (conversion_rate): New variable.
2422         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
2423         element.
2424
2425 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
2426
2427         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
2428         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
2429
2430 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
2431
2432         * elf/Makefile (tst-auxv): New test.
2433         * elf/tst-auxv.c: New
2434         * elf/rtld.c (dl_main): Adjust AT_EXECFN
2435
2436 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
2437
2438         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
2439         (hidden_proto): Caller changed.
2440         (hidden_tls_proto): New macro.
2441         (libc_hidden_tls_proto): Likewise.
2442         (rtld_hidden_tls_proto): Likewise.
2443         (libm_hidden_tls_proto): Likewise.
2444         (libresolv_hidden_tls_proto): Likewise.
2445         (librt_hidden_tls_proto): Likewise.
2446         (libdl_hidden_tls_proto): Likewise.
2447         (libnss_files_hidden_tls_proto): Likewise.
2448         (libnsl_hidden_tls_proto): Likewise.
2449         (libnss_nisplus_hidden_tls_proto): Likewise.
2450         (libutil_hidden_tls_proto): Likewise.
2451
2452 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
2453
2454         [BZ #10253]
2455         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
2456         (decompose_rpath): Defer expansion to fillin_rpath.
2457         (_dl_init_paths): Pass linkmap to fillin_rpath.
2458
2459 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2460
2461         * benchtests/Makefile: Add strsep.
2462         * benchtests/bench-strsep.c: New file: strsep benchtest.
2463         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
2464
2465 2013-11-18  Andreas Schwab  <schwab@suse.de>
2466
2467         * locale/programs/locale.c (show_info) [case byte]: Check for
2468         '\377' instead of '\177'.
2469         * locale/C-monetary.c (not_available): Always use "\377".
2470         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
2471         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
2472         detect unavailable sign_posn locale elements.
2473         * locale/localeconv.c (__localeconv): For grouping and
2474         mon_grouping handle "\177" and "\377" like no grouping.
2475         (INT_ELEM): New macro.  Use it to set all numeric members.
2476         * locale/programs/ld-monetary.c (monetary_read)
2477         <tok_mon_grouping>: Normalize single -1 to the empty string.
2478         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
2479         Likewise.
2480
2481 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
2482
2483         [BZ #16055]
2484         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
2485         when we match (nil).
2486         * stdio-common/tst-sscanf.c (struct test): Add testcase.
2487
2488 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
2489
2490         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
2491         (NO_TEST_INLINE): Update value.
2492         (ERRNO_UNCHANGED): Likewise.
2493         (ERRNO_EDOM): Likewise.
2494         (ERRNO_ERANGE): Likewise.
2495         (IGNORE_RESULT): Likewise.
2496         (check_float_internal): Check signs of NaN results if
2497         TEST_NAN_SIGN used.
2498         (check_complex): Pass TEST_NAN_SIGN flag through to second
2499         check_float_internal call.
2500         (copysign_test_data): Add tests with quiet NaNs as second
2501         argument.  Use TEST_NAN_SIGN.
2502         (fabs_test_data): Add test of negative quiet NaN argument.  Use
2503         TEST_NAN_SIGN.
2504         (signbit_test_data): Add tests of quiet NaN argument.
2505         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
2506
2507         * math/gen-libm-test.pl (show_exceptions): Take extra argument
2508         $ignore_result.
2509         (parse_args): Handle function results specified as IGNORE.
2510         * math/libm-test.inc (IGNORE_RESULT): New macro.
2511         (check_float_internal): Do not check numerical result if flag
2512         IGNORE_RESULT set.
2513         (check_complex): Pass through IGNORE_RESULT to second
2514         check_float_internal call.
2515         (check_int): Do not check numerical result if flag IGNORE_RESULT
2516         set.
2517         (check_long): Likewise.
2518         (check_bool): Likewise.
2519         (check_longlong): Likewise.
2520         (lrint_test_data): Add tests of infinite and NaN arguments.
2521         (lrint_tonearest_test_data): Likewise.
2522         (lrint_towardzero_test_data): Likewise.
2523         (lrint_downward_test_data): Likewise.
2524         (lrint_upward_test_data): Likewise.
2525         (llrint_test_data): Likewise.
2526         (llrint_tonearest_test_data): Likewise.
2527         (llrint_towardzero_test_data): Likewise.
2528         (llrint_downward_test_data): Likewise.
2529         (llrint_upward_test_data): Likewise.
2530         (lround_test_data): Likewise.
2531         (llround_test_data): Likewise.
2532
2533         * math/libm-test.inc (NO_TEST_INLINE): New macro.
2534         (ERRNO_UNCHANGED): Update value.
2535         (ERRNO_EDOM): Likewise.
2536         (ERRNO_ERANGE): Likewise.
2537         (NO_TEST_INLINE_FLOAT): New macro.
2538         (NO_TEST_INLINE_DOUBLE): Likewise.
2539         (enable_test): New function.
2540         (RUN_TEST_f_f): Check enable_test before running test.
2541         (RUN_TEST_2_f): Likewise.
2542         (RUN_TEST_fff_f): Likewise.
2543         (RUN_TEST_c_f): Likewise.
2544         (RUN_TEST_f_f1): Likewise.
2545         (RUN_TEST_fF_f1): Likewise.
2546         (RUN_TEST_fI_f1): Likewise.
2547         (RUN_TEST_ffI_f1): Likewise.
2548         (RUN_TEST_c_c): Likewise.
2549         (RUN_TEST_cc_c): Likewise.
2550         (RUN_TEST_f_i): Likewise.
2551         (RUN_TEST_f_i_tg): Likewise.
2552         (RUN_TEST_ff_i_tg): Likewise.
2553         (RUN_TEST_f_b): Likewise.
2554         (RUN_TEST_f_b_tg): Likewise.
2555         (RUN_TEST_f_l): Likewise.
2556         (RUN_TEST_f_L): Likewise.
2557         (RUN_TEST_fFF_11): Likewise.
2558         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
2559         conditionals.
2560         (cosh_test_data): Likewise.
2561         (exp_test_data): Likewise.
2562         (expm1_test_data): Likewise.
2563         (hypot_test_data): Likewise.
2564         (pow_test_data): Likewise.
2565         (sinh_test_data): Likewise.
2566         (tanh_test_data): Likewise.
2567         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
2568         flags argument.
2569
2570         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
2571         tests with quiet NaN input and output.
2572         (acosh_test_data): Likewise.
2573         (asin_test_data): Likewise.
2574         (asinh_test_data): Likewise.
2575         (atan_test_data): Likewise.
2576         (atanh_test_data): Likewise.
2577         (atan2_test_data): Likewise.
2578         (cbrt_test_data): Likewise.
2579         (cos_test_data): Likewise.
2580         (cosh_test_data): Likewise.
2581         (erf_test_data): Likewise.
2582         (erfc_test_data): Likewise.
2583         (exp_test_data): Likewise.
2584         (exp10_test_data): Likewise.
2585         (exp2_test_data): Likewise.
2586         (expm1_test_data): Likewise.
2587         (hypot_test_data): Likewise.
2588         (j0_test_data): Likewise.
2589         (j1_test_data): Likewise.
2590         (jn_test_data): Likewise.
2591         (lgamma_test_data): Likewise.
2592         (log_test_data): Likewise.
2593         (log10_test_data): Likewise.
2594         (log1p_test_data): Likewise.
2595         (log2_test_data): Likewise.
2596         (pow_test_data): Likewise.
2597         (scalb_test_data): Likewise.
2598         (sin_test_data): Likewise.
2599         (sincos_test_data): Likewise.
2600         (sinh_test_data): Likewise.
2601         (tan_test_data): Likewise.
2602         (tanh_test_data): Likewise.
2603         (tgamma_test_data): Likewise.
2604         (y0_test_data): Likewise.
2605         (y1_test_data): Likewise.
2606         (yn_test_data): Likewise.
2607
2608         [BZ #16167]
2609         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
2610         argument being NaN and avoid computations with second argument in
2611         that case.
2612         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
2613         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2614         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2615
2616 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
2617
2618         * locale/iso-639.def: Add Chitwani Tharu (the).
2619
2620 2013-11-14  Andreas Schwab  <schwab@suse.de>
2621
2622         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
2623         word instead of empty string.
2624
2625 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2626
2627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2628         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
2629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2630         (__fe_nomask_env): Likewise.
2631
2632 2013-11-13  Steve Ellcey  <sellcey@mips.com>
2633
2634         * benchtests/bench-timing.h: Include time.h.
2635
2636 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
2637
2638         [BZ #15997]
2639         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
2640         to 3.4.0 for x32.
2641         * sysdeps/unix/sysv/linux/configure: Regenerated.
2642
2643 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
2644
2645         [BZ #16151]
2646         * stdlib/strtod_l.c (round_and_return): Do not consider
2647         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
2648         exponent one less than half the least subnormal exponent.
2649         * stdlib/test-strtod-round-data: Add more tests.
2650         * stdlib/tst-strtod-round.c (tests): Regenerated.
2651
2652 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2653
2654         [BZ #14143]
2655         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
2656         (__fe_mask_env): Likewise.
2657         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
2658         libm_hidden_proto and add function prototype.
2659         (__fe_mask_env): Add function prototype.
2660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
2661         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
2662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
2663         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
2664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
2665         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
2666
2667 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2668
2669         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
2670         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
2671
2672 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2673
2674         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
2675         of htab_find_slot().
2676
2677 2013-11-11  David S. Miller  <davem@davemloft.net>
2678
2679         [BZ #16150]
2680         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
2681         symbol in the non-vis3 case in static builds.
2682         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
2683         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
2684         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
2685         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
2686
2687 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2688
2689         [BZ #387]
2690         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
2691         it is empty.
2692
2693 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2694
2695         * benchtests/Makefile: Add bench-strtod.
2696         * benchtests/bench-strtod.c: New file: strtod benchtest
2697
2698 2013-11-11  Andreas Schwab  <schwab@suse.de>
2699
2700         [BZ #16153]
2701         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
2702         terminating NUL in key length.
2703
2704 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2705
2706         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
2707         Add artificial ODP entry for vDSO symbol for PPC64.
2708         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
2709         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
2710
2711 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
2712
2713         [BZ #15374]
2714         * nss/getent.c (services_keys): Recognize services starting with digit.
2715
2716 2013-11-06  David S. Miller  <davem@davemloft.net>
2717
2718         [BZ #15985]
2719         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
2720         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
2721
2722 2013-11-06  Will Newton  <will.newton@linaro.org>
2723
2724         * manual/memory.texi (Malloc Examples): Remove register
2725         keyword from examples.
2726
2727 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
2728
2729         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
2730
2731 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
2732
2733         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
2734         depending on [__GCC_IEC_559 > 0].
2735         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
2736         depending on [__GCC_IEC_559_COMPLEX > 0].
2737
2738 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
2739
2740         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
2741         to iso-639.def.
2742
2743 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
2744
2745         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
2746
2747 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
2748
2749         [BZ #16112]
2750         * malloc/malloc (malloc_info): Do not handle first bin as
2751         special case.
2752
2753 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
2754
2755         * locale/iso-639.def: Add Central Nahuatl (nhn).
2756
2757 2013-11-01  Bruno Haible  <bruno@clisp.org>
2758
2759         [BZ #7003]
2760         * manual/math.texi (BSD Random): Specify range upper bound as
2761         in POSIX.
2762
2763 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
2764
2765         * locale/iso-639.def: Add Meadow Mari (mhr).
2766
2767 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
2768
2769         [BZ #14752], [BZ #15763]
2770         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
2771         Validate name.
2772         * rt/tst_shm.c: Add test for escaping directory.
2773
2774 2013-10-31  Andreas Schwab  <schwab@suse.de>
2775
2776         [BZ #15917]
2777         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
2778         followed by 'x' as part of digit sequence.
2779         * stdio-common/tst-sscanf.c (double_tests2): New tests.
2780
2781 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2782
2783         [BZ #16037]
2784         * configure.ac: allow GNU Make 4.0 and greater.
2785         * configure: Regenerated.
2786
2787 2013-10-30  Will Newton  <will.newton@linaro.org>
2788
2789         [BZ #16038]
2790         * malloc/hooks.c (memalign_check): Limit alignment to the
2791         maximum representable power of two.
2792         * malloc/malloc.c (__libc_memalign): Likewise.
2793         * malloc/tst-memalign.c (do_test): Add test for very
2794         large alignment values.
2795         * malloc/tst-posix_memalign.c (do_test): Likewise.
2796
2797 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
2798
2799         [BZ #11087]
2800         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
2801         (munmap_chunk): Likewise.
2802         (mremap_chunk): Likewise.
2803
2804 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
2805
2806         [BZ #15799]
2807         * stdlib/div.c (div): Remove obsolete code.
2808         * stdlib/ldiv.c (ldiv): Likewise.
2809         * stdlib/lldiv.c (lldiv): Likewise.
2810
2811 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2812
2813         [BZ #16071]
2814         * nss/nss_files/files-XXX.c (get_contents_ret): New
2815         enumerator.
2816         (get_contents): New function.
2817         (internal_getent): Use it.  Expand size of LINEBUFLEN.
2818
2819 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
2820
2821         * configure.in: Moved to ...
2822         * configure.ac: ... here. Change reference to configure.in
2823         to configure.ac.
2824         * sysdeps/arm/preconfigure.ac: ... here.
2825         configure.in to configure.ac.
2826         * sysdeps/gnu/configure.in: Moved to ...
2827         * sysdeps/gnu/configure.ac: ... here.
2828         * sysdeps/i386/configure.in: Moved to ...
2829         * sysdeps/i386/configure.ac: ... here.
2830         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
2831         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
2832         * sysdeps/mach/configure.in: Moved to ...
2833         * sysdeps/mach/configure.ac: ... here.
2834         * sysdeps/mach/hurd/configure.in: Moved to ...
2835         * sysdeps/mach/hurd/configure.ac: ... here.
2836         * sysdeps/powerpc/configure.in: Moved to ...
2837         * sysdeps/powerpc/configure.ac: ... here.
2838         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
2839         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
2840         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
2841         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
2842         * sysdeps/s390/s390-32/configure.in: Moved to ...
2843         * sysdeps/s390/s390-32/configure.ac: ... here.
2844         * sysdeps/s390/s390-64/configure.in: Moved to ...
2845         * sysdeps/s390/s390-64/configure.ac: ... here.
2846         * sysdeps/sh/configure.in: Moved to ...
2847         * sysdeps/sh/configure.ac: ... here.
2848         * sysdeps/sparc/configure.in: Moved to ...
2849         * sysdeps/sparc/configure.ac: ... here.
2850         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
2851         * sysdeps/unix/sysv/linux/configure.ac: ... here.
2852         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
2853         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
2854         * sysdeps/x86_64/configure.in: Moved to ...
2855         * sysdeps/x86_64/configure.ac: ... here.
2856         * sysdeps/x86_64/preconfigure.in: Moved to ...
2857         * sysdeps/x86_64/preconfigure.ac: ... here.
2858         * aclocal.m4: Change reference to configure.in to configure.ac.
2859         * config.h.in: Likewise.
2860         * manual/install.texi: Likewise.
2861         * manual/maint.texi: Likewise.
2862         * Makefile: Likewise.
2863         * malloc/Makefile: Likewise.
2864         * nscd/Makefile: Likewise.
2865         * Makeconfig: Change reference to configure.in and
2866         preconfigure.in to configure.ac and preconfigure.ac
2867         respectively.
2868         * INSTALL: Regenerated.
2869         * configure: Likewise.
2870         * sysdeps/gnu/configure: Likewise.
2871         * sysdeps/i386/configure: Likewise.
2872         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
2873         * sysdeps/mach/configure: Likewise.
2874         * sysdeps/mach/hurd/configure: Likewise.
2875         * sysdeps/powerpc/configure: Likewise.
2876         * sysdeps/powerpc/powerpc32/configure: Likewise.
2877         * sysdeps/powerpc/powerpc64/configure: Likewise.
2878         * sysdeps/s390/s390-32/configure: Likewise.
2879         * sysdeps/s390/s390-64/configure: Likewise.
2880         * sysdeps/sh/configure: Likewise.
2881         * sysdeps/sparc/configure: Likewise.
2882         * sysdeps/unix/sysv/linux/configure: Likewise.
2883         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
2884         * sysdeps/x86_64/configure: Likewise.
2885         * sysdeps/x86_64/preconfigure: Likewise.
2886
2887 2013-10-29  Andreas Schwab  <schwab@suse.de>
2888
2889         * stdio-common/Makefile (tst-swscanf-ENV): Define.
2890
2891 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2892
2893         * benchtests/pow-inputs: Add new inputs.
2894
2895         * benchtests/exp-inputs: Add new inputs.
2896
2897         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
2898         conditional check for return value.
2899         (__cos32): Likewise.
2900
2901 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2902
2903         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
2904         to provide a boost for large inputs with word alignment.
2905         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
2906         implementation based on optimized PPC64 strcpy.
2907         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
2908         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
2909         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
2910         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
2911
2912 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2913
2914         [BZ #2801]
2915         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
2916
2917 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2918
2919         [BZ #14876]
2920         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
2921         * time/tst-strptime.c (day_tests): Add testcase.
2922
2923 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
2924
2925         [BZ #14029]
2926         * manual/pattern.texi: Acknowledge that fnmatch can fail.
2927
2928 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
2929
2930         [BZ #16074]
2931         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
2932         MAP_FAILED on error.
2933
2934 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2935
2936         [BZ #16072]
2937         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
2938         heap for large requests.
2939
2940 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
2941
2942         [BZ #9954]
2943         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
2944         result if the result has no associated interface.
2945         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
2946         interface for all 127.X.Y.Z addresses.
2947
2948 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
2949
2950         * locale/iso-639.def: Add Ligurian (lij)
2951
2952 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
2953
2954         [BZ #15825]
2955         * sunrpc/rpc_main.c: Document rpcgen -5.
2956
2957 2013-10-19  Michael Stahl  <mstahl@redhat.com>
2958
2959         * elf/rtld.c (do_preload): Print the reason why preloading failed.
2960
2961 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
2962
2963         [BZ #10278]
2964         * posix/glob.c: Match only directories when trailing slash is present.
2965         * posix/tst-gnuglob.c (my_opendir): Do not open files.
2966         (main): Add testcase.
2967
2968 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
2969
2970         [BZ #15670]
2971         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
2972
2973 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
2974
2975         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
2976         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
2977         AUTH_DES and cindex for FIPS 140-2.
2978         (DES Encryption): Add cindex FIPS 46-3.
2979
2980         * locale/locarchive.h (struct locarhandle): Add fname.
2981         * locale/programs/localedef.c (main): Pass ARGV[remaining]
2982         if an optional argument was specified to --list-archive,
2983         otherwise NULL.
2984         * locale/programs/locarchive.c (show_archive_content): Take new
2985         argument fname and pass it via ah.fname to open_archive.
2986         * locale/programs/localedef.h: Update decl.
2987         (open_archive): If AH->fname is non-null, open that file
2988         rather than the default file name, and don't ignore ENOENT.
2989         (create_archive): Set AH.fname to NULL.
2990         (delete_locales_from_archive): Likewise.
2991         (add_locales_to_archive): Likewise.
2992         * locale/programs/locfile.c (write_all_categories): Likewise.
2993
2994 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
2995             Aldy Hernandez  <aldyh@redhat.com>
2996
2997         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
2998         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
2999         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
3000         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
3001         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
3002         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
3003         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
3004         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
3005         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
3006         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
3007         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
3008         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
3009         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
3010         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
3011         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
3012         Likewise.
3013         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
3014         Likewise.
3015         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
3016         Likewise.
3017         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
3018         Likewise.
3019         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
3020         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
3021         Likewise.
3022         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
3023         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
3024         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
3025         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
3026         Likewise.
3027         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
3028         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
3029         * sysdeps/powerpc/preconfigure: Likewise.
3030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
3031         Likewise.
3032         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
3033         Replace contents of file by #include of <fenv_libc.h>.
3034         * sysdeps/powerpc/soft-fp/sfp-machine.h
3035         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
3036         and <sys/prctl.h>.
3037         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
3038         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
3039         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
3040         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
3041         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
3042         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
3043         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
3044         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
3045         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
3046         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
3047         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
3048         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
3049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
3050         Allow copysignl PLT reference to be missing.
3051
3052 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
3053             Joseph Myers  <joseph@codesourcery.com
3054
3055         [BZ #15948]
3056         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
3057         single character.
3058         (add_to_tablewc): Assert sequence of wide characters is nonempty.
3059
3060 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3061
3062         * elf/tst-tls-dlinfo.c: Don't include tls.h.
3063         * elf/tst-tls1.c: Likewise.
3064         * elf/tst-tls10.h: Likewise.
3065         * elf/tst-tls14.c: Likewise.
3066         * elf/tst-tls2.c: Likewise.
3067         * elf/tst-tls3.c: Likewise.
3068         * elf/tst-tls4.c: Likewise.
3069         * elf/tst-tls5.c: Likewise.
3070         * elf/tst-tls6.c: Likewise.
3071         * elf/tst-tls7.c: Likewise.
3072         * elf/tst-tls8.c: Likewise.
3073         * elf/tst-tls9.c: Likewise.
3074         * elf/tst-tlsmod1.c: Likewise.
3075         * elf/tst-tlsmod13.c: Likewise.
3076         * elf/tst-tlsmod13a.c: Likewise.
3077         * elf/tst-tlsmod14a.c: Likewise.
3078         * elf/tst-tlsmod16a.c: Likewise.
3079         * elf/tst-tlsmod16b.c: Likewise.
3080         * elf/tst-tlsmod2.c: Likewise.
3081         * elf/tst-tlsmod3.c: Likewise.
3082         * elf/tst-tlsmod4.c: Likewise.
3083         * elf/tst-tlsmod5.c: Likewise.
3084         * elf/tst-tlsmod6.c: Likewise.
3085
3086 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
3087
3088         [BZ #12486]
3089         * malloc/malloc.c: remove checks for statistics.
3090
3091 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3092
3093         [BZ #15277]
3094         * inet/inet_net.c (inet_network): Detect additional invalid strings.
3095         * inet/tst-network.c: Add testcase.
3096
3097 2013-10-17  Andreas Schwab  <schwab@suse.de>
3098
3099         [BZ #15218]
3100         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
3101         to determine canonical name.
3102
3103 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
3104
3105         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
3106         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
3107         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3108         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
3109         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3110         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
3111         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3112         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
3113         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3114         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
3115         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3116         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
3117         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
3118         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3119         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
3120         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
3121         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3122         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3123         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3124         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
3125         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3126         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3127         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3128         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
3129         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
3130         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3131         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3132         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
3133         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3134         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
3135         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
3136         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3137         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3138         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3139         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3140         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
3141         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
3142         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
3143         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
3144         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3145         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
3146         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3147         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
3148         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3149         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3150         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
3151         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
3152         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3153         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
3154         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3155         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
3156         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3157         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
3158         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
3159         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3160         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3161         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3162         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
3163
3164 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
3165
3166         [BZ #16041]
3167         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
3168         make result into a quiet NaN.
3169
3170 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
3171
3172         * soft-fp/adddf3.c: Fix horizontal whitespace.
3173         * soft-fp/addsf3.c: Likewise.
3174         * soft-fp/addtf3.c: Likewise.
3175         * soft-fp/divdf3.c: Likewise.
3176         * soft-fp/divsf3.c: Likewise.
3177         * soft-fp/divtf3.c: Likewise.
3178         * soft-fp/double.h: Likewise.
3179         * soft-fp/eqdf2.c: Likewise.
3180         * soft-fp/eqsf2.c: Likewise.
3181         * soft-fp/eqtf2.c: Likewise.
3182         * soft-fp/extenddftf2.c: Likewise.
3183         * soft-fp/extended.h: Likewise.
3184         * soft-fp/extendsfdf2.c: Likewise.
3185         * soft-fp/extendsftf2.c: Likewise.
3186         * soft-fp/extendxftf2.c: Likewise.
3187         * soft-fp/fixdfdi.c: Likewise.
3188         * soft-fp/fixdfsi.c: Likewise.
3189         * soft-fp/fixdfti.c: Likewise.
3190         * soft-fp/fixsfdi.c: Likewise.
3191         * soft-fp/fixsfsi.c: Likewise.
3192         * soft-fp/fixsfti.c: Likewise.
3193         * soft-fp/fixtfdi.c: Likewise.
3194         * soft-fp/fixtfsi.c: Likewise.
3195         * soft-fp/fixtfti.c: Likewise.
3196         * soft-fp/fixunsdfdi.c: Likewise.
3197         * soft-fp/fixunsdfsi.c: Likewise.
3198         * soft-fp/fixunsdfti.c: Likewise.
3199         * soft-fp/fixunssfdi.c: Likewise.
3200         * soft-fp/fixunssfsi.c: Likewise.
3201         * soft-fp/fixunssfti.c: Likewise.
3202         * soft-fp/fixunstfdi.c: Likewise.
3203         * soft-fp/fixunstfsi.c: Likewise.
3204         * soft-fp/fixunstfti.c: Likewise.
3205         * soft-fp/floatdidf.c: Likewise.
3206         * soft-fp/floatdisf.c: Likewise.
3207         * soft-fp/floatditf.c: Likewise.
3208         * soft-fp/floatsidf.c: Likewise.
3209         * soft-fp/floatsisf.c: Likewise.
3210         * soft-fp/floatsitf.c: Likewise.
3211         * soft-fp/floattidf.c: Likewise.
3212         * soft-fp/floattisf.c: Likewise.
3213         * soft-fp/floattitf.c: Likewise.
3214         * soft-fp/floatundidf.c: Likewise.
3215         * soft-fp/floatundisf.c: Likewise.
3216         * soft-fp/floatunditf.c: Likewise.
3217         * soft-fp/floatunsidf.c: Likewise.
3218         * soft-fp/floatunsisf.c: Likewise.
3219         * soft-fp/floatunsitf.c: Likewise.
3220         * soft-fp/floatuntidf.c: Likewise.
3221         * soft-fp/floatuntisf.c: Likewise.
3222         * soft-fp/floatuntitf.c: Likewise.
3223         * soft-fp/fmadf4.c: Likewise.
3224         * soft-fp/fmasf4.c: Likewise.
3225         * soft-fp/fmatf4.c: Likewise.
3226         * soft-fp/gedf2.c: Likewise.
3227         * soft-fp/gesf2.c: Likewise.
3228         * soft-fp/getf2.c: Likewise.
3229         * soft-fp/ledf2.c: Likewise.
3230         * soft-fp/lesf2.c: Likewise.
3231         * soft-fp/letf2.c: Likewise.
3232         * soft-fp/muldf3.c: Likewise.
3233         * soft-fp/mulsf3.c: Likewise.
3234         * soft-fp/multf3.c: Likewise.
3235         * soft-fp/negdf2.c: Likewise.
3236         * soft-fp/negsf2.c: Likewise.
3237         * soft-fp/negtf2.c: Likewise.
3238         * soft-fp/op-1.h: Likewise.
3239         * soft-fp/op-2.h: Likewise.
3240         * soft-fp/op-4.h: Likewise.
3241         * soft-fp/op-8.h: Likewise.
3242         * soft-fp/op-common.h: Likewise.
3243         * soft-fp/quad.h: Likewise.
3244         * soft-fp/single.h: Likewise.
3245         * soft-fp/soft-fp.h: Likewise.
3246         * soft-fp/sqrtdf2.c: Likewise.
3247         * soft-fp/sqrtsf2.c: Likewise.
3248         * soft-fp/sqrttf2.c: Likewise.
3249         * soft-fp/subdf3.c: Likewise.
3250         * soft-fp/subsf3.c: Likewise.
3251         * soft-fp/subtf3.c: Likewise.
3252         * soft-fp/truncdfsf2.c: Likewise.
3253         * soft-fp/trunctfdf2.c: Likewise.
3254         * soft-fp/trunctfsf2.c: Likewise.
3255         * soft-fp/trunctfxf2.c: Likewise.
3256         * soft-fp/unorddf2.c: Likewise.
3257         * soft-fp/unordsf2.c: Likewise.
3258         * soft-fp/unordtf2.c: Likewise.
3259
3260 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
3261
3262         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
3263         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
3264
3265 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
3266
3267         * elf/dl-libc.c: Clear initfini list after freeing.
3268
3269 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
3270
3271         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
3272         * soft-fp/addsf3.c: Likewise.
3273         * soft-fp/addtf3.c: Likewise.
3274         * soft-fp/divdf3.c: Likewise.
3275         * soft-fp/divsf3.c: Likewise.
3276         * soft-fp/divtf3.c: Likewise.
3277         * soft-fp/double.h: Likewise.
3278         * soft-fp/eqdf2.c: Likewise.
3279         * soft-fp/eqsf2.c: Likewise.
3280         * soft-fp/eqtf2.c: Likewise.
3281         * soft-fp/extenddftf2.c: Likewise.
3282         * soft-fp/extended.h: Likewise.
3283         * soft-fp/extendsfdf2.c: Likewise.
3284         * soft-fp/extendsftf2.c: Likewise.
3285         * soft-fp/extendxftf2.c: Likewise.
3286         * soft-fp/fixdfdi.c: Likewise.
3287         * soft-fp/fixdfsi.c: Likewise.
3288         * soft-fp/fixdfti.c: Likewise.
3289         * soft-fp/fixsfdi.c: Likewise.
3290         * soft-fp/fixsfsi.c: Likewise.
3291         * soft-fp/fixsfti.c: Likewise.
3292         * soft-fp/fixtfdi.c: Likewise.
3293         * soft-fp/fixtfsi.c: Likewise.
3294         * soft-fp/fixtfti.c: Likewise.
3295         * soft-fp/fixunsdfdi.c: Likewise.
3296         * soft-fp/fixunsdfsi.c: Likewise.
3297         * soft-fp/fixunsdfti.c: Likewise.
3298         * soft-fp/fixunssfdi.c: Likewise.
3299         * soft-fp/fixunssfsi.c: Likewise.
3300         * soft-fp/fixunssfti.c: Likewise.
3301         * soft-fp/fixunstfdi.c: Likewise.
3302         * soft-fp/fixunstfsi.c: Likewise.
3303         * soft-fp/fixunstfti.c: Likewise.
3304         * soft-fp/floatdidf.c: Likewise.
3305         * soft-fp/floatdisf.c: Likewise.
3306         * soft-fp/floatditf.c: Likewise.
3307         * soft-fp/floatsidf.c: Likewise.
3308         * soft-fp/floatsisf.c: Likewise.
3309         * soft-fp/floatsitf.c: Likewise.
3310         * soft-fp/floattidf.c: Likewise.
3311         * soft-fp/floattisf.c: Likewise.
3312         * soft-fp/floattitf.c: Likewise.
3313         * soft-fp/floatundidf.c: Likewise.
3314         * soft-fp/floatundisf.c: Likewise.
3315         * soft-fp/floatunsidf.c: Likewise.
3316         * soft-fp/floatunsisf.c: Likewise.
3317         * soft-fp/floatuntidf.c: Likewise.
3318         * soft-fp/floatuntisf.c: Likewise.
3319         * soft-fp/floatuntitf.c: Likewise.
3320         * soft-fp/fmadf4.c: Likewise.
3321         * soft-fp/fmasf4.c: Likewise.
3322         * soft-fp/fmatf4.c: Likewise.
3323         * soft-fp/gedf2.c: Likewise.
3324         * soft-fp/gesf2.c: Likewise.
3325         * soft-fp/getf2.c: Likewise.
3326         * soft-fp/ledf2.c: Likewise.
3327         * soft-fp/lesf2.c: Likewise.
3328         * soft-fp/letf2.c: Likewise.
3329         * soft-fp/muldf3.c: Likewise.
3330         * soft-fp/mulsf3.c: Likewise.
3331         * soft-fp/multf3.c: Likewise.
3332         * soft-fp/negdf2.c: Likewise.
3333         * soft-fp/negsf2.c: Likewise.
3334         * soft-fp/negtf2.c: Likewise.
3335         * soft-fp/op-1.h: Likewise.
3336         * soft-fp/op-2.h: Likewise.
3337         * soft-fp/op-4.h: Likewise.
3338         * soft-fp/op-8.h: Likewise.
3339         * soft-fp/op-common.h: Likewise.
3340         * soft-fp/quad.h: Likewise.
3341         * soft-fp/single.h: Likewise.
3342         * soft-fp/soft-fp.h: Likewise.
3343         * soft-fp/sqrtdf2.c: Likewise.
3344         * soft-fp/sqrtsf2.c: Likewise.
3345         * soft-fp/sqrttf2.c: Likewise.
3346         * soft-fp/subdf3.c: Likewise.
3347         * soft-fp/subsf3.c: Likewise.
3348         * soft-fp/subtf3.c: Likewise.
3349         * soft-fp/truncdfsf2.c: Likewise.
3350         * soft-fp/trunctfdf2.c: Likewise.
3351         * soft-fp/trunctfsf2.c: Likewise.
3352         * soft-fp/trunctfxf2.c: Likewise.
3353         * soft-fp/unorddf2.c: Likewise.
3354         * soft-fp/unordsf2.c: Likewise.
3355         * soft-fp/unordtf2.c: Likewise.
3356
3357 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
3358
3359         [BZ #15672]
3360         * misc/error.c (error_tail): Fix possible buffer overflow.
3361
3362 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
3363
3364         [BZ #13028]
3365         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
3366         address.
3367
3368 2013-10-14  P. J. McDermott  <pj@pehjota.net>
3369
3370         [BZ #832]
3371         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
3372         testing pipefail option.
3373
3374 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3375
3376         * soft-fp/double.h: Indent preprocessor directives inside #if.
3377         * soft-fp/extended.h: Likewise.
3378         * soft-fp/op-2.h: Likewise.
3379         * soft-fp/op-4.h: Likewise.
3380         * soft-fp/op-common.h: Likewise.
3381         * soft-fp/quad.h: Likewise.
3382         * soft-fp/single.h: Likewise.
3383         * soft-fp/soft-fp.h: Likewise.
3384
3385 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
3386
3387         * iconv/iconv_prog.c: Fix typos.
3388         * stdio-common/psiginfo-data.h: Likewise.
3389
3390 2013-10-12   Reuben Thomas <rrt@sc3d.org>
3391
3392         [BZ #15764]
3393         * locale/setlocale.c: Fix typo.
3394
3395 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
3396
3397         [BZ #16036]
3398         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
3399         signaling NaN arguments.
3400         * soft-fp/unordsf2.c (__unordsf2): Likewise.
3401         * soft-fp/unordtf2.c (__unordtf2): Likewise.
3402
3403         [BZ #14910]
3404         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
3405         unordered operands.
3406         * soft-fp/gesf2.c (__gesf2): Likewise.
3407         * soft-fp/getf2.c (__getf2): Likewise.
3408         * soft-fp/ledf2.c (__ledf2): Likewise.
3409         * soft-fp/lesf2.c (__lesf2): Likewise.
3410         * soft-fp/letf2.c (__letf2): Likewise.
3411
3412         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
3413         * soft-fp/eqsf2.c (__eqsf2): Likewise.
3414         * soft-fp/eqtf2.c (__eqtf2): Likewise.
3415         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
3416         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
3417         * soft-fp/fixdfti.c (__fixdfti): Likewise.
3418         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
3419         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
3420         * soft-fp/fixsfti.c (__fixsfti): Likewise.
3421         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
3422         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
3423         * soft-fp/fixtfti.c (__fixtfti): Likewise.
3424         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
3425         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
3426         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
3427         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
3428         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
3429         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
3430         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
3431         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
3432         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
3433         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
3434         * soft-fp/floatdisf.c (__floatdisf): Likewise.
3435         * soft-fp/floatsisf.c (__floatsisf): Likewise.
3436         * soft-fp/floattidf.c (__floattidf): Likewise.
3437         * soft-fp/floattisf.c (__floattisf): Likewise.
3438         * soft-fp/floattitf.c (__floattitf): Likewise.
3439         * soft-fp/floatundidf.c (__floatundidf): Likewise.
3440         * soft-fp/floatundisf.c (__floatundisf): Likewise.
3441         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
3442         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
3443         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
3444         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
3445         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
3446         * soft-fp/gesf2.c (__gesf2): Likewise.
3447         * soft-fp/getf2.c (__getf2): Likewise.
3448         * soft-fp/ledf2.c (__ledf2): Likewise.
3449         * soft-fp/lesf2.c (__lesf2): Likewise.
3450         * soft-fp/letf2.c (__letf2): Likewise.
3451
3452         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
3453         Undefine and redefine.
3454         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
3455         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
3456         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
3457         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
3458         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3459         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
3460         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3461         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
3462         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3463         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
3464         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3465         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
3466         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3467         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
3468         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
3469
3470         [BZ #16032]
3471         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
3472         without decrementing exponent if mantissa >= that for the
3473         denominator, not >.
3474         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
3475         denominator, not >.  Decrement exponent in < case instead of
3476         incrementing in >= case.
3477         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
3478         without decrementing exponent if mantissa >= that for the
3479         denominator, not >.
3480
3481         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
3482         computing saturated result for unsigned overflow.
3483
3484 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3485             Jeff Law  <law@redhat.com>
3486
3487         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
3488         (atan2Mp): Add systemtap probe marker.
3489         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
3490         (__ieee754_log): Add systemtap probe marker.
3491         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
3492         (atanMp): Add systemtap probe marker.
3493         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
3494         (tanMp): Add systemtap probe marker.
3495         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
3496         (__slowexp): Add systemtap probe marker.
3497         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
3498         (__slowpow): Add systemtap probe marker.
3499         * manual/probes.texi: Document probes.
3500
3501 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
3502
3503         [BZ #15362]
3504         * libio/fileops.c (_IO_new_file_write): Return count of bytes
3505         written.
3506         (_IO_new_file_xsputn): Don't return EOF if nothing has been
3507         written.
3508         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
3509         written to buffer but not flushed.
3510         * libio/iofwrite_u.c:  Likewise.
3511         * libio/iopadn.c:  Return bytes returned even if EOF was
3512         encountered.
3513         * libio/iowpadn.c:  Likewise.
3514         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
3515         if _IO_padn does not write the whole buffer.
3516         [!COMPILE_WPRINTF] (PAD): Likewise.
3517
3518 2013-10-10  David S. Miller  <davem@davemloft.net>
3519
3520         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
3521         directory block.
3522
3523 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
3524
3525         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
3526         instead of FSF address.
3527         * soft-fp/fixdfti.c: Likewise.
3528         * soft-fp/fixsfti.c: Likewise.
3529         * soft-fp/fixtfti.c: Likewise.
3530         * soft-fp/fixunsdfti.c: Likewise.
3531         * soft-fp/fixunssfti.c: Likewise.
3532         * soft-fp/fixunstfti.c: Likewise.
3533         * soft-fp/floattidf.c: Likewise.
3534         * soft-fp/floattisf.c: Likewise.
3535         * soft-fp/floattitf.c: Likewise.
3536         * soft-fp/floatuntidf.c: Likewise.
3537         * soft-fp/floatuntisf.c: Likewise.
3538         * soft-fp/floatuntitf.c: Likewise.
3539         * soft-fp/trunctfxf2.c: Likewise.
3540
3541         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
3542         * soft-fp/fixdfti.c: Likewise.
3543         * soft-fp/fixsfti.c: Likewise.
3544         * soft-fp/fixtfti.c: Likewise.
3545         * soft-fp/fixunsdfti.c: Likewise.
3546         * soft-fp/fixunssfti.c: Likewise.
3547         * soft-fp/fixunstfti.c: Likewise.
3548         * soft-fp/floattidf.c: Likewise.
3549         * soft-fp/floattisf.c: Likewise.
3550         * soft-fp/floattitf.c: Likewise.
3551         * soft-fp/floatuntidf.c: Likewise.
3552         * soft-fp/floatuntisf.c: Likewise.
3553         * soft-fp/floatuntitf.c: Likewise.
3554         * soft-fp/trunctfxf2.c: Likewise.
3555
3556 2013-10-10  David S. Miller  <davem@davemloft.net>
3557
3558         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3559
3560 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
3561
3562         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
3563         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
3564         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
3565         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
3566         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
3567         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
3568         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
3569
3570         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
3571         for NaNs before doing comparisons on argument.
3572         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
3573         Likewise.
3574
3575 2013-10-10  Will Newton  <will.newton@linaro.org>
3576
3577         * malloc/hooks.c (memalign_check): Ensure the value of bytes
3578         passed to _int_memalign does not overflow.
3579
3580 2013-10-10  Torvald Riegel  <triegel@redhat.com>
3581
3582         * scripts/bench.pl: Add include-sources directive.
3583         * benchtests/README: Update documentation.
3584
3585 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
3586
3587         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
3588         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
3589         instead of FP_INIT_ROUNDMODE.
3590         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
3591         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
3592
3593         [BZ #16034]
3594         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
3595         copy class of input value.
3596         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
3597         not handle exceptions.
3598         * soft-fp/negsf2.c (__negsf2): Likewise.
3599         * soft-fp/negtf2.c (__negtf2): Likewise.
3600         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
3601
3602 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
3603
3604         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
3605         semicolon.  From Linux kernel.
3606
3607 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
3608
3609         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
3610
3611 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
3612
3613         [BZ #156]
3614         * manual/socket.texi: Added statement about buffer
3615         for gethostbyname2_r.
3616
3617 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
3618
3619         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
3620         Use .p2align directive instead, throughout.
3621         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3622         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3623         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
3624         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
3625         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3626         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
3627         * sysdeps/x86_64/strchr.S: Likewise.
3628         * sysdeps/x86_64/strrchr.S: Likewise.
3629
3630 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3631
3632         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
3633
3634         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
3635
3636         * sysdeps/generic/math_private.h (__mpsin1): Remove
3637         declaration.
3638         (__mpcos1): Likewise.
3639         (__mpsin): New argument __range_reduce.
3640         (__mpcos): Likewise.
3641         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3642         (slow): Use __mpsin and __mpcos.
3643         (slow1): Likewise.
3644         (slow2): Likewise.
3645         (sloww): Likewise.
3646         (sloww1): Likewise.
3647         (sloww2): Likewise.
3648         (bsloww): Likewise.
3649         (bsloww1): Likewise.
3650         (bsloww2): Likewise.
3651         (cslow2): Likewise.
3652         (csloww): Likewise.
3653         (csloww1): Likewise.
3654         (csloww2): Likewise.
3655         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
3656         range_reduce.  Merge in __mpsin1.
3657         (__mpcos): Likewise.
3658         (__mpsin1): Remove.
3659         (__mpcos1): Likewise.
3660
3661 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
3662
3663         * locale/loadlocale.c (_nl_intern_locale_data): Use
3664         LOCFILE_ALIGNED_P.
3665         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
3666         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
3667         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
3668         obstack data is appropriately aligned.
3669         (obstack_int32_grow_fast): Likewise.
3670         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
3671         * locale/programs/locfile.c (add_locale_uint32): Likewise.
3672         (add_locale_uint32_array): Likewise.
3673
3674 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3675
3676         * benchtests/Makefile: Remove ARGLIST and RET variables.
3677         ($(objpfx)bench-%.c): Pass only function name to the script.
3678         * benchtests/README: Update documentation.
3679         * benchtests/acos-inputs: Add new directives.
3680         * benchtests/acosh-inputs: Likewise.
3681         * benchtests/asin-inputs: Likewise.
3682         * benchtests/asinh-inputs: Likewise.
3683         * benchtests/atan-inputs: Likewise.
3684         * benchtests/atanh-inputs: Likewise.
3685         * benchtests/cos-inputs: Likewise.
3686         * benchtests/cosh-inputs: Likewise.
3687         * benchtests/exp-inputs: Likewise.
3688         * benchtests/log-inputs: Likewise.
3689         * benchtests/pow-inputs: Likewise.
3690         * benchtests/rint-inputs: Likewise.
3691         * benchtests/sin-inputs: Likewise.
3692         * benchtests/sinh-inputs: Likewise.
3693         * benchtests/tan-inputs: Likewise.
3694         * benchtests/tanh-inputs: Likewise.
3695         * scripts/bench.pl: Add support for new directives.
3696
3697 2013-10-07  Alan Modra  <amodra@gmail.com>
3698
3699         * README: Fix careless merge.
3700
3701 2013-10-05  Alan Modra  <amodra@gmail.com>
3702
3703         * NEWS: Mention powerpc64le support and bugs fixed.
3704         * README: Both big-endian and little-endian powerpc64 supported.
3705
3706 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3707
3708         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
3709         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
3710         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
3711         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
3712
3713 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
3714
3715         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
3716         match prototype.
3717
3718 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
3719
3720         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
3721         Move -mhard-float appending from
3722         ports/sysdeps/powerpc/powerpc32/Makefile.
3723         [$(with-fp) = yes] (ASFLAGS): Likewise.
3724         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
3725         * sysdeps/powerpc/nofpu: Move directory from
3726         ports/sysdeps/powerpc/nofpu.
3727         * sysdeps/powerpc/soft-fp: Move directory from
3728         ports/sysdeps/powerpc/soft-fp.
3729         * sysdeps/powerpc/powerpc32/405: Move directory from
3730         ports/sysdeps/powerpc/powerpc32/405.
3731         * sysdeps/powerpc/powerpc32/440: Move directory from
3732         ports/sysdeps/powerpc/powerpc32/440.
3733         * sysdeps/powerpc/powerpc32/464: Move directory from
3734         ports/sysdeps/powerpc/powerpc32/464.
3735         * sysdeps/powerpc/powerpc32/476: Move directory from
3736         ports/sysdeps/powerpc/powerpc32/476.
3737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
3738         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
3739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
3740         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
3741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
3742         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
3743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
3744         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
3745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
3746         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
3747         * README: Update for powerpc-*-linux-gnu software floating point
3748         support in libc.
3749
3750         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
3751         case to powerpc/powerpc32*.
3752         * sysdeps/unix/sysv/linux/configure: Regenerated.
3753
3754         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
3755         (_FPU_MASK_OM): Define as 0x04.
3756         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
3757         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
3758         0x00c10080.
3759         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
3760         0x0000003c.
3761         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
3762
3763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3764         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
3765         getcontext_e500.
3766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3767         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
3768         setcontext_e500.
3769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3770         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
3771         and setcontext_e500.
3772
3773 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
3774
3775         * locale/iso-3166.def: Update iso-1366.def and related occurrences
3776
3777 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3778
3779         * manual/threads.texi (Default Thread Attributes): Fix typo.
3780
3781 2013-10-04  Will Newton  <will.newton@linaro.org>
3782
3783         * malloc/Makefile: Add tst-memalign.
3784         * malloc/tst-memalign.c: New file.
3785
3786         * malloc/tst-posix_memalign.c: Add comments.
3787         (do_test): Add comments and call free on all potentially
3788         allocated pointers. Add space after cast.
3789
3790         * malloc/tst-pvalloc.c: Add comments.
3791         (do_test): Add comments and call free on all potentially
3792         allocated pointers. Remove duplicate check for NULL pointer.
3793         Add space after cast.
3794
3795         * malloc/tst-valloc.c: Add comments.
3796         (do_test): Add comments and call free on all potentially
3797         allocated pointers. Remove duplicate check for NULL pointer.
3798         Add space after cast.
3799
3800 2013-10-04  Alan Modra  <amodra@gmail.com>
3801
3802         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3803         Use stdint types in rather than __attribute__((mode())).
3804         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3805
3806 2013-10-04  Alan Modra  <amodra@gmail.com>
3807
3808         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
3809         Correct handling of unaligned relocs for little-endian.
3810         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
3811
3812 2013-10-04  Alan Modra  <amodra@gmail.com>
3813
3814         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
3815         * configure: Regenerate.
3816         * nptl/shlib-versions: Powerpc*le starts at 2.18.
3817         * shlib-versions: Likewise.
3818
3819 2013-10-04  Alan Modra  <amodra@gmail.com>
3820
3821         * string/tester.c (test_memrchr): Increment reported test cycle.
3822
3823 2013-10-04  Alan Modra  <amodra@gmail.com>
3824
3825         * string/test-memcpy.c (do_one_test): When reporting errors, print
3826         string address and don't overrun end of string.
3827
3828 2013-10-04  Alan Modra  <amodra@gmail.com>
3829
3830         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
3831         insrdi.  Make better use of reg selection to speed exit slightly.
3832         Schedule entry path a little better.  Remove useless "are we done"
3833         checks on entry to main loop.  Handle wrapping around zero address.
3834         Correct main loop count.  Handle single left-over word from main
3835         loop inline rather than by using loop_small.  Remove extra word
3836         case in loop_small caused by wrong loop count.  Add little-endian
3837         support.
3838         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
3839         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
3840         cache hint.
3841         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
3842         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
3843         support.  Avoid rlwimi.
3844         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
3845
3846 2013-10-04  Alan Modra  <amodra@gmail.com>
3847
3848         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
3849         insrdi.  Formatting.
3850         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
3851         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
3852         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
3853         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3854         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
3855         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
3856
3857 2013-10-04  Alan Modra  <amodra@gmail.com>
3858
3859         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
3860         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3861         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
3862         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
3863         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
3864         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3865         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3866         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
3867         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
3868         use of regs.  Use power7 mtocrf.  Tidy function tails.
3869
3870 2013-10-04  Alan Modra  <amodra@gmail.com>
3871
3872         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
3873         Formatting.  Consistently use rXXX register defines or rN defines.
3874         Use early exit labels that avoid restoring unused non-volatile regs.
3875         Make cr field use more consistent with rWORDn compares.  Rename
3876         regs used as shift registers for unaligned loop, using rN defines
3877         for short lifetime/multiple use regs.
3878         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3879         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
3880         addi 1,1,64 to pop stack frame.  Simplify return value code.
3881         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3882
3883 2013-10-04  Alan Modra  <amodra@gmail.com>
3884
3885         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
3886         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
3887         rather than rlwimi.
3888         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
3889         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
3890         little-endian support.  Correct typos.
3891         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
3892         rather than rlwimi.
3893         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
3894         in loop and entry code to keep "and." results.
3895         (strchr): Add little-endian support.  Comment.  Move cntlzd
3896         earlier in tail.
3897         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
3898
3899 2013-10-04  Alan Modra  <amodra@gmail.com>
3900
3901         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
3902         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
3903         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
3904         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
3905
3906 2013-10-04  Alan Modra  <amodra@gmail.com>
3907
3908         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
3909         (rTMP): Define as r11.
3910         (strcmp): Add little-endian support.  Optimise tail.
3911         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
3912         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3913         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
3914         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
3915         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
3916         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3917         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
3918
3919 2013-10-04  Alan Modra  <amodra@gmail.com>
3920
3921         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
3922         little-endian support.  Remove unnecessary "are we done" tests.
3923         Handle "s" wrapping around zero and extremely large "size".
3924         Correct main loop count.  Handle single left-over word from main
3925         loop inline rather than by using small_loop.  Correct comments.
3926         Delete "zero" tail, use "end_max" instead.
3927         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
3928
3929 2013-10-04  Alan Modra  <amodra@gmail.com>
3930
3931         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
3932         support.  Don't branch over align.
3933         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
3934         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
3935         support.  Rearrange tmp reg use to suit.  Comment.
3936         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
3937
3938 2013-10-04  Alan Modra  <amodra@gmail.com>
3939
3940         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
3941
3942 2013-10-04  Alan Modra  <amodra@gmail.com>
3943
3944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
3945         conditional form of branch and link when obtaining pc.
3946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
3947
3948 2013-10-04  Alan Modra  <amodra@gmail.com>
3949
3950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
3951         HIWORD/LOWORD.
3952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
3953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
3954
3955 2013-10-04  Alan Modra  <amodra@gmail.com>
3956
3957         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
3958         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
3959         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
3960         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
3961         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
3962         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
3963         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
3964         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
3965         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
3966         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
3967
3968 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3969             Alistair Popple <alistair@ozlabs.au.ibm.com>
3970             Alan Modra <amodra@gmail.com>
3971
3972         [BZ #15723]
3973         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
3974         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
3975         _dl_hwcap access for little-endian.
3976         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
3977         destroy vmx regs when saving unaligned.
3978         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
3979         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
3980         destroy vmx regs when saving unaligned.
3981
3982 2013-10-04  Alan Modra  <amodra@gmail.com>
3983
3984         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
3985         Don't use a union to pack hi/low value.
3986
3987 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
3988
3989         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
3990         for little-endian.
3991         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3992         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3993         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3994         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3995         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3996
3997 2013-10-04  Alan Modra  <amodra@gmail.com>
3998
3999         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
4000         constants to usual value for .cst8 section, and remove redundant
4001         high address load.
4002         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
4003         constant for 0x1p52.  Load little-endian words of double from
4004         correct stack offsets.
4005
4006 2013-10-04  Alan Modra  <amodra@gmail.com>
4007
4008         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
4009         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
4010         words of double from correct stack offsets.
4011         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
4012         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
4013         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
4014         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
4015         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
4016         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
4017         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
4018         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
4019         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
4020         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
4021         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
4022         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
4023         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
4024         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
4025         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
4026         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
4027         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
4028
4029 2013-10-04  Alan Modra  <amodra@gmail.com>
4030
4031         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
4032         64-bit int/double union.
4033         (_FPU_SETCW): Likewise.
4034         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
4035         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
4036
4037 2013-10-04  Alan Modra  <amodra@gmail.com>
4038
4039         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
4040         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
4041
4042 2013-10-04  Alan Modra  <amodra@gmail.com>
4043
4044         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
4045         use vector int constants.
4046         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
4047
4048 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4049
4050         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
4051         array with long long.
4052         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
4053         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
4054         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
4055         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
4056         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
4057         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
4058         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
4059         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
4060         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
4061         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
4062         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
4063         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
4064         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
4065
4066 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
4067
4068         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
4069         (__signbit): Likewise.  Correct for little-endian.
4070         (__signbitl): Call __signbit.
4071         (lrint): Correct for little-endian.
4072         (lrintf): Call lrint.
4073
4074 2013-10-04  Alan Modra  <amodra@gmail.com>
4075
4076         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
4077         union 32-bit int array member with 64-bit int array.
4078         (t515, tm256): Double rather than long double.
4079         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
4080
4081 2013-10-04  Alan Modra  <amodra@gmail.com>
4082
4083         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
4084         Delete.
4085         (IEEE854_LONG_DOUBLE_BIAS): Delete.
4086         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
4087         version of math_ldbl.h.
4088
4089 2013-10-04  Alan Modra  <amodra@gmail.com>
4090
4091         [BZ #15734], [BZ #15735]
4092         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
4093         all uses of ieee875 long double macros and unions.  Simplify test
4094         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
4095         ldbl_extract_mantissa value for ix,iy exponents.  Properly
4096         normalize after ldbl_extract_mantissa, and don't add hidden bit
4097         already handled.  Don't treat low word of ieee854 mantissa like
4098         low word of IBM long double and mask off bit when testing for
4099         zero.
4100         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
4101         all uses of ieee875 long double macros and unions.  Simplify tests
4102         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
4103         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
4104         two1022, instead use their values.  Recognise that tests for large
4105         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
4106         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
4107         Rewrite all uses of ieee875 long double macros and unions.  Simplify
4108         test for 0.0L and nan.  Correct negation.
4109         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
4110         ieee875 long double macros and unions.  Correct output for large
4111         magnitude x.  Correct absolute value calculation.
4112         (__erfcl): Likewise.
4113         * math/libm-test.inc: Add tests for errors discovered in IBM long
4114         double versions of fmodl, remainderl, erfl and erfcl.
4115
4116 2013-10-04  Alan Modra  <amodra@gmail.com>
4117
4118         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
4119         all uses of ieee854 long double macros and unions.  Simplify tests
4120         for long doubles that are fully specified by the high double.
4121         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
4122         Likewise.
4123         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
4124         Remove dead code too.
4125         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4126         (__ieee754_ynl): Likewise.
4127         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
4128         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
4129         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
4130         Remove dead code too.
4131         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
4132         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
4133         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
4134         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
4135         Simplify.
4136         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
4137         Simplify.
4138         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
4139         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
4140         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
4141         Comment on variable precision.
4142         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
4143         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4144         Likewise.
4145         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4146         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
4147         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
4148         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
4149         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
4150
4151 2013-10-04  Alan Modra  <amodra@gmail.com>
4152
4153         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
4154         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
4155         all uses of ieee854 long double macros and unions.
4156         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
4157         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
4158         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
4159         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
4160         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
4161         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
4162         Likewise.
4163         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
4164         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4165         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
4166         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4167         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
4168         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
4169         Simplify sign and nan test too.
4170         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
4171         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
4172         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
4173         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
4174         Likewise.
4175         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
4176         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
4177         Likewise.
4178         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4179         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
4180         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
4181         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
4182         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
4183         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
4184
4185 2013-10-04  Alan Modra  <amodra@gmail.com>
4186
4187         * stdio-common/printf_size.c (__printf_size): Don't use
4188         union ieee854_long_double in fpnum union.
4189         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
4190         signbit macro to retrieve sign from long double.
4191         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
4192         retrieve sign from long double.
4193         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
4194         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
4195         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
4196         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
4197         * math/test-misc.c (main): Don't use union ieee854_long_double.
4198
4199 2013-10-04  Alan Modra  <amodra@gmail.com>
4200
4201         [BZ #15680]
4202         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
4203         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
4204         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
4205         calculation.  Remove unnecessary test for denormal exponent.
4206         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
4207         Correct handling of denormals.  Avoid undefined shift behaviour.
4208         Correct normalisation of low mantissa when low double is denormal.
4209         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
4210         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
4211         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
4212         Correct normalisation of low mantissa.  Test for overflow of high
4213         mantissa and normalise.
4214         (ldbl_nearbyint): Use more readable constant for two52.
4215         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
4216         (__mpn_construct_long_double): Fix test for overflow of high
4217         mantissa and correct normalisation.  Avoid undefined shift.
4218
4219 2013-10-04  Alan Modra  <amodra@gmail.com>
4220
4221         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
4222         (union ibm_extended_long_double): Define as an array of ieee754_double.
4223         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
4224         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
4225         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
4226         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
4227         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4228         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
4229         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4230         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
4231         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4232         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
4233         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
4234
4235 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
4236
4237         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
4238         page size instead of calling getpagesize.
4239
4240         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
4241         (LOCFILE_ALIGN_MASK): Likewise.
4242         (LOCFILE_ALIGN_UP): Likewise.
4243         (LOCFILE_ALIGNED_P): Likewise.
4244         * locale/programs/ld-collate.c (collate_output): Use the new
4245         macros instead of __alignof__ (int32_t).
4246         * locale/weight.h (findidx): Likewise.
4247
4248 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
4249
4250         [BZ #431]
4251         * manual/string.texi: Fix strncat and wcsncat.
4252
4253 2013-10-03  Brooks Moses  <bmoses@google.com>
4254
4255         [BZ #15915]
4256         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
4257         * Makerules: ...here, and adjust associated comments.
4258
4259 2013-10-02  Will Newton  <will.newton@linaro.org>
4260
4261         * malloc/Makefile: Add tst-pvalloc.
4262         * malloc/tst-pvalloc.c: New file.
4263
4264 2013-10-02  Will Newton  <will.newton@linaro.org>
4265
4266         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
4267         improve test coverage.
4268
4269 2013-10-02  Will Newton  <will.newton@linaro.org>
4270
4271         * malloc/Makefile: Add tst-posix_memalign.
4272         * malloc/tst-posix_memalign.c: New file.
4273
4274 2013-10-01  Eric Blake  <eblake@redhat.com>
4275
4276         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
4277         Use __THROWNL rather than __THROW on static functions.
4278
4279 2013-09-30  Petr Machata  <pmachata@redhat.com>
4280
4281         * elf/elf.h (R_AARCH64_ABS16): New macro.
4282         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
4283         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
4284         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
4285         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
4286         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
4287         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
4288         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
4289         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
4290         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
4291         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
4292         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
4293         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
4294         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
4295         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
4296         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
4297         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
4298         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
4299         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
4300         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
4301         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
4302         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
4303         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
4304         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
4305         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
4306         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
4307         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
4308         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
4309         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
4310         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
4311         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
4312         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
4313         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
4314         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
4315         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
4316         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
4317         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
4318         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
4319         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
4320         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
4321         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
4322         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
4323         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
4324         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
4325         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
4326         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
4327         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
4328         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
4329         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
4330         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
4331         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
4332         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
4333         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
4334         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
4335         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
4336         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
4337         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
4338         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
4339         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
4340         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
4341         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
4342         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
4343         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
4344         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
4345         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
4346         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
4347         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
4348         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
4349         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
4350         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
4351         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
4352         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
4353         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
4354         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
4355         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
4356         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
4357         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
4358         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
4359         (R_AARCH64_TLSDESC_LDR): Likewise.
4360         (R_AARCH64_TLSDESC_ADD): Likewise.
4361         (R_AARCH64_TLSDESC_CALL): Likewise.
4362
4363 2013-09-30  Andreas Schwab  <schwab@suse.de>
4364
4365         [BZ #15048]
4366         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
4367         the nss database lookup.
4368         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4369         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4370
4371 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
4372
4373         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
4374
4375 2013-09-28  P. J. McDermott  <pj@pehjota.net>
4376
4377         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
4378         ${Bash-specific parameter/pattern/string} parameter expansion.
4379         * sysdeps/unix/make-syscalls.sh: Likewise.
4380
4381 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4382
4383         * sysdeps/sh/stackguard-macros.h: New file.
4384
4385 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
4386
4387         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
4388         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
4389         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
4390         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
4391         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
4392         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
4393
4394 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4395
4396         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
4397         Fix thread ID register.
4398
4399 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
4400
4401         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
4402         [POSIX || UNIX98]: Require rather than permitting all symbols from
4403         <time.h>.
4404         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
4405         element of struct sched_param.
4406         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
4407         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
4408         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
4409         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
4410         constant.
4411
4412 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
4413
4414         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
4415         argument calculation.
4416
4417 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
4418
4419         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
4420         Expect macro.
4421         [POSIX] (pthread_attr_t): Do not require type.
4422         [POSIX] (pthread_cond_t): Likewise.
4423         [POSIX] (pthread_condattr_t): Likewise.
4424         [POSIX] (pthread_key_t): Likewise.
4425         [POSIX] (pthread_mutex_t): Likewise.
4426         [POSIX] (pthread_mutexattr_t): Likewise.
4427         [POSIX] (pthread_once_t): Likewise.
4428         [POSIX] (pthread_t): Likewise.
4429         [POSIX-based standards] (pthread_atfork): Expect function.
4430
4431 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
4432             Richard Sandiford  <richard@codesourcery.com>
4433
4434         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
4435         (swap_endianness_p): New extern variable.
4436         (set_big_endian): New inline function.
4437         (maybe_swap_uint32): Likewise.
4438         (maybe_swap_uint32_array): Likewise.
4439         (maybe_swap_uint32_obstack): Likewise.
4440         * locale/programs/locfile.c: Include <stdbool.h>.
4441         (swap_endianness_p): New variable.
4442         (add_locale_uint32): Call maybe_swap_uint32.
4443         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
4444         (write_locale_data): Call maybe_swap_uint32_array.
4445         * locale/programs/ld-collate.c (obstack_int32_grow): Call
4446         maybe_swap_uint32.
4447         (obstack_int32_grow_fast): Likewise.
4448         (output_weightwc): Call maybe_swap_uint32_obstack.
4449         (collate_output): Likewise.
4450         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
4451         (OPT_LITTLE_ENDIAN): Likewise.
4452         (options): Add --little-endian and --big-endian options.
4453         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
4454         * locale/programs/locarchive.c: Include "locfile.h".
4455         (GET): New macro.
4456         (SET): Likewise.
4457         (INC): Likewise.
4458         (create_archive): Use the new macros to access fields of
4459         structures directly mapped from or written to locale archives.
4460         (oldlocrecentcmp): Likewise.
4461         (enlarge_archive): Likewise.
4462         (insert_name): Likewise.
4463         (add_alias): Likewise.
4464         (add_locale): Likewise.
4465         (delete_locales_from_archive): Likewise.
4466         (show_archive_content): Likewise.
4467         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
4468         locale data.
4469
4470 2013-09-24  Roland McGrath  <roland@hack.frob.com>
4471
4472         * manual/freemanuals.texi: Updated from (newly) canonical copy at
4473         http://www.gnu.org/doc/freemanuals.texi.
4474         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
4475
4476 2013-09-24  Will Newton  <will.newton@linaro.org>
4477
4478         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
4479         macro.
4480
4481 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
4482
4483         * locale/hashval.h (compute_hashval): Interpret bytes of key as
4484         unsigned char.
4485
4486 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
4487
4488         * manual/threads.texi (POSIX Threads): Fix a typo.
4489
4490 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4491
4492         [BZ #14547]
4493         * string/tst-strcoll-overflow.c: New test case.
4494         * string/Makefile (xtests): Add tst-strcoll-overflow.
4495         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
4496         cache if string sizes may cause integer overflow.
4497
4498         [BZ #14547]
4499         * string/strcoll_l.c (coll_seq): New members rule, idx,
4500         save_idx and back_us.
4501         (get_next_seq_nocache): New function.
4502         (do_compare_nocache): New function.
4503         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
4504         when malloc fails.
4505
4506 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
4507
4508         [BZ #15754]
4509         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
4510         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
4511         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
4512
4513         [BZ #15754]
4514         * elf/Makefile (tests): Add tst-ptrguard1.
4515         (tests-static): Add tst-ptrguard1-static.
4516         (tst-ptrguard1-ARGS): Define.
4517         (tst-ptrguard1-static-ARGS): Define.
4518         * elf/tst-ptrguard1.c: New file.
4519         * elf/tst-ptrguard1-static.c: New file.
4520         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
4521         * sysdeps/i386/stackguard-macros.h: Likewise.
4522         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4523         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4524         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4525         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4526         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4527         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4528
4529 2013-09-23  Hector Marco  <hecmargi@upv.es>
4530             Ismael Ripoll  <iripoll@disca.upv.es>
4531             Carlos O'Donell  <carlos@redhat.com>
4532
4533         [BZ #15754]
4534         * sysdeps/generic/stackguard-macros.h: Define
4535         __pointer_chk_guard_local and POINTER_CHK_GUARD.
4536         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
4537         Define __pointer_chk_guard_local.
4538         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
4539         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
4540
4541 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
4542
4543         [BZ #15859]
4544         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
4545
4546 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
4547
4548         * include/string.h (__ffs): Declare as hidden.
4549         * string/ffs.c (__ffs): Define as hidden.
4550         * sysdeps/i386/ffs.c (__ffs): Likewise.
4551         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
4552         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
4553         * sysdeps/s390/ffs.c (__ffs): Likewise.
4554         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
4555
4556 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
4557
4558         * NEWS: Mention malloc probes.
4559
4560         * malloc/arena.c (new_heap): New memory_heap_new probe.
4561         (grow_heap): New memory_heap_more probe.
4562         (shrink_heap): New memory_heap_less probe.
4563         (heap_trim): New memory_heap_free probe.
4564         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
4565         (systrim): New memory_sbrk_less probe.
4566         * manual/probes.texi: Document them.
4567
4568         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
4569         * manual/probes.texi: Document it.
4570
4571         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
4572         (__libc_realloc): Add memory_realloc_retry probe.
4573         (__libc_memalign): Add memory_memalign_retry probe.
4574         (__libc_valloc): Add memory_valloc_retry probe.
4575         (__libc_pvalloc): Add memory_pvalloc_retry probe.
4576         (__libc_calloc): Add memory_calloc_retry probe.
4577         * manual/probes.texi: Document them.
4578
4579         * malloc/arena.c (get_free_list): Add probe
4580         memory_arena_reuse_free_list.
4581         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
4582         and memory_arena_reuse.
4583         (arena_get2) [!PER_THREAD]: Likewise.
4584         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
4585         memory_arena_reuse_realloc.
4586         * manual/probes.texi: Document them.
4587
4588         * malloc/malloc.c (__libc_free): Add
4589         memory_mallopt_free_dyn_thresholds probe.
4590         (__libc_mallopt): Add multiple memory_mallopt probes.
4591         * manual/probes.texi: Document them.
4592
4593         * malloc/malloc.c: Include stap-probe.h.
4594         (__libc_mallopt): Add memory_mallopt probe.
4595         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
4596         * manual/probes.texi: New.
4597         * manual/Makefile (chapters): Add probes.
4598         * manual/threads.texi: Set next node.
4599
4600 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
4601
4602         [BZ #15963, #13985]
4603         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
4604         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
4605         Add `Chinese' to `nan' entry name.
4606
4607 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4608
4609         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
4610         (POLYNOMIAL): Likewise.
4611         (TAYLOR_SINCOS): Likewise.
4612         (TAYLOR_SLOW): Likewise.
4613         (__sin): Use TAYLOR_SINCOS.
4614         (__cos): Likewise.
4615         (slow): Use TAYLOR_SLOW.
4616         (sloww): Likewise.
4617         (bsloww): Likewise.
4618         (csloww): Likewise.
4619
4620 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
4621
4622         * stdlib/strtod_l.c: Fix buffer overrun.
4623
4624 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4625
4626         * benchtests/Makefile (bench): Add sincos.
4627         * benchtests/bench-sincos.c: New file.
4628
4629         * math/libm-test.inc (cos_test_data): New test inputs.
4630         (sin_test_data): Likewise.
4631
4632         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
4633         macro.
4634         (__sin): Use it.
4635         (__cos): Likewise.
4636         (slow1): Likewise.
4637         (slow2): Likewise.
4638         (sloww1): Likewise.
4639         (sloww2): Likewise.
4640         (bsloww1): Likewise.
4641         (bsloww2): Likewise.
4642         (cslow2): Likewise.
4643         (csloww1): Likewise.
4644         (csloww2): Likewise.
4645
4646         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
4647         function.
4648         (__sin): Use it.
4649         (__cos): Likewise.
4650
4651         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
4652         gotos.
4653         (__cos): Likewise.
4654
4655 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
4656
4657         * config.h.in (HAVE_MIPS_NAN2008): New macro.
4658         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
4659         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
4660         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
4661         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
4662         * elf/cache.c (print_entry): Handle the new cache flags.
4663
4664 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
4665             Aldy Hernandez  <aldyh@redhat.com>
4666
4667         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
4668         Change condition to [_SOFT_FLOAT].
4669         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
4670         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
4671         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
4672         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
4673         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
4674         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
4675         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
4676         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
4677         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
4678         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
4679         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
4680         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
4681         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
4682         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
4683         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
4684         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
4685         declaration.
4686
4687 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
4688
4689         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
4690         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
4691         (__longjmp): Use LOAD_GP to load saved GPRs.
4692         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
4693         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
4694         (__sigsetjmp): Use SAVE_GP to save GPRs.
4695
4696         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
4697         Do not append -msoft-float.
4698         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
4699
4700 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
4701
4702         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
4703
4704 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
4705
4706         [BZ #15966]
4707         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
4708         (_FPU_GETCW): Use initial "__" on variable and field names but not
4709         on macro parameter name.
4710         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
4711         parentheses around reference to macro parameter.
4712
4713 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
4714
4715         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
4716         prototype.
4717         (ctype_startup): Use uint32_t in cast and sizeof for
4718         ctype->charnames.
4719
4720 2013-09-11  Jia Liu  <proljc@gmail.com>
4721
4722         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
4723         __daddr_t_defined.
4724         [__FreeBSD__]: Likewise.
4725
4726 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
4727
4728         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4729         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
4730         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
4731         (strchr): Remove __strchr_sse42 ifunc selection.
4732         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
4733         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
4734
4735 2013-09-11  Will Newton  <will.newton@linaro.org>
4736
4737         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
4738         parameter to RES. Remove hardcoded 1000 value.
4739         * benchtests/bench-skeleton.c (main): Pass RES parameter
4740         to TIMING_INIT and multiply result by 1000.
4741
4742 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4743
4744         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4745
4746 2013-09-11  Andreas Schwab  <schwab@suse.de>
4747
4748         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
4749         if not defined.
4750         (O_TMPFILE) [__USE_GNU]: Define.
4751         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
4752         Define.
4753
4754 2013-09-11  Will Newton  <will.newton@linaro.org>
4755
4756         [BZ #15857]
4757         * malloc/malloc.c (__libc_memalign): Check the value of bytes
4758         does not overflow.
4759
4760 2013-09-11  Will Newton  <will.newton@linaro.org>
4761
4762         [BZ #15856]
4763         * malloc/malloc.c (__libc_valloc): Check the value of bytes
4764         does not overflow.
4765
4766 2013-09-11  Will Newton  <will.newton@linaro.org>
4767
4768         [BZ #15855]
4769         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
4770         does not overflow.
4771
4772 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
4773
4774         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
4775         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4776         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4777         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4778         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4779
4780 2013-09-10  Allan McRae  <allan@archlinux.org>
4781
4782         [BZ #15748]
4783         * manual/arith.texi (Parsing of Floats): Clarify
4784         cross-reference.
4785
4786         [BZ #15849]
4787         * manual/install.texi (Running make install): Mention
4788         --enable-pt-chown.
4789         * INSTALL: Regenerated.
4790
4791 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
4792
4793         * csu/init-first.c (_init): Remove the !SHARED condition around
4794         FPU control word initialization.
4795         * elf/dl-support.c (_dl_fpu_control): New variable.
4796         (_dl_aux_init) <AT_FPUCW>: Initialize it.
4797         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
4798         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
4799         * math/test-fpucw-static.c: New file.
4800         * math/test-fpucw-ieee.c: New file.
4801         * math/test-fpucw-ieee-static.c: New file.
4802         * math/Makefile (tests): Add `test-fpucw-ieee' and
4803         `$(tests-static)'.
4804         (tests-static): New variable.
4805         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
4806         dependency to...
4807         [($(build-shared),yes)]
4808         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
4809         ... this.
4810         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
4811         New dependency.
4812
4813 2013-09-09  Allan McRae  <allan@archlinux.org>
4814
4815         [BZ #15939]
4816         * manual/string.texi (Collation Functions): Fix typo in
4817         strcoll example.
4818         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
4819
4820         [BZ #15893]
4821         * stdlib/isomac.c (get_null_defines): Fix memory leak.
4822
4823         [BZ #15892]
4824         * libio/memstream.c (open_memstream): Fix memory leak.
4825         * libio/wmemstream.c (open_wmemstream): Likewise.
4826
4827         [BZ #15895]
4828         * nscd/netgroupcache.c: Fix nesting of ifdefs.
4829
4830 2013-09-09  Will Newton  <will.newton@linaro.org>
4831
4832         * malloc/Makefile: Add tst-realloc to tests.
4833         * malloc/tst-realloc.c: New file.
4834
4835 2013-09-09  Allan McRae  <allan@archlinux.org>
4836
4837         [BZ #15844]
4838         * COPYING: Update from GNU website to fix FSF address.
4839         * COPYING.LIB: Likewise.
4840
4841 2013-09-06  David S. Miller  <davem@davemloft.net>
4842
4843         * po/zh_TW.po: Update Chinese (traditional) translation from
4844         translation project.
4845
4846 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
4847             Joseph Myers  <joseph@codesourcery.com>
4848
4849         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
4850         "localeinfo.h".
4851         (obstack_chunk_alloc): New macro.
4852         (obstack_chunk_free): Likewise.
4853         (record_offset): New function.
4854         (init_locale_data): Likewise.
4855         (align_locale_data): Likewise.
4856         (add_locale_empty): Likewise.
4857         (add_locale_raw_data): Likewise.
4858         (add_locale_raw_obstack): Likewise.
4859         (add_locale_string): Likewise.
4860         (add_locale_wstring): Likewise.
4861         (add_locale_uint32): Likewise.
4862         (add_locale_uint32_array): Likewise.
4863         (add_locale_char): Likewise.
4864         (start_locale_structure): Likewise.
4865         (end_locale_structure): Likewise.
4866         (start_locale_prelude): Likewise.
4867         (end_locale_prelude): Likewise.
4868         (write_locale_data): Take locale_file structure rather than an
4869         iovec.
4870         * locale/programs/locfile.h: Include "obstack.h".
4871         (struct locale_file): Change to store locale file contents instead
4872         of header.
4873         (init_locale_data): New prototype.
4874         (align_locale_data): Likewise.
4875         (add_locale_empty): Likewise.
4876         (add_locale_raw_data): Likewise.
4877         (add_locale_raw_obstack): Likewise.
4878         (add_locale_string): Likewise.
4879         (add_locale_wstring): Likewise.
4880         (add_locale_uint32): Likewise.
4881         (add_locale_uint32_array): Likewise.
4882         (add_locale_char): Likewise.
4883         (start_locale_structure): Likewise.
4884         (end_locale_structure): Likewise.
4885         (start_locale_prelude): Likewise.
4886         (end_locale_prelude): Likewise.
4887         (write_locale_data): Update prototype.
4888         * locale/programs/3level.h (struct TABLE): Remove result field.
4889         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
4890         Use new locale_file interface.
4891         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
4892         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
4893         * locale/programs/ld-address.c (address_output): Use new
4894         locale_file interface.
4895         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
4896         NO_ADD_LOCALE.
4897         (collate_finish): Don't call collseq_table_finalize.
4898         (collate_output): Use new locale_file interface.
4899         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
4900         in file.
4901         (NO_FINALIZE): Change to NO_ADD_LOCALE.
4902         (TABLE): Move defines earlier in file.
4903         (ELEMENT): Likewise.
4904         (DEFAULT): Likewise.
4905         (wctrans_table_add): Move macro and inline function earlier in
4906         file.
4907         (struct wctype_table): Move type earlier in file.
4908         (add_locale_wctype_table): New static prototype.
4909         (struct locale_ctype_t): Use logical types instead of struct iovec
4910         pointers for members.
4911         (ctype_output): Use new locale_file interface.
4912         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
4913         new locale_file interface.
4914         (allocate_arrays): Update for use of new locale_file interface.
4915         * locale/programs/ld-identification.c (identification_output): Use
4916         new locale_file interface.
4917         * locale/programs/ld-measurement.c (measurement_output): Likewise.
4918         * locale/programs/ld-messages.c (messages_output): Likewise.
4919         * locale/programs/ld-monetary.c (monetary_output): Likewise.
4920         * locale/programs/ld-name.c (name_output): Likewise.
4921         * locale/programs/ld-numeric.c (numeric_output): Likewise.
4922         * locale/programs/ld-paper.c (paper_output): Likewise.
4923         * locale/programs/ld-telephone.c (telephone_output): Likewise.
4924         * locale/programs/ld-time.c (time_output): Likewise.
4925
4926 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4927
4928         * benchtests/Makefile: Add memrchr benchmark.
4929         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
4930         benchmark as memrchr.
4931         * benchtests/bench-memrchr-ifunc.c: New file.
4932         * benchtests/bench-memrchr.c: New file.
4933
4934 2013-09-06   Will Newton  <will.newton@linaro.org>
4935
4936         * benchtests/Makefile (string-bench): Add memcpy.
4937
4938 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
4939             Cong Wang  <amwang@redhat.com>
4940
4941         * sysdeps/unix/sysv/linux/bits/in.h
4942         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
4943         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
4944         before __USE_KERNEL_IPV6_DEFS uses.
4945         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
4946         IPPROTO_BEETPH.
4947         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
4948         sockaddr_in6, or ipv6_mreq.
4949
4950 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4951
4952         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
4953         memory access for final bytes in some large inputs.
4954         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
4955
4956 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4957
4958         * string/test-memrchr.c: New file.
4959         * string/test-memrchr-ifunc.c: New file.
4960         * string/Makefile: Add new memrchr testcase.
4961
4962 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
4963
4964         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
4965         fanotify_init returns EPERM.
4966
4967 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
4968
4969         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
4970         errors.
4971         (top level): Treat second token from macro or constant entries for
4972         allowed headers as allowed.
4973         * include/complex.h: Condition internal declarations on
4974         [!_ISOMAC].
4975         * include/fenv.h: Condition include of <stdbool.h> and internal
4976         declarations on [!_ISOMAC].
4977
4978 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
4979
4980         [BZ #15923]
4981         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
4982
4983 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
4984
4985         * configure.in (--enable-versioning): Remove configure option.
4986         (libc_cv_asm_symver_directive): Remove configure test.
4987         (libc_cv_ld_version_script_option): Likewise.
4988         (VERSIONING): Remove variable and AC_SUBST.
4989         (DO_VERSIONING): Remove AC_DEFINE.
4990         * configure: Regenerated.
4991         * config.h.in (DO_VERSIONING): Remove macro.
4992         * Makerules [$(versioning) = yes]: Change conditionals to
4993         [$(build-shared) = yes].
4994         * config.make.in (versioning): Remove variable.
4995         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
4996         [$(build-shared) = yes].
4997         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
4998         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
4999         * elf/Makefile [$(versioning) = yes]: Change conditionals to
5000         [$(build-shared) = yes].
5001         * extra-lib.mk [$(versioning) = yes]: Likewise.
5002         * hurd/Makefile [$(versioning) = yes]: Likewise.
5003         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
5004         [SHARED].
5005         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
5006         [SHARED].
5007         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5008         [SHARED && !NO_HIDDEN].
5009         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
5010         [SHARED].
5011         [SHARED && DO_VERSIONING]: Likewise..
5012         * libio/Makefile [$(versioning) = yes]: Change conditionals to
5013         [$(build-shared) = yes].
5014         * manual/install.texi (--disable-versioning): Remove
5015         documentation.
5016         * INSTALL: Regenerated.
5017         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
5018         to [SHARED].
5019         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
5020         [$(build-shared) = yes].
5021         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
5022         * sysdeps/i386/i686/multiarch/strstr-c.c
5023         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
5024         [SHARED && !NO_HIDDEN].
5025         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
5026         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
5027         * sysdeps/powerpc/powerpc32/dl-machine.c
5028         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
5029         * sysdeps/powerpc/powerpc32/sysdep.h
5030         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
5031         to [SHARED && PIC && !NO_HIDDEN].
5032         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
5033         conditional to [SHARED].
5034
5035 2013-09-04   Will Newton  <will.newton@linaro.org>
5036
5037         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
5038         * benchtests/bench-string.h: Include bench-timing.h instead
5039         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
5040         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
5041         call to HP_TIMING_DIFF_INIT.
5042         * benchtests/bench-memccpy.c: Use bench-timing.h macros
5043         instead of hp-timing.h macros.
5044         * benchtests/bench-memchr.c: Likewise.
5045         * benchtests/bench-memcmp.c: Likewise.
5046         * benchtests/bench-memcpy.c: Likewise.
5047         * benchtests/bench-memmem.c: Likewise.
5048         * benchtests/bench-memmove.c: Likewise.
5049         * benchtests/bench-memset.c: Likewise.
5050         * benchtests/bench-rawmemchr.c: Likewise.
5051         * benchtests/bench-strcasecmp.c: Likewise.
5052         * benchtests/bench-strcasestr.c: Likewise.
5053         * benchtests/bench-strcat.c: Likewise.
5054         * benchtests/bench-strchr.c: Likewise.
5055         * benchtests/bench-strcmp.c: Likewise.
5056         * benchtests/bench-strcpy.c: Likewise.
5057         * benchtests/bench-strcpy_chk.c: Likewise.
5058         * benchtests/bench-strlen.c: Likewise.
5059         * benchtests/bench-strncasecmp.c: Likewise.
5060         * benchtests/bench-strncat.c: Likewise.
5061         * benchtests/bench-strncmp.c: Likewise.
5062         * benchtests/bench-strncpy.c: Likewise.
5063         * benchtests/bench-strnlen.c: Likewise.
5064         * benchtests/bench-strpbrk.c: Likewise.
5065         * benchtests/bench-strrchr.c: Likewise.
5066         * benchtests/bench-strspn.c: Likewise.
5067         * benchtests/bench-strstr.c: Likewise.
5068
5069 2013-09-04  Will Newton  <will.newton@linaro.org>
5070
5071         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
5072
5073 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
5074
5075         [BZ #15427]
5076         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
5077         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
5078         * math/libm-test.inc (lgamma_test_data): Add more tests.
5079         * sysdeps/i386/fpu/libm-test-ulps: Update.
5080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5081
5082 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
5083
5084         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
5085         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5086         Add ifunc.
5087         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5088         Add strcmp-sse2-unaligned
5089         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
5090
5091 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5092
5093         * Versions.def (libc): Add GLIBC_2.19.
5094
5095 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
5096
5097         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
5098         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
5099
5100 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
5101
5102         [BZ #14155]
5103         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
5104         intermediate calculations in recurrence.
5105         (__ieee754_ynf): Likewise.
5106         * math/libm-test.inc (jn_test_data): Do not allow spurious
5107         underflow exception.  Add more tests.
5108         (yn_test_data): Add more tests.
5109         * sysdeps/i386/fpu/libm-test-ulps: Update.
5110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5111
5112 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
5113
5114         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
5115
5116 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5117
5118         * csu/init-first.c: Fix then/than typos.
5119         * locale/programs/ld-collate.c: Likewise.
5120         * locale/programs/linereader.h: Likewise.
5121         * manual/charset.texi: Likewise.
5122         * manual/filesys.texi: Likewise.
5123         * manual/stdio.texi: Likewise.
5124         * manual/string.texi: Likewise.
5125         * stdlib/fmtmsg.c: Likewise.
5126         * sysdeps/i386/stpncpy.S: Likewise.
5127         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5128         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
5129         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
5130         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5131
5132 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
5133
5134         * elf/dl-open.c: Fix typos.
5135         * iconvdata/gbbig5.c: Likewise.
5136         * iconvdata/iso-2022-jp.c: Likewise.
5137         * iconv/gconv_int.h: Likewise.
5138         * iconv/loop.c: Likewise.
5139         * nis/rpcsvc/nis.h: Likewise.
5140         * resolv/ns_name.c: Likewise.
5141         * stdio-common/vfscanf.c: Likewise.
5142         * streams/stropts.h: Likewise.
5143         * sunrpc/rpc_thread.c: Likewise.
5144         * sysdeps/i386/strpbrk.S: Likewise.
5145         * sysdeps/ieee754/k_standard.c: Likewise.
5146         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
5147         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
5148         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5149         * sysdeps/mach/hurd/profil.c: Likewise.
5150         * sysdeps/s390/dl-procinfo.h: Likewise.
5151         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5152         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
5153         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
5154         * sysdeps/x86_64/dl-trampoline.S: Likewise.
5155         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5156
5157 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
5158
5159         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
5160         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
5161
5162 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
5163
5164         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
5165         aix specific files.
5166         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
5167         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
5168         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
5169         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
5170         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
5171         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
5172         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
5173         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
5174
5175 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5176             Roland McGrath  <roland@hack.frob.com>
5177
5178         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
5179         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5180
5181 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5182
5183         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
5184         __executable_start symbol instead of _start.
5185
5186 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
5187
5188         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
5189         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
5190         Move macros to...
5191         * sysdeps/gnu/ldsodefs.h: ... this new file.
5192
5193         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
5194         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
5195         instead of ELFOSABI_LINUX.
5196
5197         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
5198         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
5199         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
5200         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
5201         Likewise.
5202         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
5203         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
5204         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
5205         Likewise.
5206         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
5207         (ibm_extended_long_double): Add ieee_nan member.
5208         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
5209         (do_test): New function.
5210
5211         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
5212         TEST_TRUNC.
5213         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
5214         functions, renamed from truncdfsf_test, trunctfsf_test,
5215         trunctfdf_test.
5216         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
5217         functions.
5218         (do_test): Run all these.
5219
5220 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
5221
5222         * argp/argp-help.c: Fix typos.
5223         * argp/argp-parse.c: Likewise.
5224         * debug/backtracesyms.c: Likewise.
5225         * elf/elf.h: Likewise.
5226         * malloc/malloc.c: Likewise.
5227         * nis/nis_print.c: Likewise.
5228         * resolv/res_comp.c: Likewise.
5229         * stdlib/stdlib.h: Likewise.
5230         * sunrpc/clnt_tcp.c: Likewise.
5231         * sunrpc/clnt_udp.c: Likewise.
5232         * sunrpc/clnt_unix.c: Likewise.
5233         * sysdeps/unix/bsd/ptsname.c: Likewise.
5234         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5235         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
5236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
5237         Likewise.
5238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5239         Likewise.
5240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5241         Likewise.
5242         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
5243
5244 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5245
5246         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
5247         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5248
5249 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
5250
5251         [BZ #15897]
5252         * dlfcn/Makefile (tests): Add bug-dl-leaf.
5253         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
5254         ($(objpfx)bug-dl-leaf): New rule.
5255         ($(objpfx)bug-dl-leaf.so): Likewise.
5256         ($(objpfx)bug-dl-leaf.out): Likewise.
5257         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
5258         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
5259         * dlfcn/bug-dl-leaf.c: New test.
5260         * dlfcn/bug-dl-leaf-lib.c: Likewise.
5261         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
5262         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
5263         (dlclose): Likewise.
5264         (dlmopen): Likewise.
5265
5266 2013-08-27  Roland McGrath  <roland@hack.frob.com>
5267
5268         * include/netdb.h [!_ISOMAC]:
5269         Don't include <tls.h>.
5270         (h_errno, __libc_h_errno): Move declaration and macros out of
5271         [_LIBC_REENTRANT].
5272
5273         * include/resolv.h [_RESOLV_H_]:
5274         Don't include <tls.h>.
5275         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
5276         * resolv/res_libc.c: Don't include <tls.h>.
5277         (_res): Use __attribute__ ((nocommon)) in place of
5278         __attribute__ ((section (".bss"))).
5279
5280         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
5281         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
5282
5283         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
5284
5285         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
5286         only under [SIOCGIFCONF && SIOCGIFNETMASK].
5287
5288         * resolv/res_mkquery.c: Include <sys/time.h>.
5289
5290         * inet/ifreq.c: Moved to ...
5291         * sysdeps/unix/ifreq.c: ... here.
5292         * inet/ifreq.c: New file, true stub version.
5293
5294         * socket/sa_len.c: New file.
5295         * socket/Makefile (aux): Add it.
5296         * sysdeps/unix/sysv/linux/Makefile
5297         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
5298         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
5299         and #include <socket/sa_len.c>.
5300         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
5301         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
5302
5303         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
5304         * bits/socket.h: ... here.
5305
5306         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
5307         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
5308         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
5309
5310 2013-08-27  Andreas Schwab  <schwab@suse.de>
5311
5312         [BZ #15736]
5313         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
5314         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
5315         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
5316         * string/test-strcasecmp.c (test_main): Run tests in several
5317         locales.
5318         * string/test-strncasecmp.c (test_main): Likewise.
5319
5320         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
5321         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
5322         to __strcasecmp_nonascii and __strncasecmp_nonascii.
5323         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
5324         (__strncasecmp_ssse3) [PIC]: Likewise.
5325
5326 2013-08-26  Roland McGrath  <roland@hack.frob.com>
5327
5328         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
5329
5330         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
5331         instead of explicitly declaring xdecrypt.
5332         * nis/nss_nis/nis-publickey.c: Likewise.
5333
5334 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5335
5336         [BZ #15890]
5337         * nscd/aicache.c: Include res_hconf.h.
5338         (addhstaiX): Initialize res_hconf.
5339
5340 2013-08-26  Andreas Schwab  <schwab@suse.de>
5341
5342         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
5343         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
5344
5345 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5346
5347         * nscd/aicache.c (addhstaiX): Fix indentation.
5348
5349 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
5350
5351         * configure.ac: Quote $build_pt_chown test.
5352         * configure: Regenerated.
5353
5354 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
5355
5356         [BZ #15532]
5357         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
5358         * math/s_cexpf.c (__cexpf): Likewise.
5359         * math/s_cexpl.c (__cexpl): Likewise.
5360         * math/libm-test.inc (cexp_test_data): Correct expected return
5361         value for NaN + i0.  Add another test.
5362
5363 2013-08-22  David S. Miller  <davem@davemloft.net>
5364
5365         * po/ca.po: Update Catalan translation from translation project.
5366         * po/uk.po: Add Ukrainian translations from translation project.
5367
5368 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
5369
5370         [BZ #15797]
5371         * math/s_fdim.c (__fdim): Check for infinite arguments if result
5372         is infinite, not alongside NaN test.
5373         * math/s_fdimf.c (__fdimf): Likewise.
5374         * math/s_fdiml.c (__fdiml): Likewise.
5375         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
5376         errno is unchanged.
5377
5378 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
5379
5380         * argp/argp-help.c: Fix typos.
5381         * crypt/speeds.c: Likewise.
5382         * csu/check_fds.c: Likewise.
5383         * elf/dl-load.c: Likewise.
5384         * elf/dl-open.c: Likewise.
5385         * elf/reldep3.c: Likewise.
5386         * elf/reldep.c: Likewise.
5387         * elf/sprof.c: Likewise.
5388         * iconv/iconv_charmap.c: Likewise.
5389         * iconv/skeleton.c: Likewise.
5390         * iconv/strtab.c: Likewise.
5391         * io/lockf64.c: Likewise.
5392         * libio/libioP.h: Likewise.
5393         * resolv/gai_notify.c: Likewise.
5394         * resolv/ns_name.c: Likewise.
5395         * resolv/ns_samedomain.c: Likewise.
5396         * resolv/res_send.c: Likewise.
5397         * stdlib/random.c: Likewise.
5398         * sunrpc/rpc/xdr.h: Likewise.
5399         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
5400         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
5401         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
5402         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
5403         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
5404         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
5405         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
5406         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
5407         * sysdeps/mach/hurd/check_fds.c: Likewise.
5408         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
5409         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
5410         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
5411         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
5412         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
5413         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
5414         * sysdeps/pthread/aio_notify.c: Likewise.
5415         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5416         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
5417         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
5418         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
5419         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
5420
5421 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5422
5423         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
5424         version if bit_Slow_SSE4_2 is set.
5425         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5426         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
5427
5428 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5429
5430         [BZ #15867]
5431         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
5432         trampoline stack frame information.
5433         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
5434         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
5435         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
5436         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
5437         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
5438         * sysdeps/unix/sysv/linux/powerpc/init-first.c
5439         (_libc_vdso_platform_setup): Initialize the signal trampolines.
5440         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
5441         sa_flags value.
5442         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
5443         interrupting a syscall and set with option SA_SIGINFO.
5444
5445 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
5446
5447         [BZ #15531]
5448         * math/s_cproj.c (__cproj): Only return an infinity if one part of
5449         argument is infinite.
5450         * math/s_cprojf.c (__cprojf): Likewise.
5451         * math/s_cprojl.c (__cprojl): Likewise.
5452         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
5453         * math/libm-test.inc (cproj_test_data): Add more tests.
5454
5455         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
5456
5457         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
5458         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
5459         size.  Use __ffs to determine corresponding shift.
5460
5461 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
5462             Roland McGrath  <roland@hack.frob.com>
5463
5464         * Makefile (INSTALL): Remove trailing blank lines from output of
5465         makeinfo.
5466
5467 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5468
5469         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
5470         Align 32 bit compat elf_greg to 8 bytes.
5471
5472 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5473
5474         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
5475
5476 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
5477
5478         * string/strcoll_l.c (coll_seq): New structure.
5479         (get_next_seq_cached): New function.
5480         (get_next_seq): New function.
5481         (do_compare): New function.
5482         (STRCOLL): Use GNU style definition.  Simplify implementation
5483         by using get_next_seq, get_next_seq_cached and do_compare.
5484
5485 2013-08-16  Florian Weimer  <fweimer@redhat.com>
5486
5487         [BZ #14699]
5488         CVE-2013-4237
5489         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
5490         member.
5491         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
5492         member.
5493         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
5494         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
5495         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
5496         conditional.
5497         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
5498         GETDENTS_64BIT_ALIGNED.
5499         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5500         * manual/filesys.texi (Reading/Closing Directory): Document
5501         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
5502         strongly.
5503         * manual/conf.texi (Limits for Files): Add portability note to
5504         NAME_MAX, PATH_MAX.
5505         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
5506
5507 2013-08-13  Andreas Schwab  <schwab@suse.de>
5508
5509         [BZ #15749]
5510         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
5511         of fabs.
5512         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
5513         LDBL_MAX_EXP >= 16384]: Add tests for it.
5514
5515 2013-08-12  David S. Miller  <davem@davemloft.net>
5516
5517         * version.h (RELEASE): Set to "development".
5518         (VERSION): Set to "2.18.90".
5519         * NEWS: Add 2.19 section.
5520
5521 2013-08-03  David S. Miller  <davem@davemloft.net>
5522
5523         * po/ko.po: Update Korean translation from translation project.
5524
5525 2013-08-01  David S. Miller  <davem@davemloft.net>
5526
5527         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
5528         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
5529         Bilka.
5530
5531 2013-07-30  David S. Miller  <davem@davemloft.net>
5532
5533         * po/fr.po: Update French translation from translation project.
5534
5535 2013-07-28  David S. Miller  <davem@davemloft.net>
5536
5537         * po/cs.po: Update Czech translation from translation project.
5538
5539         * po/sv.po: Update Swedish translation from translation project.
5540
5541 2013-07-27  David S. Miller  <davem@davemloft.net>
5542
5543         * po/eo.po: Update Esperanto translation from translation project.
5544
5545         * po/vi.po: Update Vietnamese translation from translation project.
5546
5547         * po/de.po: Update German translation from translation project.
5548
5549 2013-07-26  David S. Miller  <davem@davemloft.net>
5550
5551         * po/bg.po: Update Bulgarian translation from translation project.
5552
5553         * po/nl.po: Update Dutch translation from translation project.
5554         * po/pl.po: Update Polish translation from translation project.
5555         * po/ru.po: Update Russian translation from translation project.
5556
5557 2013-07-24  David S. Miller  <davem@davemloft.net>
5558
5559         * po/libc.pot: Update.
5560
5561 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5562
5563         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
5564         variable page size.
5565         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
5566         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
5567         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
5568
5569 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5570
5571         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
5572
5573 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5574             Andreas Schwab  <schwab@suse.de>
5575             Roland McGrath  <roland@hack.frob.com>
5576             Joseph Myers  <joseph@codesourcery.com>
5577             Carlos O'Donell  <carlos@redhat.com>
5578
5579         [BZ #15755]
5580         * config.h.in: Define HAVE_PT_CHOWN.
5581         * config.make.in (build-pt-chown): New variable.
5582         * configure.in (--enable-pt_chown): New configure option.
5583         * configure: Regenerate.
5584         * login/Makefile: Include Makeconfig.  Build pt_chown only if
5585         build-pt-chown is enabled.
5586         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
5587         pt_chown to fix pty ownership.
5588         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
5589         CLOSE_ALL_FDS.
5590         * manual/install.texi (Configuring and compiling): Mention
5591         --enable-pt_chown. Add @findex for grantpt.
5592         * INSTALL: Regenerate.
5593
5594 2013-07-20  David S. Miller  <davem@davemloft.net>
5595
5596         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
5597         difference between 32-bit and 64-bit.
5598
5599 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
5600
5601         [BZ #15711]
5602         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
5603         Avoid system header dependency with -ffreestanding.
5604         ($(objpfx)bits/syscall%d): Likewise.
5605
5606 2013-07-13  David S. Miller  <davem@davemloft.net>
5607
5608         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
5609         underflows from atanl/atan2l due to bug 15319.
5610         (casinh_test_data): Likewise.
5611
5612 2013-07-07  David S. Miller  <davem@davemloft.net>
5613
5614         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
5615
5616 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
5617
5618         * sysdeps/i386/fpu/libm-test-ulps: Update.
5619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5620
5621 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5622
5623         * configure.in (--enable-lock-elision): Fix message text.
5624         * INSTALL: Regenerate.
5625         * configure: Regenerate.
5626
5627 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5628
5629         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5630
5631 2013-07-03  Andreas Jaeger  <aj@suse.de>
5632
5633         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
5634         define.
5635         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
5636         (ptrace_peeksiginfo_args): Add.
5637         (__ptrace_peeksiginfo_flags): Add.
5638         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5639         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5640         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5641
5642 2013-07-03  Allan McRae  <allan@archlinux.org>
5643
5644         * sysdeps/i386/fpu/libm-test-ulps: Update.
5645
5646 2013-07-02  David S. Miller  <davem@davemloft.net>
5647
5648         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5649
5650 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
5651
5652         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5653
5654 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
5655
5656         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
5657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5658
5659 2013-07-02  Andi Kleen <ak@linux.intel.com>
5660
5661         * config.h.in (ENABLE_LOCK_ELISION): Add.
5662         * configure.in (--enable-lock-elision): Add option.
5663         * manual/install.texi: Document --enable lock elision.
5664         * configure: Regenerate
5665         * INSTALL: Regenerate.
5666
5667 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
5668
5669         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
5670         SSE4.2 strcasecmp for libc.a.
5671         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
5672
5673 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
5674
5675         [BZ #13304]
5676         * soft-fp/op-common.h (_FP_FMA): New macro.
5677         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
5678         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
5679         (_FP_MUL_MEAT_1_imm): ... here.
5680         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
5681         (_FP_MUL_MEAT_1_wide): ... here.
5682         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
5683         (_FP_MUL_MEAT_1_hard): ... here.
5684         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
5685         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
5686         (_FP_MUL_MEAT_2_wide): ... here.
5687         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
5688         (_FP_MUL_MEAT_2_wide_3mul): ... here.
5689         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
5690         (_FP_MUL_MEAT_2_gmp): ... here.
5691         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
5692         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
5693         (_FP_MUL_MEAT_4_wide): ... here.
5694         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
5695         (_FP_MUL_MEAT_4_gmp): ... here.
5696         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
5697         (_FP_WFRACBITS_DW_S): Likewise.
5698         (_FP_WFRACXBITS_DW_S): Likewise.
5699         (_FP_HIGHBIT_DW_S): Likewise.
5700         (FP_FMA_S): Likewise.
5701         (_FP_FRAC_HIGH_DW_S): Likewise.
5702         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
5703         (_FP_WFRACBITS_DW_D): Likewise.
5704         (_FP_WFRACXBITS_DW_D): Likewise.
5705         (_FP_HIGHBIT_DW_D): Likewise.
5706         (FP_FMA_D): Likewise.
5707         (_FP_FRAC_HIGH_DW_D): Likewise.
5708         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
5709         (_FP_WFRACBITS_DW_E): Likewise.
5710         (_FP_WFRACXBITS_DW_E): Likewise.
5711         (_FP_HIGHBIT_DW_E): Likewise.
5712         (FP_FMA_E): Likewise.
5713         (_FP_FRAC_HIGH_DW_E): Likewise.
5714         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
5715         (_FP_WFRACBITS_DW_Q): Likewise.
5716         (_FP_WFRACXBITS_DW_Q): Likewise.
5717         (_FP_HIGHBIT_DW_Q): Likewise.
5718         (FP_FMA_Q): Likewise.
5719         (_FP_FRAC_HIGH_DW_Q): Likewise.
5720         * soft-fp/fmasf4.c: New file.
5721         * soft-fp/fmadf4.c: Likewise.
5722         * soft-fp/fmatf4.c: Likewise.
5723
5724 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5725
5726         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
5727         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
5728         Silvermont.
5729         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
5730         macro.
5731         (index_Slow_SSE4_2): Likewise.
5732         (index_Prefer_PMINUB_for_stringop): Likewise.
5733         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
5734         bit_Slow_SSE4_2 is set.
5735         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
5736         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
5737
5738 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5739
5740         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
5741         rtld_global._dl_hwcap2.
5742         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
5743         POWER8.
5744         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
5745         POWER8 feature descriptions defined in _dl_hwcap2.
5746         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
5747         string handling for POWER8 feature bits.
5748         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
5749         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
5750         _dl_powerpc_cap_flags.
5751         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
5752         * sysdeps/powerpc/rtld-global-offsets.sym
5753         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
5754         _dl_hwcap2 in the rtld_global_ro structure.
5755
5756 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5757
5758         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
5759         hardware capabilities in support of AT_HWCAP2.
5760         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
5761         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
5762         GLRO(dl_hwcap2).
5763         (_dl_show_auxv): Add support for calling _dl_procinfo to display
5764         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
5765         explicitly the unknown a_type display mechanism is used.
5766         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
5767         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
5768         struct member.
5769         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
5770         to macro prototype for AT_HWCAP2 support.
5771         * sysdeps/i386/dl-procinfo.h: Likewise.
5772         * sysdeps/s390/dl-procinfo.h: Likewise.
5773         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
5774         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
5775         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
5776         return -1 for unknown a_type display fallback.
5777         * sysdeps/sparc/dl-procinfo.h: Likewise.
5778         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
5779         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
5780
5781 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
5782
5783         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
5784         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
5785
5786 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
5787
5788         [BZ #12492]
5789         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
5790         mprotect making __stack_prot writable.
5791
5792 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
5793             Joseph Myers  <joseph@codesourcery.com>
5794
5795         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
5796         as being properly aligned.
5797
5798 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
5799
5800         * dlfcn/modstatic5.c: New file.
5801         * dlfcn/tststatic5.c: New file.
5802         * dlfcn/Makefile (tests): Add tststatic5.
5803         (tests-static): Likewise.
5804         (modules-names): Add modstatic5.
5805         (tststatic5-ENV): New variable.
5806         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
5807
5808         [BZ #15022]
5809         * elf/dl-support.c (_dl_main_map): New variable.
5810         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
5811         (_dl_nns, _dl_load_adds): Set to 1.
5812         (_dl_initial_searchlist): Refer to _dl_main_map.
5813         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
5814         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
5815         call to _dl_get_origin.
5816         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
5817         around call_map.
5818         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
5819         * dlfcn/modstatic3.c: New file.
5820         * dlfcn/tststatic3.c: New file.
5821         * dlfcn/tststatic4.c: New file.
5822         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
5823         (tests-static): Likewise.
5824         (modules-names): Add modstatic3.
5825         (tststatic3-ENV, tststatic4-ENV): New variables.
5826         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
5827         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
5828
5829 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
5830
5831         * configure.in (CC): Require GCC version 4.4 or later.
5832         * configure: Regenerated.
5833         * manual/install.texi (Tools for Compilation): Update GCC version
5834         requirement.
5835         * INSTALL: Regenerated.
5836
5837 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
5838
5839         [BZ #15674]
5840         * string/test-memcmp.c (check2): New.
5841         (main): Call check2.
5842
5843         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
5844
5845 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5846
5847         [BZ #15022]
5848         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
5849         over to...
5850         (dl_open_worker) [!SHARED]: ... here.
5851
5852 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5853
5854         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
5855
5856 2013-06-25  Richard Henderson  <rth@redhat.com>
5857
5858         * locale/programs/locarchive.c: Include <libc-internal.h>
5859
5860 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
5861
5862         * manual/texinfo.tex: Update to version 2013-06-21.17, with
5863         trailing whitespace removed.
5864
5865 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
5866
5867         [BZ #10283]
5868         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
5869         * locale/programs/locarchive.c: Include libc-mmap.h.
5870         (prepare_address_space): Take two new outputs (the mmap base and len).
5871         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
5872         values.
5873         (create_archive): Declare new mmap base and len values for
5874         prepare_address_space, and store the result in ah.
5875         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
5876         (enlarge_archive): If ah->mmap_base is not NULL, use that and
5877         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
5878         Declare new mmap base and len values for
5879         prepare_address_space, and store the result in new_ah.
5880         (open_archive): Declare new mmap base and len values for
5881         prepare_address_space, and store the result in ah.
5882         (close_archive): If ah->mmap_base is not NULL, use that and
5883         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
5884         * sysdeps/generic/libc-mmap.h: New file.
5885
5886 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
5887
5888         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
5889         (ALIGN_UP): Likewise.
5890         (PTR_ALIGN_DOWN): Likewise.
5891         (PTR_ALIGN_UP): Likewise.
5892
5893 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5894
5895         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
5896         entry mapped to PPC_PLATFORM_POWER8.
5897         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
5898         POWER8.
5899         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
5900         (_dl_string_platform): Add case for exporting platform position for
5901         POWER8.
5902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
5903         search path to sysdeps/powerpc/powerpc32/power8 directory.
5904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
5905         search path to sysdeps/powerpc/powerpc64/power8 directory.
5906         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
5907         power7 directories.
5908         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
5909         power7 directories.
5910
5911 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5912
5913         * INSTALL: Regenerate.
5914
5915         * nscd/connections.c (nscd_init): Fix comment.
5916
5917 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
5918
5919         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
5920
5921         [BZ #15667]
5922         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
5923         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
5924
5925 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
5926
5927         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
5928         DL_DST_REQ_STATIC.
5929         (DL_DST_REQ_STATIC): Remove macro.
5930
5931 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
5932
5933         [BZ #7006]
5934         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
5935         with a shift of 0 bits.
5936
5937 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
5938
5939         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
5940         $(tststatic-ENV).
5941
5942 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5943
5944         [BZ #15655]
5945         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
5946
5947 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5948
5949         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
5950         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
5951         accepts -fno-tree-loop-distribute-patterns.
5952         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
5953         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
5954         recursive call.
5955         * string/memset.c (memset): Likewise.
5956         * string/test-memmove.c (simple_memmove): Disable loop transformation
5957         to library calls.
5958         * string/test-memset.c (simple_memset): Likewise.
5959         * benchtests/bench-memmove.c (simple_memmove): Likewise.
5960         * benchtests/bench-memset.c (simple_memset): Likewise.
5961         * configure: Regenerated.
5962
5963 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
5964
5965         * math/test-misc.c (main): Ignore fesetround failure when failures
5966         of subsequent rounding tests would be ignored.
5967
5968         [BZ #15654]
5969         * math/fedisblxcpt.c (fedisableexcept): Return 0.
5970         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
5971         * math/fegetenv.c (__fegetenv): Return 0.
5972         * math/fegetexcept.c (fegetexcept): Return 0.
5973         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
5974         FE_TONEAREST.
5975         * math/feholdexcpt.c (feholdexcept): Return 0.
5976         * math/fesetenv.c (__fesetenv): Return 0.
5977         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
5978         argument FE_TONEAREST.
5979         * math/feupdateenv.c (__feupdateenv): Return 0.
5980         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
5981
5982 2013-06-18  Roland McGrath  <roland@hack.frob.com>
5983
5984         * elf/rtld-Rules (rtld-compile-command.S): New variable.
5985         (rtld-compile-command.s, rtld-compile-command.c): New variables.
5986         ($(objpfx)rtld-%.os rules): Use them.
5987
5988 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5989
5990         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
5991         fields.
5992
5993 2013-06-17  Roland McGrath  <roland@hack.frob.com>
5994
5995         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
5996         length of target pattern, then descending length of dependency pattern.
5997         * configure.in (AWK): Require gawk 3.1.2 or newer.
5998         * manual/install.texi (Tools for Compilation): Say that we do.
5999         * configure: Regenerated.
6000
6001         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
6002         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
6003         * scripts/sysd-rules.awk: ... this new script.
6004         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
6005         than a glob-style pattern.
6006
6007 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
6008
6009         * math/test-misc.c (main): Do not treat incorrectly rounded
6010         conversions as failure unless ROUNDING_TESTS passes.
6011
6012 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
6013
6014         [BZ #15631]
6015         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
6016         restore exception state around main square root computation, then
6017         check for inexactness explicitly.
6018
6019         * math/libm-test.inc (fma_test_data): Add another test.
6020
6021 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6022
6023         * manual/threads.texi (Non-POSIX Extensions): New document
6024         node.  Document pthread_getattr_default_np and
6025         pthread_setattr_default_np.
6026
6027         * Versions.def (libpthread): Add GLIBC_2.18.
6028         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
6029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6030         Likewise.
6031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6032         Likewise.
6033         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6034         Likewise.
6035         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6036         Likewise.
6037         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
6038         Likewise.
6039         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6040         Likewise.
6041         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6042         Likewise.
6043         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6044         Likewise.
6045         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6046         Likewise.
6047
6048 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
6049
6050         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6051         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
6052
6053 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6054             H.J. Lu  <hjl.tools@gmail.com>
6055
6056         [BZ #15627]
6057         * sysdeps/x86_64/rtld-memset.c: Remove file.
6058         * sysdeps/x86_64/rtld-memset.S: New file.
6059
6060 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
6061
6062         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
6063         (test_in_one_mode): Take arguments for whether the rounding mode
6064         is supported for each floating-point type.
6065         (do_test): Pass new arguments to test_in_one_mode using
6066         ROUNDING_TESTS.
6067
6068 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6069
6070         * posix/tst-waitid.c (do_test): Distinguish different instances of
6071         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
6072         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
6073         before entering the kernel for waitpid.
6074
6075 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6076
6077         * NEWS: Fix note on clock function precision.  Text by Roland
6078         McGrath.
6079
6080 2013-06-13  Roland McGrath  <roland@hack.frob.com>
6081
6082         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
6083         it into place only when and if the sanity check passes.
6084
6085 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
6086
6087         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
6088         output for whether conversion result is exact.  Take argument
6089         indicating whether type is IBM long double.
6090         (round_for_all): Change need_exact field to ibm_ld.
6091         * stdlib/tst-strtod-round.c (struct exactness): New type.
6092         (struct test): Change bool ld_ok field to struct exactness exact.
6093         (TEST): Update all definitions for change to field.
6094         (tests): Regenerate array contents.
6095         (test_in_one_mode): Take pointer to new field instead of old ld_ok
6096         field value.  Check for IBM long double here.
6097         (do_test): Update calls to test_in_one_mode.
6098
6099 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6100
6101         [BZ #12515]
6102         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
6103         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
6104
6105 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6106
6107         [BZ #15605]
6108         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
6109         generated by the compiler on loop optimizations.
6110         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
6111         general definitions.
6112
6113 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
6114
6115         * math/bug-nextafter.c: Include <math-tests.h>.
6116         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6117         the relevant type.
6118         * math/bug-nexttoward.c: Include <math-tests.h>.
6119         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6120         the relevant type.
6121         * math/test-misc.c: Include <math-tests.h>.
6122         (main): Only test for exceptions if EXCEPTION_TESTS is true for
6123         the relevant type.
6124
6125 2013-06-12  Andreas Jaeger  <aj@suse.de>
6126
6127         * po/ia.po: Update Interlingua translation from translation
6128         project.
6129
6130 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6131
6132         * include/fenv.h: Include stdbool.h.
6133         (struct rm_ctx): New structure.
6134         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
6135         Define macro.
6136         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
6137         (SET_RESTORE_ROUNDF): Likewise.
6138         (SET_RESTORE_ROUNDL): Likewise.
6139         (SET_RESTORE_ROUND_NOEX): Likewise.
6140         (SET_RESTORE_ROUND_NOEXF): Likewise.
6141         (SET_RESTORE_ROUND_NOEXL): Likewise.
6142         (SET_RESTORE_ROUND_53BIT): Likewise.
6143         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
6144         (libc_feresetround_noexf_ctx): Likewise.
6145         (libc_feresetround_noexl_ctx): Likewise.
6146         (libc_feholdsetround_53bit_ctx): Likewise.
6147         (libc_feresetround_53bit_ctx): Likewise.
6148         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
6149         (libc_feholdexcept_setround_sse_ctx): New function.
6150         (libc_fesetenv_sse_ctx): Likewise.
6151         (libc_feupdateenv_sse_ctx): Likewise.
6152         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
6153         (libc_feholdexcept_setround_387_ctx): Likewise.
6154         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
6155         (libc_feholdsetround_387_prec_ctx): Likewise.
6156         (libc_feholdsetround_387_ctx): Likewise.
6157         (libc_feholdsetround_387_53bit_ctx): Likewise.
6158         (libc_feholdsetround_sse_ctx): Likewise.
6159         (libc_feresetround_sse_ctx): Likewise.
6160         (libc_feresetround_387_ctx): Likewise.
6161         (libc_feupdateenv_387_ctx): Likewise.
6162         (libc_feholdexcept_setroundf_ctx): Define macro.
6163         (libc_fesetenvf_ctx): Likewise.
6164         (libc_feupdateenvf_ctx): Likewise.
6165         (libc_feholdsetroundf_ctx): Likewise.
6166         (libc_feresetroundf_ctx): Likewise.
6167         (libc_feholdexcept_setround_ctx): Likewise.
6168         (libc_fesetenv_ctx): Likewise.
6169         (libc_feupdateenv_ctx): Likewise.
6170         (libc_feholdsetround_ctx): Likewise.
6171         (libc_feresetround_ctx): Likewise.
6172         (libc_feholdexcept_setroundl_ctx): Likewise.
6173         (libc_feupdateenvl_ctx): Likewise.
6174         (libc_feholdsetroundl_ctx): Likewise.
6175         (libc_feresetroundl_ctx): Likewise.
6176         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
6177         (libc_feresetround_53bit_ctx): Likewise.
6178
6179 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6180
6181         * locale/iso-639.def: Convert to UTF-8.
6182
6183 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
6184
6185         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
6186         (EXCEPTION_TESTS_double): Likewise.
6187         (EXCEPTION_TESTS_long_double): Likewise.
6188         (EXCEPTION_TESTS): Likewise.
6189         * math/libm-test.inc (test_exceptions): Only test exceptions if
6190         EXCEPTION_TESTS (FLOAT).
6191
6192 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6193
6194         * benchtests/Makefile (string-bench): Add strcpy_chk and
6195         stpcpy_chk.
6196         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
6197         * benchtests/bench-stpcpy_chk.c: New file.
6198         * benchtests/bench-strcpy_chk-ifunc.c: New file.
6199         * benchtests/bench-strcpy_chk.c: New file.
6200         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
6201         code.
6202         (do_test): Likewise.
6203
6204 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6205
6206         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
6207         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
6208         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
6209         with tabs where appropriate.
6210         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
6211         dl-procinfo.h.
6212         [PPC_PLATFORM_PPC440]: Likewise.
6213         [PPC_PLATFORM_PPC464]: Likewise.
6214         [PPC_PLATFORM_PPC476]: Likewise.
6215         (_dl_string_platform): Add support for detecting ppc405, ppc440,
6216         ppc464, and ppc476 platform strings merging from ports/
6217         dl-procinfo.h.
6218
6219 2013-06-11  Andreas Schwab  <schwab@suse.de>
6220
6221         [BZ #14991]
6222         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
6223         (from_ucs4_idx): Regenerate.
6224         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
6225         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
6226         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
6227         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
6228         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
6229         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
6230         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
6231         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
6232         from FROM_LOOP and TO_LOOP specific macros.
6233         (BODY): Handle combining characters.
6234         * iconvdata/BIG5HKSCS.irreversible: Update.
6235         * iconvdata/BIG5HKSCS.precomposed: New file.
6236         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
6237         characters.
6238         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
6239
6240 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6241
6242         * include/sys/time.h: Fix indentation and add copyright header.
6243
6244         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
6245         (do_test): Likewise.
6246         * string/test-memchr.c (do_one_test): Likewise.
6247         (do_test): Likewise.
6248         * string/test-memcmp.c (do_one_test): Likewise.
6249         (do_test): Likewise.
6250         * string/test-memcpy.c (do_one_test): Likewise.
6251         (do_test): Likewise.
6252         * string/test-memmem.c (do_one_test): Likewise.
6253         (do_test): Likewise.
6254         (do_random_tests): Likewise.
6255         * string/test-memmove.c (do_one_test): Likewise.
6256         (do_test): Likewise.
6257         * string/test-memset.c (do_one_test): Likewise.
6258         (do_test): Likewise.
6259         * string/test-rawmemchr.c (do_one_test): Likewise.
6260         (do_test): Likewise.
6261         * string/test-strcasecmp.c (do_one_test): Likewise.
6262         (do_test): Likewise.
6263         * string/test-strcasestr.c (do_one_test): Likewise.
6264         (do_test): Likewise.
6265         * string/test-strcat.c (do_one_test): Likewise.
6266         (do_test): Likewise.
6267         * string/test-strchr.c (do_one_test): Likewise.
6268         (do_test): Likewise.
6269         * string/test-strcmp.c (do_one_test): Likewise.
6270         (do_test): Likewise.
6271         * string/test-strcpy.c (do_one_test): Likewise.
6272         (do_test): Likewise.
6273         * string/test-string.h: Likewise.
6274         (test_init): Likewise.
6275         * string/test-strlen.c (do_one_test): Likewise.
6276         (do_test): Likewise.
6277         * string/test-strncasecmp.c (do_one_test): Likewise.
6278         (do_test): Likewise.
6279         * string/test-strncat.c (do_one_test): Likewise.
6280         (do_test): Likewise.
6281         * string/test-strncmp.c (do_one_test): Likewise.
6282         (do_test_limit): Likewise.
6283         (do_test): Likewise.
6284         * string/test-strncpy.c (do_one_test): Likewise.
6285         (do_test): Likewise.
6286         * string/test-strnlen.c (do_one_test): Likewise.
6287         (do_test): Likewise.
6288         * string/test-strpbrk.c (do_one_test): Likewise.
6289         (do_test): Likewise.
6290         * string/test-strrchr.c (do_one_test): Likewise.
6291         (do_test): Likewise.
6292         * string/test-strspn.c (do_one_test): Likewise.
6293         (do_test): Likewise.
6294         * string/test-strstr.c (do_one_test): Likewise.
6295         (do_test): Likewise.
6296
6297         * benchtests/Makefile (string-bench): Add string benchmarks.
6298         * benchtests/bench-bcopy-ifunc.c: New file.
6299         * benchtests/bench-bcopy.c: New file.
6300         * benchtests/bench-bzero-ifunc.c: New file.
6301         * benchtests/bench-bzero.c: New file.
6302         * benchtests/bench-memccpy-ifunc.c: New file.
6303         * benchtests/bench-memccpy.c: New file.
6304         * benchtests/bench-memchr-ifunc.c: New file.
6305         * benchtests/bench-memchr.c: New file.
6306         * benchtests/bench-memcmp-ifunc.c: New file.
6307         * benchtests/bench-memcmp.c: New file.
6308         * benchtests/bench-memmem-ifunc.c: New file.
6309         * benchtests/bench-memmem.c: New file.
6310         * benchtests/bench-memmove-ifunc.c: New file.
6311         * benchtests/bench-memmove.c: New file.
6312         * benchtests/bench-mempcpy-ifunc.c: New file.
6313         * benchtests/bench-mempcpy.c: New file.
6314         * benchtests/bench-memset-ifunc.c: New file.
6315         * benchtests/bench-memset.c: New file.
6316         * benchtests/bench-rawmemchr-ifunc.c: New file.
6317         * benchtests/bench-rawmemchr.c: New file.
6318         * benchtests/bench-stpcpy-ifunc.c: New file.
6319         * benchtests/bench-stpcpy.c: New file.
6320         * benchtests/bench-stpncpy-ifunc.c: New file.
6321         * benchtests/bench-stpncpy.c: New file.
6322         * benchtests/bench-strcasecmp-ifunc.c: New file.
6323         * benchtests/bench-strcasecmp.c: New file.
6324         * benchtests/bench-strcasestr-ifunc.c: New file.
6325         * benchtests/bench-strcasestr.c: New file.
6326         * benchtests/bench-strcat-ifunc.c: New file.
6327         * benchtests/bench-strcat.c: New file.
6328         * benchtests/bench-strchr-ifunc.c: New file.
6329         * benchtests/bench-strchr.c: New file.
6330         * benchtests/bench-strchrnul-ifunc.c: New file.
6331         * benchtests/bench-strchrnul.c: New file.
6332         * benchtests/bench-strcmp-ifunc.c: New file.
6333         * benchtests/bench-strcmp.c: New file.
6334         * benchtests/bench-strcpy-ifunc.c: New file.
6335         * benchtests/bench-strcpy.c: New file.
6336         * benchtests/bench-strcspn-ifunc.c: New file.
6337         * benchtests/bench-strcspn.c: New file.
6338         * benchtests/bench-strlen-ifunc.c: New file.
6339         * benchtests/bench-strlen.c: New file.
6340         * benchtests/bench-strncasecmp-ifunc.c: New file.
6341         * benchtests/bench-strncasecmp.c: New file.
6342         * benchtests/bench-strncat-ifunc.c: New file.
6343         * benchtests/bench-strncat.c: New file.
6344         * benchtests/bench-strncmp-ifunc.c: New file.
6345         * benchtests/bench-strncmp.c: New file.
6346         * benchtests/bench-strncpy-ifunc.c: New file.
6347         * benchtests/bench-strncpy.c: New file.
6348         * benchtests/bench-strnlen-ifunc.c: New file.
6349         * benchtests/bench-strnlen.c: New file.
6350         * benchtests/bench-strpbrk-ifunc.c: New file.
6351         * benchtests/bench-strpbrk.c: New file.
6352         * benchtests/bench-strrchr-ifunc.c: New file.
6353         * benchtests/bench-strrchr.c: New file.
6354         * benchtests/bench-strspn-ifunc.c: New file.
6355         * benchtests/bench-strspn.c: New file.
6356         * benchtests/bench-strstr-ifunc.c: New file.
6357         * benchtests/bench-strstr.c: New file.
6358
6359         * benchtests/Makefile: Disable parallel execution of targets.
6360         (string-bench): Add memcpy.
6361         (benchset): New variable to store a list of benchmark sets.
6362         (bench-func): Renamed from bench.
6363         (bench-set): New target.
6364         (bench): Depend on bench-func and bench-set.
6365         * benchtests/README: Add section on benchmark sets.
6366         * benchtests/bench-memcpy-ifunc.c: New file.
6367         * benchtests/bench-memcpy.c: New file.
6368         * benchtests/bench-string.h: New file.
6369
6370 2013-06-11  Andreas Schwab  <schwab@suse.de>
6371
6372         [BZ #15577]
6373         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
6374         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
6375         values in the triple.
6376         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
6377         terminator in the group key.
6378
6379 2013-06-11  Andreas Jaeger  <aj@suse.de>
6380
6381         * po/zh_TW.po: Update Chinese (traditional) translation from
6382         translation project.
6383
6384 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6385
6386         * include/time.h (__clock_gettime): Add libc_hidden_proto.
6387         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
6388         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
6389         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
6390         (clock_getcpuclockid): Likewise.
6391         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
6392         Add weak_alias and libc_hidden_def.
6393         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
6394         * rt/clock_gettime.c (clock_gettime): Rename to
6395         __clock_gettime.  Add weak_alias and libc_hidden_def.
6396         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
6397         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
6398         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
6399         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
6400         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
6401         Likewise.
6402         * rt/clock_settime.c (clock_settime): Rename to
6403         __clock_settime.  Add weak_alias and libc_hidden_def.
6404         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
6405
6406 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
6407
6408         * mach/err_boot.sub: Remove trailing whitespace.
6409         * mach/err_ipc.sub: Likewise.
6410         * mach/err_mach.sub: Likewise.
6411
6412         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
6413         (ROUNDING_TESTS_double): Likewise.
6414         (ROUNDING_TESTS_long_double): Likewise.
6415         (ROUNDING_TESTS): Likewise.
6416         * math/libm-test.inc: Include <math-tests.h>.
6417         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
6418         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
6419         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
6420         (IF_ROUND_INIT_FE_UPWARD): Likewise.
6421
6422 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6423
6424         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
6425         of assigning.
6426
6427 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
6428
6429         * sysdeps/gnu/errlist.awk: Do not generate space at end of
6430         otherwise empty TRANS lines.
6431         * sysdeps/gnu/errlist.c: Regenerated.
6432
6433         * catgets/gencat.c (error_print): Use (void) in function
6434         definition.
6435         * crypt/crypt_util.c (__init_des): Likewise.
6436         * crypt/speeds.c (Stop): Likewise.
6437         (main): Likewise.
6438         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
6439         * inet/ruserpass.c (token): Likewise.
6440         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
6441         * intl/localealias.c (extend_alias_table): Likewise.
6442         * intl/plural-exp.c (init_germanic_plural): Likewise.
6443         * libio/fcloseall.c (__fcloseall): Likewise.
6444         * libio/genops.c (_IO_flush_all): Likewise.
6445         (_IO_flush_all_linebuffered): Likewise.
6446         (_IO_cleanup): Likewise.
6447         (_IO_iter_begin): Likewise.
6448         (_IO_iter_end): Likewise.
6449         (_IO_list_lock): Likewise.
6450         (_IO_list_unlock): Likewise.
6451         (_IO_list_resetlock): Likewise.
6452         * libio/getchar.c (getchar): Likewise.
6453         * libio/getchar_u.c (getchar_unlocked): Likewise.
6454         * libio/getwchar.c (getwchar): Likewise.
6455         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6456         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
6457         * login/getpt.c (__getpt): Likewise.
6458         * login/tst-utmp.c (main): Likewise.
6459         * malloc/hooks.c (__malloc_check_init): Likewise.
6460         * malloc/malloc.c (__malloc_stats): Likewise.
6461         * malloc/mtrace.c (tr_break): Likewise.
6462         (mtrace): Likewise.
6463         (muntrace): Likewise.
6464         * misc/fstab.c (endfsent): Likewise.
6465         * misc/getclktck.c (__getclktck): Likewise.
6466         * misc/getdtsz.c (__getdtablesize): Likewise.
6467         * misc/gethostid.c (gethostid): Likewise.
6468         * misc/getpagesize.c (__getpagesize): Likewise.
6469         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
6470         (__get_nprocs): Likewise.
6471         (__get_phys_pages): Likewise.
6472         (__get_avphys_pages): Likewise.
6473         * misc/getttyent.c (getttyent): Likewise.
6474         (setttyent): Likewise.
6475         (endttyent): Likewise.
6476         * misc/getusershell.c (getusershell): Likewise.
6477         (endusershell): Likewise.
6478         (setusershell): Likewise.
6479         (initshells): Likewise.
6480         * misc/hsearch.c (__hdestroy): Likewise.
6481         * misc/sync.c (sync): Likewise.
6482         * misc/syslog.c (closelog_internal): Likewise.
6483         (closelog): Likewise.
6484         * misc/ttyslot.c (ttyslot): Likewise.
6485         * misc/vhangup.c (vhangup): Likewise.
6486         * posix/fork.c (__fork): Likewise.
6487         * posix/getegid.c (__getegid): Likewise.
6488         * posix/geteuid.c (__geteuid): Likewise.
6489         * posix/getgid.c (__getgid): Likewise.
6490         * posix/getpid.c (__getpid): Likewise.
6491         * posix/getppid.c (__getppid): Likewise.
6492         * posix/getuid.c (__getuid): Likewise.
6493         * posix/pause.c (pause): Likewise.
6494         * posix/setpgrp.c (setpgrp): Likewise.
6495         * posix/setsid.c (__setsid): Likewise.
6496         * posix/test-vfork.c (noop): Likewise.
6497         * resolv/gethnamaddr.c (_endhtent): Likewise.
6498         (_gethtent): Likewise.
6499         (ht_endhostent): Likewise.
6500         (gethostent): Likewise.
6501         (dns_service): Likewise.
6502         * stdlib/drand48.c (drand48): Likewise.
6503         * stdlib/lrand48.c (lrand48): Likewise.
6504         * stdlib/mrand48.c (mrand48): Likewise.
6505         * stdlib/rand.c (rand): Likewise.
6506         * stdlib/random.c (__random): Likewise.
6507         * stdlib/setenv.c (clearenv): Likewise.
6508         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
6509         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
6510         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
6511         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
6512         (__get_nprocs): Likewise.
6513         (__get_phys_pages): Likewise.
6514         (__get_avphys_pages): Likewise.
6515         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
6516         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
6517         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
6518         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
6519         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
6520         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
6521         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
6522         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
6523         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
6524         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
6525         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
6526         * sysdeps/mach/hurd/sync.c (sync): Likewise.
6527         * sysdeps/posix/clock.c (clock): Likewise.
6528         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
6529         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
6530         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
6531         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6532         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
6533         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6534         (__get_nprocs_conf): Likewise.
6535         (__get_phys_pages): Likewise.
6536         (__get_avphys_pages): Likewise.
6537         * time/clock.c (clock): Likewise.
6538         * time/tzset.c (__tzname_max): Likewise.
6539
6540 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
6541
6542         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
6543         (__bswap_32): Do not use "register".
6544         * crypt/crypt.c (_ufc_doit_r): Likewise.
6545         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
6546         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
6547         * gmon/gmon.c (__monstartup): Likewise.
6548         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
6549         * hurd/hurdmalloc.c (more_memory): Likewise.
6550         (malloc): Likewise.
6551         (free): Likewise.
6552         (realloc): Likewise.
6553         (malloc_fork_prepare): Likewise.
6554         (malloc_fork_parent): Likewise.
6555         (malloc_fork_child): Likewise.
6556         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
6557         (_svcauth_des): Likewise.
6558         * inet/inet_lnaof.c (inet_lnaof): Likewise.
6559         * inet/inet_net.c (inet_network): Likewise.
6560         * inet/inet_netof.c (inet_netof): Likewise.
6561         * inet/rcmd.c (__validuser2_sa): Likewise.
6562         * io/fts.c (fts_open): Likewise.
6563         (fts_load): Likewise.
6564         (fts_close): Likewise.
6565         (fts_read): Likewise.
6566         (fts_children): Likewise.
6567         (fts_build): Likewise.
6568         (fts_stat): Likewise.
6569         (fts_sort): Likewise.
6570         (fts_alloc): Likewise.
6571         (fts_lfree): Likewise.
6572         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
6573         (_IO_file_xsgetn): Likewise.
6574         (_IO_file_xsgetn_mmap): Likewise.
6575         * libio/iofopncook.c (_IO_cookie_read): Likewise.
6576         (_IO_cookie_write): Likewise.
6577         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
6578         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
6579         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
6580         * malloc/obstack.c (_obstack_begin): Likewise.
6581         (_obstack_begin_1): Likewise.
6582         (_obstack_newchunk): Likewise.
6583         (_obstack_allocated_p): Likewise.
6584         (obstack_free): Likewise.
6585         (_obstack_memory_used): Likewise.
6586         * misc/getttyent.c (getttynam): Likewise.
6587         (getttyent): Likewise.
6588         (skip): Likewise.
6589         (value): Likewise.
6590         * misc/getusershell.c (initshells): Likewise.
6591         * misc/syslog.c (__vsyslog_chk): Likewise.
6592         * misc/ttyslot.c (ttyslot): Likewise.
6593         * nis/nis_hash.c (__nis_hash): Likewise.
6594         * posix/fnmatch_loop.c (FCT): Likewise.
6595         * posix/getconf.c (print_all): Likewise.
6596         (main): Likewise.
6597         * posix/getopt.c (exchange): Likewise.
6598         * posix/glob.c (globfree): Likewise.
6599         (prefix_array): Likewise.
6600         (__glob_pattern_type): Likewise.
6601         * resolv/arpa/nameser.h (NS_GET16): Likewise.
6602         (NS_GET32): Likewise.
6603         (NS_PUT16): Likewise.
6604         (NS_PUT32): Likewise.
6605         * resolv/gethnamaddr.c (getanswer): Likewise.
6606         (gethostbyname2): Likewise.
6607         (gethostbyaddr): Likewise.
6608         (_gethtent): Likewise.
6609         (_gethtbyname2): Likewise.
6610         (_gethtbyaddr): Likewise.
6611         * resolv/ns_print.c (dst_s_get_int16): Likewise.
6612         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
6613         * resolv/res_init.c (__res_vinit): Likewise.
6614         (net_mask): Likewise.
6615         * resolv/res_mkquery.c (outchar): Likewise.
6616         (PRINT): Likewise.
6617         * stdio-common/printf_fp.c (outchar): Likewise.
6618         (PRINT): Likewise.
6619         * stdio-common/printf_fphex.c (outchar): Likewise.
6620         (PRINT): Likewise.
6621         * stdio-common/printf_size.c (outchar): Likewise.
6622         (PRINT): Likewise.
6623         * stdio-common/test_rdwr.c (main): Likewise.
6624         * stdio-common/tfformat.c (matches): Likewise.
6625         * stdio-common/vfprintf.c (outchar): Likewise.
6626         (printf_unknown): Likewise.
6627         (buffered_vfprintf): Likewise.
6628         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
6629         * stdio-common/xbug.c (AppendToBuffer): Likewise.
6630         (ReadFile): Likewise.
6631         * stdlib/qsort.c (SWAP): Likewise.
6632         (_quicksort): Likewise.
6633         * stdlib/setenv.c (__add_to_environ): Likewise.
6634         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
6635         * stdlib/strtol_l.c (__strtol_l): Likewise.
6636         * stdlib/tst-strtod.c (main): Likewise.
6637         * stdlib/tst-strtol.c (main): Likewise.
6638         * stdlib/tst-strtoll.c (main): Likewise.
6639         * string/bits/string2.h (__strcmp_cc): Likewise.
6640         (__strcmp_cg): Likewise.
6641         (__strcspn_c1): Likewise.
6642         (__strcspn_c2): Likewise.
6643         (__strcspn_c3): Likewise.
6644         (__strspn_c1): Likewise.
6645         (__strspn_c2): Likewise.
6646         (__strspn_c3): Likewise.
6647         (__strsep_1c): Likewise.
6648         (__strsep_2c): Likewise.
6649         (__strsep_3c): Likewise.
6650         * string/memccpy.c (__memccpy): Likewise.
6651         * string/stpcpy.c (__stpcpy): Likewise.
6652         * string/strcmp.c (strcmp): Likewise.
6653         * string/strrchr.c (strrchr): Likewise.
6654         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
6655         Likewise.
6656         * sysdeps/mach/hurd/getcwd.c
6657         (_hurd_canonicalize_directory_name_internal): Likewise.
6658         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
6659         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
6660         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
6661         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
6662         Likewise, in both definitions.
6663         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
6664         definitions.
6665         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
6666         64] (__bswap_64): Likewise.
6667         * time/test_time.c (main): Likewise.
6668         * time/tzfile.c (__tzfile_read): Likewise.
6669         (__tzfile_compute): Likewise.
6670         * time/tzset.c (__tzset_parse_tz): Likewise.
6671         (tzset_internal): Likewise.
6672         (compute_change): Likewise.
6673         * wcsmbs/wcscat.c (__wcscat): Likewise.
6674         * wcsmbs/wcschr.c (wcschr): Likewise.
6675         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
6676         * wcsmbs/wcscspn.c (wcscspn): Likewise.
6677         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
6678         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
6679         * wcsmbs/wcsspn.c (wcsspn): Likewise.
6680         * wcsmbs/wcsstr.c (wcsstr): Likewise.
6681         * wcsmbs/wmemchr.c (wmemchr): Likewise.
6682         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6683         * wcsmbs/wmemset.c (wmemset): Likewise.
6684
6685 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
6686
6687         * scripts/config.guess: Update to version 2013-05-16.
6688         * scripts/config.sub: Update to version 2013-04-24.
6689         * scripts/install-sh: Update to version 2011-11-20.07.
6690         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
6691         * scripts/move-if-change: Update to version 2012-01-06 07:23.
6692
6693 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
6694
6695         * debug/fgetws_u_chk.c: Fix leading whitespaces.
6696         * elf/sln.c: Likewise.
6697         * hurd/hurd/ioctl.h: Likewise.
6698         * hurd/hurdmalloc.c: Likewise.
6699         * hurd/xattr.c: Likewise.
6700         * include/shlib-compat.h: Likewise.
6701         * inet/ruserpass.c: Likewise.
6702         * libio/iofgets_u.c: Likewise.
6703         * libio/iofgetws_u.c: Likewise.
6704         * locale/programs/ld-identification.c: Likewise.
6705         * locale/programs/ld-time.c: Likewise.
6706         * mach/msg-destroy.c: Likewise.
6707         * nss/nss_files/files-netgrp.c: Likewise.
6708         * resolv/res_data.c: Likewise.
6709         * soft-fp/op-1.h: Likewise.
6710         * soft-fp/op-2.h: Likewise.
6711         * soft-fp/op-4.h: Likewise.
6712         * soft-fp/op-common.h: Likewise.
6713         * stdio-common/printf_fphex.c: Likewise.
6714         * stdlib/strtod_l.c: Likewise.
6715         * sunrpc/rpc/clnt.h: Likewise.
6716         * sysdeps/generic/framestate.c: Likewise.
6717         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6718         * sysdeps/i386/bsd-setjmp.S: Likewise.
6719         * sysdeps/i386/__longjmp.S: Likewise.
6720         * sysdeps/i386/setjmp.S: Likewise.
6721         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6722         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6723         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6724         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6725         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6726         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
6727         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6728         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6729         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6730         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
6731         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
6732         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6733         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6734         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6735         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6736         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6737         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6738         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
6739         * sysdeps/ieee754/support.c: Likewise.
6740         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
6741         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
6742         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
6743         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
6744         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
6745         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
6746         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
6747         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
6748         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
6749         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
6750         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
6751         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
6752         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
6753         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
6754         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
6755         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
6756         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
6757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
6758
6759 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
6760
6761         * posix/transbug.c: Remove executable mode.
6762
6763 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
6764
6765         * crypt/speeds.c: Remove trailing whitespace.
6766         * dlfcn/default.c: Likewise.
6767         * elf/ifuncdep2.c: Likewise.
6768         * elf/ifuncmain1.c: Likewise.
6769         * elf/ifuncmain1vis.c: Likewise.
6770         * elf/testobj.h: Likewise.
6771         * elf/tst-stackguard1.c: Likewise.
6772         * gmon/sys/gmon.h: Likewise.
6773         * hurd/hurdmsg.c: Likewise.
6774         * hurd/new-fd.c: Likewise.
6775         * hurd/ports-get.c: Likewise.
6776         * iconvdata/ibm1008_420.c: Likewise.
6777         * inet/tst-getni1.c: Likewise.
6778         * inet/tst-getni2.c: Likewise.
6779         * libio/ioungetc.c: Likewise.
6780         * libio/wfiledoalloc.c: Likewise.
6781         * manual/libm-err-tab.pl: Likewise.
6782         * math/w_dremf.c: Likewise.
6783         * misc/ftruncate.c: Likewise.
6784         * posix/bug-glob2.c: Likewise.
6785         * posix/tst-pcre.c: Likewise.
6786         * posix/wait4.c: Likewise.
6787         * resolv/README: Likewise.
6788         * resolv/res_debug.h: Likewise.
6789         * resolv/tst-inet_ntop.c: Likewise.
6790         * setjmp/bug269-setjmp.c: Likewise.
6791         * soft-fp/extended.h: Likewise.
6792         * soft-fp/op-1.h: Likewise.
6793         * soft-fp/op-2.h: Likewise.
6794         * soft-fp/op-4.h: Likewise.
6795         * soft-fp/op-8.h: Likewise.
6796         * soft-fp/testit.c: Likewise.
6797         * stdio-common/bug16.c: Likewise.
6798         * stdlib/random.c: Likewise.
6799         * sunrpc/rpcsvc/rquota.x: Likewise.
6800         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
6801         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6802         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6803         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6804         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6805         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6806         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6807         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6808         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6809         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6810         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6811         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
6812         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6813         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
6814         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6815         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
6816         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
6817         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6818         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
6819         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6820         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6821         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6822         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
6823         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
6824         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
6825         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
6826         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
6827         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
6828         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6829         * sysdeps/ieee754/s_lib_version.c: Likewise.
6830         * sysdeps/mach/hurd/check_fds.c: Likewise.
6831         * sysdeps/mach/hurd/getsockname.c: Likewise.
6832         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
6833         * sysdeps/mach/hurd/recvfrom.c: Likewise.
6834         * sysdeps/powerpc/bits/link.h: Likewise.
6835         * sysdeps/powerpc/dl-procinfo.c: Likewise.
6836         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
6837         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
6838         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
6839         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
6840         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6841         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
6842         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
6843         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
6844         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
6845         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
6846         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
6847         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
6848         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
6849         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
6850         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
6851         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
6852         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
6853         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
6854         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
6855         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
6856         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
6857         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
6858         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
6859         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6860         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
6861         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
6862         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
6863         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
6864         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
6865         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
6866         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
6867         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6868         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
6869         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
6870         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
6871         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
6872         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
6873         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
6874         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
6875         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
6876         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
6877         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
6878         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
6879         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
6880         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
6881         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
6882         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
6883         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
6884         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
6885         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6886         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6887         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6888         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6889         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
6890         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
6891         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
6892         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
6893         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
6894         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
6895         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
6896         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
6897         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
6898         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
6899         * sysdeps/powerpc/sysdep.h: Likewise.
6900         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6901         * sysdeps/s390/s390-64/sub_n.S: Likewise.
6902         * sysdeps/sh/dl-trampoline.S: Likewise.
6903         * sysdeps/sh/memset.S: Likewise.
6904         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
6905         * sysdeps/sh/strlen.S: Likewise.
6906         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
6907         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
6908         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
6909         * sysdeps/sparc/sparc32/rem.S: Likewise.
6910         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
6911         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
6912         * sysdeps/sparc/sparc32/strchr.S: Likewise.
6913         * sysdeps/sparc/sparc32/udiv.S: Likewise.
6914         * sysdeps/sparc/sparc32/urem.S: Likewise.
6915         * sysdeps/sparc/sparc64/add_n.S: Likewise.
6916         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
6917         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
6918         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
6919         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
6920         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
6921         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
6922         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
6923         * sysdeps/unix/bsd/times.c: Likewise.
6924         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
6925         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
6926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
6927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
6928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
6929         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6930         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
6931         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
6932         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
6933         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
6934         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
6935         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
6936         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
6937         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
6938         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
6939         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
6940         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6941         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6942         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
6943         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
6944         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
6945         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
6946         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
6947         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
6948         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
6949         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
6950         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
6951         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6952         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
6953         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
6954         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
6955         * sysdeps/x86_64/strcspn.S: Likewise.
6956
6957 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6958
6959         * locale/C-translit.h: Revert #include <stdint.h> because this is a
6960         generated file.  Regenerate properly from gen-translit.pl.
6961         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
6962         locale/C-translit.h.
6963
6964 2013-06-05  Andreas Schwab  <schwab@suse.de>
6965
6966         [BZ #15100]
6967         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
6968         week as 6 instead of -1.
6969         * time/tst-strptime.c (day_tests): Add test case.
6970
6971 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
6972
6973         * sysdeps/generic/math_private.h
6974         (libc_feholdexcept_setround_53bit): Replace with
6975         libc_feholdsetround_53bit.
6976         (libc_feupdateenv_53bit): Replace with
6977         libc_feresetround_53bit.
6978         (SET_RESTORE_ROUND_53BIT): Adjust.
6979
6980 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6981
6982         * string/test-strchrnul.c: Add copyright header.
6983
6984         * posix/tst-getaddrinfo4.c: Increase test timeout.
6985
6986 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
6987
6988         [BZ #15536]
6989         * math/libm-test.inc (MAX_EXP): Remove
6990         (MIN_EXP): Define.
6991         (ulp): Use MIN_EXP - MANT_DIG.
6992         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
6993
6994 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
6995
6996         * po/be.po: Revert last change.
6997         * po/zh_CN.po: Likewise.
6998         * po/header.pot: Likewise.
6999
7000 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
7001
7002         * Makefile ($(common-objpfx)linkobj/libc.so): Define
7003         link-libc-deps to empty as target-specific variable.
7004         * Makerules (link-libc-args): New variable.
7005         (libc-for-link): Likewise.
7006         (link-libc-deps): Likewise.
7007         (lib%.so): Depend on $(link-libc-deps).  Link with
7008         $(link-libc-args).
7009         (build-module): Link with $(link-libc-args).
7010         (build-module-asneeded): Likewise.
7011         (build-module-helper-objlist): Filter out $(link-libc-deps) from
7012         list of objects.
7013         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
7014         target-specific variable.
7015         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
7016         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
7017         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
7018         libc.
7019         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
7020         libc and ld.so.
7021         ($(objpfx)libpcprofile.so): Likewise.
7022         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
7023         libc_nonshared.a.
7024         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
7025         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
7026         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
7027         $(link-libc-deps).
7028         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
7029         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
7030         * login/Makefile ($(objpfx)libutil.so): Likewise.
7031         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
7032         * math/Makefile ($(objpfx)libm.so): Likewise.
7033         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
7034         $(objpfx)libnsl.so): Define libc-for-link as target-specific
7035         variable instead of depending directly on libc.
7036         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
7037         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
7038         $(link-libc-deps).
7039         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
7040         libc.
7041         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
7042         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
7043         ($(objpfx)libanl.so): Likewise.
7044         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
7045         ld.so.
7046         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
7047         $(link-libc-deps).
7048         * sysdeps/i386/fpu/Makefile: Remove file.
7049         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
7050         ($(objpfx)libm.so): Remove dependency on ld.so.
7051
7052 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
7053
7054         [BZ # 15553]
7055         * nis/yp_xdr.c (XDRMAXNAME): Define.
7056         (XDRMAXRECORD): Define.
7057         (xdr_domainname): Use XDRMAXNAME.
7058         (xdr_mapname): Likewise.
7059         (xdr_peername): Likewise.
7060         (xdr_keydat): Use XDRMAXRECORD.
7061         (xdr_valdat): Likewise.
7062
7063 2013-05-30  Jeff Law  <law@redhat.com>
7064
7065         [BZ #14256]
7066         * manual/errno.texi (ESTALE): Update to account for more than
7067         just NFS file systems.
7068         * sysdeps/gnu/errlist.c: Regenerated.
7069
7070 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7071
7072         [BZ #15465]
7073         * elf/Makefile (tests): Add tst-null-argv.
7074         (modules-names):  Add tst-null-argv-lib.
7075         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
7076         (tst-null-argv-ENV): Set environment for tst-null-argv.
7077         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
7078         (RTLD_PROGNAME): New macro.
7079         * elf/tst-null-argv.c: New test case.
7080         * elf/tst-null-argv-lib.c: Library for test case.
7081         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
7082         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
7083         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
7084         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
7085         * elf/dl-init.c (call_init): Likewise.
7086         (_dl_init): Likewise.
7087         * elf/dl-load.c (print_search_path): Likewise.
7088         (_dl_map_object): Likewise.
7089         * elf/dl-lookup.c (do_lookup_x): Likewise.
7090         (add_dependency): Likewise.
7091         (_dl_lookup_symbol_x): Likewise.
7092         (_dl_debug_bindings): Likewise.
7093         * elf/dl-open.c (_dl_show_scope): Likewise.
7094         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7095         * elf/dl-version.c (match_symbol): Likewise.
7096         (_dl_check_map_versions): Likewise.
7097         * elf/rtld.c (dl_main): Likewise.
7098         (print_unresolved): Use RTLD_PROGNAME.
7099         (print_missing_version): Likewise.
7100         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7101         (elf_machine_rela): Likewise.
7102         * sysdeps/powerpc/powerpc32/dl-machine.c
7103         (__process_machine_rela): Likewise.
7104         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7105         Likewise.
7106         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
7107         Likewise.
7108         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
7109         Likewise.
7110         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7111         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
7112         Likewise.
7113         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
7114         Likewise.
7115         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7116
7117 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
7118
7119         * po/be.po: Add descriptive title.
7120         * po/zh_CN.po: Likewise.
7121         * po/header.pot: Likewise.
7122
7123 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
7124
7125         * locale/programs/locarchive.c (create_archive): Inlucde fname in
7126         error message.
7127         (enlarge_archive): Likewise.
7128
7129 2013-05-28  Ben North  <ben@redfrontdoor.org>
7130
7131         * manual/arith.texi (frexp): It is the magnitude of the return
7132         value which lies in [0.5, 1), not the return value itself.
7133
7134 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7135
7136         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7137
7138 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
7139
7140         * stdio-common/bug26.c (main): Correct fscanf template.
7141
7142         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
7143         declare _dl_skip_args.
7144
7145         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
7146         Don't declare.
7147
7148         * manual/platform.texi: Add missing @end deftypefun.
7149
7150 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7151
7152         [BZ #15529]
7153         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
7154         bit of mantissa of 2^16382.
7155         * math/libm-test.inc (hypot_test_data): Add more tests.
7156
7157         * math/libm-test.inc: Add drem and pow10 to list of tested
7158         functions.
7159         (pow10_test): New function.
7160         (drem_test): Likewise.
7161         (drem_test_tonearest): Likewise.
7162         (drem_test_towardzero): Likewise.
7163         (drem_test_downward): Likewise.
7164         (drem_test_upward): Likewise.
7165         (main): Call the new functions.
7166
7167         * math/libm-test.inc (finite_test_data): Remove.
7168         (finite_test): Run tests from isfinite_test_data.
7169         (gamma_test_data): Remove.
7170         (gamma_test): Run tests from lgamma_test_data.
7171         * sysdeps/i386/fpu/libm-test-ulps: Update.
7172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7173
7174 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7175
7176         * manual/platform.texi: Add PowerPC PPR function set documentation.
7177         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
7178         implementation.
7179
7180 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
7181
7182         * math/libm-test.inc (MAX_EXP): Define.
7183         (ULPDIFF): Define.
7184         (ulp): New function.
7185         (check_float_internal): Use ULPDIFF.
7186         (cpow_test): Disable failing test.
7187         (check_ulp): Test ulp() implemetnation.
7188         (main): Call check_ulp before starting tests.
7189
7190 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
7191
7192         * math/gen-libm-test.pl (generate_testfile): Do not handle
7193         START_DATA and END_DATA.
7194         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
7195         END_DATA.
7196         (acos_tonearest_test_data): Likewise.
7197         (acos_towardzero_test_data): Likewise.
7198         (acos_downward_test_data): Likewise.
7199         (acos_upward_test_data): Likewise.
7200         (acosh_test_data): Likewise.
7201         (asin_test_data): Likewise.
7202         (asin_tonearest_test_data): Likewise.
7203         (asin_towardzero_test_data): Likewise.
7204         (asin_downward_test_data): Likewise.
7205         (asin_upward_test_data): Likewise.
7206         (asinh_test_data): Likewise.
7207         (atan_test_data): Likewise.
7208         (atanh_test_data): Likewise.
7209         (atan2_test_data): Likewise.
7210         (cabs_test_data): Likewise.
7211         (cacos_test_data): Likewise.
7212         (cacosh_test_data): Likewise.
7213         (carg_test_data): Likewise.
7214         (casin_test_data): Likewise.
7215         (casinh_test_data): Likewise.
7216         (catan_test_data): Likewise.
7217         (catanh_test_data): Likewise.
7218         (cbrt_test_data): Likewise.
7219         (ccos_test_data): Likewise.
7220         (ccosh_test_data): Likewise.
7221         (ceil_test_data): Likewise.
7222         (cexp_test_data): Likewise.
7223         (cimag_test_data): Likewise.
7224         (clog_test_data): Likewise.
7225         (clog10_test_data): Likewise.
7226         (conj_test_data): Likewise.
7227         (copysign_test_data): Likewise.
7228         (cos_test_data): Likewise.
7229         (cos_tonearest_test_data): Likewise.
7230         (cos_towardzero_test_data): Likewise.
7231         (cos_downward_test_data): Likewise.
7232         (cos_upward_test_data): Likewise.
7233         (cosh_test_data): Likewise.
7234         (cosh_tonearest_test_data): Likewise.
7235         (cosh_towardzero_test_data): Likewise.
7236         (cosh_downward_test_data): Likewise.
7237         (cosh_upward_test_data): Likewise.
7238         (cpow_test_data): Likewise.
7239         (cproj_test_data): Likewise.
7240         (creal_test_data): Likewise.
7241         (csin_test_data): Likewise.
7242         (csinh_test_data): Likewise.
7243         (csqrt_test_data): Likewise.
7244         (ctan_test_data): Likewise.
7245         (ctan_tonearest_test_data): Likewise.
7246         (ctan_towardzero_test_data): Likewise.
7247         (ctan_downward_test_data): Likewise.
7248         (ctan_upward_test_data): Likewise.
7249         (ctanh_test_data): Likewise.
7250         (ctanh_tonearest_test_data): Likewise.
7251         (ctanh_towardzero_test_data): Likewise.
7252         (ctanh_downward_test_data): Likewise.
7253         (ctanh_upward_test_data): Likewise.
7254         (erf_test_data): Likewise.
7255         (erfc_test_data): Likewise.
7256         (exp_test_data): Likewise.
7257         (exp_tonearest_test_data): Likewise.
7258         (exp_towardzero_test_data): Likewise.
7259         (exp_downward_test_data): Likewise.
7260         (exp_upward_test_data): Likewise.
7261         (exp10_test_data): Likewise.
7262         (exp2_test_data): Likewise.
7263         (expm1_test_data): Likewise.
7264         (fabs_test_data): Likewise.
7265         (fdim_test_data): Likewise.
7266         (finite_test_data): Likewise.
7267         (floor_test_data): Likewise.
7268         (fma_test_data): Likewise.
7269         (fma_towardzero_test_data): Likewise.
7270         (fma_downward_test_data): Likewise.
7271         (fma_upward_test_data): Likewise.
7272         (fmax_test_data): Likewise.
7273         (fmin_test_data): Likewise.
7274         (fmod_test_data): Likewise.
7275         (fpclassify_test_data): Likewise.
7276         (frexp_test_data): Likewise.
7277         (gamma_test_data): Likewise.
7278         (hypot_test_data): Likewise.
7279         (ilogb_test_data): Likewise.
7280         (isfinite_test_data): Likewise.
7281         (isgreater_test_data): Likewise.
7282         (isgreaterequal_test_data): Likewise.
7283         (isinf_test_data): Likewise.
7284         (isless_test_data): Likewise.
7285         (islessequal_test_data): Likewise.
7286         (islessgreater_test_data): Likewise.
7287         (isnan_test_data): Likewise.
7288         (isnormal_test_data): Likewise.
7289         (issignaling_test_data): Likewise.
7290         (isunordered_test_data): Likewise.
7291         (j0_test_data): Likewise.
7292         (j1_test_data): Likewise.
7293         (jn_test_data): Likewise.
7294         (ldexp_test_data): Likewise.
7295         (lgamma_test_data): Likewise.
7296         (lrint_test_data): Likewise.
7297         (lrint_tonearest_test_data): Likewise.
7298         (lrint_towardzero_test_data): Likewise.
7299         (lrint_downward_test_data): Likewise.
7300         (lrint_upward_test_data): Likewise.
7301         (llrint_test_data): Likewise.
7302         (llrint_tonearest_test_data): Likewise.
7303         (llrint_towardzero_test_data): Likewise.
7304         (llrint_downward_test_data): Likewise.
7305         (llrint_upward_test_data): Likewise.
7306         (log_test_data): Likewise.
7307         (log10_test_data): Likewise.
7308         (log1p_test_data): Likewise.
7309         (log2_test_data): Likewise.
7310         (logb_test_data): Likewise.
7311         (logb_downward_test_data): Likewise.
7312         (lround_test_data): Likewise.
7313         (llround_test_data): Likewise.
7314         (modf_test_data): Likewise.
7315         (nearbyint_test_data): Likewise.
7316         (nextafter_test_data): Likewise.
7317         (nexttoward_test_data): Likewise.
7318         (pow_test_data): Likewise.
7319         (pow_tonearest_test_data): Likewise.
7320         (pow_towardzero_test_data): Likewise.
7321         (pow_downward_test_data): Likewise.
7322         (pow_upward_test_data): Likewise.
7323         (remainder_test_data): Likewise.
7324         (remainder_tonearest_test_data): Likewise.
7325         (remainder_towardzero_test_data): Likewise.
7326         (remainder_downward_test_data): Likewise.
7327         (remainder_upward_test_data): Likewise.
7328         (remquo_test_data): Likewise.
7329         (rint_test_data): Likewise.
7330         (rint_tonearest_test_data): Likewise.
7331         (rint_towardzero_test_data): Likewise.
7332         (rint_downward_test_data): Likewise.
7333         (rint_upward_test_data): Likewise.
7334         (round_test_data): Likewise.
7335         (scalb_test_data): Likewise.
7336         (scalbn_test_data): Likewise.
7337         (scalbln_test_data): Likewise.
7338         (signbit_test_data): Likewise.
7339         (sin_test_data): Likewise.
7340         (sin_tonearest_test_data): Likewise.
7341         (sin_towardzero_test_data): Likewise.
7342         (sin_downward_test_data): Likewise.
7343         (sin_upward_test_data): Likewise.
7344         (sincos_test_data): Likewise.
7345         (sinh_test_data): Likewise.
7346         (sinh_tonearest_test_data): Likewise.
7347         (sinh_towardzero_test_data): Likewise.
7348         (sinh_downward_test_data): Likewise.
7349         (sinh_upward_test_data): Likewise.
7350         (sqrt_test_data): Likewise.
7351         (tan_test_data): Likewise.
7352         (tan_tonearest_test_data): Likewise.
7353         (tan_towardzero_test_data): Likewise.
7354         (tan_downward_test_data): Likewise.
7355         (tan_upward_test_data): Likewise.
7356         (tanh_test_data): Likewise.
7357         (tgamma_test_data): Likewise.
7358         (trunc_test_data): Likewise.
7359         (y0_test_data): Likewise.
7360         (y1_test_data): Likewise.
7361         (yn_test_data): Likewise.
7362         (significand_test_data): Likewise.
7363
7364         * math/gen-libm-test.pl (@functions): Remove variable.
7365         (generate_testfile): Don't handle START and END lines.
7366         * math/libm-test.inc (START): New macro.
7367         (END): Likewise.
7368         (END_COMPLEX): Likewise.
7369         (acos_test): Use END macro without arguments.
7370         (acos_test_tonearest): Likewise.
7371         (acos_test_towardzero): Likewise.
7372         (acos_test_downward): Likewise.
7373         (acos_test_upward): Likewise.
7374         (acosh_test): Likewise.
7375         (asin_test): Likewise.
7376         (asin_test_tonearest): Likewise.
7377         (asin_test_towardzero): Likewise.
7378         (asin_test_downward): Likewise.
7379         (asin_test_upward): Likewise.
7380         (asinh_test): Likewise.
7381         (atan_test): Likewise.
7382         (atanh_test): Likewise.
7383         (atan2_test): Likewise.
7384         (cabs_test): Likewise.
7385         (cacos_test): Use END_COMPLEX macro without arguments.
7386         (cacosh_test): Likewise.
7387         (carg_test): Use END macro without arguments.
7388         (casin_test): Use END_COMPLEX macro without arguments.
7389         (casinh_test): Likewise.
7390         (catan_test): Likewise.
7391         (catanh_test): Likewise.
7392         (cbrt_test): Use END macro without arguments.
7393         (ccos_test): Use END_COMPLEX macro without arguments.
7394         (ccosh_test): Likewise.
7395         (ceil_test): Use END macro without arguments.
7396         (cexp_test): Use END_COMPLEX macro without arguments.
7397         (cimag_test): Use END macro without arguments.
7398         (clog_test): Use END_COMPLEX macro without arguments.
7399         (clog10_test): Likewise.
7400         (conj_test): Likewise.
7401         (copysign_test): Use END macro without arguments.
7402         (cos_test): Likewise.
7403         (cos_test_tonearest): Likewise.
7404         (cos_test_towardzero): Likewise.
7405         (cos_test_downward): Likewise.
7406         (cos_test_upward): Likewise.
7407         (cosh_test): Likewise.
7408         (cosh_test_tonearest): Likewise.
7409         (cosh_test_towardzero): Likewise.
7410         (cosh_test_downward): Likewise.
7411         (cosh_test_upward): Likewise.
7412         (cpow_test): Use END_COMPLEX macro without arguments.
7413         (cproj_test): Likewise.
7414         (creal_test): Use END macro without arguments.
7415         (csin_test): Use END_COMPLEX macro without arguments.
7416         (csinh_test): Likewise.
7417         (csqrt_test): Likewise.
7418         (ctan_test): Likewise.
7419         (ctan_test_tonearest): Likewise.
7420         (ctan_test_towardzero): Likewise.
7421         (ctan_test_downward): Likewise.
7422         (ctan_test_upward): Likewise.
7423         (ctanh_test): Likewise.
7424         (ctanh_test_tonearest): Likewise.
7425         (ctanh_test_towardzero): Likewise.
7426         (ctanh_test_downward): Likewise.
7427         (ctanh_test_upward): Likewise.
7428         (erf_test): Use END macro without arguments.
7429         (erfc_test): Likewise.
7430         (exp_test): Likewise.
7431         (exp_test_tonearest): Likewise.
7432         (exp_test_towardzero): Likewise.
7433         (exp_test_downward): Likewise.
7434         (exp_test_upward): Likewise.
7435         (exp10_test): Likewise.
7436         (exp2_test): Likewise.
7437         (expm1_test): Likewise.
7438         (fabs_test): Likewise.
7439         (fdim_test): Likewise.
7440         (finite_test): Likewise.
7441         (floor_test): Likewise.
7442         (fma_test): Likewise.
7443         (fma_test_towardzero): Likewise.
7444         (fma_test_downward): Likewise.
7445         (fma_test_upward): Likewise.
7446         (fmax_test): Likewise.
7447         (fmin_test): Likewise.
7448         (fmod_test): Likewise.
7449         (fpclassify_test): Likewise.
7450         (frexp_test): Likewise.
7451         (gamma_test): Likewise.
7452         (hypot_test): Likewise.
7453         (ilogb_test): Likewise.
7454         (isfinite_test): Likewise.
7455         (isgreater_test): Likewise.
7456         (isgreaterequal_test): Likewise.
7457         (isinf_test): Likewise.
7458         (isless_test): Likewise.
7459         (islessequal_test): Likewise.
7460         (islessgreater_test): Likewise.
7461         (isnan_test): Likewise.
7462         (isnormal_test): Likewise.
7463         (issignaling_test): Likewise.
7464         (isunordered_test): Likewise.
7465         (j0_test): Likewise.
7466         (j1_test): Likewise.
7467         (jn_test): Likewise.
7468         (ldexp_test): Likewise.
7469         (lgamma_test): Likewise.
7470         (lrint_test): Likewise.
7471         (lrint_test_tonearest): Likewise.
7472         (lrint_test_towardzero): Likewise.
7473         (lrint_test_downward): Likewise.
7474         (lrint_test_upward): Likewise.
7475         (llrint_test): Likewise.
7476         (llrint_test_tonearest): Likewise.
7477         (llrint_test_towardzero): Likewise.
7478         (llrint_test_downward): Likewise.
7479         (llrint_test_upward): Likewise.
7480         (log_test): Likewise.
7481         (log10_test): Likewise.
7482         (log1p_test): Likewise.
7483         (log2_test): Likewise.
7484         (logb_test): Likewise.
7485         (logb_test_downward): Likewise.
7486         (lround_test): Likewise.
7487         (llround_test): Likewise.
7488         (modf_test): Likewise.
7489         (nearbyint_test): Likewise.
7490         (nextafter_test): Likewise.
7491         (nexttoward_test): Likewise.
7492         (pow_test): Likewise.
7493         (pow_test_tonearest): Likewise.
7494         (pow_test_towardzero): Likewise.
7495         (pow_test_downward): Likewise.
7496         (pow_test_upward): Likewise.
7497         (remainder_test): Likewise.
7498         (remainder_test_tonearest): Likewise.
7499         (remainder_test_towardzero): Likewise.
7500         (remainder_test_downward): Likewise.
7501         (remainder_test_upward): Likewise.
7502         (remquo_test): Likewise.
7503         (rint_test): Likewise.
7504         (rint_test_tonearest): Likewise.
7505         (rint_test_towardzero): Likewise.
7506         (rint_test_downward): Likewise.
7507         (rint_test_upward): Likewise.
7508         (round_test): Likewise.
7509         (scalb_test): Likewise.
7510         (scalbn_test): Likewise.
7511         (scalbln_test): Likewise.
7512         (signbit_test): Likewise.
7513         (sin_test): Likewise.
7514         (sin_test_tonearest): Likewise.
7515         (sin_test_towardzero): Likewise.
7516         (sin_test_downward): Likewise.
7517         (sin_test_upward): Likewise.
7518         (sincos_test): Likewise.
7519         (sinh_test): Likewise.
7520         (sinh_test_tonearest): Likewise.
7521         (sinh_test_towardzero): Likewise.
7522         (sinh_test_downward): Likewise.
7523         (sinh_test_upward): Likewise.
7524         (sqrt_test): Likewise.
7525         (tan_test): Likewise.
7526         (tan_test_tonearest): Likewise.
7527         (tan_test_towardzero): Likewise.
7528         (tan_test_downward): Likewise.
7529         (tan_test_upward): Likewise.
7530         (tanh_test): Likewise.
7531         (tgamma_test): Likewise.
7532         (trunc_test): Likewise.
7533         (y0_test): Likewise.
7534         (y1_test): Likewise.
7535         (yn_test): Likewise.
7536         (significand_test): Likewise.
7537
7538 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
7539
7540         [BZ #15381]
7541         * libio/genops.c (_IO_no_init): Initialize wide struct info.
7542
7543 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7544
7545         [BZ #14894]
7546         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
7547         __ppc_mdoio and __ppc_mdoom.
7548         * manual/platform.texi: Document new functions __ppc_yield,
7549         __ppc_mdoio and __ppc_mdoom.
7550
7551 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
7552
7553         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
7554         (main): Mention "tls" pseudo-hwcap is legacy.
7555         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
7556
7557 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
7558
7559         * math/gen-libm-test.pl (parse_args): Output only string of
7560         arguments as text for test name, not full call or descriptions of
7561         tests for extra outputs.
7562         (generate_testfile): Do not pass function name to parse_args.
7563         Generate this_func variable from START.
7564         * math/libm-test.inc (struct test_f_f_data): Rename test_name
7565         field to arg_str.
7566         (struct test_ff_f_data): Likewise.
7567         (test_ff_f_data_nexttoward): Likewise.
7568         (struct test_fi_f_data): Likewise.
7569         (struct test_fl_f_data): Likewise.
7570         (struct test_if_f_data): Likewise.
7571         (struct test_fff_f_data): Likewise.
7572         (struct test_c_f_data): Likewise.
7573         (struct test_f_f1_data): Likewise.  Remove field extra_name.
7574         (struct test_fF_f1_data): Likewise.
7575         (struct test_ffI_f1_data): Likewise.
7576         (struct test_c_c_data): Rename test_name field to arg_str.
7577         (struct test_cc_c_data): Likewise.
7578         (struct test_f_i_data): Likewise.
7579         (struct test_ff_i_data): Likewise.
7580         (struct test_f_l_data): Likewise.
7581         (struct test_f_L_data): Likewise.
7582         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
7583         and extra2_name.
7584         (COMMON_TEST_SETUP): New macro.
7585         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
7586         (COMMON_TEST_CLEANUP): Likewise.
7587         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
7588         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
7589         macros.
7590         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
7591         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
7592         macros.
7593         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
7594         (RUN_TEST_fff_f): Take argument string.  Call new setup and
7595         cleanup macros.
7596         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
7597         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
7598         macros.
7599         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
7600         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
7601         macros.
7602         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
7603         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
7604         cleanup macros.
7605         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
7606         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
7607         cleanup macros.
7608         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
7609         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
7610         cleanup macros.
7611         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
7612         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
7613         macros.
7614         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
7615         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
7616         macros.
7617         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
7618         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
7619         macros.
7620         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
7621         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
7622         cleanup macros.
7623         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
7624         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
7625         cleanup macros.
7626         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
7627         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
7628         macros.
7629         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
7630         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
7631         cleanup macros.
7632         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
7633         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
7634         macros.
7635         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
7636         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
7637         macros.
7638         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
7639         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
7640         cleanup macros.
7641         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
7642
7643 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
7644
7645         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
7646         to _sifields.sigfault.
7647         (si_addr_lsb): Define new macro.
7648         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
7649         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7650         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
7651
7652 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
7653
7654         [BZ #15441]
7655         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
7656         returns -1.
7657         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
7658         null return -1.
7659         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
7660         loading the domain.
7661
7662 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
7663
7664         * math/gen-libm-test.pl (parse_args): Do not include expected
7665         result in test name.
7666         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
7667         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7668         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7669         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7670         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7672
7673 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7674
7675         * benchtests/Makefile: Sort function entries.
7676
7677         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
7678         tanh, asinh, acosh, atanh.
7679         * benchtests/acos-inputs: New file.
7680         * benchtests/acosh-inputs: New file.
7681         * benchtests/asin-inputs: New file.
7682         * benchtests/asinh-inputs: New file.
7683         * benchtests/atanh-inputs: New file.
7684         * benchtests/cosh-inputs: New file.
7685         * benchtests/log-inputs: New file.
7686         * benchtests/sinh-inputs: New file.
7687         * benchtests/tanh-inputs: New file.
7688
7689 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
7690
7691         [BZ #15339]
7692         * posix/tst-getaddrinfo4.c: New test.
7693         * posix/Makefile (tests): Add it.
7694
7695 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7696
7697         [BZ #15339]
7698         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
7699         when no services were used.
7700         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
7701         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
7702
7703 2013-05-21  Andreas Schwab  <schwab@suse.de>
7704
7705         [BZ #15014]
7706         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
7707         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
7708         successful.
7709         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
7710         redundant variable declarations and reallocation of buffer when
7711         parsing as IPv6 address.  Always set NSS status when called from
7712         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
7713         buffer too small.  Correct computation of needed size.
7714         * nss/Makefile (tests): Add test-digits-dots.
7715         * nss/test-digits-dots.c: New test.
7716
7717 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7718
7719         * benchtests/Makefile: Remove instructions for adding
7720         benchmark tests.
7721         * benchtests/README: New file to explain how to execute and
7722         enhance the benchmark tests.
7723
7724 2013-05-21  Andreas Schwab  <schwab@suse.de>
7725
7726         [BZ #15493]
7727         * setjmp/Makefile (tests): Add tst-sigsetjmp.
7728         * setjmp/tst-sigsetjmp.c: New test.
7729
7730 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
7731
7732         * sysdeps/x86_64/memset.S (memset): New implementation.
7733         (__bzero): Likewise.
7734         (__memset_tail): New function.
7735
7736 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
7737
7738         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
7739         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
7740         __memcpy_sse2_unaligned ifunc selection.
7741         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7742         Add memcpy-sse2-unaligned.S.
7743         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7744         Add: __memcpy_sse2_unaligned.
7745
7746 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
7747
7748         [BZ #15490]
7749         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
7750         math_force_eval before restoring floating-point envrionment.
7751         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
7752         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
7753         Likewise.
7754         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
7755         <math_private.h>.
7756         (__nearbyintl): Use math_force_eval before restoring
7757         floating-point environment.
7758         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
7759
7760         * math/gen-libm-test.pl (special_functions): Remove.
7761         (parse_args): Don't handle TEST_extra.  Handle functions with no
7762         return value.
7763         * math/libm-test.inc (struct test_sincos_data): Replace with
7764         struct test_fFF_11_data.
7765         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
7766         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
7767         (sincos_test_data): Change element type to struct
7768         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
7769         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
7770         RUN_TEST_LOOP_sincos.
7771         * math/README.libm-test: Don't mention special handling of
7772         individual functions.
7773         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
7774         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7775         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7776         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7777         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7779
7780         * math/gen-libm-test.pl (get_variable): Remove function.
7781         (parse_args): Don't show pointer parameters to call in test
7782         names.  Use "extra output N" in test names for extra outputs
7783         rather than naming variables.
7784
7785 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
7786
7787         [BZ #15488]
7788         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
7789         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
7790         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
7791         double tests.
7792         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
7793         disable.
7794         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
7795         check_long_double.
7796
7797         * math/gen-libm-test.pl (@tests): Remove variable.
7798         ($count): Likewise.
7799         (new_test): Remove function.
7800         (show_exceptions): New function.
7801         (special_functions): Use show_exceptions instead of new_test.
7802         (parse_args): Likewise.
7803         (generate_testfile): Pass only function name in generated call to
7804         print_max_error or print_complex_max_error.
7805         (get_ulps): Do not handle complex tests specially.
7806         (output_test): Rename to ...
7807         (get_all_ulps_for_test): ... this.  Return a string rather than
7808         printing to a file.  Require ulps to be present.
7809         (output_ulps): Generate arrays rather than #defines.
7810         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
7811         (struct ulp_data): New type.
7812         (BUILD_COMPLEX_ULP): Remove macro.
7813         (compare_ulp_data): New function.
7814         (find_ulps): Likewise.
7815         (find_test_ulps): Likewise.
7816         (find_function_ulps): Likewise.
7817         (find_complex_function_ulps): Likewise.
7818         (print_max_error): Determine allowed ulps using
7819         find_function_ulps.
7820         (print_complex_max_error): Determine allowed ulps using
7821         find_complex_function_ulps.
7822         (check_float_internal): Determine max ulps using find_test_ulps.
7823         (check_float): Do not take max_ulp parameter.  Update call to
7824         check_float_internal.
7825         (check_complex): Likewise.
7826         (check_int): Do not take max_ulp parameter.
7827         (check_long): Likewise.
7828         (check_bool): Likewise.
7829         (check_longlong): Likewise.
7830         (struct test_f_f_data): Remove max_ulp field.
7831         (struct test_ff_f_data): Likewise.
7832         (struct test_ff_f_data_nexttoward): Likewise.
7833         (struct test_fi_f_data): Likewise.
7834         (struct test_fl_f_data): Likewise.
7835         (struct test_if_f_data): Likewise.
7836         (struct test_fff_f_data): Likewise.
7837         (struct test_c_f_data): Likewise.
7838         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
7839         (struct test_fF_f1_data): Likewise.
7840         (struct test_ffI_f1_data): Likewise.
7841         (struct test_c_c_data): Remove max_ulp field.
7842         (struct test_cc_c_data): Likewise.
7843         (struct test_f_i_data): Likewise.
7844         (struct test_ff_i_data): Likewise.
7845         (struct test_f_l_data): Likewise.
7846         (struct test_f_L_data): Likewise.
7847         (struct test_sincos_data): Likewise.
7848         (RUN_TEST_f_f): Do not handle ulps.
7849         (RUN_TEST_LOOP_f_f): Likewise.
7850         (RUN_TEST_2_f): Likewise.
7851         (RUN_TEST_LOOP_2_f): Likewise.
7852         (RUN_TEST_fff_f): Likewise.
7853         (RUN_TEST_LOOP_fff_f): Likewise.
7854         (RUN_TEST_c_f): Likewise.
7855         (RUN_TEST_LOOP_c_f): Likewise.
7856         (RUN_TEST_f_f1): Likewise.
7857         (RUN_TEST_LOOP_f_f1): Likewise.
7858         (RUN_TEST_fF_f1): Likewise.
7859         (RUN_TEST_LOOP_fF_f1): Likewise.
7860         (RUN_TEST_fI_f1): Likewise.
7861         (RUN_TEST_LOOP_fI_f1): Likewise.
7862         (RUN_TEST_ffI_f1): Likewise.
7863         (RUN_TEST_LOOP_ffI_f1): Likewise.
7864         (RUN_TEST_c_c): Likewise.
7865         (RUN_TEST_LOOP_c_c): Likewise.
7866         (RUN_TEST_cc_c): Likewise.
7867         (RUN_TEST_LOOP_cc_c): Likewise.
7868         (RUN_TEST_f_i): Likewise.
7869         (RUN_TEST_LOOP_f_i): Likewise.
7870         (RUN_TEST_f_i_tg): Likewise.
7871         (RUN_TEST_LOOP_f_i_tg): Likewise.
7872         (RUN_TEST_ff_i_tg): Likewise.
7873         (RUN_TEST_LOOP_ff_i_tg): Likewise.
7874         (RUN_TEST_f_b): Likewise.
7875         (RUN_TEST_LOOP_f_b): Likewise.
7876         (RUN_TEST_f_b_tg): Likewise.
7877         (RUN_TEST_LOOP_f_b_tg): Likewise.
7878         (RUN_TEST_f_l): Likewise.
7879         (RUN_TEST_LOOP_f_l): Likewise.
7880         (RUN_TEST_f_L): Likewise.
7881         (RUN_TEST_LOOP_f_L): Likewise.
7882         (RUN_TEST_sincos): Likewise.
7883         (RUN_TEST_LOOP_sincos): Likewise.
7884
7885 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
7886
7887         [BZ #15480]
7888         [BZ #15485]
7889         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
7890         main case of finite arguments, set rounding mode to FE_TONEAREST
7891         and discard exceptions.
7892         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
7893         exceptions.
7894         (remainder_tonearest_test_data): New variable.
7895         (remainder_test_tonearest): New function.
7896         (remainder_towardzero_test_data): New variable.
7897         (remainder_test_towardzero): New function.
7898         (remainder_downward_test_data): New variable.
7899         (remainder_test_downward): New function.
7900         (remainder_upward_test_data): New variable.
7901         (remainder_test_upward): New function.
7902         (main): Call the new test functions.
7903
7904         * math/libm-test.inc (struct test_f_f1_data): Remove field
7905         extra_init.
7906         (struct test_fF_f1_data): Likewise.
7907         (struct test_ffI_f1_data): Likewise.
7908         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
7909         based on value of EXTRA_EXPECTED.
7910         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
7911         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
7912         EXTRA_VAR based on value of EXTRA_EXPECTED.
7913         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
7914         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
7915         EXTRA_VAR based on value of EXTRA_EXPECTED.
7916         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
7917         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
7918         EXTRA_VAR based on value of EXTRA_EXPECTED.
7919         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
7920         * math/gen-libm-test.pl (parse_args): Don't output initializers
7921         for extra output values.
7922
7923         * math/libm-test.inc (check_int): Expect result to be exactly
7924         equal to expected value and do not handle ulps.
7925         (check_long): Likewise.
7926         (check_longlong): Likewise.
7927
7928         * math/libm-test.inc (ceil_test_data): Test for "inexact"
7929         exceptions.
7930         (cimag_test_data): Likewise.
7931         (conj_test_data): Likewise.
7932         (copysign_test_data): Likewise.
7933         (cproj_test_data): Likewise.
7934         (creal_test_data): Likewise.
7935         (fabs_test_data): Likewise.
7936         (fdim_test_data): Likewise.
7937         (finite_test_data): Likewise.
7938         (floor_test_data): Likewise.
7939         (fmax_test_data): Likewise.
7940         (fmin_test_data): Likewise.
7941         (fmod_test_data): Likewise.
7942         (fpclassify_test_data): Likewise.
7943         (frexp_test_data): Likewise.
7944         (ilogb_test_data): Likewise.
7945         (isfinite_test_data): Likewise.
7946         (isgreater_test_data): Likewise.
7947         (isgreaterequal_test_data): Likewise.
7948         (isinf_test_data): Likewise.
7949         (isless_test_data): Likewise.
7950         (islessequal_test_data): Likewise.
7951         (islessgreater_test_data): Likewise.
7952         (isnan_test_data): Likewise.
7953         (isnormal_test_data): Likewise.
7954         (issignaling_test_data): Likewise.
7955         (isunordered_test_data): Likewise.
7956         (ldexp_test_data): Likewise.
7957         (lrint_test_data): Likewise.
7958         (lrint_test_data) [TEST_FLOAT]: Disable one test.
7959         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
7960         (lrint_tonearest_test_data): Test for "inexact" exceptions.
7961         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
7962         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
7963         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
7964         test input.
7965         (lrint_towardzero_test_data): Test for "inexact" exceptions.
7966         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
7967         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
7968         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
7969         that test input.
7970         (lrint_downward_test_data): Test for "inexact" exceptions.
7971         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
7972         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
7973         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
7974         test input.
7975         (lrint_upward_test_data): Test for "inexact" exceptions.
7976         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
7977         test input.
7978         (llrint_test_data): Test for "inexact" exceptions.
7979         (llrint_test_data) [TEST_FLOAT]: Disable one test.
7980         (llrint_tonearest_test_data): Test for "inexact" exceptions.
7981         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
7982         (llrint_towardzero_test_data): Test for "inexact" exceptions.
7983         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
7984         (llrint_downward_test_data): Test for "inexact" exceptions.
7985         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
7986         (llrint_upward_test_data): Test for "inexact" exceptions.
7987         (logb_test_data): Likewise.
7988         (logb_downward_test_data): Likewise.
7989         (nextafter_test_data): Likewise.
7990         (nexttoward_test_data): Likewise.
7991         (remainder_test_data): Likewise.
7992         (remquo_test_data): Likewise.
7993         (scalbn_test_data): Likewise.
7994         (scalbln_test_data): Likewise.
7995         (signbit_test_data): Likewise.
7996         (sqrt_test_data): Likewise.
7997         (significand_test_data): Likewise.
7998
7999 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8000
8001         [BZ #15424]
8002         * benchtests/bench-modf.c (struct args): Mark arg0 as
8003         volatile.
8004         * scripts/bench.pl: Mark members of struct args as volatile.
8005
8006 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8007
8008         [BZ # 15497]
8009         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
8010         negative infinity on POWER6 or lower.
8011         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
8012
8013 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
8014
8015         [BZ #15442]
8016         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
8017         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
8018         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
8019         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
8020         (_FP_SETQNAN): New macro.
8021         (_FP_SETQNAN_SEMIRAW): Likewise.
8022         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
8023         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
8024         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
8025         (FP_EXTEND): Use _FP_FRAC_SNANP.
8026         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
8027         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
8028         into account.
8029         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8030         New macro.
8031         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
8032         Likewise.
8033
8034 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8035
8036         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
8037         with DIVIDE_BY_ZERO_EXCEPTION.
8038         (gamma_test_data): Likewise.
8039         (lgamma_test_data): Likewise.
8040         (log_test_data): Likewise.
8041         (log10_test_data): Likewise.
8042         (log2_test_data): Likewise.
8043         (tgamma_test_data): Likewise.
8044
8045         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
8046         (acos_test_tonearest): Likewise.
8047         (acos_test_towardzero): Likewise.
8048         (acos_test_downward): Likewise.
8049         (acos_test_upward): Likewise.
8050         (acosh_test): Likewise.
8051         (asin_test): Likewise.
8052         (asin_test_tonearest): Likewise.
8053         (asin_test_towardzero): Likewise.
8054         (asin_test_downward): Likewise.
8055         (asin_test_upward): Likewise.
8056         (asinh_test): Likewise.
8057         (atan_test): Likewise.
8058         (atanh_test): Likewise.
8059         (atan2_test): Likewise.
8060         (cabs_test): Likewise.
8061         (cacos_test): Likewise.
8062         (cacosh_test): Likewise.
8063         (casin_test): Likewise.
8064         (casinh_test): Likewise.
8065         (catan_test): Likewise.
8066         (catanh_test): Likewise.
8067         (cbrt_test): Likewise.
8068         (ccos_test): Likewise.
8069         (ccosh_test): Likewise.
8070         (cexp_test): Likewise.
8071         (clog_test): Likewise.
8072         (clog10_test): Likewise.
8073         (cos_test): Likewise.
8074         (cos_test_tonearest): Likewise.
8075         (cos_test_towardzero): Likewise.
8076         (cos_test_downward): Likewise.
8077         (cos_test_upward): Likewise.
8078         (cosh_test): Likewise.
8079         (cosh_test_tonearest): Likewise.
8080         (cosh_test_towardzero): Likewise.
8081         (cosh_test_downward): Likewise.
8082         (cosh_test_upward): Likewise.
8083         (cpow_test): Likewise.
8084         (csin_test): Likewise.
8085         (csinh_test): Likewise.
8086         (csqrt_test): Likewise.
8087         (ctan_test): Likewise.
8088         (ctan_test_tonearest): Likewise.
8089         (ctan_test_towardzero): Likewise.
8090         (ctan_test_downward): Likewise.
8091         (ctan_test_upward): Likewise.
8092         (ctanh_test): Likewise.
8093         (ctanh_test_tonearest): Likewise.
8094         (ctanh_test_towardzero): Likewise.
8095         (ctanh_test_downward): Likewise.
8096         (ctanh_test_upward): Likewise.
8097         (erf_test): Likewise.
8098         (erfc_test): Likewise.
8099         (exp_test): Likewise.
8100         (exp_test_tonearest): Likewise.
8101         (exp_test_towardzero): Likewise.
8102         (exp_test_downward): Likewise.
8103         (exp_test_upward): Likewise.
8104         (exp10_test): Likewise.
8105         (exp2_test): Likewise.
8106         (expm1_test): Likewise.
8107         (fmod_test): Likewise.
8108         (gamma_test): Likewise.
8109         (hypot_test): Likewise.
8110         (j0_test): Likewise.
8111         (j1_test): Likewise.
8112         (jn_test): Likewise.
8113         (lgamma_test): Likewise.
8114         (log_test): Likewise.
8115         (log10_test): Likewise.
8116         (log1p_test): Likewise.
8117         (log2_test): Likewise.
8118         (logb_test_downward): Likewise.
8119         (pow_test): Likewise.
8120         (pow_test_tonearest): Likewise.
8121         (pow_test_towardzero): Likewise.
8122         (pow_test_downward): Likewise.
8123         (pow_test_upward): Likewise.
8124         (remainder_test): Likewise.
8125         (remquo_test): Likewise.
8126         (sin_test): Likewise.
8127         (sin_test_tonearest): Likewise.
8128         (sin_test_towardzero): Likewise.
8129         (sin_test_downward): Likewise.
8130         (sin_test_upward): Likewise.
8131         (sincos_test): Likewise.
8132         (sinh_test): Likewise.
8133         (sinh_test_tonearest): Likewise.
8134         (sinh_test_towardzero): Likewise.
8135         (sinh_test_downward): Likewise.
8136         (sinh_test_upward): Likewise.
8137         (sqrt_test): Likewise.
8138         (tan_test): Likewise.
8139         (tan_test_tonearest): Likewise.
8140         (tan_test_towardzero): Likewise.
8141         (tan_test_downward): Likewise.
8142         (tan_test_upward): Likewise.
8143         (tanh_test): Likewise.
8144         (tgamma_test): Likewise.
8145         (y0_test): Likewise.
8146         (y1_test): Likewise.
8147         (yn_test): Likewise.
8148
8149         * math/gen-libm-test.pl (adjust_arg): Remove function.
8150         (special_function): Remove argument $in_func.  Only handle
8151         generating output for tables of tests, not inside functions.
8152         (parse_args): Likewise.
8153         (generate_testfile): Remove variable $in_func.  Update call to
8154         parse_args.
8155         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
8156         (MINUS_ZERO_INIT): Rename macro to minus_zero.
8157         (PLUS_INFTY_INIT): Rename macro to plus_infty.
8158         (MINUS_INFTY_INIT): Rename macro to minus_infty.
8159         (QNAN_VALUE_INIT): Rename macro to qnan_value.
8160         (MAX_VALUE_INIT): Rename macro to max_value.
8161         (MIN_VALUE_INIT): Rename macro to min_value.
8162         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
8163         (plus_zero): Remove variable.
8164         (minus_zero): Likewise.
8165         (plus_infty): Likewise.
8166         (minus_infty): Likewise.
8167         (qnan_value): Likewise.
8168         (max_value): Likewise.
8169         (min_value): Likewise.
8170         (min_subnorm_value): Likewise.
8171
8172 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8173
8174         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
8175         uint64_t or uint32_t usage.
8176         * crypt/sha256-block.c: Likewise.
8177         * crypt/sha256-crypt.c: Likewise.
8178         * crypt/sha256.c: Likewise.
8179         * crypt/sha512-block.c: Likewise.
8180         * crypt/sha512-crypt.c: Likewise.
8181         * crypt/sha512.c: Likewise.
8182         * debug/backtrace-tst.c: Likewise.
8183         * debug/pcprofiledump.c: Likewise.
8184         * elf/cache.c: Likewise.
8185         * elf/dl-cache.c: Likewise.
8186         * elf/dl-misc.c: Likewise.
8187         * elf/dl-profile.c: Likewise.
8188         * elf/dl-support.c: Likewise.
8189         * elf/ldconfig.c: Likewise.
8190         * elf/sprof.c: Likewise.
8191         * iconv/dummy-repertoire.c: Likewise.
8192         * iconv/iconv_charmap.c: Likewise.
8193         * iconv/skeleton.c: Likewise.
8194         * iconvdata/8bit-generic.c: Likewise.
8195         * iconvdata/cp737.h: Likewise.
8196         * iconvdata/cp775.h: Likewise.
8197         * iconvdata/ibm1008.h: Likewise.
8198         * iconvdata/ibm1025.h: Likewise.
8199         * iconvdata/ibm1046.h: Likewise.
8200         * iconvdata/ibm1097.h: Likewise.
8201         * iconvdata/ibm1112.h: Likewise.
8202         * iconvdata/ibm1122.h: Likewise.
8203         * iconvdata/ibm1123.h: Likewise.
8204         * iconvdata/ibm1124.h: Likewise.
8205         * iconvdata/ibm1129.h: Likewise.
8206         * iconvdata/ibm1130.h: Likewise.
8207         * iconvdata/ibm1132.h: Likewise.
8208         * iconvdata/ibm1133.h: Likewise.
8209         * iconvdata/ibm1137.h: Likewise.
8210         * iconvdata/ibm1140.h: Likewise.
8211         * iconvdata/ibm1141.h: Likewise.
8212         * iconvdata/ibm1142.h: Likewise.
8213         * iconvdata/ibm1143.h: Likewise.
8214         * iconvdata/ibm1144.h: Likewise.
8215         * iconvdata/ibm1145.h: Likewise.
8216         * iconvdata/ibm1146.h: Likewise.
8217         * iconvdata/ibm1147.h: Likewise.
8218         * iconvdata/ibm1148.h: Likewise.
8219         * iconvdata/ibm1149.h: Likewise.
8220         * iconvdata/ibm1153.h: Likewise.
8221         * iconvdata/ibm1154.h: Likewise.
8222         * iconvdata/ibm1155.h: Likewise.
8223         * iconvdata/ibm1156.h: Likewise.
8224         * iconvdata/ibm1157.h: Likewise.
8225         * iconvdata/ibm1158.h: Likewise.
8226         * iconvdata/ibm1160.h: Likewise.
8227         * iconvdata/ibm1161.h: Likewise.
8228         * iconvdata/ibm1162.h: Likewise.
8229         * iconvdata/ibm1163.h: Likewise.
8230         * iconvdata/ibm1164.h: Likewise.
8231         * iconvdata/ibm1166.h: Likewise.
8232         * iconvdata/ibm1167.h: Likewise.
8233         * iconvdata/ibm12712.h: Likewise.
8234         * iconvdata/ibm1390.h: Likewise.
8235         * iconvdata/ibm1399.h: Likewise.
8236         * iconvdata/ibm16804.h: Likewise.
8237         * iconvdata/ibm4517.h: Likewise.
8238         * iconvdata/ibm4899.h: Likewise.
8239         * iconvdata/ibm4909.h: Likewise.
8240         * iconvdata/ibm4971.h: Likewise.
8241         * iconvdata/ibm5347.h: Likewise.
8242         * iconvdata/ibm803.h: Likewise.
8243         * iconvdata/ibm856.h: Likewise.
8244         * iconvdata/ibm901.h: Likewise.
8245         * iconvdata/ibm902.h: Likewise.
8246         * iconvdata/ibm9030.h: Likewise.
8247         * iconvdata/ibm9066.h: Likewise.
8248         * iconvdata/ibm921.h: Likewise.
8249         * iconvdata/ibm922.h: Likewise.
8250         * iconvdata/ibm9448.h: Likewise.
8251         * iconvdata/isiri-3342.h: Likewise.
8252         * iconvdata/jis0201.h: Likewise.
8253         * include/link.h: Likewise.
8254         * include/netdb.h: Likewise.
8255         * inet/check_native.c: Likewise.
8256         * inet/check_pf.c: Likewise.
8257         * inet/getipv4sourcefilter.c: Likewise.
8258         * inet/getnameinfo.c: Likewise.
8259         * inet/getsourcefilter.c: Likewise.
8260         * inet/htonl.c: Likewise.
8261         * inet/setipv4sourcefilter.c: Likewise.
8262         * inet/setsourcefilter.c: Likewise.
8263         * inet/test-inet6_opt.c: Likewise.
8264         * inet/tst-network.c: Likewise.
8265         * locale/C-collate.c: Likewise.
8266         * locale/C-ctype.c: Likewise.
8267         * locale/C-time.c: Likewise.
8268         * locale/C-translit.h: Likewise.
8269         * locale/loadarchive.c: Likewise.
8270         * locale/programs/3level.h: Likewise.
8271         * locale/programs/charmap.c: Likewise.
8272         * locale/programs/charmap.h: Likewise.
8273         * locale/programs/ld-address.c: Likewise.
8274         * locale/programs/ld-collate.c: Likewise.
8275         * locale/programs/ld-ctype.c: Likewise.
8276         * locale/programs/ld-identification.c: Likewise.
8277         * locale/programs/ld-measurement.c: Likewise.
8278         * locale/programs/ld-messages.c: Likewise.
8279         * locale/programs/ld-monetary.c: Likewise.
8280         * locale/programs/ld-name.c: Likewise.
8281         * locale/programs/ld-numeric.c: Likewise.
8282         * locale/programs/ld-paper.c: Likewise.
8283         * locale/programs/ld-telephone.c: Likewise.
8284         * locale/programs/ld-time.c: Likewise.
8285         * locale/programs/linereader.c: Likewise.
8286         * locale/programs/locale.c: Likewise.
8287         * locale/programs/locarchive.c: Likewise.
8288         * locale/programs/locfile.h: Likewise.
8289         * locale/programs/repertoire.c: Likewise.
8290         * locale/programs/simple-hash.c: Likewise.
8291         * locale/programs/simple-hash.h: Likewise.
8292         * malloc/memusage.c: Likewise.
8293         * malloc/memusagestat.c: Likewise.
8294         * nis/nis_defaults.c: Likewise.
8295         * nis/nis_hash.c: Likewise.
8296         * nis/nis_print.c: Likewise.
8297         * nis/nis_xdr.c: Likewise.
8298         * nscd/connections.c: Likewise.
8299         * nscd/hstcache.c: Likewise.
8300         * nscd/nscd_gethst_r.c: Likewise.
8301         * nscd/nscd_getserv_r.c: Likewise.
8302         * nscd/nscd_helper.c: Likewise.
8303         * nscd/servicescache.c: Likewise.
8304         * nss/makedb.c: Likewise.
8305         * nss/nss_db/db-XXX.c: Likewise.
8306         * nss/nss_db/db-initgroups.c: Likewise.
8307         * nss/nss_db/db-netgrp.c: Likewise.
8308         * nss/nss_files/files-network.c: Likewise.
8309         * nss/nss_files/files-parse.c: Likewise.
8310         * posix/bug-regex5.c: Likewise.
8311         * posix/fnmatch_loop.c: Likewise.
8312         * posix/regcomp.c: Likewise.
8313         * posix/regexec.c: Likewise.
8314         * posix/tst-rfc3484-2.c: Likewise.
8315         * posix/tst-rfc3484-3.c: Likewise.
8316         * posix/tst-rfc3484.c: Likewise.
8317         * resolv/nss_dns/dns-canon.c: Likewise.
8318         * resolv/nss_dns/dns-network.c: Likewise.
8319         * resolv/res_init.c: Likewise.
8320         * resolv/res_mkquery.c: Likewise.
8321         * resolv/tst-aton.c: Likewise.
8322         * stdlib/cxa_atexit.c: Likewise.
8323         * stdlib/cxa_finalize.c: Likewise.
8324         * stdlib/gen-fpioconst.c: Likewise.
8325         * stdlib/strtol_l.c: Likewise.
8326         * string/tst-endian.c: Likewise.
8327         * sunrpc/auth_des.c: Likewise.
8328         * sunrpc/clnt_udp.c: Likewise.
8329         * sunrpc/rtime.c: Likewise.
8330         * sunrpc/svcauth_des.c: Likewise.
8331         * sunrpc/xdr.c: Likewise.
8332         * sunrpc/xdr_intXX_t.c: Likewise.
8333         * sunrpc/xdr_rec.c: Likewise.
8334         * sysdeps/generic/ldconfig.h: Likewise.
8335         * sysdeps/generic/ldsodefs.h: Likewise.
8336         * sysdeps/generic/memusage.h: Likewise.
8337         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
8338         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
8339         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
8340         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
8341         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
8342         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8343         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
8344         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
8345         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8346         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
8347         * sysdeps/posix/getaddrinfo.c: Likewise.
8348         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8349         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
8350         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8351         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8352         * sysdeps/powerpc/test-gettimebase.c: Likewise.
8353         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
8354         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
8355         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
8356         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
8357         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
8358         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8359         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8360         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
8361         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
8362         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
8363         * sysdeps/x86_64/dl-tls.h: Likewise.
8364         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
8365         * time/alt_digit.c: Likewise.
8366         * time/era.c: Likewise.
8367         * wcsmbs/tst-c16c32-1.c: Likewise.
8368
8369 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8370
8371         * math/libm-test.inc (struct test_sincos_data): New type.
8372         (RUN_TEST_LOOP_sincos): New macro.
8373         (sincos_test_data): New variable.
8374         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
8375
8376 2013-05-16  Richard Henderson  <rth@redhat.com>
8377
8378         * math/atest-exp2.c (LIMB64): New macro.
8379         (CONSTSZ): New macro.
8380         (mp_exp1, mp_exp_m1, mp_log2): New variables.
8381         (hexdig): Move ...
8382         (print_mpn_fp): ... to function scope.
8383         (read_mpn_hex): Remove.
8384         (get_log2): Remove.
8385         (exp2_mpn): Use mp_log2.
8386         (main): Use mp_exp1.
8387
8388 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
8389
8390         * math/libm-test.inc: Remove comment about not testing "inexact"
8391         exceptions.
8392         (INEXACT_EXCEPTION): New macro.
8393         (NO_INEXACT_EXCEPTION): Likewise.
8394         (INVALID_EXCEPTION_OK): Update value.
8395         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8396         (OVERFLOW_EXCEPTION_OK): Likewise.
8397         (UNDERFLOW_EXCEPTION_OK): Likewise.
8398         (IGNORE_ZERO_INF_SIGN): Likewise.
8399         (ERRNO_UNCHANGED): Likewise.
8400         (ERRNO_EDOM): Likewise.
8401         (ERRNO_ERANGE): Likewise.
8402         (test_exceptions): Handle testing "inexact" exceptions.
8403         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
8404         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
8405         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
8406         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
8407         INEXACT_EXCEPTION.
8408         (rint_towardzero_test_data): Likewise.
8409         (rint_downward_test_data): Likewise.
8410         (rint_upward_test_data): Likewise.
8411
8412         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
8413         with OVERFLOW_EXCEPTION.
8414         (exp10_test_data): Likewise.
8415         (exp2_test_data): Likewise.
8416         (expm1_test_data): Likewise.
8417         (lgamma_test_data): Likewise.
8418         (pow_test_data): Likewise.
8419         (tgamma_test_data): Likewise.
8420         (yn_test_data): Remove duplicate test of overflow.
8421
8422         * math/libm-test.inc (struct test_cc_c_data): New type.
8423         (RUN_TEST_LOOP_cc_c): New macro.
8424         (cpow_test_data): New variable.
8425         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
8426
8427         * math/libm-test.inc (struct test_f_L_data): New type.
8428         (RUN_TEST_LOOP_f_L): New macro.
8429         (llrint_test_data): New variable.
8430         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
8431         (llrint_tonearest_test_data): New variable.
8432         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
8433         (llrint_towardzero_test_data): New variable.
8434         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
8435         (llrint_downward_test_data): New variable.
8436         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
8437         (llrint_upward_test_data): New variable.
8438         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
8439         (llround_test_data): New variable.
8440         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
8441
8442 2013-05-13  Peter Collingbourne  <pcc@google.com>
8443
8444         * math/atest-exp2.c (get_log2): Remove const attribute.
8445
8446 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
8447
8448         * math/libm-test.inc (struct test_f_l_data): New type.
8449         (RUN_TEST_LOOP_f_l): New macro.
8450         (lrint_test_data): New variable.
8451         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
8452         (lrint_tonearest_test_data): New variable.
8453         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
8454         (lrint_towardzero_test_data): New variable.
8455         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
8456         (lrint_downward_test_data): New variable.
8457         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
8458         (lrint_upward_test_data): New variable.
8459         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
8460         (lround_test_data): New variable.
8461         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
8462
8463 2013-05-15  Peter Collingbourne  <pcc@google.com>
8464
8465         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
8466         (EXTRACT_WORDS64) Use where appropriate.
8467         (INSERT_WORDS64) Likewise.
8468
8469         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
8470         constraints with x constraints.
8471         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
8472
8473         * malloc/obstack.c (_obstack_compat): Add initializer.
8474
8475 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8476
8477         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
8478         si_trapno and add si_addr_lsb to _sifields.sigfault.
8479         (si_trapno): Remove macro.
8480         (si_addr_lsb): Define new macro.
8481         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
8482
8483 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
8484
8485         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
8486         instead of TEST_f_l.
8487         (llrint_test_tonearest): Likewise.
8488         (llrint_test_towardzero): Likewise.
8489         (llrint_test_downward): Likewise.
8490         (llrint_test_upward): Likewise.
8491         (llround_test): Likewise.
8492
8493         * math/libm-test.inc (struct test_f_i_data): Add comment.
8494         (RUN_TEST_LOOP_f_b): New macro.
8495         (RUN_TEST_LOOP_f_b_tg): Likewise.
8496         (finite_test_data): New variable.
8497         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
8498         (isfinite_test_data): New variable.
8499         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8500         (isinf_test_data): New variable.
8501         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8502         (isnan_test_data): New variable.
8503         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8504         (isnormal_test_data): New variable.
8505         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8506         (issignaling_test_data): New variable.
8507         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8508         (signbit_test_data): New variable.
8509         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
8510
8511         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
8512         with INVALID_EXCEPTION.
8513         (acosh_test_data): Likewise.
8514         (asin_test_data): Likewise.
8515         (atanh_test_data): Likewise.
8516         (fmod_test_data): Likewise.
8517         (log_test_data): Likewise.
8518         (log10_test_data): Likewise.
8519         (log2_test_data): Likewise.
8520         (pow_test_data): Likewise.
8521         (sqrt_test_data): Likewise.
8522         (y0_test_data): Likewise.
8523         (y1_test_data): Likewise.
8524         (yn_test_data): Likewise.
8525
8526         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
8527         function contents.
8528
8529         * math/libm-test.inc (struct test_ff_i_data): New type.
8530         (RUN_TEST_LOOP_ff_i_tg): New macro.
8531         (isgreater_test_data): New variable.
8532         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8533         (isgreaterequal_test_data): New variable.
8534         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8535         (isless_test_data): New variable.
8536         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8537         (islessequal_test_data): New variable.
8538         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8539         (islessgreater_test_data): New variable.
8540         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8541         (isunordered_test_data): New variable.
8542         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
8543
8544 2013-05-14  David S. Miller  <davem@davemloft.net>
8545
8546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8547
8548 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
8549
8550         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
8551
8552         * math/libm-test.inc (struct test_fF_f1_data): Change type of
8553         extra_test to int.
8554         (struct test_f_i_data): Change type of max_ulp to int.
8555
8556         * math/libm-test.inc (test_ffI_f1_data): New type.
8557         (RUN_TEST_LOOP_ffI_f1): New macro.
8558         (remquo_test_data): New variable.
8559         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
8560
8561         * setjmp/tst-setjmp-fp.c: New file.
8562         * setjmp/Makefile (tests): Add tst-setjmp-fp.
8563         (link-libm): New variable.
8564         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
8565
8566         * math/libm-test.inc (struct test_f_i_data): New type.
8567         (RUN_TEST_LOOP_f_i): New macro.
8568         (RUN_TEST_LOOP_f_i_tg): Likewise.
8569         (fpclassify_test_data): New variable.
8570         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
8571         (ilogb_test_data): New variable.
8572         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
8573
8574         * math/libm-test.inc (scalbln_test): Correct function name in END
8575         call.
8576
8577         * math/libm-test.inc (struct test_f_f1_data): Add comment.
8578         (RUN_TEST_LOOP_fI_f1): New macro.
8579         (frexp_test_data): New variable.
8580         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
8581
8582         * math/libm-test.inc (struct test_fF_f1_data): New type.
8583         (RUN_TEST_LOOP_fF_f1): New macro.
8584         (modf_test_data): New variable.
8585         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
8586
8587         * math/libm-test.inc (struct test_f_f1_data): New type.
8588         (RUN_TEST_LOOP_f_f1): New macro.
8589         (gamma_test_data): New variable.
8590         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
8591         (lgamma_test_data): New variable.
8592         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
8593
8594 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
8595
8596         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
8597         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
8598         (main): Comment "tls" pseudo-hwcap.
8599
8600 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * math/libm-test.inc (struct test_fl_f_data): New type.
8603         (RUN_TEST_LOOP_fl_f): New variable.
8604         (scalbln_test_data): New variable.
8605         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
8606
8607         * math/libm-test.inc (struct test_fi_f_data): New type.
8608         (RUN_TEST_LOOP_fi_f): New macro.
8609         (ldexp_test_data): New variable.
8610         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
8611         (scalbn_test_data): New variable.
8612         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
8613
8614         * math/libm-test.inc (struct test_c_f_data): New type.
8615         (RUN_TEST_LOOP_c_f): New macro.
8616         (cabs_test_data): New variable.
8617         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
8618         (carg_test_data): New variable.
8619         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
8620         (cimag_test_data): New variable.
8621         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
8622         (creal_test_data): New variable.
8623         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
8624
8625         * math/libm-test.inc (struct test_if_f_data): New type.
8626         (RUN_TEST_LOOP_if_f): New macro.
8627         (jn_test_data): New variable.
8628         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
8629         (yn_test_data): New variable.
8630         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
8631
8632         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
8633
8634 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8635
8636         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
8637         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
8638
8639 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
8640
8641         * benchtests/Makefile (CPPFLAGS-nonlib): Add
8642         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
8643         (bench-deps): Add bench-timing.h.
8644         * benchtests-bench-skeleton.c: Include bench-timing.h.
8645         (main): Use TIMING_* macros instead of clock_gettime.
8646         * benchtests/bench-timing.h: New file.
8647
8648         [BZ #14582]
8649         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
8650         Renamed from _LIB_VERSION.
8651         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
8652
8653 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
8654
8655         * math/libm-test.inc (struct test_fff_f_data): New type.
8656         (RUN_TEST_LOOP_fff_f): New macro.
8657         (fma_test_data): New variable.
8658         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
8659         (fma_towardzero_test_data): New variable.
8660         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
8661         (fma_downward_test_data): New variable.
8662         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
8663         (fma_upward_test_data): New variable.
8664         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
8665
8666         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
8667         (struct test_c_c_data): New type.
8668         (RUN_TEST_LOOP_c_c): New macro.
8669         (cacos_test_data): New variable.
8670         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
8671         (cacosh_test_data): New variable.
8672         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
8673         (casin_test_data): New variable.
8674         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
8675         (casinh_test_data): New variable.
8676         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
8677         (catan_test_data): New variable.
8678         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
8679         (catanh_test_data): New variable.
8680         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
8681         (ccos_test_data): New variable.
8682         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
8683         (ccosh_test_data): New variable.
8684         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
8685         (cexp_test_data): New variable.
8686         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
8687         (clog_test_data): New variable.
8688         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
8689         (clog10_test_data): New variable.
8690         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
8691         (conj_test_data): New variable.
8692         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
8693         (cproj_test_data): New variable.
8694         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
8695         (csin_test_data): New variable.
8696         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
8697         (csinh_test_data): New variable.
8698         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
8699         (csqrt_test_data): New variable.
8700         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
8701         (ctan_test_data): New variable.
8702         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
8703         (ctan_tonearest_test_data): New variable.
8704         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
8705         (ctan_towardzero_test_data): New variable.
8706         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
8707         (ctan_downward_test_data): New variable.
8708         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
8709         (ctan_upward_test_data): New variable.
8710         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
8711         (ctanh_test_data): New variable.
8712         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
8713         (ctanh_tonearest_test_data): New variable.
8714         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
8715         (ctanh_towardzero_test_data): New variable.
8716         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
8717         (ctanh_downward_test_data): New variable.
8718         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
8719         (ctanh_upward_test_data): New variable.
8720         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
8721         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
8722         of BUILD_COMPLEX.
8723
8724         * math/libm-test.inc (struct test_ff_f_data): New type.
8725         (struct test_ff_f_data_nexttoward): Likewise.
8726         (RUN_TEST_LOOP_2_f): New macro.
8727         (RUN_TEST_LOOP_ff_f): Likewise.
8728         (atan2_test_data): New variable.
8729         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
8730         (copysign_test_data): New variable.
8731         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
8732         (fdim_test_data): New variable.
8733         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
8734         (fmax_test_data): New variable.
8735         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
8736         (fmin_test_data): New variable.
8737         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
8738         (fmod_test_data): New variable.
8739         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
8740         (hypot_test_data): New variable.
8741         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
8742         (nextafter_test_data): New variable.
8743         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
8744         (nexttoward_test_data): New variable.
8745         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
8746         (pow_test_data): New variable.
8747         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
8748         (pow_tonearest_test_data): New variable.
8749         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
8750         (pow_towardzero_test_data): New variable.
8751         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
8752         (pow_downward_test_data): New variable.
8753         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
8754         (pow_upward_test_data): New variable.
8755         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
8756         (remainder_test_data): New variable.
8757         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
8758         (scalb_test_data): New variable.
8759         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
8760         * sysdeps/i386/fpu/libm-test-ulps: Update.
8761
8762 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
8763
8764         * math/libm-test.inc (fma_test): Use max_value instead of local
8765         variable fltmax.
8766         (nextafter_test): Likewise.
8767
8768         * math/libm-test.inc (acos_towardzero_test_data): New variable.
8769         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8770         (acos_downward_test_data): New variable.
8771         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8772         (acos_upward_test_data): New variable.
8773         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8774         (acosh_test_data): New variable.
8775         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
8776         (asin_test_data): New variable.
8777         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
8778         (asin_tonearest_test_data): New variable.
8779         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8780         (asin_towardzero_test_data): New variable.
8781         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8782         (asin_downward_test_data): New variable.
8783         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8784         (asin_upward_test_data): New variable.
8785         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8786         (asinh_test_data): New variable.
8787         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
8788         (atan_test_data): New variable.
8789         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
8790         (atanh_test_data): New variable.
8791         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
8792         (cbrt_test_data): New variable.
8793         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
8794         (ceil_test_data): New variable.
8795         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
8796         (cos_test_data): New variable.
8797         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
8798         (cos_tonearest_test_data): New variable.
8799         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8800         (cos_towardzero_test_data): New variable.
8801         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8802         (cos_downward_test_data): New variable.
8803         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8804         (cos_upward_test_data): New variable.
8805         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8806         (cosh_test_data): New variable.
8807         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
8808         (cosh_tonearest_test_data): New variable.
8809         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8810         (cosh_towardzero_test_data): New variable.
8811         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8812         (cosh_downward_test_data): New variable.
8813         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8814         (cosh_upward_test_data): New variable.
8815         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8816         (erf_test_data): New variable.
8817         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
8818         (erfc_test_data): New variable.
8819         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
8820         (exp_test_data): New variable.
8821         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
8822         (exp_tonearest_test_data): New variable.
8823         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8824         (exp_towardzero_test_data): New variable.
8825         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8826         (exp_downward_test_data): New variable.
8827         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8828         (exp_upward_test_data): New variable.
8829         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8830         (exp10_test_data): New variable.
8831         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
8832         (exp2_test_data): New variable.
8833         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
8834         (expm1_test_data): New variable.
8835         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
8836         (fabs_test_data): New variable.
8837         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
8838         (floor_test_data): New variable.
8839         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
8840         (j0_test_data): New variable.
8841         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
8842         (j1_test_data): New variable.
8843         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
8844         (log_test_data): New variable.
8845         (log_test): Run tests with RUN_TEST_LOOP_f_f.
8846         (log10_test_data): New variable.
8847         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
8848         (log1p_test_data): New variable.
8849         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
8850         (log2_test_data): New variable.
8851         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
8852         (logb_test_data): New variable.
8853         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
8854         (logb_downward_test_data): New variable.
8855         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8856         (nearbyint_test_data): New variable.
8857         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
8858         (rint_test_data): New variable.
8859         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
8860         (rint_tonearest_test_data): New variable.
8861         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8862         (rint_towardzero_test_data): New variable.
8863         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8864         (rint_downward_test_data): New variable.
8865         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8866         (rint_upward_test_data): New variable.
8867         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8868         (round_test_data): New variable.
8869         (round_test): Run tests with RUN_TEST_LOOP_f_f.
8870         (sin_test_data): New variable.
8871         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
8872         (sin_tonearest_test_data): New variable.
8873         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8874         (sin_towardzero_test_data): New variable.
8875         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8876         (sin_downward_test_data): New variable.
8877         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8878         (sin_upward_test_data): New variable.
8879         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8880         (sinh_test_data): New variable.
8881         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
8882         (sinh_tonearest_test_data): New variable.
8883         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8884         (sinh_towardzero_test_data): New variable.
8885         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8886         (sinh_downward_test_data): New variable.
8887         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8888         (sinh_upward_test_data): New variable.
8889         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8890         (sqrt_test_data): New variable.
8891         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
8892         (tan_test_data): New variable.
8893         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
8894         (tan_tonearest_test_data): New variable.
8895         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8896         (tan_towardzero_test_data): New variable.
8897         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
8898         (tan_downward_test_data): New variable.
8899         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
8900         (tan_upward_test_data): New variable.
8901         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
8902         (tanh_test_data): New variable.
8903         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
8904         (tgamma_test_data): New variable.
8905         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
8906         (trunc_test_data): New variable.
8907         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
8908         (y0_test_data): New variable.
8909         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
8910         (y1_test_data): New variable.
8911         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
8912         (significand_test_data): New variable.
8913         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
8914
8915 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
8916
8917         [BZ #12387]
8918         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
8919
8920 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8921
8922         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
8923
8924 2013-05-10  Andreas Jaeger  <aj@suse.de>
8925
8926         [BZ #15448]
8927         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
8928         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
8929
8930 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
8931
8932         * math/gen-libm-test.pl (adjust_arg): New function.
8933         (special_functions): Handle generating output in both functions
8934         and arrays.
8935         (parse_args): Likewise.
8936         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
8937         $in_func argument to parse_args.
8938         * math/libm-test.inc (struct test_f_f_data): New type.
8939         (IF_ROUND_INIT_): New macro.
8940         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
8941         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
8942         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8943         (IF_ROUND_INIT_FE_UPWARD): Likewise.
8944         (ROUND_RESTORE_): Likewise.
8945         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
8946         (ROUND_RESTORE_FE_TONEAREST): Likewise.
8947         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
8948         (ROUND_RESTORE_FE_UPWARD): Likewise.
8949         (RUN_TEST_LOOP_f_f): New macro.
8950         (acos_test_data): New variable.
8951         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
8952         (acos_tonearest_test_data): New variable.
8953         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
8954
8955 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8956
8957         * benchtests/bench-skeleton.c (startup): Fix coding style.
8958
8959 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
8960
8961         [BZ #6809]
8962         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
8963         negative infinity argument.
8964         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
8965         negative infinity argument.
8966         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
8967         negative infinity argument.
8968         * math/libm-test.inc (tgamma_test): Expect errno to be set for
8969         domain errors.
8970
8971 2013-05-10  Florian Weimer  <fweimer@redhat.com>
8972
8973         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
8974         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
8975         * iconv/iconv_prog.c (main): Likewise.
8976         * locale/programs/charmap-dir.c (charmap_readdir)
8977         (fopen_uncompressed): Likewise.
8978         * locale/programs/locfile.c (siblings_uncached)
8979         (write_locale_data): Use lstat64 instead of lstat.
8980         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
8981         stat.
8982
8983 2013-05-10  Andreas Jaeger  <aj@suse.de>
8984
8985         [BZ #15395]
8986         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
8987         localization.
8988         Include <locale.h>.
8989
8990 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
8991
8992         * elf/dl-close.c (_dl_close_worker): Add comments.
8993
8994 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
8995
8996         [BZ #15359]
8997         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
8998         high part of pi/2.
8999         (__ieee754_rem_pio2l): Update comments.
9000
9001         [BZ #15429]
9002         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
9003         high part of pi/2.
9004         (__ieee754_rem_pio2l): Update comments.
9005
9006         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
9007         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
9008
9009         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
9010         M_PI_4l.
9011
9012         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
9013         (M_PI_34_LOG10El): Likewise.
9014         (M_PI2_LOG10El): Likewise.
9015         (M_PI4_LOG10El): Likewise.
9016         (M_PI_LOG10El): Likewise.
9017
9018 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9019
9020         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9021
9022 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
9023
9024         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
9025         (MINUS_ZERO_INIT): Likewise.
9026         (PLUS_INFTY_INIT): Likewise.
9027         (MINUS_INFTY_INIT): Likewise.
9028         (QNAN_VALUE_INIT): Likewise.
9029         (MAX_VALUE_INIT): Likewise.
9030         (MIN_VALUE_INIT): Likewise.
9031         (MIN_SUBNORM_VALUE_INIT): Likewise.
9032         (plus_zero): Initialize with PLUS_ZERO_INIT.
9033         (minus_zero): Initialize with MINUS_ZERO_INIT.
9034         (plus_infty): Initialize with PLUS_INFTY_INIT.
9035         (minus_infty): Initialize with MINUS_INFTY_INIT.
9036         (qnan_value): Initialize with QNAN_VALUE_INIT.
9037         (max_value): Initialize with MAX_VALUE_INIT.
9038         (min_value): Initialize with MIN_VALUE_INIT.
9039         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
9040
9041         * math/libm-test.inc (RUN_TEST_if_f): New macro.
9042         (jn_test): Use TEST_if_f instead of TEST_ff_f.
9043         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
9044         (yn_test): Use TEST_if_f instead of TEST_ff_f.
9045
9046         * math/libm-test.inc (RUN_TEST_f_f): New macro.
9047         (RUN_TEST_2_f): Likewise.
9048         (RUN_TEST_ff_f): Likewise.
9049         (RUN_TEST_fi_f): Likewise.
9050         (RUN_TEST_fl_f): Likewise.
9051         (RUN_TEST_fff_f): Likewise.
9052         (RUN_TEST_c_f): Likewise.
9053         (RUN_TEST_f_f1): Likewise.
9054         (RUN_TEST_fF_f1): Likewise.
9055         (RUN_TEST_fI_f1): Likewise.
9056         (RUN_TEST_ffI_f1): Likewise.
9057         (RUN_TEST_c_c): Likewise.
9058         (RUN_TEST_cc_c): Likewise.
9059         (RUN_TEST_f_i): Likewise.
9060         (RUN_TEST_f_i_tg): Likewise.
9061         (RUN_TEST_ff_i_tg): Likewise.
9062         (RUN_TEST_f_b): Likewise.
9063         (RUN_TEST_f_b_tg): Likewise.
9064         (RUN_TEST_f_l): Likewise.
9065         (RUN_TEST_f_L): Likewise.
9066         (RUN_TEST_sincos): Likewise.
9067         * math/gen-libm-test.pl (new_test): Take new argument to indicate
9068         whether to show exceptions.  Do not include ");\n" in return
9069         value.
9070         (special_functions): Output call to RUN_TEST_sincos instead of
9071         check_float calls.  Update calls to new_test.
9072         (parse_args): Output call to single RUN_TEST_* macro instead of
9073         check_* calls and other assignments.  Update calls to new_test.
9074
9075         [BZ #2546]
9076         [BZ #2560]
9077         [BZ #5159]
9078         [BZ #15426]
9079         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
9080         input to result for tgamma overflow.
9081         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
9082         (gamma_coeff): New variable.
9083         (NCOEFF): New macro.
9084         (gamma_positive): New function.
9085         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
9086         underflow here.  Use gamma_positive instead of exp (lgamma) for
9087         other arguments.
9088         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
9089         (gamma_coeff): New variable.
9090         (NCOEFF): New macro.
9091         (gammaf_positive): New function.
9092         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
9093         underflow here.  Use gamma_positive instead of exp (lgamma) for
9094         other arguments.
9095         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
9096         (gamma_coeff): New variable.
9097         (NCOEFF): New macro.
9098         (gammal_positive): New function.
9099         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
9100         underflow here.  Use gamma_positive instead of exp (lgamma) for
9101         other arguments.
9102         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
9103         (gamma_coeff): New variable.
9104         (NCOEFF): New macro.
9105         (gammal_positive): New function.
9106         (__ieee754_gammal_r): Handle positive infinity, overflow and
9107         underflow here.  Handle NaN the same as positive infinity.  Remove
9108         check x < 0xffffffff for negative integers.  Use gamma_positive
9109         instead of exp (lgamma) for other arguments.
9110         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
9111         (gamma_coeff): New variable.
9112         (NCOEFF): New macro.
9113         (gammal_positive): New function.
9114         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
9115         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
9116         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9117         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
9118         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
9119         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9120         * sysdeps/generic/math_private.h (__gamma_productf): New
9121         prototype.
9122         (__gamma_product): Likewise.
9123         (__gamma_productl): Likewise.
9124         * math/Makefile (libm-calls): Add gamma_product.
9125         * math/libm-test.inc (tgamma_test): Add more tests.
9126         * sysdeps/i386/fpu/libm-test-ulps: Update.
9127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9128
9129 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
9130
9131         * benchtests/bench-skeleton.c (main): Preheat CPU.
9132
9133 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
9134
9135         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
9136
9137 2013-05-07  Roland McGrath  <roland@hack.frob.com>
9138
9139         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
9140         and _dl_skip_args_internal.
9141
9142 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
9143
9144         * manual/message.texi (Message Translation): Talk about users.
9145         Message to key mapping impacts design.
9146
9147 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9148
9149         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
9150
9151         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
9152
9153         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
9154         * sysdeps/wordsize-64/glob64.c: ... here.
9155
9156         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
9157         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
9158         New macros.
9159
9160         * debug/getlogin_r_chk.c: Moved to ...
9161         * login/getlogin_r_chk.c: ... here.
9162         * debug/Makefile (routines): Move getlogin_r_chk to ...
9163         * login/Makefile (routines): ... here.
9164         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
9165         * login/Versions (libc: GLIBC_2.4): ... here.
9166
9167         * io/poll.c (__poll): Renamed from poll.
9168         Add libc_hidden_def.
9169         (poll): Define as weak alias.
9170
9171         * debug/ptsname_r_chk.c: Moved to ...
9172         * login/ptsname_r_chk.c: ... here.
9173         * debug/Makefile (routines): Move ptsname_r_chk to ...
9174         * login/Makefile (routines): ... here.
9175         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
9176         * login/Versions (libc: GLIBC_2.4): ... here.
9177
9178         * posix/getlogin.c: Moved to ...
9179         * login/getlogin.c: ... here.
9180         * posix/getlogin_r.c: Moved to ...
9181         * login/getlogin_r.c: ... here.
9182         * posix/getlogin_r.c: Moved to ...
9183         * login/getlogin_r.c: ... here.
9184         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
9185         * login/Makefile (routines): ... here.
9186         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
9187         * login/Versions (libc: GLIBC_2.0): ... here.
9188
9189         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
9190         (setrlimit): Define as weak alias.
9191
9192         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
9193         Call __ names for open, ftruncate, and close.
9194         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
9195         (truncate): Define as weak alias.
9196
9197 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
9198
9199         * math/gen-libm-test.pl (parse_args): Initialize x before each
9200         test of frexp, modf and remquo.
9201
9202         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
9203         test signgam value.
9204
9205 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9206
9207         [BZ #15418]
9208         [BZ #15419]
9209         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
9210         internal tests.
9211         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9212
9213 2013-05-06  Roland McGrath  <roland@hack.frob.com>
9214
9215         * elf/dl-writev.h: New file.
9216         * elf/dl-misc.c: Include it.
9217         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
9218         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
9219
9220 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
9221
9222         * math/libm-test.inc (noXFails): Remove variable.
9223         (noXPasses): Likewise.
9224         (BUILD_COMPLEX_INT): Remove macro.
9225         (print_screen): Remove xfail argument.
9226         (print_screen_max_error): Likewise.
9227         (update_stats): Likewise.
9228         (print_max_error): Likewise.  Update calls to other affected
9229         functions.
9230         (print_complex_max_error): Likewise.
9231         (test_single_exception): Update calls to print_screen.
9232         (test_single_errno): Likewise.
9233         (check_float_internal): Remove xfail argument.  Update calls to
9234         other affected functions.
9235         (check_float): Likewise.
9236         (check_complex): Likewise.
9237         (check_int): Likewise.
9238         (check_long): Likewise.
9239         (check_bool): Likewise.
9240         (check_longlong): Likewise.
9241         (main): Don't print noXFails and noXPasses.
9242         * math/gen-libm-test.pl (top level): Don't mention expected
9243         failure handling in comment.
9244         (new_test): Don't handle expected failures.
9245         (parse_args): Don't mention expected failure handling in comment.
9246         (generate_testfile): Don't handle expected failures.
9247         (parse_ulps): Likewise.
9248         (print_ulps_file): Likewise.
9249         (get_failure): Remove function.
9250         (output_test): Don't handle expected failures.
9251         * make/README.libm-test: Don't mention expected failure handling.
9252
9253         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
9254         (minus_zero): Likewise.
9255         (plus_infty): Likewise.
9256         (minus_infty): Likewise.
9257         (qnan_value): Likewise.
9258         (max_value): Likewise.
9259         (min_value): Likewise.
9260         (min_subnorm_value): Likewise.
9261         (initialize): Do not initialize those variables dynamically.
9262
9263 2013-05-03  Roland McGrath  <roland@hack.frob.com>
9264
9265         * io/open.c (__open_2): Moved to ...
9266         * io/open_2.c: ... this new file.
9267         * io/open64.c (__open64_2): Moved to ...
9268         * io/open64_2.c: ... this new file.
9269         * io/openat.c (__openat_2): Moved to ...
9270         * io/openat_2.c: ... this new file.
9271         * io/openat64.c (__openat64_2): Moved to ...
9272         * io/openat64_2.c: ... this new file.
9273         * io/Makefile (routines): Add them.
9274         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
9275         * sysdeps/unix/sysv/linux/open_2.c: File removed.
9276         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
9277         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
9278         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
9279         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
9280         (__openat64): Add hidden_ver.
9281         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
9282         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
9283
9284         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
9285         Separately conditionalize setting of GLRO(dl_sysinfo) so
9286         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
9287         as well, but the actual setting is only under [NEED_DL_SYSINFO].
9288
9289 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9290
9291         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
9292         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
9293         definition.
9294         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
9295         * sysdeps/unix/sysv/linux/powerpc/init-first.c
9296         (_libc_vdso_platform_setup): Add __vdso_time initialization.
9297         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
9298         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
9299
9300 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
9301
9302         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
9303         test signgam value.
9304
9305         * math/libm-test.inc (hypot_test): Do not use
9306         IGNORE_ZERO_INF_SIGN.
9307
9308 2013-05-03  Andreas Jaeger  <aj@suse.de>
9309
9310         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
9311         Linux 3.9.
9312         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
9313         (PF_MAX): Adjust for VSOCK change.
9314
9315 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9316
9317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9318
9319 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
9320
9321         [BZ #15264]
9322         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
9323         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
9324         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
9325
9326 2013-05-02  David S. Miller  <davem@davemloft.net>
9327
9328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9329
9330 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
9331
9332         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
9333
9334 2013-05-01  Roland McGrath  <roland@hack.frob.com>
9335
9336         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
9337
9338 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
9339
9340         [BZ #14952]
9341         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
9342         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9343         Use __attribute__ ((__gnu_inline__)).
9344         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
9345         Don't use __attribute__ ((__gnu_inline__)).
9346
9347 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
9348
9349         [BZ #15423]
9350         * math/s_catan.c (__catan): Handle small real or imaginary part of
9351         input specially to avoid spurious underflow.
9352         * math/s_catanf.c (__catanf): Likewise.
9353         * math/s_catanh.c (__catanh): Likewise.
9354         * math/s_catanhf.c (__catanhf): Likewise.
9355         * math/s_catanhl.c (__catanhl): Likewise.
9356         * math/s_catanl.c (__catanl): Likewise.
9357         * math/libm-test.inc (catan_test): Add more tests.
9358         (catanh_test): Likewise.
9359         * sysdeps/i386/fpu/libm-test-ulps: Update.
9360         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9361
9362 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9363
9364         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9365
9366 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
9367
9368         [BZ #15416]
9369         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
9370         accurately for denominator in atan2.
9371         * math/s_catanf.c (__catanf): Likewise.
9372         * math/s_catanh.c (__catanh): Likewise.
9373         * math/s_catanhf.c (__catanhf): Likewise.
9374         * math/s_catanhl.c (__catanhl): Likewise.
9375         * math/s_catanl.c (__catanl): Likewise.
9376         * math/libm-test.inc (catan_test): Add more tests.
9377         (catanh_test): Likewise.
9378         * sysdeps/i386/fpu/libm-test-ulps: Update.
9379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9380
9381 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9382
9383         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
9384
9385         * benchtests/Makefile (bench): Remove slow benchmarks.
9386         * benchtests/atan-inputs: Add slow benchmark inputs.
9387         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
9388         (BENCH_FUNC): Accept variant offset.
9389         (VARIANT): Define.
9390         * benchtests/bench-skeleton.c (main): Run benchmark for each
9391         variant.
9392         * benchtests/cos-inputs: Add slow benchmark inputs.
9393         * benchtests/exp-inputs: Likewise.
9394         * benchtests/pow-inputs: Likewise.
9395         * benchtests/sin-inputs: Likewise.
9396         * benchtests/slowatan-inputs: Remove.
9397         * benchtests/slowatan.c: Remove.
9398         * benchtests/slowcos-inputs: Remove.
9399         * benchtests/slowcos.c: Remove.
9400         * benchtests/slowexp-inputs: Remove.
9401         * benchtests/slowexp.c: Remove.
9402         * benchtests/slowpow-inputs: Remove.
9403         * benchtests/slowpow.c: Remove.
9404         * benchtests/slowsin-inputs: Remove.
9405         * benchtests/slowsin.c: Remove.
9406         * benchtests/slowtan-inputs: Remove.
9407         * benchtests/slowtan.c: Remove.
9408         * benchtests/tan-inputs: Add slow benchmark inputs.
9409         * scripts/bench.pl: Parse comments and directives.
9410
9411         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
9412         in CPPFLAGS.
9413         ($(objpfx)bench-%.c): Remove *-ITER.
9414         * benchtests/bench-modf.c: Remove definition of ITER.
9415         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
9416         (main): Loop for DURATION seconds instead of fixed number of
9417         iterations.
9418         * scripts/bench.pl: Don't expect iterations in parameters.
9419
9420 2013-04-29  Roland McGrath  <roland@hack.frob.com>
9421
9422         * io/fchdir.c (__fchdir): Renamed from fchdir.
9423         (fchdir): Define as weak alias.
9424
9425 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
9426
9427         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
9428         (ERRNO_EDOM): Likewise.
9429         (ERRNO_ERANGE): Likewise.
9430         (noErrnoTests): New variable.
9431         (init_max_error): Set errno to 0.
9432         (test_single_errno): New function.
9433         (test_errno): Likewise.
9434         (check_float_internal): Call test_errno.  Set errno to 0.
9435         (check_complex): Refer to errno tests in comment.
9436         (check_int): Call test_errno.  Set errno to 0.
9437         (check_long): Likewise.
9438         (check_bool): Likewise.
9439         (check_longlong): Likewise.
9440         (cos_test): Use ERRNO_* flags for errno tests instead of
9441         check_int.
9442         (expm1_test): Likewise.
9443         (fmod_test): Likewise.
9444         (ilogb_test): Likewise.
9445         (lgamma_test): Likewise.
9446         (pow_test): Likewise.
9447         (remainder_test): Likewise.
9448         (sin_test): Likewise.
9449         (tan_test): Likewise.
9450         (yn_test): Likewise.
9451         (initialize): Set errno to 0.
9452         (main): Print number of errno tests.
9453         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
9454
9455 2013-04-29  Andreas Jaeger  <aj@suse.de>
9456
9457         [BZ #15084]
9458         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
9459         and RES_USEVC.
9460
9461         [BZ #15085]
9462         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
9463         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
9464         unimplemented.
9465
9466         [BZ #15380]
9467         * stdlib/random.c (__initstate): Return NULL if
9468         __initstate fails.
9469
9470         [BZ #15086]
9471         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
9472         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
9473         RES_SNGLKUPREOP.
9474
9475 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9476
9477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9478
9479 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
9480
9481         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
9482         of individual tests.
9483         (casin_test): Likewise.
9484         (casinh_test): Likewise.
9485
9486 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
9487
9488         [BZ #15409]
9489         * math/s_catan.c (__catan): Handle arguments with large real or
9490         imaginary part separately without squaring.
9491         * math/s_catanf.c (__catanf): Likewise.
9492         * math/s_catanh.c (__catanh): Likewise.
9493         * math/s_catanhf.c (__catanhf): Likewise.
9494         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
9495         and redefine.
9496         (__catanhl): Handle arguments with large real or imaginary part
9497         separately without squaring.
9498         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
9499         and redefine.
9500         (__catanl): Handle arguments with large real or imaginary part
9501         separately without squaring.
9502         * math/libm-test.inc (catan_test): Add more tests.
9503         (catanh_test): Likewise.
9504         * sysdeps/i386/fpu/libm-test-ulps: Update.
9505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9506
9507 2013-04-27  Andreas Jaeger  <aj@suse.de>
9508
9509         [BZ #15007]
9510         * stdlib/stdlib.h: Update guards for qecvt.
9511         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
9512         <stdlib.h>.
9513
9514 2013-04-27  Allan McRae  <allan@archlinux.org>
9515
9516         * sysdeps/i386/fpu/libm-test-ulps: Update.
9517
9518 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
9519
9520         [BZ #15406]
9521         * math/s_catan.c: Include <float.h>.
9522         (__catan): Ensure underflow exception occurs for underflowed
9523         result.
9524         * math/s_catanf.c: Include <float.h>.
9525         (__catanf): Ensure underflow exception occurs for underflowed
9526         result.
9527         * math/s_catanh.c: Include <float.h>.
9528         (__catanh): Ensure underflow exception occurs for underflowed
9529         result.
9530         * math/s_catanhf.c: Include <float.h>.
9531         (__catanhf): Ensure underflow exception occurs for underflowed
9532         result.
9533         * math/s_catanhl.c: Include <float.h>.
9534         (__catanhl): Ensure underflow exception occurs for underflowed
9535         result.
9536         * math/s_catanl.c: Include <float.h>.
9537         (__catanl): Ensure underflow exception occurs for underflowed
9538         result.
9539         * math/libm-test.inc (catan_test): Add more tests.
9540         (catanh_test): Likewise.
9541
9542         [BZ #15405]
9543         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
9544         underflowed result.
9545         * math/s_ccoshf.c (__ccoshf): Likewise.
9546         * math/s_ccoshl.c (__ccoshl): Likewise.
9547         * math/s_csin.c (__csin): Likewise.
9548         * math/s_csinf.c (__csinf): Likewise.
9549         * math/s_csinh.c (__csinh): Likewise.
9550         * math/s_csinhf.c (__csinhf): Likewise.
9551         * math/s_csinhl.c (__csinhl): Likewise.
9552         * math/s_csinl.c (__csinl): Likewise.
9553         * math/libm-test.inc (ccos_test): Add more tests.
9554         (ccosh_test): Likewise.
9555         (csin_test): Likewise.
9556         (csinh_test): Likewise.
9557
9558 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9559
9560         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
9561         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
9562         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
9563         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
9564         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
9565         powerpc/power5+/fpu folders.
9566         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
9567
9568
9569 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
9570
9571         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9572
9573 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
9574
9575         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
9576         additions to variable.
9577         [$(config-machine) = x86_64] (modules-names): Likewise.
9578         ($(objpfx)tst-audit3): Remove dependency.
9579         ($(objpfx)tst-audit3.out): Likewise.
9580         ($(objpfx)tst-audit4): Likewise.
9581         ($(objpfx)tst-audit4.out): Likewise.
9582         ($(objpfx)tst-audit5): Likewise.
9583         ($(objpfx)tst-audit5.out): Likewise.
9584         ($(objpfx)tst-audit6): Likewise.
9585         ($(objpfx)tst-audit6.out): Likewise.
9586         ($(objpfx)tst-audit7): Likewise.
9587         ($(objpfx)tst-audit7.out): Likewise.
9588         (tst-audit3-ENV): Remove variable.
9589         (tst-audit4-ENV): Likewise.
9590         (tst-audit5-ENV): Likewise.
9591         (tst-audit6-ENV): Likewise.
9592         (tst-audit7-ENV): Likewise.
9593         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
9594         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
9595         addition to variable.
9596         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
9597         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
9598         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
9599         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
9600         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
9601         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
9602         tst-audit3, tst-audit4 and tst-audit5.
9603         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
9604         tst-audit6 and tst-audit7.
9605         [$(subdir) = elf] (modules-names): Add audit modules for those
9606         tests.
9607         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
9608         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
9609         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
9610         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
9611         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
9612         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
9613         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
9614         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
9615         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
9616         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
9617         [$(subdir) = elf] (tst-audit3-ENV): New variable.
9618         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
9619         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
9620         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
9621         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
9622         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
9623         Likewise.
9624         [$(subdir) = elf && $(config-cflags-avx) = yes]
9625         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
9626         [$(subdir) = elf && $(config-cflags-avx) = yes]
9627         (CFLAGS-tst-auditmod4a.c): Likewise.
9628         [$(subdir) = elf && $(config-cflags-avx) = yes]
9629         (CFLAGS-tst-auditmod4b.c): Likewise.
9630         [$(subdir) = elf && $(config-cflags-avx) = yes]
9631         (CFLAGS-tst-auditmod6b.c): Likewise.
9632         [$(subdir) = elf && $(config-cflags-avx) = yes]
9633         (CFLAGS-tst-auditmod6c.c): Likewise.
9634         [$(subdir) = elf && $(config-cflags-avx) = yes]
9635         (CFLAGS-tst-auditmod7b.c): Likewise.
9636         * elf/tst-audit3.c: Move to ...
9637         * sysdeps/x86_64/tst-audit3.c: ... here.
9638         * elf/tst-audit4.c: Move to ...
9639         * sysdeps/x86_64/tst-audit4.c: ... here.
9640         * elf/tst-audit5.c: Move to ...
9641         * sysdeps/x86_64/tst-audit5.c: ... here.
9642         * elf/tst-audit6.c: Move to ...
9643         * sysdeps/x86_64/tst-audit6.c: ... here.
9644         * elf/tst-audit7.c: Move to ...
9645         * sysdeps/x86_64/tst-audit7.c: ... here.
9646         * elf/tst-auditmod3a.c: Move to ...
9647         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
9648         * elf/tst-auditmod3b.c: Move to ...
9649         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
9650         * elf/tst-auditmod4a.c: Move to ...
9651         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
9652         * elf/tst-auditmod4b.c: Move to ...
9653         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
9654         * elf/tst-auditmod5a.c: Move to ...
9655         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
9656         * elf/tst-auditmod5b.c: Move to ...
9657         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
9658         * elf/tst-auditmod6a.c: Move to ...
9659         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
9660         * elf/tst-auditmod6b.c: Move to ...
9661         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
9662         * elf/tst-auditmod6c.c: Move to ...
9663         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
9664         * elf/tst-auditmod7a.c: Move to ...
9665         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
9666         * elf/tst-auditmod7b.c: Move to ...
9667         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
9668
9669 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
9670
9671         [BZ #15366]
9672         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
9673         define unconditionally.
9674         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
9675         define unconditionally.
9676         (INT8_C, INT16_C, etc.): Likewise.
9677
9678 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
9679
9680         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
9681         __ehdr_start with hidden visibility.
9682
9683         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
9684
9685 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
9686
9687         * math/libm-test.inc (cos_test): Use accurate hex constants.
9688         (sincost_test): Likewise.
9689
9690 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
9691
9692         * math/libm-test.inc (catan_test): Add more tests.
9693         (catanh_test): Likewise.
9694
9695         * math/s_catanf.c (__catanf): Use suffixed floating-point
9696         constants.
9697         * math/s_catanhf.c (__catanhf): Likewise.
9698         * math/s_catanhl.c (__catanhl): Likewise.
9699         * math/s_catanl.c (__catanl): Likewise.
9700
9701         [BZ #15394]
9702         * math/s_catan.c (__catan): Calculate imaginary part of result
9703         with log1p not log unless computing log of number close to 0.
9704         * math/s_catanf.c (__catanf): Likewise.
9705         * math/s_catanl.c (__catanl): Likewise.
9706         * math/s_catanh.c (__catanh): Calculate real part of result with
9707         log1p not log unless computing log of number close to 0.
9708         * math/s_catanhf.c (__catanhf): Likewise.
9709         * math/s_catanhl.c (__catanhl): Likewise.
9710         * math/libm-test.inc (catan_test): Add more tests.
9711         (catanh_test): Likewise.
9712         * sysdeps/i386/fpu/libm-test-ulps: Update.
9713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9714
9715 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9716
9717         * benchtests/Makefile: Mention files in which fast and slow
9718         paths of math functions are implemented.
9719
9720 2013-04-23  Roland McGrath  <roland@hack.frob.com>
9721
9722         * sysdeps/posix/timespec_get.c: New file.
9723
9724 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9725
9726         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
9727         POWER.
9728         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
9729         for POWER.
9730         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
9731         powerpc/power5/fpu folders.
9732         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
9733         * benchtests/Makefile: Add modf testcase.
9734         * benchtests/bench-modf.c: New file: Benchmark test for mo
9735
9736 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
9737
9738         [BZ #14888]
9739         * time/Makefile (tests): Add tst-strptime-whitespace.
9740         * time/strptime_l.c (get_number): Use ISSPACE.
9741         (__strptime_internal): Likewise.
9742         * time/tst-strptime-whitespace.c: New test case.
9743
9744 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
9745
9746         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
9747         member.
9748         (_nss_files_init): Set it here.
9749
9750 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
9751
9752         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
9753         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
9754         unsigned.
9755
9756 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
9757
9758         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
9759
9760 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9761
9762         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
9763         size just once.
9764
9765 2013-04-21  David S. Miller  <davem@davemloft.net>
9766
9767         * po/ru.po: Update Russion translation from translation project.
9768
9769 2013-04-17  Adam Conrad  <adconrad@0c3.net>
9770
9771         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
9772         and setfsgid.
9773
9774 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
9775
9776         * configure.in: Remove i386 configure warning. Remove i386 case.
9777         * configure: Regenerate.
9778         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
9779         Add example to error message.
9780         * sysdeps/i386/configure: Regenerate.
9781
9782 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
9783
9784         * benchtests/Makefile (bench): Add cos, tan, slowcos and
9785         slowtan.
9786         * benchtests/cos-inputs: New file.
9787         * benchtests/slowcos-inputs: New file.
9788         * benchtests/slowcos.c: New file.
9789         * benchtests/slowtan-inputs: New file.
9790         * benchtests/slowtan.c: New file.
9791         * benchtests/tan-inputs: New file.
9792
9793 2013-04-16  Roland McGrath  <roland@hack.frob.com>
9794
9795         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
9796         considered kosher.
9797
9798 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9799
9800         * benchtests/Makefile: Include cppflags-iterator.mk to add
9801         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
9802
9803         * Makefile.in (bench-clean): New target.
9804         * benchtests/Makefile (bench-clean): Likewise.
9805
9806 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
9807
9808         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
9809
9810 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
9811
9812         * stdio-common/tstdiomisc.c: Fix coding-style violation.
9813
9814 2013-04-15  Andreas Schwab  <schwab@suse.de>
9815
9816         * nscd/grpcache.c (cache_addgr): Properly check for short write.
9817         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9818         * nscd/pwdcache.c (cache_addpw): Likewise.
9819         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
9820         more than recsize.
9821
9822 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9823
9824         * benchtests/Makefile (bench): Write all output to
9825         bench-out.tmp together.
9826
9827 2013-04-15  Andreas Schwab  <schwab@suse.de>
9828
9829         * nscd/nscd.c (main): Don't fork again after closing files.
9830
9831 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9832
9833         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
9834
9835         * benchtests/Rules (bench-deps): Collect dependencies into a
9836         single variable.  Add Makefile to dependencies.
9837         ($(objpfx)bench-%.c): Depend on bench-deps.
9838
9839 2013-04-12  Roland McGrath  <roland@hack.frob.com>
9840             Xavier Roche  <roche+kml2@exalead.com>
9841
9842         [BZ #15361]
9843         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
9844         just that it's a file descriptor.
9845         * manual/llio.texi (Synchronizing AIO Operations): Update description
9846         for EBADF error from aio_fsync.
9847
9848 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
9849
9850         * Rules (bench): Move target definition...
9851         * benchtests/Makefile: ... here.
9852
9853 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
9854
9855         * math/libm-test.inc (cos_test): Fix PI/2 test.
9856         (sincos_test): Likewise.
9857         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
9858         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
9859
9860 2013-04-11  Andreas Schwab  <schwab@suse.de>
9861
9862         [BZ #13988]
9863         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
9864         accept exponent character only when digits were seen.
9865         * stdio-common/Makefile (tests): Add bug26.
9866         * stdio-common/bug26.c: New file.
9867
9868         [BZ #14293]
9869         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
9870         non-freeable.
9871
9872 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9873
9874         * Makeconfig (rtld-prefix): Define built linker prefix.
9875         * Rules (run-bench): Use it.
9876         * math/Makefile (run-regen-ulps): Likewise.
9877
9878         * Rules (bench): Remove eval.
9879
9880 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9881             Roland McGrath  <roland@hack.frob.com>
9882             Ondrej Bilka  <neleai@seznam.cz>
9883
9884         [BZ #15346]
9885         * time/getdate.c: Include ctype.h and alloca.h.
9886         (__getdate_r): Trim leading and trailing spaces of input.
9887         * time/tst-getdate.c (tests): Add tests with leading and
9888         trailing spaces.
9889
9890 2013-04-08  Roland McGrath  <roland@hack.frob.com>
9891
9892         [BZ #14280]
9893         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
9894         when computing value.
9895
9896 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9897
9898         * math/README.libm-test (How can I generate "libm-test-ulps"?):
9899         Use testrun.sh to run libm tests.
9900
9901         [BZ #15309]
9902         * elf/dl-open.c (dl_open_worker): memset all of seen array.
9903
9904 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
9905
9906         [BZ #15264]
9907         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
9908
9909 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9910
9911         * Makefile.in (regen-ulps): New target.
9912         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
9913         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
9914         [ifneq (no,$(PERL)] (regen-ulps): New target.
9915         [ifeq (no,$(PERL)] (regen-ulps): New target.
9916         * math/libm-test.inc (ulps_file_name): Define.
9917         (output_dir): New variable.
9918         (options): Add "output-dir" option.
9919         (parse_opt): Handle 'o' case.
9920         (main): If output_dir is non-NULL use it as a prefix
9921         otherwise use "".
9922         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
9923
9924 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9925
9926         [BZ #10060, #10062]
9927         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
9928         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
9929         fail configure if __sync_val_compare_and_swap is not inlined.
9930         * sysdeps/i386/configure: Regenerate.
9931         * configure.in: Build for i686 when configured for i386.
9932         * configure: Regenerate.
9933         * README: Remove i386 reference.
9934
9935 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
9936
9937         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
9938         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9939
9940 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9941
9942         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
9943         (lmsnanval): New variables.
9944         (F): Add conversion tests.
9945         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
9946         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
9947
9948         * stdio-common/tstdiomisc.c (F): Properly collect individual
9949         tests' results.
9950
9951         [BZ #14686, #15336]
9952         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
9953         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
9954         Instead, use input NaN values or generate a qNaN by arithmetic
9955         operation.  Also fix bugs to comply with the standard.
9956         * math/libm-test.inc (remainder_test): Add more tests.
9957
9958         [BZ #15335, #15342]
9959         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
9960         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
9961         input NaN values or generate a qNaN by arithmetic operation.
9962
9963         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
9964         unreachable code.
9965
9966         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
9967         definitions.
9968
9969 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
9970
9971         [BZ #14478]
9972         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
9973         underflowed result.
9974         * math/s_cexpf.c (__cexpf): Likewise.
9975         * math/s_cexpl.c (__cexpl): Likewise.
9976         * math/libm-test.inc (cexp_test): Add more tests.
9977
9978 2013-04-03  Andreas Schwab  <schwab@suse.de>
9979
9980         [BZ #15330]
9981         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
9982         order arrays from heap if bigger than alloca cutoff.
9983
9984 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
9985
9986         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
9987         (SNAN_TESTS_double): Refer to GCC PR56831.
9988         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
9989         GCC PR56828.
9990
9991 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
9992
9993         * Rules (bench): Move bench.out after the run is complete.
9994
9995         * Rules (bench): Echo currently running benchmark.
9996
9997         * benchtests/Makefile (bench): Add atan and slowatan.
9998         * benchtests/atan-inputs: New file.
9999         * benchtests/slowatan-inputs: New file.
10000         * benchtests/slowatan.c: New file.
10001
10002         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
10003         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
10004         its value.
10005
10006         [BZ #15305]
10007         * sysdeps/unix/sysv/linux/kernel-features.h
10008         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
10009         __ASSUME_XFS_RESTRICTED_CHOWN.
10010         * sysdeps/unix/sysv/linux/pathconf.c
10011         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
10012         Save and restore errno.
10013
10014 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
10015
10016         [BZ #15327]
10017         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
10018         arguments using __kernel_casinh.
10019         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
10020         arguments using __kernel_casinhf.
10021         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
10022         arguments using __kernel_casinhl.
10023         * math/libm-test.inc (cacosh_test): Add more tests.
10024         * sysdeps/i386/fpu/libm-test-ulps: Update.
10025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10026
10027 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10028
10029         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
10030         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
10031
10032         * bench/Makefile (bench): Add sin and slowsin.
10033         * benchtests/sin-inputs: New file.
10034         * benchtests/slowsin-inputs: New file.
10035         * benchtests/slowsin.c: New file.
10036
10037         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
10038         (bench): Add slowexp and slowpow.
10039         (exp-ITER): Increase iterations.
10040         (pow-ITER): Likewise.
10041         * benchtests/exp-inputs: Change input.
10042         * benchtests/pow-inputs: Likewise.
10043         * benchtests/slowexp-inputs: New file.
10044         * benchtests/slowexp.c: New file.
10045         * benchtests/slowpow-inputs: New file.
10046         * benchtests/slowpow.c: New file.
10047
10048 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10049
10050         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
10051         instructions.
10052         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
10053         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
10054         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
10055         * benchtests/Makefile: Add rint benchtest.
10056         * benchtests/rint-inputs: Input for rint benchtest.
10057
10058 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10059
10060         * Versions.def (libm): Add GLIBC_2.18.
10061         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
10062         hidden libm prototypes.
10063         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
10064         * math/Makefile (libm-calls): Add s_issignaling.
10065         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
10066         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
10067         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
10068         declaration.
10069         * math/math.h [__USE_GNU] (issignaling): New macro.
10070         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
10071         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
10072         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
10073         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
10074         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
10075         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
10076         * manual/arith.texi (issignaling): New section.
10077         * manual/libm-err-tab.pl (@all_functions): Update comment.
10078         * math/gen-libm-test.pl (parse_args): Apply special handling for
10079         issignaling.
10080         * math/libm-test.inc (print_float, issignaling_test): New
10081         functions.
10082         (check_float_internal): Add issignaling checks.
10083         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
10084         default definition.
10085         * sysdeps/powerpc/math-tests.h: New file.
10086         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
10087         tests.
10088         * math/test-snan.c (TEST_FUNC): Likewise.
10089
10090 2013-03-30  David S. Miller  <davem@davemloft.net>
10091
10092         * po/de.po: Update from translation team.
10093
10094 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
10095
10096         [BZ #10357]
10097         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10098         imaginary part less than 1.0 and real part less than 0.5
10099         specially.
10100         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10101         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10102         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
10103         (cacos_test): Add more tests.
10104         (casin_test): Likewise.
10105         (casinh_test): Likewise.
10106         * sysdeps/i386/fpu/libm-test-ulps: Update.
10107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10108
10109 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10110
10111         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
10112         ONE with its value.
10113
10114         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
10115         (__pow_mp): Replace ONE and MONE with their values.
10116         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10117         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
10118         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10119         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
10120         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10121         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10122
10123         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
10124
10125         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
10126         (__pow_mp): Replace ZERO and MZERO with their values.
10127         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10128         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10129         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
10130         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
10131         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10132         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
10133         (__sqr): Likewise.
10134
10135         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
10136
10137         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
10138
10139 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10140
10141         * include/stdlib.h [!SHARED] (__call_tls_dtors):
10142         Declare with __attribute__ ((weak)).
10143         * stdlib/exit.c (__libc_atexit) [!SHARED]:
10144         Call __call_tls_dtors only if it's not NULL.
10145
10146 2013-03-28  Roland McGrath  <roland@hack.frob.com>
10147
10148         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
10149         didn't do it already, then set _dl_phdr and _dl_phnum based on the
10150         magic __ehdr_start linker symbol if it's defined.
10151         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
10152         them up here if it was already done.
10153
10154         * elf/dl-support.c (_dl_phdr): Make pointer to const.
10155         (_dl_aux_init): Use const in cast when setting it.
10156         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
10157         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
10158         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
10159
10160         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
10161         Declare them here.
10162         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
10163         * csu/libc-tls.c: Nor here.
10164         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
10165
10166         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
10167         (__libc_message): Never call vsyslog.
10168
10169 2013-03-28  Alan Modra  <amodra@gmail.com>
10170
10171         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
10172         Define as empty.
10173         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
10174         Likewise.
10175
10176 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10177
10178         [BZ #15214]
10179         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
10180         underflow.
10181         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10182
10183 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10184
10185         [BZ #15304]
10186         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
10187         Don't add gid passed as argument.
10188
10189         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
10190
10191 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
10192
10193         [BZ #15307]
10194         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10195         imaginary part between 1.0 and 1.5 and real part less than 0.5
10196         specially.
10197         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10198         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10199         * math/libm-test.inc (cacos_test): Add more tests.
10200         (casin_test): Likewise.
10201         (casinh_test): Likewise.
10202         * sysdeps/i386/fpu/libm-test-ulps: Update.
10203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10204
10205 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10206
10207         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
10208         constants.
10209         (norm): Likewise.
10210         (denorm): Likewise.
10211         (__dbl_mp): Likewise.
10212         (add_magnitudes): Likewise.
10213         (sub_magnitudes): Likewise.
10214         (__add): Likewise.
10215         (__sub): Likewise.
10216         (__mul): Likewise.
10217         (__sqr): Likewise.
10218         (__inv): Likewise.
10219         (__dvd): Likewise.
10220
10221         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
10222         commented code.
10223         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
10224         (__dubcos): Likewise.
10225         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
10226         (__ieee754_acos): Likewise.
10227         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
10228         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
10229         (__exp1): Likewise.
10230         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
10231         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10232         (log1): Likewise.
10233         (my_log2): Likewise.
10234         (checkint): Likewise.
10235         * sysdeps/ieee754/dbl-64/e_remainder.c
10236         (__ieee754_remainder): Likewise.
10237         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
10238         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10239         (bsloww): Likewise.
10240         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
10241
10242         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
10243         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
10244         MANTISSA_STORE_T to store computations on mantissa.  Use
10245         macros for rounding and division.
10246         (denorm): Likewise.
10247         (__dbl_mp): Likewise.
10248         (add_magnitudes): Likewise.
10249         (sub_magnitudes): Likewise.
10250         (__mul): Likewise.
10251         (__sqr): Likewise.
10252         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
10253         powers of two in terms of TWOPOW macro.
10254         (mp_no): Make type of mantissa as MANTISSA_T.
10255         [!RADIXI]: Define RADIXI.
10256         [!TWO52]: Define TWO52.
10257         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
10258
10259 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10260
10261         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
10262         llroundl symbol when building for PPC32.
10263
10264 2013-03-24  Mark H Weaver  <mhw@netris.org>
10265
10266         * manual/arith.texi (Normalization Functions): Fix prototypes for
10267         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
10268
10269 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10270
10271         [BZ #13889]
10272         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
10273         high value to check if expl overflow.
10274         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
10275         to check for underflow and overflow.
10276         * math/libm-test.inc: Add exp test.
10277
10278 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
10279
10280         [BZ #11120]
10281         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
10282         with NOT_IN_libc.
10283
10284 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10285
10286         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
10287         symbol.
10288
10289 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10290
10291         * math/gen-libm-test.pl (parse_args, special_functions): Properly
10292         wrap blocks consisting of several statements.
10293
10294         * sysdeps/generic/math-tests.h: New file.
10295         * sysdeps/i386/fpu/math-tests.h: Likewise.
10296         * math/test-snan.c: Include it.
10297         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
10298
10299 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10300
10301         [BZ #15285]
10302         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
10303         (__ieee754_j0l): Do not improve calculations using cos of twice
10304         input for inputs above LDBL_MAX / 2.0L.
10305         (__ieee754_y0l): Likewise.
10306         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
10307         (__ieee754_j1l): Do not improve calculations using cos of twice
10308         input for inputs above LDBL_MAX / 2.0L.
10309         (__ieee754_y1l): Likewise.
10310         * math/libm-test.inc (j0_test): Add another test.
10311         (j1_test): Likewise.
10312         (y0_test): Likewise.
10313         (y1_test): Likewise.
10314         * sysdeps/i386/fpu/libm-test-ulps: Update.
10315
10316 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10317
10318         * Rules ($(objpfx)bench-%.c): Include code from a C source
10319         file.
10320
10321 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
10322
10323         [BZ #15287]
10324         * math/k_casinh.c (__kernel_casinh): Handle arguments with
10325         imaginary part 1.0 and real part less than 0.5 specially.
10326         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10327         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10328         * math/libm-test.inc (cacos_test): Add more tests.
10329         (casin_test): Likewise.
10330         (casinh_test): Likewise.
10331         * sysdeps/i386/fpu/libm-test-ulps: Update.
10332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10333
10334 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
10335
10336         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
10337         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
10338
10339 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
10340
10341         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
10342         * config.make.in (config-cflags-sse4): Remove variable.
10343         (config-cflags-avx): Likewise.
10344         (config-cflags-sse2avx): Likewise.
10345         (config-cflags-novzeroupper): Likewise.
10346         (config-asflags-i686): Likewise.
10347         (have-mfma4): Likewise.
10348         (have-as-vis3): Likewise.
10349         (MIG): Likewise.
10350         * configure.in (MIG): Do not AC_SUBST.
10351         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
10352         (libc_cv_cc_sse4): Do not AC_SUBST.
10353         (libc_cv_cc_avx): Likewise.
10354         (libc_cv_cc_sse2avx): Likewise.
10355         (libc_cv_cc_novzeroupper): Likewise.
10356         (libc_cv_cc_fma4): Likewise.
10357         (libc_cv_as_i686): Likewise.
10358         (libc_cv_sparc_as_vis3): Likewise.
10359         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
10360         LIBC_CONFIG_VAR.
10361         (config-asflags-i686): Likewise.
10362         (config-cflags-avx): Likewise.
10363         (config-cflags-sse2avx): Likewise.
10364         (have-mfma4): Likewise.
10365         (config-cflags-novzeroupper): Likewise.
10366         * sysdeps/mach/configure.in (MIG): Likewise.
10367         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
10368         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
10369         LIBC_CONFIG_VAR.
10370         (config-cflags-avx): Likewise.
10371         (config-cflags-sse2avx): Likewise.
10372         (have-mfma4): Likewise.
10373         (config-cflags-novzeroupper): Likewise.
10374         * configure: Regenerated.
10375         * sysdeps/i386/configure: Likewise.
10376         * sysdeps/mach/configure: Likewise.
10377         * sysdeps/sparc/configure: Likewise.
10378         * sysdeps/x86_64/configure: Likewise.
10379
10380 2013-03-20  Roland McGrath  <roland@hack.frob.com>
10381
10382         [BZ #14812]
10383         * locale/programs/localedef.c (options): Put N_ translation marker
10384         on argument names, not just descriptions.
10385
10386 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10387
10388         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
10389
10390 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
10391
10392         [BZ #14176]
10393         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
10394
10395 2013-03-19  Roland McGrath  <roland@hack.frob.com>
10396
10397         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
10398         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
10399         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
10400         [!BEFORE_ABORT] (before_abort): New function.
10401         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
10402         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
10403         (writev_for_fatal): New function.
10404         (WRITEV_FOR_FATAL): New macro; call that.
10405         (backtrace_and_maps): New function.
10406         (BEFORE_ABORT): New macro; call that.
10407         (struct str_list): Type removed.
10408         (__libc_message, __libc_fatal): Functions removed.
10409         Include <sysdeps/posix/libc_fatal.c> instead.
10410
10411 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
10412
10413         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
10414         constants.
10415         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
10416         double constants.
10417
10418 2013-03-19  Andreas Schwab  <schwab@suse.de>
10419
10420         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
10421         * sysdeps/gnu/configure: Regenerate.
10422
10423         * configure.in: Substitute libc_cv_rtlddir.
10424         * configure: Regenerate.
10425         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
10426         * Makeconfig (rtlddir, inst_rtlddir): New variables.
10427         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
10428         * elf/Makefile (install-others, CFLAGS-interp.c)
10429         (ldso_install, common-ldd-rewrite): Likewise.
10430         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
10431         $(inst_slibdir)/$(rtld-installed-name).
10432         * scripts/rellns-sh: Add -p option.
10433         * Makerules (make-shlib-link): Use rellns-sh to get relative name
10434         for source.
10435
10436 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
10437
10438         * manual/nptl.texi: Renamed to ...
10439         * manual/threads.texi: ... this.
10440         * manual/Makefile (chapters): Update.
10441
10442 2013-03-18  Roland McGrath  <roland@hack.frob.com>
10443
10444         [BZ #14812]
10445         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
10446         on argument names, not just descriptions.
10447         * malloc/memusagestat.c (options): Likewise.
10448         * nss/getent.c (options): Likewise.
10449
10450 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
10451
10452         [BZ #14812]
10453         * iconv/iconv_prog.c (options): Put N_ translation marker
10454         on argument names, not just descriptions.
10455         * iconv/iconvconfig.c (options): Likewise.
10456
10457 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
10458
10459         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
10460         implementation which is faster on all x86_64 architectures.
10461         Tested on AMD, Intel Nehalem, SNB, IVB.
10462         * sysdeps/x86_64/strnlen.S: Likewise.
10463
10464         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
10465         Remove all multiarch strlen and strnlen versions.
10466         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
10467         Remove strlen and strnlen related parts.
10468
10469         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
10470         Inline strlen part.
10471         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
10472
10473         * sysdeps/x86_64/multiarch/strlen.S: Remove.
10474         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
10475         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
10476         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
10477         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
10478         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
10479
10480 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
10481
10482         * manual/memory.texi (Malloc Tunable Parameters):
10483         Sort parameters alphabetically. Add comments for missing entries.
10484
10485 2013-03-17  David S. Miller  <davem@davemloft.net>
10486
10487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10488
10489 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
10490
10491         [BZ #15283]
10492         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
10493         for arguments at most half maximum finite value.
10494         * math/libm-test.inc (j0_test): Add more tests.
10495         (j1_test): Likewise.
10496         (y0_test): Likewise.
10497         (y1_test): Likewise.
10498         * sysdeps/i386/fpu/libm-test-ulps: Update.
10499         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10500
10501         [BZ #14155]
10502         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
10503         1 / x and functions P and Q for arguments above 0x1p256L.
10504         (__ieee754_y0l): Likewise.
10505         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
10506         (__ieee754_y1l): Likewise.
10507         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
10508         (j1_test): Likewise.
10509         (y0_test): Likewise.
10510         (y1_test): Likewise.
10511
10512 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
10513
10514         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
10515         variable.
10516
10517 2013-03-15  Roland McGrath  <roland@hack.frob.com>
10518
10519         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
10520         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
10521         zero since it's initialized to EXEC_PAGESIZE.
10522
10523         * sysdeps/unix/sysv/linux/ldsodefs.h
10524         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
10525         * sysdeps/generic/ldsodefs.h: ... here.
10526
10527 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
10528
10529         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
10530
10531         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
10532         math/test-snan.c.
10533         * math/test-snan.c: Renamed from
10534         sysdeps/powerpc/fpu/test-powerpc-snan.c.
10535         * math/Makefile (tests): Add test-snan.
10536         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
10537         test-powerpc-snan.
10538
10539         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
10540         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
10541         functions.
10542         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
10543         __builtin_nan family of functions.
10544         * math/libm-test.inc (initialize): Initialize qnan_value with
10545         __builtin_nan family of functions.
10546         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
10547         Remove variables.
10548         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
10549         Remove functions.
10550         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
10551         storage class.  Initialize qNaN_var and sNaN_var with
10552         __builtin_nan and __builtin_nans families of functions,
10553         respectively.
10554
10555         * math/libm-test.inc (acosh_test): Also test with qNaN input.
10556         (sqrt_test): Remove duplicate test with qNaN input.
10557         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
10558         (round_test, signbit_test, significand_test): Note missing +/-Inf
10559         as well as qNaN tests.
10560
10561         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
10562         qNaN_var.  Fix a few strings, too.
10563         * math/libm-test.inc (nan_value): Rename to qnan_value.
10564         * math/gen-libm-test.pl (%beautify): Adjust to that.
10565         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
10566         * math/test-misc.c (main): Likewise.
10567         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
10568         to __qnan_bytes, and __qnan_union, respectively.
10569         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
10570         Likewise.
10571         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
10572         and lqnanval, respectively.
10573         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
10574         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
10575         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
10576         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
10577
10578         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
10579         * math/test-misc.c (main) [__x86_64__]: Enable test for long
10580         doubles.
10581
10582         * math/test-misc.c (main): Fix copy'n'pastos.
10583         * misc/tst-efgcvt.c (special): Likewise.
10584
10585         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
10586         Remove declarations.
10587
10588 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10589
10590         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
10591         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
10592         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
10593         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
10594
10595 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10596
10597         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
10598         macro to return vdso values correctly in IFUNC implementations.
10599         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10600         Optimization by using IFUNC.
10601
10602 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10603             Richard Henderson  <rth@redhat.com>
10604             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10605
10606         * Makefile.in (bench): New target.
10607         * NEWS: Mention the benchmark framework.
10608         * Rules (bench): Likewise.
10609         (binaries-bench): Generate binaries for functions to
10610         benchmark.
10611         * benchtests/Makefile: New makefile for benchmark tests.
10612         * benchtests/bench-skeleton.c: New skeleton file for benchmark
10613         programs.
10614         * benchtests/exp-inputs: New input file for EXP function.
10615         * benchtests/pow-inputs: New input file for POW function.
10616         * scripts/bench.pl: New script to generate source files for
10617         benchmark programs.
10618
10619 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10620
10621         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
10622         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
10623         computations on mantissa.  Use macros for rounding and
10624         division.
10625         (denorm): Likewise.
10626         (__dbl_mp): Likewise.
10627         (add_magnitudes): Likewise.
10628         (sub_magnitudes): Likewise.
10629         (__mul): Likewise.
10630         (__sqr): Likewise.
10631         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
10632         powers of two in terms of TWOPOW macro.
10633         (mp_no): Make type of mantissa as MANTISSA_T.
10634         [!RADIXI]: Define RADIXI.
10635         [!TWO52]: Define TWO52.
10636         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
10637
10638         * manual/nptl.texi (cindex): Modify threads to pthreads.
10639
10640 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
10641
10642         * sysdeps/x86_64/preconfigure: Regenerated.
10643
10644 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
10645
10646         [BZ #14155]
10647         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
10648         0x1p28 and above.
10649         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
10650         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
10651         0x1p28 and above.
10652         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
10653         * math/libm-test.inc (j0_test): Do not allow one spurious
10654         underflow exception.
10655         (y1_test): Likewise.
10656
10657 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10658
10659         * manual/Makefile (chapters): Add nptl.
10660         * manual/debug.texi (Debugging Support): Add link to Threads
10661         chapter.
10662         * manual/nptl.texi: New file.
10663
10664         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
10665
10666 2013-03-14  Petr Baudis  <pasky@ucw.cz>
10667
10668         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
10669         for non-NULL pointer before the memory validity test. Pointed
10670         out by Holger Brunck <holger.brunck@keymile.com>.
10671
10672 2013-03-13  Andreas Schwab  <schwab@suse.de>
10673
10674         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
10675         instead of .os.
10676
10677 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
10678
10679         * timezone/zic.c: Update from tzcode 2013b.
10680
10681 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
10682
10683         * manual/install.texi (Configuring and compiling):
10684         Mention i686 and i586.
10685         * INSTALL: Regenerate.
10686
10687 2013-03-12  Roland McGrath  <roland@hack.frob.com>
10688
10689         * sysdeps/init_array/elf-init.c: New file.
10690         * csu/elf-init.c
10691         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
10692         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
10693
10694         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
10695         __gmon_start__ as global, but as static with a .preinit_array pointer.
10696         * sysdeps/init_array/gmon-start.c: New file.  Use that.
10697         * sysdeps/init_array/crti.S: New file, empty except for comments.
10698         * sysdeps/init_array/crtn.S: Likewise.
10699
10700 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
10701
10702         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
10703         definining bcopy.
10704         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10705         Remove Prefer_SSE_for_memop.
10706         * sysdeps/x86_64/multiarch/init-arch.h: Remove
10707         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
10708         HAS_PREFER_SSE_FOR_MEMOP.
10709         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
10710         memset-x86-64.
10711         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
10712         Remove bzero, memset ifunc support.
10713         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
10714         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
10715         * sysdeps/x86_64/multiarch/memset.S: Likewise.
10716         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
10717
10718 2013-03-11  Andreas Schwab  <schwab@suse.de>
10719
10720         [BZ #15234]
10721         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
10722         by SHLIB_COMPAT.
10723         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
10724         (GLIBC_2.16): Remove pthread_atfork.
10725
10726 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
10727
10728         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
10729         (ptestcases.h): Likewise.
10730
10731 2013-03-08  Roland McGrath  <roland@hack.frob.com>
10732
10733         * Makeconfig ($(common-objpfx)config.status): Depend on
10734         sysdeps/*/preconfigure{,.in} too.
10735
10736 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
10737
10738         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
10739         (__free_hook): Use void * instead of __malloc_ptr_t.
10740         (__malloc_hook): Likewise.
10741         (__realloc_hook): Likewise.
10742         (__memalign_hook): Likewise.
10743         (__after_morecore_hook): Likewise.
10744         * malloc/arena.c (save_malloc_hook): Likewise.
10745         (save_free_hook): Likewise.
10746         * malloc/hooks.c (malloc_hook_ini): Likewise.
10747         (realloc_hook_ini): Likewise.
10748         (memalign_hook_ini): Likewise.
10749         * malloc/malloc.c (malloc_hook_ini): Likewise.
10750         (realloc_hook_ini): Likewise.
10751         (memalign_hook_ini): Likewise.
10752         (__free_hook): Likewise.
10753         (__malloc_hook): Likewise.
10754         (__realloc_hook): Likewise.
10755         (__memalign_hook): Likewise.
10756         (__libc_malloc): Likewise.
10757         (__libc_free): Likewise.
10758         (__libc_realloc): Likewise.
10759         (__libc_memalign): Likewise.
10760         (__libc_valloc): Likewise.
10761         (__libc_pvalloc): Likewise.
10762         (__libc_calloc): Likewise.
10763         (__posix_memalign): Likewise.
10764         * malloc/morecore.c (__sbrk): Likewise.
10765         (__default_morecore): Likewise.
10766
10767         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
10768
10769         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
10770         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
10771         __malloc_ptrdiff_t.
10772
10773         * malloc/malloc.h (__malloc_size_t): Remove macro.
10774         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
10775         __malloc_size_t.
10776         (old_memalign_hook): Likewise.
10777         (old_realloc_hook): Likewise.
10778         (struct hdr): Likewise.
10779         (flood): Likewise.
10780         (mallochook): Likewise.
10781         (memalignhook): Likewise.
10782         (reallochook): Likewise.
10783         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
10784         (tr_old_realloc_hook): Likewise.
10785         (tr_old_memalign_hook): Likewise.
10786         (tr_mallochook): Likewise.
10787         (tr_reallochook): Likewise.
10788         (tr_memalignhook): Likewise.
10789
10790 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10791
10792         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
10793         default_ldbl_pack and using as default implementation.
10794         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
10795         implementation.
10796         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
10797         redundant definition.
10798         (ldbl_insert_mantissa): Likewise.
10799         (ldbl_canonicalize): Likewise.
10800         (ldbl_nearbyint): Likewise.
10801         (ldbl_pack): Rename to ldbl_pack_ppc.
10802         (ldbl_unpack): Rename to ldbl_unpack_ppc.
10803         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
10804         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
10805
10806 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
10807
10808         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
10809         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
10810         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
10811         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
10812         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
10813         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
10814         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
10815         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
10816
10817 2013-03-07  Andreas Jaeger  <aj@suse.de>
10818
10819         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10820         bits/mman-linux.h.
10821
10822 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
10823
10824         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
10825         Include mpa.h and declare __MPEXP.
10826         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
10827         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
10828         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
10829         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
10830         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
10831         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
10832         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
10833
10834         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
10835         (__slowpow): Use long double EXPL and LOGL functions to
10836         compute POW.
10837         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
10838         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
10839         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
10840         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
10841         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
10842         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
10843
10844         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
10845         intermediate variable to calculate exponent.
10846         (__sqr): Likewise.
10847         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
10848         Likewise.
10849         (__sqr): Likewise.
10850
10851         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
10852         [!NO__SQR]: Define __sqr.
10853         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
10854         and NO__SQR.  Remove all code except __mul and __sqr.  Include
10855         sysdeps/ieee754/dbl-64/mpa.c.
10856         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10857
10858         [BZ #12723]
10859         * posix/Makefile (tests): Add tst-pathconf.
10860         * posix/tst-pathconf.c: New test case.
10861         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
10862         _PC_PIPE_BUF.
10863         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
10864
10865 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
10866
10867         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
10868
10869 2013-03-06  Andreas Jaeger  <aj@suse.de>
10870
10871         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
10872         definition via __MAP_ANONYMOUS.
10873
10874         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
10875         it's not part of Linux headers.
10876
10877         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
10878         (MAP_HUGE_MASK): Define.
10879
10880         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10881         Define.
10882         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10883         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10884         Define.
10885         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10886         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
10887         Define.
10888         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10889         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
10890         Define.
10891         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
10892
10893         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
10894         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
10895         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
10896         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
10897         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
10898         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
10899
10900         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
10901         Handle f2fs.
10902
10903         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10904         Handle f2fs and efivarfs.
10905
10906         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
10907         f2fs.
10908
10909         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
10910         (EFIVARFS_MAGIC): Add.
10911         (F2FS_LINK_MAX): Add.
10912
10913 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10914
10915         * stdio-common/vfprintf.c: Replace __builtin_expect with
10916         __glibc_unlikely.
10917
10918 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
10919
10920         [BZ #13550]
10921         * sysdeps/generic/bp-sym.h: Remove file.
10922         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
10923         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
10924         <bp-sym.h> and <bp-asm.h>.
10925         (__longjmp): Don't use BP_SYM.
10926         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
10927         and <bp-asm.h>.
10928         (memcpy): Don't use BP_SYM.
10929         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
10930         <bp-sym.h> and <bp-asm.h>.
10931         (memcpy): Don't use BP_SYM.
10932         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
10933         <bp-asm.h>.
10934         (memcpy): Don't use BP_SYM.
10935         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
10936         <bp-asm.h>.
10937         (memset): Don't use BP_SYM.
10938         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10939         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10940         (__bzero): Don't use BP_SYM.
10941         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10942         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10943         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
10944         <bp-sym.h> and <bp-asm.h>.
10945         (memcmp): Don't use BP_SYM.  Remove comment about bounded
10946         pointers.
10947         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
10948         <bp-sym.h> and <bp-asm.h>.
10949         (memcpy): Don't use BP_SYM.
10950         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
10951         <bp-sym.h> and <bp-asm.h>.
10952         (memset): Don't use BP_SYM.
10953         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10954         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10955         (__bzero): Don't use BP_SYM.
10956         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10957         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10958         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
10959         <bp-sym.h> and <bp-asm.h>.
10960         (strncmp): Don't use BP_SYM.  Remove comment about bounded
10961         pointers.
10962         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
10963         <bp-sym.h> and <bp-asm.h>.
10964         (memcpy): Don't use BP_SYM.
10965         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
10966         <bp-sym.h> and <bp-asm.h>.
10967         (memset): Don't use BP_SYM.
10968         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
10969         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
10970         (__bzero): Don't use BP_SYM.
10971         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
10972         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
10973         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
10974         <bp-sym.h> and <bp-asm.h>.
10975         (__memchr): Don't use BP_SYM.
10976         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
10977         <bp-sym.h> and <bp-asm.h>.
10978         (memcmp): Don't use BP_SYM.  Remove comment about bounded
10979         pointers.
10980         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
10981         <bp-sym.h> and <bp-asm.h>.
10982         (memcpy): Don't use BP_SYM.
10983         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
10984         <bp-sym.h> and <bp-asm.h>.
10985         (__mempcpy): Don't use BP_SYM.
10986         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
10987         <bp-sym.h> and <bp-asm.h>.
10988         (__memrchr): Don't use BP_SYM.
10989         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
10990         <bp-sym.h> and <bp-asm.h>.
10991         (memset): Don't use BP_SYM.
10992         (__bzero): Likewise.
10993         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
10994         <bp-sym.h> and <bp-asm.h>.
10995         (__rawmemchr): Don't use BP_SYM.
10996         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
10997         <bp-sym.h> and <bp-asm.h>.
10998         (__STRCMP): Don't use BP_SYM.
10999         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
11000         <bp-sym.h> and <bp-asm.h>.
11001         (strchr): Don't use BP_SYM.
11002         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
11003         <bp-sym.h> and <bp-asm.h>.
11004         (__strchrnul): Don't use BP_SYM.
11005         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
11006         <bp-sym.h> and <bp-asm.h>.
11007         (strlen): Don't use BP_SYM.
11008         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
11009         <bp-sym.h> and <bp-asm.h>.
11010         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11011         pointers.
11012         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
11013         <bp-sym.h> and <bp-asm.h>.
11014         (__strnlen): Don't use BP_SYM.
11015         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
11016         <bp-sym.h> and <bp-asm.h>.
11017         (__GI__setjmp): Don't use BP_SYM.
11018         (_setjmp): Likewise.
11019         (__sigsetjmp): Likewise.
11020         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
11021         (L(start_addresses)): Don't use BP_SYM.
11022         (_start): Likewise.
11023         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
11024         <bp-asm.h>.
11025         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
11026         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
11027         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11028         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11029         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
11030         <bp-asm.h>.
11031         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
11032         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
11033         about bounded pointers.
11034         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11035         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11036         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
11037         <bp-asm.h>.
11038         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11039         about bounded pointers.  Remove GKM FIXME comments.
11040         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11041         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
11042         <bp-asm.h>.
11043         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
11044         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
11045         Remove GKM FIXME comments.
11046         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11047         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11048         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
11049         <bp-asm.h>.
11050         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
11051         about bounded pointers.  Remove GKM FIXME comment.
11052         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
11053         and <bp-asm.h>.
11054         (strncmp): Don't use BP_SYM.  Remove comment about bounded
11055         pointers.
11056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
11057         <bp-sym.h> and <bp-asm.h>.
11058         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
11060         <bp-sym.h> and <bp-asm.h>.
11061         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11062         comment.
11063
11064 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11065
11066         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
11067         call free(NULL).
11068
11069 2013-03-05  David S. Miller  <davem@davemloft.net>
11070
11071         * po/es.po: Update from translation team.
11072
11073 2013-03-05  Andreas Jaeger  <aj@suse.de>
11074
11075         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
11076         <bits/mman-linux.h>.
11077         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11078         is fine.
11079         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
11080         <bits/mman-linux.h> to end of file.
11081         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11082         is fine.
11083         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
11084         <bits/mman-linux.h> to end of file.
11085         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
11086         is fine.
11087         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
11088         <bits/mman-linux.h> to end of file.
11089
11090         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
11091         (MCL_CURRENT, MCL_FUTURE): Define here.
11092
11093 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11094
11095         [BZ #15232]
11096         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
11097         attribute_hidden.
11098         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
11099
11100 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11101
11102         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
11103         fourth parameter needed for rt_sigprocmask syscall.
11104         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
11105         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
11106         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
11107         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
11108         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
11109         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
11110
11111 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
11112
11113         [BZ #13550]
11114         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
11115         comment about bounded pointers.
11116         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
11117         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
11118
11119 2013-03-04  Andreas Jaeger  <aj@suse.de>
11120
11121         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
11122         common definitions.
11123
11124         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
11125         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
11126         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
11127         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11128         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
11129         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11130
11131 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11132
11133         [BZ #15055]
11134         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
11135         __ieee754_sqrl instead of __sqrl.
11136
11137 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
11138
11139         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
11140         * sysdeps/powerpc/fpu_control.h: ... here.
11141         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
11142         * sysdeps/powerpc/bits/fenvinline.h: ... here.
11143         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
11144         * sysdeps/powerpc/bits/mathinline.h: ... here.
11145
11146 2013-03-01  Roland McGrath  <roland@hack.frob.com>
11147
11148         * elf/dl-hwcaps.c (_dl_important_hwcaps):
11149         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
11150         to just [NEED_DL_SYSINFO_DSO].
11151         * elf/dl-support.c: Likewise.
11152         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
11153         * elf/rtld.c (dl_main): Likewise.
11154         * elf/setup-vdso.h (setup_vdso): Likewise.
11155         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
11156         * sysdeps/unix/sysv/linux/dl-sysdep.c
11157         (_dl_discover_osversion): Likewise.
11158
11159 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
11160
11161         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
11162         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11163
11164 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11165
11166         * NEWS: Mention libm performance improvements and non-x86 PI
11167         futex support.
11168
11169         * csu/libc-start.c (__pthread_initialize_minimal): Change
11170         function arguments.
11171         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
11172
11173 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
11174
11175         [BZ #13550]
11176         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
11177         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
11178         <bp-sym.h> and <bp-asm.h>.
11179         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11180         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
11181         and <bp-asm.h>.
11182         (memcpy): Don't use BP_SYM.
11183         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
11184         <bp-asm.h>.
11185         (__mpn_add_n): Don't use BP_SYM.
11186         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
11187         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
11188         and <bp-asm.h>.
11189         (__mpn_addmul_1): Don't use BP_SYM.
11190         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11191         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
11192         <bp-sym.h>.
11193         (_setjmp): Don't use BP_SYM.
11194         (__novmx_setjmp): Likewise.
11195         (__GI__setjmp): Likewise.
11196         (__vmx_setjmp): Likewise.
11197         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
11198         <bp-sym.h>.
11199         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
11200         (__bzero): Don't use BP_SYM.
11201         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
11202         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
11203         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
11204         <bp-sym.h> and <bp-asm.h>.
11205         (memcpy): Don't use BP_SYM.
11206         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
11207         <bp-sym.h> and <bp-asm.h>.
11208         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11209         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
11210         <bp-sym.h> and <bp-asm.h>.
11211         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
11212         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
11213         <bp-asm.h>.
11214         (__mpn_lshift): Don't use BP_SYM.
11215         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11216         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
11217         <bp-asm.h>.
11218         (memset): Don't use BP_SYM.
11219         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
11220         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
11221         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
11222         <bp-asm.h>.
11223         (__mpn_mul_1): Don't use BP_SYM.
11224         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11225         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
11226         <bp-sym.h> and <bp-asm.h>.
11227         (memcmp): Don't use BP_SYM.
11228         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
11229         <bp-sym.h> and <bp-asm.h>.
11230         (memcpy): Don't use BP_SYM.
11231         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
11232         <bp-sym.h> and <bp-asm.h>.
11233         (memset): Don't use BP_SYM.
11234         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
11235         <bp-sym.h> and <bp-asm.h>.
11236         (strncmp): Don't use BP_SYM.
11237         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
11238         <bp-sym.h> and <bp-asm.h>.
11239         (memcpy): Don't use BP_SYM.
11240         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
11241         <bp-sym.h> and <bp-asm.h>.
11242         (memset): Don't use BP_SYM.
11243         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
11244         <bp-sym.h> and <bp-asm.h>.
11245         (__memchr): Don't use BP_SYM.
11246         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
11247         <bp-sym.h> and <bp-asm.h>.
11248         (memcmp): Don't use BP_SYM.
11249         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
11250         <bp-sym.h> and <bp-asm.h>.
11251         (memcpy): Don't use BP_SYM.
11252         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
11253         <bp-sym.h> and <bp-asm.h>.
11254         (__mempcpy): Don't use BP_SYM.
11255         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
11256         <bp-sym.h> and <bp-asm.h>.
11257         (__memrchr): Don't use BP_SYM.
11258         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
11259         <bp-sym.h> and <bp-asm.h>.
11260         (memset): Don't use BP_SYM.
11261         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
11262         <bp-sym.h> and <bp-asm.h>.
11263         (__rawmemchr): Don't use BP_SYM.
11264         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
11265         <bp-sym.h> and <bp-asm.h>.
11266         (__STRCMP): Don't use BP_SYM.
11267         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
11268         <bp-sym.h> and <bp-asm.h>.
11269         (strchr): Don't use BP_SYM.
11270         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
11271         <bp-sym.h> and <bp-asm.h>.
11272         (__strchrnul): Don't use BP_SYM.
11273         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
11274         <bp-sym.h> and <bp-asm.h>.
11275         (strlen): Don't use BP_SYM.
11276         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
11277         <bp-sym.h> and <bp-asm.h>.
11278         (strncmp): Don't use BP_SYM.
11279         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
11280         <bp-sym.h> and <bp-asm.h>.
11281         (__strnlen): Don't use BP_SYM.
11282         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
11283         <bp-asm.h>.
11284         (__mpn_rshift): Don't use BP_SYM.
11285         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11286         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
11287         <bp-sym.h> and <bp-asm.h>.
11288         (__sigsetjmp): Don't use BP_SYM.
11289         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
11290         (L(start_addresses)): Don't use BP_SYM.
11291         (_start): Likewise.
11292         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
11293         <bp-asm.h>.
11294         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
11295         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11296         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11297         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
11298         <bp-asm.h>.
11299         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
11300         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11301         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11302         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
11303         <bp-asm.h>.
11304         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11305         comments.
11306         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11307         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
11308         <bp-asm.h>.
11309         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
11310         FIXME comments.
11311         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11312         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
11313         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
11314         <bp-asm.h>.
11315         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
11316         comment.
11317         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
11318         and <bp-asm.h>.
11319         (strncmp): Don't use BP_SYM,
11320         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
11321         <bp-asm.h>.
11322         (__mpn_sub_n): Don't use BP_SYM.
11323         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11324         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
11325         and <bp-asm.h>.
11326         (__mpn_submul_1): Don't use BP_SYM.
11327         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
11329         <bp-sym.h> and <bp-asm.h>.
11330         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
11331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
11332         <bp-sym.h> and <bp-asm.h>.
11333         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
11334         comment.
11335
11336 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11337
11338         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
11339         Use ZK to minimize writes to Z.
11340         (sub_magnitudes): Simplify code a bit.
11341         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
11342         Use ZK to minimize writes to Z.
11343         (sub_magnitudes): Simplify code a bit.
11344
11345 2013-02-27  Roland McGrath  <roland@hack.frob.com>
11346
11347         * csu/gmon-start.c: Add special exception to license text.
11348
11349 2013-02-27  Richard Henderson  <rth@redhat.com>
11350
11351         * scripts/config.guess: Update from config.git.
11352         * scripts/config.sub: Likewise.
11353
11354 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11355
11356         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
11357
11358         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
11359
11360         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
11361
11362         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
11363
11364         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
11365
11366 2013-02-26  Roland McGrath  <roland@hack.frob.com>
11367
11368         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
11369         [$(build-shared = yes].
11370
11371 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11372
11373         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
11374         (__mul): Reduce iterations for calculating mantissa.
11375
11376         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
11377         MPTWO.
11378         (__mpranred): Likewise.
11379
11380         [BZ #15160]
11381         * malloc/memusagestat.c (main): Draw graphs for heap and stack
11382         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
11383
11384 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11385
11386         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
11387         Define __attribute__.
11388
11389 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11390
11391         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
11392         unused.
11393         * posix/regex_internal.h (__attribute): Remove.
11394         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
11395         (re_string_context_at): Likewise.
11396         (bitset_not): Use __attribute__ and mark function as possibly
11397         unused.
11398         (bitset_merge): Likewise.
11399         (bitset_mask): Likewise.
11400         (re_string_char_size_at): Likewise.
11401         (re_string_wchar_at): Likewise.
11402         (re_string_elem_size_at): Likewise.
11403
11404 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11405
11406         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
11407         code.
11408         (cc32): Likewise.
11409
11410         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
11411         (__acr): Likewise.
11412         (__cpy): Likewise.
11413         (norm): Likewise.
11414         (denorm): Likewise.
11415         (__dbl_mp): Likewise.
11416         (add_magnitudes): Likewise.
11417         (sub_magnitudes): Likewise.
11418         (__mul): Likewise.
11419         (__inv): Likewise.
11420
11421         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
11422         style.
11423
11424         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
11425         style.
11426
11427         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
11428         code.
11429
11430         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
11431         up changes with default code.
11432         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
11433         Likewise.
11434
11435 2013-02-24  Allan McRae  <allan@archlinux.org>
11436
11437         * manual/socket.texi (The Internet Namespace): Order menu items
11438         to match that in the file.
11439
11440         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
11441         node listing of the info page menu.
11442
11443 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
11444
11445         [BZ #13550]
11446         * sysdeps/i386/bp-asm.h: Remove file.
11447         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
11448         (PARMS): Do not use macros from bp-asm.h.
11449         (S1): Likewise.
11450         (S2): Likewise.
11451         (SIZE): Likewise.
11452         (__mpn_add_n): Do not use BP_SYM
11453         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
11454         "bp-asm.h".
11455         (PARMS): Do not use macros from bp-asm.h.
11456         (S1): Likewise.
11457         (SIZE): Likewise.
11458         (__mpn_addmul_1): Do not use BP_SYM
11459         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
11460         "bp-asm.h".
11461         (PARMS): Do not use macros from bp-asm.h.
11462         (SIGMSK): Likewise.
11463         (_setjmp): Likewise.  Do not use BP_SYM.
11464         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
11465         "bp-asm.h".
11466         (PARMS): Do not use macros from bp-asm.h.
11467         (SIGMSK): Likewise.
11468         (setjmp): Likewise.  Do not use BP_SYM.
11469         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
11470         "bp-asm.h".
11471         (PARMS): Do not use macros from bp-asm.h.
11472         (__frexp): Do not use BP_SYM.
11473         (frexp): Likewise.
11474         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
11475         "bp-asm.h".
11476         (PARMS): Do not use macros from bp-asm.h.
11477         (__frexpf): Do not use BP_SYM.
11478         (frexpf): Likewise.
11479         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
11480         "bp-asm.h".
11481         (PARMS): Do not use macros from bp-asm.h.
11482         (__frexpl): Do not use BP_SYM.
11483         (frexpl): Likewise.
11484         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
11485         "bp-asm.h".
11486         (PARMS): Do not use macros from bp-asm.h.
11487         (__remquo): Do not use BP_SYM.
11488         (remquo): Likewise.
11489         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
11490         "bp-asm.h".
11491         (PARMS): Do not use macros from bp-asm.h.
11492         (__remquof): Do not use BP_SYM.
11493         (remquof): Likewise.
11494         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
11495         "bp-asm.h".
11496         (PARMS): Do not use macros from bp-asm.h.
11497         (__remquol): Do not use BP_SYM.
11498         (remquol): Likewise.
11499         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
11500         "bp-asm.h".
11501         (PARMS): Do not use macros from bp-asm.h.
11502         (DEST): Likewise.
11503         (SRC): Likewise.
11504         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
11505         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
11506         "bp-asm.h".
11507         (PARMS): Do not use macros from bp-asm.h.
11508         (strlen): Do not use BP_SYM.
11509         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
11510         "bp-asm.h".
11511         (PARMS): Do not use macros from bp-asm.h.
11512         (S1): Likewise.
11513         (S2): Likewise.
11514         (SIZE): Likewise.
11515         (__mpn_add_n): Do not use BP_SYM.
11516         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
11517         "bp-asm.h".
11518         (PARMS): Do not use macros from bp-asm.h.
11519         (S1): Likewise.
11520         (SIZE): Likewise.
11521         (__mpn_addmul_1): Do not use BP_SYM.
11522         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
11523         weak_alias.
11524         (bzero): Likewise.
11525         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
11526         "bp-asm.h".
11527         (PARMS): Do not use macros from bp-asm.h.
11528         (S): Likewise.
11529         (SIZE): Likewise.
11530         (__mpn_lshift): Do not use BP_SYM.
11531         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
11532         "bp-asm.h".
11533         (PARMS): Do not use macros from bp-asm.h.
11534         (DEST): Likewise.
11535         (SRC): Likewise.
11536         (LEN): Likewise.
11537         (memcpy): Likewise.  Do not use BP_SYM.
11538         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
11539         libc_hidden_def and weak_alias.
11540         (mempcpy): Do not use BP_SYM in weak_alias.
11541         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
11542         "bp-asm.h".
11543         (PARMS): Do not use macros from bp-asm.h.
11544         (DEST): Likewise.
11545         (LEN): Likewise.
11546         [!BZERO_P] (CHR): Likewise.
11547         (memset): Likewise.  Do not use BP_SYM.
11548         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
11549         "bp-asm.h".
11550         (PARMS): Do not use macros from bp-asm.h.
11551         (S1): Likewise.
11552         (SIZE): Likewise.
11553         (__mpn_mul_1): Do not use BP_SYM.
11554         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
11555         "bp-asm.h".
11556         (PARMS): Do not use macros from bp-asm.h.
11557         (S): Likewise.
11558         (SIZE): Likewise.
11559         (__mpn_rshift): Do not use BP_SYM.
11560         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
11561         "bp-asm.h".
11562         (PARMS): Do not use macros from bp-asm.h.
11563         (STR): Likewise.
11564         (CHR): Likewise.
11565         (strchr): Likewise.  Do not use BP_SYM.
11566         (index): Do not use BP_SYM in weak_alias.
11567         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
11568         "bp-asm.h".
11569         (PARMS): Do not use macros from bp-asm.h.
11570         (DEST): Likewise.
11571         (SRC): Likewise.
11572         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
11573         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
11574         "bp-asm.h".
11575         (PARMS): Do not use macros from bp-asm.h.
11576         (strlen): Do not use BP_SYM.
11577         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
11578         "bp-asm.h".
11579         (PARMS): Do not use macros from bp-asm.h.
11580         (S1): Likewise.
11581         (S2): Likewise.
11582         (SIZE): Likewise.
11583         (__mpn_sub_n): Do not use BP_SYM.
11584         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
11585         "bp-asm.h".
11586         (PARMS): Do not use macros from bp-asm.h.
11587         (S1): Likewise.
11588         (SIZE): Likewise.
11589         (__mpn_submul_1): Do not use BP_SYM.
11590         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
11591         "bp-asm.h".
11592         (PARMS): Do not use macros from bp-asm.h.
11593         (S1): Likewise.
11594         (S2): Likewise.
11595         (SIZE): Likewise.
11596         (__mpn_add_n): Do not use BP_SYM.
11597         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
11598         weak_alias.
11599         (bzero): Likewise.
11600         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
11601         "bp-asm.h".
11602         (PARMS): Do not use macros from bp-asm.h.
11603         (BLK2): Likewise.
11604         (LEN): Likewise.
11605         (memcmp): Do not use BP_SYM.
11606         (bcmp): Do not use BP_SYM in weak_alias.
11607         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
11608         "bp-asm.h".
11609         (PARMS): Do not use macros from bp-asm.h.
11610         (DEST): Likewise.
11611         (SRC): Likewise.
11612         (LEN): Likewise.
11613         (memcpy): Likewise.  Do not use BP_SYM.
11614         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
11615         "bp-asm.h".
11616         (PARMS): Do not use macros from bp-asm.h.
11617         (DEST): Likewise.
11618         (SRC): Likewise.
11619         (LEN): Likewise.
11620         (memmove): Likewise.  Do not use BP_SYM.
11621         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
11622         "bp-asm.h".
11623         (PARMS): Do not use macros from bp-asm.h.
11624         (DEST): Likewise.
11625         (SRC): Likewise.
11626         (LEN): Likewise.
11627         (__mempcpy): Likewise.  Do not use BP_SYM.
11628         (mempcpy): Do not use BP_SYM in weak_alias.
11629         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
11630         "bp-asm.h".
11631         (PARMS): Do not use macros from bp-asm.h.
11632         (DEST): Likewise.
11633         (LEN): Likewise.
11634         [!BZERO_P] (CHR): Likewise.
11635         (memset): Likewise.  Do not use BP_SYM.
11636         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
11637         "bp-asm.h".
11638         (PARMS): Do not use macros from bp-asm.h.
11639         (STR2): Likewise.
11640         (strcmp): Do not use BP_SYM.
11641         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
11642         "bp-asm.h".
11643         (PARMS): Do not use macros from bp-asm.h.
11644         (STR): Likewise.
11645         (DELIM): Likewise.
11646         [USE_AS_STRTOK_R] (SAVE): Likewise.
11647         (FUNCTION): Likewise.  Do not use BP_SYM.
11648         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
11649         aliases.
11650         (strtok_r): Likewise.
11651         (__GI___strtok_r): Likewise.
11652         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
11653         (PARMS): Do not use macros from bp-asm.h.
11654         (S): Likewise.
11655         (SIZE): Likewise.
11656         (__mpn_lshift): Do not use BP_SYM.
11657         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
11658         (PARMS): Do not use macros from bp-asm.h.
11659         (STR): Likewise.
11660         (CHR): Likewise.
11661         (__memchr): Do not use BP_SYM.
11662         (memchr): Do not use BP_SYM in weak_alias.
11663         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
11664         (PARMS): Do not use macros from bp-asm.h.
11665         (BLK2): Likewise.
11666         (LEN): Likewise.
11667         (memcmp): Do not use BP_SYM.
11668         (bcmp): Do not use BP_SYM in weak_alias.
11669         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
11670         (PARMS): Do not use macros from bp-asm.h.
11671         (S1): Likewise.
11672         (SIZE): Likewise.
11673         (__mpn_mul_1): Do not use BP_SYM.
11674         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
11675         "bp-asm.h".
11676         (PARMS): Do not use macros from bp-asm.h.
11677         (STR): Likewise.
11678         (CHR): Likewise.
11679         (__rawmemchr): Do not use BP_SYM.
11680         (rawmemchr): Do not use BP_SYM in weak_alias.
11681         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
11682         (PARMS): Do not use macros from bp-asm.h.
11683         (S): Likewise.
11684         (SIZE): Likewise.
11685         (__mpn_rshift): Do not use BP_SYM.
11686         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
11687         (PARMS): Do not use macros from bp-asm.h.
11688         (SIGMSK): Likewise.
11689         (__sigsetjmp): Likewise.  Do not use BP_SYM.
11690         * sysdeps/i386/start.S: Do not include "bp-sym.h".
11691         (_start): Do not use BP_SYM.
11692         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
11693         (PARMS): Do not use macros from bp-asm.h.
11694         (DEST): Likewise.
11695         (SRC): Likewise.
11696         (__stpcpy): Likewise.  Do not use BP_SYM.
11697         (stpcpy): Do not use BP_SYM in weak_alias.
11698         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
11699         "bp-asm.h".
11700         (PARMS): Do not use macros from bp-asm.h.
11701         (DEST): Likewise.
11702         (SRC): Likewise.
11703         (LEN): Likewise.
11704         (__stpncpy): Likewise.  Do not use BP_SYM.
11705         (stpncpy): Do not use BP_SYM in weak_alias.
11706         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
11707         (PARMS): Do not use macros from bp-asm.h.
11708         (STR): Likewise.
11709         (CHR): Likewise.
11710         (strchr): Likewise.  Do not use BP_SYM.
11711         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
11712         "bp-asm.h".
11713         (PARMS): Do not use macros from bp-asm.h.
11714         (STR): Likewise.
11715         (CHR): Likewise.
11716         (__strchrnul): Likewise.  Do not use BP_SYM.
11717         (strchrnul): Do not use BP_SYM in weak_alias.
11718         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
11719         "bp-asm.h".
11720         (PARMS): Do not use macros from bp-asm.h.
11721         (STOP): Likewise.
11722         (strcspn): Do not use BP_SYM.
11723         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
11724         "bp-asm.h".
11725         (PARMS): Do not use macros from bp-asm.h.
11726         (STR): Likewise.
11727         (STOP): Likewise.
11728         (strpbrk): Likewise.  Do not use BP_SYM.
11729         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
11730         "bp-asm.h".
11731         (PARMS): Do not use macros from bp-asm.h.
11732         (STR): Likewise.
11733         (CHR): Likewise.
11734         (strrchr): Likewise.  Do not use BP_SYM.
11735         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
11736         (PARMS): Do not use macros from bp-asm.h.
11737         (SKIP): Likewise.
11738         (strspn): Do not use BP_SYM.
11739         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
11740         (PARMS): Do not use macros from bp-asm.h.
11741         (STR): Likewise.
11742         (DELIM): Likewise.
11743         (SAVE): Likewise.
11744         (FUNCTION): Likewise.  Do not use BP_SYM.
11745         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
11746         aliases.
11747         (strtok_r): Likewise.
11748         (__GI___strtok_r): Likewise.
11749         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
11750         (PARMS): Do not use macros from bp-asm.h.
11751         (S1): Likewise.
11752         (S2): Likewise.
11753         (SIZE): Likewise.
11754         (__mpn_sub_n): Do not use BP_SYM.
11755         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
11756         "bp-asm.h".
11757         (PARMS): Do not use macros from bp-asm.h.
11758         (S1): Likewise.
11759         (SIZE): Likewise.
11760         (__mpn_submul_1): Do not use BP_SYM.
11761         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
11762         <bp-sym.h>.
11763         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
11764         and <bp-asm.h>.
11765         (PARMS): Do not use macros from bp-asm.h.
11766         (FLAGS): Likewise.
11767         (PTID): Likewise.
11768         (TLS): Likewise.
11769         (CTID): Likewise.
11770         (__clone): Do not use BP_SYM.
11771         (clone): Do not use BP_SYM in weak_alias.
11772         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
11773         and <bp-asm.h>.
11774         (PARMS): Do not use macros from bp-asm.h.
11775         (LEN): Likewise.
11776         (__mmap64): Do not use BP_SYM.
11777         (mmap64): Do not use BP_SYM in weak_alias.
11778         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
11779         <bp-sym.h> and <bp-asm.h>.
11780         (PARMS): Do not use macros from bp-asm.h.
11781         (__posix_fadvise64_l64): Do not use BP_SYM.
11782         * sysdeps/unix/sysv/linux/i386/semtimedop.S
11783         (PARMS): Do not use macros from bp-asm.h.
11784         (NSOPS): Likewise.
11785         (semtimedop): Do not use BP_SYM.
11786         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
11787         and <bp-asm.h>.
11788
11789 2013-02-21  Allan McRae  <allan@archlinux.org>
11790
11791         * manual/message.texi (Charset conversion in gettext):
11792         Move @end statement to beginning of line.
11793
11794 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11795
11796         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
11797         static.
11798         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
11799         Likewise.
11800
11801         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
11802         (denorm): Likewise.
11803         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
11804         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
11805
11806 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11807
11808         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
11809         tail-call to the resolved function if pltexit isn't needed.
11810
11811 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11812
11813         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
11814         or Y being zero as being unlikely.
11815         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
11816         Likewise.
11817
11818 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
11819
11820         * manual/nss.texi (System Databases and Name Service Switch):
11821         Remove frobnicate @pxref.
11822
11823 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
11824
11825         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
11826         __attribute__ ((unused)) to __attribute__ ((__unused__)).
11827
11828 2013-02-20  Petr Machata  <pmachata@redhat.com>
11829
11830         * elf/elf.h (R_ARM_TARGET1): New macro.
11831         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
11832         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
11833         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
11834         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
11835         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
11836         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
11837         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
11838         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
11839         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
11840         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
11841         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
11842         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
11843         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
11844         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
11845         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
11846         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
11847         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
11848         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
11849         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
11850         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
11851         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
11852         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
11853         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
11854         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
11855         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
11856         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
11857         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
11858         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
11859         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
11860         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
11861         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
11862         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
11863         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
11864         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
11865         (R_ARM_THM_GOT_BREL12): Likewise.
11866         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
11867         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
11868         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
11869         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
11870         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
11871         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
11872         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
11873         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
11874         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
11875
11876 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
11877
11878         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
11879         __attribute_used__ to __attribute__ ((unused)).
11880
11881 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11882
11883         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
11884         powerpc mpa.c.
11885         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
11886         comment formatting.
11887         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
11888
11889 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
11890
11891         [BZ #13550]
11892         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
11893         Remove macro.
11894         (ENTER): Remove both macro definitions.
11895         (LEAVE): Likewise.
11896         (CHECK_BOUNDS_LOW): Likewise.
11897         (CHECK_BOUNDS_HIGH): Likewise.
11898         (CHECK_BOUNDS_BOTH): Likewise.
11899         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
11900         (RETURN_BOUNDED_POINTER): Likewise.
11901         (RETURN_NULL_BOUNDED_POINTER): Likewise.
11902         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
11903         (POP_ERRNO_LOCATION_RETURN): Likewise.
11904         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
11905         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11906         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
11907         macros.
11908         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11909         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
11910         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
11911         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
11912         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
11913         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
11914         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
11915         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
11916         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
11917         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
11918         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
11919         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
11920         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11921         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
11922         removed macros.
11923         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11924         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
11925         macros.
11926         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11927         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
11928         * sysdeps/i386/i586/memset.S (memset): Likewise.
11929         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
11930         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11931         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
11932         macros.
11933         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11934         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
11935         Change uses of L(2) to L(out).
11936         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
11937         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
11938         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
11939         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11940         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
11941         removed macros.
11942         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11943         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
11944         macros.
11945         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11946         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
11947         (RETURN): Do not use macro LEAVE.
11948         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
11949         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
11950         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
11951         * sysdeps/i386/i686/memset.S (memset): Likewise.
11952         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
11953         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
11954         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
11955         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
11956         Likewise.
11957         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11958         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
11959         L(1_2) and L(1_3) into L(1).
11960         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
11961         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
11962         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11963         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
11964         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
11965         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
11966         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
11967         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11968         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
11969         macros.
11970         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
11971         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
11972         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
11973         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
11974         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
11975         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
11976         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
11977         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
11978         * sysdeps/i386/strcspn.S (strcspn): Likewise.
11979         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
11980         * sysdeps/i386/strrchr.S (strrchr): Likewise.
11981         * sysdeps/i386/strspn.S (strspn): Likewise.
11982         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
11983         conditional code.
11984         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
11985         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
11986         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
11987         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
11988         L(1_3) into L(1_1).
11989         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
11990         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
11991         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
11992         macros.
11993         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
11994
11995 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
11996
11997         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
11998         macro.
11999
12000 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12001
12002         * math/atest-exp.c (exp_mpn): Remove ROUND.
12003         * math/atest-exp2.c (exp_mpn): Likewise.
12004         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
12005
12006         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
12007         * stdlib/tst-tls-atexit-lib.c: Likewise.
12008         * stdlib/tst-tls-atexit.c: Likewise.
12009
12010 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12011
12012         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
12013         and __attribute_alloc_size__.
12014
12015 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12016
12017         * include/programs/xmalloc.h: Change __attribute_alloc_size to
12018         __attribute_alloc_size__.
12019         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
12020         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
12021
12022 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
12023
12024         * include/programs/xmalloc.h: New file.
12025         * catgets/gencat.c: Include it.
12026         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
12027         * elf/pldd.c: Likewise.
12028         * iconv/iconv_charmap.c: Likewise.
12029         * iconv/iconvconfig.c: Likewise.
12030         * iconv/strtab.c: Likewise.
12031         * locale/programs/locale.c: Likewise.
12032         * locale/programs/localedef.h: Likewise.
12033         * locale/programs/simple-hash.c: Likewise.
12034         * nscd/nscd.h: Likewise.
12035         * nss/makedb.c: Likewise.
12036         * sysdeps/generic/ldconfig.h: Likewise.
12037
12038 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12039
12040         * Versions.def: Add GLIBC_2.18.
12041         * include/link.h (struct link_map): New member l_tls_dtor_count.
12042         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
12043         (__call_tls_dtors): Likewise.
12044         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
12045         __cxa_thread_atexit_impl.
12046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12047         Likewise.
12048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12049         Likewise.
12050         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
12051         Likewise.
12052         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
12053         Likewise.
12054         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12055         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
12056         Likewise.
12057         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
12058         Likewise.
12059         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12060         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
12061         Likewise.
12062         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
12063         (tests): Add test case tst-tls-atexit.
12064         (modules-names): Add shared library for tst-tls-atexit.
12065         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
12066         (GLIBC_PRIVATE): Add __call_tls_dtors.
12067         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
12068         for libstdc++.
12069         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
12070         * stdlib/tst-tls-atexit.c: New test case.
12071         * stdlib/tst-tls-atexit-lib.c: New test case.
12072
12073         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
12074
12075         * elf/Versions (ld): Add _dl_find_dso_for_object.
12076         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
12077         * elf/dl-open.c (_dl_find_dso_for_object): New function.
12078         (dl_open_worker): Use _dl_find_dso_for_object.
12079         * elf/dl-sym.c (do_sym): Likewise.
12080         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
12081
12082 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12083
12084         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
12085         Syntactic changes only.
12086         (_dl_runtime_profile): Do a tail-call to the resolved function.
12087
12088 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
12089
12090         [BZ #13550]
12091         * sysdeps/x86_64/bp-asm.h: Remove file.
12092         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
12093         <bp-sym.h> and <bp-asm.h>.
12094         (__clone): Do not use BP_SYM.
12095         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
12096         <bp-sym.h> and <bp-asm.h>.
12097         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12098         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
12099         "bp-asm.h".
12100         (_setjmp): Do not use BP_SYM.
12101         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
12102         "bp-asm.h".
12103         (setjmp): Do not use BP_SYM.
12104         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
12105         libc_hidden_def.
12106         (mempcpy): Do not use BP_SYM in weak_alias.
12107         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
12108         "bp-asm.h".
12109         (strchr): Do not use BP_SYM.
12110         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
12111         "bp-asm.h".
12112         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
12113         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
12114         (_start): Do not use BP_SYM.
12115         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
12116         "bp-asm.h".
12117         (strcat): Do not use BP_SYM.
12118         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
12119         "bp-asm.h".
12120         (STRCMP): Do not use BP_SYM.
12121         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
12122         "bp-asm.h".
12123         (STRCPY): Do not use BP_SYM.
12124         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
12125         "bp-asm.h".
12126         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
12127         "bp-asm.h".
12128         (FUNCTION): Do not use BP_SYM.
12129         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
12130         weak_alias.
12131         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
12132
12133 2013-02-17  Andreas Jaeger  <aj@suse.de>
12134
12135         * time/Versions: Sort entries.
12136         * string/Versions: Likewise.
12137         * resolv/Versions: Likewise.
12138         * posix/Versions: Likewise.
12139         * iconv/Versions: Likewise.
12140         * elf/Versions: Likewise.
12141         * wcsmbs/Versions: Likewise.
12142
12143 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
12144
12145         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
12146         loop termination condition.
12147
12148         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
12149         variable to calculate EZ.
12150         (__sqr): Likewise.
12151
12152         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
12153         the lower precision input.
12154
12155 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
12156
12157         [BZ #13550]
12158         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
12159         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
12160         (run-via-rtld-prefix): Do not handle %-bp tests.
12161         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
12162         (all-object-suffixes): Remove .ob.
12163         (bppfx): Remove variable.
12164         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
12165         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
12166         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
12167         [$(build-bounded) = yes] (libtype.ob): Likewise.
12168         * Makerules (elide-routines.ob): Remove variable.
12169         (do-tests-clean): Do not handle *-bp.out.
12170         (common-mostlyclean): Do not handle *-bp and *-bp.out.
12171         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
12172         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
12173         (tests): Do not include $(tests-bp.out).
12174         (xtests): Do not include $(xtests-bp.out).
12175         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
12176         [$(build-bounded) = yes] ($(addprefix
12177         $(objpfx),$(binaries-bounded))): Remove rule.
12178         ($(objpfx)%-bp.out): Remove rule.
12179         * config.make.in (build-bounded): Remove variable.
12180         * crypt/Makefile [$(build-bounded) = yes]
12181         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
12182         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
12183         append to variable.
12184         [$(build-bounded) = yes] (install-lib): Likewise.
12185         [$(build-bounded) = yes] (generated): Likewise.
12186         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
12187         Remove rule.
12188         * intl/Makefile [$(build-bounded) = yes]
12189         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
12190         * math/Makefile [$(build-bounded) = yes]
12191         ($(tests:%=$(objpfx)%-bp): Likewise.
12192         * misc/Makefile [$(build-bounded) = yes]
12193         ($(objpfx)tst-tsearch-bp): Likewise.
12194         * nptl/Makeconfig (bounded-thread-library): Remove variable.
12195         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
12196         Remove dependency.
12197         * string/Makefile (o-objects.ob): Remove variable.
12198         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
12199         (CFLAGS-.ob): Remove variable.
12200         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
12201         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
12202         both definitions of variable.
12203         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
12204         (ASFLAGS-.ob): Remove variable.
12205
12206 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
12207
12208         [BZ #13550]
12209         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
12210         Remove __BOUNDED_POINTERS__ from condition.
12211         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
12212         * string/bits/string2.h [!__NO_STRING_INLINES &&
12213         !__BOUNDED_POINTERS__]: Likewise.
12214         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
12215         Likewise.
12216         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
12217         Remove conditional code.
12218         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
12219         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
12220         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
12221         condition.
12222
12223         [BZ #13550]
12224         * csu/libc-start.c: Do not include <bp-sym.h>.
12225         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
12226         * elf/dl-open.c: Do not include <bp-sym.h>.
12227         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
12228         * math/fegetenv.c: Do not include <bp-sym.h>.
12229         (fegetenv): Do not use BP_SYM in versioned symbols.
12230         * nptl/sysdeps/pthread/bits/libc-lockP.h
12231         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
12232         <bp-sym.h>.
12233         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12234         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
12235         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12236         (__pthread_mutex_destroy): Likewise.
12237         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12238         (__pthread_mutex_lock): Likewise.
12239         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12240         (__pthread_mutex_trylock): Likewise.
12241         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12242         (__pthread_mutex_unlock): Likewise.
12243         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12244         (__pthread_mutexattr_init): Likewise.
12245         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12246         (__pthread_mutexattr_destroy): Likewise.
12247         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12248         (__pthread_mutexattr_settype): Likewise.
12249         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12250         (__pthread_rwlock_init): Likewise.
12251         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12252         (__pthread_rwlock_destroy): Likewise.
12253         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12254         (__pthread_rwlock_rdlock): Likewise.
12255         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12256         (__pthread_rwlock_tryrdlock): Likewise.
12257         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12258         (__pthread_rwlock_wrlock): Likewise.
12259         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12260         (__pthread_rwlock_trywrlock): Likewise.
12261         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12262         (__pthread_rwlock_unlock): Likewise.
12263         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12264         (__pthread_key_create): Likewise.
12265         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12266         (__pthread_setspecific): Likewise.
12267         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12268         (__pthread_getspecific): Likewise.
12269         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
12270         Likewise.
12271         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12272         (_pthread_cleanup_push_defer): Likewise.
12273         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12274         (_pthread_cleanup_pop_restore): Likewise.
12275         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
12276         (pthread_setcancelstate): Likewise.
12277         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
12278         <bp-sym.h>.
12279         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
12280         (memchr): Do not use BP_SYM in weak_alias.
12281         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
12282         (fegetenv): Do not use BP_SYM in versioned symbols.
12283         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
12284         (fesetenv): Do not use BP_SYM in versioned symbols.
12285         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12286         (feupdateenv): Do not use BP_SYM in versioned symbols.
12287         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12288         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12289         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
12290         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
12291         (open64): Do not use BP_SYM in weak_alias.
12292         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
12293         (fegetenv): Do not use BP_SYM in versioned symbols.
12294         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
12295         (fesetenv): Do not use BP_SYM in versioned symbols.
12296         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
12297         (feupdateenv): Do not use BP_SYM in versioned symbols.
12298         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
12299         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
12300         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
12301         (feraiseexcept): Do not use BP_SYM in versioned symbols.
12302         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
12303         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
12304         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
12305         <bp-sym.h>.
12306         (__libc_start_main): Do not use BP_SYM.
12307
12308 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
12309
12310         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
12311         redundant return line.
12312         (norm): Likewise.
12313         (denorm): Likewise.
12314         (dbl_mp): Likewise.
12315         (sub_magnitudes): Likewise.
12316         (__add): Likewise.
12317         (__sub): Likewise.
12318         (__mul): Likewise.
12319         (__inv): Likewise.
12320         (__dvd): Likewise.
12321         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
12322         (norm): Likewise.
12323         (denorm): Likewise.
12324         (dbl_mp): Likewise.
12325         (sub_magnitudes): Likewise.
12326         (__add): Likewise.
12327         (__sub): Likewise.
12328         (__mul): Likewise.
12329         (__inv): Likewise.
12330         (__dvd): Likewise.
12331
12332         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
12333         instead of __mul.
12334         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12335         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
12336         (cc32): Likewise.
12337
12338         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
12339         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
12340         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
12341         of __mul for squares.
12342         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
12343         function
12344         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
12345         Likewise.
12346         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
12347         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12348
12349 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
12350
12351         [BZ #13550]
12352         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
12353         code.
12354         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
12355         prototype or function definition.  Rename ubp_* variables and
12356         parameters.  Remove argv definitions conditional on
12357         [__BOUNDED_POINTERS__].
12358         * debug/backtrace.c (__backtrace): Do not use __unbounded.
12359         * elf/dl-runtime.c (_dl_fixup): Likewise.
12360         * include/set-hooks.h (RUN_HOOK): Likewise.
12361         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
12362         definition.
12363         * string/strcpy.c (strcpy): Do not use __unbounded.
12364         * sysdeps/generic/frame.h (struct layout): Likewise.
12365         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
12366         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
12367         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
12368         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
12369         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
12370         (__backtrace): Likewise.
12371         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
12372         use __ptrvalue.
12373         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
12374         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
12375         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
12376         Likewise.
12377         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
12378         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
12379         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
12380         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
12381         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
12382         Do not use __unbounded.
12383         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
12384         Rename __unboundedrlimits parameter to rlimits in prototype.
12385         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
12386         Do not use __unbounded.
12387         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
12388         not use __ptrvalue.
12389         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
12390         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
12391         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
12392         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
12393         __ptrvalue or __unbounded.
12394         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
12395         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
12396         use __unbounded.
12397         (__new_msgctl): Do not use __ptrvalue.
12398         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
12399         __unbounded.
12400         (__libc_msgrcv): Do not use __ptrvalue.
12401         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
12402         startup_info): Do not use __unbounded.
12403         (__libc_start_main): Likewise.  Rename ubp_* variables and
12404         parameters.  Remove argv definitions conditional on
12405         [__BOUNDED_POINTERS__].
12406         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
12407         __ptrvalue.
12408         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
12409         use __unbounded.
12410         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
12411         or __ptrvalue.
12412         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
12413         use __unbounded.
12414         (__new_shmctl): Do not use __ptrvalue.
12415         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
12416         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
12417         Likewise.
12418         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
12419         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
12420         (__libc_sigaction): Likewise.
12421         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
12422         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
12423         Likewise.
12424         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
12425
12426 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
12427
12428         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
12429
12430         * string/mempcpy.c: Implement by calling memcpy.
12431
12432 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
12433
12434         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
12435
12436         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
12437         evaluation.
12438
12439         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
12440         values in the mantissa.
12441
12442         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
12443         minimize writes to Z.
12444         (sub_magnitudes): Simplify code a bit.
12445
12446 2013-02-12  Roland McGrath  <roland@hack.frob.com>
12447
12448         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
12449         from the message.  The linker prefixes all warnings with that already.
12450
12451 2013-02-12  Andreas Schwab  <schwab@suse.de>
12452
12453         [BZ #15078]
12454         * posix/regexec.c (extend_buffers): Add parameter min_len.
12455         (check_matching): Pass minimum needed length.
12456         (clean_state_log_if_needed): Likewise.
12457         (get_subexp): Likewise.
12458         * posix/Makefile (tests): Add bug-regex34.
12459         (bug-regex34-ENV): Define.
12460         * posix/bug-regex34.c: New file.
12461
12462         [BZ #11561]
12463         * posix/regcomp.c (parse_bracket_exp): When looking up collating
12464         elements compare against the byte sequence of it, not its name.
12465         * posix/Makefile (tests): Add bug-regex35.
12466         (bug-regex35-ENV): Define.
12467         * posix/bug-regex35.c: New file.
12468
12469 2013-02-11  Tom de Vries  <tom@codesourcery.com>
12470
12471         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
12472         comment.
12473         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
12474         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
12475         (CHECK_EOL): Add undef.
12476
12477 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
12478
12479         * bits/stdlib-bsearch.h: New file.
12480         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
12481         * stdlib/stdlib.h: Likewise.
12482
12483 2013-02-11  Roland McGrath  <roland@hack.frob.com>
12484
12485         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
12486         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
12487         declaration.
12488         * manual/search.texi (Array Search Function): Add missing const in
12489         lfind prototype.
12490         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
12491         declaration to use rlim_t.
12492         (Basic Scheduling Functions): Remove erroneous const from
12493         sched_getparam prototype.  Remove erroneous * from
12494         sched_get_priority_max and sched_get_priority_min prototypes.
12495         (Resource Usage): Fix summary @comment on vtimes to refer to
12496         sys/vtimes.h rather than vtimes.h.
12497         Add missing *s in vtimes prototype.
12498         (Limits on Resources): Fix ulimit prototype to return long int.
12499         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
12500         prototypes to use long int rather than double.
12501         (BSD Random): Fix initstate and setstate to use char *, not void *.
12502         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
12503         prototype to make second argument 'struct aiocb64 *const[]'.
12504         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
12505         (Status of AIO Operations): Remove erroneous const in aio_return and
12506         aio_return64 prototypes.
12507         (Synchronizing I/O): Fix sync prototype to return void.
12508         * manual/startup.texi (Suboptions): Remove an erroneous const in
12509         getsubopt prototype.
12510         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
12511         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
12512         use size_t rather than int.
12513         (Scanning All Users): Likewise for getpwent_r.
12514         (Setting Groups): Add missing const to setgroups prototype.
12515         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
12516         * manual/socket.texi (Host Names): Fix gethostbyaddr and
12517         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
12518         'const void *' rather than 'const char *'.
12519         (Host Address Functions): Likewise for inet_ntop.
12520         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
12521         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
12522         ssize_t for return value.
12523         (Sending Data): Likewise for send, sendto, sendmsg.
12524         (Socket Option Functions): Add a missing const in setsockopt prototype.
12525         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
12526         use wchar_t for the argument.
12527         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
12528         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
12529         take no arguments.
12530         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
12531         double/float/long double for second argument.
12532         Fix return types of significand, significandf, significandl.
12533         * manual/filesys.texi (Setting Permissions): Use mode_t for second
12534         argument in fchmod prototype.
12535         (File Owner): Use uid_t and gid_t in fchown prototype.
12536         (File Times): Add const to utimes, futimes, and lutimes prototypes.
12537         (Making Special Files): Use mode_t and dev_t in mknod prototype.
12538         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
12539         use 'const struct dirent **' as argument types to CMP function pointer
12540         argument.
12541         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
12542         (File Times): Fix summary magic @comment for struct utimbuf and utime
12543         to refer to utime.h, not time.h.
12544         * manual/string.texi (Argz Functions): Add missing const in
12545         argz_extract and argz_next prototypes.
12546         (Finding Tokens in a String): Likewise for basename.
12547         (String/Array Comparison): Fix typo in wcscasecmp prototype.
12548         (Copying and Concatenation): Fix typo in wmemmove prototype.
12549         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
12550         (Signal Stack): Remove erroneous const in sigstack prototype.
12551         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
12552         prototype.
12553         (Simple Calendar Time): Likewise for stime.
12554         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
12555         prototype.
12556         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
12557         say sys/sysctl.h instead.
12558         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
12559         and vsyslog prototypes.
12560
12561 2013-02-11  Tom de Vries  <tom@codesourcery.com>
12562
12563         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
12564         Remove.
12565
12566 2013-02-11  Roland McGrath  <roland@hack.frob.com>
12567
12568         * misc/sys/mman.h: Fix typo in mremap comment.
12569
12570 2013-02-08  Roland McGrath  <roland@hack.frob.com>
12571
12572         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
12573         the '\0' terminator.
12574
12575 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
12576
12577         [BZ #13550]
12578         * debug/segfault.c: Don't include <bp-checks.h>.
12579         * sysdeps/generic/bp-checks.h: Remove file.
12580         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
12581         (__GETDENTS): Don't use CHECK_N.
12582         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
12583         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
12584         (__getgroups): Don't use CHECK_N.
12585         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
12586         (setgroups): Don't use CHECK_N.
12587         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
12588         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12589         (__libc_msgrcv): Don't use CHECK_N.
12590         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
12591         (__libc_msgsnd): Don't use CHECK_N.
12592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
12593         <bp-checks.h>.
12594         (__libc_pread): Don't use CHECK_N.
12595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
12596         include <bp-checks.h>.
12597         (__libc_pread64): Don't use CHECK_N.
12598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
12599         include <bp-checks.h>.
12600         (__libc_pwrite): Don't use CHECK_N.
12601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
12602         include <bp-checks.h>.
12603         (__libc_pwrite64): Don't use CHECK_N.
12604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
12605         <bp-checks.h>.
12606         (__libc_pread): Don't use CHECK_N.
12607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
12608         include <bp-checks.h>.
12609         (__libc_pread64): Don't use CHECK_N.
12610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
12611         include <bp-checks.h>.
12612         (__libc_pwrite): Don't use CHECK_N.
12613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
12614         include <bp-checks.h>.
12615         (__libc_pwrite64): Don't use CHECK_N.
12616         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
12617         (do_pread): Don't use CHECK_N.
12618         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
12619         (do_pread64): Don't use CHECK_N.
12620         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
12621         (do_pwrite): Don't use CHECK_N.
12622         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
12623         (do_pwrite64): Don't use CHECK_N.
12624         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
12625         (__libc_readv): Don't use CHECK_N.
12626         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
12627         (semop): Don't use CHECK_N.
12628         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
12629         <bp-checks.h>.
12630         (semtimedop): Don't use CHECK_N.
12631         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
12632         (__libc_pread): Don't use CHECK_N.
12633         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
12634         <bp-checks.h>.
12635         (__libc_pread64): Don't use CHECK_N.
12636         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
12637         <bp-checks.h>.
12638         (__libc_pwrite): Don't use CHECK_N.
12639         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
12640         <bp-checks.h>.
12641         (__libc_pwrite64): Don't use CHECK_N.
12642         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
12643         <bp-checks.h>.
12644         (__libc_msgrcv): Don't use CHECK_N.
12645         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
12646         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
12647         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
12648         (__libc_writev): Don't use CHECK_N.
12649
12650 2013-02-08  Roland McGrath  <roland@hack.frob.com>
12651
12652         * string/strcpy.c: Removed unused variable.
12653
12654         * Makeconfig (+sysdep-includes): Define with := rather than =.
12655         Use an existing include/ subdir of each sysdeps dir before it.
12656
12657 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12658
12659         * nscd/connection.c (register_traced_file): Comment function.
12660         [HAVE_INOTIFY] (union __inev): Define.
12661         [HAVE_INOTIFY] (inotify_check_files): New function.
12662         [HAVE_INOTIFY] (clear_db_cache): Likewise.
12663         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
12664         clear_db_cache.
12665         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
12666
12667 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12668
12669         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
12670         loaded if not already and that a failure is permanent.
12671
12672 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
12673
12674         [BZ #15006]
12675         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
12676         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
12677
12678 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
12679
12680         [BZ #13550]
12681         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
12682         (CHECK_1_NULL_OK): Likewise.
12683         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
12684         (__fxstat): Do not use CHECK_1.
12685         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
12686         <bp-checks.h>.
12687         (___fxstat64): Do not use CHECK_1.
12688         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
12689         <bp-checks.h>.
12690         (__fxstatat): Do not use CHECK_1.
12691         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
12692         <bp-checks.h>.
12693         (__fxstatat64): Do not use CHECK_1.
12694         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
12695         <bp-checks.h>.
12696         (__fxstat): Do not use CHECK_1.
12697         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
12698         <bp-checks.h>.
12699         (__fxstatat): Do not use CHECK_1.
12700         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
12701         <bp-checks.h>.
12702         (__getresgid): Do not use CHECK_1.
12703         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
12704         <bp-checks.h>.
12705         (__getresuid): Do not use CHECK_1.
12706         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
12707         <bp-checks.h>.
12708         (__lxstat): Do not use CHECK_1.
12709         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
12710         <bp-checks.h>.
12711         (__old_msgctl): Do not use CHECK_1.
12712         (__new_msgctl): Likewise.
12713         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
12714         <bp-checks.h>.
12715         (__new_setrlimit): Do not use CHECK_1.
12716         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
12717         <bp-checks.h>.
12718         (__old_shmctl): Do not use CHECK_1.
12719         (__new_shmctl): Likewise.
12720         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
12721         <bp-checks.h>.
12722         (__xstat): Do not use CHECK_1.
12723         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
12724         (__lxstat): Do not use CHECK_1.
12725         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
12726         <bp-checks.h>.
12727         (___lxstat64): Do not use CHECK_1.
12728         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
12729         (__old_msgctl): Do not use CHECK_1.
12730         (__new_msgctl): Likewise.
12731         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
12732         <bp-checks.h>.
12733         (__gettimeofday): Do not use CHECK_1.
12734         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
12735         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
12736         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
12737         <bp-checks.h>.
12738         (__gettimeofday): Do not use CHECK_1.
12739         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
12740         (__old_shmctl): Do not use CHECK_1_NULL_OK.
12741         (__new_shmctl): Do not use CHECK_1.
12742         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
12743         <bp-checks.h>.
12744         (do_sigtimedwait): Do not use CHECK_1.
12745         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
12746         <bp-checks.h>.
12747         (do_sigwaitinfo): Do not use CHECK_1.
12748         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
12749         <bp-checks.h>.
12750         (msgctl): Do not use CHECK_1.
12751         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
12752         <bp-checks.h>.
12753         (shmctl): Do not use CHECK_1.
12754         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
12755         (ustat): Do not use CHECK_1.
12756         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
12757         <bp-checks.h>.
12758         (__fxstat): Do not use CHECK_1.
12759         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
12760         <bp-checks.h>.
12761         (__fxstatat): Do not use CHECK_1.
12762         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
12763         <bp-checks.h>.
12764         (__lxstat): Do not use CHECK_1.
12765         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
12766         <bp-checks.h>.
12767         (__xstat): Do not use CHECK_1.
12768         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
12769         (__xstat): Do not use CHECK_1.
12770         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
12771         (___xstat64): Do not use CHECK_1.
12772
12773         [BZ #13550]
12774         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
12775         definitions.
12776         (CHECK_BOUNDS_HIGH): Likewise.
12777         * string/strcpy.c: Do not include <bp-checks.h>.
12778         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
12779
12780 2013-02-07  Roland McGrath  <roland@hack.frob.com>
12781
12782         * nscd/nscd-client.h (__nscd_drop_map_ref):
12783         Add __attribute__ ((unused)).
12784         * nis/nss-nisplus.h (niserr2nss): Likewise.
12785
12786         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
12787         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
12788
12789         * csu/libc-tls.c (init_static_tls, init_slotinfo):
12790         Remove inline keyword.
12791         * include/rounding-mode.h (round_away): Likewise.
12792         * libio/wfileops.c (adjust_wide_data): Likewise.
12793         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
12794         (__m128i_strloadu_tolower): Likewise.
12795         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
12796         (__m128i_strloadu_tolower): Likewise.
12797         * time/mktime.c (ydhms_diff): Likewise.
12798         * locale/elem-hash.h (elem_hash): Likewise.
12799         * locale/setlocale.c (setdata): Likewise.
12800         * posix/regex_internal.h (re_string_char_size_at): Likewise.
12801         (re_string_wchar_at): Likewise.
12802         (bitset_not, bitset_merge, bitset_mask): Likewise.
12803         [!(__GNUC__ > 3)] (inline): Remove macro.
12804         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
12805         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
12806         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
12807         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
12808         * string/memcmp.c (memcmp_bytes): Likewise.
12809         * locale/programs/locarchive.c (compute_hashval): Likewise.
12810         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
12811         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
12812         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
12813         * nss/getent.c (print_rpc, print_protocols): Likewise.
12814         (print_passwd, print_group, print_aliases): Likewise.
12815         * nis/nss-nisplus.h (niserr2nss): Likewise.
12816         * nscd/connections.c (restart_p): Likewise.
12817         Change return type to bool.
12818
12819 2013-02-05  Roland McGrath  <roland@hack.frob.com>
12820
12821         * Makeconfig (all-Depend-files): Add existing
12822         $(sorted-subdirs:=/Depend) files.
12823         (all-subdirs): Remove nss.
12824         * sysdeps/unix/inet/Subdirs: Add it here instead.
12825         * hesiod/Depend: New file.
12826
12827         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
12828         instead of calling alloca.
12829
12830         * io/lseek.c (__lseek): Rename to __libc_lseek.
12831         Define __lseek as an alias.
12832
12833         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
12834
12835 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
12836
12837         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
12838         else clause and remove check for non-standard endianness.
12839
12840 2013-02-04  David S. Miller  <davem@davemloft.net>
12841
12842         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12843
12844 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
12845
12846         [BZ #13550]
12847         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
12848         (__ubp_memchr): Remove prototype.
12849         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
12850         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
12851         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
12852         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
12853         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
12854         Remove alias.
12855         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
12856         (__ubp_memchr): Likewise.
12857         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
12858         (__ubp_memchr): Likewise.
12859         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
12860         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
12861         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
12862         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
12863         CHECK_STRING.
12864         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
12865         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
12866         (__getcwd): Do not use CHECK_STRING.
12867         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
12868         <bp-checks.h>.
12869         (__real_chown): Do not use CHECK_STRING.
12870         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
12871         <bp-checks.h>.
12872         (fchownat): Do not use CHECK_STRING.
12873         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
12874         CHECK_STRING.
12875         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
12876         <bp-checks.h>.
12877         (__lchown): Do not use CHECK_STRING.
12878         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
12879         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
12880         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
12881         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
12882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
12883         include <bp-checks.h>.
12884         (truncate64): Do not use CHECK_STRING.
12885         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
12886         <bp-checks.h>.
12887         (__real_chown): Do not use CHECK_STRING.
12888         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
12889         <bp-checks.h>.
12890         (__lchown): Do not use CHECK_STRING.
12891         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
12892         <bp-checks.h>.
12893         (__chown): Do not use CHECK_STRING.
12894         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
12895         <bp-checks.h>.
12896         (truncate64): Do not use CHECK_STRING.
12897         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
12898         Likewise.
12899         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
12900         (__xmknod): Do not use CHECK_STRING.
12901         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
12902         <bp-checks.h>.
12903         (__xmknodat): Do not use CHECK_STRING.
12904         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
12905         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
12906
12907 2013-02-04  Andreas Schwab  <schwab@suse.de>
12908
12909         [BZ #14142]
12910         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
12911         * include/netdb.h: Likewise for h_errno.
12912         * elf/tst-stackguard1.c: Include <tls.h>.
12913
12914 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12915
12916         * elf/link.h (struct link_map): Extend the l_addr comment.
12917         * include/link.h (struct link_map): Likewise.
12918
12919 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
12920
12921         [BZ #13550]
12922         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
12923         (BOUNDED_1): Remove macro.
12924         * debug/backtrace.c: Don't include <bp-checks.h>.
12925         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
12926         (__backtrace): Likewise.
12927         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
12928         <bp-checks.h>.
12929         (__backtrace): Don't use BOUNDED_1.
12930         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
12931         <bp-checks.h>.
12932         (__backtrace): Don't use BOUNDED_1.
12933         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
12934         (__backtrace): Don't use BOUNDED_1.
12935         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
12936         (shmat): Don't use BOUNDED_N.
12937
12938 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
12939
12940         [BZ #13550]
12941         * sysdeps/generic/bp-start.h: Remove file.
12942         * csu/libc-start.c: Don't include <bp-start.h>.
12943         (LIBC_START_MAIN): Set up __environ directly instead of using
12944         INIT_ARGV_and_ENVIRON.
12945         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
12946         <bp-start.h>.
12947
12948         [BZ #13550]
12949         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
12950         definitions.
12951         (CHECK_FCNTL): Likewise.
12952         (CHECK_N_PAGES): Likewise.
12953
12954         [BZ #13550]
12955         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
12956         definitions.
12957         (CHECK_SIGSET_NULL_OK): Likewise.
12958         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
12959         <bp-checks.h>.
12960         (sigpending): Don't use CHECK_SIGSET.
12961         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
12962         <bp-checks.h>.
12963         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12964         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
12965         <bp-checks.h>.
12966         (do_sigsuspend): Don't use CHECK_SIGSET.
12967         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
12968         use CHECK_SIGSET.
12969         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
12970         (do_sigwait): Don't use CHECK_SIGSET.
12971         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
12972         use CHECK_SIGSET.
12973         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
12974         include <bp-checks.h>.
12975         (sigpending): Don't use CHECK_SIGSET.
12976         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
12977         include <bp-checks.h>.
12978         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12979         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
12980         <bp-checks.h>.
12981         (sigpending): Don't use CHECK_SIGSET.
12982         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
12983         <bp-checks.h>.
12984         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
12985
12986         [BZ #13550]
12987         * sysdeps/generic/bp-semctl.h: Remove file.
12988         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
12989         <bp-checks.h> and <bp-semctl.h>.
12990         (__old_semctl): Don't use CHECK_SEMCTL.
12991         (__new_semctl): Likewise.
12992         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
12993         and <bp-semctl.h>.
12994         (__old_semctl): Don't use CHECK_SEMCTL.
12995         (__new_semctl): Likewise.
12996         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
12997         <bp-checks.h> and <bp-semctl.h>.
12998         (__old_semctl): Don't use CHECK_SEMCTL.
12999         (__new_semctl): Likewise.
13000         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
13001         <bp-checks.h> and <bp-semctl.h>.
13002         (semctl): Don't use CHECK_SEMCTL.
13003
13004         [BZ #13550]
13005         * Makerules (elide-bp-thunks): Remove variable.
13006         (elide-routines.oS): Don't use $(elide-bp-thunks).
13007         (elide-routines.os): Likewise.
13008         (elide-routines.o): Likewise.
13009         (elide-routines.op): Likewise.
13010         (elide-routines.og): Likewise.
13011         (objects): Don't use $(bp-thunks).
13012         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
13013         include.
13014         (common-generated): Do not add s-proto-bp.d.
13015         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
13016         (int): Likewise.
13017         (typ): Likewise.
13018         Do not generate makefile rules for bounded-pointer thunks.
13019         * sysdeps/generic/bp-thunks.h: Remove file.
13020         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
13021         * sysdeps/unix/s-proto-bp.S: Likewise.
13022
13023         [BZ #15062]
13024         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
13025         parts of result separately when argument is not close to line from
13026         -i to i and one part of argument is small.
13027         * math/k_casinhf.c (__kernel_casinhf): Likewise.
13028         * math/k_casinhl.c (__kernel_casinhl): Likewise.
13029         * math/libm-test.inc (cacos_test): Add more tests.
13030         (casin_test): Likewise.
13031         (casinh_test): Likewise.
13032         * sysdeps/i386/fpu/libm-test-ulps: Update.
13033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13034
13035 2013-01-31  David S. Miller  <davem@davemloft.net>
13036
13037         * po/de.po: Update from translation team.
13038
13039 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
13040
13041         * time/tzfile.c: Include stdint.h for SIZE_MAX.
13042
13043 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
13044
13045         * configure.in (_AC_PROG_CC_C89): New definition.
13046         * configure: Regenerate.
13047
13048         * configure.in (AC_PROG_CPP): New definition.
13049         * configure: Regenerate.
13050
13051 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13052
13053         * debug/tst-backtrace.h: New file.
13054         * debug/tst-backtrace2.c: Include tst-backtrace.h.
13055         (ret): Remove variable.
13056         (x): Likewise.
13057         (FAIL): Remove macro.
13058         (NO_INLINE): Likewise.
13059         (fn1): Use match function instead of strstr.
13060         * debug/tst-backtrace3.c: Include tst-backtrace.h.
13061         (ret): Remove variable.
13062         (x): Likewise.
13063         (FAIL): Remove macro.
13064         (NO_INLINE): Likewise.
13065         (fn): Use match function instead of strstr.
13066         * debug/tst-backtrace4.c: Include tst-backtrace.h.
13067         (ret): Remove variable.
13068         (x): Likewise.
13069         (FAIL): Remove macro.
13070         (NO_INLINE): Likewise.
13071         (handle_signal): Use match function instead of strstr.
13072         * debug/tst-backtrace5.c: Include tst-backtrace.h.
13073         (ret): Remove variable.
13074         (x): Likewise.
13075         (FAIL): Remove macro.
13076         (NO_INLINE): Likewise.
13077         (handle_signal): Use match function instead of strstr.
13078
13079 2013-01-23  Roland McGrath  <roland@hack.frob.com>
13080
13081         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
13082
13083 2013-01-23  David S. Miller  <davem@davemloft.net>
13084
13085         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
13086         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
13087         argument of CAS if possible.
13088         * sysdeps/sparc/sparc64/bits/atomic.h
13089         (__arch_compare_and_exchange_val_32_acq): Likewise.
13090         (__arch_compare_and_exchange_val_64_acq): Likewise.
13091
13092 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
13093
13094         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
13095         * sysdeps/posix/ulimit.c: ... this.
13096         Include <limits.h>.
13097         * sysdeps/unix/bsd/ulimit.c: Remove file.
13098
13099 2013-01-23  Adam Conrad  <adconrad@0c3.net>
13100
13101         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
13102         (LDFLAGS-tst-array5): Likewise.
13103
13104 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
13105
13106         [BZ #15036]
13107         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
13108         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
13109         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
13110         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
13111
13112 2013-01-21  David S. Miller  <davem@davemloft.net>
13113
13114         * sysdeps/sparc/backtrace.c: New file.
13115         * sysdeps/sparc/sparc32/backtrace.h: New file.
13116         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
13117         * sysdeps/sparc/sparc64/backtrace.h: New file.
13118         * sysdeps/sparc/sparc64/backtrace.c: Delete.
13119         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
13120         -funwind-tables.
13121
13122 2013-01-21  Andreas Schwab  <schwab@suse.de>
13123
13124         [BZ #15020]
13125         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
13126         closed its stdout.
13127
13128 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
13129
13130         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
13131         "mpa2.h".
13132         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13133
13134 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
13135             Mark Mitchell  <mark@codesourcery.com>
13136             Tom de Vries  <tom@codesourcery.com>
13137             Paul Pluzhnikov  <ppluzhnikov@google.com>
13138
13139         * debug/tst-backtrace2.c: New file.
13140         * debug/tst-backtrace3.c: Likewise.
13141         * debug/tst-backtrace4.c: Likewise.
13142         * debug/tst-backtrace5.c: Likewise.
13143         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
13144         (CFLAGS-tst-backtrace3.c): Likewise.
13145         (CFLAGS-tst-backtrace4.c): Likewise.
13146         (CFLAGS-tst-backtrace5.c): Likewise.
13147         (LDFLAGS-tst-backtrace2): Likewise.
13148         (LDFLAGS-tst-backtrace3): Likewise.
13149         (LDFLAGS-tst-backtrace4): Likewise.
13150         (LDFLAGS-tst-backtrace5): Likewise.
13151         (tests): Add new tests tst-backtrace2, tst-backtrace3,
13152         tst-backtrace4 and tst-backtrace5.
13153
13154 2013-01-18  Anton Blanchard  <anton@samba.org>
13155             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
13156
13157         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
13158         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
13159         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
13160         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
13161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
13162         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
13163         "+r" and remove output regs list as redundant.  Add explicit inline
13164         asm to specify register of return val to work around compiler codegen
13165         bug.  Remove (int) cast on return value.  Add return type parameter to
13166         use in macro so that this macro does not truncate return value for
13167         64-bit values.
13168         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
13169         pass to INTERNAL_VSYSCALL_NCS.
13170         (INLINE_VSYSCALL): Add 'long int' as return type to
13171         INTERNAL_VSYSCALL_NCS macro invocation.
13172         (INTERNAL_VSYSCALL): Add 'long int' as return type to
13173         INTERNAL_VSYSCALL_NCS macro invocation.
13174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13175
13176 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13177
13178         [BZ #14496]
13179         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
13180         Fix application of SIMD FP exception mask.
13181
13182         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
13183         mp_no from a power of two.
13184         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
13185         __mpexp_twomm1.  Use __pow_mp.
13186
13187         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
13188         multiplication.
13189
13190 2013-01-17  David S. Miller  <davem@davemloft.net>
13191
13192         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13193
13194 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13195
13196         [BZ #15023]
13197         * include/complex.h: Condition contents on [!_COMPLEX_H].
13198         (__kernel_casinhf): New prototype.
13199         (__kernel_casinh): Likewise.
13200         (__kernel_casinhl): Likewise.
13201         * math/Makefile (libm_calls): Add k_casinh.
13202         * math/k_casinh.c: New file.
13203         * math/k_casinhf.c: Likewise.
13204         * math/k_casinhl.c: Likewise.
13205         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
13206         finite nonzero arguments.
13207         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
13208         finite nonzero arguments.
13209         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
13210         finite nonzero arguments.
13211         * math/s_casinh.c: Do not include <float.h>.
13212         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
13213         * math/s_casinhf.c: Do not include <float.h>.
13214         (__casinhf): Move code for finite nonzero arguments to
13215         k_casinhf.c.
13216         * math/s_casinhl.c: Do not include <float.h>.
13217         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
13218         redefine.
13219         (__casinhl): Move code for finite nonzero arguments to
13220         k_casinhl.c.
13221         * math/libm-test.inc (cacos_test): Add more tests.
13222         * sysdeps/i386/fpu/libm-test-ulps: Update.
13223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13224
13225 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
13226
13227         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
13228         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
13229         [!HAVE_MREMAP]: Remove [defined linux] case.
13230         * malloc/arena.c: Do not include <malloc-sysdep.h>.
13231
13232 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
13233
13234         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
13235
13236 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13237
13238         * elf/elf.h (R_386_SIZE32): New relocation.
13239         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
13240         R_386_SIZE32.
13241         (elf_machine_rela): Likewise.
13242         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
13243         R_X86_64_SIZE64 and R_X86_64_SIZE32.
13244
13245 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
13246
13247         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
13248         (FP_FAST_FMA): Do not define.
13249         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
13250         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
13251         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
13252         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
13253         !_SOFT_FLOAT]: Likewise.
13254         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
13255         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
13256         value.
13257         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
13258         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
13259         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
13260         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
13261         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
13262         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
13263         file.
13264
13265 2013-01-16  Andreas Schwab  <schwab@suse.de>
13266
13267         [BZ #14327]
13268         * include/stdlib.h (__mktemp): Add declaration.
13269         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
13270         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
13271
13272 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
13273
13274         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
13275         definitions.
13276         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
13277         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
13278         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
13279         definitions here.
13280         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
13281         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
13282         definitions.
13283         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
13284         and ONE.
13285         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
13286         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
13287         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
13288         definitions.
13289         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
13290         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
13291         definitions.
13292         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
13293
13294         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
13295
13296 2013-01-15  David S. Miller  <davem@davemloft.net>
13297
13298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13299         trunc{,f} to libm-sysdep_routes.
13300         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
13302         file.
13303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
13304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
13305         file.
13306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
13307         file.
13308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
13309         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
13310         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
13311         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
13312         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
13313         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
13314         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
13315         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
13316
13317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13318         nearbyint{,f} to libm-sysdep_routes.
13319         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
13321         New file.
13322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
13323         file.
13324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
13325         New file.
13326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
13327         file.
13328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
13329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
13330         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
13331         file.
13332         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
13333         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
13334         file.
13335         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
13336         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
13337         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
13338
13339         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
13340         libc_feholdexcept and libc_fesetenv.
13341
13342 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
13343
13344         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
13345
13346 2013-01-14  David S. Miller  <davem@davemloft.net>
13347
13348         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
13349         (SPARC_ASM_VIS2_IFUNC): Likewise.
13350         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
13351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
13352         use of 'siam' instruction.
13353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
13354         Likewise.
13355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
13356         Likewise.
13357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
13358         Likewise.
13359         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13360         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13361         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13362         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
13364         file.
13365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
13366         file.
13367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
13368         file.
13369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
13370         file.
13371         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
13372         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
13373         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
13374         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
13375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
13376         new VIS2 routines.
13377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
13380         Likewise.
13381         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13382         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13383         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13384         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
13386         routines to libm-sysdep_routines.
13387         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13388
13389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
13390         fdim/fdimf to libm-sysdep_routines.
13391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
13392         file.
13393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
13394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
13395         file.
13396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
13397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
13398         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
13399         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
13400         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
13401         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
13402         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
13403
13404 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13405
13406         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
13407         to optimize copies.
13408
13409         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
13410         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
13411         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13412
13413         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
13414         local variable MPTWO.
13415         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
13416         Likewise.
13417
13418 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13419
13420         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
13421         GLOB_NOESCAPE.
13422
13423 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13424
13425         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
13426
13427 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
13428
13429         * manual/pattern.texi (glob_t): Document gl_flags.
13430         (glob64_t): Likewise.
13431
13432 2013-01-11  David S. Miller  <davem@davemloft.net>
13433
13434         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
13435         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
13436         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
13437         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
13438         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
13439         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
13440         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
13441         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
13442         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
13443         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
13444         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
13445         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
13446         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
13447
13448         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
13449         sparc V9 rather than using V8 code.
13450         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13451         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13452
13453         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
13454         Move to...
13455         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
13456         Here.
13457
13458 2013-01-11  Roland McGrath  <roland@hack.frob.com>
13459
13460         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
13461         not in the main loop.
13462         * configure: Regenerated.
13463
13464 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
13465
13466         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
13467         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
13468         to just #else.
13469         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
13470         [!__GLIBC_HAVE_LONG_LONG] case.
13471         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
13472         condition to just #else.
13473         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
13474         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
13475         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
13476         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
13477         unconditional.
13478         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
13479         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
13480         #elif condition to just #else.
13481         * sysdeps/unix/sysv/linux/sys/sysmacros.h
13482         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
13483         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
13484         #elif condition to just #else.
13485
13486 2013-01-11  Steve Ellcey  <sellcey@mips.com>
13487
13488         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
13489         (EF_MIPS_ARCH_64): Fix value.
13490         (EF_MIPS_ARCH_32R2): New.
13491         (EF_MIPS_ARCH_64R2): New.
13492
13493 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
13494
13495         * Makeconfig (+link-pie-before-libc): New.
13496         (+link-pie-after-libc): Likewise.
13497         (+link-pie-tests): Likewise.
13498         (+link-pie): Rewritten.
13499         (link-before-libc): Remove $(config-LDFLAGS).
13500         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
13501         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
13502         (config-LDFLAGS): Renamed to ...
13503         (rtld-LDFLAGS): This.
13504         (rtld-tests-LDFLAGS): New macro.
13505         (link-libc-rpath-link): Likewise.
13506         (link-libc-tests-rpath-link): Likewise.
13507         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
13508         (link-libc): Prepand $(link-libc-rpath-link).
13509         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
13510         (test-program-prefix): New macro.
13511         (test-via-rtld-prefix): Likewise.
13512         (test-program-cmd): Likewise.
13513         (host-test-program-cmd): Likewise.
13514         * Makefile ($(common-objpfx)testrun.sh): Replace
13515         $(run-program-prefix) with $(test-program-prefix).
13516         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
13517         $(rtld-LDFLAGS).
13518         ($(common-objpfx)shlib.lds): Likewise.
13519         (build-module-helper): Likewise.
13520         ($(common-objpfx)format.lds): Likewise.
13521         * Rules (binaries-pie-tests): New.
13522         (binaries-pie-notests): Likewise.
13523         (binaries-pie): Rewritten.
13524         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
13525         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
13526         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
13527         (make-test-out): Replace $(host-built-program-cmd) with
13528         $(host-test-program-cmd).
13529         * config.make.in (build-hardcoded-path-in-tests): New variable.
13530         * configure.in (--enable-hardcoded-path-in-tests): New configure
13531         option.
13532         (hardcoded_path_in_tests): New AC_SUBST.
13533         * configure: Regenerated.
13534         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
13535         $(built-program-cmd) with $(test-program-cmd).
13536         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
13537         (test_program_cmd): This.
13538         * elf/Makefile ($(objpfx)order.out): Run test with
13539         $(test-program-prefix).
13540         ($(objpfx)order2.out): Likewise.
13541         ($(objpfx)tst-initorder.out): Likewise.
13542         ($(objpfx)tst-initorder2.out): Likewise.
13543         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
13544         $(test-program-cmd).
13545         ($(objpfx)tst-array1-static.out): Likewise.
13546         ($(objpfx)tst-array2.out): Likewise.
13547         ($(objpfx)tst-array3.out): Likewise.
13548         ($(objpfx)tst-array4.out): Likewise.
13549         ($(objpfx)tst-array5.out): Likewise.
13550         ($(objpfx)tst-array5-static.out): Likewise.
13551         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
13552         $(test-program-cmd).
13553         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
13554         $(run-program-prefix) with $(test-program-prefix).
13555         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
13556         (test_program_prefix): This.
13557         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
13558         $(run-program-prefix) with $(test-program-prefix).
13559         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
13560         (test_program_prefix): This.
13561         * iconvdata/tst-tables.sh: Likewise.
13562         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
13563         $(run-program-prefix) with $(test-program-prefix).
13564         ($(objpfx)tst-translit.out): Likewise.
13565         ($(objpfx)tst-gettext2.out): Likewise.
13566         ($(objpfx)tst-gettext4.out): Likewise.
13567         ($(objpfx)tst-gettext6.out): Likewise.
13568         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
13569         (test_program_prefix): This.
13570         * intl/tst-gettext2.sh: Likewise.
13571         * intl/tst-gettext4.sh  Likewise.
13572         * intl/tst-gettext6.sh: Likewise.
13573         * intl/tst-translit.sh: Likewise.
13574         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
13575         with $(test-program-cmd).
13576         * libio/Makefile ($(objpfx)test-freopen.out): Replace
13577         $(run-program-prefix) with $(test-program-prefix).
13578         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
13579         (test_program_prefix): This.
13580         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
13581         $(run-program-prefix) with $(test-program-prefix).
13582         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
13583         (test_program_prefix): This.
13584         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
13585         * posix/Makefile ($(objpfx)globtest.out): Replace
13586         $(run-via-rtld-prefix) and $(test-wrapper) with
13587         $(test-program-prefix) and $(test-via-rtld-prefix).
13588         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
13589         $(test-program-prefix).
13590         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
13591         $(host-test-program-cmd).
13592         (tst-spawn-ARGS): Likewise.
13593         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
13594         $(test-program-prefix).
13595         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
13596         (test_via_rtld_prefix): This.
13597         (test_wrapper): Renamed to ...
13598         (test_program_prefix): This.
13599         (run_program_prefix): Replaced by test_program_prefix.
13600         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
13601         (test_program_prefix): This.
13602         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
13603         with $(host-test-program-cmd).
13604         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
13605         $(run-program-prefix) with $(test-program-prefix).
13606         ($(objpfx)tst-printf.out): Likewise.
13607         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
13608         $(test-program-cmd).
13609         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
13610         (test_program_prefix): This.
13611         * stdio-common/tst-unbputc.sh: Likewise.
13612         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
13613         $(run-program-prefix) with $(test-program-prefix).
13614         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
13615         (test_program_prefix): This.
13616         * string/Makefile ($(objpfx)tst-svc.out):  Replace
13617         $(built-program-cmd) with $(test-program-cmd).
13618
13619 2013-01-11  Andreas Jaeger  <aj@suse.de>
13620
13621         [BZ #15003]
13622         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
13623         value. Sync with Linux 3.7.
13624
13625 2013-01-10  David S. Miller  <davem@davemloft.net>
13626
13627         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
13628         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13629         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13630
13631 2013-01-10  Roland McGrath  <roland@hack.frob.com>
13632
13633         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
13634         never set.
13635         * configure: Regenerated.
13636
13637 2013-01-10  David S. Miller  <davem@davemloft.net>
13638
13639         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
13640         sparc V9 rather than using V8 code.
13641         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
13642         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
13643
13644 2013-01-10  Roland McGrath  <roland@hack.frob.com>
13645
13646         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
13647         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
13648         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
13649         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
13650         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
13651         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
13652         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
13653         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
13654         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
13655         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
13656         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
13657         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
13658         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
13659         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
13660         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
13661         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
13662         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
13663         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
13664         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
13665         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
13666         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
13667         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
13668         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
13669         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
13670         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
13671         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
13672         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
13673
13674 2013-01-10  David S. Miller  <davem@davemloft.net>
13675
13676         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13677
13678 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13679
13680         * posix/Makefile (tests-static): New variable.
13681         (tests): Add $(tests-static).
13682         (tst-exec-static-ARGS): New variable.
13683         (tst-spawn-static-ARGS): Likewise.
13684         * posix/tst-exec-static.c: New file.
13685         * posix/tst-spawn-static.c: Likewise.
13686         * posix/tst-exec.c: Support run directly.
13687         * posix/tst-spawn.c: Likewise.
13688
13689 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
13690
13691         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
13692         long.
13693         * math/bits/mathcalls.h (llrint): Likewise.
13694         (llround): Likewise.
13695         * stdlib/stdlib.h (struct drand48_data): Likewise.
13696         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
13697         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
13698         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
13699         Likewise.
13700         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
13701         Likewise.
13702         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
13703         (elf_greg_t): Likewise.
13704         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
13705         (__jmp_buf): Likewise.
13706         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
13707         definitions.
13708         (llrint): Likewise, for all definitions.
13709         (llrintl): Likewise.
13710
13711         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
13712         Remove [__GNUC__] condition.
13713         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
13714         condition to just [__USE_ISOC99].
13715         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
13716
13717 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13718
13719         [BZ #14200]
13720         * sysdeps/unix/sysv/linux/x86/bits/environments.h
13721         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
13722         defined.
13723         (_POSIX_V6_ILP32_OFF32): Likewise.
13724         (_XBS5_ILP32_OFF32): Likewise.
13725         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
13726         (__ILP32_OFFBIG_LDFLAGS): Likewise.
13727
13728 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13729
13730         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
13731
13732         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
13733         doubles __mpexp_twomm1.  Adjust usage.
13734         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
13735         Remove.
13736
13737 2013-01-10  Andreas Schwab  <schwab@suse.de>
13738
13739         [BZ #14964]
13740         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
13741         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
13742
13743 2013-01-09  David S. Miller  <davem@davemloft.net>
13744
13745         [BZ #15003]
13746         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
13747         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
13748         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
13749         TCP_FASTOPEN): Define.
13750         (tcp_repair_opt): New structure.
13751         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
13752         enum values.
13753         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
13754         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
13755         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
13756         (tcp_cookie_transactions): New structure.
13757
13758 2013-01-09  Anton Blanchard  <anton@samba.org>
13759
13760         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
13761         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
13762         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
13763         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
13764
13765 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
13766
13767         * include/features.h (__USE_ANSI): Remove.
13768
13769 2013-01-09  Roland McGrath  <roland@hack.frob.com>
13770
13771         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
13772
13773         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
13774
13775 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
13776
13777         * sysdeps/s390/fpu/libm-test-ulps: Update.
13778
13779         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13780
13781         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
13782         (__acr): Likewise.
13783         (__cpy): Likewise.
13784         (norm): Likewise.
13785         (denorm): Likewise.
13786         (__mp_dbl): Likewise.
13787         (__dbl_mp): Likewise.
13788         (add_magnitudes): Likewise.
13789         (sub_magnitudes): Likewise.
13790         (__add): Likewise.
13791         (__sub): Likewise.
13792         (__mul): Likewise.
13793         (__inv): Likewise.
13794         (__dvd): Likewise.
13795         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
13796         (__acr): Likewise.
13797         (__cpy): Likewise.
13798         (norm): Likewise.
13799         (denorm): Likewise.
13800         (__mp_dbl): Likewise.
13801         (__dbl_mp): Likewise.
13802         (add_magnitudes): Likewise.
13803         (sub_magnitudes): Likewise.
13804         (__add): Likewise.
13805         (__sub): Likewise.
13806         (__mul): Likewise.
13807         (__inv): Likewise.
13808         (__dvd): Likewise.
13809         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
13810         (__acr): Likewise.
13811         (__cpy): Likewise.
13812         (norm): Likewise.
13813         (denorm): Likewise.
13814         (__mp_dbl): Likewise.
13815         (__dbl_mp): Likewise.
13816         (add_magnitudes): Likewise.
13817         (sub_magnitudes): Likewise.
13818         (__add): Likewise.
13819         (__sub): Likewise.
13820         (__mul): Likewise.
13821         (__inv): Likewise.
13822         (__dvd): Likewise.
13823
13824 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
13825
13826         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
13827         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
13828         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
13829         2 && __USE_EXTERN_INLINES]: Likewise.
13830
13831 2013-01-08  Andreas Jaeger  <aj@suse.de>
13832
13833         [BZ# 14985]
13834         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
13835         Remove.
13836         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
13837         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
13838
13839 2013-01-07  Anton Blanchard  <anton@samba.org>
13840
13841         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
13842         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
13843         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
13844         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
13845         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
13846         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
13847         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
13848         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
13849         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
13850         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13851         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13852         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13853         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
13854         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13855         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13856         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13857         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13858         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13859         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13860         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
13861         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13862         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
13863         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13864         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13865         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
13866         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
13867         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13868         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
13869         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
13870         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
13871         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13872         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
13873         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13874         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13875         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13876         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13877         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13878         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
13879         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
13880         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
13881         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
13882         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13883         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13884
13885 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
13886
13887         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
13888         (__MALLOC_PMT): Likewise.
13889         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
13890         [__GNUC__], only on [_LIBC].
13891         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
13892         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
13893         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
13894         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
13895         forward declaration.
13896         (realloc_hook_ini): Likewise.
13897         (memalign_hook_ini): Likewise.
13898         (__libc_memalign): Do not use __MALLOC_PMT in variable
13899         declaration.
13900         (__libc_valloc): Likewise.
13901         (__libc_pvalloc): Likewise.
13902         (__libc_calloc): Likewise.
13903         (__posix_memalign): Likewise.
13904
13905         [BZ #14996]
13906         * math/s_casinh.c: Include <float.h>.
13907         (__casinh): Do not do computation with squaring and square root
13908         for large arguments.
13909         * math/s_casinhf.c: Include <float.h>.
13910         (__casinhf): Do not do computation with squaring and square root
13911         for large arguments.
13912         * math/s_casinhl.c: Include <float.h>.
13913         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
13914         (__casinhl): Do not do computation with squaring and square root
13915         for large arguments.
13916         * math/libm-test.inc (casin_test): Add more tests.
13917         (casinh_test): Likewise.
13918         * sysdeps/i386/fpu/libm-test-ulps: Update.
13919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13920
13921 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13922
13923         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
13924         (__x86_64_raw_data_cache_size): Likewise.
13925         (__x86_64_data_cache_size_half): Likewise.
13926         (__x86_64_raw_data_cache_size_half): Likewise.
13927         (__x86_64_shared_cache_size): Likewise.
13928         (__x86_64_raw_shared_cache_size): Likewise.
13929         (__x86_64_shared_cache_size_half): Likewise.
13930         (__x86_64_raw_shared_cache_size_half): Likewise.
13931         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
13932         to ...
13933         (__x86_data_cache_size): This.
13934         (__x86_64_raw_data_cache_size): Renamed to ...
13935         (__x86_raw_data_cache_size): This.
13936         (__x86_64_data_cache_size_half): Renamed to ...
13937         (__x86_data_cache_size_half): This.
13938         (__x86_64_raw_data_cache_size_half): Renamed to ...
13939         (__x86_raw_data_cache_size_half): This.
13940         (__x86_64_shared_cache_size): Renamed to ...
13941         (__x86_shared_cache_size): This.
13942         (__x86_64_raw_shared_cache_size): Renamed to ...
13943         (__x86_raw_shared_cache_size): This.
13944         (__x86_64_shared_cache_size_half): Renamed to ...
13945         (__x86_shared_cache_size_half): This.
13946         (__x86_64_raw_shared_cache_size_half): Renamed to ...
13947         (__x86_raw_shared_cache_size_half): This.
13948         * sysdeps/x86_64/memcpy.S: Updated.
13949         * sysdeps/x86_64/memset.S: Likewise.
13950         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13951         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13952         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13953
13954 2013-01-04  David S. Miller  <davem@davemloft.net>
13955
13956         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13957
13958 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
13959
13960         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
13961         1 to avoid redefinition warning.
13962         (__USE_GNU): Don't define.
13963         (init_signaling_nan): Protoize.
13964
13965         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13966
13967 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13968
13969         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
13970         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
13971         (__cpymn): Likewise.
13972         (norm): Remove commented code.
13973         (denorm): Likewise.
13974         (__mp_dbl): Likewise.
13975         (__inv): Likewise.
13976         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
13977         (__cpymn): Likewise.
13978         (norm): Remove commented code.
13979         (denorm): Likewise.
13980         (__mp_dbl): Likewise.
13981         (__inv): Likewise.
13982
13983         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
13984         mp_no value for 1.0 and 2.0.
13985         (norm): Use RADIXI instead of radixi.d.
13986         (denorm): Likewise.
13987         (__mul): Use 0.0 instead of zero.d.
13988         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
13989         mp_no value for 1.0 and 2.0.
13990         (norm): Use RADIXI instead of radixi.d.
13991         (denorm): Likewise.
13992         (__mul): Use 0.0 instead of zero.d.
13993
13994 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
13995
13996         [BZ #14994]
13997         * math/s_casinh.c (__casinh): Reduce finite argument to first
13998         quadrant then set signs of results at the end.
13999         * math/s_casinhf.c (__casinhf): Likewise.
14000         * math/s_casinhl.c (__casinhl): Likewise.
14001         * math/libm-test.inc (casin_test): Add more tests.
14002         (casinh_test): Likewise.
14003         * sysdeps/i386/fpu/libm-test-ulps: Update.
14004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14005
14006 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14007
14008         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
14009
14010         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
14011
14012         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
14013         declarations.
14014         (denorm): Likewise.
14015         (__mp_dbl): Likewise.
14016         (__inv): Likewise.
14017
14018         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
14019         and adjust the header comment.
14020
14021         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
14022         variable name from declaration.
14023
14024 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14025
14026         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14027         Initialize COMMON_CPUID_INDEX_7 element.
14028         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
14029         (CPUID_RTM): Likewise.
14030         (HAS_RTM): Likewise.
14031         (COMMON_CPUID_INDEX_7): New enum.
14032
14033 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
14034
14035         [BZ #14981]
14036         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
14037         size is zero, record memory as freed.
14038
14039 2013-01-03  Andreas Jaeger  <aj@suse.de>
14040
14041         * po/ia.po: Add new Interlingua translation.
14042
14043 2012-01-03  Allan McRae  <allan@archlinux.org>
14044
14045         * locale/programs/localedef.c: Fix description of '--posix' flag.
14046
14047 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
14048
14049         * NEWS: Update dates in second copyright notice.
14050         * README: Update copyright dates in example.
14051         * manual/libc.texinfo: Update copyright dates.
14052         * scripts/test-installation.pl: Update copyright date in --version
14053         output.
14054
14055         * hurd/ctty-input.c: Fix copyright notice formatting.
14056         * hurd/ctty-output.c: Likewise.
14057         * hurd/dtable.c: Likewise.
14058         * hurd/hurd-raise.c: Likewise.
14059         * hurd/hurdprio.c: Likewise.
14060         * hurd/msgportdemux.c: Likewise.
14061         * misc/sys/file.h: Likewise.
14062         * misc/sys/ioctl.h: Likewise.
14063         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
14064         * sysdeps/mach/hurd/chdir.c: Likewise.
14065         * sysdeps/mach/hurd/fchdir.c: Likewise.
14066         * sysdeps/mach/hurd/rename.c: Likewise.
14067         * sysdeps/mach/hurd/rmdir.c: Likewise.
14068         * sysdeps/mach/hurd/seekdir.c: Likewise.
14069         * sysdeps/mach/hurd/setsid.c: Likewise.
14070         * sysdeps/posix/wait3.c: Likewise.
14071
14072         * All files with FSF copyright notices: Update copyright dates
14073         using scripts/update-copyrights.
14074         * intl/plural.c: Regenerated.
14075         * locale/programs/charmap-kw.h: Likewise.
14076         * locale/programs/locfile-kw.h: Likewise.
14077
14078 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
14079
14080         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
14081         four values.
14082
14083         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
14084         calculation loop and add branch prediction.
14085
14086         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
14087         check access beyond bounds of m1np.
14088
14089         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14090         MPTWO.
14091         (__inv): Remove local variable MPTWO to use the global
14092         constant.
14093         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
14094         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14095         variable MPTWO.
14096         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
14097         MP3HALFS static const.
14098
14099 2013-01-01  David S. Miller  <davem@davemloft.net>
14100
14101         * po/ca.po: Update from translation team.
14102
14103 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
14104
14105         * scripts/update-copyrights: New file.
14106         * Makeconfig: Reformat copyright notice.
14107         * ctype/ctype.h: Likewise.
14108         * debug/swprintf_chk.c: Likewise.
14109         * elf/dl-cache.c: Likewise.
14110         * elf/dl-debug.c: Likewise.
14111         * elf/dl-object.c: Likewise.
14112         * grp/initgroups.c: Likewise.
14113         * hurd/Makefile: Likewise.
14114         * hurd/hurd/signal.h: Likewise.
14115         * hurd/hurdfault.c: Likewise.
14116         * hurd/hurdioctl.c: Likewise.
14117         * hurd/hurdlookup.c: Likewise.
14118         * hurd/intr-msg.c: Likewise.
14119         * iconv/gconv_open.c: Likewise.
14120         * libio/swprintf.c: Likewise.
14121         * locale/lc-ctype.c: Likewise.
14122         * locale/nl_langinfo.c: Likewise.
14123         * mach/Machrules: Likewise.
14124         * mach/Makefile: Likewise.
14125         * malloc/obstack.h: Likewise.
14126         * manual/Makefile: Likewise.
14127         * manual/tsort.awk: Likewise.
14128         * misc/bits/stab.def: Likewise.
14129         * nis/nis_print_group_entry.c: Likewise.
14130         * nis/nis_table.c: Likewise.
14131         * nis/nss_compat/compat-pwd.c: Likewise.
14132         * nis/nss_compat/compat-spwd.c: Likewise.
14133         * po/Makefile: Likewise.
14134         * posix/fnmatch.c: Likewise.
14135         * posix/regex.h: Likewise.
14136         * resolv/Makefile: Likewise.
14137         * resolv/nss_dns/dns-network.c: Likewise.
14138         * resolv/res_hconf.c: Likewise.
14139         * scripts/gen-sorted.awk: Likewise.
14140         * soft-fp/soft-fp.h: Likewise.
14141         * stdio-common/printf.h: Likewise.
14142         * stdlib/monetary.h: Likewise.
14143         * stdlib/random.c: Likewise.
14144         * stdlib/random_r.c: Likewise.
14145         * sysdeps/generic/Makefile: Likewise.
14146         * sysdeps/gnu/Makefile: Likewise.
14147         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14148         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14149         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14150         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14151         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14152         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14153         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14154         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14155         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14156         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14157         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14158         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14161         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14163         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14164         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14165         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14166         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14167         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14168         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14169         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
14175         * sysdeps/mach/hurd/errnos.awk: Likewise.
14176         * sysdeps/mach/hurd/fork.c: Likewise.
14177         * sysdeps/mach/hurd/getcwd.c: Likewise.
14178         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
14179         * sysdeps/mach/hurd/mmap.c: Likewise.
14180         * sysdeps/mach/hurd/utimes.c: Likewise.
14181         * sysdeps/mach/hurd/xmknod.c: Likewise.
14182         * sysdeps/posix/profil.c: Likewise.
14183         * sysdeps/posix/readdir_r.c: Likewise.
14184         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14185         * sysdeps/powerpc/bits/setjmp.h: Likewise.
14186         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
14187         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
14188         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
14189         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
14190         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
14191         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14192         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
14193         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
14194         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
14195         * sysdeps/pthread/lio_listio.c: Likewise.
14196         * sysdeps/sparc/dl-procinfo.h: Likewise.
14197         * sysdeps/unix/i386/sysdep.S: Likewise.
14198         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
14199         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
14200         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
14201         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
14202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14203         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
14204         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
14205         * sysdeps/unix/sysv/linux/speed.c: Likewise.
14206         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
14207         * sysdeps/wordsize-32/divdi3.c: Likewise.
14208         * time/sys/time.h: Likewise.
14209         * wcsmbs/Makefile: Likewise.
14210
14211 2013-01-01  David S. Miller  <davem@davemloft.net>
14212
14213         * po/fr.po: Update from translation team.
14214
14215         * catgets/gencat.c: Update copyright year.
14216         * csu/version.c: Likewise.
14217         * debug/catchsegv.sh: Likewise.
14218         * debug/pcprofiledump.c: Likewise.
14219         * debug/xtrace.sh: Likewise.
14220         * elf/ldconfig.c: Likewise.
14221         * elf/ldd.bash.in: Likewise.
14222         * elf/pldd.c: Likewise.
14223         * elf/sotruss.ksh: Likewise.
14224         * elf/sprof.c: Likewise.
14225         * iconv/iconv_prog.c: Likewise.
14226         * iconv/iconvconfig.c: Likewise.
14227         * locale/programs/locale.c: Likewise.
14228         * locale/programs/localedef.c: Likewise.
14229         * login/programs/pt_chown.c: Likewise.
14230         * malloc/memusage.sh: Likewise.
14231         * malloc/memusagestat.c: Likewise.
14232         * malloc/mtrace.pl: Likewise.
14233         * nscd/nscd.c: Likewise.
14234         * nss/getent.c: Likewise.
14235         * nss/makedb.c: Likewise.
14236         * posix/getconf.c: Likewise.
14237
14238 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
14239
14240         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
14241         numbers.
14242
14243 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
14244
14245         * math/bits/mathcalls.h (modf): Use __nonnull.
14246
14247 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14248
14249         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
14250         (split): Use macro CN instead of the bare value.
14251         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
14252         could be used.
14253         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
14254         instead of the bare value.
14255         (power1): Likewise.
14256
14257 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14258
14259         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
14260         __ATAN_TWOM.
14261         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14262
14263         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
14264         their values.
14265         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
14266         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
14267         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
14268         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
14269
14270 2012-12-28  Andreas Jaeger  <aj@suse.de>
14271
14272         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
14273         values are from Linux 3.7.
14274
14275         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
14276         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
14277
14278 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14279
14280         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
14281         TRUE case.
14282
14283         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
14284         (norm): Likewise.
14285         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
14286         variables with preprocessor constants.
14287         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14288         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14289         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14290
14291 2012-12-27  Bruno Haible  <bruno@clisp.org>
14292
14293         [BZ #14317]
14294         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
14295         only if needed.
14296
14297 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
14298
14299         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
14300         and use variable directly.
14301         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
14302
14303         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
14304         MPONE.
14305         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
14306         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
14307         variable MPONE.
14308         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
14309         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
14310         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
14311         include directive.  Remove local variable MPONE.
14312         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
14313         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
14314         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14315
14316 2012-12-25  David S. Miller  <davem@davemloft.net>
14317
14318         * version.h (RELEASE): Set to "development".
14319         (VERSION): Set to "2.17.90".
14320         * NEWS: Add 2.18 section.
14321
14322 2012-12-21  David S. Miller  <davem@davemloft.net>
14323
14324         * po/hr.po: Update from translation team.
14325
14326 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14327
14328         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
14329
14330 2012-12-19  Steve Ellcey  <sellcey@mips.com>
14331
14332         * NEWS:  Mention new memcpy for MIPS.
14333
14334 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
14335
14336         * manual/contrib.texi (Contributors): Spelling correction.
14337
14338 2012-12-15  David S. Miller  <davem@davemloft.net>
14339
14340         * po/ru.po: Update from translation team.
14341
14342 2012-12-13  David S. Miller  <davem@davemloft.net>
14343
14344         * NEWS: Mention IFUNC testsuite enhancements.
14345
14346         * po/pl.po: Update from translation team.
14347         * po/bg.po: Likewise.
14348
14349         * manual/contrib.texi (Contributors): Update entries for Hongjiu
14350         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
14351
14352 2012-12-11  David S. Miller  <davem@davemloft.net>
14353
14354         * po/sv.po: Update from translation team.
14355
14356         * po/vi.po: Update from translation team.
14357
14358         * po/cs.po: Update from translation team.
14359
14360         * po/de.po: Update from translation team.
14361         * po/eo.po: Likewise.
14362         * po/nl.po: Likewise.
14363
14364 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14365
14366         [BZ #14246]
14367         * manual/argp.texi (Argp Helper Functions): Move node to follow
14368         Argp Parsing State.
14369
14370         [BZ #14872]
14371         * manual/conf.texi (Limits on File System Capacity): Mention if
14372         terminating null is included in the max size.
14373
14374 2012-12-10  Andreas Jaeger  <aj@suse.de>
14375
14376         * po/cs.po: Update from translation team.
14377
14378 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
14379
14380         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
14381         void pointer and cast to uintptr_t.
14382         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
14383         path.
14384         * sysdeps/s390/s390-64/memcpy.S: Likewise.
14385         * sysdeps/s390/s390-64/memset.S: Likewise.
14386
14387 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
14388
14389         [BZ #14833]
14390         * menual/message.texi (Message Translation): Fix typos.
14391         (Helper programs for gettext): Likewise.
14392
14393 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
14394
14395         [BZ #14898]
14396         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
14397         Change to -1.
14398
14399 2012-12-07  David S. Miller  <davem@davemloft.net>
14400
14401         * po/libc.pot: Update.
14402
14403 2012-12-07  Richard Henderson  <rth@redhat.com>
14404
14405         [BZ #10114]
14406         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
14407         normal/normal case to before the switch.
14408         (_FP_DIV): Likewise.
14409
14410 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
14411             Mike Frysinger  <vapier@gentoo.org>
14412
14413         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
14414         check for __NR_fadvise64_64.
14415
14416 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
14417
14418         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
14419         0, not just to plain "0" as a statement.
14420         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
14421         with cw.
14422
14423 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
14424
14425         * NEWS: Use sourceware.org in Bugzilla URL.
14426
14427 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
14428
14429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
14430         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
14431
14432         * stdio-common/tst-put-error.c (do_test): Add newline to the
14433         padded test to ensure flush.
14434
14435 2012-12-05  Jeff Law  <law@redhat.com>
14436
14437         * sunrpc/etc.rpc (fedfs_admin): Add entry.
14438
14439 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
14440
14441         * README: Don't refer to ports add-on as distributed separately.
14442         Mention AArch64 in list of systems supported in the ports add-on.
14443
14444         * LICENSES: Add more non-FSF copyright and license notices.
14445
14446         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
14447         ((unused)).
14448
14449         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
14450
14451         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
14452         10000 as width of padded output.
14453
14454 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
14455
14456         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
14457
14458         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
14459         variable LX with __attribute__ ((unused)).
14460         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
14461         Likewise.
14462         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
14463         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14464         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
14465         with __attribute__ ((unused)).
14466
14467 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
14468
14469         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
14470
14471 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
14472
14473         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
14474         (CFLAGS-nldbl-acos.c): New variable.
14475         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
14476         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
14477         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
14478         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
14479         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
14480         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
14481         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
14482         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
14483         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
14484         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
14485         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
14486         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
14487         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
14488         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
14489         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
14490         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
14491         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
14492         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
14493         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
14494         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
14495         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
14496         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
14497         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
14498         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
14499         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
14500         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
14501         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
14502         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
14503         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
14504         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
14505         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
14506         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
14507         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
14508         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
14509         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
14510         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
14511         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
14512         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
14513         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
14514         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
14515         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
14516         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
14517         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
14518         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
14519         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
14520         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
14521         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
14522         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
14523         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
14524         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
14525         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
14526         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
14527         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
14528         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
14529         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
14530         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
14531         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
14532         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
14533         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
14534         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
14535         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
14536         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
14537         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
14538         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
14539         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
14540         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
14541         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
14542         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
14543         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
14544         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
14545         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
14546         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
14547         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
14548         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
14549         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
14550         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
14551         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
14552         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
14553         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
14554         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
14555         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
14556         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
14557         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
14558         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
14559         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
14560         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
14561         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
14562         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
14563         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
14564         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
14565         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
14566         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
14567         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
14568         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
14569         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
14570         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
14571         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
14572
14573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
14574         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
14575
14576         [BZ #14914]
14577         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
14578         whole low double instead of just low 47 bits when splitting values
14579         into two parts.
14580
14581 2012-12-03  Allan McRae  <allan@archlinux.org>
14582
14583         * manual/stdio.texi (Predefined Printf Handlers): Remove
14584         @hsep and @vsep usage.
14585
14586 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
14587
14588         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
14589         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
14590
14591 2012-12-03  Jeff Law  <law@redhat.com>
14592
14593         * time/sys/time.h (settimeofday): Do not mark TV argument
14594         as __nonnull.
14595
14596 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
14597
14598         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
14599         when currently writing and seek to current position when not.
14600         * libio/Makefile (tests): Remove bug-fclose1.
14601         * libio/bug-fclose1.c: Delete.
14602
14603 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
14604
14605         * manual/arith.texi (feenableexcept): Fix typo.
14606         (fedisableexcept): Likewise.
14607
14608 2012-11-30  Roland McGrath  <roland@hack.frob.com>
14609
14610         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
14611         second, differently-typed declaration, rather than a cast.
14612
14613 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
14614
14615         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
14616         * include/rpc/svc.h: ... here.
14617
14618 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
14619
14620         [BZ #13013]
14621         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
14622         depending n and resplen2 to catch cases where answer
14623         equals answerp2.
14624
14625 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
14626
14627         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
14628         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
14629
14630 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
14631
14632         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
14633
14634 2012-11-29  Roland McGrath  <roland@hack.frob.com>
14635
14636         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
14637
14638 2012-11-28  Jeff Law  <law@redhat.com>
14639
14640         [BZ #13761]
14641         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
14642         dataset_temporary.  Track alloca usage into alloca_used.
14643         If dataset is large allocate and release it via malloc/free.
14644
14645 2012-06-04  Florian Weimer  <fweimer@redhat.com>
14646
14647         [BZ #14197]
14648         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
14649
14650 2012-11-28  David S. Miller  <davem@davemloft.net>
14651
14652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14653
14654 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
14655
14656         [BZ #14803]
14657         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
14658         of pi/2 rounded to nearest to 64 bits.
14659         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
14660         nearest to 64 bits.
14661         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
14662         bits.
14663
14664 2012-11-28  Jeff Law <law@redhat.com>
14665             Martin Osvald <mosvald@redhat.com>
14666
14667         [BZ #14889]
14668         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
14669         * sunrpc/svc.c: Include time.h.
14670         (__svc_accept_failed): New function.
14671         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
14672         any reason other than EINTR, call __svc_accept_failed.
14673         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
14674         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
14675
14676 2012-11-28  Andreas Schwab  <schwab@suse.de>
14677
14678         * scripts/abilist.awk: Also handle indirect functions in .opd
14679         section.
14680
14681 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
14682
14683         [BZ #13881]
14684         * sysdeps/x86/fpu/powl_helper.c: New file.
14685         * sysdeps/x86/fpu/Makefile: Likewise.
14686         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
14687         (p3): New object.
14688         (__ieee754_powl): Use __powl_helper for finite arguments except
14689         integer exponents below 8.
14690         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
14691         (p3): New object.
14692         (__ieee754_powl): Use __powl_helper for finite arguments except
14693         integer exponents below 8.
14694         * math/libm-test.inc (pow_test): Add more tests and enable some
14695         previously disabled tests.
14696         * sysdeps/i386/fpu/libm-test-ulps: Update.
14697         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14698
14699 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14700             Carlos O'Donell  <carlos_odonell@mentor.com>
14701
14702         * nss/makedb.c (is_prime): Assert that input is odd and greater
14703         than 4.  Note that fact in a comment too.
14704         (next_prime): Add 4 to input.
14705
14706 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
14707
14708         [BZ #11741]
14709         * libio/Makefile (tests): Add test case tst-fwrite-error.
14710         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
14711         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
14712         * libio/tst-fwrite-error.c: New test case.
14713
14714 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
14715
14716         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
14717         before casting to void *.
14718         * include/libc-internal.h (__pointer_type): New macro.
14719         (__integer_if_pointer_type_sub): Likewise.
14720         (__integer_if_pointer_type): Likewise.
14721         (cast_to_integer): Likewise.
14722         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
14723         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
14724         before casting to atomic64_t.
14725         (atomic_exchange_acq): Likewise.
14726         (__arch_exchange_and_add_body): Likewise.
14727         (__arch_add_body): Likewise.
14728         (atomic_add_negative): Likewise.
14729         (atomic_add_zero): Likewise.
14730
14731 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
14732
14733         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
14734         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
14735         (add_fdes): Likewise.
14736         (linear_search_fdes): Likewise.
14737         (binary_search_unencoded_fdes): Likewise.
14738
14739 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
14740
14741         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
14742
14743 2012-11-24  Adam Conrad  <adconrad@0c3.net>
14744
14745         * configure.in: Autodetect C++ header directories.
14746         * configure: Regenerated.
14747
14748 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
14749
14750         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
14751
14752 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
14753
14754         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14755
14756 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
14757
14758         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
14759         LDBL_MANT_DIG == 106]: Disable some tests.
14760         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
14761         Likewise.
14762         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
14763         Likewise.
14764
14765         [BZ #14871]
14766         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
14767         input for small inputs.  Return +/- pi/2 for large inputs.
14768         * math/libm-test.inc (atan_test): Add more tests.
14769
14770         * sysdeps/generic/unwind-dw2-fde-glibc.c
14771         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
14772         __attribute__ ((unused)).
14773
14774         [BZ #14645]
14775         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
14776         x * y if x and y are nonzero and z is zero.
14777
14778         [BZ #14811]
14779         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
14780         nonzero exponents with absolute value below 0x1p-117 to +/-
14781         0x1p-117.
14782
14783         [BZ #14869]
14784         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
14785         up arguments below 2**-450, not just those below 2**-500.
14786         * math/libm-test.inc (hypot_test): Add another test.
14787
14788         [BZ #14868]
14789         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
14790         Return a+b for ratio over 2**120, not 2**60.
14791         * math/libm-test.inc (hypot_test): Add another test.
14792
14793         * math/libm-test.inc (clog_test): Use
14794         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
14795         (clog10_test): Likewise.
14796
14797         [BZ #6778]
14798         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
14799
14800 2012-11-22  Andreas Schwab  <schwab@suse.de>
14801
14802         * sysdeps/i386/fpu/libm-test-ulps: Update.
14803
14804 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
14805
14806         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
14807         printf output with newline.
14808
14809 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
14810
14811         [BZ #14865]
14812         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
14813         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
14814         -z nodlopen, -z initfirst and -z execstack support.
14815         * configure: Regenerated.
14816
14817         * elf/elf.h (DF_1_NODIRECT): New macro.
14818         (DF_1_IGNMULDEF): Likewise.
14819         (DF_1_NOKSYMS): Likewise.
14820         (DF_1_NOHDR): Likewise.
14821         (DF_1_EDITED): Likewise.
14822         (DF_1_NORELOC): Likewise.
14823         (DF_1_SYMINTPOSE): Likewise.
14824         (DF_1_GLOBAUDIT): Likewise.
14825         (DF_1_SINGLETON): Likewise.
14826         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
14827         DT_1_SUPPORTED_MASK bits.
14828         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
14829
14830 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
14831
14832         * sysdeps/unix/make-syscalls.sh: Document prefixes.
14833
14834 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
14835
14836         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
14837         macro.
14838
14839         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
14840         (sendmmsg): Move declarations...
14841         * socket/sys/socket.h: ... here.
14842         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
14843         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
14844         include it from...
14845         * socket/recvmmsg.c: ... this new file.
14846         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
14847         (sendmmsg): Rename to __sendmmsg, create weak alias and make
14848         definition of __sendmmsg hidden.
14849         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
14850         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
14851         Move ENOSYS stub into and include it from...
14852         * socket/sendmmsg.c: ... this new file.
14853         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
14854         (sysdep_routines): Move recvmmsg and sendmmsg...
14855         * socket/Makefile (routines): ... here.
14856         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
14857         (GLIBC_PRIVATE): Add __sendmmsg.
14858         * include/sys/socket.h (__sendmmsg): Add declarations.
14859         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
14860         sendmmsg.
14861
14862 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
14863
14864         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
14865         variable I1 with __attribute__ ((unused)).
14866         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
14867
14868 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
14869
14870         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
14871         DUMMY variables with __attribute__ ((unused)).
14872
14873         * bits/byteswap.h: Include <bits/types.h>.
14874         (__bswap_64): Use __uint64_t instead of unsigned long long int.
14875
14876 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
14877
14878         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
14879         string_t.  Do not manually set errno.
14880         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
14881         length with __strnlen.  Make sure to both set errno and return it on
14882         failure.
14883
14884 2012-11-19  David S. Miller  <davem@davemloft.net>
14885
14886         With help from Joseph Myers.
14887         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
14888         very large arguments properly.
14889         * math/libm-test.inc (atan_test): New tests.
14890         (atan2_test): New tests.
14891         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14892         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14893
14894 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
14895
14896         [BZ #14856]
14897         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
14898         Define to 3.
14899
14900         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
14901         [POSIX] (EADDRNOTAVAIL): Likewise.
14902         [POSIX] (EAFNOSUPPORT): Likewise.
14903         [POSIX] (EALREADY): Likewise.
14904         [POSIX] (ECONNABORTED): Likewise.
14905         [POSIX] (ECONNREFUSED): Likewise.
14906         [POSIX] (ECONNRESET): Likewise.
14907         [POSIX] (EDESTADDRREQ): Likewise.
14908         [POSIX] (EDQUOT): Likewise.
14909         [POSIX] (EHOSTUNREACH): Likewise.
14910         [POSIX] (EIDRM): Likewise.
14911         [POSIX] (EISCONN): Likewise.
14912         [POSIX] (ELOOP): Likewise.
14913         [POSIX] (EMULTIHOP): Likewise.
14914         [POSIX] (ENETDOWN): Likewise.
14915         [POSIX] (ENETUNREACH): Likewise.
14916         [POSIX] (ENOBUFS): Likewise.
14917         [POSIX] (ENODATA): Likewise.
14918         [POSIX] (ENOLINK): Likewise.
14919         [POSIX] (ENOMSG): Likewise.
14920         [POSIX] (ENOPROTOOPT): Likewise.
14921         [POSIX] (ENOSR): Likewise.
14922         [POSIX] (ENOSTR): Likewise.
14923         [POSIX] (ENOTCONN): Likewise.
14924         [POSIX] (ENOTSOCK): Likewise.
14925         [POSIX] (EOPNOTSUPP): Likewise.
14926         [POSIX] (EOVERFLOW): Likewise.
14927         [POSIX] (EPROTO): Likewise.
14928         [POSIX] (EPROTONOSUPPORT): Likewise.
14929         [POSIX] (EPROTOTYPE): Likewise.
14930         [POSIX] (ESTALE): Likewise.
14931         [POSIX] (ETIME): Likewise.
14932         [POSIX] (ETXTBSY): Likewise.
14933         [POSIX] (EWOULDBLOCK): Likewise.
14934         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
14935         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
14936         [POSIX] (SEEK_CUR): Likewise.
14937         [POSIX] (SEEK_END): Likewise.
14938         [POSIX || UNIX98] (mode_t): Do not require.
14939         [POSIX] (off_t): Likewise.
14940         [POSIX] (pid_t): Likewise.
14941         [POSIX] (sys/stat.h): Do not allow header.
14942         [POSIX] (unistd.h): Likewise.
14943         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
14944         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
14945         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
14946         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
14947         require.
14948         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
14949         sigevent): Specify elements.
14950         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
14951         entry.
14952         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
14953         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
14954
14955         * conform/data/cpio.h-data [POSIX]: Disable whole file.
14956         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
14957         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
14958         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
14959         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
14960         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
14961         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
14962         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
14963         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
14964         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
14965         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
14966         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
14967         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
14968         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
14969         Likewise.
14970         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
14971         Likewise.
14972         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
14973         Likewise.
14974         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
14975         Likewise.
14976         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
14977         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
14978         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
14979         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
14980         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
14981         Specify lower bound on value.
14982         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
14983         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
14984         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
14985         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
14986         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
14987         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
14988         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
14989         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
14990         value.
14991         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
14992         as optional.
14993         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
14994         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
14995         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
14996         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
14997         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
14998         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
14999         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
15000         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
15001         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
15002         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
15003         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
15004         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
15005         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
15006         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
15007         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
15008         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
15009         entry.
15010         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
15011         optional.
15012         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
15013         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
15014         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
15015         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
15016         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
15017         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
15018         Likewise.
15019         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
15020         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
15021         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
15022         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
15023         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
15024         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
15025         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
15026         as optional.
15027         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
15028         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
15029         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
15030         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
15031         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
15032         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
15033         specify as optional.
15034         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
15035         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
15036         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
15037         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
15038         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
15039         [XPG3] (NL_LANGMAX): Likewise.
15040         [POSIX || XPG3] (NL_MSGMAX): Likewise.
15041         [POSIX || XPG3] (NL_NMAX): Likewise.
15042         [POSIX || XPG3] (NL_SETMAX): Likewise.
15043         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
15044         [XPG3] (NZERO): Likewise.
15045         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
15046         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
15047         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
15048         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
15049         (REG_ERANGE): Expect.
15050         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
15051         optional-constant.
15052         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
15053         Use (void) in prototype.
15054         [POSIX] (*_t): Allow.
15055         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
15056         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
15057         (WRDE_BADVAL): Expect.
15058
15059         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
15060         expect.
15061         [XPG3 || XPG4] (O_RSYNC): Likewise.
15062         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
15063         Likewise.
15064         [XPG3 || XPG4] (pthread_sigmask): Likewise.
15065         [XPG3 || XPG4] (sigqueue): Likewise.
15066         [XPG3 || XPG4] (sigtimedwait): Likewise.
15067         [XPG3 || XPG4] (sigwaitinfo): Likewise.
15068         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
15069         [XPG3 || XPG4] (vsnprintf): Likewise.
15070         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
15071         Likewise.
15072         [XPG3 || XPG4] (blksize_t): Likewise.
15073         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
15074         Likewise.
15075         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
15076         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
15077         [XPG3 || XPG4] (struct itimerspec): Likewise.
15078         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
15079         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
15080         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
15081         [XPG3 || XPG4] (clockid_t): Likewise.
15082         [XPG3 || XPG4] (timer_t): Likewise.
15083         [XPG3 || XPG4] (clock_getres): Likewise.
15084         [XPG3 || XPG4] (clock_gettime): Likewise.
15085         [XPG3 || XPG4] (clock_settime): Likewise.
15086         [XPG3 || XPG4] (nanosleep): Likewise.
15087         [XPG3 || XPG4] (timer_create): Likewise.
15088         [XPG3 || XPG4] (timer_delete): Likewise.
15089         [XPG3 || XPG4] (timer_gettime): Likewise.
15090         [XPG3 || XPG4] (timer_getoverrun): Likewise.
15091         [XPG3 || XPG4] (timer_settime): Likewise.
15092         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
15093         [XPG3 || XPG4] (getlogin_r): Likewise.
15094         [XPG3 || XPG4] (pread): Likewise.
15095         [XPG3 || XPG4] (pthread_atfork): Likewise.
15096         [XPG3 || XPG4] (pwrite): Likewise.
15097
15098         [BZ #14835]
15099         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
15100         <bits/siginfo.h>.
15101
15102 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
15103
15104         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
15105         finalizing MALLSTREAM.
15106
15107         * sysdeps/mach/hurd/syncfs.c: New file.
15108
15109 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
15110
15111         [BZ #14719]
15112         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
15113         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
15114         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
15115         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
15116         (_nss_dns_gethostbyname4_r): Likewise.
15117         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
15118         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
15119
15120 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
15121
15122         [BZ #13763]
15123         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
15124
15125 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
15126
15127         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
15128         * elf/cache.c (print_entry): Print ",AArch64" for
15129         FLAG_AARCH64_LIB64
15130
15131         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
15132         * elf/cache.c (print_entry): Print ",hard-float" for
15133         FLAG_ARM_LIBHF.
15134
15135 2012-11-18  David S. Miller  <davem@davemloft.net>
15136
15137         With help from Joseph Myers.
15138         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
15139         cutoff to 2**-13.
15140         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
15141         cutoff to 2**-25.
15142         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
15143         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
15144         small.
15145         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
15146         * math/libm-test.inc (y0_test): New tests.
15147         (y1_test): New tests.
15148         * sysdeps/i386/fpu/libm-test-ulps: Update.
15149         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15150         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15151
15152 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
15153
15154         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
15155         64-bit targets.
15156         * configure: Regenerated.
15157
15158 2012-11-17  David S. Miller  <davem@davemloft.net>
15159
15160         [BZ #14811]
15161         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
15162         nonzero exponents with absolute value below 0x1p-128 to +/-
15163         0x1p-128.
15164
15165 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
15166
15167         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
15168
15169         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
15170
15171         * posix/getconf-speclist.c: New file.
15172         * posix/posix-envs.def: Likewise.
15173         * posix/confstr.c (START_ENV_GROUP): New macro.
15174         (END_ENV_GROUP): Likewise.
15175         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15176         (KNOWN_PRESENT_ENV_STRING): Likewise.
15177         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15178         (UNKNOWN_ENVIRONMENT): Likewise.
15179         (confstr): Include posix-envs.def instead of handling
15180         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
15181         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
15182         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
15183         (END_ENV_GROUP): Likewise.
15184         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
15185         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
15186         (UNKNOWN_ENVIRONMENT): Likewise.
15187         (__sysconf): Include posix-envs.def instead of handling associated
15188         cases directly here.
15189         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
15190         preprocessing getconf-speclist.c rather than running getconf or
15191         generating empty file.
15192
15193 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
15194
15195         * scripts/check-local-headers.sh: Ignore 'mach' headers.
15196
15197 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
15198
15199         [BZ #14672]
15200         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
15201
15202 2012-11-16  David S. Miller  <davem@davemloft.net>
15203
15204         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
15205         smaller than LDBL_EPSILON/2.0L, just return xm1.
15206
15207 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
15208
15209         * elf/tst-array1.c (init): Set constructor priority to 1000.
15210         (fini): Set destructor priority to 1000.
15211         * elf/tst-array2dep.c: Likewise.
15212
15213 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15214
15215         [BZ #11741]
15216         * libio/fileops.c (_IO_new_file_write): Correctly return error.
15217         (_IO_new_file_xsputn): Also return EOF if none of the input
15218         data was written when overflow failed.
15219         * libio/iopadn.c (_IO_padn): Likewise.
15220         * libio/iowpadn.c (_IO_wpadn): Likewise.
15221         * stdio-common/tst-put-error.c: Add copyright notice.
15222         (do_test): Add case for printing padded string.
15223         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
15224         _IO_padn returned error.
15225         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
15226         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
15227         return EOF.
15228
15229 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15230
15231         * libio/libioP.h: Add comment note that the references to C++
15232         bits are now obsolete.
15233
15234 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15235
15236         * math/libm-test.inc (check_complex): Use asprintf.
15237
15238 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
15239
15240         * debug/pcprofiledump.c (print_version): Update copyright year.
15241         * malloc/memusagestat.c (print_version): Likewise.
15242
15243 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
15244
15245         [BZ #14831]
15246         * elf/Makefile (tests): Add tst-audit8.
15247         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
15248         ($(objpfx)tst-audit8.out): New target.
15249         (tst-audit8-ENV): New variable.
15250         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
15251         audit if l_reloc_result is NULL.
15252         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
15253         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
15254         * elf/tst-audit8.c: New file.
15255
15256 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15257
15258         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
15259         * misc/Makefile (CFLAGS-select.c): Define.
15260         * posix/Makefile (CFLAGS-pause.c): Define.
15261
15262 2012-11-13  David S. Miller  <davem@davemloft.net>
15263
15264         * crypt/Makefile: Move test targets after toplevel Rules
15265         inclusion.  Grab any necessary sysdep routines when linking.
15266         * crypt/md5.c (md5_process_block): Remove define, we will always
15267         name it __md5_process_block.
15268         (md5_finish_ctx): Update md5_process_block call.
15269         (md5_stream): Likewise.
15270         (md5_process_bytes): Likewise.
15271         (md5_process_block): Rename to __md5_process_block and move to ...
15272         * crypt/md5-block.c: ... here.
15273         * crypt/sha256.c (sha256_process_block): Move to ...
15274         * crypt/sha256-block.c: ... here.
15275         * crypt/sha512.c (sha512_process_block): Move to ...
15276         * crypt/sha512-block.c: ... here.
15277         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
15278         path.
15279         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
15280         * sysdeps/sparc/sparc64/multiarch/Makefile
15281         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
15282         crypt subdir.
15283         (localedef-aux): Add md5 crypto assembler when in locale subdir.
15284         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
15285         multiarch changes.
15286         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
15287         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
15288         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
15289         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
15290         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
15291         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
15292         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
15293         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
15294         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
15295         file.
15296         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
15297         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
15298         file.
15299         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
15300
15301 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
15302
15303         * timezone/tzselect.ksh: Update from tzcode git revision
15304         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
15305         * timezone/zdump.c: Likewise.
15306         * timezone/zic.c: Likewise.
15307         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
15308         in TZVERSION setting, not $(PKGVERSION).
15309         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
15310         REPORT_BUGS_TO settings.
15311
15312         [BZ #14838]
15313         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
15314         macro.
15315
15316 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15317
15318         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
15319         detection to immediately after _FP_ROUND().
15320         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
15321         bits are 0.
15322
15323 2012-11-11  David S. Miller  <davem@davemloft.net>
15324
15325         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
15326         inttypes.h
15327         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
15328         __close rather than their public counterparts.
15329
15330 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
15331
15332         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
15333         file.
15334         [UNIX98] (sem_timedwait): Do not expect.
15335         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
15336         [XPG4 || UNIX98] (sockatmark): Do not expect.
15337         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
15338         (clock_getcpuclockid): Do not expect.
15339         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
15340         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
15341         Do not expect.
15342         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
15343         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
15344         [UNIX98] (vwscanf): Likewise.
15345         [UNIX98] (vswscanf): Likewise.
15346
15347 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
15348
15349         * timezone/version.h: Remove file.
15350         * timezone/README: Do not refer to version.h.
15351         * timezone/Makefile ($(objpfx)zic.o): New dependency on
15352         $(objpfx)version.h.
15353         ($(objpfx)zdump.o): Likewise.
15354         ($(objpfx)version.h): New target.
15355
15356         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
15357         2012i.
15358         * timezone/README: Don't mention modification to tzselect.ksh.
15359         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
15360         work on unmodified tzselect.ksh.  Substitute version numbers in
15361         tzselect.ksh.
15362
15363         * Makefile (format-me): Remove.
15364         (INSTALL): Adjust indentation.  Use commands directly instead of
15365         using $(format-me).
15366
15367         * aclocal.m4 (ACX_PKGVERSION): New macro.
15368         (ACX_BUGURL): Likewise.
15369         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
15370         (PKGVERSION): New AC_DEFINE_UNQUOTED.
15371         (REPORT_BUGS_TO): Likewise.
15372         * configure: Regenerated.
15373         * config.h.in (PKGVERSION): New macro.
15374         (REPORT_BUGS_TO): Likewise.
15375         * config.make.in (PKGVERSION): New variable.
15376         (PKGVERSION_TEXI): Likewise.
15377         (REPORT_BUGS_TO): Likewise.
15378         (REPORT_BUGS_TEXI): Likewise.
15379         * Makefile (format-me): Use -I$(common-objpfx)manual.
15380         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
15381         ($(common-objpfx)manual/%): New target.
15382         (manual/%): Remove target.
15383         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
15384         (print_version): Use PKGVERSION.
15385         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
15386         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
15387         and REPORT_BUGS_TO.
15388         ($(objpfx)xtrace): Likewise.
15389         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
15390         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
15391         (print_version): Use PKGVERSION.
15392         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
15393         (do_version): Use PKGVERSION.
15394         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
15395         REPORT_BUGS_TO.
15396         (common-ldd-rewrite): Likewise.
15397         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
15398         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
15399         (print_version): Use PKGVERSION.
15400         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
15401         * elf/pldd.c (argp_program_bug_address): Remove variable.
15402         (more_help): New function.
15403         (argp): Use more_help.
15404         (print_version): Use PKGVERSION.
15405         * elf/sln.c (main): Use PKGVERSION.
15406         (usage): Use REPORT_BUGS_TO.
15407         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
15408         (top level): Use PKGVERSION.
15409         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
15410         (print_version): Use PKGVERSION.
15411         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
15412         (print_version): Use PKGVERSION.
15413         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
15414         (print_version): Use PKGVERSION.
15415         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
15416         (print_version): Use PKGVERSION.
15417         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
15418         (print_version): Use PKGVERSION.
15419         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
15420         (print_version): Use PKGVERSION.
15421         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
15422         and BUGURL.
15423         ($(objpfx)memusage): Likewise.
15424         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
15425         (do_version): Use PKGVERSION.
15426         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
15427         (print_version): Use PKGVERSION.
15428         * malloc/mtrace.pl ($PACKAGE): Remove variable.
15429         ($PKGVERSION): New variable.
15430         ($REPORT_BUGS_TO): Likewise.
15431         (usage): Use $REPORT_BUGS_TO.
15432         (top level): Use $PKGVERSION.
15433         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
15434         ($(objpfx)pkgvers.texi): New rule.
15435         ($(objpfx)stamp-pkgvers): Likewise.
15436         * manual/install.texi: Include pkgvers.texi.
15437         (--with-pkgversion): Document new configure option.
15438         (--with-bugurl): Likewise.
15439         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
15440         than necessarily for this particular distribution.  Use
15441         REPORT_BUGS_TO for where to report bugs.
15442         * INSTALL: Regenerated.
15443         * manual/libc.texinfo: Include pkgvers.texi.
15444         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
15445         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
15446         (print_version): Use PKGVERSION.
15447         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
15448         (print_version): Use PKGVERSION.
15449         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
15450         (print_version): Use PKGVERSION.
15451         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
15452         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
15453         macro.
15454         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
15455         (print_version): Use PKGVERSION.
15456         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
15457         (print_version): Use PKGVERSION.
15458         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
15459         and PKGVERSION.
15460
15461         * timezone/checktab.awk: Update from tzcode 2012i.
15462         * timezone/ialloc.c: Likewise.
15463         * timezone/private.h: Likewise.
15464         * timezone/scheck.c: Likewise.
15465         * timezone/tzfile.h: Likewise.
15466         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
15467         (TZVERSION): Hardcode tzcode version number.
15468         * timezone/zdump.c: Update from tzcode 2012i.
15469         * timezone/zic.c: Likewise.
15470         * timezone/version.h: New file.
15471         * timezone/README: Describe version.h.  Update upstream location.
15472
15473         [BZ #14824]
15474         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
15475         (mktemp): Enable declaration.
15476         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
15477         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
15478         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
15479         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
15480         Likewise.
15481         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
15482         Likewise.
15483         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
15484         Likewise.
15485         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
15486         Likewise.
15487         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
15488         Likewise.
15489         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
15490         Likewise.
15491
15492         [BZ #14821]
15493         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
15494         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
15495         for copies of such integer values.
15496         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15497         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15498
15499 2012-11-09  Andreas Jaeger  <aj@suse.de>
15500
15501         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
15502         definitions and declarations that are provided by
15503         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
15504
15505 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15506
15507         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
15508         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
15509         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
15510         definition.
15511
15512 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15513
15514         * elf/elf.h: Update comment before AArch64 relocations.
15515
15516 2012-11-07  David S. Miller  <davem@davemloft.net>
15517
15518         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
15519         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
15520         (__start_context): Declare.
15521         (__makecontext_ret): Delete.
15522         (__makecontext): Hook up __start_context instead of
15523         __makecontext_ret.
15524         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
15525         (sysdep_routines): Add __start_context when in stdlib.
15526
15527 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15528
15529         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
15530         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
15531         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
15532         hardcoded "nm".
15533         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
15534         (READELF): New variable.  Use it instead of hardcoded "readelf".
15535
15536 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15537
15538         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
15539         * sysdeps/x86/Makefile: Here.
15540         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
15541         * sysdeps/x86/tst-xmmymm.sh: This.
15542
15543 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15544
15545         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
15546         expectations.
15547         [UNIX98] (pthread_barrier_t): Do not expect.
15548         [UNIX98] (pthread_barrierattr_t): Likewise.
15549         [UNIX98] (pthread_spinlock_t): Likewise.
15550         [UNIX98] (pthread_barrier_destroy): Likewise.
15551         [UNIX98] (pthread_barrier_init): Likewise.
15552         [UNIX98] (pthread_barrier_wait): Likewise.
15553         [UNIX98] (pthread_barrierattr_destroy): Likewise.
15554         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
15555         [UNIX98] (pthread_barrierattr_init): Likewise.
15556         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
15557         [UNIX98] (pthread_getcpuclockid): Likewise.
15558         [UNIX98] (pthread_mutex_timedlock): Likewise.
15559         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
15560         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
15561         [UNIX98] (pthread_sigmask): Likewise.
15562         [UNIX98] (pthread_spin_destroy): Likewise.
15563         [UNIX98] (pthread_spin_init): Likewise.
15564         [UNIX98] (pthread_spin_lock): Likewise.
15565         [UNIX98] (pthread_spin_trylock): Likewise.
15566         [UNIX98] (pthread_spin_unlock): Likewise.
15567         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
15568         Do not expect.
15569         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
15570         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
15571         [XPG3 || XPG4] (pthread_cond_t): Likewise.
15572         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
15573         [XPG3 || XPG4] (pthread_key_t): Likewise.
15574         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
15575         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
15576         [XPG3 || XPG4] (pthread_once_t): Likewise.
15577         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
15578         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
15579         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
15580         [XPG3 || XPG4] (pthread_t): Likewise.
15581
15582         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
15583         not expect.
15584         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
15585
15586         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
15587         Change function return type to int.
15588
15589         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
15590         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
15591         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
15592         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
15593         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
15594         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
15595         [!POSIX] (posix_madvise): Likewise.
15596         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
15597         && !UNIX98].
15598         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
15599         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
15600         (mode_t): Likewise.
15601         (posix_mem_offset): Likewise.
15602         (posix_typed_mem_get_info): Likewise.
15603         (posix_typed_mem_open): Likewise.
15604
15605         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
15606         Change condition to [XOPEN2K8].
15607
15608         * conform/conformtest.pl: Preprocess allow-header data with -x c
15609         instead of from stdin.
15610         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
15611         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
15612         [C99-based standards] (cerfc): Likewise.
15613         [C99-based standards] (cexp2): Likewise.
15614         [C99-based standards] (cexpm1): Likewise.
15615         [C99-based standards] (clog10): Likewise.
15616         [C99-based standards] (clog1p): Likewise.
15617         [C99-based standards] (clog2): Likewise.
15618         [C99-based standards] (clgamma): Likewise.
15619         [C99-based standards] (ctgamma): Likewise.
15620         [C99-based standards] (cerff): Likewise.
15621         [C99-based standards] (cerfcf): Likewise.
15622         [C99-based standards] (cexp2f): Likewise.
15623         [C99-based standards] (cexpm1f): Likewise.
15624         [C99-based standards] (clog10f): Likewise.
15625         [C99-based standards] (clog1pf): Likewise.
15626         [C99-based standards] (clog2f): Likewise.
15627         [C99-based standards] (clgammaf): Likewise.
15628         [C99-based standards] (ctgammaf): Likewise.
15629         [C99-based standards] (cerfl): Likewise.
15630         [C99-based standards] (cerfcl): Likewise.
15631         [C99-based standards] (cexp2l): Likewise.
15632         [C99-based standards] (cexpm1l): Likewise.
15633         [C99-based standards] (clog10l): Likewise.
15634         [C99-based standards] (clog1pl): Likewise.
15635         [C99-based standards] (clog2l): Likewise.
15636         [C99-based standards] (clgammal): Likewise.
15637         [C99-based standards] (ctgammal): Likewise.
15638         * conform/data/inttypes.h-data [C99-based standards]: Include
15639         stdint.h-data.  Remove all expectations for stdint.h contents.
15640         [C99-based standards] (PRI*): Do not allow.
15641         [C99-based standards] (SCN*): Likewise.
15642         [C99-based standards] (*_t): Likewise.
15643         [C99-based-standards] (PRId8): Expect macro.
15644         [C99-based-standards] (PRIi8): Likewise.
15645         [C99-based-standards] (PRIo8): Likewise.
15646         [C99-based-standards] (PRIu8): Likewise.
15647         [C99-based-standards] (PRIx8): Likewise.
15648         [C99-based-standards] (PRIX8): Likewise.
15649         [C99-based-standards] (SCNd8): Likewise.
15650         [C99-based-standards] (SCNi8): Likewise.
15651         [C99-based-standards] (SCNo8): Likewise.
15652         [C99-based-standards] (SCNu8): Likewise.
15653         [C99-based-standards] (SCNx8): Likewise.
15654         [C99-based-standards] (PRIdLEAST8): Likewise.
15655         [C99-based-standards] (PRIiLEAST8): Likewise.
15656         [C99-based-standards] (PRIoLEAST8): Likewise.
15657         [C99-based-standards] (PRIuLEAST8): Likewise.
15658         [C99-based-standards] (PRIxLEAST8): Likewise.
15659         [C99-based-standards] (PRIXLEAST8): Likewise.
15660         [C99-based-standards] (SCNdLEAST8): Likewise.
15661         [C99-based-standards] (SCNiLEAST8): Likewise.
15662         [C99-based-standards] (SCNoLEAST8): Likewise.
15663         [C99-based-standards] (SCNuLEAST8): Likewise.
15664         [C99-based-standards] (SCNxLEAST8): Likewise.
15665         [C99-based-standards] (PRIdFAST8): Likewise.
15666         [C99-based-standards] (PRIiFAST8): Likewise.
15667         [C99-based-standards] (PRIoFAST8): Likewise.
15668         [C99-based-standards] (PRIuFAST8): Likewise.
15669         [C99-based-standards] (PRIxFAST8): Likewise.
15670         [C99-based-standards] (PRIXFAST8): Likewise.
15671         [C99-based-standards] (SCNdFAST8): Likewise.
15672         [C99-based-standards] (SCNiFAST8): Likewise.
15673         [C99-based-standards] (SCNoFAST8): Likewise.
15674         [C99-based-standards] (SCNuFAST8): Likewise.
15675         [C99-based-standards] (SCNxFAST8): Likewise.
15676         [C99-based-standards] (PRId16): Likewise.
15677         [C99-based-standards] (PRIi16): Likewise.
15678         [C99-based-standards] (PRIo16): Likewise.
15679         [C99-based-standards] (PRIu16): Likewise.
15680         [C99-based-standards] (PRIx16): Likewise.
15681         [C99-based-standards] (PRIX16): Likewise.
15682         [C99-based-standards] (SCNd16): Likewise.
15683         [C99-based-standards] (SCNi16): Likewise.
15684         [C99-based-standards] (SCNo16): Likewise.
15685         [C99-based-standards] (SCNu16): Likewise.
15686         [C99-based-standards] (SCNx16): Likewise.
15687         [C99-based-standards] (PRIdLEAST16): Likewise.
15688         [C99-based-standards] (PRIiLEAST16): Likewise.
15689         [C99-based-standards] (PRIoLEAST16): Likewise.
15690         [C99-based-standards] (PRIuLEAST16): Likewise.
15691         [C99-based-standards] (PRIxLEAST16): Likewise.
15692         [C99-based-standards] (PRIXLEAST16): Likewise.
15693         [C99-based-standards] (SCNdLEAST16): Likewise.
15694         [C99-based-standards] (SCNiLEAST16): Likewise.
15695         [C99-based-standards] (SCNoLEAST16): Likewise.
15696         [C99-based-standards] (SCNuLEAST16): Likewise.
15697         [C99-based-standards] (SCNxLEAST16): Likewise.
15698         [C99-based-standards] (PRIdFAST16): Likewise.
15699         [C99-based-standards] (PRIiFAST16): Likewise.
15700         [C99-based-standards] (PRIoFAST16): Likewise.
15701         [C99-based-standards] (PRIuFAST16): Likewise.
15702         [C99-based-standards] (PRIxFAST16): Likewise.
15703         [C99-based-standards] (PRIXFAST16): Likewise.
15704         [C99-based-standards] (SCNdFAST16): Likewise.
15705         [C99-based-standards] (SCNiFAST16): Likewise.
15706         [C99-based-standards] (SCNoFAST16): Likewise.
15707         [C99-based-standards] (SCNuFAST16): Likewise.
15708         [C99-based-standards] (SCNxFAST16): Likewise.
15709         [C99-based-standards] (PRId32): Likewise.
15710         [C99-based-standards] (PRIi32): Likewise.
15711         [C99-based-standards] (PRIo32): Likewise.
15712         [C99-based-standards] (PRIu32): Likewise.
15713         [C99-based-standards] (PRIx32): Likewise.
15714         [C99-based-standards] (PRIX32): Likewise.
15715         [C99-based-standards] (SCNd32): Likewise.
15716         [C99-based-standards] (SCNi32): Likewise.
15717         [C99-based-standards] (SCNo32): Likewise.
15718         [C99-based-standards] (SCNu32): Likewise.
15719         [C99-based-standards] (SCNx32): Likewise.
15720         [C99-based-standards] (PRIdLEAST32): Likewise.
15721         [C99-based-standards] (PRIiLEAST32): Likewise.
15722         [C99-based-standards] (PRIoLEAST32): Likewise.
15723         [C99-based-standards] (PRIuLEAST32): Likewise.
15724         [C99-based-standards] (PRIxLEAST32): Likewise.
15725         [C99-based-standards] (PRIXLEAST32): Likewise.
15726         [C99-based-standards] (SCNdLEAST32): Likewise.
15727         [C99-based-standards] (SCNiLEAST32): Likewise.
15728         [C99-based-standards] (SCNoLEAST32): Likewise.
15729         [C99-based-standards] (SCNuLEAST32): Likewise.
15730         [C99-based-standards] (SCNxLEAST32): Likewise.
15731         [C99-based-standards] (PRIdFAST32): Likewise.
15732         [C99-based-standards] (PRIiFAST32): Likewise.
15733         [C99-based-standards] (PRIoFAST32): Likewise.
15734         [C99-based-standards] (PRIuFAST32): Likewise.
15735         [C99-based-standards] (PRIxFAST32): Likewise.
15736         [C99-based-standards] (PRIXFAST32): Likewise.
15737         [C99-based-standards] (SCNdFAST32): Likewise.
15738         [C99-based-standards] (SCNiFAST32): Likewise.
15739         [C99-based-standards] (SCNoFAST32): Likewise.
15740         [C99-based-standards] (SCNuFAST32): Likewise.
15741         [C99-based-standards] (SCNxFAST32): Likewise.
15742         [C99-based-standards] (PRId64): Likewise.
15743         [C99-based-standards] (PRIi64): Likewise.
15744         [C99-based-standards] (PRIo64): Likewise.
15745         [C99-based-standards] (PRIu64): Likewise.
15746         [C99-based-standards] (PRIx64): Likewise.
15747         [C99-based-standards] (PRIX64): Likewise.
15748         [C99-based-standards] (SCNd64): Likewise.
15749         [C99-based-standards] (SCNi64): Likewise.
15750         [C99-based-standards] (SCNo64): Likewise.
15751         [C99-based-standards] (SCNu64): Likewise.
15752         [C99-based-standards] (SCNx64): Likewise.
15753         [C99-based-standards] (PRIdLEAST64): Likewise.
15754         [C99-based-standards] (PRIiLEAST64): Likewise.
15755         [C99-based-standards] (PRIoLEAST64): Likewise.
15756         [C99-based-standards] (PRIuLEAST64): Likewise.
15757         [C99-based-standards] (PRIxLEAST64): Likewise.
15758         [C99-based-standards] (PRIXLEAST64): Likewise.
15759         [C99-based-standards] (SCNdLEAST64): Likewise.
15760         [C99-based-standards] (SCNiLEAST64): Likewise.
15761         [C99-based-standards] (SCNoLEAST64): Likewise.
15762         [C99-based-standards] (SCNuLEAST64): Likewise.
15763         [C99-based-standards] (SCNxLEAST64): Likewise.
15764         [C99-based-standards] (PRIdFAST64): Likewise.
15765         [C99-based-standards] (PRIiFAST64): Likewise.
15766         [C99-based-standards] (PRIoFAST64): Likewise.
15767         [C99-based-standards] (PRIuFAST64): Likewise.
15768         [C99-based-standards] (PRIxFAST64): Likewise.
15769         [C99-based-standards] (PRIXFAST64): Likewise.
15770         [C99-based-standards] (SCNdFAST64): Likewise.
15771         [C99-based-standards] (SCNiFAST64): Likewise.
15772         [C99-based-standards] (SCNoFAST64): Likewise.
15773         [C99-based-standards] (SCNuFAST64): Likewise.
15774         [C99-based-standards] (SCNxFAST64): Likewise.
15775         [C99-based-standards] (PRIdMAX): Likewise.
15776         [C99-based-standards] (PRIiMAX): Likewise.
15777         [C99-based-standards] (PRIoMAX): Likewise.
15778         [C99-based-standards] (PRIuMAX): Likewise.
15779         [C99-based-standards] (PRIxMAX): Likewise.
15780         [C99-based-standards] (PRIXMAX): Likewise.
15781         [C99-based-standards] (SCNdMAX): Likewise.
15782         [C99-based-standards] (SCNiMAX): Likewise.
15783         [C99-based-standards] (SCNoMAX): Likewise.
15784         [C99-based-standards] (SCNuMAX): Likewise.
15785         [C99-based-standards] (SCNxMAX): Likewise.
15786         [C99-based-standards] (PRIdPTR): Likewise.
15787         [C99-based-standards] (PRIiPTR): Likewise.
15788         [C99-based-standards] (PRIoPTR): Likewise.
15789         [C99-based-standards] (PRIuPTR): Likewise.
15790         [C99-based-standards] (PRIxPTR): Likewise.
15791         [C99-based-standards] (PRIXPTR): Likewise.
15792         [C99-based-standards] (SCNdPTR): Likewise.
15793         [C99-based-standards] (SCNiPTR): Likewise.
15794         [C99-based-standards] (SCNoPTR): Likewise.
15795         [C99-based-standards] (SCNuPTR): Likewise.
15796         [C99-based-standards] (SCNxPTR): Likewise.
15797         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
15798         allow.
15799         * conform/data/stdint.h-data: Update comments to clarify
15800         requirements.
15801         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
15802         type.
15803         [C99-based standards] (INT8_MAX): Likewise.
15804         [C99-based standards] (INT16_MIN): Likewise.
15805         [C99-based standards] (INT16_MAX): Likewise.
15806         [C99-based standards] (INT32_MIN): Likewise.
15807         [C99-based standards] (INT32_MAX): Likewise.
15808         [C99-based standards] (INT64_MIN): Likewise.
15809         [C99-based standards] (INT64_MAX): Likewise.
15810         [C99-based standards] (UINT8_MAX): Likewise.
15811         [C99-based standards] (UINT16_MAX): Likewise.
15812         [C99-based standards] (UINT32_MAX): Likewise.
15813         [C99-based standards] (UINT64_MAX): Likewise.
15814         [C99-based standards] (INT_LEAST8_MIN): Likewise.
15815         [C99-based standards] (INT_LEAST8_MAX): Likewise.
15816         [C99-based standards] (INT_LEAST16_MIN): Likewise.
15817         [C99-based standards] (INT_LEAST16_MAX): Likewise.
15818         [C99-based standards] (INT_LEAST32_MIN): Likewise.
15819         [C99-based standards] (INT_LEAST32_MAX): Likewise.
15820         [C99-based standards] (INT_LEAST64_MIN): Likewise.
15821         [C99-based standards] (INT_LEAST64_MAX): Likewise.
15822         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
15823         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
15824         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
15825         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
15826         [C99-based standards] (INT_FAST8_MIN): Likewise.
15827         [C99-based standards] (INT_FAST8_MAX): Likewise.
15828         [C99-based standards] (INT_FAST16_MIN): Likewise.
15829         [C99-based standards] (INT_FAST16_MAX): Likewise.
15830         [C99-based standards] (INT_FAST32_MIN): Likewise.
15831         [C99-based standards] (INT_FAST32_MAX): Likewise.
15832         [C99-based standards] (INT_FAST64_MIN): Likewise.
15833         [C99-based standards] (INT_FAST64_MAX): Likewise.
15834         [C99-based standards] (UINT_FAST8_MAX): Likewise.
15835         [C99-based standards] (UINT_FAST16_MAX): Likewise.
15836         [C99-based standards] (UINT_FAST32_MAX): Likewise.
15837         [C99-based standards] (UINT_FAST64_MAX): Likewise.
15838         [C99-based standards] (INTPTR_MIN): Likewise.
15839         [C99-based standards] (INTPTR_MAX): Likewise.
15840         [C99-based standards] (UINTPTR_MAX): Likewise.
15841         [C99-based standards] (INTMAX_MIN): Likewise.
15842         [C99-based standards] (INTMAX_MAX): Likewise.
15843         [C99-based standards] (UINTMAX_MAX): Likewise.
15844         [C99-based standards] (PTRDIFF_MIN): Likewise.
15845         [C99-based standards] (PTRDIFF_MAX): Likewise.
15846         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
15847         [C99-based standards] (SIZE_MAX): Likewise.
15848         [C99-based standards] (WCHAR_MAX): Likewise.
15849         [C99-based standards] (WINT_MAX): Likewise.
15850         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
15851         constraint on value.
15852         [C99-based standards] (WCHAR_MIN): Likewise.
15853         [C99-based standards] (WINT_MIN): Likewise.
15854         [C99-based standards] (*_t): Allow.
15855         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
15856         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
15857         Include math.h-data and complex.h-data.  Remove all expectations
15858         of math.h and complex.h contents.
15859         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
15860         at end of line.
15861         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
15862         (struct tm): Expect tag.
15863         [C99-based-standards] (wcstof): Expect function.
15864         [C99-based-standards] (wcstold): Likewise.
15865         [C99-based-standards] (wcstoll): Likewise.
15866         [C99-based-standards] (wcstoull): Likewise.
15867         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
15868         macro-int-constant.  Specify type.
15869         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
15870         constraint on value.
15871         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
15872         Specify type.
15873         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
15874         Specify value.
15875         [ISO C standards]: Do not allow headers.
15876         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
15877         wcs[abcdefghijklmnopqrstuvwxyz]*.
15878         [ISO C standards] (*_t): Do not allow.
15879         * conform/data/wctype.h-data [C99-based standards] (iswblank):
15880         Expect function.
15881         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
15882         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
15883         Specify type.
15884         [ISO C standards]: Do not allow headers.
15885         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
15886         is[abcdefghijklmnopqrstuvwxyz]*.
15887         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
15888         to[abcdefghijklmnopqrstuvwxyz]*.
15889         [ISO C standards] (*_t): Do not allow.
15890         * conform/data/stdalign.h-data: New file.
15891         * conform/data/stdbool.h-data: Likewise.
15892         * conform/data/stdnoreturn.h-data: Likewise.
15893
15894 2012-11-07  Roland McGrath  <roland@hack.frob.com>
15895
15896         [BZ #14815]
15897         * manual/filesys.texi (Directory Entries): Typo fix.
15898         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
15899
15900 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15901
15902         * elf/elf.h (EM_AARCH64): New macro.
15903         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
15904         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
15905         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
15906         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
15907         (R_AARCH64_TLSDESC): Likewise.
15908         (NT_ARM_TLS): Likewise.
15909         (NT_ARM_HW_BREAK): Likewise.
15910         (NT_ARM_HW_WATCH): Likewise.
15911
15912 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15913
15914         [BZ #14811]
15915         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
15916         (__ieee754_powl): Saturate nonzero exponents with absolute value
15917         below 0x1p-79 to +/- 0x1p-79.
15918         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
15919         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
15920         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
15921         nonzero exponents with absolute value below 0x1p-32 to +/-
15922         0x1p-32.
15923         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
15924         (__ieee754_powl): Saturate nonzero exponents with absolute value
15925         below 0x1p-79 to +/- 0x1p-79.
15926         * math/libm-test.inc (pow_test): Add more tests.
15927
15928 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15929
15930         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
15931         _dl_s390_cap_flags with kernel. Increase string length.
15932         (_dl_s390_platforms): Add z196 and zEC12.
15933
15934 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
15935
15936         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
15937         Change XOPEN21K to XOPEN2K.
15938
15939 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15940
15941         * string/memmove.c: Use memcpy when possible.
15942
15943 2012-11-06  Andreas Jaeger  <aj@suse.de>
15944
15945         * po/eo.po: Update from translation team.
15946
15947 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
15948
15949         [BZ #14793]
15950         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
15951         exponent and small x and y exponents, scale x or y up.  Increase
15952         by 2 the exponent used in scaling up.
15953         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15954         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15955         * math/libm-test.inc (fma_test): Add more tests.
15956         (fma_test_towardzero): Likewise.
15957         (fma_test_downward): Likewise.
15958         (fma_test_upward): Likewise.
15959
15960 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
15961
15962         [BZ #14805]
15963         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
15964         fenv_t *.
15965
15966         [BZ #14801]
15967         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
15968         namespace for names of struct fields.
15969         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
15970         fenv_t fields.
15971         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
15972         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
15973
15974 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15975
15976         [BZ #3665]
15977         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
15978
15979 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
15980
15981         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
15982         PTR_DEMANGLE.
15983
15984         [BZ #5246]
15985         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
15986         PTR_DEMANGLE.
15987
15988 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
15989
15990         [BZ #14797]
15991         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
15992         definitely overflow as x * y not x * y + z.
15993         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15994         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15995         * math/libm-test.inc (fma_test): Add more tests.
15996         (fma_test_towardzero): Likewise.
15997         (fma_test_downward): Likewise.
15998         (fma_test_upward): Likewise.
15999
16000 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
16001
16002         [BZ #157]
16003
16004         * include/stub-tag.h: Remove file.
16005         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
16006         '#include' of it.
16007         * manual/maint.texi (Porting): Don't reference it.
16008         * Makerules ($(objpfx)stubs): Likewise.
16009         * dirent/closedir.c: Don't include <stub-tag.h>.
16010         * dirent/dirfd.c: Likewise.
16011         * dirent/fdopendir.c: Likewise.
16012         * dirent/getdents.c: Likewise.
16013         * dirent/getdents64.c: Likewise.
16014         * dirent/opendir.c: Likewise.
16015         * dirent/readdir.c: Likewise.
16016         * dirent/readdir64.c: Likewise.
16017         * dirent/readdir64_r.c: Likewise.
16018         * dirent/readdir_r.c: Likewise.
16019         * dirent/rewinddir.c: Likewise.
16020         * dirent/seekdir.c: Likewise.
16021         * dirent/telldir.c: Likewise.
16022         * gmon/profil.c: Likewise.
16023         * grp/setgroups.c: Likewise.
16024         * inet/if_index.c: Likewise.
16025         * io/access.c: Likewise.
16026         * io/chdir.c: Likewise.
16027         * io/chmod.c: Likewise.
16028         * io/chown.c: Likewise.
16029         * io/close.c: Likewise.
16030         * io/dup.c: Likewise.
16031         * io/dup2.c: Likewise.
16032         * io/dup3.c: Likewise.
16033         * io/euidaccess.c: Likewise.
16034         * io/faccessat.c: Likewise.
16035         * io/fchdir.c: Likewise.
16036         * io/fchmod.c: Likewise.
16037         * io/fchmodat.c: Likewise.
16038         * io/fchown.c: Likewise.
16039         * io/fchownat.c: Likewise.
16040         * io/fcntl.c: Likewise.
16041         * io/flock.c: Likewise.
16042         * io/fstatfs.c: Likewise.
16043         * io/fstatfs64.c: Likewise.
16044         * io/fstatvfs.c: Likewise.
16045         * io/fstatvfs64.c: Likewise.
16046         * io/futimens.c: Likewise.
16047         * io/fxstat.c: Likewise.
16048         * io/fxstat64.c: Likewise.
16049         * io/fxstatat.c: Likewise.
16050         * io/fxstatat64.c: Likewise.
16051         * io/getcwd.c: Likewise.
16052         * io/isatty.c: Likewise.
16053         * io/lchmod.c: Likewise.
16054         * io/lchown.c: Likewise.
16055         * io/link.c: Likewise.
16056         * io/linkat.c: Likewise.
16057         * io/lseek.c: Likewise.
16058         * io/lseek64.c: Likewise.
16059         * io/lxstat64.c: Likewise.
16060         * io/mkdir.c: Likewise.
16061         * io/mkdirat.c: Likewise.
16062         * io/mkfifo.c: Likewise.
16063         * io/mkfifoat.c: Likewise.
16064         * io/open.c: Likewise.
16065         * io/open64.c: Likewise.
16066         * io/openat.c: Likewise.
16067         * io/openat64.c: Likewise.
16068         * io/pipe.c: Likewise.
16069         * io/pipe2.c: Likewise.
16070         * io/poll.c: Likewise.
16071         * io/posix_fadvise.c: Likewise.
16072         * io/posix_fadvise64.c: Likewise.
16073         * io/posix_fallocate.c: Likewise.
16074         * io/posix_fallocate64.c: Likewise.
16075         * io/read.c: Likewise.
16076         * io/readlink.c: Likewise.
16077         * io/readlinkat.c: Likewise.
16078         * io/rmdir.c: Likewise.
16079         * io/sendfile.c: Likewise.
16080         * io/sendfile64.c: Likewise.
16081         * io/statfs.c: Likewise.
16082         * io/statfs64.c: Likewise.
16083         * io/statvfs.c: Likewise.
16084         * io/statvfs64.c: Likewise.
16085         * io/symlink.c: Likewise.
16086         * io/symlinkat.c: Likewise.
16087         * io/ttyname.c: Likewise.
16088         * io/ttyname_r.c: Likewise.
16089         * io/umask.c: Likewise.
16090         * io/unlink.c: Likewise.
16091         * io/unlinkat.c: Likewise.
16092         * io/utime.c: Likewise.
16093         * io/utimensat.c: Likewise.
16094         * io/write.c: Likewise.
16095         * io/xmknod.c: Likewise.
16096         * io/xmknodat.c: Likewise.
16097         * io/xstat.c: Likewise.
16098         * io/xstat64.c: Likewise.
16099         * login/getpt.c: Likewise.
16100         * login/grantpt.c: Likewise.
16101         * login/unlockpt.c: Likewise.
16102         * math/e_acoshl.c: Likewise.
16103         * math/e_acosl.c: Likewise.
16104         * math/e_asinl.c: Likewise.
16105         * math/e_atan2l.c: Likewise.
16106         * math/e_atanhl.c: Likewise.
16107         * math/e_coshl.c: Likewise.
16108         * math/e_expl.c: Likewise.
16109         * math/e_fmodl.c: Likewise.
16110         * math/e_gammal_r.c: Likewise.
16111         * math/e_hypotl.c: Likewise.
16112         * math/e_j0l.c: Likewise.
16113         * math/e_j1l.c: Likewise.
16114         * math/e_jnl.c: Likewise.
16115         * math/e_lgammal_r.c: Likewise.
16116         * math/e_log10l.c: Likewise.
16117         * math/e_log2l.c: Likewise.
16118         * math/e_logl.c: Likewise.
16119         * math/e_powl.c: Likewise.
16120         * math/e_rem_pio2l.c: Likewise.
16121         * math/e_sinhl.c: Likewise.
16122         * math/e_sqrtl.c: Likewise.
16123         * math/fclrexcpt.c: Likewise.
16124         * math/fedisblxcpt.c: Likewise.
16125         * math/feenablxcpt.c: Likewise.
16126         * math/fegetenv.c: Likewise.
16127         * math/fegetexcept.c: Likewise.
16128         * math/fegetround.c: Likewise.
16129         * math/feholdexcpt.c: Likewise.
16130         * math/fesetenv.c: Likewise.
16131         * math/fesetround.c: Likewise.
16132         * math/feupdateenv.c: Likewise.
16133         * math/fgetexcptflg.c: Likewise.
16134         * math/fraiseexcpt.c: Likewise.
16135         * math/fsetexcptflg.c: Likewise.
16136         * math/ftestexcept.c: Likewise.
16137         * math/k_cosl.c: Likewise.
16138         * math/k_rem_pio2l.c: Likewise.
16139         * math/k_sinl.c: Likewise.
16140         * math/k_tanl.c: Likewise.
16141         * math/s_asinhl.c: Likewise.
16142         * math/s_atanl.c: Likewise.
16143         * math/s_cbrtl.c: Likewise.
16144         * math/s_erfl.c: Likewise.
16145         * math/s_expm1l.c: Likewise.
16146         * math/s_log1pl.c: Likewise.
16147         * math/s_tanhl.c: Likewise.
16148         * misc/acct.c: Likewise.
16149         * misc/brk.c: Likewise.
16150         * misc/chflags.c: Likewise.
16151         * misc/chroot.c: Likewise.
16152         * misc/fchflags.c: Likewise.
16153         * misc/fgetxattr.c: Likewise.
16154         * misc/flistxattr.c: Likewise.
16155         * misc/fremovexattr.c: Likewise.
16156         * misc/fsetxattr.c: Likewise.
16157         * misc/fsync.c: Likewise.
16158         * misc/ftruncate.c: Likewise.
16159         * misc/futimes.c: Likewise.
16160         * misc/futimesat.c: Likewise.
16161         * misc/getdomain.c: Likewise.
16162         * misc/getdtsz.c: Likewise.
16163         * misc/gethostid.c: Likewise.
16164         * misc/gethostname.c: Likewise.
16165         * misc/getloadavg.c: Likewise.
16166         * misc/getpagesize.c: Likewise.
16167         * misc/getsysstats.c: Likewise.
16168         * misc/getxattr.c: Likewise.
16169         * misc/gtty.c: Likewise.
16170         * misc/ioctl.c: Likewise.
16171         * misc/lgetxattr.c: Likewise.
16172         * misc/listxattr.c: Likewise.
16173         * misc/llistxattr.c: Likewise.
16174         * misc/lremovexattr.c: Likewise.
16175         * misc/lsetxattr.c: Likewise.
16176         * misc/lutimes.c: Likewise.
16177         * misc/madvise.c: Likewise.
16178         * misc/mincore.c: Likewise.
16179         * misc/mlock.c: Likewise.
16180         * misc/mlockall.c: Likewise.
16181         * misc/mmap.c: Likewise.
16182         * misc/mprotect.c: Likewise.
16183         * misc/msync.c: Likewise.
16184         * misc/munlock.c: Likewise.
16185         * misc/munlockall.c: Likewise.
16186         * misc/munmap.c: Likewise.
16187         * misc/preadv.c: Likewise.
16188         * misc/preadv64.c: Likewise.
16189         * misc/ptrace.c: Likewise.
16190         * misc/pwritev.c: Likewise.
16191         * misc/pwritev64.c: Likewise.
16192         * misc/readv.c: Likewise.
16193         * misc/reboot.c: Likewise.
16194         * misc/remap_file_pages.c: Likewise.
16195         * misc/removexattr.c: Likewise.
16196         * misc/revoke.c: Likewise.
16197         * misc/select.c: Likewise.
16198         * misc/setdomain.c: Likewise.
16199         * misc/setegid.c: Likewise.
16200         * misc/seteuid.c: Likewise.
16201         * misc/sethostid.c: Likewise.
16202         * misc/sethostname.c: Likewise.
16203         * misc/setregid.c: Likewise.
16204         * misc/setreuid.c: Likewise.
16205         * misc/setxattr.c: Likewise.
16206         * misc/sstk.c: Likewise.
16207         * misc/stty.c: Likewise.
16208         * misc/swapoff.c: Likewise.
16209         * misc/swapon.c: Likewise.
16210         * misc/sync.c: Likewise.
16211         * misc/syncfs.c: Likewise.
16212         * misc/syscall.c: Likewise.
16213         * misc/truncate.c: Likewise.
16214         * misc/ualarm.c: Likewise.
16215         * misc/usleep.c: Likewise.
16216         * misc/ustat.c: Likewise.
16217         * misc/utimes.c: Likewise.
16218         * misc/vhangup.c: Likewise.
16219         * misc/writev.c: Likewise.
16220         * posix/_exit.c: Likewise.
16221         * posix/alarm.c: Likewise.
16222         * posix/execve.c: Likewise.
16223         * posix/fexecve.c: Likewise.
16224         * posix/fork.c: Likewise.
16225         * posix/fpathconf.c: Likewise.
16226         * posix/getaddrinfo.c: Likewise.
16227         * posix/getegid.c: Likewise.
16228         * posix/geteuid.c: Likewise.
16229         * posix/getgid.c: Likewise.
16230         * posix/getgroups.c: Likewise.
16231         * posix/getlogin.c: Likewise.
16232         * posix/getlogin_r.c: Likewise.
16233         * posix/getpgid.c: Likewise.
16234         * posix/getpid.c: Likewise.
16235         * posix/getppid.c: Likewise.
16236         * posix/getresgid.c: Likewise.
16237         * posix/getresuid.c: Likewise.
16238         * posix/getsid.c: Likewise.
16239         * posix/getuid.c: Likewise.
16240         * posix/glob64.c: Likewise.
16241         * posix/nanosleep.c: Likewise.
16242         * posix/pathconf.c: Likewise.
16243         * posix/pause.c: Likewise.
16244         * posix/posix_madvise.c: Likewise.
16245         * posix/pread.c: Likewise.
16246         * posix/pread64.c: Likewise.
16247         * posix/pwrite.c: Likewise.
16248         * posix/pwrite64.c: Likewise.
16249         * posix/sched_getaffinity.c: Likewise.
16250         * posix/sched_getp.c: Likewise.
16251         * posix/sched_gets.c: Likewise.
16252         * posix/sched_primax.c: Likewise.
16253         * posix/sched_primin.c: Likewise.
16254         * posix/sched_rr_gi.c: Likewise.
16255         * posix/sched_setaffinity.c: Likewise.
16256         * posix/sched_setp.c: Likewise.
16257         * posix/sched_sets.c: Likewise.
16258         * posix/sched_yield.c: Likewise.
16259         * posix/setgid.c: Likewise.
16260         * posix/setlogin.c: Likewise.
16261         * posix/setpgid.c: Likewise.
16262         * posix/setresgid.c: Likewise.
16263         * posix/setresuid.c: Likewise.
16264         * posix/setsid.c: Likewise.
16265         * posix/setuid.c: Likewise.
16266         * posix/sleep.c: Likewise.
16267         * posix/spawni.c: Likewise.
16268         * posix/sysconf.c: Likewise.
16269         * posix/times.c: Likewise.
16270         * posix/wait.c: Likewise.
16271         * posix/wait3.c: Likewise.
16272         * posix/wait4.c: Likewise.
16273         * posix/waitpid.c: Likewise.
16274         * resolv/gai_sigqueue.c: Likewise.
16275         * resource/getpriority.c: Likewise.
16276         * resource/getrlimit.c: Likewise.
16277         * resource/getrusage.c: Likewise.
16278         * resource/nice.c: Likewise.
16279         * resource/setpriority.c: Likewise.
16280         * resource/setrlimit.c: Likewise.
16281         * resource/ulimit.c: Likewise.
16282         * rt/aio_cancel.c: Likewise.
16283         * rt/aio_fsync.c: Likewise.
16284         * rt/aio_read.c: Likewise.
16285         * rt/aio_sigqueue.c: Likewise.
16286         * rt/aio_suspend.c: Likewise.
16287         * rt/aio_write.c: Likewise.
16288         * rt/clock_getres.c: Likewise.
16289         * rt/clock_gettime.c: Likewise.
16290         * rt/clock_nanosleep.c: Likewise.
16291         * rt/clock_settime.c: Likewise.
16292         * rt/lio_listio.c: Likewise.
16293         * rt/mq_close.c: Likewise.
16294         * rt/mq_getattr.c: Likewise.
16295         * rt/mq_notify.c: Likewise.
16296         * rt/mq_open.c: Likewise.
16297         * rt/mq_receive.c: Likewise.
16298         * rt/mq_send.c: Likewise.
16299         * rt/mq_setattr.c: Likewise.
16300         * rt/mq_timedreceive.c: Likewise.
16301         * rt/mq_timedsend.c: Likewise.
16302         * rt/mq_unlink.c: Likewise.
16303         * rt/shm_open.c: Likewise.
16304         * rt/shm_unlink.c: Likewise.
16305         * rt/timer_create.c: Likewise.
16306         * rt/timer_delete.c: Likewise.
16307         * rt/timer_getoverr.c: Likewise.
16308         * rt/timer_gettime.c: Likewise.
16309         * rt/timer_settime.c: Likewise.
16310         * setjmp/__longjmp.c: Likewise.
16311         * setjmp/setjmp.c: Likewise.
16312         * signal/kill.c: Likewise.
16313         * signal/killpg.c: Likewise.
16314         * signal/raise.c: Likewise.
16315         * signal/sigaction.c: Likewise.
16316         * signal/sigaltstack.c: Likewise.
16317         * signal/sigblock.c: Likewise.
16318         * signal/sigignore.c: Likewise.
16319         * signal/sigintr.c: Likewise.
16320         * signal/signal.c: Likewise.
16321         * signal/sigpause.c: Likewise.
16322         * signal/sigpending.c: Likewise.
16323         * signal/sigqueue.c: Likewise.
16324         * signal/sigreturn.c: Likewise.
16325         * signal/sigset.c: Likewise.
16326         * signal/sigsetmask.c: Likewise.
16327         * signal/sigstack.c: Likewise.
16328         * signal/sigsuspend.c: Likewise.
16329         * signal/sigtimedwait.c: Likewise.
16330         * signal/sigvec.c: Likewise.
16331         * signal/sigwait.c: Likewise.
16332         * signal/sigwaitinfo.c: Likewise.
16333         * signal/sysv_signal.c: Likewise.
16334         * socket/accept.c: Likewise.
16335         * socket/accept4.c: Likewise.
16336         * socket/bind.c: Likewise.
16337         * socket/connect.c: Likewise.
16338         * socket/getpeername.c: Likewise.
16339         * socket/getsockname.c: Likewise.
16340         * socket/getsockopt.c: Likewise.
16341         * socket/isfdtype.c: Likewise.
16342         * socket/listen.c: Likewise.
16343         * socket/recv.c: Likewise.
16344         * socket/recvfrom.c: Likewise.
16345         * socket/recvmsg.c: Likewise.
16346         * socket/send.c: Likewise.
16347         * socket/sendmsg.c: Likewise.
16348         * socket/sendto.c: Likewise.
16349         * socket/setsockopt.c: Likewise.
16350         * socket/shutdown.c: Likewise.
16351         * socket/sockatmark.c: Likewise.
16352         * socket/socket.c: Likewise.
16353         * socket/socketpair.c: Likewise.
16354         * stdio-common/ctermid.c: Likewise.
16355         * stdio-common/cuserid.c: Likewise.
16356         * stdio-common/remove.c: Likewise.
16357         * stdio-common/rename.c: Likewise.
16358         * stdio-common/renameat.c: Likewise.
16359         * stdio-common/tempname.c: Likewise.
16360         * stdlib/getcontext.c: Likewise.
16361         * stdlib/makecontext.c: Likewise.
16362         * stdlib/setcontext.c: Likewise.
16363         * stdlib/swapcontext.c: Likewise.
16364         * stdlib/system.c: Likewise.
16365         * streams/fattach.c: Likewise.
16366         * streams/fdetach.c: Likewise.
16367         * streams/getmsg.c: Likewise.
16368         * streams/getpmsg.c: Likewise.
16369         * streams/putmsg.c: Likewise.
16370         * streams/putpmsg.c: Likewise.
16371         * sysdeps/unix/bsd/getpt.c: Likewise.
16372         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
16373         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
16374         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
16376         Likewise.
16377         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
16378         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
16379         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
16380         * sysvipc/msgctl.c: Likewise.
16381         * sysvipc/msgget.c: Likewise.
16382         * sysvipc/msgrcv.c: Likewise.
16383         * sysvipc/msgsnd.c: Likewise.
16384         * sysvipc/semctl.c: Likewise.
16385         * sysvipc/semget.c: Likewise.
16386         * sysvipc/semop.c: Likewise.
16387         * sysvipc/semtimedop.c: Likewise.
16388         * sysvipc/shmat.c: Likewise.
16389         * sysvipc/shmctl.c: Likewise.
16390         * sysvipc/shmdt.c: Likewise.
16391         * sysvipc/shmget.c: Likewise.
16392         * termios/tcdrain.c: Likewise.
16393         * termios/tcflow.c: Likewise.
16394         * termios/tcflush.c: Likewise.
16395         * termios/tcgetattr.c: Likewise.
16396         * termios/tcgetpgrp.c: Likewise.
16397         * termios/tcsendbrk.c: Likewise.
16398         * termios/tcsetattr.c: Likewise.
16399         * termios/tcsetpgrp.c: Likewise.
16400         * time/adjtime.c: Likewise.
16401         * time/clock.c: Likewise.
16402         * time/getitimer.c: Likewise.
16403         * time/gettimeofday.c: Likewise.
16404         * time/setitimer.c: Likewise.
16405         * time/settimeofday.c: Likewise.
16406         * time/stime.c: Likewise.
16407         * time/time.c: Likewise.
16408
16409 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
16410
16411         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
16412         /usr/old/bin.
16413
16414         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
16415         instead of spaces.
16416         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
16417
16418 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
16419
16420         [BZ #14796]
16421         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
16422         FE_TONEAREST before applying Dekker multiplication and Knuth
16423         addition.  Clear inexact exceptions and check for exact zero
16424         results afterwards.
16425         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16426         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16427         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16428         * math/libm-test.inc (fma_test): Add more tests.
16429         (fma_test_towardzero): Likewise.
16430         (fma_test_downward): Likewise.
16431         (fma_test_upward): Likewise.
16432         * sysdeps/generic/math_private.h (default_libc_fesetround): New
16433         function.
16434         (libc_fesetround): New macro.
16435         (libc_fesetroundf): Likewise.
16436         (libc_fesetroundl): Likewise.
16437         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
16438         function.
16439         (libc_fesetround_387): Likewise.
16440         (libc_fesetroundf): New macro.
16441         (libc_fesetround): Likewise.
16442         (libc_fesetroundl): Likewise.
16443         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
16444         function.
16445         (libc_fesetroundf): New macro.
16446         (libc_fesetround): Likewise.
16447         (libc_fesetroundl): Likewise.
16448         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
16449         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
16450         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
16451         libm_hidden_ver.
16452         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
16453         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
16454         libm_hidden_def.
16455         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
16456         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
16457         libm_hidden_ver.
16458         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
16459         libm_hidden_def.
16460
16461         [BZ #3439]
16462         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
16463         integer constant usable in #if and use that to give value to enum
16464         constant.
16465         (FE_DIVBYZERO): Likewise.
16466         (FE_UNDERFLOW): Likewise.
16467         (FE_OVERFLOW): Likewise.
16468         (FE_INVALID): Likewise.
16469         (FE_INVALID_SNAN): Likewise.
16470         (FE_INVALID_ISI): Likewise.
16471         (FE_INVALID_IDI): Likewise.
16472         (FE_INVALID_ZDZ): Likewise.
16473         (FE_INVALID_IMZ): Likewise.
16474         (FE_INVALID_COMPARE): Likewise.
16475         (FE_INVALID_SOFTWARE): Likewise.
16476         (FE_INVALID_SQRT): Likewise.
16477         (FE_INVALID_INTEGER_CONVERSION): Likewise.
16478         (FE_TONEAREST): Likewise.
16479         (FE_TOWARDZERO): Likewise.
16480         (FE_UPWARD): Likewise.
16481         (FE_DOWNWARD): Likewise.
16482         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
16483         (FE_DIVBYZERO): Likewise.
16484         (FE_OVERFLOW): Likewise.
16485         (FE_UNDERFLOW): Likewise.
16486         (FE_INEXACT): Likewise.
16487         (FE_TONEAREST): Likewise.
16488         (FE_DOWNWARD): Likewise.
16489         (FE_UPWARD): Likewise.
16490         (FE_TOWARDZERO): Likewise.
16491         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
16492         (FE_UNDERFLOW): Likewise.
16493         (FE_OVERFLOW): Likewise.
16494         (FE_DIVBYZERO): Likewise.
16495         (FE_INVALID): Likewise.
16496         (FE_TONEAREST): Likewise.
16497         (FE_TOWARDZERO): Likewise.
16498         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
16499         (FE_OVERFLOW): Likewise.
16500         (FE_UNDERFLOW): Likewise.
16501         (FE_DIVBYZERO): Likewise.
16502         (FE_INEXACT): Likewise.
16503         (FE_TONEAREST): Likewise.
16504         (FE_TOWARDZERO): Likewise.
16505         (FE_UPWARD): Likewise.
16506         (FE_DOWNWARD): Likewise.
16507         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
16508         (FE_DIVBYZERO): Likewise.
16509         (FE_OVERFLOW): Likewise.
16510         (FE_UNDERFLOW): Likewise.
16511         (FE_INEXACT): Likewise.
16512         (FE_TONEAREST): Likewise.
16513         (FE_DOWNWARD): Likewise.
16514         (FE_UPWARD): Likewise.
16515         (FE_TOWARDZERO): Likewise.
16516
16517 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
16518
16519         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
16520
16521 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
16522
16523         * scripts/cross-test-ssh.sh (command): Use newlines to separate
16524         commands.  Quote $PWD.
16525         (blacklist_exports): Don't use remove_newlines.  Replace "declare
16526         -x" by "export".
16527         (remove_newlines): Remove.
16528
16529 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
16530
16531         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
16532         * stdlib/stdlib.h (atof): Moved to ...
16533         * include/bits/stdlib-float.h: Here.  New file.
16534         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
16535         * stdlib/bits/stdlib-float.h: New file.
16536         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
16537         -mno-sse -mno-mmx.
16538         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
16539         <xmmintrin.h>.
16540
16541 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
16542
16543         * conform/conformtest.pl (@headers): Add fenv.h.
16544         * conform/data/fenv.h-data: New file.
16545         * include/fenv.h [_ISOMAC]: Disable all contents of file except
16546         include of <math/fenv.h>.
16547
16548         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
16549         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
16550         && !UNIX98].  Enables tests for XOPEN2K8.
16551         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
16552         POSIX2008]: Likewise.
16553
16554         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
16555         (struct rusage): Do not expect type or its members.
16556
16557         [BZ #3439]
16558         * math/math.h (FP_NAN): Define macro to integer constant usable in
16559         #if and use that to give value to enum constant.
16560         (FP_INFINITE): Likewise.
16561         (FP_ZERO): Likewise.
16562         (FP_SUBNORMAL): Likewise.
16563         (FP_NORMAL): Likewise.
16564
16565 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
16566
16567         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
16568         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
16569         arguments.
16570
16571 2012-11-02  Roland McGrath  <roland@hack.frob.com>
16572
16573         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
16574         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
16575         autoconf-time if not.
16576         * configure.in: Remove AC_PREREQ.
16577
16578 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16579
16580         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
16581         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
16582         of the internal implementation.
16583
16584 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
16585
16586         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
16587         except include of <misc/sys/syslog.h>.
16588
16589 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16590
16591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
16592         function returns with a NULL context exit with zero.
16593
16594 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16595
16596         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
16597
16598 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
16599
16600         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
16601         (run_program_cmd): This.
16602         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
16603         (tst_langinfo): New variable.  Use it.
16604
16605 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
16606
16607         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
16608         floating point opcodes.
16609
16610 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16611
16612         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
16613         variable.
16614
16615         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
16616
16617         * sysdeps/mach/hurd/powerpc: Remove directory.
16618         * sysdeps/mach/powerpc: Likewise.
16619
16620 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16621
16622         * scripts/check-local-headers.sh: Ignore c++ headers.
16623
16624 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16625
16626         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
16627         __libc_cleanup_region_start argument.
16628
16629 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
16630
16631         [BZ #14784]
16632         [BZ #14785]
16633         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
16634         x * y using scaling, not as x * y + z.
16635         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16636         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16637         * math/libm-test.inc (fma_test): Add more tests.
16638         (fma_test_towardzero): Likewise.
16639         (fma_test_downward): Likewise.
16640         (fma_test_upward): Likewise.
16641
16642 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16643
16644         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
16645
16646 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
16647
16648         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
16649         New variable.
16650
16651 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
16652
16653         * rt/tst-shm.c (worker): Correct checking for mmap failure.
16654
16655 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
16656
16657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16658         Fix sort order.
16659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16660         Likewise.
16661
16662 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16663
16664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16665         Fix the order of the list for glibc 2.17.
16666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16667         Likewise.
16668
16669 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
16670
16671         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16672
16673 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
16674
16675         [BZ #14610]
16676         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
16677         for low part of x being zero before using __atanl (y).
16678         * math/libm-test.inc (atan2_test): Add another test.
16679
16680         * manual/install.texi (Configuring and compiling): Document
16681         general use of test-wrapper and test-wrapper-env.
16682         * INSTALL: Regenerated.
16683
16684         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
16685         (__fma): Do not extract and scale down low bits on after-rounding
16686         systems when result rounded to normal precision would have normal
16687         exponent.
16688         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
16689         (__fmal): Do not extract and scale down low bits on after-rounding
16690         systems when result rounded to normal precision would have normal
16691         exponent.
16692         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
16693         (__fmal): Do not extract and scale down low bits on after-rounding
16694         systems when result rounded to normal precision would have normal
16695         exponent.
16696         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
16697         macro.
16698         (fma_test): Add more tests.
16699         (fma_test_towardzero): Likewise.
16700         (fma_test_downward): Likewise.
16701         (fma_test_upward): Likewise.
16702
16703 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
16704
16705         * sysdeps/i386/tininess.h: Renamed to ...
16706         * sysdeps/x86/tininess.h: This.
16707         * sysdeps/x86_64/tininess.h: Removed.
16708
16709 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
16710
16711         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
16712         input.  Use $(build-program-cmd).
16713         ($(objpfx)tst-array1-static.out): Likewise.
16714         ($(objpfx)tst-array2.out): Likewise.
16715         ($(objpfx)tst-array3.out): Likewise.
16716         ($(objpfx)tst-array4.out): Likewise.
16717         ($(objpfx)tst-array5.out): Likewise.
16718         ($(objpfx)tst-array5-static.out): Likewise.
16719
16720 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
16721
16722         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
16723         if defined.
16724
16725         * nss/nsswitch.h (nss_interface_function): Provide new
16726         macro for use with NSS functions.
16727         * grp/initgroups.c: Use new macro.
16728         * nss/getXXbyYY.c: Likewise.
16729         * nss/getXXbyYY_r.c: Likewise.
16730         * nss/getXXent.c: Likewise.
16731         * nss/getXXent_r.c: Likewise.
16732         * sysdeps/posix/getaddrinfo.c: Likewise.
16733
16734 2012-10-30  Andreas Jaeger  <aj@suse.de>
16735
16736         * po/ru.po: Update Russion translation from translation project.
16737
16738 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
16739
16740         [BZ #14152]
16741         [BZ #14783]
16742         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
16743         result and shift together with sticky bit instead of replicating
16744         round-to-nearest rounding.
16745         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
16746         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
16747         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
16748         missing underflow exceptions.
16749         (fma_test_towardzero): Add more tests.
16750         (fma_test_downward): Likewise.
16751         (fma_test_upward): Likewise.
16752
16753         [BZ #14047]
16754         * sysdeps/generic/tininess.h: New file.
16755         * sysdeps/i386/tininess.h: Likewise.
16756         * sysdeps/sh/tininess.h: Likewise.
16757         * sysdeps/x86_64/tininess.h: Likewise.
16758         * stdlib/tst-strtod-underflow.c: Likewise.
16759         * stdlib/tst-tininess.c: Likewise.
16760         * stdlib/strtod_l.c: Include <tininess.h>.
16761         (round_and_return): Do not set errno for exact underflow cases.
16762         Force an underflow exception when setting errno for underflow.
16763         Determine underflow based on rounding to normal precision if
16764         TININESS_AFTER_ROUNDING.
16765         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
16766         ERANGE for exact underflow cases.
16767         * stdlib/Makefile (tests): Add tst-tininess and
16768         tst-strtod-underflow.
16769         ($(objpfx)tst-tininess): Use $(link-libm).
16770         ($(objpfx)tst-strtod-underflow): Likewise.
16771
16772 2012-10-30  Andreas Jaeger  <aj@suse.de>
16773
16774         [BZ#14767]
16775         * elf/Makefile (tests): Remove conditional for have-initfini-array
16776         since this is now always required and the variable does not exist
16777         anymore.
16778         (tests-static): Likewise.
16779         (modules-names): Likewise.
16780
16781         * po/eo.po: Add Esperanto translation from translation project.
16782
16783         * elf/tst-array1.c (fini_array): Make writeable so that it can be
16784         merged with constructor/destructor.
16785         (init_array): Likewise.
16786         * elf/tst-array2dep.c (fini_array): Likewise.
16787         (init_array): Likewise.
16788
16789 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
16790
16791         * manual/message.texi: Delete @cartouche tags.
16792
16793 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
16794
16795         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
16796         EOPNOTSUPP.
16797         * sysdeps/mach/hurd/fsync.c: Likewise.
16798
16799         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
16800         [_POSIX_REALTIME_SIGNALS]: Change condition to
16801         [_POSIX_REALTIME_SIGNALS > 0].
16802
16803 2012-10-27  Andreas Jaeger  <aj@suse.de>
16804
16805         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
16806         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
16807         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
16808         [__WORDSIZE != 64]: Likewise.
16809
16810 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
16811
16812         *  iconvdata/tst-table.sh: Remove ${SHELL}.
16813         *  iconvdata/tst-tables.sh: Likewise.
16814
16815 2012-10-25  David S. Miller  <davem@davemloft.net>
16816
16817         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16818         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
16819         of strtoull.
16820
16821         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
16822         ifunc-impl-list.c
16823         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16824         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
16825         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
16826         file.
16827
16828 2012-10-25  Roland McGrath  <roland@hack.frob.com>
16829
16830         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16831         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
16832         __getdirentries.
16833
16834 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
16835             Jim Blandy  <jimb@codesourcery.com>
16836
16837         * scripts/cross-test-ssh.sh: New file.
16838         * manual/install.texi (Configuring and compiling): Document use of
16839         cross-test-ssh.sh.
16840         * INSTALL: Regenerated.
16841
16842 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
16843
16844         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
16845         EOPNOTSUPP.
16846
16847 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
16848
16849         * Makeconfig (run-program-prefix): Fix comment.
16850
16851 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
16852             Jim Blandy  <jimb@codesourcery.com>
16853
16854         * Makeconfig (test-wrapper): New variable,
16855         (test-wrapper-env): Likewise.
16856         [$(cross-compiling) = yes && $(test-wrapper) != ""]
16857         (run-built-tests): Define to yes.
16858         (run-program-prefix): Use $(test-wrapper).
16859         (built-program-cmd): Likewise.
16860         * Rules (make-test-out): Use $(test-wrapper-env) and
16861         $(host-built-program-cmd).
16862         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
16863         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
16864         tst-pathopt.sh.
16865         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
16866         $(test-wrapper-env) to tst-rtld-load-self.sh.
16867         ($(objpfx)order2.out): Use $(test-wrapper).
16868         ($(objpfx)tst-initorder.out): Likewise.
16869         ($(objpfx)tst-initorder2.out): Likewise.
16870         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
16871         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
16872         (test_wrapper_env): New variable.  Use it to run ld.so.
16873         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
16874         Use it to run ld.so.
16875         (test_wrapper_env): Likewise.
16876         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
16877         $(test-wrapper) to run-iconv-test.sh.
16878         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
16879         (ICONV): Use $test_wrapper.
16880         * posix/Makefile ($(objpfx)globtest.out): Pass
16881         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
16882         globtest.sh, not $(run-program-prefix).
16883         * posix/globtest.sh (run_via_rtld_prefix): New variable.
16884         (test_wrapper): Likewise.
16885         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
16886         set together with run_via_rtld_prefix.
16887         (run_program_prefix): Define in terms of test_wrapper and
16888         run_via_rtld_prefix.
16889
16890 2012-10-24  Roland McGrath  <roland@hack.frob.com>
16891
16892         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
16893         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
16894         Targets removed.
16895
16896         [BZ #14743]
16897         * include/time.h: Remove librt_hidden_proto (clock_gettime).
16898         Declare __clock_getres, __clock_gettime, __clock_settime,
16899         __clock_nanosleep, and __clock_getcpuclockid.
16900         * rt/clock_gettime.c: Define __clock_gettime as an alias.
16901         Remove librt_hidden_def (clock_gettime).
16902         * sysdeps/unix/clock_gettime.c: Likewise.
16903         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
16904         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
16905         * rt/clock_getres.c: Define __clock_getres as an alias.
16906         * sysdeps/posix/clock_getres.c: Likewise.
16907         * rt/clock_settime.c: Define __clock_settime as an alias.
16908         * sysdeps/unix/clock_settime.c: Likewise.
16909         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
16910         * sysdeps/unix/clock_nanosleep.c: Likewise.
16911         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
16912         * rt/clock-compat.c: New file.
16913         * rt/Makefile (librt-routines): Add clock-compat and move
16914         $(clock-routines) to ...
16915         (routines): ... here, new variable.
16916         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
16917         Don't add get_clockfreq here.
16918         * rt/Versions (libc: GLIBC_2.17): New version set.
16919         Add clock_* symbols here.
16920         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
16921         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
16922         (GLIBC_2.17): Add clock_* symbols.
16923         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
16924         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
16925         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
16926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
16927         Likewise.
16928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
16929         Likewise.
16930         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
16931         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
16932         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
16933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
16934         * NEWS: Mention the move.
16935
16936         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
16937         Use __open, __read, __close rather than their public counterparts.
16938         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
16939         (__get_clockfreq_via_cpuinfo): Likewise.
16940         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
16941         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
16942
16943         * config.h.in (HAVE_IFUNC): New #undef.
16944         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
16945         was successful.
16946         * configure: Regenerated.
16947
16948 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
16949
16950         * configure.in: Move READELF check to start of file.
16951         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
16952         libc_cv_asm_gnu_indirect_function in the process.
16953         * configure: Regenerated.
16954
16955 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
16956
16957         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
16958         send the output to /dev/null.
16959         (libc_cv_cc_with_libunwind): Likewise.
16960         (libc_cv_as_noexecstack): Likewise.
16961         * configure: Regenerate.
16962
16963 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
16964
16965         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
16966
16967         * posix/globtest.sh (TMPDIR): Do not set.
16968         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
16969         (testout): Likewise.
16970
16971 2012-10-24  Andreas Jaeger  <aj@suse.de>
16972
16973         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
16974         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
16975         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
16976         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
16977         posix_fadvise64, posix_fallocate64.
16978
16979         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
16980         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
16981         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
16982         Likewise.
16983         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
16984         Likewise.
16985         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
16986
16987         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
16988         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
16989         <bits/fcntl-linux.h>.
16990         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
16991
16992         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
16993         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
16994         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
16995         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
16996         [__WORDSIZE != 64]: Likewise.
16997
16998 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
16999
17000         * Makeconfig (run-built-tests): New variable.
17001         * Rules [$(cross-compiling) = yes]: Change condition to
17002         [$(run-built-tests) = no].
17003         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
17004         to [$(run-built-tests) = yes].
17005         * elf/Makefile [$(cross-compiling) = no]: Likewise
17006         * grp/Makefile [$(cross-compiling) = no]: Likewise.
17007         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
17008         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
17009         * intl/Makefile [$(cross-compiling) = no]: Likewise.
17010         * io/Makefile [$(cross-compiling) = no]: Likewise.
17011         * libio/Makefile [$(cross-compiling) = no]: Likewise.
17012         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
17013         * misc/Makefile [$(cross-compiling) = no]: Likewise.
17014         * posix/Makefile [$(cross-compiling) = no]: Likewise.
17015         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
17016         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
17017         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
17018         * string/Makefile [$(cross-compiling) = no]: Likewise.
17019
17020         * posix/Makefile ($(objpfx)globtest.out): Pass
17021         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
17022         $(rtld-installed-name).
17023         * posix/globtest.sh (elf_objpfx): Remove variable.
17024         (rtld_installed_name): Likewise.
17025         (library_path): Likewise.
17026         (run_program_prefix): New variable.  Use for running globtest
17027         binary.
17028
17029 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
17030             Joseph Myers  <joseph@codesourcery.com>
17031
17032         * Makeconfig (host-built-program-cmd): New variable.
17033         * elf/Makefile (tst-stackguard1-ARGS): Use
17034         $(host-built-program-cmd).
17035         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
17036         (tst-spawn-ARGS): Likewise.
17037         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
17038
17039 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
17040             Jim Blandy  <jimb@codesourcery.com>
17041
17042         * Makeconfig (run-via-rtld-prefix): New variable.
17043         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
17044         (built-program-cmd): Likewise.
17045
17046 2012-10-22  Andreas Jaeger  <aj@suse.de>
17047
17048         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
17049         __O_RSYNC if it exists, otherwise to O_SYNC.
17050
17051 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
17052             Joseph Myers  <joseph@codesourcery.com>
17053
17054         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
17055         /dev/null.
17056         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
17057         from /dev/null
17058         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
17059         /dev/null.
17060
17061 2012-10-22  Andreas Jaeger  <aj@suse.de>
17062
17063         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
17064         Define always.
17065         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
17066
17067         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17068         bits/fcntl-linux.h.
17069
17070         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
17071         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
17072
17073         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
17074         to __O_LARGEFILE.
17075         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
17076         to __O_LARGEFILE.
17077
17078 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
17079             Joseph Myers  <joseph@codesourcery.com>
17080
17081         * config.make.in (NM): New variable.
17082
17083 2012-10-21  Andreas Jaeger  <aj@suse.de>
17084
17085         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
17086         definitions and declarations that are provided by
17087         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
17088
17089 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17090
17091         [BZ #14683]
17092         * elf/Makefile (tests-static): Add tst-leaks1-static.
17093         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
17094         ($(objpfx)tst-leaks1-static): New rule.
17095         ($(objpfx)tst-leaks1-static-mem): Likewise.
17096         (tst-leaks1-static-ENV): New macro.
17097         * elf/dl-open.c (dl_open_worker): Check the main application
17098         only if SHARED is defined.
17099         * elf/tst-leaks1-static.c: New file.
17100
17101 2012-10-20  Andreas Jaeger  <aj@suse.de>
17102
17103         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
17104         generic values for Linux.
17105         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
17106         and declarations that are provided by <bits/fcntl-linux.h> and
17107         include <bits/fcntl-linux.h>.
17108         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17109         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17110
17111 2012-10-20  Roland McGrath  <roland@hack.frob.com>
17112
17113         * io/fcntl.h: Move include of <bits/types.h> to the top and
17114         include it unconditionally.
17115
17116 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17117
17118         * wcsmbs/Makefile (tests-ifunc): New variable.
17119         (tests): Add $(tests-ifunc).
17120         * wcsmbs/test-wcschr-ifunc.c: New file.
17121         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
17122         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
17123         * wcsmbs/test-wcslen-ifunc.c: Likewise.
17124         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
17125         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
17126
17127         * string/Makefile (tests-ifunc): New variable.
17128         (tests): Add $(tests-ifunc).
17129         * string/test-memccpy.c (TEST_NAME): New macro.
17130         * string/test-memchr.c (TEST_NAME): Likewise.
17131         * string/test-memcmp.c (TEST_NAME): Likewise.
17132         * string/test-memcpy.c (TEST_NAME): Likewise.
17133         * string/test-memmem.c (TEST_NAME): Likewise.
17134         * string/test-memmove.c (TEST_NAME): Likewise.
17135         * string/test-memset.c (TEST_NAME): Likewise.
17136         * string/test-rawmemchr.c (TEST_NAME): Likewise.
17137         * string/test-stpcpy.c (TEST_NAME): Likewise.
17138         * string/test-stpncpy.c (TEST_NAME): Likewise.
17139         * string/test-strcasecmp.c (TEST_NAME): Likewise.
17140         * string/test-strcasestr.c (TEST_NAME): Likewise.
17141         * string/test-strcat.c (TEST_NAME): Likewise.
17142         * string/test-strchr.c (TEST_NAME): Likewise.
17143         * string/test-strcmp.c(TEST_NAME): Likewise.
17144         * string/test-strcpy.c (TEST_NAME): Likewise.
17145         * string/test-strcspn.c (TEST_NAME): Likewise.
17146         * string/test-strlen.c (TEST_NAME): Likewise.
17147         * string/test-strncasecmp.c (TEST_NAME): Likewise.
17148         * string/test-strncmp.c (TEST_NAME): Likewise.
17149         * string/test-strncpy.c (TEST_NAME): Likewise.
17150         * string/test-strnlen.c (TEST_NAME): Likewise.
17151         * string/test-strpbrk.c (TEST_NAME): Likewise.
17152         * string/test-strrchr.c (TEST_NAME): Likewise.
17153         * string/test-strspn.c (TEST_NAME): Likewise.
17154         * string/test-strstr.c (TEST_NAME): Likewise.
17155         * string/test-bcopy-ifunc.c: New file.
17156         * string/test-bzero-ifunc.c: Likewise.
17157         * string/test-memccpy-ifunc.c: Likewise.
17158         * string/test-memchr-ifunc.c: Likewise.
17159         * string/test-memcmp-ifunc.c: Likewise.
17160         * string/test-memcpy-ifunc.c: Likewise.
17161         * string/test-memmem-ifunc.c: Likewise.
17162         * string/test-memmove-ifunc.c: Likewise.
17163         * string/test-mempcpy-ifunc.c: Likewise.
17164         * string/test-memset-ifunc.c: Likewise.
17165         * string/test-rawmemchr-ifunc.c: Likewise.
17166         * string/test-stpcpy-ifunc.c: Likewise.
17167         * string/test-stpncpy-ifunc.c: Likewise.
17168         * string/test-strcasecmp-ifunc.c: Likewise.
17169         * string/test-strcasestr-ifunc.c: Likewise.
17170         * string/test-strcat-ifunc.c: Likewise.
17171         * string/test-strchr-ifunc.c: Likewise.
17172         * string/test-strchrnul-ifunc.c: Likewise.
17173         * string/test-strcmp-ifunc.c: Likewise.
17174         * string/test-strcpy-ifunc.c: Likewise.
17175         * string/test-strcspn-ifunc.c: Likewise.
17176         * string/test-strlen-ifunc.c: Likewise.
17177         * string/test-strncasecmp-ifunc.c: Likewise.
17178         * string/test-strncat-ifunc.c: Likewise.
17179         * string/test-strncmp-ifunc.c: Likewise.
17180         * string/test-strncpy-ifunc.c: Likewise.
17181         * string/test-strnlen-ifunc.c: Likewise.
17182         * string/test-strpbrk-ifunc.c: Likewise.
17183         * string/test-strrchr-ifunc.c: Likewise.
17184         * string/test-strspn-ifunc.c: Likewise.
17185         * string/test-strstr-ifunc.c: Likewise.
17186
17187         * debug/Makefile (tests-ifunc): New variable.
17188         (tests): Add $(tests-ifunc).
17189         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
17190         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
17191         * debug/test-stpcpy_chk-ifunc.c: New file.
17192         * debug/test-strcpy_chk-ifunc.c: Likewise.
17193
17194 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
17195
17196         [BZ #13601]
17197         * elf/dl-load.c (open_verify): Retry read if the entire ELF
17198         header is not read in.
17199
17200 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
17201
17202         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
17203         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
17204         directly.  Pass built executable to script as
17205         $(built-program-cmd).
17206         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
17207         $testprogram without using LD_LIBRARY_PATH and $ldso.
17208
17209         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
17210         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
17211         $(rtld-installed-name).
17212         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
17213         (rtld_installed_name): Likewise.
17214         (library_path): Likewise.
17215         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
17216         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
17217         $(run-program-prefix) to tst-tables.sh.
17218         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
17219         it to run tst-table-from and tst-table-to.
17220         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
17221         Pass it to tst-table.sh.
17222         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
17223         $(run-program-prefix) to tst-gettext.sh.
17224         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
17225         tst-translit.sh.
17226         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
17227         tst-gettext2.sh.
17228         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
17229         to run tst-gettext.
17230         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
17231         to run tst-gettext2.
17232         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
17233         to run tst-translit.
17234         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
17235         $(run-program-prefix) to tst-mtrace.sh.
17236         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
17237         to run tst-mtrace.
17238         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
17239         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
17240         $(rtld-installed-name).
17241         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
17242         (rtld_installed_name): Likewise.
17243         (run_program_prefix): New variable.  Use it to run wordexp-test.
17244
17245         * Makeconfig (ARCH): Remove all definitions.
17246         (machine): Likewise.
17247         [ARCH]: Remove conditional code.
17248         [!objdir]: Give error.
17249         [!objdir] (objpfx): Remove.
17250         [!objdir] (common-objpfx): Likewise.
17251         [!objdir] (common-objdir): Likewise.
17252         * configure.in (config_makefile): Remove.  Hardcode Makefile in
17253         AC_CONFIG_FILES call.
17254         * configure: Regenerated.
17255
17256         [BZ #13888]
17257         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
17258         or TMPDIR.
17259         (testout): Likewise.
17260
17261         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
17262         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
17263         $(rtld-installed-name).
17264         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
17265         (rtld_installed_name): Likwise.
17266         (runit): Remove function.
17267         (run_getconf): New variable,  Use it for running getconf binary.
17268
17269 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
17270
17271         [BZ #14716]
17272         * string/test-memmem.c (check_result): New function.
17273         (do_one_test): Use it.
17274         (check1): New function.
17275         (test_main): Use it.
17276
17277 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
17278
17279         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
17280
17281 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
17282
17283         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
17284         (_G_LSEEK64): Likewise.
17285         (_G_MMAP64): Likewise.
17286         (_G_FSTAT64): Likewise.
17287         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
17288         (_G_LSEEK64): Likewise.
17289         (_G_MMAP64): Likewise.
17290         (_G_FSTAT64): Likewise.
17291         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
17292         unconditional.  Call __mmap64 directly.
17293         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
17294         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
17295         __lseek64 directly.
17296         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
17297         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
17298         __mmap64 directly.
17299         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
17300         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17301         __lseek64 directly.
17302         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
17303         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
17304         __lseek64 directly.
17305         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
17306         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
17307         __lseek64 directly.
17308         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
17309         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
17310         __fxstat64 directly.
17311         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
17312         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
17313         unconditional.
17314         (freopen64) [!_G_OPEN64]: Remove conditional code.
17315         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
17316         unconditional.
17317         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
17318         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
17319         unconditional.
17320         (ftello64) [!_G_LSEEK64]: Remove conditional code.
17321         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
17322         unconditional.
17323         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17324         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
17325         unconditional.
17326         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
17327         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
17328         unconditional.
17329         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17330         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
17331         unconditional.
17332         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
17333         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
17334         unconditional.
17335         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
17336
17337 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17338
17339         [BZ #12140]
17340         * manual/memory.texi (Malloc Tunable Parameters): Add note
17341         about free list pointers overwriting some perturb bytes.
17342         Wording suggested by Roland McGrath.
17343
17344 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
17345
17346         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
17347         (lgamma_test): Likewise.
17348         (tgamma_test): Likewise.
17349
17350 2012-10-16  Florian Weimer  <fweimer@redhat.com>
17351
17352         [BZ #14700]
17353         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
17354         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
17355
17356 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
17357
17358         * NEWS: Mention BZ #14716.
17359         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
17360         when removing AVAILABLE1_USES_J macro.
17361
17362 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
17363
17364         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
17365         (__bswap_64): __uint64_t for unsigned 64-bit int.
17366
17367 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
17368
17369         * include/string.h (memmem): Declare libc hidden alias.
17370         * string/memmem.c (memmem): Define libc hidden alias.
17371         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
17372         __read, __close instead of open, read, close.
17373
17374 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
17375
17376         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
17377         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
17378         global and hidden.
17379         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
17380         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
17381         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
17382         Likewise.
17383         (__rawmemchr_sse2): Likewise.
17384         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
17385         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
17386         (__strchr_sse2): Likewise.
17387         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
17388         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
17389         (__strcasecmp_sse2): Likewise.
17390         (__strncasecmp_sse2): Likewise.
17391         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
17392         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
17393         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
17394         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
17395         (__strrchr_sse2): Likewise.
17396         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
17397         ifunc-impl-list.c.
17398         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
17399         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
17400         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
17401         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
17402         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
17403         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
17404         * sysdeps/x86_64/multiarch/memset.S: Likewise.
17405         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
17406         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
17407         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
17408         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
17409         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
17410         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
17411         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
17412         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
17413         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
17414         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
17415         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
17416         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
17417         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
17418         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
17419         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
17420         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
17421         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
17422         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
17423         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17424         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17425         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
17426         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
17427         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
17428
17429         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
17430         global and hidden.
17431         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
17432         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
17433         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
17434         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
17435         Likewise.
17436         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
17437         Likewise.
17438         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
17439         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
17440         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
17441         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
17442         ifunc-impl-list.c.
17443         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
17444         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
17445         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
17446         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
17447         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
17448         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
17449         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
17450         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
17451         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
17452         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
17453         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
17454         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
17455         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
17456         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
17457         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
17458         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
17459         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
17460         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
17461         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
17462         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
17463         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
17464         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
17465         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
17466         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
17467         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
17468         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
17469         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
17470         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
17471         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
17472         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
17473         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
17474         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
17475         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
17476         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
17477         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
17478         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
17479         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
17480         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
17481         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
17482         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
17483         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
17484
17485         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
17486         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
17487         * include/ifunc-impl-list.h: New file.
17488         * misc/ifunc-impl-list.c: Likewise.
17489         * misc/Makefile (routines): Add ifunc-impl-list.
17490         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
17491         * string/test-string.h: Include <ifunc-impl-list.h>.
17492         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
17493         impl_array): New variables.
17494         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
17495         are defined.
17496         (test_init): Call __libc_ifunc_impl_list to initialize
17497         func_list if TEST_IFUNC and TEST_NAME are defined.
17498
17499         * string/Makefile (strop-tests): Add bcopy and bzero.
17500         * string/test-bcopy.c: New file.
17501         * string/test-bzero.c: Likewise.
17502         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
17503         defined.
17504         * string/test-memset.c: Support bzero test if TEST_BZERO is
17505         defined.
17506         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
17507         __libc_memmove.
17508         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
17509         __libc_memset.
17510         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
17511         of memset.
17512
17513 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
17514
17515         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
17516         * configure: Regenerated.
17517
17518         * Makeconfig (+link-static-before-libc): Don't include
17519         $(link-static-libc).
17520
17521         * libio/libio.h (_IO_pos_t): Remove.
17522
17523 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17524
17525         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
17526         McGrath.
17527
17528 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17529
17530         * crypt/crypt-entry.c: Include fips-private.h.
17531         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
17532         * crypt/md5c-test.c (main): Tolerate disabled MD5.
17533         * sysdeps/unix/sysv/linux/fips-private.h: New file.
17534         * sysdeps/generic/fips-private.h: New file, dummy fallback.
17535
17536 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
17537
17538         * crypt/crypt-private.h: Include stdbool.h.
17539         (_ufc_setup_salt_r): Return bool.
17540         * crypt/crypt-entry.c: Include errno.h.
17541         (__crypt_r): Return NULL with EINVAL for bad salt.
17542         * crypt/crypt_util.c (bad_for_salt): New.
17543         (_ufc_setup_salt_r): Check that salt is long enough and within
17544         the specified alphabet.
17545         * crypt/badsalttest.c: New file.
17546         * crypt/Makefile (tests): Add it.
17547         ($(objpfx)badsalttest): New.
17548
17549 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
17550
17551         * NEWS: Add entry for BZ #14602.
17552
17553 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
17554
17555         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
17556         type-generic.
17557         * math/libm-test.inc: Update comment listing what functions and
17558         macros are tested.
17559         (isgreater_test): New function.
17560         (isgreaterequal_test): Likewise.
17561         (isless_test): Likewise.
17562         (islessequal_test): Likewise.
17563         (islessgreater_test): Likewise.
17564         (isunordered_test): Likewise.
17565         (main): Call the new functions.
17566
17567 2012-10-09  Roland McGrath  <roland@hack.frob.com>
17568
17569         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
17570         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
17571         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
17572         * sysdeps/i386/configure: Regenerated.
17573         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
17574         * sysdeps/mach/configure: Regenerated.
17575         * sysdeps/mach/hurd/configure: Regenerated.
17576         * sysdeps/powerpc/configure: Regenerated.
17577         * sysdeps/powerpc/powerpc32/configure: Regenerated.
17578         * sysdeps/powerpc/powerpc64/configure: Regenerated.
17579         * sysdeps/s390/s390-32/configure: Regenerated.
17580         * sysdeps/s390/s390-64/configure: Regenerated.
17581         * sysdeps/sh/configure: Regenerated.
17582         * sysdeps/sparc/configure: Regenerated.
17583         * sysdeps/unix/sysv/linux/configure: Regenerated.
17584         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
17585         * sysdeps/x86_64/configure: Regenerated.
17586
17587         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
17588         defined.  Don't check if MAP is NULL.
17589
17590 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
17591
17592         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
17593         (_G_stat64): Likewise.
17594         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
17595         (_G_stat64): Likewise.
17596         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
17597         instead of struct _G_stat64.
17598         * libio/fileops.c (mmap_remap_check): Likewise.
17599         (decide_maybe_mmap): Likewise.
17600         (_IO_new_file_seekoff): Likewise.
17601         (_IO_file_stat): Likewise.
17602         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
17603         _G_off64_t.
17604         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
17605         instead of struct _G_stat64.
17606         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17607
17608 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
17609
17610         [BZ #14602]
17611         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17612         Replace with ...
17613         (CHECK_EOL): New macro.
17614         (two_way_short_needle): Check beginning of haystack for EOL.  Use
17615         CHECK_EOL.
17616         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17617         Replace with CHECK_EOL.
17618         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
17619         Replace with CHECK_EOL.
17620
17621 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
17622
17623         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
17624         type-generic.
17625         * math/libm-test.inc: Update comment listing what functions and
17626         macros are tested.
17627         (finite_test): New function.
17628         (isinf_test): Likewise.
17629         (isnan_test): Likewise.
17630         (fpclassify_test): Test subnormal input.
17631         (isfinite_test): Likewise.
17632         (isnormal_test): Likewise.
17633         (main): Call the new functions.
17634
17635 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
17636
17637         [BZ #14660]
17638         * Makerules (%.dynsym): Force C locale when running
17639         $(OBJDUMP) --dynamic-syms.
17640
17641 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
17642
17643         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
17644         <stdint.h>.
17645
17646 2012-10-06  David S. Miller  <davem@davemloft.net>
17647
17648         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
17649         upper 32-bits of the length value in %o2 since we use branch-on-register
17650         tests which consider the entire 64-bit register.
17651
17652 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
17653
17654         * string/test-strstr.c (check2): Add a test for page boundary.
17655
17656 2012-10-05  David S. Miller  <davem@davemloft.net>
17657
17658         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
17659         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
17660         file.
17661         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
17662         sysdep_routines.
17663         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
17664         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
17665         and bzero when HWCAP_SPARC_CRYPTO is present.
17666
17667 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
17668
17669         [BZ #14602]
17670         * string/test-strstr.c (check2): New function.
17671         (test_main): Call check2.
17672
17673         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
17674         and bug-strchr1.
17675         * string/bug-strcasestr1.c (do_test): Moved to ...
17676         * string/test-strcasestr.c (check1): Here.  New function.
17677         (do_one_test): Break out result checking code into ...
17678         (check_result): This.  New function.
17679         (do_one_test): Call check_result.
17680         (test_main): Call check1.
17681         * string/bug-strchr1.c (do_test): Moved to ...
17682         * string/test-strchr.c (check1): Here.  New function.
17683         (do_one_test): Break out result checking code into ...
17684         (check_result): This.  New function.
17685         (do_one_test): Call check_result.
17686         (test_main): Call check1.
17687         * string/bug-strstr1.c (main): Moved to ...
17688         * string/test-strstr.c (check1): Here.  New function.
17689         (do_one_test): Break out result checking code into ...
17690         (check_result): This.  New function.
17691         (do_one_test): Call check_result.
17692         (test_main): Call check1.
17693         * string/bug-strcasestr1.c: Removed.
17694         * string/bug-strchr1.c: Likewise.
17695         * string/bug-strstr1.c: Likewise.
17696
17697         * elf/Makefile (dl-routines): Add hwcaps.
17698         * elf/dl-support.c (_dl_important_hwcaps): Removed.
17699         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
17700         (_dl_important_hwcaps): Moved to ...
17701         * elf/dl-hwcaps.c: Here.  New file.
17702         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
17703
17704         [BZ #14557]
17705         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
17706         if IS_IN_rtld isn't defined.
17707
17708         * elf/dl-support.c (_dl_sysinfo_map): New.
17709         Include "get-dynamic-info.h" and "setup-vdso.h".
17710         (_dl_non_dynamic_init): Call setup_vdso.
17711         * elf/dynamic-link.h: Don't include <assert.h>.
17712         (elf_get_dynamic_info): Moved to ...
17713         * elf/get-dynamic-info.h: Here.  New file.
17714         * elf/dynamic-link.h: Include "get-dynamic-info.h".
17715         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
17716         * elf/setup-vdso.h: Here.  New file.
17717         * elf/rtld.c: Include "setup-vdso.h".
17718         (dl_main): Call setup_vdso.
17719
17720 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
17721
17722         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
17723         creal in comment listing functions tested.  List finite, isinf,
17724         isnan, isless, islessequal, isgreater, isgreaterequal,
17725         islessgreater, isunordered, lgamma_r and pow10 as functions and
17726         macros not tested.  Mention which functions not tested are aliases
17727         for other functions.  Fix typo.  Note that signs of NaNs are not
17728         tested.
17729
17730         * scripts/config.guess: Update from config.git.
17731         * scripts/config.sub: Likewise.
17732
17733 2012-10-04  Roland McGrath  <roland@hack.frob.com>
17734
17735         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
17736         * misc/madvise.c (madvise): Renamed to __madvise.
17737         Make madvise a weak alias.
17738         * include/sys/mman.h: Declare __madvise.
17739         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
17740         * sysdeps/unix/syscalls.list
17741         (madvise): Make __madvise the strong name, and madvise a weak alias.
17742         * sysdeps/unix/sysv/linux/syscalls.list
17743         (madvise, mmap): Remove redundant entries.
17744         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
17745         * malloc/malloc.c (mtrim): Likewise.
17746         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
17747
17748 2012-10-03  Roland McGrath  <roland@hack.frob.com>
17749
17750         * sysdeps/mach/hurd/dl-cache.c: File removed.
17751         * config.h.in (USE_LDCONFIG): New #undef.
17752         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
17753         * configure: Regenerated.
17754         * elf/Makefile (dl-routines): Add dl-cache only under
17755         [$(use-ldconfig) = yes].
17756         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
17757         cache on [USE_LDCONFIG].
17758         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
17759         [USE_LDCONFIG].
17760         * elf/rtld.c (dl_main): Likewise.
17761
17762 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
17763
17764         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
17765         _SC_LEVEL4_CACHE_LINESIZE.
17766
17767 2012-10-03  Roland McGrath  <roland@hack.frob.com>
17768
17769         * sysdeps/unix/bsd/confstr.h: File removed.
17770
17771 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
17772
17773         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
17774         sys/sdt-config.h.
17775
17776 2012-10-02  Roland McGrath  <roland@hack.frob.com>
17777
17778         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
17779         Make 'mapoff' field ElfW(Off) rather than off_t.
17780
17781 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
17782
17783         * nscd/Makefile: Remove nscd-cflags and all its users.
17784         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
17785         (CFLAGS-nonlib): Add compiler flags for nscd modules.
17786
17787         [BZ #10631]
17788         * malloc.c (malloc_printerr): Clarify error message.
17789
17790 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
17791
17792         [BZ #14648]
17793         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17794         Set bit_FMA_Usable if FMA is supported.
17795         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
17796         macro.
17797         (bit_FMA4_Usable): Updated.
17798         (index_FMA_Usable): New macro.
17799         (CPUID_FMA): Likewise
17800         (HAS_FMA): Defined with bit_FMA_Usable.
17801
17802 2012-10-01  Roland McGrath  <roland@hack.frob.com>
17803
17804         * bits/types.h (__swblk_t): Type removed.
17805         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
17806         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
17807         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17808         (__SWBLK_T_TYPE): Likewise.
17809         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
17810         (__SWBLK_T_TYPE): Likewise.
17811         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17812         (__SWBLK_T_TYPE): Likewise.
17813         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17814         (__SWBLK_T_TYPE): Likewise.
17815
17816 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
17817             Honza Horak <hhorak@redhat.com>
17818
17819         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
17820         (xdr_mapname): Use YPMAXMAP as maxsize.
17821         (xdr_peername): Use YPMAXPEER as maxsize.
17822         (xdr_keydat): Use YPAXRECORD as maxsize.
17823         (xdr_valdat): Use YPMAXRECORD as maxsize.
17824
17825 2012-10-01  Roland McGrath  <roland@hack.frob.com>
17826
17827         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
17828
17829         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
17830         * csu/init-first.c: ... here.
17831         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
17832         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
17833         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
17834         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17835         * sysdeps/i386/init-first.c: File removed.
17836         * sysdeps/sh/init-first.c: File removed.
17837
17838 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
17839
17840         [BZ #14645]
17841         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
17842         if x * y might underflow to zero and z is zero.
17843         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
17844         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17845         * math/libm-test.inc (min_subnorm_value): New variable.
17846         (fma_test): Add more tests.
17847         (fma_test_towardzero): Likewise.
17848         (fma_test_downward): Likewise
17849         (fma_test_upward): Likewise.
17850         (initialize): Set min_subnorm_value.
17851
17852 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
17853
17854         [BZ #14638]
17855         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
17856         0 + 0.
17857         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
17858         mode for addition resulting in exact zero.
17859         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
17860         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
17861         exact 0 + 0.
17862         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17863         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
17864         * math/libm-test.inc (fma_test): Add more tests.
17865         (fma_test_towardzero): New function.
17866         (fma_test_downward): Likewise.
17867         (fma_test_upward): Likewise.
17868         (main): Call the new functions.
17869
17870 2012-09-28  David S. Miller  <davem@davemloft.net>
17871
17872         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
17873
17874 2012-09-28  Roland McGrath  <roland@hack.frob.com>
17875
17876         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
17877         instead of SIGALRM.
17878
17879         * sysdeps/gnu/_G_config.h: Moved to ...
17880         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
17881         * sysdeps/mach/hurd/_G_config.h: Moved to ...
17882         * sysdeps/generic/_G_config.h: ... here.
17883
17884         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
17885
17886         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
17887
17888         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
17889         Conditionalize target on [libnss_test1.so-version].
17890
17891         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
17892
17893         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
17894         (elfobjdir): Move out of conditionals.
17895
17896         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
17897         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
17898         (__nss_lookup_function): Conditionalize label remove_from_tree on
17899         [!DO_STATIC_NSS || SHARED], matching its only use.
17900
17901 2012-09-28  David S. Miller  <davem@davemloft.net>
17902
17903         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
17904         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
17905         file.
17906         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
17907         sysdep_routines.
17908         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
17909         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
17910         when HWCAP_SPARC_CRYPTO is present.
17911
17912 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17913
17914         * io/tst-mknodat.c: Create a FIFO instead of a socket.
17915
17916 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
17917
17918         [BZ #6530]
17919         * stdio-common/vfprintf.c (process_string_arg): Revert
17920         2000-07-22 change.
17921
17922 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
17923
17924         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
17925         for testcase.
17926         * stdio-common/tst-sprintf.c: Include <locale.h>
17927         (main): Test sprintf's handling of incomplete multibyte
17928         characters.
17929
17930 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
17931
17932         * elf/dl-runtime.c (VERSYMIDX): Removed.
17933         * elf/dl-version.c (VERSYMIDX): Likewise.
17934         * elf/do-rel.h (VERSYMIDX): Likewise.
17935         (VALIDX): Likewise.
17936         * elf/dynamic-link.h (VERSYMIDX): Likewise.
17937         * elf/rtld.c (VALIDX): Likewise.
17938         (ADDRIDX): Likewise.
17939         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
17940         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
17941         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
17942         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
17943         (VALIDX): Likewise.
17944         (ADDRIDX): Likewise.
17945
17946 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17947
17948         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
17949
17950 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
17951
17952         [BZ #11438]
17953         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
17954         to global scope.
17955         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
17956         addresses are in the same scope as 192.0.2/24.
17957         * posix/gai.conf: Document new scope table defaults.
17958
17959 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17960
17961         [BZ #5298]
17962         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
17963         for ftell.  Compute offsets from write pointers instead.
17964         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17965
17966 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
17967
17968         [BZ #14543]
17969         * libio/Makefile (tests): New test case tst-fseek.
17970         * libio/tst-fseek.c: New test case to verify that fseek/ftell
17971         combination works in wide mode.
17972         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
17973         state when the external buffer state changes.
17974
17975 2012-09-27  David S. Miller  <davem@davemloft.net>
17976
17977         [BZ #14376]
17978         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
17979         pass reloc->r_addend in as the 'high' argument to
17980         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
17981
17982         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17983
17984 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
17985
17986         * rt/tst-aio2.c: Include <pthread.h>.
17987         * rt/tst-aio3.c: Likewise.
17988
17989 2012-09-27  Steve Ellcey  <sellcey@mips.com>
17990
17991         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
17992
17993 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
17994
17995         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
17996         contents on [SHARED].
17997
17998 2012-09-26  Marek Polacek  <polacek@redhat.com>
17999
18000         [BZ #14530]
18001         [BZ #13741]
18002         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
18003         for C++ and GCC <4.3 as well as for non GCC compilers.
18004
18005 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18006
18007         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18008
18009 2012-09-25  Roland McGrath  <roland@hack.frob.com>
18010
18011         * Makefile.in (all, install): Declare with .PHONY.
18012         Reported by Michael Hope <michael.hope@linaro.org>.
18013
18014 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18015
18016         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
18017         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
18018         system header.
18019         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
18020         Likewise.
18021         (sydep_routines): Add the new and the internal functions.
18022         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
18023         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
18024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
18025         (GLIBC_2.17): Add the new function.
18026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18027         (GLIBC_2.17): Likewise.
18028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
18029         (GLIBC_2.17): Likewise.
18030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
18031         (GLIBC_2.17): Likewise.
18032         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
18033
18034 2012-09-25  Alan Modra  <amodra@gmail.com>
18035
18036         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
18037         Add release barrier before setting once_control to say
18038         initialisation is done.  Add hints on lwarx.  Use macro in
18039         place of isync.
18040         (clear_once_control): Add release barrier.
18041
18042 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18043
18044         [BZ #13629]
18045         * math/s_clog.c (__clog): Handle more values close to |z| = 1
18046         specially.
18047         * math/s_clog10.c (__clog10): Likewise.
18048         * math/s_clog10f.c (__clog10f): Likewise.
18049         * math/s_clog10l.c (__clog10l): Likewise.
18050         * math/s_clogf.c (__clogf): Likewise.
18051         * math/s_clogl.c (__clogl): Likewise.
18052         * math/Makefile (libm-calls): Add x2y2m1.
18053         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
18054         (__x2y2m1): Likewise.
18055         (__x2y2m1l): Likewise.
18056         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
18057         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
18058         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
18059         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
18060         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
18061         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
18062         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
18063         * sysdeps/i386/fpu/libm-test-ulps: Update.
18064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18065
18066         [BZ #14621]
18067         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
18068         int as type of variable DEPTH.
18069         (glob): Use size_t instead of int as type of variables NEWCOUNT
18070         and OLD_PATHC.
18071
18072 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18073
18074         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18075         Add s_sincosf-sse2.
18076         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
18077         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
18078         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
18079         macros for using routine as __sincosf_ia32.
18080         Use macro for function declaration and weak_alias.
18081         * sysdeps/i386/fpu/libm-test-ulps: Update.
18082
18083         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
18084         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18085
18086         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
18087         subnormal argument.
18088         * math/s_cexpf.c (__cexpf): Likewise.
18089         * math/s_csinf.c (__csinf): Likewise.
18090         * math/s_csinhf.c (__csinhf): Likewise.
18091         * math/s_ctanf.c (__ctanf): Likewise.
18092         * math/s_ctanhf.c (__ctanhf): Likewise.
18093         * math/s_ccosh.c (__ccoshf): Likewise.
18094         * math/s_cexp.c (__cexpl): Likewise.
18095         * math/s_csin.c (__csin): Likewise.
18096         * math/s_csinh.c (__csinh): Likewise.
18097         * math/s_ctan.c (__ctan): Likewise.
18098         * math/s_ctanh.c (ctanh): Likewise.
18099         * math/s_ccoshl.c (__ccoshl): Likewise.
18100         * math/s_cexpl.c (__cexpl): Likewise.
18101         * math/s_csinl.c (__csinl): Likewise.
18102         * math/s_csinhl.c (__csinhl): Likewise.
18103         * math/s_ctanl.c (__ctanl): Likewise.
18104         * math/s_ctanhl.c (__ctanhl): Likewise.
18105
18106 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
18107
18108         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
18109         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
18110         (_IO_off_t): Define to __off_t, not _G_off_t.
18111         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
18112         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
18113         (_IO_wint_t): Define to wint_t, not _G_wint_t.
18114         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
18115         type of __dummy and __dummy2 fields.
18116         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
18117         (_G_ssize_t): Likewise.
18118         (_G_off_t): Likewise.
18119         (_G_pid_t): Likewise.
18120         (_G_uid_t): Likewise.
18121         (_G_wchar_t): Likewise.
18122         (_G_wint_t): Likewise.
18123         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
18124         (_G_ssize_t): Likewise.
18125         (_G_off_t): Likewise.
18126         (_G_pid_t): Likewise.
18127         (_G_uid_t): Likewise.
18128         (_G_wchar_t): Likewise.
18129         (_G_wint_t): Likewise.
18130         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
18131         (_G_ssize_t): Likewise.
18132         (_G_off_t): Likewise.
18133         (_G_pid_t): Likewise.
18134         (_G_uid_t): Likewise.
18135         (_G_wchar_t): Likewise.
18136         (_G_wint_t): Likewise.
18137
18138 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18139
18140         * malloc/arena.c: Include malloc-sysdep.h.
18141         (shrink_heap): Use check_may_shrink_heap to decide if madvise
18142         is sufficient to shrink the heap or an unmap is needed.
18143         * sysdeps/generic/malloc-sysdep.h: New file.  Define
18144         new function check_may_shrink_heap.
18145         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
18146         new function check_may_shrink_heap.
18147
18148 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
18149
18150         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
18151         comments.
18152
18153 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
18154
18155         * catgets/test-gencat.sh: Add "set -e".
18156         * elf/tst-pathopt.sh: Likewise.
18157         * grp/tst_fgetgrent.sh: Likewise.
18158         * iconvdata/run-iconv-test.sh: Likewise.
18159         * intl/tst-gettext.sh: Likewise.
18160         * intl/tst-gettext2.sh: Likewise.
18161         * intl/tst-gettext4.sh: Likewise.
18162         * intl/tst-gettext6.sh: Likewise.
18163         * intl/tst-translit.sh: Likewise.
18164         * io/ftwtest-sh: Likewise.
18165         * libio/test-freopen.sh: Likewise.
18166         * malloc/tst-mtrace.sh: Likewise.
18167         * posix/globtest.sh: Likewise.
18168         * posix/tst-getconf.sh: Likewise.
18169         * posix/wordexp-tst.sh: Likewise.
18170         * stdio-common/tst-printf.sh: Likewise.
18171         * stdio-common/tst-unbputc.sh: Likewise.
18172         * stdlib/tst-fmtmsg.sh: Likewise.
18173         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18174         * catgets/Makefile: Do not specify -e option when running
18175         testsuite shell scripts.
18176         * elf/Makefile: Likewise.
18177         * grp/Makefile: Likewise.
18178         * iconvdata/Makefile: Likewise.
18179         * intl/Makefile: Likewise.
18180         * io/Makefile: Likewise.
18181         * libio/Makefile: Likewise.
18182         * malloc/Makefile: Likewise.
18183         * posix/Makefile: Likewise.
18184         * stdio-common/Makefile: Likewise.
18185         * stdlib/Makefile: Likewise.
18186         * sysdeps/x86_64/Makefile: Likewise.
18187
18188         * io/ftwtest-sh: Add copyright header.
18189         * posix/globtest.sh: Likewise.
18190         * posix/tst-getconf.sh: Likewise.
18191         * posix/wordexp-tst.sh: Likewise.
18192         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
18193
18194 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
18195
18196         [BZ #13679]
18197         * Makeconfig (+link): Defined as $(+link-static) if
18198         $(build-shared) isn't yes.
18199         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
18200         isn't yes.
18201         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
18202
18203         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
18204
18205         [BZ #14562]
18206         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
18207         new chunk size with MALLOC_ALIGN_MASK.
18208
18209 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
18210
18211         [BZ #5044]
18212         * stdio-common/printf_fphex.c: Include <stdbool.h> and
18213         <rounding-mode.h>.
18214         (__printf_fphex): Determine rounding using get_rounding_mode and
18215         round_away.
18216         * stdio-common/tst-printf-round.c (struct hex_test): New
18217         structure.
18218         (hex_tests): New variable.
18219         (test_hex_in_one_mode): New function.
18220         (do_test): Also run tests for hex float output.
18221
18222 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
18223
18224         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18225         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18226         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
18227         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
18228         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
18229         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
18230         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18231         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
18232
18233 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
18234
18235         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
18236         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
18237         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
18238         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
18239
18240 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
18241
18242         [BZ #14579]
18243         * elf/rtld.c (dl_main): Limit the check for self loading to normal
18244         mode only.
18245         * elf/tst-rtld-load-self.sh: New test.
18246         * elf/Makefile: Run it.
18247
18248 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
18249
18250         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
18251         (tst-writev-ENV): Remove.
18252         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
18253
18254 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
18255
18256         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
18257
18258 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
18259
18260         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
18261         unconditional.
18262         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
18263         Likewise.
18264         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
18265         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
18266         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
18267         Likewise.
18268
18269 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
18270
18271         [BZ #14587]
18272         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
18273         * config.make.in (have-cpp-asm-debuginfo): Removed.
18274         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
18275         * configure: Regenerated.
18276
18277 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
18278
18279         [BZ #5044]
18280         * stdio-common/printf_fp.c: Include <stdbool.h> and
18281         <rounding-mode.h>.
18282         (___printf_fp): Determine rounding using get_rounding_mode and
18283         round_away.
18284         * stdio-common/tst-printf-round.c: New file.
18285         * stdio-common/Makefile (tests): Add tst-printf-round.
18286         (link-libm): New variable.
18287         ($(objpfx)tst-printf-round): Depend in $(link-libm).
18288
18289 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
18290
18291         [BZ #14576]
18292         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
18293         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
18294         Likewise.
18295         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
18296         Likewise.
18297
18298 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
18299
18300         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
18301         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18302         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18303         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
18304
18305 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
18306
18307         [BZ #14518]
18308         * include/rounding-mode.h: New file.
18309         * sysdeps/generic/get-rounding-mode.h: Likewise.
18310         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
18311         * stdlib/strtod_l.c: Include <rounding-mode.h>.
18312         (MAX_VALUE): New macro.
18313         (MIN_VALUE): Likewise.
18314         (overflow_value): New function.
18315         (underflow_value): Likewise.
18316         (round_and_return): Use overflow_value and underflow_value to
18317         determine return values in overflow and underflow cases.  Use
18318         round_away to determine rounding depending on rounding mode.
18319         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
18320         determine return values in overflow and underflow cases.
18321         * stdlib/tst-strtod-round.c: Include <fenv.h>.
18322         (struct test_results): New structure.
18323         (struct test): Use struct test_results to store expected results
18324         for all rounding modes.
18325         (TEST): Include expected results for all rounding modes.
18326         (test_in_one_mode): New function.
18327         (do_test): Use test_in_one_mode to compute and check results.
18328         Check results for all rounding modes.
18329         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
18330         $(link-libm).
18331
18332 2012-12-09  Allan McRae  <allan@archlinux.org>
18333
18334         * sysdeps/i386/fpu/libm-test-ulps: Update
18335
18336 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
18337
18338         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
18339         (_G_int32_t): Likewise.
18340         (_G_uint16_t): Likewise.
18341         (_G_uint32_t): Likewise.
18342         (_G_HAVE_BOOL): Likewise.
18343         (_G_HAVE_ATEXIT): Likewise.
18344         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18345         (_G_HAVE_IO_FILE_OPEN): Likewise.
18346         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
18347         (_G_int32_t): Likewise.
18348         (_G_uint16_t): Likewise.
18349         (_G_uint32_t): Likewise.
18350         (_G_HAVE_BOOL): Likewise.
18351         (_G_HAVE_ATEXIT): Likewise.
18352         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18353         (_G_HAVE_IO_FILE_OPEN): Likewise.
18354         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
18355         (_G_int32_t): Likewise.
18356         (_G_uint16_t): Likewise.
18357         (_G_uint32_t): Likewise.
18358         (_G_HAVE_BOOL): Likewise.
18359         (_G_HAVE_ATEXIT): Likewise.
18360         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
18361         (_G_HAVE_IO_FILE_OPEN): Likewise.
18362
18363 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
18364
18365         * csu/libc-tls.c: Update copyright years.
18366
18367 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
18368
18369         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
18370         [!_G_USING_THUNKS]: Remove conditional code.
18371         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
18372         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
18373
18374         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
18375         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
18376         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18377         (_G_VTABLE_LABEL_PREFIX): Likewise.
18378         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18379         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18380         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18381         (_G_VTABLE_LABEL_PREFIX): Likewise.
18382         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
18383         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
18384         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
18385         (_G_VTABLE_LABEL_PREFIX): Likewise.
18386         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
18387
18388 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
18389
18390         * libio/Makefile: Include ../Makeconfig before tests.
18391         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
18392         only if $(build-shared) is yes.
18393
18394         * iconv/gconv_db.c: Update copyright years.
18395
18396 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18397
18398         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
18399         unwind info if defined PIC. Fix special cases description.
18400         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
18401
18402         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
18403         DP_HI_MASK entry.
18404         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
18405
18406 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
18407
18408         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
18409
18410         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
18411         is NULL.
18412
18413         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
18414         (LDLIBS-tst-chk4): This.
18415         (LDFLAGS-tst-chk5): Renamed to ...
18416         (LDLIBS-tst-chk5): This.
18417         (LDFLAGS-tst-chk6): Renamed to ...
18418         (LDLIBS-tst-chk6): This.
18419         (LDFLAGS-tst-lfschk4): Renamed to ...
18420         (LDLIBS-tst-lfschk4): This.
18421         (LDFLAGS-tst-lfschk5): Renamed to ...
18422         (LDLIBS-tst-lfschk5): This.
18423         (LDFLAGS-tst-lfschk6): Renamed to ...
18424         (LDLIBS-tst-lfschk6): This.
18425
18426         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
18427         on $(common-objpfx)soversions.mk.
18428
18429 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
18430
18431         [BZ #10014]
18432         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
18433         example host name.
18434
18435 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
18436
18437         * malloc/arena.c (arena_get_retry): New function that gets
18438         another arena for the caller to try its request on.
18439         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
18440         current arena cannot fulfill the request.
18441         (__libc_memalign): Likewise.
18442         (__libc_memalign): Likewise.
18443         (__libc_pvalloc): Likewise.
18444         (__libc_calloc): Likewise.
18445
18446 2012-09-05  John Tobey  <john.tobey@gmail.com>
18447
18448         [BZ #13542]
18449         * manual/arith.texi (Operations on Complex): Fix description
18450         of carg branch cut.
18451
18452 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
18453
18454         [BZ #10014]
18455         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
18456         host name.
18457
18458         [BZ #10038]
18459         * manual/memory.texi (Memory): Make order of menu items match
18460         order of sections.
18461
18462 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18463
18464         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
18465         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
18466         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
18467
18468 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18469
18470         * csu/libc-tls.c (static_dtv): Renamed to ...
18471         (_dl_static_dtv): This.  Make it global.
18472         (_dl_initial_dtv): Removed.
18473         (__libc_setup_tls): Updated.
18474         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
18475         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
18476         DL_INITIAL_DTV.
18477
18478 2012-09-06  Petr Machata  <pmachata@redhat.com>
18479
18480         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
18481         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
18482         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
18483         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
18484
18485 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18486
18487         [BZ #14545]
18488         * csu/libc-tls.c (_dl_initial_dtv): New variable.
18489         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
18490         freeing dtv[-1].
18491
18492 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
18493
18494         [BZ #14544]
18495         * Makeconfig (link-static-before-libc): Replace $(+prector)
18496         with $(+prectorT).
18497         (link-static-after-libc): Replace $(+postctor) with
18498         $(+postctorT).
18499         (link-bounded): Replace $(+prector)/$(+postctor) with
18500         $(+prectorT)/$(+postctorT).
18501         (+prectorT): New macro.
18502         (+postctorT): Likewise.
18503
18504 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
18505
18506         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
18507         (round_str): Handle values above the maximum for IBM long double
18508         as inexact.
18509         * stdlib/tst-strtod-round.c (tests): Regenerated.
18510
18511 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18512
18513         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
18514         assembler flag.
18515         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
18516         zarch_nohighgprs around the zarch optimized routines.
18517         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
18518         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
18519         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
18520         for zarch.
18521
18522 2012-09-05  David S. Miller  <davem@davemloft.net>
18523
18524         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18525
18526         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
18527         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
18528         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
18529         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18530         entries.
18531
18532 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18533
18534         * malloc/arena.c: Fold copyright years.
18535         * malloc/mcheck.c, malloc/memusage.c: Likewise.
18536
18537 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18538
18539         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
18540
18541 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18542
18543         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
18544
18545 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18546
18547         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
18548         change internal state upon failure.
18549
18550 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
18551
18552         * malloc/mcheck.c (mcheck_check_all): Fix typo.
18553         * malloc/memusage.c (mmap): Likewise.
18554         (mmap64, mremap): Likewise.  Adjust name in comment.
18555
18556 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
18557
18558         * libio/fileops.c: Fix typos in comments.
18559         * libio/oldfileops.c: Likewise.
18560         * libio/wfileops.c: Likewise.
18561
18562 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
18563
18564         [BZ #1349]
18565         * malloc/Makefile (tests): Add tst-malloc-usable test case.
18566         (tst-malloc-usable-ENV): Set environment for test case.
18567         * malloc/hooks.c (malloc_check_get_size): New function to get
18568         requested size.
18569         * malloc/malloc.c (musable): Use malloc_check_get_size.
18570         * malloc/tst-malloc-usable.c: New test case.
18571
18572 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18573
18574         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
18575
18576 2012-09-05  Allan McRae  <allan@archlinux.org>
18577
18578         [BZ #13966]
18579         * configure.in (CXX_SYSINCLUDES): Use compiler output to
18580         determine header location.
18581         * configure: Regenerated.
18582
18583 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18584
18585         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
18586         float format.
18587         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
18588         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
18589         format.
18590         (test): Regenerate.
18591
18592 2012-09-04  David S. Miller  <davem@davemloft.net>
18593
18594         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
18595         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
18596         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
18597
18598 2012-09-04  Florian Weimer  <fweimer@redhat.com>
18599
18600         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
18601         failures.
18602
18603         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
18604
18605 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
18606
18607         [BZ #9914]
18608         * libio/iogetdelim.c: Include <limits.h>.
18609         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
18610         + len + 1 would overflow.
18611
18612 2012-09-03  Andreas Jaeger  <aj@suse.de>
18613
18614         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18615         * sysdeps/i386/fpu/libm-test-ulps: Update.
18616
18617 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18618
18619         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
18620         Add s_sinf-sse2, s_conf-sse2.
18621
18622         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
18623         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
18624         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
18625         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
18626
18627         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
18628         for using routine as __sinf_ia32.
18629         Use macro for function declaration and weak_alias.
18630         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
18631         for using routine as __cosf_ia32.
18632         Use macro for function declaration and weak_alias.
18633
18634         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
18635         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
18636
18637         * sysdeps/x86_64/fpu/s_sinf.S: New file.
18638         * sysdeps/x86_64/fpu/s_cosf.S: New file.
18639         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18640
18641         * math/libm-test.inc (cos_test): Add more test cases.
18642         (sin_test): Likewise.
18643         (sincos_test): Likewise.
18644
18645 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18646
18647         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
18648         (IFUNC_RESOLVE): Make pointers to the specialized implementations
18649         hidden.
18650         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
18651
18652 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
18653
18654         [BZ #14538]
18655         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
18656         first element of the GOT.
18657         (elf_machine_load_address): Return the difference between
18658         the runtime address of _DYNAMIC and elf_machine_dynamic ().
18659
18660 2012-09-01  Allan McRae  <allan@archlinux.org>
18661
18662         [BZ #13412]
18663         * configure.in (AWK): Require gawk version 3.0 or later.
18664         * configure: Regenerated.
18665
18666 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
18667
18668         * sysdeps/unix/sysv/linux/kernel-features.h
18669         (__ASSUME_POSIX_CPU_TIMERS): Remove.
18670         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
18671         [__NR_clock_getres]: Make code unconditional.
18672         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
18673         (clock_getcpuclockid): Remove code left unreachable by removal of
18674         conditionals.
18675         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
18676         code unconditional.
18677         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
18678         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18679         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
18680         Make code unconditional.
18681         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
18682         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18683         * sysdeps/unix/sysv/linux/clock_settime.c
18684         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
18685         conditional code.
18686         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
18687         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
18688
18689 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
18690
18691         [BZ #14476]
18692         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
18693         scripts/test-installation.pl.
18694
18695         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
18696         and $ld_so_version if it is set.
18697
18698 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
18699
18700         [BZ #14516]
18701         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
18702         failure if reading from procfs failed.
18703         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
18704
18705 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
18706
18707         * sysdeps/unix/sysv/linux/kernel-features.h
18708         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
18709         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
18710         Remove conditional code.
18711         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18712         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
18713         Remove conditional code.
18714         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18715         * sysdeps/unix/sysv/linux/i386/fxstat.c
18716         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18717         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18718         * sysdeps/unix/sysv/linux/i386/fxstatat.c
18719         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18720         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18721         * sysdeps/unix/sysv/linux/i386/lxstat.c
18722         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
18723         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18724         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
18725         Remove conditional code.
18726         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18727         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
18728         Remove conditional code.
18729         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18730         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
18731         <kernel-features.h>.
18732         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
18733         Remove.
18734         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
18735         Remove conditional code.
18736         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
18737         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
18738         Remove conditional.
18739
18740 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
18741
18742         [BZ #5400]
18743         * NEWS: Add fixed bug number.
18744
18745 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
18746
18747         [BZ #14519]
18748         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
18749         underflowing exponent in case of negative sign.
18750         * stdlib/tst-strtod-round-data: Add more tests.
18751         * stdlib/tst-strtod-round.c (tests): Regenerated.
18752
18753         [BZ #3479]
18754         * stdlib/strtod_l.c (NDIG): Remove.
18755         (HEXNDIG): Likewise.
18756         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
18757         smallest representable value.
18758         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
18759         lie within an exact representation of 1/2 ulp of the result.
18760         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
18761         unconditionally.
18762         (TENS_P9_IDX): Define unconditionally.
18763         (TENS_P9_SIZE): Likewise.
18764         (TENS_P10_IDX): Likewise.
18765         (TENS_P10_SIZE): Likewise.
18766         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
18767         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
18768         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
18769         entries for 10^2^13 and 10^2^14.
18770         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
18771         (TENS_P13_IDX): Define.
18772         (TENS_P13_SIZE): Likewise.
18773         (TENS_P14_IDX): Likewise.
18774         (TENS_P14_SIZE): Likewise.
18775         (_fpioconst_pow10): Change array size to
18776         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
18777         unconditional.
18778         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
18779         1024]: Add entries for 10^2^13 and 10^2^14.
18780         [LAST_POW10 > _LAST_POW10]: Remove #error.
18781         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
18782         (_fpioconst_pow10): Change array size to
18783         FPIOCONST_POW10_ARRAY_SIZE.
18784         * stdlib/gen-fpioconst.c: New file.
18785         * stdlib/gen-tst-strtod-round.c: Likewise.
18786         * stdlib/tst-strtod-round-data: Likewise.
18787         * stdlib/tst-strtod-round.c: Likewise.
18788         * stdlib/Makefile (tests): Add tst-strtod-round.
18789
18790         [BZ #14459]
18791         * stdlib/strtod_l.c: Include <stdint.h>.
18792         (NDEBUG): Do not define.
18793         (round_and_return): Change EXPONENT parameter to type intmax_t.
18794         Rearrange calculations to avoid internal overflow possibilities.
18795         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
18796         Rearrange calculations to avoid internal overflow possibilities.
18797         Assert that number fits inside MPNSIZE limbs.
18798         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
18799         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
18800         calculations and add assertions to avoid internal overflow
18801         possibilities.  Add casts to avoid signed/unsigned operations.
18802         * stdlib/tst-strtod-overflow.c: New file.
18803         * stdlib/Makefile (tests): Add tst-strtod-overflow.
18804
18805 2012-08-25  Marek Polacek  <polacek@redhat.com>
18806
18807         * time/time.h: Fix some typos in comments.
18808
18809 2012-08-23  Roland McGrath  <roland@hack.frob.com>
18810
18811         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
18812         * posix/tst-rfc3484-2.c: Likewise.
18813         * posix/tst-rfc3484-3.c: Likewise.
18814
18815 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
18816
18817         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
18818         (EF_ARM_ABI_FLOAT_HARD): Likewise.
18819
18820 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
18821
18822         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
18823         #include of fxstatat64.c.
18824
18825 2012-08-22  Roland McGrath  <roland@hack.frob.com>
18826
18827         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
18828         * shadow/getspent_r.c: Likewise.
18829         * shadow/getspnam.c: Likewise.
18830         * shadow/getspnam_r.c: Likewise.
18831         * gshadow/getsgent.c: Likewise.
18832         * gshadow/getsgent_r.c: Likewise.
18833         * gshadow/getsgnam.c: Likewise.
18834         * gshadow/getsgnam_r.c: Likewise.
18835         * inet/getnetbyad.c: Likewise.
18836         * inet/getnetbyad_r.c: Likewise.
18837         * inet/getnetbynm.c: Likewise.
18838         * inet/getnetbynm_r.c: Likewise.
18839         * inet/getnetent.c: Likewise.
18840         * inet/getnetent_r.c: Likewise.
18841         * inet/getproto.c: Likewise.
18842         * inet/getproto_r.c: Likewise.
18843         * inet/getprtent.c: Likewise.
18844         * inet/getprtent_r.c: Likewise.
18845         * inet/getprtname.c: Likewise.
18846         * inet/getprtname_r.c: Likewise.
18847         * inet/getrpcbyname.c: Likewise.
18848         * inet/getrpcbyname_r.c: Likewise.
18849         * inet/getrpcbynumber.c: Likewise.
18850         * inet/getrpcbynumber_r.c: Likewise.
18851         * inet/getrpcent.c: Likewise.
18852         * inet/getrpcent_r.c: Likewise.
18853         * inet/getaliasent.c: Likewise.
18854         * inet/getaliasent_r.c: Likewise.
18855         * inet/getaliasname.c: Likewise.
18856         * inet/getaliasname_r.c: Likewise.
18857         * nscd/getgrgid_r.c: Likewise.
18858         * nscd/getgrnam_r.c: Likewise.
18859         * nscd/gethstbyad_r.c: Likewise.
18860         * nscd/gethstbynm3_r.c: Likewise.
18861         * nscd/getpwnam_r.c: Likewise.
18862         * nscd/getpwuid_r.c: Likewise.
18863         * nscd/getsrvbynm_r.c: Likewise.
18864         * nscd/getsrvbypt_r.c: Likewise.
18865         * nscd/gai.c: Likewise.
18866
18867         * configure.in (build_nscd): New substituted variable, set
18868         by --disable-build-nscd and defaults to $use_nscd.
18869         * configure: Regenerated.
18870         * config.make.in (build-nscd): New substituted variable.
18871         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
18872         Change conditional to require [$(build-nscd) = yes] as well.
18873         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
18874
18875         [BZ# 13696]
18876         * configure.in (use_nscd): New substituted variable, set by
18877         --disable-nscd.  If enabled, define USE_NSCD.
18878         * configure: Regenerated.
18879         * config.h.in: Add USE_NSCD.
18880         * config.make.in (use-nscd): New substituted variable.
18881         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18882         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
18883         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
18884         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
18885         (CFLAGS-getgrnam_r.c): Likewise.
18886         (CFLAGS-initgroups.c): Likewise.
18887         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
18888         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
18889         Variables removed.
18890         * inet/getnetgrent_r.c
18891         (nscd_setnetgrent): New function, broken out of ...
18892         (setnetgrent): ... here.  Call it.
18893         (innetgr): Conditionalize nscd bits on [USE_NSCD].
18894         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
18895         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
18896         * nscd/Makefile (routines, aux): Move definitions after include of
18897         Makeconfig.  Conditionalize on [$(use-nscd) != no].
18898         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
18899         Conditionalize on [USE_NSCD].
18900         (is_nscd, nscd_init_cb): Likewise.
18901         (nss_load_library): Conditionalize init callback on [USE_NSCD].
18902         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
18903         * nss/nss_db/db-init.c: Likewise.
18904         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
18905         [USE_NSCD].
18906         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
18907         (make_request): Use it.
18908         (cache_valid_p): New function.
18909         (__check_pf): Use it.
18910         * NEWS: Add item for --disable-nscd.
18911
18912 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
18913
18914         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
18915         to support sed >= 4.2.1-20-ga9bf076.
18916         * configure: Regenerated.
18917
18918 2012-08-22  Roland McGrath  <roland@hack.frob.com>
18919
18920         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
18921         Conditionalize whole body on [IREL].
18922
18923 2012-08-22  Jeff Law <law@redhat.com>
18924
18925         [BZ #14505]
18926         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
18927         if the family is PF_UNSPEC.
18928
18929 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
18930
18931         * Makerules (lib-version): Rename from V.
18932         (install-lib-nosubdir): Change V to lib-version.
18933
18934 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
18935
18936         [BZ #14252]
18937         * powerpc32/power6/wcschr.c: New file.
18938         * powerpc32/power6/wcscpy.c: New file.
18939         * powerpc32/power6/wcsrchr.c: New file.
18940         * powerpc64/power6/wcschr.c: New file.
18941         * powerpc64/power6/wcscpy.c: New file.
18942         * powerpc64/power6/wcsrchr.c: New file.
18943
18944 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
18945
18946         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
18947         (two_way_short_needle): Use it.
18948         * string/strstr.c (AVAILABLE1_USES_J): Define.
18949         * string/strcasestr.c: Likewise.
18950
18951         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
18952         array references.
18953         * string/strcasestr.c (TOLOWER): Make side-effect safe.
18954
18955         [BZ #11607]
18956         * NEWS: Add an entry.
18957         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
18958         define their defaults.
18959         (two_way_short_needle): Detect end-of-string on-the-fly.
18960         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
18961         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
18962         * string/bug-strcasestr1.c: New test.
18963         * string/Makefile: Run it.
18964
18965 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
18966
18967         [BZ #11607]
18968         * string/str-two-way.h (two_way_short_needle): Optimize matching of
18969         the first character.
18970
18971 2012-08-21  Roland McGrath  <roland@hack.frob.com>
18972
18973         * csu/elf-init.c (__libc_csu_irel): Function removed.
18974         * csu/libc-start.c (apply_irel): New function.
18975         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
18976
18977 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
18978
18979         * sysdeps/unix/sysv/linux/kernel-features.h
18980         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
18981         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
18982         <kernel-features.h>.
18983         [__NR_fadvise64_64]: Make code unconditional.
18984         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
18985         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
18986         !__NR_fadvise64_64)]: Likewise.
18987         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
18988         !__NR_fadvise64_64))]: Likewise.
18989         [__NR_fadvise64]: Make code unconditional.
18990         [!__NR_fadvise64]: Remove conditional code.
18991         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
18992         <kernel-features.h>.
18993         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
18994         unconditional.
18995         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
18996         conditional code.
18997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
18998         not include <kernel-features.h>.
18999         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19000         unconditional.
19001         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19002         conditional code.
19003         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
19004         include <kernel-features.h>.
19005         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
19006         unconditional.
19007         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
19008         conditional code.
19009
19010 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
19011
19012         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
19013         slight instruction rearrangements per scrollpipe analysis.
19014         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
19015
19016 2012-08-20  Roland McGrath  <roland@hack.frob.com>
19017
19018         * manual/syslog.texi (syslog; vsyslog, closelog):
19019         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
19020         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
19021
19022         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
19023         DSOCAPS to match condition on defining it.
19024
19025 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
19026
19027         * sysdeps/unix/sysv/linux/kernel-features.h
19028         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
19029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
19030         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19031         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
19033         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19034         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
19036         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
19037         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
19038
19039         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
19040         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
19041
19042         * sysdeps/unix/sysv/linux/kernel-features.h
19043         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
19044         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
19045         unconditional.
19046         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19047         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
19048         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19049         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19050         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
19051         Make code unconditional.
19052         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19053         (__mmap64) [!__NR_mmap2]: Likewise.
19054         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
19055         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
19056         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19057         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
19058         [__NR_mmap2]: Make code unconditional.
19059         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
19060         (__mmap64) [!__NR_mmap2]: Likewise.
19061
19062 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19063
19064         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
19065
19066 2012-08-18  Andreas Jaeger  <aj@suse.de>
19067
19068         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
19069
19070 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19071
19072         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
19073         * include/unistd.h (__have_sock_cloexec): Likewise.
19074         (__have_pipe2): Likewise.
19075         (__have_dup3): Likewise.
19076
19077 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
19078
19079         [BZ #9685]
19080         * include/unistd.h (__have_pipe2): Change define into an extern int.
19081         (__have_dup3): Likewise.
19082         * socket/have_sock_cloexec.c: Include fcntl.h.
19083         (__have_pipe2): New variable.
19084         (__have_dup3): Likewise.
19085
19086 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
19087
19088         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
19089
19090 2012-08-17  Marek Polacek  <polacek@redhat.com>
19091
19092         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
19093         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
19094
19095 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19096
19097         * configure.in: Add AC_SUBST for sysheaders.
19098         * configure: Regenerated.
19099         * config.make.in (sysheaders): New substituted variable.
19100
19101         * sysdeps/unix/mkfifo.c: Moved ...
19102         * sysdeps/posix/mkfifo.c: ... here.
19103         * sysdeps/unix/mkfifoat.c: Moved ...
19104         * sysdeps/posix/mkfifoat.c: ... here.
19105
19106         * sysdeps/unix/utime.c: Moved ...
19107         * sysdeps/posix/utime.c: ... here.
19108
19109         * sysdeps/unix/time.c: Moved ...
19110         * sysdeps/posix/time.c: ... here.
19111         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
19112         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
19113
19114         * sysdeps/unix/nice.c: Moved ...
19115         * sysdeps/posix/nice.c: ... here.
19116
19117         * sysdeps/unix/alarm.c: Moved ...
19118         * sysdeps/posix/alarm.c: ... here.
19119
19120         * intl/Makefile ($(codeset_mo)): Depend on the input file.
19121
19122 2012-08-17  Jeff Law <law@redhat.com>
19123
19124         * intl/Makefile (codeset_mo): New variable.
19125         ($(codeset_mo)): New target.
19126         (tst-codeset.out): Depend on that.  Remove explicit rule.
19127         (tst-gettext3.out, tst-gettext5.out): Likewise.
19128         (LOCPATH-ENV, tst-codeset-ENV): New variables.
19129         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
19130         * intl/tst-codeset.sh: Remove.
19131         * intl/tst-gettext3.sh: Likewise.
19132         * intl/tst-gettext5.sh: Likewise.
19133
19134 2012-08-17  Roland McGrath  <roland@hack.frob.com>
19135
19136         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
19137         * sysdeps/unix/syscalls.list: ... here.
19138
19139         * sysdeps/posix/getaddrinfo.c
19140         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
19141         (gaiconf_init, gaiconf_reload): Use them.
19142         [!_STATBUF_ST_NSEC]
19143         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
19144         Define using time_t rather than struct timespec.
19145
19146         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
19147         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
19148         Macros removed.
19149         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
19150         [!NO_THREADS].
19151         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
19152         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
19153         Likewise.
19154
19155         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
19156         __libc_cleanup_push argument.
19157
19158         * bits/param.h: New file.
19159         * misc/sys/param.h: New file.
19160         * include/sys/param.h: New file.
19161         * misc/Makefile (headers): Add bits/param.h.
19162         * sysdeps/generic/sys/param.h: File removed.
19163         * sysdeps/unix/sysv/linux/bits/param.h: New file.
19164         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
19165         * sysdeps/mach/hurd/bits/param.h: New file.
19166         * sysdeps/mach/hurd/sys/param.h: File removed.
19167
19168         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
19169         last change.
19170
19171         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
19172         [_IO_MTSAFE_IO].
19173         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
19174         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
19175         New macros.
19176
19177         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
19178         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
19179         rather than -D_IO_MTSAFE_IO conditionally.
19180         * stdio-common/Makefile (CPPFLAGS): Likewise.
19181         * wcsmbs/Makefile (CPPFLAGS): Likewise.
19182         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
19183         Use $(libio-mtsafe).
19184         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
19185         of -D_IO_MTSAFE_IO.
19186         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
19187         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
19188         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
19189         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
19190         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
19191         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
19192         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
19193         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
19194         (CFLAGS-fread_u_chk.c): Likewise.
19195         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
19196         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
19197         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
19198         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
19199         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
19200         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
19201         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
19202         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
19203         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
19204
19205         * libio/Makefile: Test [$(libc-reentrant) = yes]
19206         instead of [$(filter %REENTRANT, $(defines)) nonempty].
19207
19208         * Makeconfig
19209         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
19210         * sysdeps/pthread/configure: File removed.
19211         * sysdeps/pthread/Makeconfig: New file.
19212         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
19213         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
19214
19215 2012-08-16  Gary Benson  <gbenson@redhat.com>
19216
19217         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
19218         unmapping the first object in a namespace.
19219
19220 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19221
19222         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
19223         (__internal_setnetgrent): ... this.  Add internal_function to
19224         definition.  Add libc_hidden_def.
19225         (setnetgrent): Update caller.
19226         (internal_endnetgrent): Renamed to ...
19227         (__internal_endnetgrent): ... this.  Add internal_function to
19228         definition.  Add libc_hidden_def.
19229         (endnetgrent): Update caller.
19230         (internal_getnetgrent_r): Renamed to ...
19231         (__internal_getnetgrent_r): ... this.  Add internal_function to
19232         definition.  Add libc_hidden_def.
19233         (__getnetgrent_r): Update caller.
19234         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
19235
19236 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19237
19238         * stdlib/longlong.h: Update from GCC.
19239
19240 2012-08-16  Roland McGrath  <roland@hack.frob.com>
19241
19242         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
19243         on _QL, which is set by umul_ppmm but never used.
19244         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
19245         variables, which are set by GMP macros but never used.
19246         * stdio-common/_itowa.c (_itowa): Likewise.
19247         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
19248         * stdlib/mod_1.c (mpn_mod_1): Likewise.
19249
19250 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
19251
19252         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
19253         struct La_sh_regs is not constant.
19254         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
19255         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
19256         and struct La_sparc64_regs are not constant.
19257
19258 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
19259
19260         * sysdeps/unix/sysv/linux/kernel-features.h
19261         (__ASSUME_POSIX_TIMERS): Remove.
19262         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
19263         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19264         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
19265         Make code unconditional.
19266         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19267         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
19268         Make code unconditional.
19269         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19270         * sysdeps/unix/sysv/linux/clock_nanosleep.c
19271         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
19272         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19273         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
19274         Make code unconditional.
19275         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
19276         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
19277         (__libc_missing_posix_timers): Remove.
19278
19279 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19280
19281         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
19282         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
19283
19284         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
19285
19286         * elf/dl-sym.c: Include <stdlib.h>.
19287
19288         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
19289         constants, which avoids warnings in 32-bit builds.
19290
19291         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
19292         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
19293
19294         * misc/lseek.c: File moved to ...
19295         * io/lseek.c: ... here.
19296
19297         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
19298
19299         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
19300         shifting LEN more than 31 bits at once.
19301
19302 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19303
19304         [BZ #14195]
19305         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
19306         segmentation fault for a case of two empty input strings.
19307         * string/test-strncasecmp.c (check1): Renamed to...
19308         (bz12205): ...this.
19309         (bz14195): Add new testcase for two empty input strings and N > 0.
19310         (test_main): Call new testcase, adapt for renamed function.
19311
19312 2012-08-15  Andreas Jaeger  <aj@suse.de>
19313
19314         [BZ #14090]
19315         * crypt/md5test2.c: New test, based on test supplied by Serge
19316         Belyshev <belyshev@depni.sinp.msu.ru>.
19317         * crypt/Makefile (xtests): Add md5test-giant..
19318         * crypt/Makefile ($(objpfx)md5test-giant): Add.
19319
19320 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19321
19322         [BZ #14090]
19323         * crypt/md5.c (md5_process_block): Don't assume the buffer
19324         length is less than 2**32.
19325         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
19326         length is less than 2**64.
19327
19328 2012-08-15  Roland McGrath  <roland@hack.frob.com>
19329
19330         * string/str-two-way.h: Include <sys/param.h>.
19331         (MAX): Macro removed.
19332
19333         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
19334         Move #define and #undef of memmove to just before and after
19335         including <string.h>.
19336
19337         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
19338         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
19339         and after including <string.h>.  Move declarations of
19340         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
19341         to before #include "string/memmove.c".
19342
19343         * include/dirent.h: Declare __getdirentries.
19344
19345         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
19346         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
19347
19348 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
19349
19350         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
19351         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
19352         * sysdeps/i386/configure: Regenerated.
19353         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
19354         STABS_CURRENT_FILE, and STABS_FUN.
19355         (END): Remove call to STABS_FUN_END.
19356         (STABS_CURRENT_FILE1): Delete.
19357         (STABS_CURRENT_FILE): Likewise.
19358         (STABS_FUN): Likewise.
19359         (STABS_FUN_END): Likewise.
19360         (STABS_FUN2): Likewise.
19361         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
19362         * sysdeps/x86_64/configure: Regenerated.
19363
19364 2012-08-14  Roland McGrath  <roland@hack.frob.com>
19365
19366         * elf/dl-open.c: Include <atomic.h>.
19367         * elf/dl-lookup.c: Likewise.
19368
19369 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
19370
19371         * sysdeps/unix/sysv/linux/kernel-features.h
19372         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
19373         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
19374         unconditionally.
19375         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
19376         unconditionally.
19377         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
19378         condition on __ASSUME_CLONE_THREAD_FLAGS.
19379
19380 2012-08-14  Andreas Jaeger  <aj@suse.de>
19381
19382         * sysdeps/i386/fpu/libm-test-ulps: Update.
19383
19384 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
19385
19386         * include/atomic.h (atomic_exchange_and_add): Split into ...
19387         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
19388         New atomic macros.
19389
19390 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
19391
19392         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19393
19394 2012-08-13  Jeff Law <law@redhat.com>
19395
19396         * manual/stdio.texi (snprintf): Clarify handling of the trailing
19397         null byte in the output string.
19398
19399 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
19400
19401         * sysdeps/unix/sysv/linux/kernel-features.h
19402         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
19403         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
19404         (__ASSUME_ARG_MAX_STACK_BASED): Define.
19405         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
19406         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
19407         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
19408         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
19409
19410 2012-08-09  Jeff Law <law@redhat.com>
19411
19412         [BZ #13939]
19413         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
19414         When avoid_arena is set, don't retry in the that arena.  Pick the
19415         next one, whatever it might be.
19416         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
19417         (arena_lock): Pass in new parameter to arena_get2.
19418         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
19419         arena_get2.
19420         (__libc_malloc): Unify retrying after main arena failure with
19421         __libc_memalign version.
19422         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
19423
19424 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
19425
19426         [BZ #14166]
19427         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
19428         to __redirect_strstr.
19429         (__strstr_sse42): Use typeof __redirect_strstr.
19430         (__strstr_ia32): Likewise.
19431         (__libc_strstr): New prototype.
19432         (strstr): Renamed to ...
19433         (__libc_strstr): This.
19434         (strstr): New strong alias of __libc_strstr.
19435         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
19436         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
19437         __redirect_time.
19438         Include <time.h>.
19439         (__libc_time): New prototype.
19440         (time_ifunc): Replace time with __libc_time.
19441         (time): New strong alias and hidden definition of __libc_time.
19442         (__GI_time): Remove strong alias.
19443         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
19444         Include <stddef.h>.
19445         (memmove): Redefined to __redirect_memmove.
19446         (__memmove_sse2): Use typeof __redirect_memmove.
19447         (__memmove_ssse3): Likewise.
19448         (__memmove_ssse3_back): Likewise.
19449         (__libc_memmove): New prototype.
19450         (memmove): Renamed to ...
19451         (__libc_memmove): This.
19452         (memmove): New strong alias of __libc_memmove.
19453
19454 2012-08-08  Mark Salter  <msalter@redhat.com>
19455
19456         * elf/elf.h
19457         (R_MN10300_TLS_GD): Define.
19458         (R_MN10300_TLS_LD): Likewise.
19459         (R_MN10300_TLS_LDO): Likewise.
19460         (R_MN10300_TLS_GOTIE): Likewise.
19461         (R_MN10300_TLS_IE): Likewise.
19462         (R_MN10300_TLS_LE): Likewise.
19463         (R_MN10300_TLS_DTPMOD): Likewise.
19464         (R_MN10300_TLS_DTPOFF): Likewise.
19465         (R_MN10300_TLS_TPOFF): Likewise.
19466         (R_MN10300_SYM_DIFF): Likewise.
19467         (R_MN10300_ALIGN): Likewise.
19468         (R_MN10300_NUM): Update.
19469
19470 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
19471
19472         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
19473         Remove.
19474
19475 2012-08-08  Roland McGrath  <roland@hack.frob.com>
19476
19477         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
19478
19479         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
19480         sysdeps/unix -> sysdeps/posix move.
19481         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
19482
19483 2012-08-07      Allan McRae     <allan@archlinux.org>
19484
19485         [BZ #14303]
19486         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
19487         (SUNOS_CPP): Likewise.
19488         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
19489         not found.
19490         (open_input): Call CPP using execvp.
19491
19492 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
19493
19494         * sysdeps/unix/sysv/linux/kernel-features.h
19495         (__ASSUME_PROT_GROWSUPDOWN): Remove.
19496         (__ASSUME_NO_CLONE_DETACHED): Likewise.
19497         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
19498         (__ASSUME_WAITID_SYSCALL): Likewise.
19499         * sysdeps/unix/sysv/linux/dl-execstack.c
19500         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
19501         code unconditional.
19502         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
19503         conditional code.
19504         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
19505         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
19506         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
19507         code.
19508         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
19509         unconditional.
19510         [__ASSUME_WAITID_SYSCALL]: Likewise.
19511         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
19512
19513 2012-08-07  Roland McGrath  <roland@hack.frob.com>
19514
19515         * sysdeps/unix/closedir.c: Renamed to ...
19516         * sysdeps/posix/closedir.c: ... here.
19517         * sysdeps/unix/dirfd.c: Renamed to ...
19518         * sysdeps/posix/dirfd.c: ... here.
19519         * sysdeps/unix/dirstream.h: Renamed to ...
19520         * sysdeps/posix/dirstream.h: ... here.
19521         * sysdeps/unix/fdopendir.c: Renamed to ...
19522         * sysdeps/posix/fdopendir.c: ... here.
19523         * sysdeps/unix/opendir.c: Renamed to ...
19524         * sysdeps/posix/opendir.c: ... here.
19525         * sysdeps/unix/readdir.c: Renamed to ...
19526         * sysdeps/posix/readdir.c: ... here.
19527         * sysdeps/unix/readdir_r.c: Renamed to ...
19528         * sysdeps/posix/readdir_r.c: ... here.
19529         * sysdeps/unix/rewinddir.c: Renamed to ...
19530         * sysdeps/posix/rewinddir.c: ... here.
19531         * sysdeps/unix/seekdir.c: Renamed to ...
19532         * sysdeps/posix/seekdir.c: ... here.
19533         * sysdeps/unix/telldir.c: Renamed to ...
19534         * sysdeps/posix/telldir.c: ... here.
19535         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
19536         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
19537         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
19538         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
19539
19540         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
19541         * bits/fcntl.h: ... here.
19542
19543         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
19544         not 0.
19545         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
19546         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
19547         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
19548         (struct flock): Move l_start, l_len to the beginning.
19549         Use __pid_t for l_pid.
19550         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
19551         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
19552         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
19553         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
19554         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
19555         [__USE_LARGEFILE64] (struct flock64): New type.
19556         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
19557
19558         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
19559         * bits/dirent.h: ... here.
19560
19561         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
19562         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
19563
19564 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
19565
19566         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19567         Change from 2.6.0 to 2.6.16.
19568         * sysdeps/unix/sysv/linux/configure: Regenerated.
19569         * sysdeps/unix/sysv/linux/kernel-features.h
19570         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
19571         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
19572         version.
19573         (__ASSUME_UTIMES): Likewise.
19574         (__ASSUME_CLONE_STOPPED): Remove.
19575         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
19576         architectures, not kernel version.
19577         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
19578         (__ASSUME_NO_CLONE_DETACHED): Likewise.
19579         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
19580         (__ASSUME_WAITID_SYSCALL): Likewise.
19581         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
19582         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
19583         * README: State 2.6.16 as minimum Linux kernel version.  Do not
19584         refer to older versions.
19585
19586 2012-08-06  Roland McGrath  <roland@hack.frob.com>
19587
19588         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
19589         Define alphasort64 as an alias.
19590         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
19591         Define versionsort64 as an alias.
19592         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
19593         Define scandir64 as an alias.
19594         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
19595         Define scandirat64 as an alias.
19596         * dirent/alphasort64.c (alphasort64):
19597         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
19598         * dirent/versionsort64.c: Likewise.
19599         * dirent/scandir64.c: Likewise.
19600         * dirent/scandirat64.c: Likewise.
19601         * sysdeps/wordsize-64/alphasort.c: File removed.
19602         * sysdeps/wordsize-64/alphasort64.c: File removed.
19603         * sysdeps/wordsize-64/scandir.c: File removed.
19604         * sysdeps/wordsize-64/scandir64.c: File removed.
19605         * sysdeps/wordsize-64/scandirat.c: File removed.
19606         * sysdeps/wordsize-64/scandirat64.c: File removed.
19607         * sysdeps/wordsize-64/versionsort.c: File removed.
19608         * sysdeps/wordsize-64/versionsort64.c: File removed.
19609         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
19610         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
19611         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
19612         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
19613         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
19614         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
19615         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
19616         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
19617
19618         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
19619         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
19620         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
19621         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19622         [defined __arch64__ || defined __sparcv9]
19623         (__INO_T_MATCHES_INO64_T): New macro.
19624         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19625         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
19626         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
19627         * sysdeps/unix/sysv/linux/bits/dirent.h
19628         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
19629         (_DIRENT_MATCHES_DIRENT64): New macro.
19630
19631         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
19632         Define lockf64 as an alias.
19633         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
19634         Define fseeko64 as an alias.
19635         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
19636         Define ftello64 as an alias.
19637         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
19638         Define _IO_fgetpos64 and fgetpos64 as aliases.
19639         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
19640         Define _IO_fsetpos64 and fsetpos64 as aliases.
19641         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
19642         Conditionalize body on this.
19643         * libio/fseeko64.c: Likewise.
19644         * libio/ftello64.c: Likewise.
19645         * libio/iofgetpos64.c: Likewise.
19646         * libio/iofsetpos64.c: Likewise.
19647         * sysdeps/wordsize-64/lockf.c: File removed.
19648         * sysdeps/wordsize-64/lockf64.c: File removed.
19649         * sysdeps/wordsize-64/fseeko.c: File removed.
19650         * sysdeps/wordsize-64/fseeko64.c: File removed.
19651         * sysdeps/wordsize-64/ftello.c: File removed.
19652         * sysdeps/wordsize-64/ftello64.c: File removed.
19653         * sysdeps/wordsize-64/iofgetpos.c: File removed.
19654         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
19655         * sysdeps/wordsize-64/iofsetpos.c: File removed.
19656         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
19657         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
19658         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
19659         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
19660         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
19661         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
19662         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
19663         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
19664         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
19665         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
19666         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
19667
19668         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
19669         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
19670         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
19671         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
19672         [defined __arch64__ || defined __sparcv9]
19673         (__OFF_T_MATCHES_OFF64_T): New macro.
19674         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
19675         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
19676         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
19677         (__OFF_T_MATCHES_OFF64_T): New macro.
19678
19679 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
19680
19681         * stdlib/secure-getenv.c (__secure_getenv): Replace
19682         GLIBC_2_16 with GLIBC_2_17.
19683
19684 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
19685
19686         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
19687         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
19688
19689 2012-08-03  David S. Miller  <davem@davemloft.net>
19690
19691         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19692
19693 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
19694
19695         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
19696         Remove.
19697         (__ASSUME_CORRECT_SI_PID): Likewise.
19698         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
19699         (__ASSUME_TMPFS_NAME): Likewise.
19700         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
19701         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
19702         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
19703         (HAVE_AUX_SECURE): Make definition unconditional.
19704         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
19705         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
19706
19707 2012-08-03  Roland McGrath  <roland@hack.frob.com>
19708
19709         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
19710         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
19711         * sysdeps/mach/hurd/eloop-threshold.h: New file.
19712         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
19713         __eloop_threshold instead of SYMLOOP_MAX.
19714
19715         * sysdeps/generic/eloop-threshold.h: New file.
19716         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
19717         of MAXSYMLINKS.
19718         * elf/chroot_canon.c (chroot_canon): Likewise.
19719
19720 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
19721
19722         [BZ #13717]
19723         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
19724         Change to 2.6.0 everywhere.
19725         * sysdeps/unix/sysv/linux/configure: Regenerated.
19726         * sysdeps/unix/sysv/linux/kernel-features.h
19727         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
19728         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
19729         kernel versions.
19730         (__ASSUME_POSIX_TIMERS): Define unconditionally.
19731         (__ASSUME_FUTEX_REQUEUE): Remove.
19732         (__ASSUME_STATFS64): Define unconditionally.
19733         (__ASSUME_AT_SECURE): Likewise.
19734         (__ASSUME_CORRECT_SI_PID): Likewise.
19735         (__ASSUME_TGKILL): Define without depending on kernel version for
19736         i386.
19737         (__ASSUME_UTIMES): Likewise.
19738         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
19739         kernel version.
19740         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
19741         (__ASSUME_TMPFS_NAME): Likewise.
19742         * README: Update reference to Linux kernel versions.
19743
19744 2012-08-02  Marek Polacek  <polacek@redhat.com>
19745
19746         [BZ# 14150]
19747         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
19748         libc_cv_asm_type_prefix with %.
19749         * configure: Regenerated.
19750         * include/libc-symbols.h: Remove comment about
19751         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
19752         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
19753         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
19754         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
19755         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
19756         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
19757         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
19758         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
19759         * elf/tst-unique2mod1.c: Likewise.
19760         * elf/tst-unique1mod2.c: Likewise.
19761         * elf/tst-unique1mod1.c: Likewise.
19762         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
19763         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
19764         Replace ASM_TYPE_DIRECTIVE with .type.
19765         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19766         * sysdeps/i386/sysdep.h: Likewise.
19767         * sysdeps/x86_64/sysdep.h: Likewise.
19768         * sysdeps/sh/sysdep.h: Likewise.
19769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19770         Do not define ASM_TYPE_DIRECTIVE.
19771         * sysdeps/powerpc/sysdep.h: Likewise.
19772         * sysdeps/powerpc/powerpc32/sysdep.h:
19773         Replace ASM_TYPE_DIRECTIVE with .type.
19774         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
19775         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
19776         * sysdeps/i386/fpu/e_powf.S: Likewise.
19777         * sysdeps/i386/fpu/e_expl.S: Likewise.
19778         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19779         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19780         * sysdeps/i386/fpu/e_pow.S: Likewise.
19781         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
19782         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19783         * sysdeps/i386/fpu/s_expm1.S: Likewise.
19784         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
19785         * sysdeps/i386/fpu/e_log2.S: Likewise.
19786         * sysdeps/i386/fpu/e_log2l.S: Likewise.
19787         * sysdeps/i386/fpu/e_scalb.S: Likewise.
19788         * sysdeps/i386/fpu/e_powl.S: Likewise.
19789         * sysdeps/i386/fpu/e_log10f.S: Likewise.
19790         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
19791         * sysdeps/i386/fpu/e_logl.S: Likewise.
19792         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
19793         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
19794         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
19795         * sysdeps/i386/fpu/e_log2f.S: Likewise.
19796         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
19797         * sysdeps/i386/fpu/e_log.S: Likewise.
19798         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
19799         * sysdeps/i386/fpu/e_logf.S: Likewise.
19800         * sysdeps/i386/fpu/e_log10l.S: Likewise.
19801         * sysdeps/i386/fpu/e_atanh.S: Likewise.
19802         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
19803         * sysdeps/i386/fpu/e_log10.S: Likewise.
19804         * sysdeps/i386/fpu/s_frexp.S: Likewise.
19805         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
19806         * sysdeps/i386/fpu/s_asinh.S: Likewise.
19807         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
19808         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
19809         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
19810         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
19811         * sysdeps/i386/i686/strtok.S: Likewise.
19812         * sysdeps/i386/i386-mcount.S: Likewise.
19813         * sysdeps/i386/strtok.S: Likewise.
19814         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
19815         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
19816         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
19817         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
19818         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
19819         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
19820         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
19821         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
19822         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
19823         * sysdeps/x86_64/_mcount.S: Likewise.
19824         * sysdeps/x86_64/strtok.S: Likewise.
19825         * sysdeps/sh/_mcount.S: Likewise.
19826
19827 2012-08-01  Roland McGrath  <roland@hack.frob.com>
19828
19829         * libio/iofopen.c: Include <fcntl.h>.
19830         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
19831         (_IO_fopen64, fopen64): Define as aliases.
19832         * libio/iofopen64.c: Include <fcntl.h>.
19833         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
19834         Conditionalize body on this.
19835         * sysdeps/wordsize-64/iofopen.c: File removed.
19836         * sysdeps/wordsize-64/iofopen64.c: File removed.
19837
19838 2012-08-01  Marek Polacek  <polacek@redhat.com>
19839
19840         * libc/Makeconfig: Use elf in place of binfmt-subdir.
19841         Use dlfcn directly instead of a variable.
19842         (binfmt-subdir): Do not define.
19843         (dlfcn): Likewise.
19844
19845 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
19846
19847         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
19848         Remove all definitions.
19849         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
19850         <kernel-features.h>.
19851         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
19852         (miss_F_GETOWN_EX): Remove all definitions.
19853         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
19854         macro definition.
19855         [!__ASSUME_FCNTL64]: Remove conditional code.
19856         [__ASSUME_FCNTL64]: Make code unconditional.
19857         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
19858         <kernel-features.h>.
19859         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
19860         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
19861         (lockf64) [__NR_fcntl64]: Make code unconditional.
19862         (lockf64) [__ASSUME_FCNTL64]: Likewise.
19863
19864         * sysdeps/unix/sysv/linux/kernel-features.h
19865         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
19866         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
19867         Make code unconditional.
19868         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19869         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
19871         [__NR_vfork]: Make code unconditional.
19872         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19873         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
19875         [__NR_vfork]: Make code unconditional.
19876         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
19877         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
19878
19879 2012-08-01  Roland McGrath  <roland@hack.frob.com>
19880
19881         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
19882         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
19883
19884         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19885         Define mkstemp64 as an alias.
19886         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19887         Define mkstemps64 as an alias.
19888         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19889         Define mkostemp64 as an alias.
19890         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
19891         Define mkostemps64 as an alias.
19892         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
19893         Conditionalize body on this.
19894         * misc/mkostemp64.c: Likewise.
19895         * misc/mkostemps64.c: Likewise.
19896         * misc/mkstemps64.c: Likewise.
19897         * sysdeps/wordsize-64/mkstemp64.c: File removed.
19898         * sysdeps/wordsize-64/mkostemp64.c: File removed.
19899         * sysdeps/wordsize-64/mkostemp.c: File removed.
19900         * sysdeps/wordsize-64/mkstemp.c: File removed.
19901         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
19902         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
19903         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
19904         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
19905
19906         [BZ #14138]
19907         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
19908         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
19909         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
19910         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
19911
19912         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
19913         compat_symbol macros from <shlib-compat.h> rather than the underlying
19914         default_symbol_version and symbol_version macros, so that DEFAULT
19915         lines in shlib-versions are respected.
19916         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
19917
19918 2012-08-01  Florian Weimer  <fweimer@redhat.com>
19919
19920         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
19921         Declare with warn_unused_result.
19922         (setgid, setregid, setegid, setresgid): Likewise.
19923         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
19924         Likewise.
19925         * WUR-REPORT: Remove set*id functions.
19926
19927 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
19928
19929         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
19930
19931 2012-07-31  Roland McGrath  <roland@hack.frob.com>
19932
19933         [BZ #10191]
19934         * include/sys/socket.h (__libc_accept, __libc_accept4):
19935         Add attribute_hidden.
19936         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
19937
19938         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
19939         use of PTR_MANGLE.
19940         * inet/getnetgrent_r.c (setup): Likewise.
19941
19942         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
19943
19944 2012-07-31  David S. Miller  <davem@davemloft.net>
19945
19946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19947
19948 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
19949
19950         [BZ #13629]
19951         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
19952         value between 1.0 and 2.0 and smaller part has absolute value less
19953         than 1.0.
19954         * math/s_clog10.c (__clog10): Likewise.
19955         * math/s_clog10f.c (__clog10f): Likewise.
19956         * math/s_clog10l.c (__clog10l): Likewise.
19957         * math/s_clogf.c (__clogf): Likewise.
19958         * math/s_clogl.c (__clogl): Likewise.
19959         * math/libm-test.inc (clog_test): Add more tests.
19960         (clog10_test): Likewise.
19961         * sysdeps/i386/fpu/libm-test-ulps: Update.
19962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19963
19964 2012-07-31  Florian Weimer  <fweimer@redhat.com>
19965
19966         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
19967         Exit with zero in case no suitable GID is found, and write a
19968         message to standard error.
19969
19970 2012-07-30  Roland McGrath  <roland@hack.frob.com>
19971
19972         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
19973         rather than to 1.
19974         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
19975         (MAXPATHLEN): Removed.
19976         (NOGROUP, NODEV): New macros.
19977         (setbit, clrbit, isset, isclr): New macros.
19978         (howmany, roundup, powerof2): New macros.
19979         (DEV_BSIZE): New macro.
19980
19981         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
19982         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
19983
19984         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
19985         definition on [!__NO_LONG_DOUBLE_MATH].
19986
19987         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
19988         PTR_MANGLE and PTR_DEMANGLE.
19989
19990         * socket/accept4.c (accept4): Rename to __libc_accept4.
19991         Define accept4 as a weak alias.
19992
19993         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
19994         on [_DIRENT_HAVE_D_TYPE].
19995         * io/ftw.c (ftw_dir): Likewise.
19996
19997         * io/xmknod.c (__xmknod): Don't check PATH for being null.
19998
19999         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
20000
20001         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
20002         Use the BSD numbers rather than the arbitrary ones we had.
20003         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
20004         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
20005         (SIGXCPU, SIGXFSZ): New macros.
20006         (_NSIG): Now 32.
20007
20008         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
20009         initializer on [_LIBC_REENTRANT].
20010
20011         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
20012         definitions inside [_POSIX_MAPPED_FILES].
20013
20014         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
20015
20016         * dirent/opendir.c: Include <fcntl.h>.
20017
20018         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
20019         (__libc_getspecific): Likewise.
20020         (__libc_key_create): Likewise.
20021
20022         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
20023         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
20024         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
20025         (tmpfile64): Define as alias.
20026         * sysdeps/wordsize-64/tmpfile.c: File removed.
20027         * sysdeps/wordsize-64/tmpfile64.c: File removed.
20028         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
20029         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
20030
20031         * stdio-common/vfscanf.c: Include <stdbool.h>.
20032         * nss/makedb.c: Likewise.
20033         * stdio-common/_i18n_number.h: Likewise.
20034         * argp/argp-help.c: Likewise.
20035         * posix/wordexp.c: Likewise.
20036         * sysdeps/posix/spawni.c: Likewise.
20037         * nss/nss_files/files-initgroups.c: Likewise.
20038         * stdio-common/reg-modifier.c: Include <stdlib.h>.
20039         * nss/nss_files/files-initgroups.c: Likewise.
20040         * nss/nss_db/db-netgrp.c: Likewise.
20041         * nss/nss_db/db-initgroups.c: Likewise.
20042         * io/fchmodat.c: Include <sys/stat.h>.
20043
20044         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
20045         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
20046
20047         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
20048         [HAVE_MMAP].
20049
20050         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
20051         Add multiple inclusion protection.
20052
20053 2012-07-27  David S. Miller  <davem@davemloft.net>
20054
20055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20056
20057 2012-07-27  Gary Benson  <gbenson@redhat.com>
20058
20059         [BZ #14298]
20060         * elf/rtld.c: Include <stap-probe.h>.
20061         (dl_main): Added static probes "init_start" and "init_complete".
20062         * elf/dl-load.c: Include <stap-probe.h>.
20063         (lose): Take new parameter "nsid".
20064         Added static probe "map_failed".
20065         (_dl_map_object_from_fd): Pass namespace id to lose.
20066         Added static probe "map_start".
20067         (open_verify): Pass namespace id to lose.
20068         * elf/dl-open.c: Include <stap-probe.h>.
20069         (dl_open_worker) Added static probes "map_complete", "reloc_start"
20070         and "reloc_complete".
20071         * elf/dl-close.c: Include <stap-probe.h>.
20072         (_dl_close_worker): Added static probes "unmap_start" and
20073         "unmap_complete".
20074         * elf/rtld-debugger-interface.txt: New file documenting the above.
20075
20076 2012-07-26  Roland McGrath  <roland@hack.frob.com>
20077
20078         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
20079         rather than a string variable.
20080         * sunrpc/rpc_main.c (h_output): Likewise.
20081         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
20082
20083 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
20084
20085         * inet/check_native.c: New file.
20086
20087 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
20088
20089         [BZ #13629]
20090         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
20091         if larger part has absolute value 1.0.
20092         * math/s_clog10.c (__clog10): Likewise.
20093         * math/s_clog10f.c (__clog10f): Likewise.
20094         * math/s_clog10l.c (__clog10l): Likewise.
20095         * math/s_clogf.c (__clogf): Likewise.
20096         * math/s_clogl.c (__clogl): Likewise.
20097         * math/libm-test.inc (clog_test): Add more tests.
20098         (clog10_test): Likewise.
20099         * sysdeps/i386/fpu/libm-test-ulps: Update.
20100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20101
20102         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
20103         (pltexit): Likewise.
20104         (La_regs): Likewise.
20105         (La_retval): Likewise.
20106         (int_retval): Likewise.
20107         Update #error for removed macros to refer only to definitions in
20108         tst-audit.h.
20109         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
20110         macro.
20111         (pltexit): Likewise.
20112         (La_regs): Likewise.
20113         (La_retval): Likewise.
20114         (int_retval): Likewise.
20115         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
20116         macro.
20117         (pltexit): Likewise.
20118         (La_regs): Likewise.
20119         (La_retval): Likewise.
20120         (int_retval): Likewise.
20121         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
20122         macro.
20123         (pltexit): Likewise.
20124         (La_regs): Likewise.
20125         (La_retval): Likewise.
20126         (int_retval): Likewise.
20127         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
20128         macro.
20129         (pltexit): Likewise.
20130         (La_regs): Likewise.
20131         (La_retval): Likewise.
20132         (int_retval): Likewise.
20133         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
20134         macro.
20135         (pltexit): Likewise.
20136         (La_regs): Likewise.
20137         (La_retval): Likewise.
20138         (int_retval): Likewise.
20139         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
20140         macro.
20141         (pltexit): Likewise.
20142         (La_regs): Likewise.
20143         (La_retval): Likewise.
20144         (int_retval): Likewise.
20145         * sysdeps/generic/tst-audit.h: Update comment to refer only to
20146         macro definitions in tst-audit.h.
20147         * sysdeps/i386/tst-audit.h: New file.
20148         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
20149         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
20150         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
20151         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
20152         * sysdeps/sh/tst-audit.h: Likewise.
20153         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
20154         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
20155         * sysdeps/x86_64/tst-audit.h: Likewise.
20156
20157 2012-07-26  Andreas Jaeger  <aj@suse.de>
20158
20159         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
20160         ptrace.
20161
20162         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
20163         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
20164         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
20165         PTRACE_O_MASK.
20166         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
20167         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
20168         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
20169
20170         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
20171         value.
20172
20173         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
20174         _sigsys.
20175         (si_call_addr, si_syscall, si_arch): Define new macro.
20176         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
20177         _sigsys.
20178         (si_call_addr, si_syscall, si_arch): Define new marcro.
20179         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
20180         _sigsys.
20181         (si_call_addr, si_syscall, si_arch): Define new macro.
20182         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
20183         _sigsys.
20184         (si_call_addr, si_syscall, si_arch): Define new macro.
20185
20186 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20187
20188         [BZ #13717]
20189         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20190         Change to 2.4.21 where previously 2.4.1.
20191         * sysdeps/unix/sysv/linux/configure: Regenerated.
20192         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
20193         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
20194         Linux kernel version.
20195         (__ASSUME_STD_AUXV): Remove.
20196         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
20197         kernel version.
20198         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
20199         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
20200         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
20201         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
20202         (__ASSUME_NETLINK_SUPPORT): Likewise.
20203         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
20204         (__no_netlink_support): Remove conditional definition.
20205         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
20206         Remove.
20207         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20208         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
20209         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
20210         (if_nameindex_ioctl): Remove.
20211         (if_nameindex_netlink): Do not handle __no_netlink_support.
20212         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20213         code.
20214         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
20215         Remove conditional code.
20216         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
20217         code.
20218         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
20219         unconditional.
20220         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
20221         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
20222         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
20223         Remove.
20224         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
20225         [!__ASSUME_STD_AUXV]: Remove conditional code.
20226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
20227         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
20228         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
20229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
20230         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
20231         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20232         code.
20233         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
20235         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
20236         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20237         conditional code.
20238         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
20239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
20240         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
20241         code.
20242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
20243         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
20244         conditional code.
20245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
20246         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20247         code unconditional.
20248         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20249         conditional code.
20250         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20251         unconditional.
20252         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20253         conditional code.
20254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20255         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20256         unconditional.
20257         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20258         conditional code.
20259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
20260         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20261         code unconditional.
20262         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20263         conditional code.
20264         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20265         unconditional.
20266         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20267         conditional code.
20268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
20269         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
20270         code unconditional.
20271         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20272         conditional code.
20273         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
20274         unconditional.
20275         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
20276         conditional code.
20277
20278 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
20279
20280         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
20281         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
20282         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
20283         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
20284         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
20285         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
20286         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
20287         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
20288         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
20289         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
20290         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
20291         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
20292         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
20293         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
20294         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
20295         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
20296         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
20297         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
20298         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
20299         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
20300         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
20301         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
20302         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20303
20304 2012-07-25  Florian Weimer  <fweimer@redhat.com>
20305
20306         * Versions.def: Add GLIBC_2.17.
20307         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
20308         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
20309         Introduce __libc_secure_getenv.
20310         * stdlib/Versions (2.17): Add secure_getenv
20311         (GLIBC_PRIVATE): Add __libc_secure_getenv.
20312         * stdlib/secure-getenv.c: Rename __secure_getenv to
20313         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
20314         symbol __secure_getenv for GLIBC_2.0.
20315         * stdlib/tst-secure-getenv.c: New.
20316         * stdlib/Makefile (tests): Add testcase.
20317         * manual/startup.texi (Environment Access): Document
20318         secure_getenv.
20319         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
20320         __libc_secure_getenv.
20321         * inet/ruserpass.c (ruserpass): Likewise.
20322         * malloc/mtrace.c (mtrace): Likewise.
20323         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
20324         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
20325         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
20326         * sysdeps/posix/tempname.c: Likewise.  Evaluate
20327         HAVE_SECURE_GETENV.
20328         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
20329         __secure_getenv to __libc_secure_getenv.
20330         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
20331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20332         Likewise.
20333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20334         Likewise.
20335         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
20336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
20337         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
20338         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
20339         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
20340         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
20341         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
20342
20343 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
20344
20345         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
20346         (struct La_i86_retval): Likewise.
20347         (struct La_x86_64_regs): Likewise.
20348         (struct La_x86_64_retval): Likewise.
20349         (struct La_x32_regs): Likewise.
20350         (struct La_x32_retval): Likewise.
20351         (struct La_ppc32_regs): Likewise.
20352         (struct La_ppc32_retval): Likewise.
20353         (struct La_ppc64_regs): Likewise.
20354         (struct La_ppc64_retval): Likewise.
20355         (struct La_sh_regs): Likewise.
20356         (struct La_sh_retval): Likewise.
20357         (struct La_s390_32_regs): Likewise.
20358         (struct La_s390_32_retval): Likewise.
20359         (struct La_s390_64_regs): Likewise.
20360         (struct La_s390_64_retval): Likewise.
20361         (struct La_sparc32_regs): Likewise.
20362         (struct La_sparc32_retval): Likewise.
20363         (struct La_sparc64_regs): Likewise.
20364         (struct La_sparc64_retval): Likewise.
20365         (struct audit_ifaces): Remove architecture-specific pltenter and
20366         pltexit members.
20367         * sysdeps/i386/ldsodefs.h: New file.
20368         * sysdeps/powerpc/ldsodefs.h: Likewise.
20369         * sysdeps/s390/ldsodefs.h: Likewise.
20370         * sysdeps/sh/ldsodefs.h: Likewise.
20371         * sysdeps/sparc/ldsodefs.h: Likewise.
20372         * sysdeps/x86_64/ldsodefs.h: Likewise.
20373
20374 2012-07-25  Marek Polacek  <polacek@redhat.com>
20375
20376         [BZ #6808]
20377         * math/libm-test.inc (yn_test): Add another test.
20378         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
20379         to ERANGE when the result is +-Inf.
20380         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
20381         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
20382         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
20383         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
20384
20385 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
20386
20387         * conform/data/time.h-data (NULL): Use macro-constant.  Require
20388         equal to 0.
20389         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
20390         clock_t.
20391         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
20392
20393 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
20394
20395         * configure.in <sysdeps resolving>: Correct printing
20396         Implies_before.
20397         * configure: Regenerate.
20398
20399 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
20400
20401         * math/w_ilogb.c: Include <limits.h>.
20402         * math/w_ilogbl.c: Likewise.
20403
20404 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
20405
20406         * manual/lang.texi (__va_copy): Document primarily as ISO C99
20407         va_copy.  Document allowing for unavailable va_copy only as
20408         pre-C99 compatibility.
20409         * manual/string.texi (Copying and Concatenation): Use va_copy
20410         instead of __va_copy in concat example.
20411
20412 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
20413
20414         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
20415         (__sendto): Use create_address_port.  Initialize APORT and deallocate
20416         it if not null.
20417
20418         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
20419         with O_NOLINK passed to __file_name_lookup.
20420
20421         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
20422         with O_NOLINK passed to __file_name_lookup.
20423
20424         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
20425         negative N or less than NGIDS.
20426
20427         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
20428         type to string_t.  Set ERANGE as errno and return it if NAME is not big
20429         enough.  Use memcpy instead of strncpy.
20430
20431 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
20432
20433         * elf/Makefile (check-data): Remove.
20434         (localplt.data): New vpath directive.
20435         ($(objpfx)check-localplt.out): Use localplt.data from vpath
20436         instead of $(check-data).
20437         * scripts/data/localplt-generic.data: Move to ...
20438         * sysdeps/generic/localplt.data: ... here.
20439         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
20440         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
20441         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
20442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
20443         ... here.
20444         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
20445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
20446         ... here.
20447         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
20448         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
20449         ... here.
20450         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
20451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
20452         ... here.
20453         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
20454         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
20455         ... here.
20456         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
20457         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
20458         ... here.
20459
20460 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20461
20462         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
20463         PPC32 and PPC64 files.
20464         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
20465         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
20466
20467 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20468
20469         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
20470         __makecontext_ret to ...
20471         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
20472         ... here and call exit if uc_link is NULL.  New file.
20473         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
20474         __makecontext_ret.S.
20475         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
20476         __makecontext_ret to ...
20477         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
20478         ... here and call exit if uc_link is NULL.  New file.
20479         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
20480         __makecontext_ret.S.
20481
20482 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20483
20484         * elf/elf.h (R_390_IRELATIVE): New definition.
20485         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
20486         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
20487         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
20488         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
20489         (elf_machine_lazy_rel): Likewise.
20490         * sysdeps/s390/dl-irel.h: New file.
20491         * sysdeps/s390/s390-64/memcpy.S: New asm code.
20492         * sysdeps/s390/s390-64/memset.S: New asm code.
20493         * sysdeps/s390/s390-64/memcmp.S: New asm code.
20494         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
20495         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
20496         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
20497         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
20498         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
20499         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
20500         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
20501         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
20502         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
20503         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
20504         * sysdeps/s390/s390-32/memcpy.S: New asm code.
20505         * sysdeps/s390/s390-32/memset.S: New asm code.
20506         * sysdeps/s390/s390-32/memcmp.S: New asm code.
20507
20508 2012-07-17  Marek Polacek  <polacek@redhat.com>
20509
20510         [BZ #14349]
20511         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
20512         * sysdeps/s390/s390-64/configure.in: Likewise.
20513         * sysdeps/sparc/configure.in: Likewise.
20514         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
20515         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
20516         * sysdeps/i386/configure.in: Likewise.
20517         * sysdeps/x86_64/configure.in: Likewise.
20518         * sysdeps/sh/configure.in: Likewise.
20519         * sysdeps/s390/s390-32/configure: Regenerated.
20520         * sysdeps/s390/s390-64/configure: Likewise.
20521         * sysdeps/x86_64/configure: Likewise.
20522         * sysdeps/sh/configure: Likewise.
20523         * sysdeps/powerpc/powerpc64/configure: Likewise.
20524         * sysdeps/powerpc/powerpc32/configure: Likewise.
20525         * sysdeps/sparc/configure: Likwise.
20526         * sysdeps/i386/configure: Likewise.
20527
20528         * elf/dl-open.c: Comment fixes.
20529
20530 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
20531
20532         * Makefile [CXX] (check-data): Remove.
20533         [CXX] (c++-types.data): New vpath directive.
20534         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
20535         vpath.  Do not allow for C++ type data being missing.
20536         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
20537         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
20538         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
20539         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
20540         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
20541         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
20542         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
20543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
20544         ... here.
20545         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
20546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
20547         ... here.
20548         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
20549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
20550         ... here.
20551         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
20552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
20553         ... here.
20554         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
20555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
20556         ... here.
20557         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
20558         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
20559         ... here.
20560         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
20561         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
20562         ... here.
20563         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
20564         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
20565
20566         * elf/tls-macros.h (TLS_LE): Move architecture-specific
20567         definitions to architecture-specific files.
20568         (TLS_IE): Likewise.
20569         (TLS_LD): Likewise.
20570         (TLS_GD): Likewise.
20571         * sysdeps/i386/tls-macros.h: New file.
20572         * sysdeps/powerpc/tls-macros.h: Likewise.
20573         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20574         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20575         * sysdeps/sh/tls-macros.h: Likewise.
20576         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
20577         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
20578         * sysdeps/x86_64/tls-macros.h: Likewise.
20579
20580 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
20581
20582         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
20583         zero value for regular exit case.
20584
20585         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
20586         (__start_context): Preserve zero value for regular exit case.
20587
20588 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
20589             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20590
20591         * manual/setjmp.texi (setcontext): Clarify normal process
20592         termination when uc_link is the null pointer.
20593         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
20594         exit call.
20595
20596 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
20597
20598         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
20599         preprocessor.  Test for each exception mask separately.
20600
20601 2012-07-16  Andreas Jaeger  <aj@suse.de>
20602
20603         * po/ru.po: Update from translation team.
20604
20605 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
20606
20607         * conform/data/string.h-data (NULL): Use macro-constant.  Require
20608         equal to 0.
20609         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
20610         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
20611         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
20612         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
20613         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20614
20615 2012-07-13  Andreas Jaeger  <aj@suse.de>
20616
20617         * po/fr.po: Update from translation team.
20618
20619 2012-07-12  Marek Polacek  <polacek@redhat.com>
20620
20621         [BZ #14173]
20622         * math/libm-test.inc (yn_test): Add test for BZ #14173.
20623         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
20624         loop condition.
20625
20626 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
20627
20628         [BZ #13717]
20629         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
20630         Change to 2.4.1 where previously 2.4.0.
20631         * sysdeps/unix/sysv/linux/configure: Regenerated.
20632         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
20633         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
20634         version.
20635         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
20636         (__ASSUME_AT_CLKTCK): Remove.
20637         (__ASSUME_AT_PAGESIZE): Likewise.
20638         (__ASSUME_AT_XID): Likewise.
20639         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
20640         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
20641         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
20642         unconditionally.
20643         (HAVE_AUX_PAGESIZE): Likewise.
20644         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
20645         [__ASSUME_AT_CLKTCK]: Make code unconditional.
20646         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
20647
20648 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
20649
20650         [BZ #14307]
20651         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
20652         the temporary buffer used to invoke __gethostbyname2_r,
20653         __gethostbyaddr_r and gethostbyname4_r to make room for struct
20654         host_data / struct gaih_addrtuple.
20655         * resolv/nss_dns/dns-host.c (global scope): Move definition of
20656         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
20657         header file nss/nsswitch.h.
20658         * nss/nsswitch.h (global scope): Add definition of implementation
20659         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
20660         resolv/nss_dns/dns-host.c).
20661
20662 2012-07-11  Andreas Jaeger  <aj@suse.de>
20663
20664         * po/fr.po: Update from translation team.
20665
20666         * po/sv.po: Update from translation team
20667         * po/fr.po: Another update from translation team.
20668
20669 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20670
20671         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
20672         for subnormals or multiply small sinh result by itself.
20673         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
20674         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20675
20676 2012-07-11  David S. Miller  <davem@davemloft.net>
20677
20678         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20679
20680 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
20681
20682         [BZ #14347]
20683         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
20684         (INTERNAL_MARK): Shift it here.
20685
20686 2012-07-10  Marek Polacek  <polacek@redhat.com>
20687
20688         [BZ #14151]
20689         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
20690         libc_cv_asm_global_directive with .globl.
20691         * configure: Regenerated.
20692         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
20693         with .globl.
20694         * sysdeps/i386/configure: Regenerated.
20695         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
20696         with .globl.
20697         * sysdeps/x86_64/configure: Regenerated.
20698         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
20699         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
20700         * elf/tst-unique2mod2.c: Likewise.
20701         * elf/tst-unique2mod1.c: Likewise.
20702         * elf/tst-unique1mod2.c: Likewise.
20703         * elf/tst-unique1mod1.c: Likewise.
20704         * sysdeps/s390/s390-32/sysdep.h: Likewise.
20705         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
20706         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20707         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
20708         * sysdeps/mach/sysdep.h: Likewise.
20709         * sysdeps/i386/sysdep.h: Likewise.
20710         * sysdeps/i386/i386-mcount.S: Likewise.
20711         * sysdeps/x86_64/_mcount.S: Likewise.
20712         * sysdeps/x86_64/sysdep.h: Likewise.
20713         * sysdeps/sh/_mcount.S: Likewise.
20714         * sysdeps/sh/sysdep.h: Likewise.
20715         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
20716         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
20717         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
20718         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
20719         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
20720         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
20721         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
20722         * locale/localeinfo.h: Likewise.
20723         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
20724         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
20725
20726 2012-07-09  Roland McGrath  <roland@hack.frob.com>
20727
20728         [BZ #14336]
20729         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
20730         system".
20731         * manual/message.texi (The Uniforum approach): Likewise.
20732         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
20733         (glibc iconv Implementation): Likewise.
20734
20735 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
20736
20737         [BZ #14337]
20738         * math/s_clog.c (__clog): Avoid scaling a value down where that
20739         could result in underflow.
20740         * math/s_clog10.c (__clog10): Likewise.
20741         * math/s_clog10f.c (__clog10f): Likewise.
20742         * math/s_clog10l.c (__clog10l): Likewise.
20743         * math/s_clogf.c (__clogf): Likewise.
20744         * math/s_clogl.c (__clogl): Likewise.
20745         * math/libm-test.inc (clog_test): Add more tests.
20746         (clog10_test): Likewise.
20747         * sysdeps/i386/fpu/libm-test-ulps: Update.
20748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20749
20750 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
20751
20752         [BZ #14283]
20753         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
20754         by 7 not 8 to examine high bit of fractional part.
20755
20756         [BZ #14042]
20757         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
20758         for call to __mcount_internal.
20759         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
20760         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
20761         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
20762
20763 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
20764
20765         [BZ #14154]
20766         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
20767         approximation for values within 0x1p-13f of an odd multiple of
20768         pi/4.
20769         * math/libm-test.inc (tan_test): Do not allow spurious underflow
20770         exception.  Add more tests.
20771         * sysdeps/i386/fpu/libm-test-ulps: Update.
20772
20773         [BZ #6778]
20774         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
20775         inputs and return -1 for them.  Do not check for +Inf in case not
20776         reachable for +Inf.
20777         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
20778         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
20779         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
20780         and return -1 for them.  Do not check for +Inf in case not
20781         reachable for +Inf.
20782         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
20783         define.
20784         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
20785         and return -1 for them.  Do not check for +Inf in case not
20786         reachable for +Inf.
20787         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
20788         spurious underflow.
20789         * sysdeps/i386/fpu/libm-test-ulps: Update.
20790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20791
20792 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
20793
20794         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
20795
20796 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
20797
20798         [BZ #14157]
20799         [BZ #14331]
20800         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
20801         could result in spurious underflow.  Scale down values above
20802         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
20803         * math/s_csqrtf.c (__csqrtf): Likewise.
20804         * math/s_csqrtl.c (__csqrtl): Likewise.
20805         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
20806         spurious underflow.
20807         * sysdeps/i386/fpu/libm-test-ulps: Update.
20808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20809
20810 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
20811
20812         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
20813         xopen-msg.sed.
20814         * catgets/xopen-msg.awk: New file.
20815         * catgets/xopen-msg.sed: Removed.
20816
20817         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
20818         po2text.sed.
20819         * intl/po2test.awk: New file.
20820         * intl/po2test.sed: Removed.
20821
20822 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
20823
20824         [BZ #14328]
20825         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
20826         or multiply small sinh result by itself.
20827         * math/s_ctanf.c (__ctanf): Likewise.
20828         * math/s_ctanh.c (__ctanh): Likewise.
20829         * math/s_ctanhf.c (__ctanhf): Likewise.
20830         * math/s_ctanhl.c (__ctanhl): Likewise.
20831         * math/s_ctanl.c (__ctanl): Likewise.
20832         * math/libm-test.inc (ctan_test_tonearest): New function.
20833         (ctan_test_towardzero): Likewise.
20834         (ctan_test_downward): Likewise.
20835         (ctan_test_upward): Likewise.
20836         (ctanh_test_tonearest): Likewise.
20837         (ctanh_test_towardzero): Likewise.
20838         (ctanh_test_downward): Likewise.
20839         (ctanh_test_upward): Likewise.
20840         (main): Call these new functions.
20841         * sysdeps/i386/fpu/libm-test-ulps: Update.
20842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20843
20844 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
20845
20846         * .gitignore: Delete /ports entry.
20847
20848 2012-07-03  Andreas Jaeger  <aj@suse.de>
20849
20850         * po/bg.po: Update from translation team.
20851         * po/cs.po: Likewise.
20852         * po/de.po: Likewise.
20853         * po/hr.po: Likewise.
20854         * po/nl.pl: Likewise.
20855         * po/pl.po: Likewise.
20856         * po/vi.po: Likewise.
20857
20858 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
20859
20860         * Makeconfig [!+link] (+link-before-libc): New variable.
20861         [!+link] (+link-after-libc): Likewise.
20862         [!+link] (+link-tests): Likewise.
20863         [!+link] (+link): Define in terms of $(+link-before-libc) and
20864         $(+link-after-libc).
20865         [!+link-static] (+link-static-before-libc): New variable.
20866         [!+link-static] (+link-static-after-libc): Likewise.
20867         [!+link-static] (+link-static-tests): Likewise.
20868         [!+link-static] (+link-static): Define in terms of
20869         $(+link-static-before-libc) and $(+link-static-after-libc).
20870         [build-shared] (link-libc-before-gnulib): New variable.
20871         [build-shared] (link-libc-tests): Likewise.
20872         [build-shared] (link-libc): Define in terms of
20873         $(link-libc-before-gnulib).
20874         [!build-shared] (link-libc-tests): New variable.
20875         (link-libc-static-tests): New variable.
20876         [!gnulib] (gnulib-arch): New variable.
20877         [!gnulib] (gnulib-tests): Likewise.
20878         [!gnulib] (static-gnulib-arch): Likewise.
20879         [!gnulib] (static-gnulib-tests): Likewise.
20880         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
20881         Define with "=" instead of ":=".
20882         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
20883         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
20884         * Rules (binaries-all-notests): New variable.
20885         (binaries-all-tests): Likewise.
20886         (binaries-static-notests): Likewise.
20887         (binaries-static-tests): Likewise.
20888         (binaries-all): Define using $(binaries-all-notests) and
20889         $(binaries-all-tests).
20890         (binaries-static): Define using $(binaries-static-notests) and
20891         $(binaries-static-tests).
20892         (binaries-shared-tests): New variable.
20893         (binaries-shared-notests): Likewise.
20894         (binaries-shared): Remove variable.
20895         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
20896         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
20897         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
20898         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
20899         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
20900         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
20901         * elf/Makefile (sln-modules): New variable.
20902         (extra-objs): Add $(sln-modules:=.o).
20903         (ldconfig-modules): Add static-stubs.
20904         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
20905         * elf/static-stubs.c: New file.
20906
20907         [BZ #14283]
20908         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
20909         by 7 not 8 to examine high bit of fractional part.  Use volatile
20910         variables when splitting into final array of floats if
20911         __FLT_EVAL_METHOD__ != 0.
20912         * math/libm-test.inc (cos_test): Add another test.
20913         (sin_test): Likewise.
20914         * sysdeps/i386/fpu/libm-test-ulps: Update.
20915
20916         [BZ #14273]
20917         * math/libm-test.inc (cosh_test): Add more tests.
20918
20919         * version.h (RELEASE): Set to "development".
20920         (VERSION): Set to "2.16.90".
20921
20922 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
20923
20924         * NEWS: Update copyright. Remove last-updated date.
20925         Mention math library bug fixes and timezone data changes.
20926         * README: Mention GNU/Hurd, x32, and HPPA support status.
20927
20928 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
20929
20930         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
20931
20932 2012-06-27  Andreas Jaeger  <aj@suse.de>
20933
20934         * manual/contrib.texi (Contributors): Add Samuel Thibault.
20935
20936 2012-06-25  Andreas Jaeger  <aj@suse.de>
20937
20938         * sysdeps/s390/fpu/libm-test-ulps: Update.
20939
20940 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
20941             Thomas Schwinge  <thomas@codesourcery.com>
20942
20943         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
20944         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
20945         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
20946         fanotify_mark.
20947
20948 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
20949
20950         * sysdeps/mach/start.c: Remove file.
20951         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
20952         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
20953         * sysdeps/sh/init-first.c: Likewise.
20954
20955         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
20956         registers for frame unwinding purposes, add CFI directives.
20957         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
20958         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
20959         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
20960         Likewise.
20961
20962         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
20963         __fortify_fail returning.
20964         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
20965
20966         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
20967         sysdeps/sh/____longjmp_chk.S.
20968         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
20969         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
20970         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
20971         (gen-as-const-headers): Append sigaltstack-offsets.sym.
20972
20973         * sysdeps/sh/abort-instr.h: New file.
20974         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
20975         process in case exit returns.
20976
20977         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
20978         initialize the GOT register before use.
20979
20980         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
20981         calculation of ARGC > 4.
20982
20983         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
20984         meaningful names to some local labels.
20985
20986 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20987             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20988
20989         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
20990         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
20991         (__arch_compare_and_exchange_val_16_acq): Likewise.
20992         (__arch_compare_and_exchange_val_32_acq): Likewise.
20993         (atomic_exchange_and_add): Fix gUSA sequence.
20994         (atomic_add): Likewise.
20995         (atomic_add_negative): Likewise.
20996         (atomic_add_zero): Likewise.
20997         (atomic_bit_test_set): Likewise.
20998
20999 2012-06-22  Andreas Schwab  <schwab@redhat.com>
21000
21001         [BZ #13579]
21002         * include/link.h (struct link_map): Add l_free_initfini.
21003         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
21004         l_initfini.
21005         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
21006         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
21007         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
21008         set.
21009
21010 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
21011
21012         * configure.in: Use AC_LANG_SOURCE.
21013         * configure: Regenerate.
21014
21015 2012-06-22  Roland McGrath  <roland@hack.frob.com>
21016
21017         * configure.in (libc_cv_localstatedir): New substituted variable.
21018         * configure: Regenerated.
21019         * config.make.in (localstatedir): New variable, substituted from
21020         libc_cv_localstatedir.
21021         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
21022         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
21023         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
21024         * sysdeps/gnu/configure: Regenerated.
21025
21026 2012-06-21  Jeff Law  <law@redhat.com>
21027
21028         [BZ #14277]
21029         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
21030         free.  Simplify list management for _LIBC case.
21031
21032 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
21033
21034         [BZ #14273]
21035         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
21036         Clear sign bit of 64-bit integer value before comparing against
21037         overflow value.
21038
21039         * sysdeps/mach/configure: Regenerated.
21040
21041 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
21042
21043         [BZ #14278]
21044         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
21045
21046 2012-06-21  Jeff Law  <law@redhat.com>
21047
21048         [BZ #13882]
21049         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
21050         uint16_t for elements in the "seen" array to avoid char overflows.
21051         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21052         * elf/dl-open.c (dl_open_worker): Likewise.
21053
21054 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
21055
21056         * scripts/list-sources.sh: Scan PORTS for translations.
21057         * po/libc.pot: Regenerated.
21058
21059 2012-06-21  Andreas Jaeger  <aj@suse.de>
21060
21061         [BZ #12194]
21062         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
21063         warning.
21064         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
21065         * bits/byteswap-16.h (__bswap_16): Likewise.
21066         * bits/byteswap.h (__bswap_constant_16): Likewise.
21067
21068 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21069
21070         [BZ #14117]
21071         * sysdeps/i386/fpu_control.h: Removed.
21072         * sysdeps/x86_64/fpu_control.h: Moved to ...
21073         * sysdeps/x86/fpu_control.h: Here.
21074
21075         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
21076         (_FPU_SETCW): Likewise.
21077
21078 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
21079
21080         [BZ #14117]
21081         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
21082         * sysdeps/x86/fpu/bits/mathinline.h: This.
21083         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
21084
21085         [BZ #14050]
21086         [BZ #14117]
21087         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
21088         functions if __x86_64__ is defined.
21089
21090 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
21091
21092         * string/endian.h: Add !__ASSEMBLER__ condition for including
21093         conversion interfaces.
21094
21095 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
21096
21097         [BZ #14241]
21098         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
21099         of ABS(x) in calculating zero to negative powers other than odd
21100         integers.
21101         * math/libm-test.inc (pow_test): Add more tests.
21102
21103 2012-06-15  Andreas Jaeger  <aj@suse.de>
21104
21105         * manual/contrib.texi (Contributors): Update entry of Liubov
21106         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
21107         Machado Filho.
21108
21109 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
21110
21111         * string/string.h: Add __wur to GNU version of strerror_r.
21112
21113 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
21114
21115         [BZ #14229]
21116         * string/Makefile (tests): Add tst-strtok_r.
21117         * string/tst-strtok_r.c: New file.
21118         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
21119         RAX_LP/RDX_LP on SAVE_PTR.
21120
21121 2012-06-14  Roland McGrath  <roland@hack.frob.com>
21122
21123         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
21124
21125 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
21126
21127         * libm_test.inc (csqrt_test): Allow more spurious underflow
21128         exceptions.
21129         (j0_test): Likewise.
21130         (j1_test): Likewise.
21131         (y0_test): Likewise.
21132         (y1_test): Likewise.
21133
21134 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
21135
21136         * po/Makefile (libc.pot): Use UTF-8 charset.
21137
21138 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
21139
21140         [BZ #14210]
21141         Suppress sign-conversion warning from FD_SET.
21142         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
21143         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
21144         not unsigned long int.
21145         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
21146
21147 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
21148
21149         [BZ #14050]
21150         [BZ #14117]
21151         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
21152         __extern_always_inline instead of __extern_inline.
21153         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
21154         (__signbit): Likewise.
21155         (__signbitl): Support C++ namespace.
21156         (lrintf): New inline function.
21157         (lrint): Likewise.
21158         (llrintf): Likewise.
21159         (llrint): Likewise.
21160         (fmaxf): Likewise.
21161         (fmax): Likewise.
21162         (fminf): Likewise.
21163         (fmin): Likewise.
21164         (rint): Likewise.
21165         (rintf): Likewise.
21166         (ceil): Likewise.
21167         (ceilf): Likewise.
21168         (floor): Likewise.
21169         (floorf): Likewise.
21170         (nearbyint): Likewise.
21171         (nearbyintf): Likewise.
21172
21173 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
21174
21175         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
21176         non-default versions.
21177
21178 2012-06-11  Roland McGrath  <roland@hack.frob.com>
21179
21180         [BZ #14218]
21181         * manual/argp.texi (Argp): Reword argp_parse description slightly.
21182
21183 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
21184
21185         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
21186         (FE_UPWARD, FE_DOWNWARD): Don't define.
21187         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
21188         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21189
21190         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
21191         reading it.
21192         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
21193         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21194
21195 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21196
21197         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21198         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
21199         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
21200         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
21201
21202 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
21203
21204         [BZ #14117]
21205         * sysdeps/i386/fpu/bits/fenv.h: Removed.
21206         * sysdeps/i386/fpu/Implies: New file.
21207         * sysdeps/x86_64/fpu/Implies: Likewise.
21208         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
21209         * sysdeps/x86/fpu/bits/fenv.h: This.
21210
21211         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
21212         __SSE_MATH__.
21213
21214 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
21215
21216         [BZ #14134]
21217         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
21218         character 0xffff that matches the last element of the
21219         conversion table.
21220
21221 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21222
21223         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
21224         fmodl commit.
21225
21226 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21227
21228         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
21229         values higher than 25.6283.
21230
21231 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21232
21233         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
21234         subnormal exponent extraction and add some __builtin_expect.
21235         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
21236         Fix for subnormal mantissa calculation.
21237
21238 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
21239
21240         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
21241         cpu2 is -1 and errno is not ENOSYS.
21242
21243 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21244
21245         [BZ #14117]
21246         * sysdeps/i386/i486/bits/string.h: Renamed to ...
21247         * sysdeps/x86/bits/string.h: This.
21248         * sysdeps/x86_64/bits/string.h: Removed.
21249
21250         * sysdeps/i386/i486/bits/string.h: Define inline functions only
21251         if not compiling for x86-64, but compiling for >= i486.
21252
21253         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
21254         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
21255
21256         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
21257         New macro from Linux kernel 3.4.0.
21258         (FP_XSTATE_MAGIC2): Likewise.
21259         (FP_XSTATE_MAGIC2_SIZE): Likewise.
21260         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
21261         (struct _fpx_sw_bytes): New struct.
21262         (struct _xsave_hdr): Likewise.
21263         (struct _ymmh_state): Likewise.
21264         (struct _xstate): Likewise.
21265
21266         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
21267         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
21268         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
21269         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
21270         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
21271         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
21272
21273         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
21274         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
21275         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
21276         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
21277         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
21278         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
21279
21280 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21281
21282         [BZ #13743]
21283         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
21284         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
21285         (sysdep_headers): Include sys/platform/ppc.h.
21286         * sysdeps/powerpc/test-gettimebase.c: Test for
21287         __ppc_get_timebase() to catch future ISA opcode/insn changes.
21288         * manual/Makefile (appendices): Include platform.texi.
21289         * manual/contrib.texi (Contributors): Update @node pointers.
21290         * manual/maint.texi (Maintenance): Likewise.
21291         (Platform): New node.
21292         * manual/platform.texi: New file.  Document the new features.
21293
21294 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
21295             Jakub Jelinek  <jakub@redhat.com>
21296
21297         [BZ #14188]
21298         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
21299         where __builtin_expect is unavailable.
21300
21301 2012-06-03  David S. Miller  <davem@davemloft.net>
21302
21303         * stdlib/longlong.h: Updated from GCC.
21304
21305 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
21306
21307         [BZ #14042]
21308         * sysdeps/powerpc/powerpc32/mcount.c: New file.
21309         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
21310         __mcount_internal.
21311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
21312         (GLIBC_2.16): Likewise.
21313
21314 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21315
21316         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
21317
21318 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21319
21320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
21321         (default-abi): New variable.
21322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
21323         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
21324         variable.
21325         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
21326         Likewise.
21327         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
21328         Likewise.
21329         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
21330         Likewise.
21331
21332         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
21333         definition.  Document in comment.
21334
21335 2012-06-01  David S. Miller  <davem@davemloft.net>
21336
21337         * stdlib/longlong.h: Updated from GCC.
21338
21339 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21340
21341         [BZ #14117]
21342         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
21343         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
21344         sys/debugreg.h sys/io.h here.
21345         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
21346         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
21347         sys/io.h.
21348         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
21349         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
21350         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
21351         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
21352         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
21353         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
21354
21355         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
21356         Define only if __x86_64__ is defined.
21357
21358 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
21359
21360         [BZ #14048]
21361         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
21362         Use int64_t for variable i.
21363         * math/libm-test.inc (fmod_test): Add more tests.
21364
21365         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
21366         z computation is not scheduled after fetestexcept.
21367         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
21368         Use math_force_eval instead of asm to ensure calculation scheduled
21369         before exception test.
21370         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
21371         Ensure a1 + u.d computation is not scheduled after fetestexcept.
21372
21373 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
21374
21375         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
21376         computation is not scheduled after fetestexcept.
21377
21378 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
21379
21380         [BZ #14117]
21381         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
21382         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
21383
21384 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21385
21386         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
21387         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
21388
21389 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21390
21391         [BZ #14117]
21392         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
21393         <bits/wordsize.h>.
21394         (__WCHAR_MIN): Support __WORDSIZE == 64.
21395         (__WCHAR_MAX): Likewise.
21396
21397         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
21398         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
21399
21400         [BZ #14183]
21401         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
21402         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
21403
21404         [BZ #14117]
21405         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
21406         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
21407
21408         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
21409         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
21410
21411         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
21412         Defined to 1 if __x86_64__ isn't defined.
21413         (_STAT_VER_LINUX_OLD): New.
21414         (st_atime): Remove duplicate.
21415         (st_mtime): Likewise.
21416         (st_ctime): Likewise.
21417
21418 2012-05-31  David S. Miller  <davem@davemloft.net>
21419
21420         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
21421         entries.
21422
21423 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
21424
21425         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
21426         gen-libm-test.pl.
21427
21428         [BZ #14132]
21429         * elf/dl-reloc.c: Include <_itoa.h>.
21430         (_dl_reloc_bad_type): Remove use of INTUSE.
21431         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
21432         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
21433         * stdio-common/psiginfo.c (psiginfo): Likewise.
21434         * stdio-common/psignal.c (psignal): Likewise.
21435         * string/strsignal.c (strsignal): Likewise.
21436         * include/signal.h (_sys_siglist): Declare hidden proto.
21437         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
21438         INTVARDEF with libc_hidden_data_def.
21439         * stdio-common/itoa-udigits.c: Likewise.
21440         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
21441         (_itoa_lower_digits_internal): Remove declaration.
21442         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
21443         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
21444         (_sys_sigabbrev_internal): Remove aliases.
21445         (_sys_siglist): Define hidden alias.
21446
21447 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
21448
21449         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21450         bits/sysctl.h.
21451
21452 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21453
21454         [BZ #14117]
21455         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
21456         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
21457
21458         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
21459         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
21460         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
21461         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
21462         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
21463         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
21464
21465         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
21466         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
21467         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
21468
21469         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
21470         with __addr.
21471         (insw): Likewise.
21472         (insl): Likewise.
21473         (outsb): Likewise.
21474         (outsw): Likewise.
21475         (outsl): Likewise.
21476
21477         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
21478         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
21479         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
21480
21481         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
21482         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
21483         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
21484         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
21485         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
21486         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
21487
21488         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
21489         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
21490
21491         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
21492         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
21493
21494         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
21495         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
21496         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
21497
21498         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
21499         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
21500         to ...
21501         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
21502
21503         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
21504         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
21505         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
21506
21507         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
21508         for x86-64.
21509         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
21510
21511 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
21512
21513         * math/math.h (M_El): Use two more decimal places.
21514         (M_LOG2El): Likewise.
21515         (M_LOG10El): Likewise.
21516         (M_LN2l): Likewise.
21517         (M_LN10l): Likewise.
21518         (M_PIl): Likewise.
21519         (M_PI_2l): Likewise.
21520         (M_PI_4l): Likewise.
21521         (M_1_PIl): Likewise.
21522         (M_2_PIl): Likewise.
21523         (M_2_SQRTPIl): Likewise.
21524         (M_SQRT2l): Likewise.
21525         (M_SQRT1_2l): Likewise.
21526
21527 2012-05-31  David S. Miller  <davem@davemloft.net>
21528
21529         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
21530         values between float registers.
21531         * sysdeps/sparc/sparc64/memset.S: Likewise.
21532         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
21533
21534 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
21535
21536         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
21537         -D_FORTIFY_SOURCE=1.
21538         (CPPFLAGS-tst-longjmp_chk.c): Define.
21539         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
21540         (CPPFLAGS-tst-longjmp_chk2.c): Define.
21541         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
21542         CFLAGS-tst-wchar-h.c.
21543
21544 2012-05-31  Marek Polacek  <polacek@redhat.com>
21545
21546         [BZ #14132]
21547         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
21548         __endmntent_internal): Remove declaration.
21549         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
21550         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
21551         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
21552
21553 2012-05-30  David S. Miller  <davem@davemloft.net>
21554
21555         * sysdeps/sparc/sparc32/soft-fp/q_util.c
21556         (___Q_simulate_exceptions): Use real FP ops rather than writing
21557         into the %fsr.
21558         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
21559         Likewise.
21560
21561 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21562
21563         [BZ #14117]
21564         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
21565         * sysdeps/x86/bits/xtitypes.h: This.
21566
21567         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
21568         * sysdeps/x86/bits/wordsize.h: This.
21569
21570         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
21571         * sysdeps/x86/bits/huge_vall.h: This.
21572
21573         * sysdeps/i386/bits/select.h: Removed.
21574         * sysdeps/x86_64/bits/select.h: Renamed to ...
21575         * sysdeps/x86/bits/select.h: This.
21576
21577         * sysdeps/i386/bits/setjmp.h: Removed.
21578         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
21579         * sysdeps/x86/bits/setjmp.h: This.
21580
21581         * sysdeps/i386/bits/mathdef.h: Removed.
21582         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
21583         * sysdeps/x86/bits/mathdef.h: This.
21584
21585 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
21586
21587         [BZ #14132]
21588         * include/sys/socket.h (__connect_internal)
21589         (__libc_sa_len_internal): Remove declaration.
21590         (__connect, __libc_sa_len): Declare hidden_proto.
21591         (SA_LEN): Remove use of INTUSE.
21592         * socket/connect.c: Add libc_hidden_def.
21593         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
21594         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
21595         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
21596         alias.
21597         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
21598         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
21599         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
21600         of adding _internal alias.
21601
21602 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21603
21604         [BZ #14117]
21605         * sysdeps/i386/bits/link.h: Removed.
21606         * sysdeps/i386/bits/linkmap.h: Likewise.
21607         * sysdeps/x86_64/bits/link.h: Renamed to ...
21608         * sysdeps/x86/bits/link.h: This.
21609         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
21610         * sysdeps/x86/bits/linkmap.h: This.
21611
21612         * sysdeps/i386/bits/endian.h: Removed.
21613         * sysdeps/x86_64/bits/endian.h: Renamed to ...
21614         * sysdeps/x86/bits/endian.h: This.
21615
21616         * sysdeps/i386/bits/byteswap.h: Removed.
21617         * sysdeps/i386/bits/byteswap-16.h: Likewise.
21618         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
21619         * sysdeps/x86/bits/byteswap.h: This.
21620         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
21621         * sysdeps/x86/bits/byteswap-16.h: This.
21622         * sysdeps/i386/Implies: Add x86.
21623         * sysdeps/x86_64/Implies: Likewise.
21624
21625 2012-05-30  David S. Miller  <davem@davemloft.net>
21626
21627         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
21628         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
21629         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
21630         (FP_TRAPPING_EXCEPTIONS): Define.
21631         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
21632         (FP_TRAPPING_EXCEPTIONS): Define.
21633         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
21634         subnormals only when inexact has been signalled or underflow
21635         exceptions are enabled.
21636         (_FP_PACK_CANONICAL): Likewise.
21637
21638 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21639
21640         [BZ #14183]
21641         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
21642         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
21643
21644 2012-05-30  Richard Henderson  <rth@twiddle.net>
21645
21646         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
21647         with #ifndef NOT_IN_libc.
21648
21649         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
21650         marked to avoid plt entry.
21651
21652 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
21653
21654         [BZ #14112]
21655         * Makeconfig (default-abi): New macro.
21656         (abi-includes): Likewise.
21657         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
21658         $(abi-$(default-abi)-lib-soname) for soname if defined.
21659         ($(common-objpfx)gnu/lib-names.stmp): Generate from
21660         abi-variants.
21661         * Makefile (installed-stubs): Likewise.
21662         * include/stubs-biarch.h: Removed.
21663         * scripts/lib-names.awk: Only handle one library at a time.
21664         * scripts/soversions.awk: Remove WORDSIZE support.
21665         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
21666         entries.
21667         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
21668         Removed.
21669         (syscall-list-default-condition): Likewise.
21670         (syscall-list-default-condition): Likewise.
21671         (syscall-list-includes): Likewise.
21672         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
21673         syscall-list-* with abi-*.  Handle undefined abi-variants.
21674         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
21675         * sysdeps/unix/sysv/linux/i386/Implies: New file.
21676         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
21677         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
21678         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
21679         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
21680         Removed.
21681         (syscall-list-32-options): Likewise.
21682         (syscall-list-32-condition): Likewise.
21683         (syscall-list-64-options): Likewise.
21684         (syscall-list-64-condition): Likewise.
21685         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
21686         macro.
21687         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
21688         Renamed to ...
21689         (abi-*): This.
21690         (abi-64-ld-soname): New macro.
21691         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
21692         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
21693         Renamed to ...
21694         (abi-*): This.
21695         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
21696         * sysdeps/x86_64/x32/shlib-versions: Likewise.
21697
21698 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
21699
21700         * sysdeps/unix/sysv/linux/kernel-features.h
21701         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
21702         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
21703         include <kernel-features.h>.
21704         [!__NR_ftruncate64]: Remove conditional code.
21705         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21706         [__NR_ftruncate64]: Make code unconditional.
21707         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21708         * sysdeps/unix/sysv/linux/truncate64.c: Do not
21709         include <kernel-features.h>.
21710         [!__NR_ftruncate64]: Remove conditional code.
21711         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21712         [__NR_ftruncate64]: Make code unconditional.
21713         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
21715         include <kernel-features.h>.
21716         [!__NR_ftruncate64]: Remove conditional code.
21717         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21718         [__NR_ftruncate64]: Make code unconditional.
21719         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
21721         include <kernel-features.h>.
21722         [!__NR_ftruncate64]: Remove conditional code.
21723         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21724         [__NR_ftruncate64]: Make code unconditional.
21725         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
21726
21727         * configure.in (libc_cv_fpie): Weaken to a compile test using
21728         LIBC_TRY_CC_OPTION.
21729         * configure: Regenerated.
21730
21731 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21732
21733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
21734         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
21735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
21736         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
21737         Refreshed.
21738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
21739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
21740         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
21741         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
21742         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
21743         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
21744         Refreshed.
21745
21746 2012-05-27  David S. Miller  <davem@davemloft.net>
21747
21748         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
21749         (___Q_zero): New.
21750         (__Q_simulate_exceptions): Return void.  Change to simulate
21751         exceptions by writing into the %fsr.
21752         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
21753         (__Qp_handle_exceptions): Likewise.
21754         (numbers): Delete.
21755         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
21756         __Qp_handle_exceptions.
21757         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
21758         __Qp_handle_exceptions.
21759         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
21760         as unused and give dummy FP_RND_NEAREST initializer.
21761         (FP_INHIBIT_RESULTS): Define.
21762         (___Q_simulate_exceptions): Update declaration.
21763         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
21764         formatting.
21765         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
21766         as unused and give dummy FP_RND_NEAREST initializer.
21767         (__Qp_handle_exceptions): Update declaration.
21768         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
21769         formatting.
21770
21771 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
21772
21773         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
21774         the temporary FPU control word.
21775         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
21776         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
21777         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21778         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
21779         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21780         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21781         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21782         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21783         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21784         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
21785         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21786
21787 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
21788
21789         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
21790         fields.
21791
21792 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
21793
21794         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
21795         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
21796         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
21797         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
21798         Likewise.
21799         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
21800         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
21801         Likewise.
21802
21803 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
21804
21805         * po/h.po: Update from translation team.
21806
21807 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
21808
21809         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
21810
21811         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
21812         handling of denormals.
21813         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
21814         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
21815         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
21816         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
21817         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21818         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
21819         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
21820         Likewise.
21821
21822 2012-05-26  Marek Polacek  <polacek@redhat.com>
21823
21824         [BZ #14152]
21825         * math/libm-test.inc (fma_test): Don't always expect underflow
21826         exception.
21827
21828 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21829
21830         [BZ #12416]
21831         * elf/tst-execstack.c: Include stackinfo.h.
21832         (do_test): Adjust test case to ensure that pthread_getattr_np
21833         behaviour remains the same after marking stack executable.
21834
21835 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
21836
21837         * sysdeps/unix/sysv/linux/kernel-features.h
21838         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
21839         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
21840         kernel-features.h.
21841         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
21842         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
21843         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
21844         kernel-features.h.
21845         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
21846         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
21847
21848 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
21849
21850         * configure.in: Define the default includes to being none.
21851         * configure: Regenerated.
21852
21853 2012-05-25  Roland McGrath  <roland@hack.frob.com>
21854
21855         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
21856         * sysdeps/x86_64/setjmp.S: Likewise.
21857         * sysdeps/i386/bsd-setjmp.S: Likewise.
21858         * sysdeps/i386/bsd-_setjmp.S: Likewise.
21859         * sysdeps/i386/setjmp.S: Likewise.
21860         * sysdeps/i386/__longjmp.S: Likewise.
21861         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
21862         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
21863
21864         * include/stap-probe.h: New file.
21865         * configure.in: Handle --enable-systemtap.
21866         * configure: Regenerated.
21867         * config.h.in (USE_STAP_PROBE): New #undef.
21868         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
21869         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
21870         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
21871
21872 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
21873
21874         [BZ #13717]
21875         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
21876         to 2.4.0 where earlier.
21877         * sysdeps/unix/sysv/linux/configure: Regenerated.
21878         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
21879         <kernel-features.h>.
21880         [__ASSUME_32BITUIDS]: Make code unconditional.
21881         [!__ASSUME_32BITUIDS]: Remove conditional code.
21882         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
21883         <kernel-features.h>.
21884         [__ASSUME_32BITUIDS]: Make code unconditional.
21885         [!__ASSUME_32BITUIDS]: Remove conditional code.
21886         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
21887         [__ASSUME_32BITUIDS]: Make code unconditional.
21888         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
21889         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
21890         <kernel-features.h>.
21891         [__ASSUME_32BITUIDS]: Make code unconditional.
21892         [!__ASSUME_32BITUIDS]: Remove conditional code.
21893         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
21894         <kernel-features.h>.
21895         [__ASSUME_32BITUIDS]: Make code unconditional.
21896         [!__ASSUME_32BITUIDS]: Remove conditional code.
21897         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
21898         <kernel-features.h>.
21899         [__ASSUME_32BITUIDS]: Make code unconditional.
21900         [!__ASSUME_32BITUIDS]: Remove conditional code.
21901         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
21902         <kernel-features.h>.
21903         [__ASSUME_32BITUIDS]: Make code unconditional.
21904         [!__ASSUME_32BITUIDS]: Remove conditional code.
21905         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
21906         <kernel-features.h>.
21907         [__ASSUME_32BITUIDS]: Make code unconditional.
21908         [!__ASSUME_32BITUIDS]: Remove conditional code.
21909         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
21910         <kernel-features.h>.
21911         [__ASSUME_32BITUIDS]: Make code unconditional.
21912         [!__ASSUME_32BITUIDS]: Remove conditional code.
21913         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
21914         <kernel-features.h>.
21915         [__ASSUME_32BITUIDS]: Make code unconditional.
21916         [!__ASSUME_32BITUIDS]: Remove conditional code.
21917         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
21918         <kernel-features.h>.
21919         [__ASSUME_32BITUIDS]: Make code unconditional.
21920         [!__ASSUME_32BITUIDS]: Remove conditional code.
21921         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
21922         <kernel-features.h>.
21923         [__ASSUME_32BITUIDS]: Make code unconditional.
21924         [!__ASSUME_32BITUIDS]: Remove conditional code.
21925         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
21926         <kernel-features.h>.
21927         [__ASSUME_32BITUIDS]: Make code unconditional.
21928         [!__ASSUME_32BITUIDS]: Remove conditional code.
21929         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
21930         <kernel-features.h>.
21931         [__NR_setresgid] (__setresgid): Do not declare.
21932         [__ASSUME_32BITUIDS]: Make code unconditional.
21933         [!__ASSUME_32BITUIDS]: Remove conditional code.
21934         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
21935         <kernel-features.h>.
21936         [__NR_setresuid] (__setresuid): Do not declare.
21937         [__ASSUME_32BITUIDS]: Make code unconditional.
21938         [!__ASSUME_32BITUIDS]: Remove conditional code.
21939         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
21940         <kernel-features.h>.
21941         [__ASSUME_32BITUIDS]: Make code unconditional.
21942         [!__ASSUME_32BITUIDS]: Remove conditional code.
21943         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
21944         <kernel-features.h>.
21945         [__ASSUME_32BITUIDS]: Make code unconditional.
21946         [!__ASSUME_32BITUIDS]: Remove conditional code.
21947         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
21948         <kernel-features.h>.
21949         [__ASSUME_32BITUIDS]: Make code unconditional.
21950         [!__ASSUME_32BITUIDS]: Remove conditional code.
21951         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
21952         <kernel-features.h>.
21953         [__ASSUME_32BITUIDS]: Make code unconditional.
21954         [!__ASSUME_32BITUIDS]: Remove conditional code.
21955         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
21956         <kernel-features.h>.
21957         [__ASSUME_32BITUIDS]: Make code unconditional.
21958         [!__ASSUME_32BITUIDS]: Remove conditional code.
21959         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
21960         <kernel-features.h>.
21961         [__ASSUME_32BITUIDS]: Make code unconditional.
21962         [!__ASSUME_32BITUIDS]: Remove conditional code.
21963         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
21964         <kernel-features.h>.
21965         [__ASSUME_32BITUIDS]: Make code unconditional.
21966         [!__ASSUME_32BITUIDS]: Remove conditional code.
21967         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
21968         <kernel-features.h>.
21969         [__ASSUME_32BITUIDS]: Make code unconditional.
21970         [!__ASSUME_32BITUIDS]: Remove conditional code.
21971         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
21972         <kernel-features.h>.
21973         [__ASSUME_32BITUIDS]: Make code unconditional.
21974         [!__ASSUME_32BITUIDS]: Remove conditional code.
21975         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
21976         <kernel-features.h>.
21977         [__ASSUME_32BITUIDS]: Make code unconditional.
21978         [!__ASSUME_32BITUIDS]: Remove conditional code.
21979         * sysdeps/unix/sysv/linux/kernel-features.h
21980         (__ASSUME_SETRESUID_SYSCALL): Remove.
21981         (__ASSUME_SETRESGID_SYSCALL): Likewise.
21982         (__ASSUME_32BITUIDS): Likewise.
21983         (__ASSUME_LDT_WORKS): Likewise.
21984         (__ASSUME_O_DIRECTORY): Likewise.
21985         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
21986         architecture but not kernel version.
21987         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
21988         (__ASSUME_MMAP2_SYSCALL): Likewise.
21989         (__ASSUME_STAT64_SYSCALL): Likewise.
21990         (__ASSUME_IPC64): Likewise.
21991         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
21992         <kernel-features.h>.
21993         [__ASSUME_32BITUIDS]: Make code unconditional.
21994         [!__ASSUME_32BITUIDS]: Remove conditional code.
21995         * sysdeps/unix/sysv/linux/opendir.c: Do not include
21996         <kernel-features.h>.
21997         [__ASSUME_O_DIRECTORY]: Make code unconditional.
21998         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
21999         132096]: Remove conditional code.
22000         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
22001         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22002         <kernel-features.h>.
22003         [__ASSUME_32BITUIDS]: Make code unconditional.
22004         [!__ASSUME_32BITUIDS]: Remove conditional code.
22005         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22006         <kernel-features.h>.
22007         [__ASSUME_32BITUIDS]: Make code unconditional.
22008         [!__ASSUME_32BITUIDS]: Remove conditional code.
22009         * sysdeps/unix/sysv/linux/setegid.c: Do not include
22010         <kernel-features.h>.
22011         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
22012         unconditional.
22013         (__setresgid): Do not declare.
22014         [__ASSUME_32BITUIDS]: Make code unconditional.
22015         [!__ASSUME_32BITUIDS]: Remove conditional code.
22016         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
22017         <kernel-features.h>.
22018         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
22019         unconditional.
22020         (__setresuid): Do not declare.
22021         [__ASSUME_32BITUIDS]: Make code unconditional.
22022         [!__ASSUME_32BITUIDS]: Remove conditional code.
22023         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22024         <kernel-features.h>.
22025         [__ASSUME_32BITUIDS]: Make code unconditional.
22026         [!__ASSUME_32BITUIDS]: Remove conditional code.
22027         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
22028         <kernel-features.h>.
22029         [__ASSUME_32BITUIDS]: Make code unconditional.
22030         [!__ASSUME_32BITUIDS]: Remove conditional code.
22031
22032 2012-05-25  Richard Henderson  <rth@twiddle.net>
22033
22034         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
22035         dl_hwcap to ifunc resolver.
22036         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
22037         elf_ifunc_invoke.
22038         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
22039         dl_hwcap to ifunc resolver.
22040         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
22041
22042 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22043
22044         [BZ #14153]
22045         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
22046         for |x| <= 2**-26, not 2**-57.
22047         * math/libm-test.inc (acos_test): Do not allow spurious underflow
22048         exception.
22049
22050 2012-05-24  Jeff Law  <law@redhat.com>
22051
22052         * stdio-common/Makefile (tests): Add bug25.
22053         * stdio-common/bug25.c: New test.
22054
22055 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22056
22057         [BZ #13576]
22058         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
22059         multiple of MALLOC_ALIGNMENT in size.
22060         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
22061
22062 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22063
22064         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
22065         Require >= 256.
22066         (FILENAME_MAX): Use macro-int-constant.
22067         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
22068         (_IOFBF): Use macro-int-constant.
22069         (_IOLBF): Likewise.
22070         (_IONBF): Likewise.
22071         (SEEK_CUR): Likewise.
22072         (SEEK_END): Likewise.
22073         (SEEK_SET): Likewise.
22074         (TMP_MAX): Likewise.
22075         (EOF): Use macro-int-constant.  Require < 0.
22076         (NULL): Use macro-constant.  Require == 0.
22077         (stdin): Require type to be FILE *.
22078         (stdout): Likewise.
22079         (stderr): Likewise.
22080         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
22081         macro-int-constant.
22082         (EXIT_SUCCESS): Likewise.
22083         (NULL): Use macro-constant.  Require == 0.
22084         (RAND_MAX): Use macro-int-constant.
22085         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
22086         [C99-based standards] (strtof): Require function.
22087         [C99-based standards] (strtold): Likewise.
22088         [C99-based standards] (strtoll): Likewise.
22089         [C99-based standards] (strtoull): Likewise.
22090         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
22091         [ISO || ISO99 || ISO11] (limits.h): Likewise.
22092         [ISO || ISO99 || ISO11] (math.h): Likewise.
22093         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
22094         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
22095         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22096
22097 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
22098
22099         [BZ #14132]
22100         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
22101         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
22102         * intl/dgettext.c (DCGETTEXT): Likewise.
22103         * intl/gettext.c (DCGETTEXT): Likewise.
22104         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
22105         * posix/regex_internal.h (gettext): Likewise.
22106         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
22107         Remove declaration.
22108         * include/argz.h (__argz_count_internal)
22109         (__argz_stringify_internal): Remove declaration.
22110         (__argz_count, __argz_stringify): Declare hidden proto.
22111         * intl/dcgettext.c: Remove use of INTDEF.
22112         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
22113         * string/argz-stringify.c: Likewise.
22114         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22115         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22116         Declare hidden proto.
22117         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
22118         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
22119         Declare hidden proto.
22120         * include/stdio.h (__asprintf_internal): Don't declare.
22121         (__asprintf): Don't define as macro.  Declare hidden proto.
22122         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
22123         (__fsetlocking): Declare hidden proto.
22124         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
22125         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
22126         hidden proto.
22127         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
22128         (_IO_setlinebuf): Remove use of INTUSE.
22129         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
22130         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
22131         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
22132         Remove declaration.
22133         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
22134         (_IO_do_flush): Remove use of INTUSE.
22135         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
22136         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
22137         (_IO_adjust_column, _IO_least_wmarker)
22138         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
22139         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
22140         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
22141         (_IO_default_doallocate, _IO_wdefault_doallocate)
22142         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
22143         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
22144         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
22145         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
22146         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
22147         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
22148         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
22149         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
22150         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
22151         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
22152         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
22153         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
22154         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
22155         proto.
22156         (_IO_flush_all_internal, _IO_adjust_column_internal)
22157         (_IO_default_uflow_internal, _IO_default_finish_internal)
22158         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
22159         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
22160         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
22161         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
22162         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
22163         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
22164         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
22165         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
22166         (_IO_file_close_internal, _IO_file_close_it_internal)
22167         (_IO_file_underflow_internal, _IO_file_overflow_internal)
22168         (_IO_file_init_internal, _IO_file_attach_internal)
22169         (_IO_file_fopen_internal, _IO_file_read_internal)
22170         (_IO_file_sync_internal, _IO_file_seek_internal)
22171         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
22172         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
22173         (_IO_str_underflow_internal, _IO_str_overflow_internal)
22174         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
22175         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
22176         (_IO_list_all_internal, _IO_link_in_internal)
22177         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
22178         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
22179         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
22180         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
22181         (_IO_do_write_internal, _IO_padn_internal)
22182         (_IO_getline_info_internal, _IO_getline_internal)
22183         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
22184         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
22185         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
22186         (_IO_vfscanf_internal, _IO_vfprintf_internal)
22187         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
22188         (_IO_init_internal, _IO_un_link_internal): Don't declare.
22189         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
22190         with libc_hidden_ver, remove use of INTUSE.
22191         * libio/genops.c: Likewise.
22192         * libio/freopen.c: Likewise.
22193         * libio/freopen64.c: Likewise.
22194         * libio/iofclose.c: Likewise.
22195         * libio/iofdopen.c: Likewise.
22196         * libio/iofflush.c: Likewise.
22197         * libio/iofflush_u.c: Likewise.
22198         * libio/iofgets.c: Likewise.
22199         * libio/iofgets_u.c: Likewise.
22200         * libio/iofopen.c: Likewise.
22201         * libio/iofopncook.c: Likewise.
22202         * libio/iofread.c: Likewise.
22203         * libio/iofread_u.c: Likewise.
22204         * libio/ioftell.c: Likewise.
22205         * libio/iofwrite.c: Likewise.
22206         * libio/iogetline.c: Likewise.
22207         * libio/iogets.c: Likewise.
22208         * libio/iogetwline.c: Likewise.
22209         * libio/iopadn.c: Likewise.
22210         * libio/iopopen.c: Likewise.
22211         * libio/ioseekoff.c: Likewise.
22212         * libio/ioseekpos.c: Likewise.
22213         * libio/iosetbuffer.c: Likewise.
22214         * libio/iosetvbuf.c: Likewise.
22215         * libio/ioungetc.c: Likewise.
22216         * libio/ioungetwc.c: Likewise.
22217         * libio/iovdprintf.c: Likewise.
22218         * libio/iovsprintf.c: Likewise.
22219         * libio/iovsscanf.c: Likewise.
22220         * libio/memstream.c: Likewise.
22221         * libio/obprintf.c: Likewise.
22222         * libio/oldfileops.c: Likewise.
22223         * libio/oldiofclose.c: Likewise.
22224         * libio/oldiofdopen.c: Likewise.
22225         * libio/oldiofopen.c: Likewise.
22226         * libio/oldiopopen.c: Likewise.
22227         * libio/oldstdfiles.c: Likewise.
22228         * libio/putc.c: Likewise.
22229         * libio/setbuf.c: Likewise.
22230         * libio/setlinebuf.c: Likewise.
22231         * libio/stdfiles.c: Likewise.
22232         * libio/strops.c: Likewise.
22233         * libio/vasprintf.c: Likewise.
22234         * libio/vscanf.c: Likewise.
22235         * libio/vsnprintf.c: Likewise.
22236         * libio/vswprintf.c: Likewise.
22237         * libio/wfiledoalloc.c: Likewise.
22238         * libio/wfileops.c: Likewise.
22239         * libio/wgenops.c: Likewise.
22240         * libio/wmemstream.c: Likewise.
22241         * libio/wstrops.c: Likewise.
22242         * libio/__fpurge.c: Likewise.
22243         * libio/__fsetlocking.c: Likewise.
22244         * assert/assert.c: Likewise.
22245         * debug/fgets_chk.c: Likewise.
22246         * debug/fgets_u_chk.c: Likewise.
22247         * debug/fread_chk.c: Likewise.
22248         * debug/fread_u_chk.c: Likewise.
22249         * debug/gets_chk.c: Likewise.
22250         * debug/obprintf_chk.c: Likewise.
22251         * debug/vasprintf_chk.c: Likewise.
22252         * debug/vdprintf_chk.c: Likewise.
22253         * debug/vsnprintf_chk.c: Likewise.
22254         * debug/vsprintf_chk.c: Likewise.
22255         * malloc/mtrace.c: Likewise.
22256         * misc/error.c: Likewise.
22257         * misc/syslog.c: Likewise.
22258         * stdio-common/asprintf.c: Likewise.
22259         * stdio-common/fxprintf.c: Likewise.
22260         * stdio-common/getw.c: Likewise.
22261         * stdio-common/isoc99_fscanf.c: Likewise.
22262         * stdio-common/isoc99_scanf.c: Likewise.
22263         * stdio-common/isoc99_vfscanf.c: Likewise.
22264         * stdio-common/isoc99_vscanf.c: Likewise.
22265         * stdio-common/isoc99_vsscanf.c: Likewise.
22266         * stdio-common/printf-prs.c: Likewise.
22267         * stdio-common/printf_fp.c: Likewise.
22268         * stdio-common/printf_fphex.c: Likewise.
22269         * stdio-common/printf_size.c: Likewise.
22270         * stdio-common/putw.c: Likewise.
22271         * stdio-common/scanf.c: Likewise.
22272         * stdio-common/sprintf.c: Likewise.
22273         * stdio-common/tmpfile.c: Likewise.
22274         * stdio-common/vfprintf.c: Likewise.
22275         * stdio-common/vfscanf.c: Likewise.
22276         * stdlib/strfmon_l.c: Likewise.
22277         * sunrpc/openchild.c: Likewise.
22278         * sunrpc/xdr_stdio.c: Likewise.
22279         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
22280         * sysdeps/mach/hurd/tmpfile.c: Likewise.
22281
22282 2012-05-24  Roland McGrath  <roland@hack.frob.com>
22283
22284         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
22285
22286         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
22287         in the third column, to generate for the shared library an IFUNC
22288         that uses _dl_vdso_vsym.
22289         * Makerules (COMPILE.c, compile-stdin.c): New variables.
22290         * Makeconfig (object-suffixes-noshared): New variable.
22291
22292         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
22293         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
22294         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
22295         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
22296
22297         [BZ #14132]
22298         * include/sys/time.h (__gettimeofday): Remove macro.
22299         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
22300         * time/gettimeofday.c (__gettimeofday): Remove #undef.
22301         Remove INTDEF.
22302         (__gettimeofday): Add libc_hidden_def.
22303         (gettimeofday): Add libc_hidden_weak.
22304         * sysdeps/mach/gettimeofday.c: Likewise.
22305         * sysdeps/posix/gettimeofday.c: Likewise.
22306         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
22307         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
22308         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
22309         (__gettimeofday_internal): Remove strong_alias.
22310         (__gettimeofday): Add libc_hidden_def.
22311         (gettimeofday): Add libc_hidden_weak.
22312         * sysdeps/unix/syscalls.list (gettimeofday):
22313         Remove __gettimeofday_internal alias.
22314
22315 2012-05-24  Daniel Jacobowitz  <drow@false.org>
22316             H.J. Lu  <hongjiu.lu@intel.com>
22317
22318         [BZ #12495]
22319         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
22320         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
22321         (largebin_index_32_big): New.
22322         (largebin_index): Use it for 16-byte alignment.
22323         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
22324         correction with front_misalign.
22325
22326 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
22327
22328         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
22329         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
22330         Likewise.
22331         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
22332         Likewise.
22333         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
22334         Likewise.
22335         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
22336         Likewise.
22337         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
22338         Likewise.
22339         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
22340         Likewise.
22341         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
22342         Likewise.
22343         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
22344         Likewise.
22345         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
22346         Likewise.
22347         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
22348         Likewise.
22349         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
22350         Likewise.
22351         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
22352         Likewise.
22353
22354         * scripts/data/c++-types-x32-linux-gnu.data: New file.
22355         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
22356
22357 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22358
22359         [BZ #10846]
22360         [BZ #14036]
22361         * math/libm-test.inc (exp_test): Add test from bug 14036.
22362         (pow_test): Add test from bug 10846.
22363
22364         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
22365         and other flags.
22366         (special_function): Do not include flags in test name.
22367         (parse_args): Likewise.
22368         * sysdeps/i386/fpu/libm-test-ulps: Update.
22369         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
22370         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
22371         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
22372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22373
22374         * math/gen-libm-test.pl (%beautify): Add entries for underflow
22375         exceptions.
22376         * math/libm-test.inc ("Philosophy"): Update comment about
22377         exception testing.
22378         (UNDERFLOW_EXCEPTION): New macro.
22379         (UNDERFLOW_EXCEPTION_OK): Likewise.
22380         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
22381         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
22382         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
22383         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
22384         (INVALID_EXCEPTION_OK): Update value.
22385         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
22386         (OVERFLOW_EXCEPTION_OK): Likewise.
22387         (IGNORE_ZERO_INF_SIGN): Likewise.
22388         (test_exceptions): Handle underflow exceptions.
22389         (acos_test): Update for underflow exception expectations.
22390         (cexp_test): Likewise.
22391         (clog_test): Likewise.
22392         (clog10_test): Likewise.
22393         (csqrt_test): Likewise.
22394         (ctan_test): Likewise.
22395         (ctanh_test): Likewise.
22396         (exp_test): Likewise.
22397         (exp10_test): Likewise.
22398         (exp2_test): Likewise.
22399         (expm1_test): Likewise.
22400         (fma_test): Likewise.
22401         (j0_test): Likewise.
22402         (jn_test): Likewise.
22403         (nexttoward_test): Likewise.
22404         (pow_test): Likewise.
22405         (scalbn_test): Likewise.
22406         (scalbln_test): Likewise.
22407         (tan_test): Likewise.
22408         (y1_test): Likewise.
22409         * sysdeps/i386/fpu/libm-test-ulps: Update.
22410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22411
22412 2012-05-23  David S. Miller  <davem@davemloft.net>
22413
22414         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
22415         (__libc_sigaction): Remove unused local variables.
22416
22417 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22418
22419         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
22420
22421 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22422
22423         mktime: avoid signed integer overflow
22424         * time/mktime.c (__mktime_internal): Do not mishandle the case
22425         where diff == INT_MIN.
22426
22427         mktime: simplify computation of average
22428         * time/mktime.c (ranged_convert): Use new time_t_avg function
22429         instead of rolling our own (probably-slower) code.
22430
22431         mktime: do not assume signed right shift propagates sign bit
22432         * time/mktime.c (isdst_differ): New static function.
22433         (__mktime_internal): No need to normalize tm_isdst now.
22434         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
22435         tm_isdst values.
22436
22437         mktime: merge another wrapv change from gnulib
22438         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
22439         from some compilers.
22440
22441         mktime: remove incorrect attempt at unusual arithmetics
22442         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
22443         The code didn't really work on such machines anyway.
22444         (TYPE_MINIMUM): Assume two's complement.
22445         (twos_complement_arithmetic): Verify that long_int and time_t
22446         are two's complement (or unsigned, in the latter case).
22447
22448         mktime: check signed shifts on long_int and time_t, too
22449         * time/mktime.c (SHR): Check that shifts work as desired
22450         on the types long_int and time_t too, as SHR is used on
22451         such types.
22452
22453         mktime: do not assume 'long' is wide enough
22454         * time/mktime.c (verify): Move decl up.
22455         (long_int): New type.
22456         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
22457         to remove assumption in the code that 'long' is wide enough to
22458         store year values.  This assumption is not true on x32 and on
22459         some non-glibc platforms.
22460
22461         mktime: merge wrapv change from gnulib
22462         * time/mktime.c (WRAPV): New macro.
22463         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
22464         (guess_time_tm, __mktime_internal): Do not assume that signed
22465         integer overflow wraps around; modern compilers generate code
22466         where this assumption is no longer valid.
22467
22468 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22469
22470         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
22471         Replace "jmp L(pseudo_end)" with "ret".
22472         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
22473         Likewise.
22474
22475 2012-05-23  Andreas Jaeger  <aj@suse.de>
22476
22477         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
22478         * sysdeps/unix/sysv/linux/poll.c: Remove file.
22479
22480 2012-05-23  Andreas Jaeger  <aj@suse.de>
22481             Maximilian Attems  <max@stro.at>
22482
22483         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
22484         New macros.
22485
22486 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
22487
22488         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
22489         code so that pseudo_end is just ret and the stack pointer is
22490         correct also for static library in error case.
22491
22492 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
22493
22494         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
22495         move to syscalls.list.
22496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
22497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
22498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
22499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
22500
22501         * manual/install.texi (Running make install): Do not mention Linux
22502         kernel version for which pt_chown is not needed.
22503         (Linux): Do not mention problems with nscd with 2.0 kernels.
22504         * INSTALL: Regenerated.
22505
22506 2012-05-23  Andreas Jaeger  <aj@suse.de>
22507
22508         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
22509         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
22510         macro.
22511         * sysdeps/unix/sysv/linux/s390/bits/mman.h
22512         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22513         * sysdeps/unix/sysv/linux/sh/bits/mman.h
22514         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22515         * sysdeps/unix/sysv/linux/i386/bits/mman.h
22516         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22517         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
22518         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22519         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
22520         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
22521         * sysdeps/unix/sysv/linux/bits/in.h
22522         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
22523
22524 2012-05-22  Roland McGrath  <roland@hack.frob.com>
22525
22526         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
22527         (PREPARE_VERSION): Just use assert instead, it will be elided
22528         under [NDEBUG] anyway.
22529
22530 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22531
22532         * sysdeps/unix/sysv/linux/Makefile: Include
22533         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
22534         (sysdep_routines): Remove sysctl.
22535         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
22536         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
22537         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
22538         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
22539         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
22540
22541 2012-05-22  Andreas Jaeger  <aj@suse.de>
22542
22543         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
22544         that pseudo_end is just ret and the stack pointer is correct also
22545         for static library in error case.
22546
22547 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
22548
22549         [BZ #14122]
22550         * nss/nsswitch.c (defconfig_entries): New variable.
22551         (__nss_database_lookup): Don't leak defconfig entries.
22552         (nss_parse_service_list): Don't leak on error paths.
22553         (free_database_entries): New function.
22554         (free_defconfig): New function.
22555         (free_mem): Move common code to free_database_entries.
22556
22557 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22558
22559         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
22560         Add arch_prctl.
22561         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
22562
22563         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22564         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
22565         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
22566         New macro.
22567         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
22568         (INTERNAL_SYSCALL_TYPES): Likewise.
22569         (LOAD_ARGS_TYPES_[1-6]): Likewise.
22570         (LOAD_REGS_TYPES_[1-6]): Likewise.
22571         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
22572         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
22573
22574 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22575
22576         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
22577         copysignl for GLIBC_2_0.
22578         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
22579         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
22580         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
22581         logbl for GLIBC_2_0.
22582         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
22583         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
22584
22585 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22586
22587         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
22588         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
22589
22590         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
22591         Use "neg %eax".
22592
22593         * time/mktime.c: Update copyright years.
22594
22595 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22596
22597         mktime: merge comment-quoting-style change from gnulib
22598         * time/mktime.c: Quote 'like this' in comments.
22599         The GNU coding standards suggest that we no longer quote `like this',
22600         as "`" and "'" are typically rendered asymmetrically nowadays.
22601         The typical gnulib style is to quote 'like this' when quoting
22602         code, and "like this" when quoting English.
22603
22604         * time/mktime.c (compile-command): Add "-I.".
22605
22606         mktime: merge mktime-internal.h change from gnulib
22607         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
22608
22609         mktime: merge time_r change from gnulib
22610         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
22611
22612         mktime: merge DEBUG change from gnulib
22613         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
22614         case system <time.h> has a #define.
22615
22616         mktime: merge <sys/types.h> change from gnulib
22617         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
22618         since <time.t> is now guaranteed to define time_t.
22619
22620         mktime: merge HAVE_CONFIG_H change from gnulib
22621         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
22622
22623 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
22624
22625         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
22626         Use "neg %eax".
22627
22628         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
22629         __rlim_t cast.
22630         (struct rusage): Use anonymous union to pad each field to
22631         __syscall_slong_t.
22632
22633 2012-05-21  David S. Miller  <davem@davemloft.net>
22634
22635         * Makefules (o-iterator): Remove .s cases.
22636         (compile-command.s): Delete.
22637         (COMPILE.s): Delete.
22638         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
22639
22640 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
22641
22642         * configure.in (libc_cv_predef_stack_protector): Only consider
22643         "foobar" and "__stack_chk_fail" lines in libc_undefs.
22644         * configure: Regenerated.
22645
22646 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22647
22648         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
22649         New macro.  Use R*LP on int and pointer.
22650         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
22651         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
22652         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
22653         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
22654
22655         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
22656         [__WORDSIZE_TIME64_COMPAT32] instead of
22657         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
22658         (struct utmp): Likewise.
22659         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
22660         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
22661         Renamed to ...
22662         (__WORDSIZE_TIME64_COMPAT32): This.
22663         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
22664         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
22665         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
22666         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
22667         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
22668         (__WORDSIZE_TIME64_COMPAT32): New macro.
22669
22670 2012-05-21  Andreas Jaeger  <aj@suse.de>
22671
22672         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
22673         only if [SHARED]. Add prototype for __wcschr_ia32.
22674
22675 2012-05-21  Roland McGrath  <roland@hack.frob.com>
22676
22677         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
22678         of %rbp unmolested in the jmp_buf while mangling the low bits.
22679         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
22680         unmolested high bits of %rbp while demangling the low bits.
22681         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
22682
22683 2012-05-21  Andreas Jaeger  <aj@suse.de>
22684
22685         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
22686         * sunrpc/svc_simple.c: Use it for registerrpc.
22687         * sunrpc/xcrypt.c: Use it for passwd2des.
22688
22689         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
22690
22691 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22692
22693         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
22694         Don't define if [__SYSCALL_WORDSIZE != 32].
22695         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
22696         New macro.
22697
22698 2012-05-21  Bruno Haible  <bruno@clisp.org>
22699             Andreas Jaeger  <aj@suse.de>
22700
22701         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
22702         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
22703         inptr and inend for must_buffer_ch.
22704         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
22705         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
22706         * stdio-common/Makefile (tests): Remove bug15.
22707         (bug15-ENV): Remove macro.
22708         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
22709         anymore.
22710
22711 2012-05-19  Andreas Jaeger  <aj@suse.de>
22712             Roland McGrath  <roland@hack.frob.com>
22713
22714         * manual/contrib.texi: Completely rewritten. It contains now an
22715         alphabetical list of contributors and their contributions.
22716
22717 2012-05-21  Richard Henderson  <rth@twiddle.net>
22718
22719         * misc/getauxval.c (__getauxval): Use unsigned long int.
22720         * misc/sys/auxv.h: Include <sys/cdefs.h>.
22721         (getauxval): Use unsigned long int.
22722
22723 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22724
22725         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
22726
22727 2012-05-21  Roland McGrath  <roland@hack.frob.com>
22728
22729         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
22730         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
22731         __alignof__ (long double).
22732
22733 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22734
22735         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22736
22737 2012-05-20  Richard Henderson  <rth@twiddle.net>
22738
22739         * misc/getauxval.c: New file.
22740         * misc/sys/auxv.h: New file.
22741         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
22742         (routines): Add getauxval.
22743         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
22744         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
22745         * elf/dl-sysdep.c (_dl_auxv): Remove.
22746         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
22747         * elf/dl-support.c (_dl_auxv): New variable.
22748         (_dl_aux_init): Initialize it.
22749         * manual/startup.texi (Auxiliary Vector): New node.
22750         * sysdeps/generic/bits/hwcap.h: New file.
22751         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
22752         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
22753         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
22754         * sysdeps/sparc/sysdep.h: ... here.  Include it.
22755         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
22756         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
22757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22758         Update.
22759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
22760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
22761         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
22762         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
22763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
22764         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
22765         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
22766         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
22767
22768 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22769
22770         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22771
22772 2012-05-19  David S. Miller  <davem@davemloft.net>
22773
22774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22775
22776 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
22777
22778         [BZ #14123]
22779         * math/s_ccosh.c: Include <float.h>
22780         (__ccosh): Avoid internal overflow calculating sinh and cosh
22781         values before multiplying by sin and cos values.
22782         * math/s_ccoshf.c: Likewise.
22783         * math/s_ccoshl.c: Likewise.
22784         * math/s_csin.c: Likewise.
22785         * math/s_csinf.c: Likewise.
22786         * math/s_csinl.c: Likewise.
22787         * math/s_csinh.c: Likewise.
22788         * math/s_csinhf.c: Likewise.
22789         * math/s_csinhl.c: Likewise.
22790         * math/libm-test.inc (ccos_test): Add more tests.
22791         (ccosh_test): Likewise.
22792         (csin_test): Likewise.
22793         (csinh_test): Likewise.
22794         * sysdeps/i386/fpu/libm-test-ulps: Update.
22795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22796
22797 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
22798
22799         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
22800         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
22801
22802         * sysdeps/x86_64/x32/_itoa.h: Add comment.
22803
22804 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
22805
22806         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
22807         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
22808         * sysdeps/powerpc/soft-fp/Versions: Likewise.
22809         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
22810         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
22811         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
22812         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
22813         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
22814         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
22815         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
22816         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
22817         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
22818         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
22819         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
22820         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
22821         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
22822         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
22823         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
22824         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
22825         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
22826         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
22827         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
22828         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
22829         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
22830         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
22831         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
22832         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
22833         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
22834         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
22835         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
22836         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
22837
22838 2012-05-18  Andreas Jaeger  <aj@suse.de>
22839
22840         * csu/.gitignore: Delete.
22841
22842 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22843
22844         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
22845         (timex): Use __syscall_slong_t.
22846
22847 2012-05-18  Andreas Jaeger  <aj@suse.de>
22848             Carlos O'Donell  <carlos_odonell@mentor.com>
22849
22850         * manual/install.texi (Configuring and compiling): Update
22851         description about files modified in the source directory.
22852         * INSTALL: Regenerated.
22853
22854 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22855
22856         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
22857         value.  Use "or" to set return value to -1.
22858         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
22859         negate return value.
22860
22861 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22862
22863         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
22864         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
22865         failure if the compiler has Graphite support disabled.
22866         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
22867         Likewise.
22868         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
22869         CFLAGS-memmove.c): Likewise.
22870         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
22871         Likewise.
22872
22873 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
22874
22875         * sysdeps/x86_64/x32/_itoa.h: New file.
22876
22877         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
22878         getdents system call only if kernel and user dirents have the
22879         same d_ino and d_off.
22880
22881         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
22882         LLONG_MAX != LONG_MAX.
22883         (_itoa_word): Use _ITOA_WORD_TYPE on value.
22884         (_fitoa_word): Likewise.
22885
22886         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
22887         years.
22888         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
22889         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
22890         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
22891
22892         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
22893         include <bits/wordsize.h>.  Check __x86_64__ instead of
22894         __WORDSIZE.
22895         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
22896         if __x86_64__ is defined.  Use anonymous union on fpstate.
22897
22898         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
22899         anonymous union.
22900
22901 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
22902
22903         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
22904         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
22905         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
22906         Refer to _rtld_local_ro instead of _rtld_global_ro.
22907         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
22908         Likewise.
22909         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
22910         Likewise.
22911         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
22912         Likewise.
22913         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
22914         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
22915         of _rtld_global, and rtld_progname instead of _dl_argv[0].
22916
22917         * sysdeps/powerpc/powerpc32/dl-machine.c
22918         (__elf_machine_runtime_setup) [PROF]: Don't reference
22919         _dl_prof_resolve.
22920
22921 2012-05-18  Andreas Jaeger  <aj@suse.de>
22922
22923         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
22924         function only available for GCCs before 3.4 since GCC 3.4
22925         introduced a builtin.
22926         (lrint): Likewise.
22927         (llrintf): Likewise.
22928         (llrint): Likewise.
22929         (fmaxf): Likewise.
22930         (fmax): Likewise.
22931         (fminf): Likewise.
22932         (fmin): Likewise.
22933         (rint): Likewise.
22934         (rintf): Likewise.
22935         (nearbyint): Likewise.
22936         (nearbyintf): Likewise.
22937         (ceil): Likewise.
22938         (ceilf): Likewise.
22939         (floor): Likewise.
22940         (floorf): Likewise.
22941
22942 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22943
22944         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
22945         on both fields and cast pointer to __syscall_ulong_t.
22946
22947         * bits/types.h (__fsword_t): New type.
22948         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
22949         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
22950         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
22951         (__FSWORD_T_TYPE): Likewise.
22952         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
22953         (__FSWORD_T_TYPE): Likewise.
22954         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
22955         (__FSWORD_T_TYPE): Likewise.
22956         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
22957         (__FSWORD_T_TYPE): Likewise.
22958         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
22959         __SWORD_TYPE with __fsword_t.
22960         (statfs64): Likewise.
22961
22962 2012-05-17  David S. Miller  <davem@davemloft.net>
22963
22964         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
22965
22966 2012-05-17  Andreas Jaeger  <aj@suse.de>
22967
22968         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
22969         warning.
22970
22971 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22972
22973         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
22974
22975 2012-05-17  Andreas Jaeger  <aj@suse.de>
22976
22977         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
22978         when it is used.
22979
22980 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
22981
22982         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
22983
22984 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
22985
22986         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
22987         * sysdeps/x86_64/tst-mallocalign1.c: New file.
22988
22989 2012-05-17  Andreas Jaeger  <aj@suse.de>
22990             Carlos O'Donell  <carlos_odonell@mentor.com>
22991
22992         [BZ #14059]
22993         * sysdeps/x86_64/multiarch/init-arch.h
22994         (bit_YMM_Usable): Rename to...
22995         (bit_AVX_Usable): ... this.
22996         (bit_FMA4_Usable): New macro.
22997         (bit_XMM_state): New macro.
22998         (bit_YMM_state): New macro.
22999         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
23000         [__ASSEMBLER__] (index_AVX_Usable): ... this.
23001         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
23002         (CPUID_OSXSAVE): New macro.
23003         (CPUID_AVX): New macro.
23004         (CPUID_FMA4): New macro.
23005         (index_YMM_Usable): Rename to...
23006         (index_AVX_Usable): ... this.
23007         (HAS_AVX): Use HAS_ARCH_FEATURE.
23008         (HAS_FMA4): Likewise.
23009         (HAS_YMM_USABLE): Remove.
23010         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23011         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
23012         are present.
23013         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
23014         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
23015         * sysdeps/x86_64/multiarch/Makefile: Likewise.
23016         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
23017         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
23018
23019 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
23020
23021         * math/libm-test.c: Support platforms without multiple rounding modes.
23022         * math/bug-nextafter.c: Support platforms without FP exceptions.
23023         * math/bug-nexttoward.c: Likewise.
23024         * math/test-fenv.c: Likewise.
23025         * math/test-misc.c: Likewise.
23026         * stdlib/bug-getcontext.c: Likewise.
23027
23028 2012-05-17  Andreas Jaeger  <aj@suse.de>
23029
23030         * manual/examples/search.c (critter_cmp): Change signature to
23031         avoid warnings.
23032         * manual/string.texi (Collation Functions): Likewise.
23033
23034 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23035
23036         * bits/types.h: Fold copyright years.
23037         * bits/typesizes.h: Likewise.
23038         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
23039         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
23040         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
23041         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
23042         * time/time.h: Likewise.
23043
23044 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
23045
23046         [BZ #208]
23047         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
23048         in instead of returning them.  Return void.
23049         (__libc_mallinfo): Accumulate over all arenas.
23050         (__malloc_stats): Adjust for change in int_mallinfo interface.
23051
23052 2012-05-16  Roland McGrath  <roland@hack.frob.com>
23053
23054         [BZ #10375]
23055         * configure.in (NM): Add AC_CHECK_TOOL for it.
23056         (libc_extra_cflags): New substituted variable.
23057         Check for -fstack-protector being used implicitly.
23058         * configure: Regenerated.
23059         * config.make.in (config-extra-cflags): New variable,
23060         gets @libc_extra_cflags@.
23061         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
23062
23063         [BZ #10375]
23064         * configure.in: Check for _FORTIFY_SOURCE being predefined.
23065         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
23066         * configure: Regenerated.
23067         * config.make.in (CPPUNDEFS): New substituted variable.
23068         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
23069         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
23070         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
23071
23072 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23073
23074         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
23075         (mq_attr): Use __syscall_slong_t.
23076
23077 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23078
23079         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
23080         Check __x86_64__ instead of __WORDSIZE.
23081         (_STAT_VER_LINUX): Likewise.
23082         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
23083         __syscall_ulong_t and __syscall_slong_t.
23084         (stat64): Likewise.
23085
23086 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23087
23088         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
23089
23090 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23091
23092         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
23093
23094 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23095
23096         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
23097         __syscall_ulong_t.
23098
23099         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
23100         include <bits/wordsize.h>.  Check __x86_64__ instead of
23101         __WORDSIZE.
23102         (greg_t): Use "__extension__ long long int" if __x86_64__ is
23103         defined.
23104         (mcontext_t): Replace "unsigned long" with "unsigned long long".
23105
23106         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
23107         include <bits/wordsize.h>.  Check __x86_64__ instead of
23108         __WORDSIZE.
23109         (user_regs_struct): Use "__extension__ unsigned long long"
23110         instead of "unsigned long" if __x86_64__ is defined.
23111         (user): Likewise.  Pad after pointer field if __ILP32__ is
23112         defined.
23113
23114 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
23115
23116         * configure.in (makeinfo): Require version 4.5 or later.  Allow
23117         versions 5 to 9.
23118         * configure: Regenerated.
23119         * manual/install.texi (texinfo): Increase version requirement to
23120         4.5 or later.
23121         * INSTALL: Regenerated.
23122
23123         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
23124
23125 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23126
23127         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
23128
23129         * sysdeps/x86_64/x32/ffs.c: New file.
23130
23131         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
23132         __syscall_ulong_t.
23133         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
23134         defined.  Use __syscall_ulong_t.
23135         (shminfo): Use __syscall_ulong_t.
23136         (shm_info): Likewise.
23137
23138         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
23139         __syscall_ulong_t.
23140
23141         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
23142         <bits/wordsize.h>.
23143         (msgqnum_t): Use __syscall_ulong_t.
23144         (msglen_t): Likewise.
23145         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
23146         __syscall_ulong_t.
23147
23148         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
23149         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23150
23151         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
23152
23153         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
23154         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
23155
23156         * sysvipc/sys/msg.h (msgbuf): Replace long int with
23157         __syscall_slong_t.
23158
23159         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
23160         include <bits/wordsize.h>.  Check __x86_64__ instead of
23161         __WORDSIZE.
23162
23163         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
23164         "unsigned long long int" if __x86_64__ is defined.
23165         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
23166
23167         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
23168         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
23169         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
23170
23171         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
23172         <stdint.h>.
23173         (GET_PC): Cast to uintptr_t first.
23174         (GET_FRAME): Likewise.
23175         (GET_STACK): Likewise.
23176
23177         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
23178         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
23179         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
23180         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
23181         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
23182         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
23183         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
23184         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
23185         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
23186         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
23187         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
23188         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
23189         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
23190         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
23191         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
23192         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
23193         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
23194         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
23195         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
23196         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
23197         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
23198         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
23199         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
23200         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
23201         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
23202         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
23203         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
23204         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
23205         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
23206
23207 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
23208
23209         * Makerules (+depfiles): Also collect depfiles from .oS in
23210         $(extra-objs).
23211         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
23212         .oS, $(libnldbl-routines)).
23213
23214         * Makerules (native-compile-mkdep-flags): Define.
23215         * sunrpc/Makefile (extra-objs): Add $(addprefix
23216         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
23217         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
23218         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
23219         calling $(make-target-directory).
23220
23221 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23222
23223         * bits/types.h (__snseconds_t): Removed.
23224         * time/time.h (struct timespec): Replace __snseconds_t with
23225         __syscall_slong_t.
23226         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
23227         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
23228         Likewise.
23229         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23230         (__SNSECONDS_T_TYPE): Likewise.
23231         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23232         (__SNSECONDS_T_TYPE): Likewise.
23233         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23234         (__SNSECONDS_T_TYPE): Likewise.
23235
23236 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23237
23238         * sysdeps/mach/hurd/bits/typesizes.h
23239         (__SYSCALL_SLONG_TYPE): New macro.
23240         (__SYSCALL_ULONG_TYPE): Likewise.
23241
23242 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23243
23244         * bits/types.h (__syscall_slong_t): New type.
23245         (__syscall_ulong_t): Likewise.
23246
23247         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
23248         (__SYSCALL_ULONG_TYPE): Likewise.
23249         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23250         (__SYSCALL_SLONG_TYPE): Likewise.
23251         (__SYSCALL_ULONG_TYPE): Likewise.
23252         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23253         (__SYSCALL_SLONG_TYPE): Likewise.
23254         (__SYSCALL_ULONG_TYPE): Likewise.
23255         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23256         (__SYSCALL_SLONG_TYPE): Likewise.
23257         (__SYSCALL_ULONG_TYPE): Likewise.
23258
23259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23260
23261         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
23262         Add sigaltstack-offsets.sym.
23263         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
23264         <sigaltstack-offsets.h>.
23265         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
23266         longjmp_msg pointer.
23267         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
23268         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
23269         signal stack.
23270         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
23271
23272 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
23273
23274         * elf/stackguard-macros.h: Remove file.
23275         * sysdeps/generic/stackguard-macros.h: New file.
23276         * sysdeps/i386/stackguard-macros.h: Likewise.
23277         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
23278         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
23279         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
23280         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
23281         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
23282         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
23283         * sysdeps/x86_64/stackguard-macros.h: Likewise.
23284         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
23285         <elf/stackguard-macros.h>.
23286
23287         [BZ #14109]
23288         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
23289         __aligned__ in attribute.
23290         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
23291         (gregset_t): Likewise.
23292
23293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23294
23295         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
23296         * sysdeps/x86_64/64/Implies-after: Here.  New file.
23297         * sysdeps/x86_64/x32/Implies-after: New file.
23298
23299 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23300
23301         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
23302         and access return value for _dl_profile_fixup.  Use R10_LP to
23303         load frame size.
23304
23305 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23306
23307         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
23308
23309 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23310
23311         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
23312         * sysdeps/x86_64/x32/sysdep.h: New file.
23313
23314 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23315
23316         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
23317         * sysdeps/x86_64/setjmp.S: Likewise.
23318
23319 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23320
23321         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
23322         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
23323         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
23324         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
23325         remove unused global constant.
23326
23327 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
23328
23329         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
23330         include of <not-cancel.h>.
23331
23332 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23333
23334         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
23335
23336 2012-05-15  Jeff Law  <law@redhat.com>
23337             Andreas Jaeger  <aj@suse.de>
23338
23339         [BZ #13594]
23340         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
23341         out from...
23342         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
23343         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
23344         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
23345         code changing __hst_map_handle.map.
23346
23347 2012-05-15  Roland McGrath  <roland@hack.frob.com>
23348
23349         * configure.in (sysnames): Look for Implies-before and Implies-after
23350         files.
23351         * configure: Regenerated.
23352
23353 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23354
23355         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
23356         8-byte data alignment with LP_SIZE alignment.
23357
23358 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23359
23360         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
23361         into R10_LP.
23362
23363 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23364
23365         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
23366
23367 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23368
23369         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
23370         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
23371         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
23372         Likewise.
23373         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
23374
23375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23376
23377         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
23378         (stackinfo_sub_sp): Likewise.
23379
23380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23381
23382         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
23383         RAX_LP.
23384
23385 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23386
23387         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
23388         into R*_LP.
23389
23390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23391
23392         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
23393         sizes into R*_LP.
23394
23395 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23396
23397         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
23398
23399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23400
23401         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
23402         into R11_LP and load __x86_64_shared_cache_size_half into
23403         R8_LP.
23404
23405 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
23406
23407         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
23408         R8_LP.
23409
23410 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23411
23412         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
23413         logb for POWER7.
23414         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
23415         logbf for POWER7.
23416         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
23417         logbl for POWER7.
23418         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
23419         powerpc32/power7/fpu/s_logb.c via #include.
23420         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
23421         powerpc32/power7/fpu/s_logbf.c via #include.
23422         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
23423         powerpc32/power7/fpu/s_logbl.c via #include.
23424
23425 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
23426
23427         * README.libm: Remove file.
23428
23429 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23430
23431         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
23432         count for x32.  Use R*_LP and omit operand-size suffix.
23433
23434 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23435
23436         * shlib-versions: Move x86_64-.*-linux.* entries to ...
23437         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
23438         * sysdeps/x86_64/x32/shlib-versions: New file.
23439
23440 2012-05-14  Roland McGrath  <roland@hack.frob.com>
23441
23442         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
23443         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
23444         Use _dl_fatal_printf instead.
23445
23446 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
23447
23448         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
23449         set if not set by the user.  Do not allow for being unset.
23450         * sysdeps/unix/sysv/linux/configure: Regenerated.
23451
23452 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23453
23454         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
23455         the `q' suffix from lea and replace .quad with ASM_ADDR.
23456
23457 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23458
23459         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
23460         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
23461         instead of $17.
23462         (PTR_DEMANGLE): Likewise.
23463
23464 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23465
23466         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
23467         (LP_OP): Likewise.
23468         (ASM_ADDR): Likewise.
23469         (RAX_LP): Likewise.
23470         (RBP_LP): Likewise.
23471         (RBX_LP): Likewise.
23472         (RCX_LP): Likewise.
23473         (RDI_LP): Likewise.
23474         (RSI_LP): Likewise.
23475         (RSP_LP): Likewise.
23476         (R8_LP): Likewise.
23477         (R9_LP): Likewise.
23478         (R10_LP): Likewise.
23479         (R10_LP): Likewise.
23480         (R11_LP): Likewise.
23481         (R12_LP): Likewise.
23482         (R13_LP): Likewise.
23483         (R14_LP): Likewise.
23484         (R15_LP): Likewise.
23485
23486 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23487
23488         * sysdeps/x86_64/x32/dl-machine.h: New file.
23489
23490 2012-05-14  Andreas Jaeger  <aj@suse.de>
23491
23492         * manual/Makefile (subdir): Remove export of subdir.
23493         (all): Remove target.
23494         (.PHONY): Remove all from list.
23495         (mkinstalldirs): Remove.
23496         (.PHONY): Remove installdirs from list.
23497         ($(inst_infodir)/libc.info): Use make-target-directory.
23498         (installdirs): Remove.
23499         (subdir_%): Remove.
23500         (glibc-targets): Remove.
23501         (lib): Remove.
23502         (stubs): Remove.
23503         ($(objpfx)stubs ../po/manual.pot): Remove.
23504         ($(objpfx)stamp%): Remove.
23505         (make-target-directory): Remove.
23506         (subdir_install): Remove.
23507         (routines): Remove.
23508         (aux): Remove.
23509         (sources): Remove.
23510         (objects): Remove.
23511         (headers): Remove.
23512
23513         [BZ #13750]
23514         * manual/.gitignore: Remove, it's not needed anymore.
23515         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
23516         all files in it.
23517         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
23518         directory.
23519         (texis): Renamed to $(objpfx)texis.
23520         (texis-path): New, contains path to generated files.
23521         (chapters.%): Use texis-path for complete path, add extra argument
23522         libc-texinfo.sh.
23523         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
23524         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
23525         (summary,texi, stamp-summary): Use complete path of
23526         files. Generate files in build dir.
23527         (dir-add.texi): Build in build dir.
23528         (libm-err.texi,stamp-libm-err): Likewise.
23529         (version.texi, stamp-version): Likewise.
23530         (.%c.texi): Likewise.
23531         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
23532         (mostlyclean): Remove target.
23533         (realclean): Remove target.
23534         (generated): Add new variable with contents from mostlyclean and
23535         realclean, remove entries duplicated in common-mostlyclean, add
23536         stamp-libm-err and stamp-version.
23537         (generated-dirs): Add libc directory.
23538         ($(inst_infodir)/libc.info): Install files from build dir.
23539
23540         * manual/install.texi (Configuring and compiling): Adjust since
23541         the info files are not part of the tar ball anymore.
23542
23543 2012-05-14  Andreas Jaeger  <aj@suse.de>
23544
23545         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
23546         variable.
23547
23548 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
23549
23550         [BZ #13717]
23551         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
23552         to 2.2.0 where earlier.
23553         * sysdeps/unix/sysv/linux/configure: Regenerated.
23554         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
23555         Remove conditional code.
23556         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
23557         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
23558         Remove conditional code.
23559         [!__NR_lchown]: Likewise.
23560         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23561         [__NR_lchown]: Likewise.
23562         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
23563         comment referencing __ASSUME_LCHOWN_SYSCALL.
23564         * sysdeps/unix/sysv/linux/i386/sigaction.c
23565         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23566         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23567         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
23568         Remove conditional code.
23569         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
23570         (__protocol_available): Remove #if 0 code.
23571         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
23572         conditional code.
23573         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
23574         * sysdeps/unix/sysv/linux/kernel-features.h
23575         (__ASSUME_GETCWD_SYSCALL): Don't define.
23576         (__ASSUME_REALTIME_SIGNALS): Likewise.
23577         (__ASSUME_PREAD_SYSCALL): Likewise.
23578         (__ASSUME_PWRITE_SYSCALL): Likewise.
23579         (__ASSUME_POLL_SYSCALL): Likewise.
23580         (__ASSUME_LCHOWN_SYSCALL): Likewise.
23581         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
23582         non-SPARC.
23583         (__ASSUME_SIOCGIFNAME): Don't define.
23584         (__ASSUME_MSG_NOSIGNAL): Likewise.
23585         (__ASSUME_SENDFILE): Define unconditionally.
23586         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
23587         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
23588         conditional code.
23589         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
23590         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
23591         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
23592         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23593         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
23594         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
23595         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
23596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
23597         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23598         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
23600         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23601         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
23603         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23604         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
23606         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23607         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
23609         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23610         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
23612         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
23613         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
23615         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23616         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
23618         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23619         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23620         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
23621         Remove conditional code.
23622         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23623         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
23624         Remove conditional code.
23625         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23626         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
23627         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
23628         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
23629         Remove conditional code.
23630         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23631         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
23632         Remove conditional code.
23633         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23634         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
23635         Remove conditional code.
23636         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23637         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
23638         Remove conditional code.
23639         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
23640         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
23641         Remove conditional code.
23642         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23643         * sysdeps/unix/sysv/linux/sh/pwrite64.c
23644         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
23645         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
23646         * sysdeps/unix/sysv/linux/sigaction.c
23647         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23648         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23649         * sysdeps/unix/sysv/linux/sigpending.c
23650         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23651         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23652         * sysdeps/unix/sysv/linux/sigprocmask.c
23653         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23654         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23655         * sysdeps/unix/sysv/linux/sigsuspend.c
23656         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
23657         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
23658         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
23659         (__libc_missing_rt_sigs): Remove.
23660         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
23661         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
23662         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
23663         Remove conditional code.
23664         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
23665         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
23666         return 1.
23667         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
23668         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
23669         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
23670         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
23671
23672 2012-05-14  Andreas Jaeger  <aj@suse.de>
23673
23674         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
23675         it's not used in glibc.
23676         (__coshm1): Likewise.
23677         (__acosh1p): Likewise.
23678         (__sgn): Likewise.
23679
23680         * manual/string.texi (Copying and Concatenation): Add missing
23681         variable in concat example.
23682         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
23683
23684 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23685
23686         [BZ #14103]
23687         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
23688         __builtin_clzl with __builtin_clzll.
23689
23690 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
23691
23692         [BZ #14104]
23693         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
23694         libc_freeres_ptr.
23695
23696 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23697
23698         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
23699         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
23700         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
23701         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
23702
23703 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
23704
23705         * NEWS: Update ia64 info.
23706
23707 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
23708
23709         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
23710         used as bcopy.
23711
23712 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
23713
23714         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
23715         * sysdeps/unix/syscalls.list (dup3): Likewise.
23716         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
23717         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
23718
23719 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23720
23721         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
23722         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
23723
23724 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23725
23726         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
23727         thread pointer.
23728         (TLS_IE): Use mov/add instead of movq/addq to load thread
23729         pointer.
23730         (TLS_GD_PREFIX): New.
23731         (TLS_GD): Use it.
23732
23733 2012-05-11  David S. Miller  <davem@davemloft.net>
23734
23735         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
23736         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
23737         (_FPU_SETCW): Likewise.
23738
23739 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23740
23741         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
23742         is 32-byte aligned.
23743
23744 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
23745
23746         [BZ #11837]
23747         * iconvdata/gb18030.c: Update tables.
23748         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
23749         characters specially.
23750         (BODY for TO_LOOP): Add encoding of missing ranges.
23751
23752 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
23753
23754         [BZ #13673]
23755         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
23756         * sysdeps/mach/hurd/dup3.c: Likewise.
23757         * sysdeps/mach/hurd/readlinkat.c: Likewise.
23758         * sysdeps/powerpc/memmove.c:: Likewise.
23759
23760 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23761
23762         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
23763         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
23764
23765 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
23766
23767         * elf/elf.h (R_X86_64_RELATIVE64): New.
23768         (R_X86_64_NUM): Updated.
23769         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
23770         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
23771         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
23772         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
23773         tst-quad1pie tst-quad2pie
23774         (modules-names): Add tst-quadmod1 tst-quadmod2.
23775         ($(objpfx)tst-quad1): New dependency.
23776         ($(objpfx)tst-quad2): Likewise.
23777         ($(objpfx)tst-quad1pie): Likewise.
23778         ($(objpfx)tst-quad2pie): Likewise.
23779         * sysdeps/x86_64/tst-quad1.c: New file.
23780         * sysdeps/x86_64/tst-quad1pie.c: New file.
23781         * sysdeps/x86_64/tst-quad2.c: Likewise.
23782         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
23783         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
23784         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
23785         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
23786         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
23787
23788 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23789
23790         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
23791         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
23792         * streams/stropts.h (t_scalar_t): Define type.
23793
23794         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
23795         (_PATH_PRESERVE): Set to "/var/lib".
23796         (_PATH_RWHODIR): Set to "/var/spool/rwho".
23797
23798         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
23799         instead of int.
23800
23801         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
23802         if __dir_mkfile succeeded.
23803
23804         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
23805         checking for _hurd_dtablesize.  Unlock it right after having
23806         finished _hurd_dtable allocation.
23807
23808 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23809
23810         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
23811         * sysdeps/mach/hurd/configure: Regenerated.
23812         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
23813         special-casing to...
23814         * sysdeps/gnu/configure.in: ... this new file.
23815         * sysdeps/unix/sysv/linux/configure: Regenerated.
23816         * sysdeps/gnu/configure: New generated file.
23817
23818         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
23819         for Linux: use nsec instead of usec, as well as:
23820         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
23821         members of type struct timespec.
23822         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
23823         New macros.
23824         (struct stat64): Likewise.
23825         (_STATBUF_ST_NSEC): New macro.
23826         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
23827
23828         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
23829         __strtoul_internal rather than strtoul.
23830
23831 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23832
23833         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
23834         and reject them.
23835
23836 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23837
23838         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
23839         which preserves existing values.
23840         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
23841
23842 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23843
23844         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
23845         TIMEOUT values.  Return EINVAL for NFDS values either negative or
23846         greater than FD_SETSIZE.
23847
23848 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23849
23850         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
23851         allocated, call __vm_protect to finish enabling the existing space, and
23852         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
23853         allocate the remainder.
23854
23855 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23856
23857         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
23858         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
23859
23860 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23861
23862         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
23863         sysdeps/mach/hurd/readlink.c.
23864
23865         * posix/tst-sysconf.c (posix_options): Only use
23866         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
23867         _POSIX_SYNCHRONIZED_IO when they are defined
23868         * sysdeps/mach/hurd/bits/posix_opt.h:
23869         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
23870         (_XOPEN_REALTIME): Undefine macro.
23871         (_XOPEN_REALTIME_THREADS): Undefine macro.
23872         (_XOPEN_SHM): Undefine macro.
23873         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
23874         macro to -1.
23875         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
23876         macro to -1.
23877         (_POSIX_ASYNC_IO): Undefine macro.
23878         (_POSIX_PRIORITIZED_IO): Undefine macro.
23879         (_POSIX_SPIN_LOCKS): Define macro to -1.
23880
23881         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
23882         SA_NODEFER, SA_RESETHAND.
23883         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
23884         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
23885         F_DUPFD_CLOEXEC.
23886
23887 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23888
23889         * elf/Makefile (pldd-modules): Define unconditionally.
23890
23891 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23892
23893         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
23894
23895 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23896
23897         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
23898         Return ENOENT when name is empty.
23899         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
23900
23901 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23902
23903         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
23904
23905         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
23906
23907 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23908
23909         Fix mlock in all cases except non-readable pages.
23910         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
23911         instead of VM_PROT_ALL as parameter to __vm_wire function.
23912
23913         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
23914         (__mkdir): When path is `/', just fail with EEXIST.
23915         * sysdeps/mach/hurd/mkdirat.c: Likewise.
23916
23917 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23918
23919         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
23920         <sys/uio.h> (for writev).
23921         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
23922         and <sys/param.h> (for MIN).
23923
23924 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
23925
23926         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
23927         REQUESTED_TIME.  Properly set the remaining time and return EINTR
23928         if interrupted.
23929
23930 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23931
23932         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
23933         Depend on against $(link-rpcuserlibs).
23934
23935 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23936
23937         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
23938         (__libc_stack_end): Do not use attribute_relro.
23939         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
23940         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
23941         to libthread-provided value.
23942         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
23943         attribute_relro.
23944
23945 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23946
23947         [BZ #3748]
23948         * bits/libc-lock.h (__libc_once_get): New macro.
23949         * sysdeps/mach/bits/libc-lock.h: Likewise.
23950         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
23951         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
23952         instead of using implementation details.
23953
23954         * libio/fileops.c: Unconditionally include <kernel-features.h>.
23955         * libio/freopen.c: Likewise.
23956         * libio/freopen64.c: Likewise.
23957         * misc/syslog.c: Likewise.
23958         * nscd/connections.c: Likewise.
23959         * nscd/netgroupcache.c: Likewise.
23960         * sysdeps/posix/getcwd.c: Likewise.
23961
23962 2012-05-10  Roland McGrath  <roland@hack.frob.com>
23963
23964         * math/w_ilogbf.c: Add #include <limits.h>.
23965
23966 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23967
23968         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
23969         path instead of returning without unlocking.
23970
23971         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
23972         immediate-write ioctls.
23973         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
23974
23975 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
23976
23977         * sysdeps/mach/hurd/i386/init-first.c (init): Use
23978         __builtin_frame_address instead of making assumptions about the
23979         location of the return address relative to DATA.  Force early load of
23980         the return address.
23981         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
23982         __builtin_frame_address.
23983
23984         dup3 for GNU Hurd.
23985         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
23986         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
23987         implement dup3 and do some further code clean-ups.
23988         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
23989         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
23990
23991 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23992
23993         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
23994
23995         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
23996         HURD_CRITICAL_END around holding _hurd_dtable_lock.
23997         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
23998         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
23999         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
24000         d->port.lock.
24001
24002         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
24003         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
24004         when handler == SIG_ERR, not when handler != SIG_ERR.
24005
24006 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24007
24008         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
24009         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
24010         definitions.
24011
24012         accept4 for GNU Hurd.
24013         * include/sys/socket.h (__libc_accept4): New prototype.
24014         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
24015         to implement __libc_accept4.
24016         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
24017         __libc_accept4.
24018         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
24019
24020         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
24021         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
24022         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
24023         signal-defines.sym.
24024
24025 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24026
24027         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
24028
24029 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
24030
24031         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
24032         assertion on O_CLOEXEC flag.
24033         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
24034         * hurd/intern-fd.c: Likewise.
24035         * hurd/port2fd.c: Likewise.
24036
24037 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24038
24039         [BZ #3906]
24040         * bits/in.h (IPV6_PKTINFO): Define new macro.
24041         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
24042
24043 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24044
24045         [BZ #13954]
24046         [BZ #13955]
24047         [BZ #13956]
24048         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
24049         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
24050         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
24051         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
24052         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24053         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
24054         * math/libm-test.inc (logb_test) : Additional logb tests.
24055
24056 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
24057             Andreas Jaeger  <aj@suse.de>
24058
24059         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
24060         * configure: Regenerated.
24061         * config.h.in (LINK_OBSOLETE_RPC): New macro.
24062         * config.make.in (link-obsolete-rpc): New substituted variable.
24063         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
24064         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
24065         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24066         (shared-only-routines): Don't set it under [link-obsolete-rpc],
24067         so that libc.a contains the symbols.
24068         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
24069         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
24070         * sunrpc/auth_none.c: Likewise.
24071         * sunrpc/auth_unix.c: Likewise.
24072         * sunrpc/authdes_prot.c: Likewise.
24073         * sunrpc/authuxprot.c: Likewise.
24074         * sunrpc/clnt_gen.c: Likewise.
24075         * sunrpc/clnt_perr.c: Likewise.
24076         * sunrpc/clnt_raw.c: Likewise.
24077         * sunrpc/clnt_simp.c: Likewise.
24078         * sunrpc/clnt_tcp.c: Likewise.
24079         * sunrpc/clnt_udp.c: Likewise.
24080         * sunrpc/clnt_unix.c: Likewise.
24081         * sunrpc/des_crypt.c: Likewise.
24082         * sunrpc/des_soft.c: Likewise.
24083         * sunrpc/get_myaddr.c: Likewise.
24084         * sunrpc/key_call.c: Likewise.
24085         * sunrpc/key_prot.c: Likewise.
24086         * sunrpc/netname.c: Likewise.
24087         * sunrpc/pm_getmaps.c: Likewise.
24088         * sunrpc/pm_getport.c: Likewise.
24089         * sunrpc/pmap_clnt.c: Likewise.
24090         * sunrpc/pmap_prot.c: Likewise.
24091         * sunrpc/pmap_prot2.c: Likewise.
24092         * sunrpc/pmap_rmt.c: Likewise.
24093         * sunrpc/publickey.c: Likewise.
24094         * sunrpc/rpc_cmsg.c: Likewise.
24095         * sunrpc/rpc_common.c: Likewise.
24096         * sunrpc/rpc_dtable.c: Likewise.
24097         * sunrpc/rpc_prot.c: Likewise.
24098         * sunrpc/rpc_thread.c: Likewise.
24099         * sunrpc/rtime.c: Likewise.
24100         * sunrpc/svc.c: Likewise.
24101         * sunrpc/svc_auth.c: Likewise.
24102         * sunrpc/svc_raw.c: Likewise.
24103         * sunrpc/svc_run.c: Likewise.
24104         * sunrpc/svc_tcp.c: Likewise.
24105         * sunrpc/svc_udp.c: Likewise.
24106         * sunrpc/svc_unix.c: Likewise.
24107         * sunrpc/svcauth_des.c: Likewise.
24108         * sunrpc/xcrypt.c: Likewise.
24109         * sunrpc/xdr.c: Likewise.
24110         * sunrpc/xdr_array.c: Likewise.
24111         * sunrpc/xdr_float.c: Likewise.
24112         * sunrpc/xdr_intXX_t.c: Likewise.
24113         * sunrpc/xdr_mem.c: Likewise.
24114         * sunrpc/xdr_rec.c: Likewise.
24115         * sunrpc/xdr_ref.c: Likewise.
24116         * sunrpc/xdr_sizeof.c: Likewise.
24117         * sunrpc/xdr_stdio.c: Likewise.
24118
24119 2012-05-10  Roland McGrath  <roland@hack.frob.com>
24120
24121         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
24122         change.  Update copyright years.
24123
24124 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24125
24126         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
24127
24128 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
24129             Joseph Myers  <joseph@codesourcery.com>
24130             Paul Pluzhnikov  <ppluzhnikov@google.com>
24131
24132         [BZ #14012]
24133         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
24134         requiring rpcgen.
24135         [cross-compiling] (extra-libs): Likewise.
24136         [cross-compiling] (extra-libs-others): Likewise.
24137         [cross-compiling] (librpcsvc-routines): Likewise.
24138         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
24139         [cross-compiling] (omit-deps): Likewise.
24140         (sunrpc-CPPFLAGS): New variable.
24141         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
24142         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
24143         (cross-rpcgen-objs): New variable.
24144         (extra-objs): Append $(cross-rpcgen-objs).
24145         ($(cross-rpcgen-objs)): New rule.
24146         ($(objpfx)cross-rpcgen): Likewise.
24147         (rpcgen-cmd): Define to use $(built-program-file).  Expand
24148         comment.
24149         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
24150         ($(objpfx)x%.stmp): Likewise.
24151         * sunrpc/proto.h [IS_IN_build] (_): Define.
24152         [IS_IN_build] (_libc_intl_domainname): Likewise.
24153
24154 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
24155
24156         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
24157         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
24158         and R_X86_64_TPOFF64.
24159
24160 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
24161
24162         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
24163         sysdeps/unix/sysv/syscalls.list.
24164         (stime): Likewise.
24165         (utime): Likewise.
24166         * sysdeps/unix/sysv/syscalls.list: Remove file.
24167
24168 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24169
24170         [BZ #3440]
24171         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
24172         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
24173         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
24174         (__LC_IDENTIFICATION): Make these macros useful in #if
24175         expressions, as required by C99.
24176
24177 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
24178
24179         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
24180         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
24181         after this.
24182
24183 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
24184
24185         * stdlib/longlong.h: Updated from GCC.
24186
24187 2012-05-09  Andreas Jaeger  <aj@suse.de>
24188
24189         * nscd/nscd.c (run_modes): Make named enum, reorder so that
24190         default is first entry.
24191         (run_mode): Set type.
24192         (main): Remove informal message about syslog.
24193         (options): Fix typo.
24194
24195         [BZ #14053]
24196         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
24197         to asm.
24198         (lrint): Likewise.
24199         (llrintf): Likewise.
24200         (llrint): Likewise.
24201         (rint): Likewise.
24202         (rintf): Likewise.
24203         (nearbyint): Likewise.
24204         (nearbyintf): Likewise.
24205
24206 2012-05-09  Andreas Jaeger  <aj@suse.de>
24207             Pedro Alves  <palves@redhat.com>
24208
24209         * nscd/nscd.c (run_mode): Use enum.
24210         (main): Cleanup coding style issue.
24211
24212 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
24213             Andreas Jaeger  <aj@suse.de>
24214
24215         * nscd/nscd.c (go_background): Replaced with...
24216         (run_mode): ... this.
24217         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
24218         (options): Add -F --foreground.
24219         (main): Implement it.
24220         (parse_opt): Parse it.
24221
24222 2012-05-09  Andreas Jaeger  <aj@suse.de>
24223
24224         [BZ #14083]
24225         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
24226         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
24227         -Wconversion warning.
24228         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
24229         Likewise.
24230
24231 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
24232
24233         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
24234         == 0.
24235         (LC_ALL): Use macro-int-constant.
24236         (LC_COLLATE): Likewise.
24237         (LC_CTYPE): Likewise.
24238         (LC_MESSAGES): Likewise.
24239         (LC_MONETARY): Likewise.
24240         (LC_NUMERIC): Likewise.
24241         (LC_TIME): Likewise.
24242         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
24243         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24244         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24245         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
24246         Specify type.
24247         [C99-based standards] (float_t): Expect type.
24248         [C99-based standards] (double_t): Expect type.
24249         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
24250         type.
24251         [C99-based standards] (HUGE_VALL): Likewise.
24252         [C99-based standards] (INFINITY): Likewise.
24253         [C99-based standards] (NAN): Likewise.
24254         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
24255         [C99-based standards] (FP_NAN): Likewise.
24256         [C99-based standards] (FP_NORMAL): Likewise.
24257         [C99-based standards] (FP_SUBNORMAL): Likewise.
24258         [C99-based standards] (FP_ZERO): Likewise.
24259         [C99-based standards] (FP_FAST_FMA): Use
24260         optional-macro-int-constant.  Specify type.  Require == 1.
24261         [C99-based standards] (FP_FAST_FMAF): Likewise.
24262         [C99-based standards] (FP_FAST_FMAL): Likewise.
24263         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
24264         [C99-based standards] (FP_ILOGBNAN): Likewise.
24265         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
24266         Specify type.
24267         [C99-based standards] (MATH_ERREXCEPT): Likewise.
24268         [C99-based standards] (math_errhandling): Specify type.
24269         [ISO99 || ISO11] (signgam): Do not allow.
24270         [non-C99-based standards] (copysignf): Do not allow.
24271         [non-C99-based standards] (exp2f): Likewise.
24272         [non-C99-based standards] (log2f): Likewise.
24273         [non-C99-based standards] (modff): Allow.
24274         [non-C99-based standards] (erff): Do not allow.
24275         [non-C99-based standards] (erfcf): Likewise.
24276         [non-C99-based standards] (gammaf): Likewise.
24277         [non-C99-based standards] (hypotf): Likewise.
24278         [non-C99-based standards] (j0f): Likewise.
24279         [non-C99-based standards] (j1f): Likewise.
24280         [non-C99-based standards] (jnf): Likewise.
24281         [non-C99-based standards] (lgammaf): Likewise.
24282         [non-C99-based standards] (tgammaf): Likewise.
24283         [non-C99-based standards] (y0f): Likewise.
24284         [non-C99-based standards] (y1f): Likewise.
24285         [non-C99-based standards] (ynf): Likewise.
24286         [non-C99-based standards] (isnanf): Likewise.
24287         [non-C99-based standards] (acoshf): Likewise.
24288         [non-C99-based standards] (asinhf): Likewise.
24289         [non-C99-based standards] (atanhf): Likewise.
24290         [non-C99-based standards] (cbrtf): Likewise.
24291         [non-C99-based standards] (expm1f): Likewise.
24292         [non-C99-based standards] (ilogbf): Likewise.
24293         [non-C99-based standards] (log1pf): Likewise.
24294         [non-C99-based standards] (logbf): Likewise.
24295         [non-C99-based standards] (nextafterf): Likewise.
24296         [non-C99-based standards] (remainderf): Likewise.
24297         [non-C99-based standards] (rintf): Likewise.
24298         [non-C99-based standards] (scalbf): Likewise.
24299         [non-C99-based standards] (copysignl): Likewise.
24300         [non-C99-based standards] (exp2l): Likewise.
24301         [non-C99-based standards] (log2l): Likewise.
24302         [non-C99-based standards] (modfl): Allow.
24303         [non-C99-based standards] (erfl): Do not allow.
24304         [non-C99-based standards] (erfcl): Likewise.
24305         [non-C99-based standards] (gammal): Likewise.
24306         [non-C99-based standards] (hypotl): Likewise.
24307         [non-C99-based standards] (j0l): Likewise.
24308         [non-C99-based standards] (j1l): Likewise.
24309         [non-C99-based standards] (jnl): Likewise.
24310         [non-C99-based standards] (lgammal): Likewise.
24311         [non-C99-based standards] (tgammal): Likewise.
24312         [non-C99-based standards] (y0l): Likewise.
24313         [non-C99-based standards] (y1l): Likewise.
24314         [non-C99-based standards] (ynl): Likewise.
24315         [non-C99-based standards] (isnanl): Likewise.
24316         [non-C99-based standards] (acoshl): Likewise.
24317         [non-C99-based standards] (asinhl): Likewise.
24318         [non-C99-based standards] (atanhl): Likewise.
24319         [non-C99-based standards] (cbrtl): Likewise.
24320         [non-C99-based standards] (expm1l): Likewise.
24321         [non-C99-based standards] (ilogbl): Likewise.
24322         [non-C99-based standards] (log1pl): Likewise.
24323         [non-C99-based standards] (logbl): Likewise.
24324         [non-C99-based standards] (nextafterl): Likewise.
24325         [non-C99-based standards] (remainderl): Likewise.
24326         [non-C99-based standards] (rintl): Likewise.
24327         [non-C99-based standards] (scalbl): Likewise.
24328         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24329         [non-C99-based standards] (FP_*): Do not allow.
24330         [C99-based standards] (FP_*): Change to
24331         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
24332         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24333         allow.
24334         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
24335         (SIG_ERR): Likewise.
24336         [X/Open-based standards] (SIG_HOLD): Likewise.
24337         (SIG_IGN): Likewise.
24338         (SIGABRT): Use macro-int-constant.  Specify type.  Require
24339         positive value.
24340         (SIGFPE): Likewise.
24341         (SIGILL): Likewise.
24342         (SIGINT): Likewise.
24343         (SIGSEGV): Likewise.
24344         (SIGTER): Likewise.
24345         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
24346         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
24347         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
24348         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
24349         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
24350         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
24351         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
24352         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
24353         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
24354         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
24355         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
24356         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
24357         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
24358         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
24359         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
24360         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
24361         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
24362         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
24363         [X/Open-based standards] (SIGTRAP): Likewise.
24364         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
24365         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
24366         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
24367         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
24368         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24369         allow.
24370
24371 2012-05-08  Ian Wienand  <ianw@vmware.com>
24372
24373         [BZ #14080]
24374         * time/tzset.c (__tzset_parse_tz): Update default rules for
24375         daylight time changes in the Energy Policy Act of 2005.
24376
24377 2012-05-09  Andreas Jaeger  <aj@suse.de>
24378
24379         [BZ #13983]
24380         * elf/ldconfig.c (parse_conf): Change string to make clear that
24381         ldconfig only issued a warning if ld.so.conf does not exist.
24382
24383 2012-05-08  David S. Miller  <davem@davemloft.net>
24384
24385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
24386         movxtod instead of popping the value on the stack.
24387
24388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24389
24390 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
24391
24392         * config.h.in: Add HAVE_ARM_PCS_VFP.
24393
24394 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
24395
24396         [BZ #13979]
24397         * include/features.h: Warn if user requests __FORTIFY_SOURCE
24398         checking but the checks are disabled for any reason.
24399
24400 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
24401
24402         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
24403         and ELF64_R_TYPE with ELFW(R_TYPE).
24404
24405 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
24406
24407         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
24408         (ulimit): Likewise.
24409
24410         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
24411         (settimeofday): Likewise.
24412
24413 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
24414
24415         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
24416         a struct th_u2 inside the union, and move tu_block/tu_code into
24417         a new th_u3 union of tu_block/tu_code inside of that.  Move
24418         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
24419         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
24420         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
24421         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
24422         (th_stuff): Change to th_u1.tu_stuff.
24423         (th_data): Define.
24424         (th_msg): Change to th_u1.th_u2.tu_data.
24425
24426 2012-05-07  David S. Miller  <davem@davemloft.net>
24427
24428         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24429
24430         [BZ #14074]
24431         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
24432         (SETUP_PIC_REG): Use it.
24433         (SETUP_PIC_REG_LEAF): Use it.
24434
24435 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
24436
24437         [BZ #13885]
24438         [BZ #13923]
24439         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24440         USE_AS_EXPM1L.
24441         (EXPL_FINITE): Likewise.
24442         (FLDLOG): Likewise.
24443         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
24444         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
24445         e_expl.S.
24446         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24447         USE_AS_EXPM1L.
24448         (EXPL_FINITE): Likewise.
24449         (FLDLOG): Likewise.
24450         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
24451         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
24452         e_expl.S.
24453         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
24454         test of -max_value argument for long double.
24455         * sysdeps/i386/fpu/libm-test-ulps: Update.
24456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24457
24458 2012-05-06  David S. Miller  <davem@davemloft.net>
24459
24460         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
24461         quad soft-float symbols whose references which are compiler
24462         generated.
24463         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
24464
24465 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
24466
24467         [BZ #13884]
24468         [BZ #13914]
24469         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24470         USE_AS_EXP10L.
24471         (EXPL_FINITE): Likewise.
24472         (FLDLOG): Likewise.
24473         (c0): Likewise.
24474         (c1): Likewise.
24475         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
24476         Adjust comments for base varying.
24477         (__expl_finite): Change alias to EXPL_FINITE.
24478         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
24479         e_expl.S.
24480         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
24481         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
24482         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
24483         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
24484         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
24485         USE_AS_EXP10L.
24486         (EXPL_FINITE): Likewise.
24487         (FLDLOG): Likewise.
24488         (c0): Likewise.
24489         (c1): Likewise.
24490         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
24491         Adjust comments for base varying.
24492         (__expl_finite): Change alias to EXPL_FINITE.
24493         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
24494         tests for bugs.
24495         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24496
24497         [BZ #14064]
24498         * math/libm-test.inc (check_float_internal): Correct ulp
24499         calculation for subnormal expected results.
24500
24501 2012-05-06  Andreas Jaeger  <aj@suse.de>
24502
24503         * Makeconfig (+math-flags): New, set to -frounding-math.
24504         (+cflags): Add +math-flags so that all of glibc gets compiled with
24505         it.
24506
24507         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
24508
24509 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
24510
24511         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
24512         Disable one test.
24513
24514         [BZ #13787]
24515         [BZ #13922]
24516         [BZ #14036]
24517         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
24518         (__ieee754_expl): Allow for and saturate large arguments.
24519         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
24520         (u_threshold): Likewise.
24521         (__exp): Call __ieee754_exp before checking for overflow and
24522         underflow.
24523         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
24524         (u_threshold): Likewise.
24525         (__expf): Call __ieee754_expf before checking for overflow and
24526         underflow.
24527         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
24528         (u_threshold): Likewise.
24529         (__expl): Call __ieee754_expl before checking for overflow and
24530         underflow.
24531         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
24532         (__ieee754_expl): Allow for and saturate large arguments.
24533         * math/libm-test.inc (exp_test): Add another test.  Do not allow
24534         missing overflow exception on overflow.
24535         (expm1_test): Do not allow missing overflow exception on overflow.
24536
24537         * sysdeps/i386/fpu/e_expl.c: Move to ...
24538         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
24539         rather than using inline asm.
24540         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
24541         * sysdeps/x86_64/fpu/e_expl.S: Copy from
24542         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
24543
24544         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
24545         (nice): Likewise.
24546         (poll): Likewise.
24547         (signal): Likewise.
24548         (time): Likewise.
24549         (times): Likewise.
24550
24551 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24552
24553         * sysdeps/unix/syscalls.list (adjtime): Add entry from
24554         sysdeps/unix/common/syscalls.list.
24555         (fchmod): Likewise.
24556         (fchown): Likewise.
24557         (ftruncate): Likewise.
24558         (getrusage): Likewise.
24559         (gettimeofday): Likewise.
24560         (setpgid): Likewise.
24561         (setregid): Likewise.
24562         (setreuid): Likewise.
24563         (sigaction): Likewise.
24564         (truncate): Likewise.
24565         (vhangup): Likewise.
24566         * sysdeps/unix/common/syscalls.list: Remove file.
24567         * sysdeps/unix/bsd/Implies: Don't include unix/common.
24568         * sysdeps/unix/sysv/linux/Implies: Likewise.
24569
24570 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
24571
24572         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
24573         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
24574         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
24575         Moved to ...
24576         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
24577         Here.
24578         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
24579         to ...
24580         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
24581         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
24582         to ...
24583         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
24584         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
24585         to ...
24586         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
24587         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
24588         to ...
24589         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
24590         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
24591         to ...
24592         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
24593         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
24594         to ...
24595         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
24596         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
24597         to ...
24598         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
24599         Here.
24600         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
24601         to ...
24602         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
24603         Here.
24604         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
24605         to ...
24606         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
24607         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
24608         Moved to ...
24609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
24610         Here.
24611         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
24612         to ...
24613         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
24614
24615 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24616
24617         * sysdeps/unix/common/bits/dirent.h: Remove file.
24618         * sysdeps/unix/common/bits/fcntl.h: Likewise.
24619
24620         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
24621         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
24622         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
24623         * sysdeps/unix/bsd/isatty.c: Likewise.
24624         * sysdeps/unix/bsd/tcdrain.c: Likewise.
24625         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
24626         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
24627
24628 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24629
24630         [BZ #13563]
24631         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
24632         long double comparison inaccuracies.
24633         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
24634         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24635
24636 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
24637
24638         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
24639         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
24640
24641 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
24642
24643         [BZ #14049]
24644         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
24645         nonzero digits before rounding a hex value.
24646         * stdlib/tst-strtod.c (tests): Add another test.
24647
24648 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24649
24650         * sysdeps/s390/fpu/libm-test-ulps: Update.
24651
24652 2012-05-03  Andreas Jaeger  <aj@suse.de>
24653
24654         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
24655         does not get optimized out.
24656         (malloc_opt_barrier): New.
24657
24658 2012-05-03  Andreas Jaeger  <aj@suse.de>
24659             Roland McGrath  <roland@hack.frob.com>
24660
24661         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
24662         intermediate file deletion.
24663         (generated): Add .symlist files.
24664
24665 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
24666
24667         [BZ #13775]
24668         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
24669         Redirect under this condition.
24670         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
24671         [__USE_GNU] (__dprintf_chk): Not under this condition.
24672         [__USE_GNU] (__vdprintf_chk): Likewise.
24673         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
24674         under this condition.
24675         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
24676         [__USE_XOPEN2K8] (dprintf): Define under this condition.
24677         [__USE_XOPEN2K8] (vdprintf): Likewise.
24678         [__USE_GNU] (__dprintf_chk): Not under this condition.
24679         [__USE_GNU] (__vdprintf_chk): Likewise.
24680         [__USE_GNU] (dprintf): Likewise.
24681         [__USE_GNU] (vdprintf): Likewise.
24682
24683 2012-05-03  Roland McGrath  <roland@hack.frob.com>
24684
24685         * elf/Makefile (common-generated): Set this instead of generated for
24686         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
24687         $(all-built-dso)-derived lists.
24688
24689 2012-05-03  Andreas Jaeger  <aj@suse.de>
24690
24691         * sysdeps/i386/fpu/libm-test-ulps: Update.
24692
24693         * FAQ: Removed.
24694         * FAQ.in: Likewise.
24695         * scripts/gen-FAQ.pl: Likewise.
24696         * manual/install.texi (Installation): Point to online location of
24697         FAQ.
24698         * Makefile (files-for-dist): Remove FAQ.
24699         (FAQ): Remove.
24700
24701 2012-05-02  Allan McRae  <allan@archlinux.org>
24702
24703         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
24704         (LDFLAGS-reldepmod5.so): Likewise.
24705         (LDFLAGS-reldep6mod1.so): Likewise.
24706         (LDFLAGS-reldep6mod4.so): Likewise.
24707         (LDFLAGS-reldep8mod3.so): Likewise.
24708         (LDFLAGS-unload4mod1.so): Likewise.
24709         (LDFLAGS-unload4mod2.so): Likewise.
24710         (LDFLAGS-tst-initorder): Likewise.
24711         (LDFLAGS-tst-initordera2.so): Likewise.
24712         (LDFLAGS-tst-initordera3.so): Likewise.
24713         (LDFLAGS-tst-initordera4.so): Likewise.
24714         (LDFLAGS-tst-initorderb2.so): Likewise.
24715         (LDFLAGS-noload): Likewise.
24716         (LDFLAGS-next): Likewise.
24717         (LDFLAGS-order2mod1.so): Likewise.
24718         (LDFLAGS-order2mod2.so): Likewise.
24719         (LDFLAGS-tst-initorder2): Likewise.
24720         (LDFLAGS-tst-initorder2a.so): Likewise.
24721         (LDFLAGS-tst-initorder2b.so): Likewise.
24722         (LDFLAGS-tst-initorder2c.so): Likewise.
24723         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
24724
24725 2012-05-02  David S. Miller  <davem@davemloft.net>
24726
24727         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24728
24729 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
24730
24731         [BZ #14055]
24732         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
24733
24734 2012-05-02  Andreas Jaeger  <aj@suse.de>
24735
24736         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
24737         since we manipulate rounding mode.
24738         (CPPFLAGS-test-idouble.c): Likewise.
24739         (CPPFLAGS-test-ifloat.c): Likewise.
24740         (CFLAGS-test-ldouble.c): Likewise.
24741         (CFLAGS-test-double.c): Likewise.
24742         (CFLAGS-test-float.c): Likewise.
24743         (CFLAGS-test-misc.c): Likewise.
24744         (CFLAGS-test-test-fenv.c): Likewise.
24745
24746 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24747
24748         [BZ #2550]
24749         [BZ #2570]
24750         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
24751         comparisons to determine direction to adjust input.
24752
24753 2012-05-01  Roland McGrath  <roland@hack.frob.com>
24754
24755         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
24756         output to the target.
24757
24758         * scripts/localplt.awk: New file.
24759         * elf/Makefile ($(objpfx)check-localplt): Target removed.
24760         (check-localplt-CFLAGS): Variable removed.
24761         ($(all-built-dso:=.jmprel)): New static pattern rule.
24762         (generated): Add those targets.
24763         (localplt-built-dso): New variable.
24764         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
24765
24766         * elf/check-localplt.c: File removed.
24767
24768         * scripts/check-execstack.awk: New file.
24769         * elf/Makefile ($(objpfx)check-execstack): Target removed.
24770         (check-execstack-CFLAGS): Variable removed.
24771         ($(objpfx)check-execstack.h): Target removed.
24772         ($(objpfx)execstack-default): New target.
24773         (generated): Add that instead of check-execstack.h.
24774         ($(all-built-dso:=.phdr)): New static pattern rule.
24775         (generated): Add those targets.
24776         * elf/check-execstack.c: File removed.
24777
24778         * scripts/check-textrel.awk: New file.
24779         * elf/Makefile ($(objpfx)check-textrel): Target removed.
24780         (check-textrel-CFLAGS): Variable removed.
24781         (all-built-dso): Use := to define.o
24782         ($(all-built-dso:=.dyn)): New static pattern rule.
24783         (generated): Add those targets.
24784         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
24785         * config.make.in (READELF): New substituted variable.
24786         * elf/check-textrel.c: File removed.
24787
24788 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
24789
24790         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
24791         allow.
24792         * conform/data/ctype.h-data [C99-based standards] (isblank):
24793         Expect function.
24794         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
24795         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
24796         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24797         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
24798         Specify type.  Require positive value.
24799         (EILSEQ): Likewise.
24800         (ERANGE): Likewise.
24801         [ISO || POSIX] (EILSEQ): Do not expect.
24802         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
24803         Specify type.  Require positive value.
24804         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
24805         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
24806         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
24807         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
24808         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
24809         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
24810         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
24811         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
24812         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
24813         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
24814         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
24815         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
24816         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
24817         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
24818         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
24819         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
24820         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
24821         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
24822         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
24823         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
24824         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
24825         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
24826         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
24827         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
24828         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
24829         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
24830         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
24831         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
24832         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
24833         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
24834         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
24835         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
24836         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
24837         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
24838         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
24839         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
24840         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
24841         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
24842         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
24843         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
24844         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
24845         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
24846         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
24847         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
24848         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
24849         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
24850         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
24851         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
24852         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
24853         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
24854         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
24855         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
24856         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
24857         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
24858         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
24859         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
24860         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
24861         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
24862         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
24863         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
24864         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
24865         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
24866         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
24867         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
24868         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
24869         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
24870         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
24871         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
24872         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
24873         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
24874         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
24875         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
24876         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
24877         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
24878         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
24879         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
24880         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
24881         Require >= 2.
24882         (FLT_ROUNDS): Expect as macro, not constant.
24883         (FLT_MANT_DIG): Use macro-int-constant.
24884         (DBL_MANT_DIG): Likewise.
24885         (LDBL_MANT_DIG): Likewise.
24886         (FLT_DIG): Likewise.
24887         (DBL_DIG): Likewise.
24888         (LDBL_DIG): Likewise.
24889         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
24890         (DBL_MIN_EXP): Likewise.
24891         (LDBL_MIN_EXP): Likewise.
24892         (FLT_MAX_EXP): Use macro-int-constant.
24893         (DBL_MAX_EXP): Likewise.
24894         (LDBL_MAX_EXP): Likewise.
24895         (FLT_MAX_10_EXP): Likewise.
24896         (DBL_MAX_10_EXP): Likewise.
24897         (LDBL_MAX_10_EXP): Likewise.
24898         (FLT_MAX): Use macro-constant.
24899         (DBL_MAX): Likewise.
24900         (LDBL_MAX): Likewise.
24901         (FLT_EPSILON): Use macro-constant.  Give upper bound.
24902         (DBL_EPSILON): Likewise.
24903         (LDBL_EPSILON): Likewise.
24904         (FLT_MIN): Likewise.
24905         (DBL_MIN): Likewise.
24906         (LDBL_MIN): Likewise.
24907         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
24908         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
24909         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
24910         [ISO11] (FLT_HAS_SUBNORM): Likewise.
24911         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
24912         [ISO11] (DBL_DECIMAL_DIG): Likewise.
24913         [ISO11] (FLT_DECIMAL_DIG): Likewise.
24914         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
24915         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
24916         [ISO11] (FLT_TRUE_MIN): Likewise.
24917         [ISO11] (LDBL_TRUE_MIN): Likewise.
24918         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24919         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
24920         (SCHAR_MIN): Use macro-int-constant.  Specify type.
24921         (SCHAR_MAX): Likewise.
24922         (UCHAR_MAX): Likewise.
24923         (CHAR_MIN): Likewise.
24924         (CHAR_MAX): Likewise.
24925         (MB_LEN_MAX): Use macro-int-constant.
24926         (SHRT_MIN): Use macro-int-constant.  Specify type.
24927         (SHRT_MAX): Likewise.
24928         (USHRT_MAX): Likewise.
24929         (INT_MAX): Likewise.
24930         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
24931         bound negative.
24932         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24933         bound with "U".
24934         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24935         bound with "L".
24936         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
24937         bound negative.  Suffix upper bound with "L".
24938         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
24939         bound with "UL".
24940         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
24941         Specify type.
24942         [C99-based standards] (LLONG_MAX): Likewise.
24943         [C99-based standards] (ULLONG_MAX): Likewise.
24944         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
24945         == 0.
24946         [ISO11] (max_align_t): Require type.
24947         [ISO || ISO99 || ISO11] (*_t): Do not allow.
24948
24949         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
24950         from $CFLAGS, without defining away __attribute__ calls.
24951         (checknamespace): Use $CFLAGS_namespace.
24952
24953         * conform/conformtest.pl (@keywords): Only include C99 keywords
24954         for standards based on C99 or C11.
24955
24956         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
24957         Disable tests.
24958         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
24959         UNIX98]: Likewise.
24960
24961         * conform/conformtest.pl: Handle "macro-int-constant" and test for
24962         usability of symbols in #if.
24963
24964         * conform/conformtest.pl: If macro or constant types start
24965         "promoted:", expect the symbol to be of the following type
24966         promoted by the integer promotions.
24967
24968         * conform/conformtest.pl: Parse all "constant" and "macro" lines
24969         in one place.  Also handle "macro-constant".
24970
24971         * conform/conformtest.pl: Only accept expected macro values with
24972         "==".  Parse all "macro" lines in one place.
24973         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
24974
24975         * conform/conformtest.pl: Handle braced types on "constant" lines
24976         instead of handling "typed-constant".
24977         * conform/data/signal.h-data: Use "constant" instead of
24978         "typed-constant".
24979
24980         * conform/conformtest.pl: Handle "optional-" at start of lines in
24981         one place rather than duplicating several cases.  Handle each
24982         format of "macro" line with initial "optional-".
24983
24984         * conform/conformtest.pl: Only accept expected constant or
24985         optional-constant values with "==".  Parse all "constant" lines in
24986         one place.  Parse all "optional-constant" lines in one place.
24987         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
24988         * conform/data/fmtmsg.h-data: Likewise.
24989         * conform/data/netinet/in.h-data: Likewise.
24990         * conform/data/tar.h-data: Likewise.
24991         * conform/data/limits.h-data: Use "==" form on "constant" and
24992         "optional-constant" lines.
24993
24994         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
24995         Use -std=c99 for XOPEN2K.
24996         (@knownproblems): Remove.
24997         (newtoken): Don't check %isknown.
24998
24999         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
25000         Do not expect macro.
25001         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
25002         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
25003         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
25004         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
25005         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
25006         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
25007         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
25008         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
25009         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
25010         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
25011         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
25012         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
25013         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
25014         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
25015         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
25016         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
25017         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
25018         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
25019         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
25020         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
25021         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
25022         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
25023         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
25024         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
25025         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
25026         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
25027         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
25028         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
25029         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
25030         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
25031         [XPG3] (acosh): Likewise.
25032         [XPG3] (asinh): Likewise.
25033         [XPG3] (atanh): Likewise.
25034         [XPG3] (cbrt): Likewise.
25035         [XPG3] (expm1): Likewise.
25036         [XPG3] (ilogb): Likewise.
25037         [XPG3] (log1p): Likewise.
25038         [XPG3] (logb): Likewise.
25039         [XPG3] (nextafter): Likewise.
25040         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
25041         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
25042         [XPG3] (remainder): Likewise.
25043         [XPG3] (rint): Likewise.
25044         [XPG3 || XPG4 || UNIX98] (round): Likewise.
25045         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
25046         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
25047         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
25048         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
25049         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
25050         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
25051         [UNIX98 || XOPEN2K] (scalb): Expect.
25052         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
25053         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
25054         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
25055         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
25056         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
25057         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
25058         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
25059         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
25060         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
25061         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
25062         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
25063         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
25064         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
25065         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
25066         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
25067         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
25068         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
25069         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
25070         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
25071         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
25072         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
25073         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
25074         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
25075         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
25076         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
25077         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
25078         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
25079         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
25080         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
25081         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
25082         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
25083         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
25084         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
25085         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
25086         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
25087         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
25088         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
25089         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
25090         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
25091         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
25092         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
25093         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
25094         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
25095         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
25096         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
25097         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
25098         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
25099         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
25100         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
25101         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
25102         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
25103         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
25104         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
25105         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
25106         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
25107         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
25108         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
25109         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
25110         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
25111         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
25112         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
25113         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
25114         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
25115         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
25116         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
25117         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
25118         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
25119         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
25120         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
25121         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
25122         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
25123         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
25124         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
25125         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
25126         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
25127         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
25128         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
25129         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
25130         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
25131         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
25132         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
25133         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
25134         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
25135         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
25136         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
25137         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
25138         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
25139         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
25140         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
25141         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
25142         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
25143         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
25144         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
25145         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
25146         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
25147         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
25148         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
25149         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
25150         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
25151         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
25152         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
25153         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
25154         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
25155         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
25156         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
25157         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
25158         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
25159         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
25160         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
25161         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
25162         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
25163         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
25164         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
25165         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
25166         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
25167         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
25168         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
25169         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
25170         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
25171         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
25172         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
25173         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
25174         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
25175         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
25176         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
25177         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
25178         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
25179         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
25180         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
25181         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
25182         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
25183         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
25184         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
25185         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
25186         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
25187         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
25188         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
25189
25190         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
25191         _XOPEN_SOURCE_EXTENDED for XPG4.
25192
25193         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
25194
25195         * Makeconfig (localtime): Remove variable.
25196         (inst_localtime-file): Likewise.
25197
25198 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25199
25200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
25201         Update.
25202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25203         Update.
25204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
25205         Update.
25206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
25207         Update.
25208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
25209         Update.
25210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
25211         Update.
25212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25213         Update.
25214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
25215         Update.
25216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25217         Update.
25218
25219 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
25220
25221         [BZ #2550]
25222         [BZ #2570]
25223         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
25224         comparisons to determine direction to adjust input.
25225         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25226         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
25227         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
25228         Likewise.
25229         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
25230         Likewise.
25231         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25232         Likewise.
25233         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
25234         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25235         Likewise.
25236         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25237         Likewise.
25238         * math/libm-test.inc (nexttoward_test): Add more tests.
25239
25240 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25241
25242         [BZ #14040]
25243         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
25244         in version GLIBC_2.1, not GLIBC_2.0.
25245         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
25246         Likewise.
25247
25248 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
25249
25250         [BZ #13942]
25251         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
25252         (1 - x) * (1 + x).
25253         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25254         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
25255         * math/libm-test.inc (acos_test): Add more tests.
25256         (asin_test): Likewise.
25257         * sysdeps/i386/fpu/libm-test-ulps: Update.
25258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25259
25260         [BZ #14034]
25261         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
25262         of square root.
25263         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
25264         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
25265         * math/libm-test.inc (acos_test_tonearest): New function.
25266         (acos_test_towardzero): Likewise.
25267         (acos_test_downward): Likewise.
25268         (acos_test_upward): Likewise.
25269         (asin_test_tonearest): Likewise.
25270         (asin_test_towardzero): Likewise.
25271         (asin_test_downward): Likewise.
25272         (asin_test_upward): Likewise.
25273         (main): Call the new functions.
25274         * sysdeps/i386/fpu/libm-test-ulps: Update.
25275         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25276
25277         [BZ #13884]
25278         [BZ #13924]
25279         * math/e_exp10.c: Include <float.h>.
25280         (__ieee754_exp10): Handle underflow here rather than multiplying
25281         large negative argument by M_LN10.
25282         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
25283         of __ieee754_expf.
25284         * math/e_exp10l.c: Include <float.h>.
25285         (__ieee754_exp10l): Handle underflow here rather than multiplying
25286         large negative argument by M_LN10l.
25287         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
25288         spurious overflow exception on underflow.
25289
25290 2012-04-29  Marek Polacek  <polacek@redhat.com>
25291
25292         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
25293         (__fortify_function): New macro.
25294         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
25295         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
25296         __extern_always_inline.
25297         * libio/bits/stdio2.h: Likewise.
25298         * libio/bits/stdio.h: Likewise.
25299         * string/string.h: Likewise.
25300         * string/bits/string3.h: Likewise.
25301         * include/stdio.h: Likewise.
25302         * stdlib/bits/stdlib.h: Likewise.
25303         * stdlib/stdlib.h: Likewise.
25304         * rt/bits/mqueue2.h: Likewise.
25305         * rt/mqueue.h: Likewise.
25306         * posix/bits/unistd.h: Likewise.
25307         * posix/unistd.h: Likewise.
25308         * io/bits/poll2.h: Likewise.
25309         * io/bits/fcntl2.h: Likewise.
25310         * io/fcntl.h: Likewise.
25311         * io/sys/poll.h: Likewise.
25312         * misc/bits/syslog.h: Likewise.
25313         * misc/bits/syslog-ldbl.h: Likewise.
25314         * misc/sys/syslog.h: Likewise.
25315         * socket/bits/socket2.h: Likewise.
25316         * socket/sys/socket.h: Likewise.
25317         * debug/tst-chk1.c: Likewise.
25318         * wcsmbs/bits/wchar2.h: Likewise.
25319         * wcsmbs/bits/wchar-ldbl.h: Likewise.
25320         * wcsmbs/wchar.h: Likewise.
25321
25322 2012-04-29  Andreas Jaeger  <aj@suse.de>
25323
25324         * Makerules (tests): Remove enable-check-abi protection.
25325         (check-abi-warn): Remove.
25326         (check-abi-%): Remove check-abi-warn usage.
25327
25328         * configure.in: Remove check-abi configure option.
25329         * configure: Regenerated.
25330         * config.make.in (enable-check-abi): Remove.
25331
25332 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
25333
25334         [BZ #14033]
25335         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
25336         double functions to double *_finite functions.
25337
25338         [BZ #13941]
25339         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
25340         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
25341         LDBL_MIN_EXP.
25342         * stdio-common/Makefile (tests): Add tst-sprintf3.
25343         * stdio-common/tst-sprintf3.c: New file.
25344
25345         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
25346         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
25347
25348 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
25349
25350         * conform/conformtest.pl: Remove duplicate typed-constant
25351         handling.
25352
25353 2012-04-28  David S. Miller  <davem@davemloft.net>
25354
25355         * Makerules (%.abilist): Add vpath on sysdep_dirs.
25356         (check-abi-%): Remove AWK script prerequisite and explicit
25357         abilist directory.
25358         (check-abi): Rewrite to just diff the symlist with the abilist.
25359         (config-tls, config-abi-config): Delete, no longer used.
25360         (update-abi-%): Remove AWK script and explicit abilist directory.
25361         (update-abi): Rewrite to simply compare and conditionally copy the
25362         symlist and the sysdep abilist file.  Remove update-abi-config
25363         checks.
25364         * abilist/ld.abilist: Remove.
25365         * abilist/libBrokenLocale.abilist: Remove.
25366         * abilist/libanl.abilist: Remove.
25367         * abilist/libcrypt.abilist: Remove.
25368         * abilist/libdl.abilist: Remove.
25369         * abilist/librt.abilist: Remove.
25370         * abilist/libthread_db.abilist: Remove.
25371         * abilist/libutil.abilist: Remove.
25372         * scripts/extract-abilist.awk: Remove.
25373         * scripts/merge-abilist.awk: Remove.
25374         * sysdeps/generic/libcidn.abilist: New file.
25375         * sysdeps/generic/libnss_compat.abilist: New file.
25376         * sysdeps/generic/libnss_db.abilist: New file.
25377         * sysdeps/generic/libnss_dns.abilist: New file.
25378         * sysdeps/generic/libnss_files.abilist: New file.
25379         * sysdeps/generic/libnss_hesiod.abilist: New file.
25380         * sysdeps/generic/libnss_nis.abilist: New file.
25381         * sysdeps/generic/libnss_nisplus.abilist: New file.
25382         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
25383         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
25384         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
25385         file.
25386         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
25387         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
25388         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
25389         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
25390         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
25391         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
25392         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
25393         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
25394         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
25395         file.
25396         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
25397         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
25398         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
25399         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
25400         file.
25401         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
25402         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
25403         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
25404         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
25405         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
25406         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
25407         file.
25408         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
25409         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
25410         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
25411         file.
25412         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
25413         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
25414         New file.
25415         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
25416         New file.
25417         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
25418         New file.
25419         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
25420         New file.
25421         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
25422         New file.
25423         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
25424         New file.
25425         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
25426         New file.
25427         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
25428         New file.
25429         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
25430         New file.
25431         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
25432         New file.
25433         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
25434         New file.
25435         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
25436         New file.
25437         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
25438         New file.
25439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
25440         file.
25441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
25442         New file.
25443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
25444         New file.
25445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
25446         file.
25447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
25448         New file.
25449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
25450         New file.
25451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
25452         file.
25453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
25454         New file.
25455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
25456         New file.
25457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
25458         New file.
25459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
25460         New file.
25461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
25462         New file.
25463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
25464         New file.
25465         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
25466         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
25467         file.
25468         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
25469         New file.
25470         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
25471         file.
25472         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
25473         file.
25474         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
25475         file.
25476         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
25477         file.
25478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
25479         file.
25480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
25481         New file.
25482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
25483         file.
25484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
25485         file.
25486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
25487         New file.
25488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
25489         file.
25490         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
25491         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
25492         file.
25493         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
25494         New file.
25495         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
25496         file.
25497         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
25498         file.
25499         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
25500         file.
25501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
25502         file.
25503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
25504         file.
25505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
25506         New file.
25507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
25508         file.
25509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
25510         file.
25511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
25512         New file.
25513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
25514         file.
25515         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
25516         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
25517         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
25518         file.
25519         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
25520         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
25521         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
25522         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
25523         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
25524         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
25525         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
25526         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
25527         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
25528         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
25529         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
25530         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
25531         file.
25532         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
25533         New file.
25534         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
25535         file.
25536         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
25537         file.
25538         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
25539         file.
25540         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
25541         file.
25542         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
25543         file.
25544         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
25545         New file.
25546         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
25547         New file.
25548         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
25549         file.
25550         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
25551         New file.
25552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
25553         file.
25554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
25555         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
25556         file.
25557         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
25558         New file.
25559         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
25560         file.
25561         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
25562         file.
25563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
25564         file.
25565         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
25566         file.
25567         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
25568         file.
25569         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
25570         New file.
25571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
25572         New file.
25573         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
25574         file.
25575         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
25576         New file.
25577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
25578         file.
25579
25580 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
25581
25582         * conform/conformtest.pl: Fix typo in handling typed-constant from
25583         allow-header.
25584
25585 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
25586
25587         * README: Cut down references to pre-2.6 Linux kernels and
25588         Linuxthreads.  Update lists of configurations in libc and ports
25589         and sort alphabetically.  Say "or newer" with Linux kernel version
25590         requirements.
25591
25592         * config.h.in [IS_IN_build]: Allow compiling without optimization.
25593
25594 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
25595
25596         [BZ #887]
25597         * math/libm-test.inc (logb_test_downward): New test to expose
25598         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
25599         rounding mode.
25600
25601 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
25602
25603         [BZ #14027]
25604         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
25605         to be done.
25606         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
25607         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
25608
25609 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
25610
25611         * sysdeps/unix/i386/brk.S: Remove file.
25612         * sysdeps/unix/i386/dl-brk.S: Likewise.
25613         * sysdeps/unix/i386/pipe.S: Likewise.
25614         * sysdeps/unix/i386/sigreturn.S: Likewise.
25615         * sysdeps/unix/i386/syscall.S: Likewise.
25616         * sysdeps/unix/i386/vfork.S: Likewise.
25617         * sysdeps/unix/i386/wait.S: Likewise.
25618
25619         * sysdeps/unix/common/tcsendbrk.c: Move to ...
25620         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
25621
25622         * configure.in (arm*-none*): Do not allow without
25623         --enable-hacker-mode.
25624         (netbsd*): Remove case setting base_os.
25625         (386bsd*): Likewise.
25626         (freebsd*): Likewise.
25627         (bsdi*): Likewise.
25628         (osf*): Likewise.
25629         (sunos*): Likewise.
25630         (ultrix*): Likewise.
25631         (newsos*): Likewise.
25632         (dynix*): Likewise.
25633         (*bsd*): Likewise.
25634         (sysv*): Likewise.
25635         (isc*): Likewise.
25636         (esix*): Likewise.
25637         (sco*): Likewise.
25638         (minix*): Likewise.
25639         (irix4*): Likewise.
25640         (irix6*): Likewise.
25641         (solaris[2-9]*): Likewise.
25642         (none): Likewise.
25643         * configure: Regenerated.
25644
25645 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25646
25647         [BZ #11521]
25648         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
25649         overflow or cancellation in calculating denominator.
25650         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
25651         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
25652         down expression to avoid unexpected rounding in newer GCCs.
25653         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
25654
25655 2012-04-26  David S. Miller  <davem@davemloft.net>
25656
25657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
25658         long-double compat symbols.
25659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
25660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
25661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
25662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
25663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
25664         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
25665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
25666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
25667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
25668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
25669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
25670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
25671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
25672
25673 2012-04-25  David S. Miller  <davem@davemloft.net>
25674
25675         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
25676         HWCAP_* values only after the memory barriers have been defined.
25677         (atomic_full_barrier): Define.
25678         (atomic_read_barrier): Define.
25679         (atomic_write_barrier): Define.
25680
25681 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
25682
25683         * shlib-versions: Add libgcc_s version information.
25684         * sysdeps/generic/libgcc_s.h: Remove.
25685         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
25686         libgcc_s.h.
25687         * sysdeps/gnu/unwind-resume.c: Likewise.
25688         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
25689
25690 2012-04-25  David S. Miller  <davem@davemloft.net>
25691
25692         * sysdeps/unix/sparc/brk.S: Delete.
25693         * sysdeps/unix/sparc/dl-brk.S: Delete.
25694         * sysdeps/unix/sparc/pipe.S: Delete.
25695         * sysdeps/unix/sparc/sysdep.S: Delete.
25696         * sysdeps/unix/sparc/sysdep.h: Delete.
25697         * sysdeps/unix/sparc/vfork.S: Delete.
25698         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
25699         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
25700         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
25701         ret_ERRVAL, r0, r1, MOVE): Define.
25702         (JUMPTARGET): Remove.
25703         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
25704         sysdeps/unix/sparc/sysdep.h
25705         (ENTRY, END): Remove.
25706         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25707
25708 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
25709
25710         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
25711         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
25712         -DIS_IN_build.
25713
25714         * timezone/README: Update upstream location and email address for
25715         tzcode and tzdata.
25716         * timezone/zdump.c: Update from tzcode 2012b.
25717         * timezone/zic.c: Likewise.
25718
25719         * configure.in (libc_cv_as_needed): Remove test.
25720         * configure: Regenerated.
25721         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
25722         conditional definition.
25723         [$(have-as-needed) != yes] (no-as-needed): Likewise.
25724         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
25725         * config.make.in (have-as-needed): Remove variable.
25726
25727 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
25728             Paul Pluzhnikov  <ppluzhnikov@google.com>
25729
25730         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
25731         strings correctly.
25732
25733 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
25734
25735         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
25736         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
25737         * sysdeps/sh/strlen.S: Likewise.
25738
25739 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25740
25741         * sysdeps/unix/fork.S: Remove file.
25742         * sysdeps/unix/i386/fork.S: Likewise.
25743         * sysdeps/unix/sparc/fork.S: Likewise.
25744
25745         * sysdeps/unix/system.c: Remove file.
25746         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
25747
25748         * sysdeps/unix/getegid.S: Remove file.
25749         * sysdeps/unix/geteuid.S: Likewise.
25750
25751 2012-04-24  Roland McGrath  <roland@hack.frob.com>
25752
25753         * scripts/check-localplt.awk: New file.
25754         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
25755         of diff.
25756         * scripts/data/localplt-generic.data: Add a comment.
25757
25758         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
25759         NODE when __dir_mkfile failed.
25760         * sysdeps/mach/hurd/symlinkat.c: Likewise.
25761         Reported by Ludovic Courtès <ludo@gnu.org>.
25762
25763 2012-04-24  Andreas Jaeger  <aj@suse.de>
25764
25765         * Makerules (common-clean): Also remove gen-as-const-headers
25766         files.
25767
25768 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25769
25770         * Makerules (native-compile): Do not change working directory for
25771         build.  Use $(OUTPUT_OPTION) in command.
25772         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
25773
25774 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25775
25776         [BZ #13886]
25777         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
25778         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
25779         * math/libm-test.inc (floor_test): Add more tests.
25780         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
25781
25782 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
25783
25784         * sysdeps/unix/getdents.c: Remove file.
25785         * sysdeps/unix/sysv/getdents.c: Likewise.
25786         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
25787
25788         * sysdeps/unix/syscalls.list (madvise): Add syscall from
25789         sysdeps/unix/mman/syscalls.list.
25790         (mmap): Likewise.
25791         (mprotect): Likewise.
25792         (msync): Likewise.
25793         (munmap): Likewise.
25794         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
25795         * sysdeps/unix/mman/syscalls.list: Remove.
25796         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
25797
25798         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
25799         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
25800         * configure: Regenerated.
25801         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
25802         $(libgcc_s_suffix).
25803         * config.make.in (libgcc_s_suffix): Remove variable.
25804
25805 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
25806
25807         * sysdeps/unix/sysv/gethostname.c: Move to ...
25808         * sysdeps/posix/gethostname.c: ... here.
25809
25810         * sysdeps/unix/execve.S: Remove file.
25811
25812         * sysdeps/unix/_exit.S: Remove file.
25813
25814 2012-04-23  Andreas Jaeger  <aj@suse.de>
25815
25816         [BZ #13739]
25817         * manual/Makefile: Remove make dist support, there's no
25818         need for a stand-alone documentation tar ball.
25819         (TEXI2DVI): Define always, it's not in Makeconfig.
25820         (dist): Removed.
25821         (tar-it): Removed.
25822         (edition): Removed.
25823         (glibc-doc-$(edition).tar): Removed
25824         (%.Z): Removed.
25825         (%.gz): Removed.
25826         (%.uu): Removed.
25827         (ETAGS): Remove, it's in Makeconfig.
25828         (move-if-change): Remove, it's in Makeconfig.
25829
25830 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
25831
25832         [BZ #13970]
25833         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
25834         (strtod, strtof, strtold, strtol, strtoul, strtoq)
25835         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
25836         (strtod_l, strtof_l, strtold_l): Remove __wur.
25837         It is not necessarily an error to ignore strtol's return value.
25838         One can reliably look at the stored endptr to decide whether
25839         the number had valid syntax.
25840
25841 2012-04-21  Andreas Jaeger  <aj@suse.de>
25842
25843         [BZ #13739]
25844         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
25845
25846 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
25847
25848         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
25849         * sysdeps/unix/sysv/Versions: Remove file.
25850
25851 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
25852
25853         [BZ #13927]
25854         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25855
25856 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
25857
25858         [BZ #7064]
25859         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
25860         version from __vm86.
25861
25862 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
25863
25864         * sysdeps/unix/common/lxstat.c: Remove file.
25865         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
25866
25867         * sysdeps/unix/sysv/Makefile: Remove file.
25868
25869         * sysdeps/unix/sysv/direct.h: Remove file.
25870
25871         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
25872         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
25873         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
25874         * sysdeps/unix/sysv/bits/signum.h: Likewise.
25875         * sysdeps/unix/sysv/bits/stat.h: Likewise.
25876         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
25877         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
25878
25879         * sysdeps/unix/sysv/setrlimit.c: Remove file.
25880
25881         * sysdeps/unix/xmknod.c: Remove file.
25882         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
25883
25884         * sysdeps/unix/sysv/settimeofday.c: Remove file.
25885
25886         * sysdeps/unix/sysv/i386/time.S: Remove file.
25887
25888         * sysdeps/unix/fxstat.c: Remove file.
25889         * sysdeps/unix/xstat.c: Likewise.
25890         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
25891
25892         * sysdeps/unix/sysv/sigaction.c: Remove file.
25893
25894         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
25895         (sysdep_headers): Remove variable.
25896         [termio.h not in sysdep_headers] (generated): Likewise.
25897         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
25898         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
25899         * sysdeps/unix/sysv/tcdrain.c: Likewise.
25900         * sysdeps/unix/sysv/tcflow.c: Likewise.
25901         * sysdeps/unix/sysv/tcflush.c: Likewise.
25902         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
25903         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
25904         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
25905         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
25906         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
25907
25908         * sysdeps/unix/siglist.c: Remove file.
25909
25910         * sysdeps/unix/getppid.S: Remove file.
25911
25912         * sysdeps/unix/mkdir.c: Remove file.
25913         * sysdeps/unix/rmdir.c: Likewise.
25914
25915 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
25916
25917         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
25918         ERR_MAX value.
25919         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
25920         errlist-compat value.
25921
25922 2012-04-18  David S. Miller  <davem@davemloft.net>
25923
25924         * sysdeps/generic/memcopy.h (reg_char): Delete.
25925         * debug/strcat_chk.c: Use char, not reg_char.
25926         * debug/strcpy_chk.c: Likewise.
25927         * debug/strncat_chk.c: Likewise.
25928         * debug/strncpy_chk.c: Likewise.
25929         * string/memchr.c: Likewise.
25930         * string/memrchr.c: Likewise.
25931         * string/rawmemchr.c: Likewise.
25932         * string/strcat.c: Likewise.
25933         * string/strchr.c: Likewise.
25934         * string/strchrnul.c: Likewise.
25935         * string/strcmp.c: Likewise.
25936         * string/strcpy.c: Likewise.
25937         * string/strncat.c: Likewise.
25938         * string/strncmp.c: Likewise.
25939         * string/strncpy.c: Likewise.
25940
25941 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25942
25943         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
25944         __builtin_memcopy is called when src and dest ranges are known to not
25945         overlap.
25946
25947 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25948
25949         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
25950         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
25951         fwd_align_merge macro call.
25952         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
25953         bwd_align_merge macro call.
25954         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
25955
25956 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
25957
25958         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
25959         bwd_align_merge macros.
25960         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
25961         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
25962         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
25963
25964 2012-04-18  David S. Miller  <davem@davemloft.net>
25965
25966         * sysdeps/sparc/sparc64/memcopy.h: Delete.
25967
25968 2012-04-18  Andreas Jaeger  <aj@suse.de>
25969
25970         [BZ# 6794]
25971         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
25972         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
25973         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25974
25975         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
25976         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
25977         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25978
25979         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
25980         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
25981         Adjust for changed ldbl-128 files.
25982
25983         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
25984         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
25985         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
25986
25987 2012-04-17  David S. Miller  <davem@davemloft.net>
25988
25989         * sysdeps/sparc/sparc32/memcopy.h: Delete.
25990
25991 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
25992
25993         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
25994         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
25995         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
25996         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
25997         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
25998         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
25999
26000 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26001
26002         [BZ #6794]
26003         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
26004         * math/libm-test.inc: Add ilogb errno and exception tests.
26005         * math/w_ilogb.c: New file: ilogb wrapper.
26006         * math/w_ilogbf.c: New file: ilogbf wrapper.
26007         * math/w_ilogbl.c: New file: ilogbl wrapper.
26008         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
26009         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
26010         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
26011         exception being thrown with 0.0 as argument.
26012         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
26013         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
26014         exception being thrown with 0.0 as argument.
26015         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
26016         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26017         exception being thrown with 0.0 as argument.
26018         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
26019         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
26020         exception being thrown with 0.0 as argument.
26021         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
26022         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
26023         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
26024         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
26025         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
26026         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
26027         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
26028         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
26029         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
26030
26031 2012-04-17  Petr Baudis  <pasky@ucw.cz>
26032
26033         * include/sys/uio.h: Change __vector to __iovec to avoid clash
26034         with altivec.
26035
26036 2012-04-16  Marek Polacek  <polacek@redhat.com>
26037
26038         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
26039
26040 2012-04-16  Marek Polacek  <polacek@redhat.com>
26041
26042         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
26043         operands of fdivp instruction.
26044
26045 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26046
26047         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
26048         * elf/tst-auditmod3b.c: Likewise.
26049         * elf/tst-auditmod4b.c: Likewise.
26050         * elf/tst-auditmod5b.c: Likewise.
26051         * elf/tst-auditmod6b.c: Likewise.
26052         * elf/tst-auditmod6c.c: Likewise.
26053         * elf/tst-auditmod7b.c: Likewise.
26054         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
26055         * sysdeps/x86_64/preconfigure.in: Likewise.
26056         * sysdeps/x86_64/preconfigure: Regenerated.
26057
26058 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
26059
26060         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
26061         __ILP32__.
26062
26063 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
26064
26065         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26066         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
26067
26068 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
26069
26070         [BZ #13973]
26071         * locale/iso-639.def: Fix gl language name. Spotted by
26072         Yaron Shahrabani.
26073
26074 2012-04-12  Roland McGrath  <roland@hack.frob.com>
26075
26076         [BZ #2074]
26077         * libio/libio.h (__io_write_fn): Update comment.
26078
26079 2012-04-12  Petr Baudis  <pasky@ucw.cz>
26080
26081         [BZ #2074]
26082         * stdio.texi (Hook Functions): The user provided writer function
26083         is not allowed to return -1.
26084
26085 2012-04-11  David S. Miller  <davem@davemloft.net>
26086
26087         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26088
26089 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
26090
26091         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
26092         Add a leading slash to rtkaio.
26093
26094 2012-04-11  Jim Meyering  <meyering@redhat.com>
26095
26096         [BZ #11959]
26097         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
26098         It is not necessarily an error to ignore fwrite's return
26099         value.  One can reliably use ferror to test for errors after
26100         the fact.
26101
26102 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26103
26104         * bits/types.h (__snseconds_t): New type.
26105         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
26106
26107         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
26108         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26109         (__SNSECONDS_T_TYPE): Likewise.
26110         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26111         (__SNSECONDS_T_TYPE): Likewise.
26112         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26113         (__SNSECONDS_T_TYPE): Likewise.
26114
26115 2012-04-10  Andreas Jaeger  <aj@suse.de>
26116
26117         [BZ #2636]
26118         * manual/time.texi (Processor Time): Return type of times is
26119         elapsed real time since an arbitrary point in the past.
26120         (CPU Time): Move CLK_TCK from here...
26121         (Processor Time): ...to here.  Correct description.
26122         * manual/conf.texi (Constants for Sysconf): Correct description of
26123         _SC_CLK_TCK.
26124
26125 2012-04-10  David S. Miller  <davem@davemloft.net>
26126
26127         [BZ #13967]
26128         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
26129         where the is a gap between DT_REL(A) and DT_JMPREL.
26130
26131 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
26132
26133         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
26134         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26135         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26136
26137 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26138
26139         * elf/dl-support.c (_dl_inhibit_cache): New variable.
26140         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
26141         (dl_main): Handle --inhibit-cache.
26142         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
26143         _dl_inhibit_cache.
26144         * elf/dl-load.c (_dl_map_object): Use it.
26145         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
26146
26147 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26148
26149         [BZ #13872]
26150         * sysdeps/i386/fpu/e_powl.S (p78): New object.
26151         (__ieee754_powl): Saturate large exponents rather than testing for
26152         overflow of y*log2(x).
26153         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26154         * math/libm-test.inc (pow_test): Do not permit spurious overflow
26155         exceptions.
26156
26157         [BZ #11521]
26158         * math/s_ctan.c: Include <float.h>.
26159         (__ctan): Avoid internal overflow or cancellation in calculating
26160         denominator.
26161         * math/s_ctanf.c: Likewise.
26162         * math/s_ctanl.c: Likewise.
26163         * math/s_ctanh.c: Likewise.
26164         * math/s_ctanhf.c: Likewise.
26165         * math/s_ctanhl.c: Likewise.
26166         * math/libm-test.inc (ctan_test): Add more tests.
26167         (ctanh_test): Likewise.
26168         * sysdeps/i386/fpu/libm-test-ulps: Update.
26169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26170
26171 2012-04-09  Andreas Jaeger  <aj@suse.de>
26172
26173         [BZ #6894]
26174         * manual/filesys.texi (Directory Entries): Mention that d_namlen
26175         is an optional BSD extension.
26176
26177         [BZ #10254]
26178         * manual/stdio.texi (Opening Streams): Document additional fopen
26179         parameters.
26180
26181 2012-04-09  Roland McGrath  <roland@hack.frob.com>
26182
26183         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
26184         %eax without telling the compiler.
26185
26186 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
26187
26188         [BZ # 13963]
26189         * manual/install.texi: Use sourceware.org.
26190
26191 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
26192
26193         [BZ #13873]
26194         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
26195         (__ieee754_pow): Generate overflow and underflow using huge*huge
26196         and tiny*tiny rather than just returning constant infinity or zero
26197         for large exponents.
26198         * math/libm-test.inc (pow_test): Require overflow exceptions for
26199         applicable cases of large exponents.
26200
26201         [BZ #706]
26202         * sysdeps/i386/fpu/e_pow.S (p10): New object.
26203         (__ieee754_pow): Use iterative multiplication algorithm only for
26204         integer exponents with absolute value below 1024.  Check for odd
26205         integer exponents when using algorithm for real exponents.
26206         * math/libm-test.inc (pow_test): Add more tests.
26207         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26208
26209 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
26210
26211         [BZ #13705]
26212         * math/libm-test.inc (exp_test): Do not allow overflow exception
26213         on underflow test.
26214
26215 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
26216
26217         [BZ #13705]
26218         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
26219         instead of __kernel_standard_f.
26220
26221 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
26222
26223         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
26224         * sysdeps/x86_64/memset_chk.S: Likewise.
26225
26226 2012-04-08  Andreas Jaeger  <aj@suse.de>
26227
26228         [BZ #10153]
26229         * manual/startup.texi (Environment Access): Describe return value
26230         for putenv and setenv.
26231
26232         [BZ #6895]
26233         * manual/filesys.texi (Directory Entries): Add description for
26234         DT_LNK.
26235
26236         [BZ #6890]
26237         * manual/filesys.texi (Directory Entries): Clarify that it's file
26238         system not operating system in the description of DT_UNKNOWN.
26239
26240         [BZ #6578]
26241         * manual/syslog.texi (closelog): Fix reference, it's openlog.
26242
26243 2012-04-08  Stephen Compall  <s11@member.fsf.org>
26244
26245         [BZ #6649]
26246         * manual/llio.texi (Opening and Closing Files): Add cross
26247         reference to explain mode argument.
26248
26249 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
26250
26251         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
26252         * sysdeps/x86_64/memset_chk.S: Likewise.
26253
26254 2012-04-07  David S. Miller  <davem@davemloft.net>
26255
26256         * elf/elf.h (R_SPARC_WDISP10): Define.
26257         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
26258         R_SPARC_SIZE32.
26259         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
26260         R_SPARC_SIZE64 and R_SPARC_H34.
26261
26262 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
26263
26264         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
26265         conditions and remove no longer applicable assertion.
26266
26267 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26268
26269         * bits/byteswap.h: Include <features.h>.
26270         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
26271         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
26272
26273 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
26274
26275         * bits/byteswap.h (__bswap_16): Removed.
26276         Include <bits/byteswap-16.h> to get __bswap_16.
26277         * sysdeps/i386/bits/byteswap.h: Likewise.
26278         * sysdeps/s390/bits/byteswap.h: Likewise.
26279         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26280         * bits/byteswap-16.h: New file.
26281         * sysdeps/i386/bits/byteswap-16.h: Likewise.
26282         * sysdeps/s390/bits/byteswap-16.h: Likewise.
26283         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
26284         * string/Makefile (headers): Add bits/byteswap-16.h.
26285
26286 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
26287
26288         [BZ #13895]
26289         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
26290         extra indirection.
26291         * nss/Makefile (tests-static, tests): Add tst-nss-static.
26292         * nss/tst-nss-static.c: New.
26293
26294 2012-04-06  Robert Millan  <rmh@gnu.org>
26295
26296         [BZ #6486]
26297         * manual/llio.texi (File Position Primitive): lseek
26298         refers to WHENCE when it really means OFFSET.
26299
26300 2012-04-06  Andreas Jaeger  <aj@suse.de>
26301
26302         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
26303         strncmp declarations.
26304
26305         * abilist/libc.abilist: Add __poll and __ppoll.
26306
26307 2012-04-05  David S. Miller  <davem@davemloft.net>
26308
26309         * scripts/check-local-headers.sh: Accept a host triplet in the
26310         path matched by the exclude regexp.
26311
26312         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
26313         definition.
26314         * sysdeps/powerpc/powerpc32/dl-machine.h
26315         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
26316         * sysdeps/s390/s390-32/dl-machine.h
26317         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26318         * sysdeps/sparc/sparc32/dl-machine.h
26319         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26320         * sysdeps/sparc/sparc64/dl-machine.h
26321         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
26322
26323         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
26324         lazy binding.
26325         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
26326         undefined symbol errors.
26327
26328         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
26329         DT_NEEDED entries.
26330
26331 2012-04-05  Michael Matz  <matz@suse.de>
26332
26333         [BZ #13592]
26334         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
26335
26336 2012-04-05  Andreas Jaeger  <aj@suse.de>
26337
26338         [BZ #13908]
26339         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
26340         comment.
26341
26342 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26343
26344         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
26345         which ROUND is no valid rounding mode.
26346
26347 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26348
26349         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
26350         read again.
26351         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
26352
26353 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26354
26355         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
26356         an exception using FPU order intentionally.
26357
26358 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
26359
26360         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
26361         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
26362         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
26363         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
26364
26365 2012-04-05  Simon Josefsson  <simon@josefsson.org>
26366
26367         [BZ #12340]
26368         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
26369         EINVAL when BUFLEN is too smal.
26370
26371 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
26372
26373         [BZ #13553]
26374         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
26375         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
26376
26377 2012-04-03  Andreas Jaeger  <aj@suse.de>
26378
26379         [BZ #13938]
26380         * manual/setjmp.texi (System V contexts): Fix sentence.
26381
26382         [BZ #13926]
26383         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
26384         New macro for this case.
26385         [!__GNUC__] (__bswap_64): New inline function for this case.
26386         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26387         * bits/byteswap.h: Likewise.
26388         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
26389         ull, guard with __GLIBC_HAVE_LONG_LONG.
26390
26391         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
26392         __GLIBC_HAVE_LONG_LONG.
26393
26394         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
26395         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
26396
26397 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26398
26399         [BZ #13691]
26400         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
26401         inptr and inend, rather than using last_ch.
26402
26403 2012-04-02  David S. Miller  <davem@davemloft.net>
26404
26405         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
26406         * stdio-common/printf-parse.h (read_int): Change return type to
26407         'int', return -1 on INT_MAX overflow.
26408         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
26409         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
26410         overflows INT_MAX.  Check for overflow of in-format-string precision
26411         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
26412         SIZE_MAX not INT_MAX for integer overflow test.
26413         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
26414         skip the construct in the format string but do not record anything.
26415         * stdio-common/bug22.c: Adjust to test both width/prevision
26416         INT_MAX overflow as well as total length INT_MAX overflow.  Check
26417         explicitly for proper errno values.
26418
26419 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
26420
26421         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
26422         CHAR_MAX.
26423         * string/test-strcmp.c [! WIDE]: Likewise.
26424         * time/tst-mktime2.c: Likewise for INT_MAX.
26425         * string/test-string.h: #include <sys/param.h> for MIN.
26426
26427         * csu/init-first.c (__libc_init_first): Call __ctype_init.
26428         * sysdeps/i386/init-first.c (init): Likewise.
26429         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
26430         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
26431         * sysdeps/sh/init-first.c (init): Likewise.
26432
26433 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
26434
26435         * po/ru.po: Update from translation team.
26436         * po/vi.po: Likewise.
26437
26438 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
26439
26440         * resolv/nss_dns/dns-host.c: Merge copyright years.
26441
26442 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26443
26444         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
26445         Optimize memcpy with prefetch if
26446         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
26447         src, dst pointers have unequal 16 byte alignments.
26448
26449 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
26450
26451         [BZ #13928]
26452         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
26453         from a CNAME entry and return the minimum ttl for the query.
26454         (gaih_getanswer_slice): Likewise.
26455
26456 2012-03-30  Jeff Law  <law@redhat.com>
26457
26458         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
26459         due to long keys.
26460         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
26461         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
26462
26463         * resolv/nss_dns/dns-host.c: Update copyright year.
26464
26465 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
26466
26467         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
26468         requests to save a system call.  Fix check that all bytes are sent.
26469
26470         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
26471         comments for sendmmsg.
26472
26473 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26474
26475         [BZ #13691]
26476         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
26477         with only 1 character between 0x0041 and 0x01b0.
26478         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
26479         * wcsmbs/tst-mbsnrtowcs.c: New file.
26480
26481 2012-03-29  David S. Miller  <davem@davemloft.net>
26482
26483         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
26484         small copies by hand.
26485
26486 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26487
26488         [BZ #13761]
26489         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
26490         _nss_compat_initgroups_dyn): Fall back to malloc/free
26491         for large group memberships.
26492
26493 2012-03-28  David S. Miller  <davem@davemloft.net>
26494
26495         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
26496         that branches into memcpy.
26497         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
26498         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
26499         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
26500         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
26501         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
26502         bits.
26503         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
26504         implementation too.
26505         * sysdeps/sparc/mempcpy.S: New file.
26506
26507         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
26508         the IFUNC routine in the libc case.
26509         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
26510
26511         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
26512         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
26513         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
26514         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
26515         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
26516         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
26517         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
26518         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
26519
26520         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
26521         loop to 256 bytes instead of 64 bytes and fix test signedness.
26522
26523         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
26524         * sysdeps/sparc/sparc32/Makefile: rather than here...
26525         * sysdeps/sparc/sparc64/Makefile: and here.
26526
26527 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
26528
26529         * malloc/mallocbug.c: Avoid warnings about unused variables.
26530
26531 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
26532
26533         [BZ #13760]
26534         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
26535         in the right place. Discard and retry query if response is
26536         larger than input buffer size.
26537
26538 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
26539
26540         [BZ #369]
26541         [BZ #2678]
26542         [BZ #3866]
26543         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
26544         x for large integer exponent.
26545         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
26546         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
26547         sign of result as needed afterwards.
26548         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
26549         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
26550         result for underflowing pow the same as for overflow.
26551         (__kernel_standard_l): Handle powl overflow and underflow here
26552         rather than calling __kernel_standard.
26553         * math/libm-test.inc (pow_test): Add more tests.
26554
26555         [BZ #3868]
26556         [BZ #13879]
26557         [BZ #13910]
26558         [BZ #13911]
26559         [BZ #13912]
26560         [BZ #13913]
26561         [BZ #13915]
26562         [BZ #13916]
26563         [BZ #13917]
26564         [BZ #13918]
26565         [BZ #13919]
26566         [BZ #13920]
26567         [BZ #13921]
26568         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
26569         * sysdeps/ieee754/k_standard.c: Include <float.h>.
26570         (__kernel_standard_l): New function.
26571         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
26572         __kernel_standard.
26573         * math/w_acosl.c (__acosl): Likewise.
26574         * math/w_asinl.c (__asinl): Likewise.
26575         * math/w_atan2l.c (__atan2l): Likewise.
26576         * math/w_atanhl.c (__atanhl): Likewise.
26577         * math/w_coshl.c (__coshl): Likewise.
26578         * math/w_exp10l.c (__exp10l): Likewise.
26579         * math/w_exp2l.c (__exp2l): Likewise.
26580         * math/w_fmodl.c (__fmodl): Likewise.
26581         * math/w_hypotl.c (__hypotl): Likewise.
26582         * math/w_j0l.c (__j0l, __y0l): Likewise.
26583         * math/w_j1l.c (__j1l, __y1l): Likewise.
26584         * math/w_jnl.c (__jnl, __ynl): Likewise.
26585         * math/w_lgammal.c (__lgammal): Likewise.
26586         * math/w_log10l.c (__log10l): Likewise.
26587         * math/w_log2l.c (__log2l): Likewise.
26588         * math/w_logl.c (__logl): Likewise.
26589         * math/w_powl.c (__powl): Likewise.
26590         * math/w_remainderl.c (__remainderl): Likewise.
26591         * math/w_scalbl.c (sysv_scalbl): Likewise.
26592         * math/w_sinhl.c (__sinhl): Likewise.
26593         * math/w_sqrtl.c (__sqrtl): Likewise.
26594         * math/w_tgammal.c (__tgammal): Likewise.
26595         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
26596         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
26597         * math/libm-test.inc (acos_test): Add more tests.
26598         (acosh_test): Likewise.
26599         (asin_test): Likewise.
26600         (atanh_test): Likewise.
26601         (exp_test): Likewise.
26602         (exp10_test): Likewise.
26603         (exp2_test): Likewise.
26604         (expm1_test): Likewise.
26605         (lgamma_test): Likewise.
26606         (log_test): Likewise.
26607         (log10_test): Likewise.
26608         (log1p_test): Likewise.
26609         (log2_test): Likewise.
26610         (pow_test): Do not allow some spurious overflow exceptions.
26611         (sqrt_test): Add more tests.
26612         (tgamma_test): Likewise.
26613         (y0_test): Likewise.
26614         (y1_test): Likewise.
26615         (yn_test): Likewise.
26616
26617 2012-03-27  Anton Blanchard  <anton@samba.org>
26618
26619         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
26620         MAP_HUGETLB.
26621         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
26622         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
26623         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
26624
26625 2012-03-27  David S. Miller  <davem@davemloft.net>
26626
26627         * conform/Makefile: Run run-conformtest.sh using $(BASH).
26628
26629         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
26630         have-as-vis3 check.
26631
26632 2012-03-27  Andreas Jaeger  <aj@suse.de>
26633
26634         * sysdeps/x86_64/elf/configure.in: Moved to ...
26635         * sysdeps/x86_64/configure.in: ... here.
26636         * sysdeps/x86_64/elf/start.S: Moved to ...
26637         * sysdeps/x86_64/start.S: ... here.
26638         * sysdeps/x86_64/elf/configure: Delete.
26639
26640         * sysdeps/x86_64/configure.in: Merge contents from
26641         sysdeps/i386/configure.in (without i686 check).
26642
26643         * sysdeps/i386/elf/Versions: Merge into ...
26644         * sysdeps/i386/Versions: ... this.
26645         * sysdeps/i386/elf/Versions: Delete file.
26646         * sysdeps/i386/elf/start.S: Moved to ...
26647         * sysdeps/i386/start.S: ...here.
26648         * sysdeps/i386/elf/configure.in: Merge into...
26649         * sysdeps/i386/configure.in: ...here.
26650         * sysdeps/i386/elf/configure.in: Delete file.
26651         * sysdeps/i386/elf/configure: Delete file.
26652
26653         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
26654         * debug/backtracesyms.c: ... here.
26655         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
26656         * debug/backtracesymsfd.c: ... here.
26657         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
26658         * sysdeps/generic/ifunc-sel.h: ... here.
26659
26660         * sysdeps/unix/i386/start.c: Delete file.
26661         * sysdeps/unix/sparc/start.c: Delete file.
26662         * sysdeps/unix/start.c: Delete file.
26663
26664         * sysdeps/sh/elf/configure.in: Moved to ...
26665         * sysdeps/sh/configure.in: ... here.
26666         * sysdeps/sh/elf/start.S: Moved to ...
26667         * sysdeps/sh/start.S: ... here.
26668         * sysdeps/sh/elf/configure: Delete file.
26669
26670         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
26671         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
26672         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
26673         * sysdeps/powerpc/powerpc64/entry.h: ... here.
26674         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
26675         * sysdeps/powerpc/powerpc64/start.S: here.
26676         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
26677         * sysdeps/powerpc/powerpc64/Makefile: ... this.
26678         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
26679         * sysdeps/powerpc/powerpc64/configure.in: ... this.
26680         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
26681
26682         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
26683         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
26684         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
26685         * sysdeps/powerpc/powerpc32/start.S: ... here.
26686         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
26687         * sysdeps/powerpc/powerpc32/configure.in: ... this.
26688         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
26689
26690         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
26691         * sysdeps/powerpc/ifunc-sel.h: ... here.
26692         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
26693         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
26694
26695         * sysdeps/sparc/elf/configure.in: Moved to ...
26696         * sysdeps/sparc/configure.in: ... here.
26697         * sysdeps/sparc/elf/configure: Delete file.
26698         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
26699         * sysdeps/sparc/sparc32/start.S: ... here.
26700         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
26701         * sysdeps/sparc/sparc64/start.S: ... here.
26702         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
26703         * sysdeps/sparc/sparc32/Makefile: ... this.
26704         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
26705         * sysdeps/sparc/sparc64/Makefile: ... this.
26706
26707         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
26708         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
26709         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
26710         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
26711         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
26712         * sysdeps/s390/s390-32/setjmp.S: ... here.
26713         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
26714         * sysdeps/s390/s390-32/configure.in: ... here.
26715         * sysdeps/s390/s390-32/elf/configure: Delete file.
26716         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
26717         * sysdeps/s390/s390-32/start.S: ... here.
26718
26719         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
26720         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
26721         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
26722         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
26723         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
26724         * sysdeps/s390/s390-64/setjmp.S: ... here.
26725         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
26726         * sysdeps/s390/s390-64/configure.in: ... here
26727         * sysdeps/s390/s390-64/elf/configure: Delete file.
26728         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
26729         * sysdeps/s390/s390-64/start.S: ... here.
26730         * sysdeps/s390/s390-64/elf/configure: Delete.
26731
26732         * configure.in: Remove support for elf directories in sysdeps.
26733
26734         * configure: Regenerated.
26735         * sysdeps/i386/configure: Regenerated.
26736         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26737         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26738         * sysdeps/s390/s390-32/configure: Regenerated.
26739         * sysdeps/s390/s390-64/configure: Regenerated.
26740         * sysdeps/sh/configure: Regenerated.
26741         * sysdeps/sparc/configure: Regenerated.
26742         * sysdeps/x86_64/configure: Regenerated.
26743
26744 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
26745
26746         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26747
26748         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
26749         denormal result into account.
26750
26751 2012-03-25  Roland McGrath  <roland@hack.frob.com>
26752
26753         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
26754         Reported by Allan McRae <allan@archlinux.org>.
26755
26756 2012-03-23  Jeff Law  <law@redhat.com>
26757
26758         * nss/getnssent.c (__nss_getent): Fix typo.
26759
26760 2012-03-23  David S. Miller  <davem@davemloft.net>
26761
26762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26763
26764 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
26765
26766         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
26767         to pad to uint64_t for each field.
26768         (dl_tls_index): Replace unsigned long with uint64_t.
26769
26770 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
26771         Paul Pluzhnikov  <ppluzhnikov@google.com>
26772
26773         [BZ #6528]
26774         * grp/Makefile (otherlibs): Don't set it.
26775         * inet/Makefile (otherlibs): Likewise.
26776         * login/Makefile (otherlibs): Likewise.
26777         * nscd/Makefile (otherlibs): Likewise.
26778         * posix/Makefile (otherlibs): Likewise.
26779         * pwd/Makefile (otherlibs): Likewise.
26780         * rt/Makefile (otherlibs): Likewise.
26781         * sunrpc/Makefile (otherlibs): Likewise.
26782         * nss/Makefile (otherlibs): Likewise.
26783         Add libnss_files to routines and static-only-routines.
26784         ($(objpfx)getent): Remove rule.
26785         * resolv/Makefile: Add libnss_dns and libresolv to routines and
26786         static-only-routines.
26787
26788 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
26789
26790         [BZ #13892]
26791         * math/s_cexp.c: Include <float.h>.
26792         (__cexp): Handle exp result overflowing not necessarily
26793         overflowing both real and imaginary parts of result.
26794         * math/s_cexpf.c: Likewise.
26795         * math/s_cexpl.c: Likewise.
26796         * math/libm-test.inc (cexp_test): Add more tests.
26797         * sysdeps/i386/fpu/libm-test-ulps: Update.
26798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26799
26800 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26801
26802         * include/link.h (ELFW): New macro.
26803         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
26804         Replace ELF64_R_TYPE with ELFW(R_TYPE).
26805
26806 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26807
26808         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
26809         with uint64_t.
26810
26811 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26812
26813         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
26814         declaration.
26815         (struct La_x32_retval): Likewise.
26816
26817 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26818
26819         * sysdeps/x86_64/preconfigure.in: New file.
26820         * sysdeps/x86_64/preconfigure: New generated file.
26821
26822 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
26823
26824         [BZ #13824]
26825         * math/e_exp2l.c: Include <float.h>.
26826         (__ieee754_exp2l): Handle overflow and underflow cases
26827         separately.  Only pass fractional part of argument to
26828         __ieee754_expl.
26829         * math/libm-test.inc (exp2_test): Add more tests.
26830
26831         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
26832         negating x to take absolute value.
26833         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
26834         Likewise.
26835         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
26836         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
26837         Likewise.
26838         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
26839         computing low part if x was negated.
26840         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
26841
26842 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26843
26844         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
26845         la_x32_gnu_pltexit.
26846         (pltexit): Cast int_retval to ptrdiff_t.
26847         * elf/tst-auditmod3b.c: Likewise.
26848         * elf/tst-auditmod4b.c: Likewise.
26849         * elf/tst-auditmod5b.c: Likewise.
26850         * elf/tst-auditmod6b.c: Likewise.
26851         * elf/tst-auditmod6c.c: Likewise.
26852         * elf/tst-auditmod7b.c: Likewise.
26853
26854         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
26855         and x32_gnu_pltexit.
26856
26857         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
26858         __ELF_NATIVE_CLASS.
26859         (La_x32_regs): New macro.
26860         (La_x32_retval): Likewise.
26861         (la_x32_gnu_pltenter): New function prototype.
26862         (la_x32_gnu_pltexit): Likewise.
26863
26864 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
26865
26866         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
26867         exponent.
26868
26869         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26870
26871         * configure.in (libc_cv_cc_nofma): Check for option to disable
26872         generation of FMA instructions.
26873         * configure: Regenerate.
26874         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
26875         * sysdeps/ieee754/dbl-64/Makefile: New file.
26876         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26877         Remove brandred-fma4.
26878         (CFLAGS-brandred-fma4.c): Remove.
26879         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
26880         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
26881         define.
26882         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
26883         define.
26884
26885 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26886
26887         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
26888         LLONG_MAX != LONG_MAX.
26889         (_itoa_word): Use _ITOA_WORD_TYPE on value.
26890         (_fitoa_word): Likewise.
26891         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
26892         LLONG_MAX != LONG_MAX.
26893         * stdio-common/_itowa.h: Include <_itoa.h>.
26894         (_itowa_word): Use _ITOA_WORD_TYPE on value.
26895         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
26896         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
26897         only if not defined.
26898         (_ITOA_WORD_TYPE): Likewise.
26899         (_itoa_word): Use _ITOA_WORD_TYPE on value.
26900         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
26901
26902 2012-03-21  David S. Miller  <davem@davemloft.net>
26903
26904         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26905
26906 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
26907
26908         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
26909         of x86_64 when setting libc_cv_slibdir, libdir and
26910         libc_cv_localedir.
26911         * sysdeps/unix/sysv/linux/configure: Regenerated.
26912
26913 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26914
26915         * manual/lang.texi (Old Varargs): Remove section.
26916         (How Variadic): Update menu.
26917         (va_start): Do not mention varargs.h.
26918
26919 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26920             Joseph Myers  <joseph@codesourcery.com>
26921
26922         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
26923         link test.
26924         * configure: Regenerated.
26925
26926 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26927
26928         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
26929         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
26930         conformtest.pl
26931
26932 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26933
26934         * NOTES: Remove.
26935         * Makefile (files-for-dist): Remove NOTES.
26936         (NOTES): Remove rule.
26937         * README: Don't refer to NOTES.
26938         * manual/creature.texi: Don't include macros.texi.
26939         * manual/intro.texi (creature.texi): Remove comment referring to
26940         NOTES.
26941
26942         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
26943         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
26944         * configure: Regenerated.
26945         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
26946         LIBC_TRY_CC_OPTION.
26947         (libc_cv_as_i686): Likewise.
26948         (libc_cv_cc_avx): Likewise.
26949         (libc_cv_cc_sse2avx): Likewise.
26950         (libc_cv_cc_fma4): Likewise.
26951         (libc_cv_cc_novzeroupper): Likewise.
26952         * sysdeps/i386/configure: Regenerated.
26953
26954         [BZ #13883]
26955         * sysdeps/i386/fpu/s_cexp.S: Remove.
26956         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26957         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26958         * math/libm-test.inc (cexp_test): Add more tests.
26959         * sysdeps/i386/fpu/libm-test-ulps: Update.
26960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26961
26962 2012-03-21  Allan McRae  <allan@archlinux.org>
26963
26964         * timezone/Makefile: Do not install iso3166.tab and zone.tab
26965
26966 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
26967
26968         [BZ #13871]
26969         * math/w_exp2.c: Do not include <float.h>.
26970         (o_threshold, u_threshold): Remove.
26971         (__exp2): Calculate result before checking finiteness and calling
26972         __kernel_standard.
26973         * math/w_exp2f.c: Likewise.
26974         * math/w_exp2l.c: Likewise.
26975         * math/libm-test.inc (exp2_test): Require overflow exception for
26976         1e6 input.
26977
26978         [BZ #3866]
26979         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
26980         range of signed 64-bit integers before using fistpll.  Remove
26981         checks for whether integers fit in mantissa bits.
26982         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
26983         the range of signed 32-bit integers before using fistpl.  Remove
26984         checks for whether integers fit in mantissa bits.
26985         * sysdeps/i386/fpu/e_powl.S (p64): New object.
26986         (__ieee754_powl): Test for y outside the range of signed 64-bit
26987         integers before using fistpll.  Reduce 64-bit values to 63-bit
26988         ones as needed.
26989         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
26990         divide-by-zero is raised for zero to large negative powers.
26991         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
26992         (__ieee754_powl): Test for y outside the range of signed 64-bit
26993         integers before using fistpll.  Reduce 64-bit values to 63-bit
26994         ones as needed.
26995         * math/libm-test.inc (pow_test): Add more tests.
26996
26997 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
26998
26999         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
27000         <stdio-common/_itoa.h>.
27001         * debug/segfault.c: Likewise.
27002         * elf/dl-cache.c: Likewise.
27003         * elf/dl-minimal.c: Likewise.
27004         * elf/dl-misc.c: Likewise.
27005         * elf/dl-sysdep.c: Likewise.
27006         * elf/dl-version.c: Likewise.
27007         * elf/rtld.c: Likewise.
27008         * hurd/hurdsock.c: Likewise.
27009         * hurd/lookup-retry.c: Likewise.
27010         * malloc/malloc.c: Likewise.
27011         * malloc/mtrace.c: Likewise.
27012         * nscd/nscd_getgr_r.c: Likewise.
27013         * nscd/nscd_getpw_r.c: Likewise.
27014         * nscd/nscd_getserv_r.c: Likewise.
27015         * posix/getopt_init.c: Likewise.
27016         * posix/wordexp.c: Likewise.
27017         * stdio-common/_itoa.c: Likewise.
27018         * stdio-common/printf_fphex.c: Likewise.
27019         * stdio-common/vfprintf.c: Likewise.
27020         * string/_strerror.c: Likewise.
27021         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
27022         * sysdeps/i386/i686/hp-timing.h: Likewise.
27023         * sysdeps/mach/_strerror.c: Likewise.
27024         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
27025         * sysdeps/mach/hurd/sethostid.c: Likewise.
27026         * sysdeps/mach/hurd/xmknodat.c: Likewise.
27027         * sysdeps/mach/xpg-strerror.c: Likewise.
27028         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
27029         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27030         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
27031         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
27032         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27033         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
27034         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27035         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27036         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
27037         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
27038         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
27039         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
27040         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
27041         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
27042         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
27043         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
27044         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
27045         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
27046         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
27047         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
27048         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
27049
27050         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
27051
27052         * stdio-common/_itoa.h: Moved to ...
27053         * sysdeps/generic/_itoa.h: Here.
27054
27055         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
27056
27057         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
27058         instead of "_itoa.h" and "_itowa.h".
27059         * stdio-common/vfprintf.: Likewise.
27060
27061 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27062
27063         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
27064         <bits/wordsize.h>.
27065         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
27066         (__signbit): Likwise.
27067         (llrintf): Likwise.
27068         (llrint): Likwise.
27069
27070 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
27071
27072         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
27073         __WORDSIZE != 64.
27074
27075 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
27076
27077         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
27078         OVERFLOW_EXCEPTION_OK.
27079         * math/libm-test.inc ("Philosophy"): Update comment about
27080         exception testing.
27081         (OVERFLOW_EXCEPTION): Define.
27082         (OVERFLOW_EXCEPTION_OK): Likewise.
27083         (INVALID_EXCEPTION_OK): Renumber.
27084         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
27085         (IGNORE_ZERO_INF_SIGN): Likewise.
27086         (test_exceptions): Handle FE_OVERFLOW.
27087         (exp10_test): Expect overflow exceptions.
27088         (exp2_test): Likewise.
27089         (expm1_test): Likewise.
27090         (nextafter_test): Likewise.
27091         (pow_test): Likewise.
27092         (scalbn_test): Likewise.
27093         (scalbln_test): Likewise.
27094
27095 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27096
27097         * sysdeps/x86_64/bits/atomic.h
27098         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
27099         64bit integer.
27100         (atomic_exchange_acq): Likewise.
27101         (__arch_exchange_and_add_body): Likewise.
27102         (__arch_add_body): Likewise.
27103         (atomic_add_negative): Likewise.
27104         (atomic_add_zero): Likewise.
27105
27106 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27107
27108         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
27109         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
27110
27111 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27112
27113         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
27114         Check __x86_64__ instead of __WORDSIZE.
27115
27116 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27117
27118         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
27119
27120 2012-03-19  David S. Miller  <davem@davemloft.net>
27121
27122         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27123
27124         * sysdeps/sparc/fpu/fenv_private.h: New file.
27125         * sysdeps/sparc/fpu/math_private.h: Use it.
27126         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
27127         Remove.
27128         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
27129         (libc_feholdexcept_setroundl): Remove.
27130         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
27131         Remove.
27132         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
27133         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
27134
27135 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27136
27137         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
27138         int64_t instead of long int.
27139         (INSERT_WORDS64): Likwise.
27140
27141 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
27142
27143         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
27144         _Unwind_GetCFA return to _Unwind_Ptr first.
27145
27146 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
27147
27148         [BZ #13629]
27149         * math/s_clog.c: Include <float.h>.
27150         (__clog): Scale large or subnormal inputs.
27151         * math/s_clogf.c: Likewise.
27152         * math/s_clogl.c: Likewise.
27153         * math/s_clog10.c: Include <float.h>.
27154         (M_LOG10_2): Define.
27155         (__clog10): Scale large or subnormal inputs.
27156         * math/s_clog10f.c: Likewise.
27157         * math/s_clog10l.c: Likewise.
27158         * math/libm-test.inc (clog_test): Add more tests.
27159         (clog10_test): Likewise.
27160         * sysdeps/i386/fpu/libm-test-ulps: Update.
27161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27162
27163         [BZ #11451]
27164         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
27165         x and y.
27166         * math/libm-test.inc (atan2_test): Add another test.
27167
27168         * Makerules (common-objdir-compile): Remove.
27169         * sysdeps/unix/Makefile (config-generated): Do not add
27170         $(unix-generated) to variable.
27171         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
27172         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
27173         Remove rule.
27174         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
27175         Likewise.
27176         [generic bits/local_lim.h] (before-compile): Do not append to
27177         variable.
27178         [generic bits/local_lim.h] (common-generated): Likewise.
27179         [generic sys/param.h] (before-compile): Do not append to variable.
27180         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
27181         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
27182         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
27183         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
27184         include.
27185         [generic sys/param.h] (sys/param.h-includes): Remove variable.
27186         [generic sys/param.h] (sys/param.h-includes): Remove rule.
27187         [generic sys/param.h] ($(addprefix
27188         $(common-objpfx),$(sys/param.h-includes))): Likewise.
27189         [generic sys/param.h] (common-generated): Do not append to
27190         variable.
27191         [generic sys/param.h] (sysdep_headers): Likewise.
27192         [generic bits/errno.h] (before-compile): Do not append to
27193         variable.
27194         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
27195         rule.
27196         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
27197         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
27198         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
27199         [generic bits/errno.h] (common-generated): Do not append to
27200         variable.
27201         [generic bits/ioctls.h] (before-compile): Do not append to
27202         variable.
27203         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
27204         rule.
27205         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
27206         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
27207         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
27208         rule.
27209         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
27210         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
27211         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
27212         [generic bits/ioctls.h] (common-generated): Do not append to
27213         variable.
27214         [generic sys/syscall.h] (syscall.h): Remove variable.
27215         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
27216         rule.
27217         [generic sys/syscall.h] (before-compile): Do not append to
27218         variable.
27219         [generic sys/syscall.h] (common-generated): Likewise.
27220         * sysdeps/unix/errnos-tmpl.c: Remove file.
27221         * sysdeps/unix/errnos.awk: Likewise.
27222         * sysdeps/unix/ioctls-tmpl.c: Likewise.
27223         * sysdeps/unix/ioctls.awk: Likewise.
27224         * sysdeps/unix/mk-local_lim.c: Likewise.
27225         * sysdeps/unix/snarf-ioctls: Likewise.
27226
27227 2012-03-19  Richard Henderson  <rth@twiddle.net>
27228
27229         * sysdeps/i386/fpu/fenv_private.h: New file.
27230         * sysdeps/i386/fpu/math_private.h: Use it.
27231         (math_opt_barrier, math_force_eval): Remove.
27232         (libc_feholdexcept_setround_53bit): Remove.
27233         (libc_feupdateenv_53bit): Remove.
27234         * sysdeps/x86_64/fpu/math_private.h: Likewise.
27235         (math_opt_barrier, math_force_eval): Remove.
27236         (libc_feholdexcept): Remove.
27237         (libc_feholdexcept_setround): Remove.
27238         (libc_fetestexcept, libc_fesetenv): Remove.
27239         (libc_feupdateenv_test): Remove.
27240         (libc_feupdateenv, libc_feholdsetround): Remove.
27241         (libc_feresetround): Remove.
27242
27243         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
27244         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
27245
27246         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
27247         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
27248         (libc_feupdateenv_testl): New.
27249         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
27250         (libc_feupdateenv_testf): New.
27251         (libc_feupdateenv): Use libc_feupdateenv_test.
27252         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
27253         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
27254
27255         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
27256         (libc_feholdsetroundf, libc_feholdsetroundl): New.
27257         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
27258         (libc_feresetround_noex): New.
27259         (libc_feresetround_noexf): New.
27260         (libc_feresetround_noexl): New.
27261         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
27262         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
27263         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
27264         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
27265         SET_RESTORE_ROUND.
27266         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
27267         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
27268         (__cos): Likewise.
27269         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
27270         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
27271         SET_RESTORE_ROUND_NOEX.
27272         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
27273         SET_RESTORE_ROUND_NOEXF.
27274         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
27275         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
27276         (libc_feholdsetroundf): New.
27277         (libc_feresetround, libc_feresetroundf): New.
27278
27279         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
27280         (libc_feholdexcept_setround_53bit): Convert from macro to function.
27281         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
27282
27283         * sysdeps/generic/math_private.h: Include <fenv.h>.
27284         (default_libc_feholdexcept): New.
27285         (default_libc_feholdexcept_setround): New.
27286         (default_libc_fesetenv, default_libc_feupdateenv): New.
27287         (libc_feholdexcept): Only define if undefined.
27288         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
27289         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
27290         (libc_feholdexcept_setroundl): Likewise.
27291         (libc_feholdexcept_setround_53bit): Likewise.
27292         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
27293         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
27294         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
27295         (libc_feupdateenv_53bit): Likewise.
27296         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
27297         (libc_feholdexcept): Convert from macro to inline function.
27298         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
27299         (libc_fesetenv, libc_feupdateenv): Likewise.
27300
27301         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
27302         not previously defined.
27303         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
27304         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
27305         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
27306         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
27307         * sysdeps/ieee754/flt-32/math_private.h: New file.
27308         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
27309         math_private.h below SET_FLOAT_WORD.
27310         (__isnan, __isinf_ns, __finite): Remove.
27311         (__isnanf, __isinf_nsf, __finitef): Remove.
27312
27313 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
27314
27315         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27316
27317 2012-03-17  David S. Miller  <davem@davemloft.net>
27318
27319         [BZ #6471]
27320         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
27321         for 2.16.
27322
27323 2012-03-16  David S. Miller  <davem@davemloft.net>
27324
27325         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
27326         warnings.
27327
27328         [BZ #6471]
27329         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
27330         properly.
27331         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
27332         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
27333         sysdep_routines when subdir is sysvipc.
27334         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
27335         __getshmlba helper.
27336
27337         * sysdeps/sparc/fpu/libm-test/ulps: Update.
27338
27339 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27340
27341         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
27342         [__LP64__].
27343
27344 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27345
27346         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
27347         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
27348         (__lround): Renamed to ...
27349         (__llround): This.  Replace long int with long long int.
27350         Define lround functions as aliases of llround functions.
27351         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
27352
27353 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27354
27355         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
27356         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
27357         adresses to uintptr_t.  Replace "long int" and "unsigned long
27358         int" with "greg_t" on va_arg.
27359
27360 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27361
27362         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
27363         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
27364
27365         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
27366         Move e_machine check before EI_CLASS check.  Handle x32
27367         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
27368         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
27369         SKIP_EM_IA_64 and include
27370         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
27371
27372         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
27373         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
27374         (add_system_dir): New macro.
27375
27376         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
27377         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
27378
27379 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
27380
27381         [BZ #2551]
27382         [BZ #2552]
27383         [BZ #2553]
27384         [BZ #2554]
27385         [BZ #2562]
27386         [BZ #2563]
27387         [BZ #2565]
27388         [BZ #2566]
27389         [BZ #2576]
27390         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
27391         (y0): Likewise.
27392         * math/w_j0f.c (j0f): Likewise.
27393         (y0f): Likewise.
27394         * math/w_j0l.c (__j0l): Likewise.
27395         (__y0l): Likewise.
27396         * math/w_j1.c (j1): Likewise.
27397         (y1): Likewise.
27398         * math/w_j1f.c (j1f): Likewise.
27399         (y1f): Likewise.
27400         * math/w_j1l.c (__j1l): Likewise.
27401         (__y1l): Likewise.
27402         * math/w_jn.c (jn): Likewise.
27403         (yn): Likewise.
27404         * math/w_jnf.c (jnf): Likewise.
27405         (ynf): Likewise.
27406         * math/w_jnl.c (__jnl): Likewise.
27407         (__ynl): Likewise.
27408         * math/libm-test.inc (j0_test): Add more tests.
27409         (j1_test): Likewise.
27410         (jn_test): Likewise.  Add trailing semicolon to existing test.
27411         (y0_test): Likewise.
27412         (y1_test): Likewise.
27413         * sysdeps/i386/fpu/libm-test-ulps: Update.
27414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27415
27416         [BZ #13851]
27417         [BZ #13854]
27418         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
27419         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
27420         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
27421         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
27422         (__tanl): Set errno for infinite argument.
27423         * sysdeps/i386/fpu/mptan.c: Remove.
27424         * sysdeps/i386/fpu/s_tan.S: Likewise.
27425         * sysdeps/i386/fpu/s_tanl.S: Likewise.
27426         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
27427         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
27428         * math/libm-test.inc (tan_test): Add more tests and enable more
27429         tests for double and long double.
27430         * sysdeps/i386/fpu/libm-test-ulps: Update.
27431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27432
27433 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
27434
27435         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
27436         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
27437
27438 2012-03-16  Roland McGrath  <roland@hack.frob.com>
27439
27440         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
27441         * configure.in: Use it for both main tree and add-ons.
27442         * configure: Regenerated.
27443
27444 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27445
27446         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
27447
27448 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
27449
27450         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
27451         in comment.
27452
27453         [BZ #13851]
27454         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
27455         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
27456         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
27457         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
27458         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
27459         infinite argument.
27460         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
27461         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
27462         != 0 for prec == 2.
27463         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
27464         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
27465         * sysdeps/i386/fpu/s_cosl.S: Likewise.
27466         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
27467         * sysdeps/i386/fpu/s_sinl.S: Likewise.
27468         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
27469         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
27470         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
27471         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
27472         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
27473         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
27474         * math/libm-test.inc (cos_test): Add more tests and enable more
27475         tests for long double.
27476         (sin_test): Likewise.
27477         (sincos_test): Likewise.
27478         * sysdeps/i386/fpu/libm-test-ulps: Update.
27479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27480
27481 2012-03-16  David S. Miller  <davem@davemloft.net>
27482
27483         * sysdeps/sparc/fpu/math_private.h: New file.
27484
27485 2012-03-15  David S. Miller  <davem@davemloft.net>
27486
27487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
27488         file.
27489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
27490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
27491         file.
27492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
27493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
27494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
27495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
27496         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
27497         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
27498         sysdep routines.
27499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
27500
27501         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
27502         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
27503
27504         * sysdeps/sparc/sparc-ifunc.h: New file.
27505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
27506         sparc-ifunc.h
27507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
27508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27509         Likewise.
27510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
27511         Likewise.
27512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
27513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
27514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
27515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
27516         Likewise.
27517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
27518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
27519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
27520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
27521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
27522         Likewise.
27523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
27524         Likewise.
27525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
27526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
27527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
27528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
27529         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
27530         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
27531         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
27532         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
27533         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
27534         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
27535         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
27536         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
27537         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
27538         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
27539         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
27540         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
27541         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
27542         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
27543         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
27544         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
27545         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
27546         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
27547         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
27548         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
27549
27550 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
27551
27552         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
27553         scaling.
27554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27555
27556 2012-03-15  Andreas Jaeger  <aj@suse.de>
27557
27558         [BZ #13852]
27559         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
27560         ieee754/flt-32 implementation for sin, cos and sincos.
27561         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
27562         * sysdeps/i386/fpu/s_cosf.S: Likewise.
27563         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
27564         * sysdeps/i386/fpu/s_sinf.S: Likewise.
27565         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
27566         ieee754/flt-32 implementation for tan.
27567
27568         * math/libm-test.inc (cos_test): Enable some large input tests for
27569         float as well
27570         (sin_test): Likewise.
27571         (sincos_test): Likewise.
27572         (tan_test): Add tests for large input.
27573
27574         * sysdeps/i386/fpu/libm-test-ulps: Update.
27575
27576 2012-03-15  Andreas Jaeger  <aj@suse.de>
27577
27578         [BZ #13658]
27579         * math/libm-test.inc (cos_test): Add more test cases.
27580         (sin_test): Likewise.
27581         (sincos_test): Likewise.
27582
27583 2012-03-15  Andreas Jaeger  <aj@suse.de>
27584
27585         [BZ #13837]
27586         * math/libm-test.inc (cos_test): Add a test case for large input
27587         value.
27588         (sin_test): Likewise.
27589         (sincos_test): Likewise.
27590
27591 2012-03-15  Andreas Jaeger  <aj@suse.de>,
27592         Joseph Myers  <joseph@codesourcery.com>
27593
27594         [BZ #13658]
27595         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
27596         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
27597         * sysdeps/i386/fpu/branred.c: Likewise.
27598         * sysdeps/i386/fpu/dosincos.c: Likewise.
27599         * sysdeps/i386/fpu/mpa.c: Likewise.
27600         * sysdeps/i386/fpu/s_cos.S: Likewise.
27601         * sysdeps/i386/fpu/s_sin.S: Likewise.
27602         * sysdeps/i386/fpu/s_sincos.S: Likewise.
27603         * sysdeps/i386/fpu/sincos32.c: Likewise.
27604
27605         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
27606         Define.
27607         (libc_feupdateenv_53bit): Define.
27608         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
27609         Define.
27610         (libc_feupdateenv_53bit): Define.
27611
27612         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
27613         53 bit (without extend i386 double precision).
27614
27615         * math/libm-test.inc (sincos_test): Add tests for large input.
27616         (sin): Likewise.
27617         (cos): Likewise.
27618
27619         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27620
27621 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
27622
27623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27624
27625 2012-03-15  David S. Miller  <davem@davemloft.net>
27626
27627         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
27628         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
27629         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
27630         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
27631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
27632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
27633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
27634         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
27635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
27636         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
27637         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
27638         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
27639         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
27640         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
27641         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
27642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
27643         file.
27644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
27645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
27646         file.
27647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
27648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
27649         file.
27650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
27651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
27652         file.
27653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
27654         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
27655         fmin/fmax sysdep routines.
27656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
27657
27658 2012-03-14  David S. Miller  <davem@davemloft.net>
27659
27660         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
27661         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
27662         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
27663         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
27664         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
27665         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
27666         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
27667         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
27668         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
27669         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
27670         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
27671         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
27672         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
27673         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
27674         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
27675         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
27676         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
27677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
27678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
27679         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
27680         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
27681         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
27682         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
27683         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
27684         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
27685         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
27686         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
27687         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
27688         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
27689         routines.
27690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
27691         file.
27692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
27693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
27694         file.
27695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
27696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
27697         file.
27698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
27699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
27700         file.
27701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
27702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
27703         file.
27704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
27705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
27706         file.
27707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
27708         file.
27709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
27710         file.
27711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
27712         file.
27713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
27714         New file.
27715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
27716         file.
27717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
27718         file.
27719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
27720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
27721         file.
27722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
27723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
27724         file.
27725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
27726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
27727         file.
27728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
27729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
27730         VIS3 routines.
27731
27732         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
27733         New file.
27734
27735         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27736
27737         * sysdeps/sparc/configure.in: New file.
27738         * sysdeps/sparc/configure: Generate.
27739         * configure.in (libc_cv_sparc_as_vis3): Substitute.
27740         * configure: Regenerate.
27741         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
27742         * config.make.in (have-as-vis3): New.
27743         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
27744         available use -Av9d instead of -Av9a.
27745         * sysdeps/sparc/sparc64/Makefile: Likewise.
27746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
27747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
27748         New file.
27749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
27750         file.
27751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
27752         New file.
27753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
27754         file.
27755         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
27756         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
27757         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
27758         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
27759         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
27760
27761         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
27762         fzeros/fnegs to load 0x80000000 into a float register instead of
27763         using the stack.
27764         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
27765
27766 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
27767
27768         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27769         bits/syscall.h.
27770         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
27771         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
27772         ($(inst_includedir)/bits/syscall.h): Remove rule.
27773         ($(objpfx)bits/syscall.d): Include instead of
27774         $(objpfx)syscall-list.d.
27775         (generated): Change syscall-list.h and syscall-list.d to
27776         bits/syscall.h and bits/syscall.d.
27777
27778 2012-03-14  Roland McGrath  <roland@hack.frob.com>
27779
27780         [BZ #13846]
27781         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
27782
27783 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
27784
27785         [BZ #13841]
27786         * math/s_csqrt.c: Include <float.h>.
27787         (__csqrt): Scale large or subnormal inputs.
27788         * math/s_csqrtf.c: Likewise.
27789         * math/s_csqrtl.c: Likewise.
27790         * math/libm-test.inc (csqrt_test): Add more tests.
27791         * sysdeps/i386/fpu/libm-test-ulps: Update.
27792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27793
27794         [BZ #13840]
27795         * math/libm-test.inc (hypot_test): Add more tests.
27796
27797 2012-03-13  David S. Miller  <davem@davemloft.net>
27798
27799         [BZ #13840]
27800         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
27801         double-precision for the calculation instead of scaling.
27802
27803 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
27804
27805         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
27806         manipulate bits before adding and subtracting TWO52[sx].
27807         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
27808         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27809         Likewise.
27810         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
27811
27812 2012-03-13  David S. Miller  <davem@davemloft.net>
27813
27814         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
27815         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
27816         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
27817         rtld-global-offsets.h
27818         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27819
27820         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
27821         large parameters.
27822
27823         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
27824
27825         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
27826         'err' in the ifdef scope in which it is actually used.
27827
27828         * nss/nss_db/db-init.c: Include string.h
27829
27830 2012-03-12  David S. Miller  <davem@davemloft.net>
27831
27832         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
27833         masking out of the most significant byte of random value used.
27834         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27835         Fix coding style in previous change.
27836
27837         * sysdeps/unix/sysv/linux/kernel-features.h
27838         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
27839         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
27840         expression.
27841         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
27842         later.
27843
27844 2012-03-11  David S. Miller  <davem@davemloft.net>
27845
27846         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
27847         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
27848         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
27849         for 'resultvar' otherwise things get truncated on 64-bit.
27850
27851         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
27852         Fix masking out of the most significant byte of random value used.
27853
27854         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27855
27856 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
27857
27858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27859
27860 2012-03-09  David S. Miller  <davem@davemloft.net>
27861
27862         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
27863         variables with appropriate CPP guards.
27864         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
27865         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
27866         on resulting framesize and the management of the outregs buffer for pltexit.
27867         Preserve floating point return values across _dl_call_pltexit call.
27868         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
27869         framesize and the management of the outregs buffer for pltexit.
27870         Preserve floating point return values across _dl_call_pltexit
27871         call.
27872         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
27873         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
27874         (print_exit): Fix format string for return register value.
27875
27876 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
27877
27878         * sunrpc/Makefile (others): Add rpcgen.
27879         ($(objpfx)rpcgen): Remove special build rule and dependency on
27880         libc.
27881         * sunrpc/rpcgen.c: New file.
27882
27883 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27884
27885         [BZ #13673]
27886         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
27887         * stdio-common/bug-vfprintf-nargs.c: Likewise.
27888         * sysdeps/i386/crti.S: Likewise.
27889         * sysdeps/i386/crtn.S: Likewise.
27890         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
27891         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
27892         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
27893         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
27894         * sysdeps/sh/crti.S: Likewise.
27895         * sysdeps/sh/crtn.S: Likewise.
27896         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
27897
27898         [BZ #13673]
27899         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
27900         with URL.
27901         * locale/programs/locfile-kw.gperf: Likewise.
27902         * locale/programs/charmap-kw.h: Regenerated.
27903         * locale/programs/locfile-kw.h: Likewise.
27904
27905         [BZ #13673]
27906         * intl/plural.y: Replace FSF snail mail address with URL.
27907         * intl/plural.c: Regenerated.
27908
27909 2012-03-09  Richard Henderson  <rth@twiddle.net>
27910
27911         * include/math_private.h: Remove file.
27912         * math/math_private.h: Move file ...
27913         * sysdeps/generic/math_private.h: ... here.
27914
27915         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
27916         * sysdeps/powerpc/fpu/math_private.h: Likewise.
27917         * sysdeps/x86_64/fpu/math_private.h: Likewise.
27918
27919         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
27920         and <math_private.h>.
27921         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
27922         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
27923         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
27924         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
27925         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
27926         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
27927         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
27928         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27929         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
27930         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
27931         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27932         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
27933         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
27934         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27935         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
27936         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
27937         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
27938         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
27939         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
27940         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
27941         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27942         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
27943         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
27944         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27945         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
27946         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
27947         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
27948         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
27949         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27950         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
27951         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
27952         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27953         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
27954         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
27955         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
27956         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
27957         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
27958         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
27959         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
27960         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27961         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
27962         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
27963         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
27964         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
27965         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
27966         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
27967         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
27968         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
27969         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
27970         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
27971         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
27972         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
27973         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
27974         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
27975         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
27976         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
27977         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
27978         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
27979         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
27980         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
27981         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
27982         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
27983         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27984         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
27985         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
27986         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
27987         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
27988         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
27989         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
27990         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
27991         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
27992         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
27993         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
27994         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
27995         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
27996         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
27997         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
27998         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
27999         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
28000         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
28001         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
28002         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
28003         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
28004         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
28005         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28006         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
28007         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
28008         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
28009         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28010         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28011         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28012         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28013         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28014         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28015         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28016         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28017         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28018         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28019         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28020         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28021         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28022         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28023         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28024         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28025         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
28026         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28027         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28028         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28029         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
28030         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
28031         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
28032         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
28033         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28034         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
28035         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
28036         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28037         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
28038         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
28039         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
28040         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28041         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
28042         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
28043         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28044         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
28045         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
28046         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
28047         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
28048         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
28049         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
28050         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
28051         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
28052         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28053         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
28054         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
28055         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
28056         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
28057         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
28058         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
28059         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
28060         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
28061         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28062         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
28063         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
28064         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
28065         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
28066         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
28067         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
28068         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
28069         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
28070         * sysdeps/ieee754/k_standard.c: Likewise.
28071         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28072         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28073         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28074         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28075         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28076         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28077         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28078         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28079         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28080         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28081         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28082         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28083         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28084         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28085         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28086         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28087         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
28088         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
28089         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
28090         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
28091         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
28092         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
28093         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
28094         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
28095         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
28096         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
28097         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
28098         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
28099         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
28100         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
28101         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
28102         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
28103         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
28104         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
28105         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
28106         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
28107         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
28108         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
28109         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
28110         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
28111         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
28112         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
28113         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
28114         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
28115         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
28116         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
28117         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
28118         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
28119         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
28120         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
28121         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
28122         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
28123         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
28124         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
28125         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
28126         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
28127         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
28128         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
28129         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
28130         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
28131         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
28132         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
28133         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
28134         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
28135         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28136         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28137         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
28138         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
28139         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
28140         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
28141         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
28142         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
28143         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
28144         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
28145         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
28146         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
28147         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
28148         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
28149         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28150         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
28151         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
28152         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
28153         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
28154         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
28155         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
28156         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
28157         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
28158         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
28159         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
28160         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
28161         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
28162         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
28163         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
28164         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
28165         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
28166         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
28167         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
28168         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
28169         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
28170         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
28171         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
28172         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
28173         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
28174         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
28175         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
28176         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
28177         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
28178         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
28179         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
28180         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
28181         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
28182         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
28183         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
28184         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28185         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
28186         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28187         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
28188         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28189         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28190         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
28191         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28192         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
28193         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
28194         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
28195         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28196         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
28197         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
28198         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
28199         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
28200         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
28201         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
28202         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
28203         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
28204         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
28205         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
28206         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
28207         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
28208         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
28209         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
28210         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
28211         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
28212         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
28213         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
28214         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
28215         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
28216         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
28217         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
28218         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
28219         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
28220         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
28221         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
28222         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28223         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
28224         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
28225         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
28226         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
28227         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
28228         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
28229         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
28230         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
28231         * sysdeps/ieee754/s_lib_version.c: Likewise.
28232         * sysdeps/ieee754/s_matherr.c: Likewise.
28233         * sysdeps/ieee754/s_signgam.c: Likewise.
28234         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
28235         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
28236         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
28237         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
28238         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
28239         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
28240         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
28241         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
28242         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
28243         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
28244         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
28245         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
28246         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
28247         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
28248         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
28249         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
28250         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
28251         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
28252         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
28253         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
28254         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
28255
28256 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28257
28258         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
28259         * sunrpc/rpc_main.c: Likewise.
28260         * sunrpc/rpc_svcout.c: Likewise.
28261
28262 2012-03-09  David S. Miller  <davem@davemloft.net>
28263
28264         * include/math_private.h: New file.
28265
28266 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
28267
28268         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
28269         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
28270         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
28271         from <bits/socket_type.h>.
28272         (enum __socket_type): Don't define here.
28273         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
28274         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28275         bits/socket_type.h.
28276
28277         [BZ #13566]
28278         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
28279         checking __USE_GNU.
28280
28281         * Makerules ($(inst_includedir)/%.h): New rule.
28282         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
28283         (install-others): Remove variable setting.
28284         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
28285
28286 2012-03-08  Richard Henderson  <rth@twiddle.net>
28287
28288         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
28289         from macro to inline function; merge with the
28290         !__LIBC_INTERNAL_MATH_INLINES version.
28291         (__ieee754_sqrtf): Likewise.
28292
28293         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
28294         to inline function.
28295         (__rintf, __floor, __floorf): Likewise.
28296
28297         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
28298         macro to inline function.
28299         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
28300
28301         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
28302         not <math/math_private.h>.
28303
28304 2012-03-08  David S. Miller  <davem@davemloft.net>
28305
28306         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
28307         copyright year.
28308         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
28309
28310 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
28311
28312         * resolv/gai_misc.c (handle_requests): Fix struct timespec
28313         normalization.
28314         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
28315         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
28316
28317 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
28318
28319         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
28320         be defined individually, they must be defined as a block.  Define
28321         S for printing a string instead of hidint the different by using a
28322         macro for adding the 'l'.
28323         * stdio-common/tst-fphex-wide.c: Adjust.
28324
28325 2012-03-07  Marek Polacek  <polacek@redhat.com>
28326
28327         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
28328
28329 2012-03-08  Marek Polacek  <polacek@redhat.com>
28330
28331         [BZ #13806]
28332         * stdio-common/Makefile (tests): Add tst-fphex-wide.
28333         * stdio-common/tst-fphex.c: Define a few macros to make the
28334         test reusable.  Use them.
28335         * stdio-common/tst-fphex-wide.c: New file.
28336
28337 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
28338
28339         [BZ #6911]
28340         * manual/macros.texi (gnusystems): New macro.
28341         (nongnusystems): Likewise.
28342         (gnulinuxhurdsystems): Likewise.
28343         (gnuhurdsystems): Likewise..
28344         (gnulinuxsystems): Likewise.
28345         * manual/charset.texi: Use new macros or @theglibc{} to refer to
28346         variants of the GNU system, not "GNU system".
28347         * manual/conf.texi: Likewise.
28348         * manual/errno.texi: Likewise.  Update example of errno macro
28349         expansion.
28350         * manual/filesys.texi: Likewise.
28351         (getumask): Document as specific to GNU/Hurd.
28352         * manual/install.texi: Likewise.  Reword some references to
28353         GNU/Linux.
28354         * manual/intro.texi: Likewise.
28355         * manual/io.texi: Likewise.
28356         (File Name Portability): Detail which constraints are inapplicable
28357         to all GNU systems and which are only inapplicable to GNU/Hurd.
28358         * manual/job.texi: Likewise.
28359         * manual/llio.texi: Likewise.
28360         (O_NOCTTY): Document as present on GNU/Linux.
28361         * manual/maint.texi: Likewise.
28362         * manual/memory.texi: Likewise.
28363         * manual/pattern.texi: Likewise.
28364         * manual/pipe.texi: Likewise.
28365         * manual/process.texi: Likewise.
28366         * manual/resource.texi: Likewise.
28367         (RUSAGE_CHILDREN): Remove statement about specifying a particular
28368         child on GNU/Hurd.
28369         * manual/setjmp.texi: Likewise.
28370         * manual/signal.texi: Likewise.
28371         * manual/startup.texi: Likewise.
28372         * manual/stdio.texi: Likewise.
28373         * manual/terminal.texi: Likewise.
28374         (ONLCR): Document as POSIX.
28375         (OXTABS): Document availability on GNU/Linux as XTABS.
28376         (ONOEOT): Document availability separately from other bits.
28377         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
28378         * manual/time.texi: Likewise.
28379         * manual/users.texi: Likewise.
28380         * INSTALL: Regenerated.
28381         * sysdeps/gnu/errlist.c: Regenerated.
28382
28383         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
28384         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
28385         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
28386         puts.
28387         * configure: Regenerated.
28388
28389 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
28390
28391         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
28392         default includes instead of AC_HEADER_CHECK.
28393         * sysdeps/i386/configure: Regenerated.
28394
28395         [BZ #10716]
28396         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
28397         * math/s_cacoshf.c (__cacoshf): Likewise.
28398         * math/s_cacoshl.c (__cacoshl): Likewise.
28399         * math/s_casinh.c (__casinh): Set signs of result from argument.
28400         * math/s_casinhf.c (__casinhf): Likewise.
28401         * math/s_casinhl.c (__casinhl): Likewise.
28402         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
28403         (casinh_test): Add more tests.
28404         * sysdeps/i386/fpu/libm-test-ulps: Update.
28405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28406
28407 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
28408
28409         * po/zh_TW.po: Update from translation team.
28410
28411         * login/Makefile (distribute): Remove variable.
28412         * catgets/Makefile: Likewise.
28413         * mach/Makefile: Likewise.
28414         * malloc/Makefile: Likewise.
28415         * misc/Makefile: Likewise.
28416         * iconv/Makefile: Likewise.
28417         * nscd/Makefile: Likewise.
28418         * hurd/Makefile: Likewise.
28419         * manual/Makefile: Likewise.
28420         * locale/Makefile: Likewise.
28421         * intl/Makefile: Likewise.
28422         * conform/Makefile: Likewise.
28423         * nss/Makefile: Likewise.
28424         * time/Makefile: Likewise.
28425         * soft-fp/Makefile: Likewise.
28426         * dirent/Makefile: Likewise.
28427         * gmon/Makefile: Likewise.
28428         * po/Makefile: Likewise.
28429         * rt/Makefile: Likewise.
28430         * socket/Makefile: Likewise.
28431         * math/Makefile: Likewise.
28432         * signal/Makefile: Likewise.
28433         * debug/Makefile: Likewise.
28434         * elf/Makefile: Likewise.
28435         * timezone/Makefile: Likewise.
28436         * stdlib/Makefile: Likewise.
28437         * iconvdata/Makefile: Likewise.
28438         * sunrpc/Makefile: Likewise.
28439         * io/Makefile: Likewise.
28440         * argp/Makefile: Likewise.
28441         * inet/Makefile: Likewise.
28442         * hesiod/Makefile: Likewise.
28443         * grp/Makefile: Likewise.
28444         * csu/Makefile: Likewise.
28445         * wctype/Makefile: Likewise.
28446         * crypt/Makefile: Likewise.
28447         * libio/Makefile: Likewise.
28448         * string/Makefile: Likewise.
28449         * nis/Makefile: Likewise.
28450         * resolv/Makefile: Likewise.
28451         * stdio-common/Makefile: Likewise.
28452         * wcsmbs/Makefile: Likewise.
28453         * dlfcn/Makefile: Likewise.
28454         * posix/Makefile: Likewise.
28455
28456         [BZ #6959]
28457         * timezone/Makefile: Don't install timezone files, just the programs
28458         and scripts.
28459
28460 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
28461
28462         * nss/databases.def: Add missing gshadow entry.
28463
28464         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
28465
28466 2012-03-06  Marek Polacek  <polacek@redhat.com>
28467
28468         [BZ #13726]
28469         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
28470         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
28471         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
28472         * stdio-common/tst-long-dbl-fphex.c: New file.
28473
28474 2012-03-06  David S. Miller  <davem@davemloft.net>
28475
28476         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
28477         (set_obp_int): New function.
28478         (get_obp_int): New function.
28479         (__get_clockfreq_via_dev_openprom): Likewise.
28480         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
28481         Avoid unused variable warnings on 'val' and use builtin_expect.
28482         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
28483         __builtin_expect.
28484         (INLINE_CLONE_SYSCALL): Likewise.
28485
28486 2012-03-05  David S. Miller  <davem@davemloft.net>
28487
28488         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28489
28490 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
28491
28492         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28493
28494         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
28495         only for |x| >= 40.
28496         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28497
28498 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
28499
28500         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
28501         Replace gettimeofday with __vdso_gettimeofday.
28502
28503         * sysdeps/unix/sysv/linux/x86_64/init-first.c
28504         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
28505         __vdso_clock_gettime and __vdso_getcpu.
28506
28507         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
28508         time with __vdso_time.
28509
28510 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
28511
28512         * manual/lang.texi (size_t): Note types to which size_t may be
28513         equivalent with the GNU C Library, but do not describe when
28514         differences between them are significant.
28515
28516 2012-03-05  Andreas Jaeger  <aj@suse.de>
28517
28518         * sysdeps/i386/fpu/libm-test-ulps: Update.
28519
28520 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
28521
28522         [BZ #3976]
28523         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
28524         (__ieee754_pow): Save and restore rounding mode and use
28525         round-to-nearest for main computations.
28526         * math/libm-test.inc (pow_test_tonearest): New function.
28527         (pow_test_towardzero): Likewise.
28528         (pow_test_downward): Likewise.
28529         (pow_test_upward): Likewise.
28530         (main): Call the new functions.
28531         * sysdeps/i386/fpu/libm-test-ulps: Update.
28532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28533
28534         [BZ #3976]
28535         * math/libm-test.inc (cosh_test_tonearest): New function.
28536         (cosh_test_towardzero): Likewise.
28537         (cosh_test_downward): Likewise.
28538         (cosh_test_upward): Likewise.
28539         (sinh_test_tonearest): Likewise.
28540         (sinh_test_towardzero): Likewise.
28541         (sinh_test_downward): Likewise.
28542         (sinh_test_upward): Likewise.
28543         (main): Call the new functions.
28544         * sysdeps/i386/fpu/libm-test-ulps: Update.
28545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28546
28547 2012-03-05  Tom de Vries  <tom@codesourcery.com>
28548
28549         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
28550         default stack guard is set in last bytes.
28551         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
28552
28553 2012-03-05  Kees Cook  <keescook@chromium.org>
28554
28555         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
28556
28557         [BZ #13656]
28558         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
28559         possibly allocate from heap instead of stack.
28560         * stdio-common/bug-vfprintf-nargs.c: New file.
28561         * stdio-common/Makefile (tests): Add nargs overflow test.
28562
28563 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
28564
28565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28566
28567 2012-03-03  Marek Polacek  <polacek@redhat.com>
28568
28569         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
28570         * math/math_private.h: Likewise.
28571         * stdlib/tst-strtod.c: Likewise.
28572         * sysdeps/i386/i486/bits/atomic.h: Likewise.
28573         * sysdeps/x86_64/bits/atomic.h: Likewise.
28574
28575 2012-03-02  David S. Miller  <davem@davemloft.net>
28576
28577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
28578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
28579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
28580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
28581         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
28582         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
28583         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
28584         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
28585
28586 2012-03-02  Roland McGrath  <roland@hack.frob.com>
28587
28588         [BZ #13792]
28589         * manual/examples/README: New file, says the example source files
28590         can be used under GPL>=2.
28591         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
28592         line containing just "*/".
28593         * manual/examples/add.c: Add copyright header (GPL>=2).
28594         * manual/examples/argp-ex1.c: Likewise.
28595         * manual/examples/argp-ex2.c: Likewise.
28596         * manual/examples/argp-ex3.c: Likewise.
28597         * manual/examples/argp-ex4.c: Likewise.
28598         * manual/examples/atexit.c: Likewise.
28599         * manual/examples/db.c: Likewise.
28600         * manual/examples/dir.c: Likewise.
28601         * manual/examples/dir2.c: Likewise.
28602         * manual/examples/execinfo.c: Likewise.
28603         * manual/examples/filecli.c: Likewise.
28604         * manual/examples/filesrv.c: Likewise.
28605         * manual/examples/fmtmsgexpl.c: Likewise.
28606         * manual/examples/genpass.c: Likewise.
28607         * manual/examples/inetcli.c: Likewise.
28608         * manual/examples/inetsrv.c: Likewise.
28609         * manual/examples/isockad.c: Likewise.
28610         * manual/examples/longopt.c: Likewise.
28611         * manual/examples/memopen.c: Likewise.
28612         * manual/examples/memstrm.c: Likewise.
28613         * manual/examples/mkfsock.c: Likewise.
28614         * manual/examples/mkisock.c: Likewise.
28615         * manual/examples/mygetpass.c: Likewise.
28616         * manual/examples/pipe.c: Likewise.
28617         * manual/examples/popen.c: Likewise.
28618         * manual/examples/rprintf.c: Likewise.
28619         * manual/examples/search.c: Likewise.
28620         * manual/examples/select.c: Likewise.
28621         * manual/examples/setjmp.c: Likewise.
28622         * manual/examples/sigh1.c: Likewise.
28623         * manual/examples/sigusr.c: Likewise.
28624         * manual/examples/stpcpy.c: Likewise.
28625         * manual/examples/strdupa.c: Likewise.
28626         * manual/examples/strftim.c: Likewise.
28627         * manual/examples/strncat.c: Likewise.
28628         * manual/examples/subopt.c: Likewise.
28629         * manual/examples/swapcontext.c: Likewise.
28630         * manual/examples/termios.c: Likewise.
28631         * manual/examples/testopt.c: Likewise.
28632         * manual/examples/testpass.c: Likewise.
28633         * manual/examples/timeval_subtract.c: Likewise.
28634
28635         [BZ #13792]
28636         * manual/time.texi (Elapsed Time): Move timeval_subtract example
28637         function to ...
28638         * manual/timeval_subtract.c.texi: ... here, new file.
28639
28640 2012-03-02  David S. Miller  <davem@davemloft.net>
28641
28642         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
28643
28644 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
28645
28646         [BZ #3976]
28647         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
28648         (__sin): Save and restore rounding mode and use round-to-nearest
28649         for all computations.
28650         (__cos): Save and restore rounding mode and use round-to-nearest
28651         for all computations.
28652         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
28653         <fenv.h>.
28654         (tan): Save and restore rounding mode and use round-to-nearest for
28655         all computations.
28656         * math/libm-test.inc (cos_test_tonearest): New function.
28657         (cos_test_towardzero): Likewise.
28658         (cos_test_downward): Likewise.
28659         (cos_test_upward): Likewise.
28660         (sin_test_tonearest): Likewise.
28661         (sin_test_towardzero): Likewise.
28662         (sin_test_downward): Likewise.
28663         (sin_test_upward): Likewise.
28664         (tan_test_tonearest): Likewise.
28665         (tan_test_towardzero): Likewise.
28666         (tan_test_downward): Likewise.
28667         (tan_test_upward): Likewise.
28668         (main): Call the new functions.
28669         * sysdeps/i386/fpu/libm-test-ulps: Update.
28670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28671
28672         [BZ #10135]
28673         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
28674         small n, then large n, before computing and testing k+n.
28675         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
28676         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
28677         Likewise.
28678         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
28679         Likewise.
28680         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
28681         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
28682         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
28683         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
28684         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
28685         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
28686         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
28687         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
28688         * math/libm-test.inc (scalbn_test): Add more tests.
28689         (scalbln_test): Likewise.
28690
28691         * manual/filesys.texi (mode_t): Describe constraints on size and
28692         signedness, not exact equivalence to a particular type.
28693         (ino_t): Likewise.
28694         (ino64_t): Likewise.
28695         (dev_t): Likewise.
28696         (nlink_t): Likewise.
28697         (blkcnt_t): Likewise.
28698         (blkcnt64_t): Likewise.
28699         * manual/llio.texi (off_t): Likewise.
28700
28701         [BZ #3976]
28702         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
28703         (__ieee754_exp): Save and restore rounding mode and use
28704         round-to-nearest for all computations.
28705         * math/libm-test.inc (exp_test_tonearest): New function.
28706         (exp_test_towardzero): Likewise.
28707         (exp_test_downward): Likewise.
28708         (exp_test_upward): Likewise.
28709         (main): Call the new functions.
28710         * sysdeps/i386/fpu/libm-test-ulps: Update.
28711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28712
28713 2012-03-01  Chris Demetriou  <cgd@google.com>
28714
28715         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
28716         have predictable order.
28717
28718 2012-03-01  David S. Miller  <davem@davemloft.net>
28719
28720         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
28721
28722         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
28723         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
28724         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
28725         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
28726
28727         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
28728         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
28729         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
28730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
28731         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
28732         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
28733         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
28734         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
28735         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
28736
28737         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28738
28739         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
28740         * sysdeps/sparc/fpu/libm-test-ulps: to here.
28741         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
28742
28743         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
28744         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28745         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
28746         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
28747         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
28748         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
28749         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
28750         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28751         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
28752         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
28753         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
28754         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
28755         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
28756         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
28757         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
28758         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
28759         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
28760         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
28761         * sysdeps/sparc/elf/configure: Regenerated.
28762
28763 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
28764
28765         * configure.in (AS, LD): Require binutils 2.20 or later.
28766         * configure: Regenerated.
28767         * manual/install.texi (Tools for Compilation): Give binutils 2.20
28768         as required minimum version.
28769         * INSTALL: Regenerated.
28770
28771         [BZ #2541]
28772         [BZ #4108]
28773         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
28774         before squaring exponent.
28775         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
28776         bottom long double and 27 bits of top long double before squaring
28777         exponent.
28778         * math/libm-test.inc (erfc_test): Add more tests.
28779         * sysdeps/i386/fpu/libm-test-ulps: Update.
28780         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28782
28783 2012-03-01  Kai Tietz  <ktietz@redhat.com>
28784
28785         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
28786         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
28787         containing bit-fields.
28788         * soft-fp/extended.h (_FP_UNION_E): Likewise.
28789         * soft-fp/single.h (_FP_UNION_S): Likewise.
28790         * soft-fp/double.h (_FP_UNION_D): Likewise.
28791
28792 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
28793
28794         [BZ #13786]
28795         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
28796         not include ../strcmp.S.
28797         [USE_AS_STRNCASECMP_L]: Likewise.
28798         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
28799         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
28800         * sysdeps/i386/i686/multiarch/strncase_l-c.c
28801         (__strncasecmp_l_ia32): Define as alias to
28802         __strncasecmp_l_nonascii.
28803
28804         [BZ #5794]
28805         * math/libm-test.inc (expm1_test): Add test for bug 5794.
28806         * sysdeps/i386/fpu/libm-test-ulps: Update.
28807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28808
28809         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
28810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28811
28812 2012-02-29  Jeff Law  <law@redhat.com>
28813
28814         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
28815         out of bounds read.
28816
28817 2012-02-29  Marek Polacek  <polacek@redhat.com>
28818
28819         [BZ #13706]
28820         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
28821         * elf/Makefile: Add rules to run tst-unused-dep.out.
28822
28823 2012-02-28  David S. Miller  <davem@davemloft.net>
28824
28825         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
28826         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
28827         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
28828         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
28829         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
28830         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
28831
28832 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
28833
28834         * math/libm-test.inc (llround_test): Move one test from
28835         lround_test.  Use TEST_f_L in moved test.
28836         (lround_test): Move misplaced test to llround_test.  Add testcase
28837         from bug 2561.
28838
28839 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
28840
28841         * sysdeps/x86_64/fpu/e_expf.S: New file.
28842         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
28843
28844 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
28845
28846         [BZ #13637]
28847         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
28848         of remain_len that may cause incomplete multi-byte character and
28849         false match.
28850         * posix/bug-regex33.c: New file.
28851         * posix/Makefile (tests): Add bug-regex33.
28852
28853 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
28854
28855         * manual/macros.texi: New file.
28856         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
28857         * manual/libc.texinfo: Include macros.texi.
28858         * manual/creatute.texi: Likewise.
28859         * manual/install.texi: Likewise.
28860         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
28861         @glibcadj{} in references to the GNU C Library.
28862         * manual/charset.texi: Likewise.
28863         * manual/conf.texi: Likewise.
28864         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
28865         when not using those macros.
28866         * manual/creature.texi: Likewise.
28867         * manual/crypt.texi: Likewise.
28868         * manual/errno.texi: Likewise.
28869         * manual/filesys.texi: Likewise.
28870         * manual/header.texi: Likewise.
28871         * manual/install.texi: Likewise.
28872         * manual/intro.texi: Likewise.
28873         * manual/io.texi: Likewise.
28874         * manual/job.texi: Likewise.
28875         * manual/lang.texi: Likewise.
28876         * manual/libc.texiinfo: Likewise.
28877         * manual/llio.texi: Likewise.
28878         * manual/locale.texi: Likewise.
28879         * manual/maint.texi: Likewise.
28880         * manual/math.texi: Likewise.
28881         * manual/memory.texi: Likewise.
28882         * manual/message.texi: Likewise.
28883         * manual/nss.texi: Likewise.
28884         * manual/pattern.texi: Likewise.
28885         * manual/process.texi: Likewise.
28886         * manual/resource.texi: Likewise.
28887         * manual/search.texi: Likewise.
28888         * manual/setjmp.texi: Likewise.
28889         * manual/signal.texi: Likewise.
28890         * manual/socket.texi: Likewise.
28891         * manual/startup.texi: Likewise.
28892         * manual/stdio.texi: Likewise.
28893         * manual/string.texi: Likewise.
28894         * manual/sysinfo.texi: Likewise.
28895         * manual/syslog.texi: Likewise.
28896         * manual/terminal.texi: Likewise.
28897         * manual/time.texi: Likewise.
28898         * manual/users.texi: Likewise.
28899         * INSTALL: Regenerated.
28900         * NOTES: Regenerated.
28901         * sysdeps/gnu/errlist.c: Regenerated.
28902
28903 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
28904
28905         * include/dirent.h: Include <dirstream.h> before
28906         <dirent/dirent.h>.
28907
28908 2012-02-28  David S. Miller  <davem@davemloft.net>
28909
28910         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
28911         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
28912         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
28913         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
28914
28915 2012-02-27  David S. Miller  <davem@davemloft.net>
28916
28917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
28918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
28919         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
28920         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
28921
28922         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
28923         frame pointer instead of stack pointer relative arg slot.
28924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
28925         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
28926         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
28927
28928 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
28929
28930         [BZ #3992]
28931         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
28932
28933 2012-02-27  David S. Miller  <davem@davemloft.net>
28934
28935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
28936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
28937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
28938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
28939         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
28940         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
28941         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
28942         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
28943
28944 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
28945
28946         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
28947         later.  Allow versions 5-9.
28948         * configure: Regenerated.
28949         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
28950         required minimum version and 4.6 as recommended version.  Do not
28951         mention bugs in GCC 2.7 and 2.8.
28952         * INSTALL: Regenerated.
28953
28954 2012-02-27  David S. Miller  <davem@davemloft.net>
28955
28956         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
28957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
28958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
28959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
28960         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
28961         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
28962         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
28963         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
28964
28965         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
28966         manipulate bits before adding and subtracting TWO112[sx].
28967         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
28968
28969 2012-02-27  Roland McGrath  <roland@hack.frob.com>
28970
28971         [BZ #13775]
28972         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
28973         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
28974         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
28975         being in POSIX, because they are in 1003.1-2008.
28976
28977         * rt/tst-aio.c: Include <fcntl.h>.
28978         * rt/tst-aio7.c: Likewise.
28979         * rt/tst-aio64.c: Likewise.
28980
28981         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
28982
28983 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
28984
28985         * manual/install.texi (--with-headers): Describe headers as
28986         interface headers, not private headers.
28987         (Specific advice for GNU/Linux systems): Describe use of headers
28988         from "make headers_install", not private headers from older
28989         kernels.
28990         * INSTALL: Regenerated.
28991         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
28992         Change to 2.6.19.
28993         * sysdeps/unix/sysv/linux/configure: Regenerated.
28994
28995         * manual/llio.texi (fclean): Remove documentation.
28996
28997         * manual/Makefile (libc-texi-generated): New variable.  Include
28998         version.texi.
28999         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
29000         $(libc-texi-generated), not duplicated list of files.
29001         (version.texi, stamp-version): New rules.
29002         (realclean): Remove $(libc-texi-generated), not individual files
29003         from that list.  Do not remove dir-add.texinfo.
29004         * manual/libc.texinfo: Comment out uses of edition numbers and
29005         references to printed manual.  Remove last-updated dates.
29006         (EDITION): Comment out.
29007         (ISBN): Likewise.
29008         (VERSION, UPDATED): Remove.
29009         (version.texi): Include.
29010
29011 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
29012
29013         * sysdeps/posix/spawni.c: Include <signal.h>.
29014         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
29015         * sysdeps/pthread/aio_fsync.c: Likewise.
29016
29017 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
29018
29019         * conform/Makefile (tests): Run only when not cross-compiling and
29020         when fast-check is not defined.
29021
29022         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
29023         * conform/data/limits.h-data: Fixes for POSIX2008.
29024         * conform/run-conformtest.sh: Run all tests.
29025         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
29026         headers.
29027         * include/bits/dlfcn.h: Likewise.
29028         * include/langinfo.h: Likewise.
29029         * include/monetary.h: Likewise.
29030         * include/sys/poll.h: Likewise.
29031
29032         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
29033         for __USE_GNU.
29034         * posix/spawn.h: Define __need_sigset_t.
29035         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
29036         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
29037         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
29038         to get sigevent_t only.
29039         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
29040         only for __USE_GNU.
29041         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
29042         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
29043         process_vm_writev only for __USE_GNU.
29044         * termios/termios.h: Declare tcgetsid also for POSIX2008.
29045
29046         * conform/Makefile: For now ignore errors from run-conformtest.
29047         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
29048         POSIX to avoid namespace pollution.  Don't prepend headers.
29049         * conform/data/aio.h-data: Fixes for POSIX testing.
29050         * conform/data/fcntl.h-data: Likewise.
29051         * conform/data/glob.h-data: Likewise.
29052         * conform/data/grp.h-data: Likewise.
29053         * conform/data/pthread.h-data: Likewise.
29054         * conform/data/pwd.h-data: Likewise.
29055         * conform/data/signal.h-data: Likewise.
29056         * conform/data/spawn.h-data: Likewise.
29057         * conform/data/stdio.h-data: Likewise.
29058         * conform/data/stdlib.h-data: Likewise.
29059         * conform/data/stropts.h-data: Likewise.
29060         * conform/data/sys/mman.h-data: Likewise.
29061         * conform/data/sys/stat.h-data: Likewise.
29062         * conform/data/sys/types.h-data: Likewise.
29063         * conform/data/sys/wait.h-data: Likewise.
29064         * conform/data/time.h-data: Likewise.
29065         * conform/data/unistd.h-data: Likewise.
29066         * conform/data/utime.h-data: Likewise.
29067
29068         * io/sys/stat.h: fchmod was always in POSIX.
29069         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
29070         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
29071         * rt/aio.h: Define __need_timespec before including <time.h>.
29072         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
29073         struct.  Add forward declaration of pthread_attr_t and use it in
29074         sigevent.
29075         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
29076         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
29077         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
29078         always remove CLK_TCK definition.
29079
29080 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
29081
29082         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
29083
29084 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
29085
29086         * conform/run-conformtest.sh: New file.
29087         * conform/Makefile: Run run-conformtest for tests.
29088         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
29089         support.
29090
29091         * conform/data/uchar.h-data: New file.
29092         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
29093         * conform/data/arpa/inet.h-data: Likewise.
29094         * conform/data/assert.h-data: Likewise.
29095         * conform/data/complex.h-data: Likewise.
29096         * conform/data/cpio.h-data: Likewise.
29097         * conform/data/ctype.h-data: Likewise.
29098         * conform/data/dirent.h-data: Likewise.
29099         * conform/data/dlfcn.h-data: Likewise.
29100         * conform/data/errno.h-data: Likewise.
29101         * conform/data/fcntl.h-data: Likewise.
29102         * conform/data/float.h-data: Likewise.
29103         * conform/data/fmtmsg.h-data: Likewise.
29104         * conform/data/fnmatch.h-data: Likewise.
29105         * conform/data/ftw.h-data: Likewise.
29106         * conform/data/glob.h-data: Likewise.
29107         * conform/data/grp.h-data: Likewise.
29108         * conform/data/iconv.h-data: Likewise.
29109         * conform/data/inttypes.h-data: Likewise.
29110         * conform/data/langinfo.h-data: Likewise.
29111         * conform/data/libgen.h-data: Likewise.
29112         * conform/data/limits.h-data: Likewise.
29113         * conform/data/locale.h-data: Likewise.
29114         * conform/data/math.h-data: Likewise.
29115         * conform/data/monetary.h-data: Likewise.
29116         * conform/data/mqueue.h-data: Likewise.
29117         * conform/data/ndbm.h-data: Likewise.
29118         * conform/data/net/if.h-data: Likewise.
29119         * conform/data/netdb.h-data: Likewise.
29120         * conform/data/netinet/in.h-data: Likewise.
29121         * conform/data/nl_types.h-data: Likewise.
29122         * conform/data/poll.h-data: Likewise.
29123         * conform/data/pthread.h-data: Likewise.
29124         * conform/data/pwd.h-data: Likewise.
29125         * conform/data/regex.h-data: Likewise.
29126         * conform/data/sched.h-data: Likewise.
29127         * conform/data/search.h-data: Likewise.
29128         * conform/data/semaphore.h-data: Likewise.
29129         * conform/data/setjmp.h-data: Likewise.
29130         * conform/data/signal.h-data: Likewise.
29131         * conform/data/spawn.h-data: Likewise.
29132         * conform/data/stdarg.h-data: Likewise.
29133         * conform/data/stdio.h-data: Likewise.
29134         * conform/data/stdlib.h-data: Likewise.
29135         * conform/data/string.h-data: Likewise.
29136         * conform/data/strings.h-data: Likewise.
29137         * conform/data/stropts.h-data: Likewise.
29138         * conform/data/sys/ipc.h-data: Likewise.
29139         * conform/data/sys/mman.h-data: Likewise.
29140         * conform/data/sys/msg.h-data: Likewise.
29141         * conform/data/sys/resource.h-data: Likewise.
29142         * conform/data/sys/select.h-data: Likewise.
29143         * conform/data/sys/sem.h-data: Likewise.
29144         * conform/data/sys/shm.h-data: Likewise.
29145         * conform/data/sys/socket.h-data: Likewise.
29146         * conform/data/sys/stat.h-data: Likewise.
29147         * conform/data/sys/statvfs.h-data: Likewise.
29148         * conform/data/sys/time.h-data: Likewise.
29149         * conform/data/sys/timeb.h-data: Likewise.
29150         * conform/data/sys/times.h-data: Likewise.
29151         * conform/data/sys/types.h-data: Likewise.
29152         * conform/data/sys/uio.h-data: Likewise.
29153         * conform/data/sys/un.h-data: Likewise.
29154         * conform/data/sys/utsname.h-data: Likewise.
29155         * conform/data/sys/wait.h-data: Likewise.
29156         * conform/data/syslog.h-data: Likewise.
29157         * conform/data/tar.h-data: Likewise.
29158         * conform/data/termios.h-data: Likewise.
29159         * conform/data/utime.h-data: Likewise.
29160         * conform/data/utmpx.h-data: Likewise.
29161         * conform/data/varargs.h-data: Likewise.
29162         * conform/data/wchar.h-data: Likewise.
29163         * conform/data/wctype.h-data: Likewise.
29164         * conform/data/wordexp.h-data: Likewise.
29165
29166         * include/stropts.h: New file.
29167         * include/uchar.h: New file.
29168         * include/aio.h: Changes to allow conformtest.pl to use the headers.
29169         * include/assert.h: Likewise.
29170         * include/ctype.h: Likewise.
29171         * include/dirent.h: Likewise.
29172         * include/dlfcn.h: Likewise.
29173         * include/fcntl.h: Likewise.
29174         * include/fnmatch.h: Likewise.
29175         * include/glob.h: Likewise.
29176         * include/grp.h: Likewise.
29177         * include/libio.h: Likewise.
29178         * include/locale.h: Likewise.
29179         * include/math.h: Likewise.
29180         * include/net/if.h: Likewise.
29181         * include/netdb.h: Likewise.
29182         * include/netinet/in.h: Likewise.
29183         * include/pthread.h: Likewise.
29184         * include/pwd.h: Likewise.
29185         * include/regex.h: Likewise.
29186         * include/sched.h: Likewise.
29187         * include/search.h: Likewise.
29188         * include/setjmp.h: Likewise.
29189         * include/signal.h: Likewise.
29190         * include/stdio.h: Likewise.
29191         * include/stdlib.h: Likewise.
29192         * include/string.h: Likewise.
29193         * include/sys/cdefs.h: Likewise.
29194         * include/sys/mman.h: Likewise.
29195         * include/sys/msg.h: Likewise.
29196         * include/sys/resource.h: Likewise.
29197         * include/sys/select.h: Likewise.
29198         * include/sys/socket.h: Likewise.
29199         * include/sys/stat.h: Likewise.
29200         * include/sys/statvfs.h: Likewise.
29201         * include/sys/time.h: Likewise.
29202         * include/sys/times.h: Likewise.
29203         * include/sys/uio.h: Likewise.
29204         * include/sys/utsname.h: Likewise.
29205         * include/sys/wait.h: Likewise.
29206         * include/termios.h: Likewise.
29207         * include/time.h: Likewise.
29208         * include/ulimit.h: Likewise.
29209         * include/unistd.h: Likewise.
29210         * include/utime.h: Likewise.
29211         * include/wchar.h: Likewise.
29212         * include/wctype.h: Likewise.
29213         * include/wordexp.h: Likewise.
29214
29215         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
29216
29217         * time/time.h: TIME_UTC must be a macro.
29218         Make timespec_get available for ISO C11 only as well.
29219
29220 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
29221
29222         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
29223         Reported by Peng Haitao <penght@cn.fujitsu.com>.
29224
29225 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29226
29227         * configure.in: Use -o not -a in test for unsupported multi-arch.
29228
29229 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29230
29231         * manual/texinfo.tex: Update to version 2012-01-19.16.
29232
29233 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
29234
29235         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
29236
29237 2012-02-24  Roland McGrath  <roland@hack.frob.com>
29238
29239         [BZ #13738]
29240         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
29241         * manual/fdl-1.3.texi: New file.
29242         * manual/fdl-1.1.texi: File removed.
29243
29244         [BZ #13738]
29245         * manual/libc.texinfo (FDL_VERSION): New @set.
29246         Use it for mention of FDL in cover text.
29247         (Documentation License): Use it in @include file name.
29248
29249 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29250             Roland McGrath  <roland@hack.frob.com>
29251
29252         [BZ #5461]
29253         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
29254         not LONG_LONG_MAX and LONG_LONG_MIN.
29255         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
29256         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
29257         name.
29258         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
29259
29260 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29261
29262         [BZ #2547]
29263         [BZ #11365]
29264         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
29265         manipulate bits before adding and subtracting TWO23[sx].
29266         * math/libm-test.inc (nearbyint_test): Add more tests.
29267
29268 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29269
29270         [BZ #2548]
29271         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
29272         bits before adding and subtracting TWO23[sx].
29273         * math/libm-test.inc (rint_test): Add more tests.
29274         (rint_test_tonearest): Likewise.
29275         (rint_test_towardzero): Likewise.
29276         (rint_test_downward): Likewise.
29277         (rint_test_upward: Likewise.
29278
29279 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29280
29281         [BZ #10110]
29282         * include/stdc-predef.h: New file.  Extracted from features.h.
29283         * include/features.h: Include stdc-predef.h.
29284         * Makefile (headers): Add stdc-predef.h.
29285         * CONFORMANCE (Compiler limitations): Update.
29286
29287 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
29288
29289         * manual/libc.texinfo (VERSION, UPDATED): Revert.
29290
29291 2012-02-21  David S. Miller  <davem@davemloft.net>
29292
29293         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
29294         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
29295
29296 2012-02-20  David S. Miller  <davem@davemloft.net>
29297
29298         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
29299         using a normal save/restore sequence, rather than allocating a
29300         dummy stack frame just to store a frame pointer and restore.
29301         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29302
29303 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29304
29305         * manual/install.texi: Fix stray word in line-wrapped comment.
29306
29307 2012-02-20  David S. Miller  <davem@davemloft.net>
29308
29309         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
29310         both binutils and gcc support GOTDATA.
29311
29312         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
29313         "rd %pc" in the PIC register setup sequences.
29314
29315         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
29316         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
29317         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
29318         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
29319         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
29320         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
29321         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29322         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
29323         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
29324         (SYSCALL_ERROR_HANDLER): Likewise.
29325         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
29326         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
29327         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
29328         (SYSCALL_ERROR_HANDLER): Likewise.
29329
29330         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
29331         (HAVE_GCC_GOTDATA): New.
29332         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
29333         relocation support in both binutils and gcc.
29334         * sysdeps/sparc/elf/configure: Regenerate.
29335
29336         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
29337         * sysdeps/sparc/sparc32/elf/configure: Delete.
29338         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
29339         * sysdeps/sparc/sparc64/elf/configure: Delete.
29340         * sysdeps/sparc/elf/configure.in: New file.
29341         * sysdeps/sparc/elf/configure: Generate.
29342
29343         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
29344         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
29345         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
29346         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
29347         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
29348
29349 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29350
29351         * manual/install.texi: Do not mention specific glibc version
29352         numbers.
29353         * manual/libc.texinfo (VERSION, UPDATED): Update.
29354         (@copying): Use @copyright{} and range of years.
29355
29356 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
29357
29358         [BZ #13695]
29359         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
29360         [crti.S not in sysdirs] (generated): Do not append.
29361         [crti.S not in sysdirs] (omit-deps): Likewise.
29362         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
29363         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
29364         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
29365         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
29366         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
29367         Likewise.
29368         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
29369         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
29370         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
29371         * csu/defs.awk: Remove file.
29372         * sysdeps/generic/initfini.c: Likewise.
29373         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
29374         variable.
29375         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
29376         Likewise.
29377
29378 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29379
29380         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
29381         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
29382         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
29383         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
29384         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
29385         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
29386         <bits/epoll.h>.
29387         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
29388         (__EPOLL_PACKED): Define to empty if not defined by
29389         <bits/epoll.h>.
29390         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
29391         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29392         bits/epoll.h.
29393
29394 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29395
29396         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
29397         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
29398         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
29399         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
29400         <bits/timerfd.h>.
29401         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
29402         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29403         bits/timerfd.h.
29404
29405 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
29406
29407         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
29408         in C locale.
29409         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29410         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
29411         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
29412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29413
29414 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
29415
29416         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29417         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
29418
29419 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
29420
29421         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
29422         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
29423         defined.
29424         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
29425         Likewise.
29426         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
29427         entry for 2.16.
29428
29429 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
29430
29431         * math/w_acos.c: Use non-signaling floating-point comparisons.
29432         * math/w_acosf.c: Likewise.
29433         * math/w_acosh.c: Likewise.
29434         * math/w_acoshf.c: Likewise.
29435         * math/w_acoshl.c: Likewise.
29436         * math/w_acosl.c: Likewise.
29437         * math/w_asin.c: Likewise.
29438         * math/w_asinf.c: Likewise.
29439         * math/w_asinl.c: Likewise.
29440         * math/w_atanh.c: Likewise.
29441         * math/w_atanhf.c: Likewise.
29442         * math/w_atanhl.c: Likewise.
29443         * math/w_exp2.c: Likewise.
29444         * math/w_exp2f.c: Likewise.
29445         * math/w_exp2l.c: Likewise.
29446         * math/w_j0.c: Likewise.
29447         * math/w_j0f.c: Likewise.
29448         * math/w_j0l.c: Likewise.
29449         * math/w_j1.c: Likewise.
29450         * math/w_j1f.c: Likewise.
29451         * math/w_j1l.c: Likewise.
29452         * math/w_jn.c: Likewise.
29453         * math/w_jnf.c: Likewise.
29454         * math/w_log.c: Likewise.
29455         * math/w_log10.c: Likewise.
29456         * math/w_log10f.c: Likewise.
29457         * math/w_log10l.c: Likewise.
29458         * math/w_log2.c: Likewise.
29459         * math/w_log2f.c: Likewise.
29460         * math/w_log2l.c: Likewise.
29461         * math/w_logf.c: Likewise.
29462         * math/w_logl.c: Likewise.
29463         * math/w_sqrt.c: Likewise.
29464         * math/w_sqrtf.c: Likewise.
29465         * math/w_sqrtl.c: Likewise.
29466         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29467         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
29468         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29469         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
29470         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
29471
29472 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29473
29474         [BZ #9739]
29475         * manual/string.texi (strnlen): Use correct parameter name in
29476         equivalent expression.
29477
29478 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29479
29480         [BZ #11174]
29481         * manual/users.texi (seteuid): Consistently use neweuid for
29482         argument name.
29483
29484 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
29485
29486         [BZ #13704]
29487         * manual/nss.texi (Services in the NSS configuration): Correct
29488         list of services in example configuration file.
29489
29490 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
29491
29492         [BZ #11322]
29493         * manual/arith.texi: Remove statements about negative zero
29494         behaving identically to zero.
29495
29496 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
29497
29498         [BZ #5993]
29499         * manual/install.texi: Do not document upgrading from libc5.
29500
29501 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
29502
29503         [BZ #4596]
29504         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
29505
29506 2012-02-18  David S. Miller  <davem@davemloft.net>
29507
29508         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
29509         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
29510         %o7 across the call.
29511         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
29512         instead.
29513         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
29514         SETUP_PIC_REG_LEAF.
29515         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
29516         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
29517         * sysdeps/sparc/crtn.S: Likewise.
29518
29519 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
29520
29521         * aout/Makefile: Remove.
29522
29523 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
29524
29525         [BZ #13058]
29526         * manual/examples/argp-ex1.c (main): Format definition in GNU
29527         style.
29528         * manual/examples/argp-ex2.c (main): Likewise.
29529         * manual/examples/argp-ex3.c (main): Likewise.
29530         * manual/examples/argp-ex4.c (main): Likewise.
29531         * manual/examples/longopt.c (main): Use new-style prototype
29532         definition.
29533         * manual/examples/strncat.c (main): Specify return type and use
29534         (void) for arguments.
29535         * manual/examples/subopt.c (main): Use char **argv argument.
29536
29537 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29538
29539         [BZ #5077]
29540         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
29541         rounding modes.
29542
29543 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
29544
29545         [BZ #6907]
29546         * manual/string.texi (strchr): Change when strchrnul is
29547         recommended.
29548
29549 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
29550
29551         [BZ #174]
29552         * manual/locale.texi (setlocale): Document LOCPATH.
29553
29554 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29555
29556         [BZ #10210]
29557         * manual/process.texi (execle): Move @dots{} before last argument.
29558
29559 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
29560
29561         [BZ #12047]
29562         * manual/charset.texi (Generic Charset Conversion): Fix typo
29563         (LC_TYPE -> LC_CTYPE).
29564
29565 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
29566
29567         [BZ #5805]
29568         * manual/arith.texi (scalbn): Use @var{} on parameter names.
29569         (scalbnf): Likewise.
29570         (scalbnl): Likewise.
29571         (scalbln): Likewise.
29572         (scalblnf): Likewise.
29573         (scalblnl): Likewise.
29574         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
29575         (vwarnx): Likewise.
29576         (verr): Likewise.
29577         (verrx): Likewise.
29578         * manual/filesys.texi (telldir): Use braces around return type.
29579         * manual/llio.texi (mmap): Add space after comma.
29580         (mmap64): Likewise.
29581         * manual/math.texi (jn): Use @var{} on parameter names.
29582         (jnf): Likewise.
29583         (jnl): Likewise.
29584         (yn): Likewise.
29585         (ynf): Likewise.
29586         (ynl): Likewise.
29587         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
29588         line.
29589         * manual/resource.texi (ulimit): Use @dots{} instead of literal
29590         "...".
29591         (sched_get_priority_min): Remove semicolon on @deftypefun line.
29592         (sched_get_priority_max): Likewise.
29593         * manual/signal.texi (sigvec): Add space after comma.
29594         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
29595         names.
29596         (if_indextoname): Likewise.
29597         (if_freenameindex): Likewise.
29598         (sendto): Use ',' instead of '.' in prototype.
29599         * manual/startup.texi (syscall): Use @dots{} instead of literal
29600         "...".
29601         * manual/stdio.texi (__fpending): Separate initial words of
29602         paragraph from @deftypefun line.
29603         * manual/syslog.texi (syslog): Use @dots{} instead of literal
29604         "...".
29605         (vsyslog): Use @var{} on parameter names.
29606         * manual/terminal.texi (stty): Use @var{} on parameter names.
29607         * manual/users.texi (getutmp): Use @var{} on parameter names.
29608         (getutmpx): Likewise.
29609
29610 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29611
29612         [BZ #6884]
29613         * manual/stdio.texi (fopen): Fix typos in description of
29614         ",ccs=STRING".
29615
29616 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
29617
29618         [BZ #4026]
29619         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
29620         get clock_id definition.
29621
29622 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
29623
29624         [BZ #4822]
29625         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
29626         (madvise): Cast every argument to void on its own.
29627
29628 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29629
29630         [BZ #9902]
29631         * manual/startup.texi (Exit Status): Fix typo.
29632
29633 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
29634
29635         [BZ #10140]
29636         * manual/examples/argp-ex1.c: Include <stdlib.h>.
29637         * manual/examples/argp-ex2.c: Likewise.
29638         * manual/examples/argp-ex3.c: Likewise.
29639
29640 2012-02-16  Richard Henderson  <rth@redhat.com>
29641
29642         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
29643         * sysdeps/s390/s390-32/initfini.c: Remove.
29644         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
29645         * sysdeps/s390/s390-64/initfini.c: Remove.
29646
29647 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29648
29649         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
29650         compiler output for sysdeps/generic/initfini.c.
29651         * sysdeps/sh/elf/initfini.c: Remove file.
29652
29653 2012-02-16  David S. Miller  <davem@davemloft.net>
29654
29655         [BZ #11494]
29656         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
29657
29658         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
29659         * sysdeps/sparc/crti.S: New file.
29660         * sysdeps/sparc/crtn.S: New file.
29661         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
29662         * sysdeps/sparc/sparc64/Makefile: Likewise.
29663
29664 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
29665
29666         [BZ #3335]
29667         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
29668
29669 2012-02-15  Roland McGrath  <roland@hack.frob.com>
29670
29671         [BZ #4822]
29672         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
29673
29674         * mach/devstream.c (cookie_io_functions_t): Macro removed.
29675         (write, read, close): Likewise.
29676         Patch by Aurelien Jarno <aurelien@aurel32.net>.
29677
29678 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
29679
29680         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
29681         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
29682         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
29683         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
29684         <bits/signalfd.h>.
29685         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
29686         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29687         bits/signalfd.h.
29688
29689 2012-02-14  Marek Polacek  <polacek@redhat.com>
29690
29691         * sysdeps/x86_64/crti.S: New file.
29692         * sysdeps/x86_64/crtn.S: New file.
29693         * sysdeps/x86_64/elf/initfini.c: Remove file.
29694
29695 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
29696
29697         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
29698         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
29699         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
29700         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
29701         <bits/inotify.h>.
29702         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
29703         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29704         bits/inotify.h.
29705
29706 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
29707
29708         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
29709         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
29710         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
29711         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
29712         <bits/eventfd.h>.
29713         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
29714         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
29715         bits/eventfd.h.
29716
29717 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
29718
29719         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
29720         __feraiseexcept instead of feraiseexcept.
29721
29722         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
29723         nanosleep invocations.
29724         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
29725         strings, and add error checking for a nanosleep invocations.
29726
29727 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29728
29729         Replace FSF snail mail address with URLs, as per GNU coding standards.
29730         Most of the snail mail addresses were wrong anyway, and omitting
29731         them makes the source code easier to maintain.  Almost all of the
29732         changes are to license notices and to locale LC_IDENTIFICATION
29733         addresses, except for this one:
29734         * manual/libc.texinfo: In "Published by", give the FSF's URL,
29735         not its snail mail address.
29736
29737 2012-02-09  Richard Henderson  <rth@twiddle.net>
29738
29739         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
29740         of kernel-features.h.
29741
29742         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
29743
29744 2012-02-08  Marek Polacek  <polacek@redhat.com>
29745
29746         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
29747         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
29748         * sysdeps/gnu/_G_config.h: Likewise.
29749         * sysdeps/generic/_G_config.h: Likewise.
29750
29751 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
29752
29753         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
29754         tests.
29755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29756
29757         * sysdeps/powerpc/powerpc32/crti.S: New file.
29758         * sysdeps/powerpc/powerpc32/crtn.S: New file.
29759         * sysdeps/powerpc/powerpc64/crti.S: New file.
29760         * sysdeps/powerpc/powerpc64/crtn.S: New file.
29761
29762         * Makeconfig (have-initfini): Don't set.
29763         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
29764         * configure.in (nopic_initfini): Don't substitute.
29765         * config.h.in (HAVE_INITFINI): Don't #undef.
29766         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
29767         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
29768
29769 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
29770
29771         Support crti.S and crtn.S provided directly by architectures.
29772         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
29773         [crti.S in sysdirs] (omit-deps): Likewise.
29774         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
29775         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
29776         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
29777         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
29778         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
29779         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
29780         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
29781         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
29782         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
29783         compiler output for sysdeps/generic/initfini.c.
29784         * sysdeps/i386/elf/Makefile: Remove file.
29785         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
29786
29787 2012-02-07  Marek Polacek  <polacek@redhat.com>
29788
29789         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
29790         * sysdeps/gnu/_G_config.h: Likewise.
29791         * sysdeps/mach/hurd/_G_config.h: Likewise.
29792
29793 2012-02-07  Marek Polacek  <polacek@redhat.com>
29794
29795         * math/Makefile (tests): Add tst-CMPLX2.
29796         * math/tst-CMPLX2.c: New file.
29797
29798 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
29799
29800         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29801
29802         * math/libm-test.inc (jn_test): Add missing L suffix.
29803
29804 2012-02-06  Marek Polacek  <polacek@redhat.com>
29805
29806         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
29807         * sysdeps/i386/fpu/e_powf.S: Likewise.
29808         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29809         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
29810         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29811         * sysdeps/i386/fpu/e_pow.S: Likewise.
29812         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29813         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29814         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29815         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29816         * sysdeps/i386/fpu/e_log2.S: Likewise.
29817         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29818         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29819         * sysdeps/i386/fpu/e_powl.S: Likewise.
29820         * sysdeps/i386/fpu/s_log1p.S: Likewise.
29821         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29822         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29823         * sysdeps/i386/fpu/e_logl.S: Likewise.
29824         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29825         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
29826         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29827         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29828         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29829         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29830         * sysdeps/i386/fpu/e_log.S: Likewise.
29831         * sysdeps/i386/fpu/s_cexp.S: Likewise.
29832         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29833         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
29834         * sysdeps/i386/fpu/e_logf.S: Likewise.
29835         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29836         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29837         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
29838         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29839         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
29840         * sysdeps/i386/fpu/e_log10.S: Likewise.
29841         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29842         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29843         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29844         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29845         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29846         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29847         * sysdeps/i386/asm-syntax.h: Likewise.
29848         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29849         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29850         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29851         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
29852         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
29853         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29854         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29855         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29856         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29857         * sysdeps/powerpc/sysdep.h: Likewise.
29858         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
29859         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
29860
29861 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
29862
29863         [BZ #411]
29864         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
29865
29866 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
29867
29868         * sysdeps/i386/sysdep.h: Include <features.h>.
29869         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
29870         version.
29871
29872 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
29873
29874         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
29875         Define.
29876         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
29877         LOAD_PIC_REG_STR.
29878
29879 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29880
29881         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
29882         (SETUP_PIC_REG): Use GET_PC_THUNK.
29883         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
29884         macro.
29885
29886 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29887
29888         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
29889         for non-PIC compilation.
29890         (SETUP_PIC_REG): Add .p2align directive.
29891         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
29892         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
29893         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
29894         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
29895         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
29896         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
29897         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29898         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29899         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
29900         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
29901         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
29902         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
29903         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
29904         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
29905         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
29906         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29907         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29908         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
29909         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
29910         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
29911         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
29912         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29913         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
29914         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
29915         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
29916         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
29917         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
29918         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29919         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
29920         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
29921         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
29922         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
29923         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
29924         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
29925         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
29926         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
29927         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
29928         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
29929         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
29930         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
29931         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
29932
29933 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
29934
29935         * math/tst-CMPLX.c: Include <stdio.h>.
29936
29937 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
29938
29939         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
29940         float.
29941         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
29942         * sysdeps/sparc/bits/mathdef.h: Likewise.
29943
29944 2012-01-31  Marek Polacek  <polacek@redhat.com>
29945
29946         * libio/libio.h: Don't define _PARAMS.
29947         * locale/programs/config.h: Don't define PARAMS.
29948         * stdlib/strtol_l.c: Likewise.
29949         (__strtol_l): Remove PARAMS from the prototype.
29950
29951 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
29952
29953         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
29954         names.  Just use the correct names.  Remove unnecessary wrapper
29955         functions.
29956         * malloc/arena.c: Likewise.
29957         * malloc/hooks.c: Likewise.
29958
29959         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
29960         ARENA_TEST says not to.  Simplify test for creation of a new arena.
29961         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
29962
29963 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
29964
29965         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
29966         into tail calls.
29967         (update_get_addr): New function.
29968         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
29969         GET_ADDR_MODULE parameter.
29970
29971 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
29972
29973         * crypt/cert.c: Remove __STDC__ conditionals.
29974         * crypt/crypt-entry.c: Likewise.
29975         * crypt/crypt_util.c: Likewise.
29976         * libio/filedoalloc.c: Likewise.
29977         * libio/fileops.c: Likewise.
29978         * libio/genops.c: Likewise.
29979         * libio/iofclose.c: Likewise.
29980         * libio/iofdopen.c: Likewise.
29981         * libio/iofopen.c: Likewise.
29982         * libio/iofopen64.c: Likewise.
29983         * libio/iogetdelim.c: Likewise.
29984         * libio/iopopen.c: Likewise.
29985         * libio/obprintf.c: Likewise.
29986         * libio/oldfileops.c: Likewise.
29987         * libio/oldiofclose.c: Likewise.
29988         * libio/oldiofdopen.c: Likewise.
29989         * libio/oldiofopen.c: Likewise.
29990         * libio/oldiopopen.c: Likewise.
29991         * libio/wfiledoalloc.c: Likewise.
29992         * libio/wgenops.c: Likewise.
29993         * locale/programs/xmalloc.c: Likewise.
29994         * misc/syslog.c: Likewise.
29995         * stdio-common/xbug.c: Likewise.
29996         * string/memchr.c: Likewise.
29997         * string/memcmp.c: Likewise.
29998         * string/memrchr.c: Likewise.
29999         * string/rawmemchr.c: Likewise.
30000         * sysdeps/posix/getcwd.c: Likewise.
30001         * time/strftime_l.c: Likewise.
30002
30003 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
30004
30005         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
30006         * config.make.in (config-cflags-sse2avx): Define.
30007         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
30008         Fix typo.
30009
30010 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
30011
30012         * scripts/config.guess: Update from upstream config git repository.
30013         * scripts/config.sub: Likewise.
30014
30015 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
30016
30017         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
30018         (EM_NUM): Update.
30019         (R_TILEPRO_*, R_TILEGX_*): New macros.
30020
30021         * scripts/firstversions.awk: Fix bug in version range handling.
30022
30023         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
30024
30025         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
30026
30027         * include/sys/epoll.h: New file.
30028         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
30029         libc_hidden_def.
30030
30031 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
30032
30033         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
30034         Avoid unnecessary __WORDSIZE == 64 test.
30035         (fmaxf): Use VEX format if possible.
30036         (fmax): Likewise.
30037         (fminf): Likewise.
30038         (fmin): Likewise.
30039
30040         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
30041         * math/math_private.h: Remove libc_fegetround* and
30042         libc_fesetround*.
30043         * sysdeps/i386/configure.in: Check for -msse2avx.
30044         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
30045         also if SSE2AVX is defined.
30046         Remove libc_fegetround* and libc_fesetround*.
30047         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
30048         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
30049         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
30050         of HAS_YMM_USABLE.
30051         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30052         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30053         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30054         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30055         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30056
30057         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
30058
30059 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30060
30061         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
30062         size is not set.
30063         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
30064
30065 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
30066
30067         [BZ #13618]
30068         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
30069         relocation.
30070         * Makeconfig (libm): Define.
30071         * elf/Makefile: Add rules to build and run tst-relsort1.
30072         * elf/tst-relsort1.c: New file.
30073         * elf/tst-relsort1mod1.c: New file.
30074         * elf/tst-relsort1mod2.c: New file.
30075
30076 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
30077
30078         * math/s_ldexp.c: Remove __STDC__ conditionals.
30079         * math/s_ldexpf.c: Likewise.
30080         * math/s_ldexpl.c: Likewise.
30081         * math/s_nextafter.c: Likewise.
30082         * math/s_nexttowardf.c: Likewise.
30083         * math/s_significand.c: Likewise.
30084         * math/s_significandf.c: Likewise.
30085         * math/s_significandl.c: Likewise.
30086         * math/w_jnl.c: Likewise.
30087         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
30088         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
30089         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
30090         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
30091         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
30092         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
30093         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
30094         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
30095         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
30096         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
30097         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
30098         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
30099         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
30100         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
30101         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
30102         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
30103         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
30104         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
30105         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
30106         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
30107         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
30108         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
30109         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
30110         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
30111         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
30112         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
30113         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
30114         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
30115         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
30116         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
30117         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
30118         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
30119         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
30120         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
30121         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
30122         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
30123         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
30124         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
30125         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
30126         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
30127         * sysdeps/ieee754/k_standard.c: Likewise.
30128         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
30129         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
30130         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
30131         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
30132         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
30133         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
30134         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
30135         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
30136         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
30137         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
30138         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
30139         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
30140         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
30141         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
30142         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
30143         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
30144         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
30145         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
30146         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
30147         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
30148         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30149         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
30150         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
30151         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
30152         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
30153         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
30154         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30155         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30156         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30157         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
30158         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
30159         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
30160         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
30161         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
30162         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
30163         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
30164         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
30165         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
30166         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
30167         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
30168         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
30169         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
30170         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
30171         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
30172         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
30173         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
30174         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
30175         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
30176         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
30177         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
30178         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
30179         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
30180         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
30181         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
30182         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
30183         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
30184         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
30185         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
30186         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
30187         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
30188         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
30189         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
30190         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
30191         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
30192         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
30193         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
30194         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
30195         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
30196         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
30197         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
30198         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
30199         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
30200         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
30201         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
30202         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
30203         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
30204         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
30205         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
30206         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
30207         * sysdeps/ieee754/s_matherr.c: Likewise.
30208         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
30209         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
30210         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
30211         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
30212
30213 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30214
30215         * crypt/md5.h: Remove __STDC__ conditionals.
30216         * libio/libioP.h: Likewise.
30217         * locale/programs/config.h: Likewise.
30218         * sysdeps/generic/sysdep.h: Likewise.
30219         * sysdeps/i386/asm-syntax.h: Likewise.
30220         * sysdeps/s390/asm-syntax.h: Likewise.
30221         * sysdeps/unix/sysdep.h: Likewise.
30222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
30223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30224
30225 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
30226
30227         * libio/libio.h: Remove __STDC__ conditionals.
30228         * malloc/obstack.h: Likewise.
30229         * math/complex.h: Likewise.
30230         * math/math.h: Likewise.
30231         * sysdeps/generic/_G_config.h: Likewise.
30232         * sysdeps/gnu/_G_config.h: Likewise.
30233         * sysdeps/mach/hurd/_G_config.h: Likewise.
30234         * sysdeps/powerpc/bits/mathdef.h: Likewise.
30235         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
30236         * sysdeps/sparc/bits/mathdef.h: Likewise.
30237
30238 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
30239
30240         [BZ #13583]
30241         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
30242         Clean up HAS_* macros.
30243         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
30244         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
30245         possible.
30246         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
30247         HAS_AVX.
30248         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
30249         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
30250         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
30251         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
30252         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
30253
30254 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
30255
30256         * elf/tst-unique3.cc (gets): Remove declaration.
30257         * elf/tst-unique3lib.cc (gets): Likewise.
30258         * elf/tst-unique3lib2.cc (gets): Likewise.
30259         * elf/tst-unique4.cc (gets): Likewise.
30260
30261 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
30262
30263         * include/stdio.h: Add C++ protection.  Add gets declarations and
30264         definitions.
30265         * debug/tst-chk1.c: Don't declare gets here.
30266         * stdio-common/tst-gets.c: Likewise.
30267
30268 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30269
30270         * posix/glob: Remove directory.
30271
30272 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
30273
30274         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
30275
30276 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
30277
30278         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
30279         of the non-standard EPFNOSUPPORT.
30280
30281 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30282
30283         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
30284         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
30285         ANYWHERE set to 1 only on KERN_NO_SPACE error.
30286
30287 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
30288
30289         * wcsmbs/uchar.h: Test __STDC_VERSION__.
30290
30291 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
30292
30293         * nscd/aicache.c (addhstaiX): Do not cache negative results of
30294         transient errors.
30295         * nscd/grpcache.c (cache_addgr): Likewise.
30296         * nscd/hstcache.c (cache_addhst): Likewise.
30297         * nscd/initgrcache.c (addinitgroupsX): Likewise.
30298         * nscd/pwdcache.c (cache_addpw): Likewise.
30299         * nscd/servicescache.c (cache_addserv): Likewise.
30300
30301 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
30302
30303         * malloc/malloc.c: Various cleanups.
30304         * malloc/hooks.c: Likewise.
30305
30306         * stdlib/Makefile (tests): Add bug-fmtmsg1.
30307         * stdlib/bug-fmtmsg1.c: New file.
30308
30309         * stdlib/fmtmsg.c (init): Add missing unlock.
30310         Patch by Peng Haitao <penght@cn.fujitsu.com>.
30311
30312 2012-01-12  Marek Polacek  <polacek@redhat.com>
30313
30314         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
30315         and _GNU_SOURCE.
30316
30317 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30318
30319         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
30320         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
30321         macro to ensure uniqueness of label name.
30322         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
30323         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
30324
30325 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
30326
30327         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
30328
30329         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
30330         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
30331         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30332         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
30333
30334 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
30335
30336         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
30337
30338         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
30339         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
30340         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
30341
30342         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
30343
30344         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
30345         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
30346         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
30347         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
30348
30349         * math/bits/math-finite.h: Add ldexp support.
30350
30351 2012-01-10  Marek Polacek  <polacek@redhat.com>
30352
30353         * locale/programs/localedef.h (show_archive_content): Add noreturn
30354         attribute.
30355
30356 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
30357
30358         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
30359
30360 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30361
30362         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
30363
30364         * io/Makefile (headers): Add bits/poll2.h.
30365
30366 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
30367
30368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
30369         typo #include statement.
30370
30371 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30372
30373         * include/sys/cdefs.h: Define __attribute_alloc_size.
30374         * catgets/gencat.c: Add alloc_size attribute and apply consistently
30375         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
30376         * elf/pldd.c: Likewise.
30377         * iconv/iconv_charmap.c: Likewise.
30378         * iconv/iconvconfig.c: Likewise.
30379         * iconv/strtab.c: Likewise.
30380         * locale/programs/locale.c: Likewise.
30381         * locale/programs/localedef.h: Likewise.
30382         * locale/programs/simple-hash.c: Likewise.
30383         * nscd/nscd.h: Likewise.
30384         * nss/makedb.c: Likewise.
30385         * sysdeps/generic/ldconfig.h: Likewise.
30386         * locale/programs/localedef.c: Remove xmalloc prototype.
30387         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
30388
30389 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
30390
30391         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
30392         appropriate.
30393
30394 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
30395
30396         * math/Makefile (tests): Add tst-CMPLX.
30397         * math/tst-CMPLX.c: New file.
30398
30399         * math/complex.h (CMPLXL): Fix typo.
30400
30401         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
30402         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
30403         GLIBC_2.16.
30404         * debug/tst-chk1.c: Add poll and ppoll tests.
30405         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
30406         * include/sys/poll.h: Add hidden proto for ppoll.
30407         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
30408         * sysdeps/mach/hurd/ppoll.c: Likewise.
30409         * io/ppoll.c: Likewise.
30410         * debug/poll_chk.c: New file.
30411         * debug/ppoll_chk.c: New file.
30412         * include/bits/poll2.h: New file.
30413         * io/bits/poll2.h: New file.
30414
30415         [BZ #1350]
30416         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
30417
30418         * configure.in: static is always set to yes.  Remove.
30419         * config.make.in: Don't set build-static.
30420         * Makeconfig: Remove use of build-static.
30421         * dlfcn/Makefile: Likewise.
30422         * elf/Makefile: Likewise.
30423         * math/Makefile: Likewise.
30424         * misc/Makefile: Likewise.
30425         * nptl/Makefile: Likewise.
30426         * sysdeps/mach/hurd/Makefile: Likewise.
30427
30428         * configure.in: PWD_P is not used anymore.
30429         * config.make.in: Remove PWD_P entry.
30430
30431         * configure.in: Remove last remnants of RANLIB.
30432         No need to check for signed size_t anymore.
30433         Don't set libc_commonpagesize and libc_relro_required here for Alpha
30434         and IA-64.
30435         Remove __builtin_expect test because we require at least gcc 3.4.
30436         * aclocal.m4: Likewise.
30437
30438         * wcsmbs/mbrtoc16.c: Implement using towc function.
30439         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
30440         * wcsmbs/wcsmbsload.c: Likewise.
30441         * iconv/gconv_simple.c: Likewise.
30442         * iconv/gconv_int.h: Likewise.
30443         * iconv/gconv_builtin.h: Likewise.
30444         * iconv/iconv_prog.c: Remove CHAR16 handling.
30445
30446         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
30447
30448         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
30449
30450         * configure.in: Remove --with-elf and --enable-bounded options.
30451         Dont set base_machine for ia64.  More non-ELF conditions removed.
30452         Remove testing and setting of leading underscore information.
30453         * config.make.in (build-bounded): Set to no.
30454         * config.h.in: Remove NO_UNDERSCORES entry.
30455         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
30456         them.
30457         * csu/start.c: Remove !NO_UNDERSCORE code.
30458         * locale/localeinfo.h: Likewise.
30459         * sysdeps/generic/machine-gmon.h: Likewise.
30460         * sysdeps/generic/sysdep.h: Likewise.
30461         * sysdeps/i386/sysdep.h: Likewise.
30462         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
30463         * sysdeps/mach/sysdep.h: Likewise.
30464         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30465         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30466         * sysdeps/sh/sysdep.h: Likewise.
30467         * sysdeps/sparc/sparc32/alloca.S: Likewise.
30468         * sysdeps/unix/i386/sysdep.S: Likewise.
30469         * sysdeps/unix/sparc/start.c: Likewise.
30470         * sysdeps/unix/sparc/sysdep.S: Likewise.
30471         * sysdeps/unix/sparc/sysdep.h: Likewise.
30472         * sysdeps/unix/start.c: Likewise.
30473         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30474         * sysdeps/x86_64/sysdep.h: Likewise.
30475
30476 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
30477
30478         [BZ #13553]
30479         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
30480         for non-gcc.
30481         * argp/argp-fmtstream.h: Use const instead __const.
30482         * argp/argp.h: Likewise.
30483         * assert/assert.h: Likewise.
30484         * bits/fenv.h: Likewise.
30485         * bits/sched.h: Likewise.
30486         * bits/sigset.h: Likewise.
30487         * bits/sigthread.h: Likewise.
30488         * catgets/nl_types.h: Likewise.
30489         * conform/data/pthread.h-data: Likewise.
30490         * crypt/crypt-private.h: Likewise.
30491         * crypt/crypt.h: Likewise.
30492         * crypt/crypt_util.c: Likewise.
30493         * ctype/ctype.h: Likewise.
30494         * debug/execinfo.h: Likewise.
30495         * debug/mbsnrtowcs_chk.c: Likewise.
30496         * debug/mbsrtowcs_chk.c: Likewise.
30497         * debug/wcsnrtombs_chk.c: Likewise.
30498         * debug/wcsrtombs_chk.c: Likewise.
30499         * debug/wcstombs_chk.c: Likewise.
30500         * dirent/dirent.h: Likewise.
30501         * dlfcn/dlfcn.h: Likewise.
30502         * elf/neededtest4.c: Likewise.
30503         * grp/grp.h: Likewise.
30504         * gshadow/gshadow.h: Likewise.
30505         * iconv/gconv.h: Likewise.
30506         * iconv/gconv_int.h: Likewise.
30507         * iconv/gconv_simple.c: Likewise.
30508         * iconv/iconv.h: Likewise.
30509         * iconv/loop.c: Likewise.
30510         * iconv/skeleton.c: Likewise.
30511         * include/aio.h: Likewise.
30512         * include/aliases.h: Likewise.
30513         * include/argz.h: Likewise.
30514         * include/arpa/inet.h: Likewise.
30515         * include/assert.h: Likewise.
30516         * include/dirent.h: Likewise.
30517         * include/dlfcn.h: Likewise.
30518         * include/execinfo.h: Likewise.
30519         * include/fcntl.h: Likewise.
30520         * include/fenv.h: Likewise.
30521         * include/glob.h: Likewise.
30522         * include/grp.h: Likewise.
30523         * include/libintl.h: Likewise.
30524         * include/mntent.h: Likewise.
30525         * include/netdb.h: Likewise.
30526         * include/pwd.h: Likewise.
30527         * include/rpc/netdb.h: Likewise.
30528         * include/sched.h: Likewise.
30529         * include/search.h: Likewise.
30530         * include/shadow.h: Likewise.
30531         * include/signal.h: Likewise.
30532         * include/stdio.h: Likewise.
30533         * include/stdlib.h: Likewise.
30534         * include/string.h: Likewise.
30535         * include/sys/socket.h: Likewise.
30536         * include/sys/stat.h: Likewise.
30537         * include/sys/statfs.h: Likewise.
30538         * include/sys/statvfs.h: Likewise.
30539         * include/sys/syslog.h: Likewise.
30540         * include/sys/time.h: Likewise.
30541         * include/sys/uio.h: Likewise.
30542         * include/time.h: Likewise.
30543         * include/unistd.h: Likewise.
30544         * include/utmp.h: Likewise.
30545         * include/wchar.h: Likewise.
30546         * include/wctype.h: Likewise.
30547         * inet/aliases.h: Likewise.
30548         * inet/arpa/inet.h: Likewise.
30549         * inet/netinet/ether.h: Likewise.
30550         * inet/netinet/in.h: Likewise.
30551         * intl/libintl.h: Likewise.
30552         * io/bits/fcntl2.h: Likewise.
30553         * io/fcntl.h: Likewise.
30554         * io/ftw.h: Likewise.
30555         * io/sys/poll.h: Likewise.
30556         * io/sys/stat.h: Likewise.
30557         * io/sys/statfs.h: Likewise.
30558         * io/sys/statvfs.h: Likewise.
30559         * io/utime.h: Likewise.
30560         * libio/bits/stdio.h: Likewise.
30561         * libio/bits/stdio2.h: Likewise.
30562         * libio/libio.h: Likewise.
30563         * libio/libioP.h: Likewise.
30564         * libio/stdio.h: Likewise.
30565         * locale/lc-ctype.c: Likewise.
30566         * locale/locale.h: Likewise.
30567         * login/utmp.h: Likewise.
30568         * malloc/arena.c: Likewise.
30569         * malloc/malloc.c: Likewise.
30570         * malloc/malloc.h: Likewise.
30571         * malloc/mcheck.c: Likewise.
30572         * malloc/mtrace.c: Likewise.
30573         * math/bits/mathcalls.h: Likewise.
30574         * math/fenv.h: Likewise.
30575         * math/math_private.h: Likewise.
30576         * misc/bits/error.h: Likewise.
30577         * misc/bits/syslog.h: Likewise.
30578         * misc/err.h: Likewise.
30579         * misc/error.h: Likewise.
30580         * misc/fstab.h: Likewise.
30581         * misc/mntent.h: Likewise.
30582         * misc/regexp.h: Likewise.
30583         * misc/search.h: Likewise.
30584         * misc/sgtty.h: Likewise.
30585         * misc/sys/mman.h: Likewise.
30586         * misc/sys/syslog.h: Likewise.
30587         * misc/sys/uio.h: Likewise.
30588         * misc/sys/xattr.h: Likewise.
30589         * misc/ttyent.h: Likewise.
30590         * nis/rpcsvc/ypclnt.h: Likewise.
30591         * nss/nss.h: Likewise.
30592         * posix/bits/unistd.h: Likewise.
30593         * posix/fnmatch.h: Likewise.
30594         * posix/glob.h: Likewise.
30595         * posix/sched.h: Likewise.
30596         * posix/spawn.h: Likewise.
30597         * posix/sys/wait.h: Likewise.
30598         * posix/unistd.h: Likewise.
30599         * posix/wordexp.h: Likewise.
30600         * pwd/pwd.h: Likewise.
30601         * resolv/netdb.h: Likewise.
30602         * resource/sys/resource.h: Likewise.
30603         * rt/aio.h: Likewise.
30604         * rt/bits/mqueue2.h: Likewise.
30605         * rt/mqueue.h: Likewise.
30606         * shadow/shadow.h: Likewise.
30607         * signal/signal.h: Likewise.
30608         * socket/send.c: Likewise.
30609         * socket/sendto.c: Likewise.
30610         * socket/sys/socket.h: Likewise.
30611         * stdio-common/printf.h: Likewise.
30612         * stdlib/bits/stdlib.h: Likewise.
30613         * stdlib/fmtmsg.h: Likewise.
30614         * stdlib/monetary.h: Likewise.
30615         * stdlib/stdlib.h: Likewise.
30616         * stdlib/ucontext.h: Likewise.
30617         * streams/stropts.h: Likewise.
30618         * string/argz.h: Likewise.
30619         * string/bits/string2.h: Likewise.
30620         * string/string.h: Likewise.
30621         * string/strings.h: Likewise.
30622         * sunrpc/rpc/auth.h: Likewise.
30623         * sunrpc/rpc/auth_des.h: Likewise.
30624         * sunrpc/rpc/clnt.h: Likewise.
30625         * sunrpc/rpc/netdb.h: Likewise.
30626         * sunrpc/rpc/pmap_clnt.h: Likewise.
30627         * sunrpc/rpc/xdr.h: Likewise.
30628         * sysdeps/generic/inttypes.h: Likewise.
30629         * sysdeps/generic/net/if.h: Likewise.
30630         * sysdeps/generic/sys/swap.h: Likewise.
30631         * sysdeps/gnu/net/if.h: Likewise.
30632         * sysdeps/gnu/utmpx.h: Likewise.
30633         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
30634         * sysdeps/i386/i486/bits/string.h: Likewise.
30635         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
30636         * sysdeps/s390/bits/string.h: Likewise.
30637         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
30638         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
30639         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
30640         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
30641         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
30642         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
30643         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
30644         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
30645         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
30646         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30647         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
30648         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
30649         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
30650         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
30651         * sysdeps/unix/sysv/linux/readv.c: Likewise.
30652         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
30653         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
30654         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30655         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
30656         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
30657         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
30658         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
30659         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
30660         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
30661         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
30662         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
30663         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
30664         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
30665         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
30666         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
30667         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
30668         * sysvipc/sys/ipc.h: Likewise.
30669         * sysvipc/sys/msg.h: Likewise.
30670         * sysvipc/sys/sem.h: Likewise.
30671         * sysvipc/sys/shm.h: Likewise.
30672         * termios/termios.h: Likewise.
30673         * time/sys/time.h: Likewise.
30674         * time/time.h: Likewise.
30675         * wcsmbs/bits/wchar2.h: Likewise.
30676         * wcsmbs/uchar.h: Likewise.
30677         * wcsmbs/wchar.h: Likewise.
30678         * wctype/wctype.h: Likewise.
30679
30680         [BZ #13551]
30681         * Makeconfig: Remove all but ELF support including AIX support.
30682         * Makerules: Likewise.
30683         * config.h.in: Likewise.
30684         * config.make.in: Likewise.
30685         * configure: Likewise.
30686         * configure.in: Likewise.
30687         * csu/Makefile: Likewise.
30688         * csu/version.c: Likewise.
30689         * debug/Makefile: Likewise.
30690         * dlfcn/Makefile: Likewise.
30691         * elf/Makefile: Likewise.
30692         * extra-lib.mk: Likewise.
30693         * iconv/Makefile: Likewise.
30694         * include/libc-symbols.h: Likewise.
30695         * include/shlib-compat.h: Likewise.
30696         * resolv/Makefile: Likewise.
30697         * resolv/res_libc.c: Likewise.
30698         * rt/Makefile: Likewise.
30699         * sysdeps/i386/asm-syntax.h: Likewise.
30700         * sysdeps/i386/sysdep.h: Likewise.
30701         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
30702         * sysdeps/mach/sysdep.h: Likewise.
30703         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
30704         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
30705         * sysdeps/s390/asm-syntax.h: Likewise.
30706         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30707         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30708         * sysdeps/sh/sysdep.h: Likewise.
30709         * sysdeps/unix/sparc/sysdep.h: Likewise.
30710         * sysdeps/wordsize-32/divdi3.c: Likewise.
30711         * sysdeps/x86_64/sysdep.h: Likewise.
30712
30713         * argp/Versions: Remove _argp_unlock_xxx.
30714
30715         [BZ #13559]
30716         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
30717         * abilist/libBrokenLocale.abilist: Likewise.
30718         * abilist/libanl.abilist: Likewise.
30719         * abilist/libc.abilist: Likewise.
30720         * abilist/libcrypt.abilist: Likewise.
30721         * abilist/libdl.abilist: Likewise.
30722         * abilist/libm.abilist: Likewise.
30723         * abilist/libnsl.abilist: Likewise.
30724         * abilist/libpthread.abilist: Likewise.
30725         * abilist/libresolv.abilist: Likewise.
30726         * abilist/librt.abilist: Likewise.
30727         * abilist/libthread_db.abilist: Likewise.
30728         * abilist/libutil.abilist: Likewise.
30729         * abilist/libnss_db.abilist: New file.
30730
30731         * scripts/abilist.awk: Add support for indirect functions.
30732
30733         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
30734
30735         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
30736
30737         * shlib-versions: Remove entries for ports architectures.
30738
30739         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
30740         files in ports.
30741         * elf/stackguard-macros.h: Remove support for IA-64.
30742         * elf/tst-auditmod1.c: Likewise.
30743         * sysdeps/generic/ldsodefs.h: Likewise.
30744
30745         * sysdeps/unix/sysv/linux/configure.in: Ports should define
30746         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
30747         configure files.
30748
30749         [BZ #13552]
30750         * configure.in: Remove --enable-omitfp support.
30751         * FAQ.in: Adjust.
30752         * config.make.in: Likewise.
30753         * Makeconfig: Likewise.
30754         * manual/install.texi: Likewise.
30755
30756         In case anyone cares, the IA-64 architecture could move to ports.
30757         * sysdeps/ia64/*: Removed.
30758         * sysdeps/unix/sysv/linux/ia64/*: Removed.
30759         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
30760
30761         [BZ #13555]
30762         * configure.in: Remove entries for unsupported architectures.
30763
30764         [BZ #13533]
30765         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
30766         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
30767         routines.
30768         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
30769         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
30770         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
30771         fall back to using wcrtomb.
30772         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
30773         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
30774         renaming.
30775         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
30776         * wcsmbs/tst-c16c32-1.c: New file.
30777
30778         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
30779         local variable.
30780
30781         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
30782
30783         * elf/tst-unique3.cc: Add explicit declaration of gets.
30784         * elf/tst-unique3lib.cc: Likewise.
30785         * elf/tst-unique3lib2.cc: Likewise.
30786         * elf/tst-unique4.cc: Likewise.
30787
30788         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
30789
30790 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
30791
30792         [BZ #13566]
30793         * assert/assert.h (static_assert): Don't define for C++.
30794         * libio/stdio.h (gets): Do declare for C++ <= C++11.
30795         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
30796
30797 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
30798
30799         * iconv/loop.c (single loop): Fix assertion in storing of
30800         remaining bytes.
30801
30802         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
30803
30804 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
30805
30806         * posix/getconf.c: Update copyright year.
30807         * nss/getent.c: Likewise.
30808         * nss/makedb.c: Likewise.
30809         * iconv/iconvconfig.c: Likewise.
30810         * iconv/iconv_prog.c: Likewise.
30811         * elf/ldconfig.c: Likewise.
30812         * elf/pldd.c: Likewise.
30813         * elf/sotruss.ksh: Likewise.
30814         * catgets/gencat.c: Likewise.
30815         * csu/version.c: Likewise.
30816         * elf/ldd.bash.in: Likewise.
30817         * elf/sprof.c (print_version): Likewise.
30818         * locale/programs/locale.c: Likewise.
30819         * locale/programs/localedef.c: Likewise.
30820         * login/programs/pt_chown.c: Likewise.
30821         * nscd/nscd.c (print_version): Likewise.
30822         * debug/xtrace.sh: Likewise.
30823         * malloc/memusage.sh: Likewise.
30824         * malloc/mtrace.pl: Likewise.
30825         * debug/catchsegv.sh: Likewise.
30826
30827 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
30828
30829         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
30830         pure attribute.
30831
30832 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
30833
30834         [BZ #13533]
30835         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
30836         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
30837         transformations.
30838         * iconv/gconv_int.h: Likewise.
30839         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
30840         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
30841         from libc for GLIBC_2.16.
30842         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
30843         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
30844         * wcsmbs/uchar.h: Really define mbstate_t.
30845         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
30846         * wcsmbs/c16rtomb.c: New file.
30847         * wcsmbs/mbrtoc16.c: New file.
30848         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
30849         for C/POSIX locale.
30850         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
30851         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
30852
30853         * wcsmbs/wchar.h: Add missing __restrict.
30854
30855 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
30856
30857         [BZ #13532]
30858         * time/Makefile (routines): Add timespec_get.
30859         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
30860         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
30861         timespec for ISO C11.
30862         * time/timespec_get.c: New file.
30863         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
30864         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
30865
30866         [BZ #13531]
30867         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
30868         * stdlib/stdlib.h: Declare aligned_alloc.
30869         * Versions.def: Add GLIBC_2.16 for libc.
30870         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
30871
30872         [BZ 13527]
30873         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
30874         ISO C11.
30875
30876         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
30877         code.
30878
30879         [BZ #13528]
30880         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
30881
30882         [BZ #13529]
30883         * assert/assert.h (static_assert): Define.
30884
30885         * version.h: Update for 2.16 development version.
30886
30887         [BZ #13526]
30888         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
30889         _ISOC11_SOURCE.
30890
30891         * version.h (RELEASE): Bump for 2.15 release.
30892         * include/features.h (__GLIBC_MINOR__): Bump to 15.
30893
30894         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
30895         Patch by Marek Polacek <mpolacek@redhat.com>.
30896
30897         * bits/byteswap.h: Protect long long constants with __extension__.
30898         * sysdeps/i386/bits/byteswap.h: Likewise.
30899         * sysdeps/ia64/bits/byteswap.h: Likewise.
30900         * sysdeps/s390/bits/byteswap.h: Likewise.
30901         * sysdeps/x86_64/bits/byteswap.h: Likewise.
30902
30903 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30904
30905         [BZ #13540]
30906         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
30907         destination buffer.
30908         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
30909
30910 2011-12-23  Marek Polacek  <polacek@redhat.com>
30911
30912         * elf/dl-addr.c (determine_info): Add inline keyword.
30913         * elf/tst-auditmod4b.c (check_avx): Likewise.
30914         * elf/tst-auditmod6b.c (check_avx): Likewise.
30915         * elf/tst-auditmod6c.c (check_avx): Likewise.
30916         * elf/tst-auditmod7b.c (check_avx): Likewise.
30917
30918 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
30919
30920         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
30921         !__SSE_MATH__.
30922
30923 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30924
30925         [BZ #13540]
30926         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
30927         processing for last bytes.
30928
30929 2011-08-06  Bruno Haible  <bruno@clisp.org>
30930
30931         [BZ #13061]
30932         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
30933         U+0385, not to U+1FEE.
30934
30935         [BZ #13062]
30936         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
30937         entry for U+00A5 U+0301.
30938
30939 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
30940
30941         [BZ #13166]
30942         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
30943         buffer for the output is too small.
30944
30945         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
30946         optimization.
30947
30948         [BZ #13185]
30949         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
30950         SSE flags if possible.
30951
30952 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30953
30954         [BZ #13540]
30955         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
30956         processing for last bytes.
30957
30958 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
30959
30960         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
30961         (syscall-list-default-options, syscall-list-default-condition)
30962         (syscall-list-includes): Define.
30963         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
30964         list of ABIs and options and #if conditions for each ABI.  Do not
30965         handle common syscalls between ABIs specially.
30966         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
30967         Remove.
30968         (syscall-list-variants, syscall-list-32bit-options)
30969         (syscall-list-32bit-condition, syscall-list-64bit-options)
30970         (syscall-list-64bit-condition): Define.
30971         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
30972         (syscall-list-variants, syscall-list-32bit-options)
30973         (syscall-list-32bit-condition, syscall-list-64bit-options)
30974         (syscall-list-64bit-condition): Define.
30975         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
30976         Remove.
30977         (syscall-list-variants, syscall-list-32bit-options)
30978         (syscall-list-32bit-condition, syscall-list-64bit-options)
30979         (syscall-list-64bit-condition): Define.
30980         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
30981         Remove.
30982         (syscall-list-variants, syscall-list-32bit-options)
30983         (syscall-list-32bit-condition, syscall-list-64bit-options)
30984         (syscall-list-64bit-condition): Define.
30985
30986 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
30987
30988         * locale/iso-639.def: Add brx entry.
30989
30990         [BZ #13328]
30991         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
30992         Proposed by Mariusz_Cukr <marcukr@op.pl>.
30993
30994         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
30995         __feraiseexcept_renamed.
30996
30997 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
30998
30999         [BZ #13538]
31000         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
31001         EPOLLET with unsigned values.
31002         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
31003         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
31004
31005         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
31006         to large cancellation.
31007         * math/s_cacoshf.c: Likewise.
31008         * math/s_cacoshl.c: Likewise.
31009
31010 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
31011
31012         [BZ #13305]
31013         [BZ #12786]
31014         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
31015         * math/s_cacoshf.c: Likewise.
31016         * math/s_cacoshl.c: Likewise.
31017
31018 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
31019
31020         [BZ #13439]
31021         * iconv/gconv.h: Define __GCONV_SWAP.
31022         * iconvdata/unicode.c: The swap bit must be stored in __flags.
31023         * iconvdata/utf-16.c: Likewise.
31024         * iconvdata/utf-32.c: Likewise.
31025
31026 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
31027
31028         [BZ #13524]
31029         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
31030         numerator after shifting it by one limb.
31031
31032 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
31033
31034         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
31035         under [__USE_EXTERN_INLINES].
31036
31037 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31038
31039         [BZ #13446]
31040         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
31041
31042 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31043
31044         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
31045         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
31046         optimized code.
31047         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
31048         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
31049         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
31050         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
31051         for strncasecmp/strncasecmp_l compilation.
31052         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
31053         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
31054
31055 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
31056
31057         [BZ #13484]
31058         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
31059         of __asm__.
31060
31061 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
31062
31063         [BZ #13506]
31064         * time/tzfile.c (__tzfile_read): Check values from file header.
31065
31066 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
31067
31068         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
31069         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
31070         * powerpc/powerpc32/dl-start.S: Likewise.
31071         * powerpc/powerpc32/elf/start.S: Likewise.
31072         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
31073         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
31074         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
31075         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
31076         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
31077         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
31078         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
31079         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
31080         * powerpc/powerpc32/fpu/s_round.S: Likewise.
31081         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
31082         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
31083         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
31084         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
31085         * powerpc/powerpc32/memset.S: Likewise.
31086         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
31087         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
31088         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
31089         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
31090         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
31091         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
31092         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
31093         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
31094         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
31095         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
31096         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
31097         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
31098         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
31099
31100 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31101
31102         * math/libm-test.inc: Added more nearbyint tests.
31103         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
31104         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
31105         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
31106         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
31107
31108 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
31109
31110         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
31111         FD_CLOEXEC.
31112
31113 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31114
31115         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
31116         Add wcscpy-ssse3 wcscpy-c.
31117         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
31118         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
31119         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
31120         * sysdeps/x86_64/wcschr.S: New file.
31121         * sysdeps/x86_64/wcsrchr.S: New file.
31122         * string/test-strcmp.c: Remove checking of wcscmp function for
31123         wrong alignments.
31124         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
31125         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
31126         wcsrchr-sse2 wcsrchr-c.
31127         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
31128         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
31129         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
31130         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
31131         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
31132         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
31133         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
31134         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
31135         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
31136         * wcsmbc/wcschr.c (WCSCHR): New macro.
31137
31138 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31139
31140         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
31141         * wcsmbs/test-wcsrchr.c: New file.
31142         * string/test-strrchr.c: Add wcsrchr support.
31143         (WIDE): New macro.
31144         * wcsmbs/test-wcscpy.c: New file.
31145         * string/test-strcpy.c: Add wcscpy support.
31146         (WIDE): New macro.
31147
31148 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
31149
31150         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
31151         the inner loop.
31152
31153 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
31154
31155         [BZ #13472]
31156         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
31157
31158 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
31159
31160         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
31161         Minor optimizations.
31162
31163         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
31164         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
31165         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31166
31167 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
31168
31169         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
31170         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
31171         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
31172         for gcc to avoid warnings.
31173         * inet/Makefile (tests): Add tst-checks.
31174         * inet/tst-checks.c: New file.
31175
31176         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
31177         warning.
31178
31179         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
31180         __wmemcmp_sse2.
31181
31182         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
31183         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
31184
31185         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
31186
31187 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
31188
31189         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
31190         problem.
31191
31192         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
31193
31194 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
31195
31196         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
31197         conditional on GCC version.
31198         (__arch_compare_and_exchange_val_8_acq)
31199         (__arch_compare_and_exchange_val_16_acq)
31200         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
31201         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
31202         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
31203
31204 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
31205
31206         * sysdeps/sh/backtrace.c: New file.
31207
31208 2011-12-02  Andreas Schwab  <schwab@redhat.com>
31209
31210         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
31211         parenthesis.
31212
31213 2011-12-01  Andreas Schwab  <schwab@redhat.com>
31214
31215         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
31216         falling back to utime.
31217
31218 2011-11-30  Andreas Schwab  <schwab@redhat.com>
31219
31220         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
31221         expectations for float.
31222
31223 2011-11-29  Andreas Schwab  <schwab@redhat.com>
31224
31225         * locale/weight.h (findidx): Add parameter len.
31226         * locale/weightwc.h (findidx): Likewise.
31227         * posix/fnmatch_loop.c (FCT): Adjust caller.
31228         * posix/regcomp.c (build_equiv_class): Likewise.
31229         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
31230         * posix/regexec.c (check_node_accept_bytes): Likewise.
31231         * string/strcoll_l.c (STRCOLL): Likewise.
31232         * string/strxfrm_l.c (STRXFRM): Likewise.
31233
31234 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
31235
31236         * Makefile.in: Remove CVSOPT handling.
31237         * configure.in: Remove use of AC_REVISION.
31238         * iconvdata/Makefile (distribute): No need to filter out CVS.
31239         * scripts/list-sources.sh: Remove CVS, subversion and monotone
31240         handling.
31241
31242 2011-11-16  Andreas Schwab  <schwab@redhat.com>
31243
31244         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
31245         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
31246         [USE_AS_STRNCASECMP_L]: Likewise.
31247         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
31248         NO_TLS_DIRECT_SEG_REFS.
31249         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
31250         Fix argument offsets for non-PIC.
31251         [USE_AS_STRNCASECMP_L]: Likewise.
31252         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
31253         NO_TLS_DIRECT_SEG_REFS.
31254
31255 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31256
31257         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
31258         O_CLOEXEC.
31259         * locale/loadlocale.c (_nl_load_locale): Likewise.
31260
31261 2011-11-15  Andreas Schwab  <schwab@redhat.com>
31262
31263         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
31264         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
31265         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
31266         (SYSCALL_GETTIME): Set errno on error.
31267
31268         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
31269         count references to noai6ai_cached.
31270
31271 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
31272
31273         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
31274
31275         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
31276         FD_CLOEXEC for /proc/self/maps.
31277
31278         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
31279         FD_CLOEXEC for /proc/meminfo.
31280
31281         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
31282         gai.conf.
31283
31284         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
31285         FD_CLOEXEC for given file.
31286
31287         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
31288
31289         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
31290         FD_CLOEXEC for /etc/hosts.
31291         (_gethtent): Likewise.
31292
31293         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
31294
31295         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
31296         cancellation and set FD_CLOEXEC for /etc/netgroup.
31297
31298         * nss/nss_files/files-key.c (search): Don't allow cancellation when
31299         reading /etc/publickey.
31300
31301         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
31302         allow cancellation when reading /etc/group.
31303
31304         * nss/nss_files/files-alias.c (internal_setent): Don't allow
31305         cancellation.
31306         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
31307
31308         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
31309         when using data file.
31310
31311         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
31312
31313         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
31314         (write_nis_obj): Use "c" and "e" in fopen.
31315
31316         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
31317
31318         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
31319
31320         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
31321
31322         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
31323
31324         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
31325         locale.alias.
31326
31327         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
31328
31329         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
31330
31331         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
31332
31333         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
31334         file parsing and set FD_CLOEXEC.
31335
31336 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31337
31338         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
31339
31340 2011-11-14  Andreas Schwab  <schwab@redhat.com>
31341
31342         * malloc/arena.c (arena_get2): Don't call reused_arena when
31343         _int_new_arena failed.
31344
31345 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
31346
31347         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
31348         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
31349         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
31350         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31351         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31352         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
31353         to compile strcasecmp and strncasecmp.
31354         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
31355         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
31356
31357         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
31358
31359 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
31360
31361         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
31362         locale-defines.sym to gen-as-const-headers.
31363         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
31364         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
31365         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
31366         to compile strcasecmp and strncasecmp.
31367         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
31368         strcasecmp_l and strncasecmp_l.
31369         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
31370         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
31371         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
31372         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
31373         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
31374         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
31375         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
31376         * sysdeps/i386/i686/multiarch/strncase.S: New file.
31377         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
31378         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
31379         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
31380
31381 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
31382
31383         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
31384         result of SYSDEP_GETTIME_CPU to retval.
31385         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
31386         parameter list to macro.  Remove trailing semicolon.  Adjust users.
31387
31388         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
31389         variable.
31390
31391         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
31392         mantissa words.
31393         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
31394
31395         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
31396         from unused variable.
31397
31398         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
31399         DWARF definitions.
31400         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
31401         for assembling.
31402
31403         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
31404         over namespaces.
31405
31406         * sunrpc/rpc_prot.c (rejected): Fix case value.
31407
31408         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
31409         unsigned long long int to avoid warnings in shift.
31410
31411         * posix/regex_internal.c (re_string_reconstruct): Actually use result
31412         of use of trans.
31413         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
31414         variable tmp.
31415
31416         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
31417         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
31418         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
31419
31420         * nis/nis_table.c (nis_list): Use variable of correct type for
31421         result of __follow_path call.
31422
31423 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31424
31425         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
31426         of math functions ceil, trunc, floor, round, and sqrt, when
31427         avaliable on the platform.
31428         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
31429         name clash.
31430         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
31431         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
31432         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
31433
31434 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
31435
31436         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
31437         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
31438
31439 2011-11-11  Roland McGrath  <roland@hack.frob.com>
31440
31441         * include/unistd.h: Fix __readlink return type.
31442         Reported by Chris Metcalf <cmetcalf@tilera.com>.
31443
31444 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
31445
31446         * stdlib/ucontext.h: Undo last change for makecontext.
31447
31448 2011-11-11  Andreas Schwab  <schwab@redhat.com>
31449
31450         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
31451
31452         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
31453         * setjmp/setjmp.h: Mark functions as non-leaf.
31454         * setjmp/bits/setjmp2.h: Likewise.
31455         * stdlib/ucontext.h: Likewise.
31456
31457 2011-11-10  Andreas Schwab  <schwab@redhat.com>
31458
31459         * malloc/arena.c (_int_new_arena): Don't increment narenas.
31460         (reused_arena): Don't check arena limit.
31461         (arena_get2): Atomically check arena limit.
31462
31463 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
31464
31465         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
31466         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
31467
31468         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
31469         instructions.
31470
31471 2011-11-07  Andreas Schwab  <schwab@redhat.com>
31472
31473         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
31474         handler when locking.
31475
31476         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
31477         Fix size of allocated buffer.
31478
31479 2011-11-04  Andreas Schwab  <schwab@redhat.com>
31480
31481         [BZ #10103]
31482         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
31483         declarations for long double functions.
31484         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
31485
31486         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
31487
31488 2011-11-03  Andreas Schwab  <schwab@redhat.com>
31489
31490         * nscd/nscd.c (main): Don't start AVC thread until credentials are
31491         installed.
31492
31493         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
31494         is disabled.
31495
31496 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31497
31498         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
31499
31500 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
31501
31502         * include/alloca.h (stackinfo_alloca_round): Define.
31503         (extend_alloca): Use it.
31504         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
31505         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
31506         here.
31507
31508         * scripts/check-local-headers.sh: Ignore libaudit.h.
31509
31510         * nscd/Makefile (extra-objs): Make recursively expanded.
31511
31512 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
31513
31514         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
31515         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
31516
31517         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
31518         * posix/tst-rfc3484-2.c: Likewise.
31519         * posix/tst-rfc3484-3.c: Likewise.
31520
31521         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
31522         process_vm_writev.
31523         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
31524         process_vm_writev.
31525         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
31526         process_vm_writev from libc using GLIBC_2.15 version.
31527
31528         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
31529
31530 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
31531
31532         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
31533         stack usage.
31534
31535 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
31536
31537         [BZ #13367]
31538         * nss/getent.c (initgroups_keys): Show error message in case no group
31539         names are given.
31540
31541         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
31542         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
31543         __bump_nl_timestamp.
31544         * nscd/connections (nscd_init): When host database is served open
31545         netlink socket and request notification about configuration changes.
31546         (main_loop_poll): Track netlink file descriptor and bump timestamp
31547         in case data becomes available.
31548         (main_loop_epoll): Likewise.
31549         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
31550         (database_pers_head): Add extra_data fileds.
31551         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
31552         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
31553         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
31554         Adjust caller.
31555         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
31556         in6ai data, call __free_in6ai.
31557         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
31558         Add -DHAVE_NETLINK.
31559         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
31560         interface information.  Reuse previous data if netlink timestamp
31561         is not changed.
31562         (__bump_nl_timestamp): New function.
31563         (__free_in6ai): New function.
31564
31565 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
31566
31567         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
31568         close_not_cancel_no_status here.
31569         (__check_pf): Reorganize code a bit to not call close twice if OOM.
31570
31571 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
31572
31573         [BZ #13276]
31574         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
31575         return value.
31576
31577         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
31578         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
31579         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
31580
31581 2011-07-03  Andreas Jaeger  <aj@suse.de>
31582
31583         [BZ #10709]
31584         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
31585         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
31586         * math/libm-test.inc (sin_test): Add test case.
31587
31588 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
31589
31590         [BZ #13337]
31591         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
31592         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
31593
31594         * elf/chroot_canon.c (chroot_canon): Cleanups.
31595
31596         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
31597
31598         [BZ #13335]
31599         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
31600         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
31601
31602         * string/test-strchr.c: Make usable for strchrnul testing.
31603         * string/test-strchrnul.c: New file.
31604         * string/Makefile (strop-tests): Add strchrnul.
31605
31606         * po/it.po: Update from translation team.
31607         * po/es.po: Likewise.
31608
31609 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
31610
31611         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
31612         the three constants needed as parameters.  Drop the others.
31613         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
31614         __m128i_strloadu_tolower.
31615         Create and initialize variable zero and use it in all the places
31616         where _mm_setzero_si128 was used.
31617
31618         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
31619         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
31620         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
31621         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
31622         anymore.
31623         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
31624         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
31625         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
31626         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
31627         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
31628         __mpranred, __mptan.
31629         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
31630         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
31631         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
31632         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
31633         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
31634         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
31635         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
31636         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
31637         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
31638
31639 2011-10-28  Andreas Schwab  <schwab@redhat.com>
31640
31641         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
31642         redefine if SHARED.
31643         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
31644
31645         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
31646         wide char related routines to wcsmbs subdir.
31647
31648 2011-10-27  Andreas Schwab  <schwab@redhat.com>
31649
31650         [BZ #13344]
31651         * misc/sys/cdefs.h (__THROWNL): Define.
31652         * posix/unistd.h: Use __THREADNL instead of __THREAD
31653         for memory synchronization functions.
31654
31655 2011-10-26  Roland McGrath  <roland@hack.frob.com>
31656
31657         [BZ #13349]
31658         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
31659         doesn't exist.
31660         * manual/stdio.texi (Obstack Streams): Node removed.
31661
31662 2011-10-26  Andreas Schwab  <schwab@redhat.com>
31663
31664         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
31665         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
31666         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
31667
31668         * math/math_private.h (math_force_eval): Allow non-addressable
31669         arguments.
31670         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
31671
31672 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31673
31674         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
31675         file is not needed.
31676
31677         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
31678         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31679         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31680         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31681         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31682         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31683         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31684         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
31685         Add AVX variants.
31686         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
31687         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
31688         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
31689         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
31690         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
31691         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
31692         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
31693         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
31694         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
31695         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
31696         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
31697         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
31698         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
31699         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
31700         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
31701         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
31702         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
31703         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
31704         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
31705
31706         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
31707         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
31708
31709         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
31710         place.  Use VEX encoding when compiling for AVX.
31711
31712 2011-10-25  Andreas Schwab  <schwab@redhat.com>
31713
31714         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
31715         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
31716
31717         * string/test-strchr.c (do_test): Don't generate NUL bytes.
31718
31719 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31720
31721         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
31722         useless if() expression.
31723         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
31724         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
31725         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
31726         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
31727         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
31728         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
31729         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
31730         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
31731         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
31732         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
31733         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
31734         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
31735         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
31736         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
31737         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
31738         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
31739         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
31740         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
31741         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
31742
31743         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
31744
31745 2011-10-25  Andreas Schwab  <schwab@redhat.com>
31746
31747         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
31748         condition.
31749         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31750
31751 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
31752
31753         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
31754         .text section.  Avoid duplicate constants.
31755         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
31756         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31757         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
31758         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31759         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31760         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31761         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31762         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31763         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
31764         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
31765         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
31766         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
31767         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
31768         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
31769         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
31770         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
31771         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
31772         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
31773         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
31774         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31775         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
31776         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
31777         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
31778         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
31779         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
31780         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
31781         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
31782         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
31783         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
31784         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
31785         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
31786         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
31787         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
31788         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
31789         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
31790         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
31791         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
31792         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
31793         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
31794         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
31795         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
31796         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
31797         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
31798         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
31799         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
31800
31801 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
31802
31803         * sysdeps/x86_64/dla.h: Move to ...
31804         * sysdeps/x86_64/fpu/dla.h: ...here.
31805         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
31806         situations.  Use __builtin_fma only for gcc 4.6 and up.
31807
31808         * config.make.in: Add have-mfma4 entry.
31809         * configure.in: Substitute libc_cv_cc_fma4.
31810         * math/Makefile (dbl-only-routines): Add sincostab.
31811         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
31812         Use __sincostab not sincos.
31813         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
31814         name is a macro.
31815         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31816         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31817         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31818         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
31819         using __copysign.
31820         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
31821         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
31822         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
31823         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
31824         and __inv.
31825         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
31826         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
31827         __copysign.
31828         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
31829         define aliases when function name is a macro.
31830         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
31831         sysdeps/ieee754/dbl-64/sincos.tbl.
31832         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
31833         fma4-enabled routines.
31834         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
31835         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
31836         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
31837         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
31838         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
31839         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
31840         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
31841         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
31842         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
31843         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
31844         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
31845         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
31846         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
31847         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
31848         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
31849         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
31850         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
31851         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
31852         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
31853         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
31854         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
31855         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
31856         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
31857         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
31858         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
31859         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
31860         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
31861         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
31862         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
31863         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
31864
31865         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
31866         rename.
31867         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31868         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31869         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31870         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31871         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31872         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31873         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31874         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31875
31876 2011-10-24  Andreas Schwab  <schwab@redhat.com>
31877
31878         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
31879
31880 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31881
31882         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
31883
31884         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
31885         prediction.
31886         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
31887
31888         * string/strnlen.c: Don't define STRNLEN, reverse logic.
31889         Remove unused variable magic_bits.
31890         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
31891
31892         * string/strnlen.c: Define and use STRNLEN macro.
31893         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
31894         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
31895         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
31896         * wcsmbs/wcslen.c: Define and use WCSLEN.
31897         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
31898         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
31899         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
31900         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
31901         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
31902         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
31903         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
31904
31905 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31906
31907         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31908         strnlen-sse2-no-bsf.
31909         Rename strlen-no-bsf to strlen-sse2-no-bsf.
31910         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
31911         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
31912         Add strnlen support.
31913         (USE_AS_STRNLEN): New macro.
31914         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
31915         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
31916         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
31917         * sysdeps/x86_64/wcslen.S: New file.
31918
31919 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
31920
31921         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
31922         XMM-moves are used for copying on small sizes.
31923
31924 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31925
31926         * wcsmbs/Makefile (strop-tests): Add wcschr.
31927         * wcsmbs/test-wcschr.c: New file.
31928         * string/test-strchr.c: Update.
31929         Add wcschr support.
31930         (WIDE): New macro.
31931
31932 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31933
31934         * wcsmbs/Makefile (strop-tests): Add wcslen.
31935         * wcsmbs/test-wcslen.c: New file.
31936         * string/test-strlen.c: Update.
31937         Add wcslen support.
31938         (WIDE): New macro.
31939
31940 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31941
31942         * po/it.po: Update from translation team.
31943
31944 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31945
31946         * sysdeps/x86_64/wcscmp.S: Update.
31947         Fix wrong comparison semantics.
31948         wcscmp shall use signed comparison not unsigned.
31949         Don't use substraction to avoid overflow bug.
31950         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
31951         * wcsmbc/wcscmp.c: Likewise.
31952         * string/test-strcmp.c: Likewise.
31953         Add new tests to check cases with negative values.
31954
31955 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
31956
31957         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
31958         * sysdeps/x86_64/dla.h: ...here.  New file.
31959         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
31960         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31961         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31962         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31963         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31964         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
31965         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31966         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31967         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31968
31969 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
31970
31971         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
31972         __ynl_finite aliases.
31973
31974 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
31975
31976         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31977
31978         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
31979         define DLA_FMA.
31980         [DLA_FMA] (EMULV): Use DLA_FMA.
31981         [DLA_FMA] (MUL12): Use EMULV.
31982         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
31983         that are not needed.
31984         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
31985         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
31986         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
31987         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31988         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
31989         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
31990         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
31991
31992 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
31993
31994         * math/s_nan.c: Undef __nan.
31995         * math/s_nanf.c: Undef __nanf.
31996         * math/s_nanl.c: Undef __nanl.
31997         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
31998         "math_private.h".
31999
32000 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
32001
32002         * math/s_catan.c: Add branch predictions.
32003         * math/s_catanf.c: Likewise.
32004         * math/s_catanh.c: Likewise.
32005         * math/s_catanhf.c: Likewise.
32006         * math/s_catanhl.c: Likewise.
32007         * math/s_catanl.c: Likewise.
32008         * math/s_cexp.c: Likewise.
32009         * math/s_cexpf.c: Likewise.
32010         * math/s_cexpl.c: Likewise.
32011         * math/s_clog.c: Likewise.
32012         * math/s_clog10.c: Likewise.
32013         * math/s_clog10f.c: Likewise.
32014         * math/s_clog10l.c: Likewise.
32015         * math/s_clogf.c: Likewise.
32016         * math/s_clogl.c: Likewise.
32017         * math/s_csqrt.c: Likewise.
32018         * math/s_csqrtf.c: Likewise.
32019         * math/s_csqrtl.c: Likewise.
32020         * math/s_ctanf.c: Likewise.
32021         * math/s_ctanh.c: Likewise.
32022         * math/s_ctanhf.c: Likewise.
32023         * math/s_ctanhl.c: Likewise.
32024         * math/s_ctanl.c: Likewise.
32025
32026         * math/math_private.h: Define __nan, __nanf, __nanl.
32027         * math/s_cacosh.c: Include <math_private.h>.
32028         * math/s_cacoshl.c: Likewise.
32029         * math/s_casinh.c: Likewise.
32030         * math/s_casinhf.c: Likewise.
32031         * math/s_casinhl.c: Likewise.
32032         * math/s_ccos.c: Rely entire on ccosh.
32033         * math/s_ccosf.c: Rely entire on ccoshf.
32034         * math/s_ccosl.c: Rely entirely on ccoshl.
32035         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
32036         Remove tests for FE_INVALID.
32037         * math/s_ccoshf.c: Likewise.
32038         * math/s_ccoshl.c: Likewise.
32039         * math/s_csin.c: Likewise.
32040         * math/s_csinf.c: Likewise.
32041         * math/s_csinh.c Likewise.
32042         * math/s_csinhf.c: Likewise.
32043         * math/s_csinhl.c: Likewise.
32044         * math/s_csinl.c: Likewise.
32045         * math/s_ctan.c: Likewise.
32046         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
32047         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
32048         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
32049
32050 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
32051
32052         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
32053         compilation problems.
32054
32055         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
32056         __builtin_expect.
32057
32058 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
32059
32060         * sysdeps/i386/configure.in: Test for -mfma4 option.
32061         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
32062         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
32063         COMMON_CPUID_INDEX_80000001.
32064         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
32065         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
32066         use it if FMA3 is not supported.
32067         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
32068
32069         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
32070         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
32071
32072 2011-10-20  Andreas Schwab  <schwab@redhat.com>
32073
32074         [BZ #12892]
32075         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
32076         it would create a cycle with a link time dependency.
32077
32078 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
32079
32080         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
32081         instruction.
32082         * string/Makefile (strop-tests): Add rawmemchr.
32083         * string/test-rawmemchr.c: New file.
32084
32085         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
32086         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
32087         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
32088         when compiling str{,n}casecmp and when AVX is available.  Hook up
32089         new optimized code in initializers.
32090
32091 2011-10-19  Andreas Schwab  <schwab@redhat.com>
32092
32093         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
32094         __feraiseexcept instead of feraiseexcept.
32095
32096 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
32097
32098         * math/math_private.h: Define defaults for libc_fetestexcept and
32099         libc_feupdateenv.
32100         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
32101         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
32102         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
32103         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32104         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
32105         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32106         libc_fetestexcept and libc_feupdateenv.
32107
32108         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
32109         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
32110         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
32111         * sysdeps/x86_64/fpu/math_private.h: Define special version of
32112         libc_feholdexcept_setround.
32113
32114         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
32115         Add s_nearbyint-c and s_nearbyintf-c.
32116         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
32117         nearbyintf inlines.
32118         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
32119         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
32120         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
32121         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
32122
32123         * math/math_private.h: Define defaults for libc_fegetround,
32124         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
32125         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
32126         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
32127         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
32128         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
32129         standard functions.
32130         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
32131         Remove comments and hacks for old compiler versions.
32132         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
32133         libc_fegetround, libc_fesetround, libc_feholdexcept, and
32134         libc_feholdexceptl.
32135
32136 2011-10-18  Andreas Schwab  <schwab@redhat.com>
32137
32138         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
32139         (__feraiseexcept_renamed): Add __NTH.
32140         (feraiseexcept): Add __NTH.  Rename local variables to fix
32141         namespace violations.
32142
32143 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
32144
32145         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
32146
32147         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
32148
32149         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
32150         recently added interfaces.
32151         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
32152
32153         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
32154         about macro parameter expansion.
32155
32156         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
32157         __NO_MATH_INLINES is defined.  Cleanups.
32158
32159         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
32160         and __floorf is target has SSE4.1.
32161         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
32162         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
32163         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
32164         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
32165
32166         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
32167         name.
32168         (floorf): Likewise.
32169
32170         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
32171
32172 2011-10-17  Andreas Schwab  <schwab@redhat.com>
32173
32174         * misc/sys/cdefs.h: Fix last change.
32175
32176         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
32177         database lookup.
32178
32179 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
32180
32181         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
32182
32183         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
32184         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
32185         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
32186         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
32187         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
32188         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
32189         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
32190         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
32191         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
32192         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
32193         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
32194         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
32195         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
32196         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
32197         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
32198         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
32199         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
32200         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
32201         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
32202         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
32203         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
32204         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
32205
32206         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
32207         ceil, ceilf, floor, floorf.
32208
32209         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
32210         Perform IRELATIVE relocations last.
32211
32212         * elf/do-rel.h: Add another parameter nrelative, replacing the
32213         local variable with the same name.  Change name of the function
32214         to end in Rel or Rela (uppercase).
32215         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
32216         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
32217         elf_dynamic_do_##reloc function.
32218
32219 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32220
32221         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
32222         is sufficient, at least on modern CPUs.
32223
32224         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
32225
32226         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
32227         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
32228
32229         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
32230         __expl_finite.
32231         * math/bits/math-finite.h: Add entries for exp.
32232         * math/e_expl.c: Add __*_finite alias.
32233         * sysdeps/i386/fpu/e_exp.S: Likewise.
32234         * sysdeps/i386/fpu/e_expf.S: Likewise.
32235         * sysdeps/i386/fpu/e_expl.c: Likewise.
32236         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
32237         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
32238         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
32239         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
32240         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
32241         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
32242         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
32243
32244         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
32245         is sufficient, at least on modern CPUs.
32246
32247         * ctype/ctype-info.c (__ctype_init): Define.
32248         * include/ctype.h (__ctype_init): Declare.
32249         (__ctype_b_loc): The variable is always initialized.
32250         (__ctype_toupper_loc): Likewise.
32251         (__ctype_tolower_loc): Likewise.
32252         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
32253         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
32254
32255 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
32256
32257         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
32258
32259         * configure.in: Also look in $cxxmachine/include for C++ system
32260         headers.
32261
32262 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32263
32264         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
32265         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
32266         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
32267         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
32268         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
32269         (USE_AS_WMEMCMP): New macro.
32270         Fixing indents.
32271         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
32272         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
32273         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
32274         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
32275         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32276         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
32277         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
32278         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
32279         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
32280         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
32281         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
32282         (USE_AS_WMEMCMP): New macro.
32283         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
32284         * sysdeps/string/test-memcmp.c: Update.
32285         Fix simple_wmemcmp.
32286         Add new tests.
32287         * wcsmbs/wmemcmp.c: Update.
32288         (WMEMCMP): New macro.
32289         Fix overflow bug.
32290
32291 2011-10-12  Andreas Jaeger  <aj@suse.de>
32292
32293         [BZ #13268]
32294         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
32295
32296 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
32297
32298         * libio/iofwide.c (do_length): Avoid warning.
32299
32300         * ctype/ctype.h (__isctype_f): Add missing __THROW.
32301
32302 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
32303
32304         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
32305
32306         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
32307         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
32308         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
32309         * sysdeps/i386/i686/fpu/e_log.S: New file.
32310         * sysdeps/i386/i686/fpu/e_logf.S: New file.
32311         * sysdeps/i386/i686/fpu/e_logl.S: New file.
32312
32313         * ctype/ctype.h: Add support for inlined isXXX functions when
32314         compiling C++ code.
32315
32316 2011-10-14  Andreas Schwab  <schwab@redhat.com>
32317
32318         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32319
32320         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
32321
32322 2011-10-13  Roland McGrath  <roland@hack.frob.com>
32323
32324         [BZ #13291]
32325         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
32326
32327 2011-10-13  Andreas Schwab  <schwab@redhat.com>
32328
32329         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
32330         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
32331         feraiseexcept.
32332
32333         * sysdeps/x86_64/memrchr.S: Check for zero size.
32334
32335         * string/stratcliff.c: Add memrchr tests.
32336
32337 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32338
32339         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32340         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
32341         rawmemchr-sse2 rawmemchr-sse2-bsf.
32342         * sysdeps/i386/i686/multiarch/memchr.S: New file.
32343         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
32344         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
32345         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
32346         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
32347         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
32348         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
32349         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
32350         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
32351         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
32352         * string/memrchr.c (MEMRCHR): New macro.
32353
32354 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
32355
32356         Add integration with gcc's -ffinite-math-only and optimize wrapper
32357         functions in libm.
32358         * Versions.def: Define GLIBC_2.15 version for libm.
32359         * math/Makefile (headers): Add bits/math-finite.h.
32360         * math/bits/math-finite.h: New file.
32361         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
32362         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
32363         * math/e_acoshl.c: Add __*_finite alias.
32364         * math/e_acosl.c: Likewise.
32365         * math/e_asinl.c: Likewise.
32366         * math/e_atan2l.c: Likewise.
32367         * math/e_atanhl.c: Likewise.
32368         * math/e_coshl.c: Likewise.
32369         * math/e_exp10.c: Likewise.
32370         * math/e_exp10f.c: Likewise.
32371         * math/e_exp10l.c: Likewise.
32372         * math/e_exp2l.c: Likewise.
32373         * math/e_fmodl.c: Likewise.
32374         * math/e_gammal_r.c: Likewise.
32375         * math/e_hypotl.c: Likewise.
32376         * math/e_j0l.c: Likewise.
32377         * math/e_j1l.c: Likewise.
32378         * math/e_jnl.c: Likewise.
32379         * math/e_lgammal_r.c: Likewise.
32380         * math/e_log10l.c: Likewise.
32381         * math/e_log2l.c: Likewise.
32382         * math/e_logl.c: Likewise.
32383         * math/e_powl.c: Likewise.
32384         * math/e_sinhl.c: Likewise.
32385         * math/e_sqrtl.c: Likewise.
32386         * math/e_scalb.c: Completely rewritten and optimized.
32387         * math/e_scalbf.c: Likewise.
32388         * math/e_scalbl.c: Likewise.
32389         * math/w_acos.c: Likewise.
32390         * math/w_acosf.c: Likewise.
32391         * math/w_acosl.c: Likewise.
32392         * math/w_acosh.c: Likewise.
32393         * math/w_acoshf.c: Likewise.
32394         * math/w_acoshl.c: Likewise.
32395         * math/w_asin.c: Likewise.
32396         * math/w_asinf.c: Likewise.
32397         * math/w_asinl.c: Likewise.
32398         * math/w_atan2.c: Likewise.
32399         * math/w_atan2f.c: Likewise.
32400         * math/w_atan2l.c: Likewise.
32401         * math/w_atanh.c: Likewise.
32402         * math/w_atanhf.c: Likewise.
32403         * math/w_atanhl.c: Likewise.
32404         * math/w_exp10.c: Likewise.
32405         * math/w_exp10f.c: Likewise.
32406         * math/w_exp10l.c: Likewise.
32407         * math/w_fmod.c: Likewise.
32408         * math/w_fmodf.c: Likewise.
32409         * math/w_fmodl.c: Likewise.
32410         * math/w_j0.c: Likewise.
32411         * math/w_j0f.c: Likewise.
32412         * math/w_j0l.c: Likewise.
32413         * math/w_j1.c: Likewise.
32414         * math/w_j1f.c: Likewise.
32415         * math/w_j1l.c: Likewise.
32416         * math/w_jn.c: Likewise.
32417         * math/w_jnf.c: Likewise.
32418         * math/w_log.c: Likewise.
32419         * math/w_logf.c: Likewise.
32420         * math/w_logl.c: Likewise.
32421         * math/w_log10.c: Likewise.
32422         * math/w_log10f.c: Likewise.
32423         * math/w_log10l.c: Likewise.
32424         * math/w_log2.c: Likewise.
32425         * math/w_log2f.c: Likewise.
32426         * math/w_log2l.c: Likewise.
32427         * math/w_pow.c: Likewise.
32428         * math/w_powf.c: Likewise.
32429         * math/w_powl.c: Likewise.
32430         * math/w_remainder.c: Likewise.
32431         * math/w_remainderf.c: Likewise.
32432         * math/w_remainderl.c: Likewise.
32433         * math/w_scalb.c: Likewise.
32434         * math/w_scalbf.c: Likewise.
32435         * math/w_scalbl.c: Likewise.
32436         * math/w_sqrt.c: Likewise.
32437         * math/w_sqrtf.c: Likewise.
32438         * math/w_sqrtl.c: Likewise.
32439         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
32440         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
32441         used.
32442         * math/math_private.h: Declare __kernel_standard_f.
32443         * math/w_cosh.c: Remove cruft and optimize a bit.
32444         * math/w_coshf.c: Likewise.
32445         * math/w_coshl.c: Likewise.
32446         * math/w_exp2.c: Likewise.
32447         * math/w_exp2f.c: Likewise.
32448         * math/w_exp2l.c: Likewise.
32449         * math/w_hypot.c: Likewise.
32450         * math/w_hypotf.c: Likewise.
32451         * math/w_hypotl.c: Likewise.
32452         * math/w_lgamma.c: Likewise.
32453         * math/w_lgamma_r.c: Likewise.
32454         * math/w_lgammaf.c: Likewise.
32455         * math/w_lgammaf_r.c: Likewise.
32456         * math/w_lgammal.c: Likewise.
32457         * math/w_lgammal_r.c: Likewise.
32458         * math/w_sinh.c: Likewise.
32459         * math/w_sinhf.c: Likewise.
32460         * math/w_sinhl.c: Likewise.
32461         * math/w_tgamma.c: Likewise.
32462         * math/w_tgammaf.c: Likewise.
32463         * math/w_tgammal.c: Likewise.
32464         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
32465         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
32466         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
32467         Minor optimizations.  Pretty printing.  Remove cruft.
32468         * sysdeps/i386/fpu/e_acosf.S: Likewise.
32469         * sysdeps/i386/fpu/e_acosh.S: Likewise.
32470         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
32471         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
32472         * sysdeps/i386/fpu/e_acosl.c: Likewise.
32473         * sysdeps/i386/fpu/e_asin.S: Likewise.
32474         * sysdeps/i386/fpu/e_asinf.S: Likewise.
32475         * sysdeps/i386/fpu/e_atan2.S: Likewise.
32476         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
32477         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
32478         * sysdeps/i386/fpu/e_atanh.S: Likewise.
32479         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
32480         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
32481         * sysdeps/i386/fpu/e_exp10.S: Likewise.
32482         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
32483         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
32484         * sysdeps/i386/fpu/e_exp2.S: Likewise.
32485         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
32486         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
32487         * sysdeps/i386/fpu/e_fmod.S: Likewise.
32488         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
32489         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
32490         * sysdeps/i386/fpu/e_hypot.S: Likewise.
32491         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
32492         * sysdeps/i386/fpu/e_log.S: Likewise.
32493         * sysdeps/i386/fpu/e_log10.S: Likewise.
32494         * sysdeps/i386/fpu/e_log10f.S: Likewise.
32495         * sysdeps/i386/fpu/e_log10l.S: Likewise.
32496         * sysdeps/i386/fpu/e_log2.S: Likewise.
32497         * sysdeps/i386/fpu/e_log2f.S: Likewise.
32498         * sysdeps/i386/fpu/e_log2l.S: Likewise.
32499         * sysdeps/i386/fpu/e_logf.S: Likewise.
32500         * sysdeps/i386/fpu/e_logl.S: Likewise.
32501         * sysdeps/i386/fpu/e_pow.S: Likewise.
32502         * sysdeps/i386/fpu/e_powf.S: Likewise.
32503         * sysdeps/i386/fpu/e_powl.S: Likewise.
32504         * sysdeps/i386/fpu/e_remainder.S: Likewise.
32505         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
32506         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
32507         * sysdeps/i386/fpu/e_scalb.S: Likewise.
32508         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
32509         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
32510         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
32511         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
32512         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
32513         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
32514         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
32515         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
32516         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
32517         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
32518         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
32519         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
32520         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
32521         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
32522         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
32523         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
32524         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
32525         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
32526         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
32527         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
32528         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
32529         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
32530         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
32531         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
32532         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
32533         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
32534         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
32535         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
32536         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
32537         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
32538         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
32539         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
32540         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
32541         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
32542         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
32543         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
32544         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
32545         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
32546         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
32547         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
32548         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
32549         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
32550         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
32551         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
32552         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
32553         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
32554         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
32555         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
32556         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
32557         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
32558         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
32559         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
32560         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
32561         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
32562         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
32563         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
32564         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
32565         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
32566         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
32567         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
32568         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
32569         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
32570         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
32571         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
32572         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
32573         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
32574         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
32575         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
32576         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
32577         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
32578         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
32579         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
32580         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
32581         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
32582         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
32583         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
32584         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
32585         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
32586         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
32587         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
32588         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
32589         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
32590         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
32591         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
32592         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
32593         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
32594         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
32595         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
32596         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
32597         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
32598         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
32599         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
32600         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
32601         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
32602         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
32603         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
32604         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
32605         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
32606         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
32607         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
32608         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
32609         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
32610         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
32611         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
32612         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
32613         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
32614         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
32615         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
32616         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
32617         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
32618         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
32619         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
32620         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
32621         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
32622         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
32623         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
32624         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
32625         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
32626         (__isnanf): Likewise.
32627         (__isinf_ns): Likewise.
32628         (__isinf_nsf): Likewise.
32629         (__finite): Likewise.
32630         (__finitef): Likewise.
32631         (__ieee754_sqrt): Define as macro.
32632         (__ieee754_sqrtf): Define as macro.
32633         (__ieee754_sqrtl): Define as macro.
32634         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
32635         inlined copy.
32636         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
32637         __FINITE_MATH_ONLY__ consistent.
32638         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
32639
32640 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
32641
32642         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
32643         of rawmemchr.
32644
32645         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
32646
32647 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
32648
32649         * po/ja.po: Update from translation team.
32650
32651 2011-10-08  Roland McGrath  <roland@hack.frob.com>
32652
32653         * locale/programs/locarchive.c (prepare_address_space): New function.
32654         (create_archive, enlarge_archive, open_archive): Use it.
32655
32656         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
32657         inside [SHARED], where it is used.
32658
32659         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
32660
32661         * nss/getent.c (netgroup_keys): Remove unused variable.
32662         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
32663
32664 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
32665
32666         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
32667         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
32668         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
32669         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
32670         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
32671         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
32672         * math/Makefile (libm-calls): Add s_isinf_ns.
32673         * math/divtc3.c: Use __isinf_nsl instead of isinf.
32674         * math/multc3.c: Likewise.
32675         * math/s_casin.c: Likewise.
32676         * math/s_casinf.c: Likewise.
32677         * math/s_casinl.c: Likewise.
32678         * math/s_ccos.c: Likewise.
32679         * math/s_ccosf.c: Likewise.
32680         * math/s_ccosl.c: Likewise.
32681         * math/s_ctan.c: Likewise.
32682         * math/s_ctanf.c: Likewise.
32683         * math/s_ctanh.c: Likewise.
32684         * math/s_ctanhf.c: Likewise.
32685         * math/s_ctanhl.c: Likewise.
32686         * math/s_ctanl.c: Likewise.
32687         * math/w_fmod.c: Likewise.
32688         * math/w_fmodf.c: Likewise.
32689         * math/w_fmodl.c: Likewise.
32690         * math/w_remainder.c: Likewise.
32691         * math/w_remainderf.c: Likewise.
32692         * math/w_remainderl.c: Likewise.
32693         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
32694         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
32695         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
32696         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
32697         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
32698         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
32699         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
32700         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
32701
32702         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
32703         of the number.
32704         * stdio-common/printf_fphex.c: Likewise.
32705         * stdio-common/printf_size.c: Likewise.
32706
32707         * math/e_exp10.c: Include math_private.h using <...> not "...".
32708         * math/e_exp10f.c: Likewise.
32709         * math/e_exp10l.c: Likewise.
32710         * math/e_exp2l.c: Likewise.
32711         * math/e_j0l.c: Likewise.
32712         * math/e_j1l.c: Likewise.
32713         * math/e_jnl.c: Likewise.
32714         * math/e_lgammal_r.c: Likewise.
32715         * math/e_rem_pio2l.c: Likewise.
32716         * math/e_scalb.c: Likewise.
32717         * math/e_scalbf.c: Likewise.
32718         * math/e_scalbl.c: Likewise.
32719         * math/k_cosl.c: Likewise.
32720         * math/k_sinl.c: Likewise.
32721         * math/k_tanl.c: Likewise.
32722         * math/s_cacoshf.c: Likewise.
32723         * math/s_catan.c: Likewise.
32724         * math/s_catanf.c: Likewise.
32725         * math/s_catanh.c: Likewise.
32726         * math/s_catanhf.c: Likewise.
32727         * math/s_catanhl.c: Likewise.
32728         * math/s_catanl.c: Likewise.
32729         * math/s_ccosh.c: Likewise.
32730         * math/s_ccoshf.c: Likewise.
32731         * math/s_ccoshl.c: Likewise.
32732         * math/s_cexp.c: Likewise.
32733         * math/s_cexpf.c: Likewise.
32734         * math/s_cexpl.c: Likewise.
32735         * math/s_clog.c: Likewise.
32736         * math/s_clog10.c: Likewise.
32737         * math/s_clog10f.c: Likewise.
32738         * math/s_clog10l.c: Likewise.
32739         * math/s_clogf.c: Likewise.
32740         * math/s_clogl.c: Likewise.
32741         * math/s_csin.c: Likewise.
32742         * math/s_csinf.c: Likewise.
32743         * math/s_csinh.c: Likewise.
32744         * math/s_csinhf.c: Likewise.
32745         * math/s_csinhl.c: Likewise.
32746         * math/s_csinl.c: Likewise.
32747         * math/s_csqrt.c: Likewise.
32748         * math/s_csqrtf.c: Likewise.
32749         * math/s_csqrtl.c: Likewise.
32750         * math/s_ctan.c: Likewise.
32751         * math/s_ctanf.c: Likewise.
32752         * math/s_ctanh.c: Likewise.
32753         * math/s_ctanhf.c: Likewise.
32754         * math/s_ctanhl.c: Likewise.
32755         * math/s_ctanl.c: Likewise.
32756         * math/s_ldexp.c: Likewise.
32757         * math/s_ldexpf.c: Likewise.
32758         * math/s_ldexpl.c: Likewise.
32759         * math/s_significand.c: Likewise.
32760         * math/s_significandf.c: Likewise.
32761         * math/s_significandl.c: Likewise.
32762         * math/w_acos.c: Likewise.
32763         * math/w_acosf.c: Likewise.
32764         * math/w_acosh.c: Likewise.
32765         * math/w_acoshf.c: Likewise.
32766         * math/w_acoshl.c: Likewise.
32767         * math/w_acosl.c: Likewise.
32768         * math/w_asin.c: Likewise.
32769         * math/w_asinf.c: Likewise.
32770         * math/w_asinl.c: Likewise.
32771         * math/w_atan2.c: Likewise.
32772         * math/w_atan2f.c: Likewise.
32773         * math/w_atan2l.c: Likewise.
32774         * math/w_atanh.c: Likewise.
32775         * math/w_atanhf.c: Likewise.
32776         * math/w_atanhl.c: Likewise.
32777         * math/w_cosh.c: Likewise.
32778         * math/w_coshf.c: Likewise.
32779         * math/w_coshl.c: Likewise.
32780         * math/w_dremf.c: Likewise.
32781         * math/w_exp10.c: Likewise.
32782         * math/w_exp10f.c: Likewise.
32783         * math/w_exp10l.c: Likewise.
32784         * math/w_exp2.c: Likewise.
32785         * math/w_exp2f.c: Likewise.
32786         * math/w_fmod.c: Likewise.
32787         * math/w_fmodf.c: Likewise.
32788         * math/w_fmodl.c: Likewise.
32789         * math/w_hypot.c: Likewise.
32790         * math/w_hypotf.c: Likewise.
32791         * math/w_hypotl.c: Likewise.
32792         * math/w_j0.c: Likewise.
32793         * math/w_j0f.c: Likewise.
32794         * math/w_j0l.c: Likewise.
32795         * math/w_j1.c: Likewise.
32796         * math/w_j1f.c: Likewise.
32797         * math/w_j1l.c: Likewise.
32798         * math/w_jn.c: Likewise.
32799         * math/w_jnf.c: Likewise.
32800         * math/w_jnl.c: Likewise.
32801         * math/w_lgamma.c: Likewise.
32802         * math/w_lgamma_r.c: Likewise.
32803         * math/w_lgammaf.c: Likewise.
32804         * math/w_lgammaf_r.c: Likewise.
32805         * math/w_lgammal.c: Likewise.
32806         * math/w_lgammal_r.c: Likewise.
32807         * math/w_log.c: Likewise.
32808         * math/w_log10.c: Likewise.
32809         * math/w_log10f.c: Likewise.
32810         * math/w_log10l.c: Likewise.
32811         * math/w_log2.c: Likewise.
32812         * math/w_log2f.c: Likewise.
32813         * math/w_log2l.c: Likewise.
32814         * math/w_logf.c: Likewise.
32815         * math/w_logl.c: Likewise.
32816         * math/w_pow.c: Likewise.
32817         * math/w_powf.c: Likewise.
32818         * math/w_powl.c: Likewise.
32819         * math/w_remainder.c: Likewise.
32820         * math/w_remainderf.c: Likewise.
32821         * math/w_remainderl.c: Likewise.
32822         * math/w_scalb.c: Likewise.
32823         * math/w_scalbf.c: Likewise.
32824         * math/w_scalbl.c: Likewise.
32825         * math/w_sinh.c: Likewise.
32826         * math/w_sinhf.c: Likewise.
32827         * math/w_sinhl.c: Likewise.
32828         * math/w_sqrt.c: Likewise.
32829         * math/w_sqrtf.c: Likewise.
32830         * math/w_sqrtl.c: Likewise.
32831         * math/w_tgamma.c: Likewise.
32832         * math/w_tgammaf.c: Likewise.
32833         * math/w_tgammal.c: Likewise.
32834
32835         * po/ja.po: Update from translation team.
32836
32837 2011-09-29  Andreas Jaeger  <aj@suse.de>
32838
32839         [BZ #13179]
32840         * sunrpc/netname.c (netname2host): Fix logic.
32841
32842         [BZ #6779]
32843         [BZ #6783]
32844         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
32845         correctly.
32846         * math/w_remainder.c (__remainder): Likewise.
32847         * math/w_remainderf.c (__remainderf): Likewise.
32848         * math/libm-test.inc (remainder_test): Add test cases.
32849
32850 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32851
32852         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
32853         sdiv_qrnnd.
32854
32855 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
32856
32857         * string/test-memcmp.c: Avoid unncessary #defines.
32858         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
32859
32860 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32861
32862         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
32863         Use new sse2 version for core i3 - i7 as it's faster
32864         than sse42 version.
32865         (bit_Prefer_PMINUB_for_stringop): New.
32866         * sysdeps/x86_64/rawmemchr.S: Update.
32867         Replace with faster SSE2 version.
32868         * sysdeps/x86_64/memrchr.S: New file.
32869         * sysdeps/x86_64/memchr.S: Update.
32870         Replace with faster SSE2 version.
32871
32872 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
32873
32874         * elf/dl-load.c (lose): Add cast to avoid warning.
32875
32876 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
32877
32878         * po/ca.po: Update from translation team.
32879
32880         * inet/getnetgrent_r.c: Hook up nscd.
32881         * nscd/Makefile (routines): Add nscd_netgroup.
32882         (nscd-modules): Add netgroupcache.
32883         (CFLAGS-netgroupcache.c): Define.
32884         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
32885         (cache_search): Add const to second parameter.
32886         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
32887         INNETGR.
32888         (dbs): Add netgrdb entry.
32889         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
32890         (verify_persistent_db): Handle netgrdb.
32891         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
32892         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
32893         GETFDNETGR.
32894         (netgroup_response_header): Define.
32895         (innetgroup_response_header): Define.
32896         (datahead): Add netgroup_response_header and innetgroup_response_header
32897         elements.
32898         * nscd/nscd.conf: Add entries for netgroup cache.
32899         * nscd/nscd.h (dbtype): Add netgrdb.
32900         (_PATH_NSCD_NETGROUP_DB): Define.
32901         (netgroup_iov_disabled): Declare.
32902         (xmalloc, xcalloc, xrealloc): Move declarations here.
32903         (cache_search): Adjust prototype.
32904         Add netgroup-related prototypes.
32905         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
32906         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
32907         (__nscd_innetgr): Declare.
32908         * nscd/selinux.c (perms): Use access_vector_t as element type and
32909         add netgroup-related initializers.
32910         * nscd/netgroupcache.c: New file.
32911         * nscd/nscd_netgroup.c: New file.
32912         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
32913         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
32914         For four parameters use innetgr.
32915         * nss/nss_files/files-init.c: Add definition and callback for netgr.
32916         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
32917         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
32918         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
32919
32920         * nscd/connections.c (register_traced_file): Don't register file
32921         for disabled databases.
32922
32923 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
32924
32925         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
32926
32927         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
32928         from tree and freeing node.
32929
32930 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
32931
32932         * nss/nsswitch.c (__nss_database_lookup): Handle
32933         nss_parse_service_list out of memory case.
32934
32935 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
32936
32937         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
32938         out of memory case.
32939
32940 2011-10-04  Andreas Schwab  <schwab@redhat.com>
32941
32942         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
32943         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
32944         pass it down.
32945         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
32946         elf_machine_rela, elf_machine_lazy_rel.
32947         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
32948         (ELF_DYNAMIC_DO_REL): Likewise.
32949         (ELF_DYNAMIC_DO_RELA): Likewise.
32950         (ELF_DYNAMIC_RELOCATE): Likewise.
32951         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
32952         to ELF_DYNAMIC_DO_REL.
32953         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
32954         (dl_main): In trace mode always set __RTLD_NOIFUNC.
32955         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
32956         elf_machine_rela.
32957         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
32958         skip_ifunc, don't call ifunc function if non-zero.
32959         (elf_machine_rela): Likewise.
32960         (elf_machine_lazy_rel): Likewise.
32961         (elf_machine_lazy_rela): Likewise.
32962         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
32963         (elf_machine_lazy_rel): Likewise.
32964         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
32965         Likewise.
32966         (elf_machine_lazy_rel): Likewise.
32967         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
32968         Likewise.
32969         (elf_machine_lazy_rel): Likewise.
32970         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
32971         (elf_machine_lazy_rel): Likewise.
32972         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
32973         (elf_machine_lazy_rel): Likewise.
32974         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
32975         (elf_machine_lazy_rel): Likewise.
32976         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
32977         (elf_machine_lazy_rel): Likewise.
32978         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
32979         (elf_machine_lazy_rel): Likewise.
32980         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
32981         (elf_machine_lazy_rel): Likewise.
32982
32983 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
32984
32985         * nss/nss_files/files-init.c (_nss_files_init): Use static
32986         initialization for all the *_traced_file variables.
32987
32988 2011-09-28  Andreas Schwab  <schwab@redhat.com>
32989
32990         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
32991
32992 2011-09-27  Roland McGrath  <roland@hack.frob.com>
32993
32994         [BZ #13226]
32995         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
32996
32997 2011-09-27  Andreas Schwab  <schwab@redhat.com>
32998
32999         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
33000         Reread the line before reparsing it.
33001
33002 2011-09-26  Andreas Schwab  <schwab@redhat.com>
33003
33004         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
33005
33006 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
33007             Maxim Kuvyrkov  <maxim@codesourcery.com>
33008             Joseph Myers  <joseph@codesourcery.com>
33009
33010         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
33011         if needed for __stack_chk_guard.
33012
33013 2011-09-19  Roland McGrath  <roland@hack.frob.com>
33014
33015         * sysdeps/posix/spawni.c (script_execute): Always define it.
33016         It will be optimized away if unused.
33017         (maybe_script_execute): New function.
33018         (__spawni): Call it.
33019
33020         * Makerules: Don't include tls.make.
33021         (config-tls): Always set to thread.
33022         * tls.make.c: File removed.
33023
33024 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
33025
33026         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
33027         * config.make.in (CPPFLAGS-config): New substituted variable.
33028
33029 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33030
33031         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
33032
33033         [BZ #13192]
33034         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
33035         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
33036
33037 2011-09-15  Roland McGrath  <roland@hack.frob.com>
33038
33039         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
33040         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
33041         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33042         (CALL_FAIL): Likewise.
33043         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
33044         (CALL_FAIL): Macro removed.
33045         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
33046
33047 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
33048
33049         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
33050         for __FINITE_MATH_ONLY__ == 1.
33051
33052 2011-09-15  Andreas Schwab  <schwab@redhat.com>
33053
33054         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
33055         __ieee754_sqrt instead of sqrt.
33056         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
33057         __ieee754_sqrtf instead of sqrtf.
33058         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
33059         __floorf instead of floorf.
33060         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
33061         __floorf, __truncf instead of floorf, truncf.
33062
33063 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
33064
33065         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
33066
33067         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
33068         __extern_always_inline.
33069         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
33070         32-bit.
33071
33072 2011-09-14  Andreas Schwab  <schwab@redhat.com>
33073
33074         * elf/rtld.c (dl_main): Also relocate in dependency order when
33075         doing symbol dependency testing.
33076
33077 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
33078
33079         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33080         Always define `refsym'.
33081
33082 2011-09-13  Andreas Schwab  <schwab@redhat.com>
33083
33084         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
33085         (__FD_ELT): Renamed from __FDELT.
33086         * misc/bits/select2.h (__FD_ELT): Likewise.
33087         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
33088         __FD_MASK instead of __FDELT, __FDMASK.
33089         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33090         Likewise.
33091         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
33092         Likewise.
33093
33094         * elf/Makefile (gen-ldd): Fix pattern.
33095
33096         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
33097         (init_tls): Likewise.
33098
33099 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
33100
33101         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
33102
33103 2011-09-12  Andreas Schwab  <schwab@redhat.com>
33104
33105         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
33106         `struct cmsghdr *' instead of `void *'.
33107         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
33108         Likewise.
33109
33110 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
33111
33112         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
33113         if non-absolute.
33114         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
33115         ldd_rewrite_script.
33116
33117 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
33118
33119         * configure.in: Remove --with-tls option.
33120         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
33121         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
33122         out in case it is missing.
33123         * sysdeps/ia64/elf/configure.in: Likewise.
33124         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
33125         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
33126         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
33127         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
33128         * sysdeps/sh/elf/configure.in: Likewise.
33129         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
33130         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
33131         * sysdeps/x86_64/elf/configure.in: Likewise.
33132         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
33133         * sysdeps/mach/hurd/tls.h: Likewise.
33134
33135         [BZ #13067]
33136         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
33137
33138         [BZ #13090]
33139         * configure.in: Fix use of AC_INIT.
33140
33141         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
33142
33143 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
33144
33145         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
33146         __set_errno.
33147         * malloc/hooks.c: Likewise.
33148
33149         [BZ #11929]
33150         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
33151         variables statically.
33152         (narenas): Initialize.
33153         (list_lock): Initialize.
33154         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
33155         initializtion of main_arena and list_lock.  Small cleanups.
33156         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
33157         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
33158         Add initializers to main_arena and mp_.
33159         (malloc_state): Remove pagesize member.  Change all users to use
33160         GLRO(dl_pagesize).
33161
33162         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
33163         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
33164         is always initialized.
33165
33166         * malloc/malloc.c: Removed unused configurations and dead code.
33167         * malloc/arena.c: Likewise.
33168         * malloc/hooks.c: Likewise.
33169         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
33170
33171         * include/tls.h: Removed.  USE___THREAD must always be defined.
33172         * bits/libc-tsd.h: Don't handle !USE___THREAD.
33173         * elf/dl-libc.c: Likewise.
33174         * elf/dl-tsd.c: Likewise.
33175         * include/errno.h: Likewise.
33176         * include/netdb.h: Likewise.
33177         * include/resolv.h: Likewise.
33178         * inet/herrno-loc.c: Likewise.
33179         * inet/herrno.c: Likewise.
33180         * malloc/arena.c: Likewise.
33181         * malloc/hooks.c: Likewise.
33182         * malloc/malloc.c: Likewise.
33183         * resolv/res-state.c: Likewise.
33184         * resolv/res_libc.c: Likewise.
33185         * sysdeps/i386/dl-machine.h: Likewise.
33186         * sysdeps/ia64/dl-machine.h: Likewise.
33187         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
33188         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
33189         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
33190         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
33191         * sysdeps/sh/dl-machine.h: Likewise.
33192         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
33193         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
33194         * sysdeps/unix/i386/sysdep.S: Likewise.
33195         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
33196         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
33197         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
33198         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
33199         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
33200         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
33201         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
33202         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
33203         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
33204         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
33205         * sysdeps/unix/x86_64/sysdep.S: Likewise.
33206         * sysdeps/x86_64/dl-machine.h: Likewise.
33207         * tls.make.c: Likewise.
33208
33209         * configure.in: Remove --with-__thread option.  Make tests for
33210         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
33211         tls_model attribute fail if no support is available.  Remove
33212         USE_IN_LIBIO.
33213         * Makeconfig: Adjust for dropped configure option.  All features are
33214         now mandatory.
33215         * Makerules: Likewise.
33216         * Versions.def: Likewise.
33217         * argp/argp-fmtstream.c: Likewise.
33218         * argp/argp-fmtstream.h: Likewise.
33219         * argp/argp-help.c: Likewise.
33220         * assert/assert.c: Likewise.
33221         * config.h.in: Likewise.
33222         * config.make.in: Likewise.
33223         * configure: Likewise.
33224         * configure.in: Likewise.
33225         * csu/Versions: Likewise.
33226         * csu/init.c: Likewise.
33227         * elf/tst-audit2.c: Likewise.
33228         * elf/tst-tls10.c: Likewise.
33229         * elf/tst-tls10.h: Likewise.
33230         * elf/tst-tls11.c: Likewise.
33231         * elf/tst-tls12.c: Likewise.
33232         * elf/tst-tls14.c: Likewise.
33233         * elf/tst-tlsmod11.c: Likewise.
33234         * elf/tst-tlsmod12.c: Likewise.
33235         * elf/tst-tlsmod13.c: Likewise.
33236         * elf/tst-tlsmod13a.c: Likewise.
33237         * elf/tst-tlsmod14a.c: Likewise.
33238         * elf/tst-tlsmod15b.c: Likewise.
33239         * elf/tst-tlsmod16a.c: Likewise.
33240         * elf/tst-tlsmod16b.c: Likewise.
33241         * elf/tst-tlsmod7.c: Likewise.
33242         * elf/tst-tlsmod8.c: Likewise.
33243         * elf/tst-tlsmod9.c: Likewise.
33244         * gmon/gmon.c: Likewise.
33245         * grp/fgetgrent_r.c: Likewise.
33246         * grp/putgrent.c: Likewise.
33247         * hurd/fopenport.c: Likewise.
33248         * include/libc-symbols.h: Likewise.
33249         * include/tls.h: Likewise.
33250         * intl/gettextP.h: Likewise.
33251         * intl/loadinfo.h: Likewise.
33252         * locale/global-locale.c: Likewise.
33253         * locale/localeinfo.h: Likewise.
33254         * mach/devstream.c: Likewise.
33255         * malloc/arena.c: Likewise.
33256         * malloc/set-freeres.c: Likewise.
33257         * misc/err.c: Likewise.
33258         * misc/getttyent.c: Likewise.
33259         * misc/mntent_r.c: Likewise.
33260         * posix/getopt.c: Likewise.
33261         * posix/wordexp.c: Likewise.
33262         * pwd/fgetpwent_r.c: Likewise.
33263         * resolv/Versions: Likewise.
33264         * resolv/res_hconf.c: Likewise.
33265         * shadow/fgetspent_r.c: Likewise.
33266         * shadow/putspent.c: Likewise.
33267         * stdio-common/printf_fphex.c: Likewise.
33268         * stdio-common/tmpfile.c: Likewise.
33269         * stdlib/abort.c: Likewise.
33270         * stdlib/fmtmsg.c: Likewise.
33271         * sunrpc/auth_unix.c: Likewise.
33272         * sunrpc/clnt_perr.c: Likewise.
33273         * sunrpc/clnt_tcp.c: Likewise.
33274         * sunrpc/clnt_udp.c: Likewise.
33275         * sunrpc/clnt_unix.c: Likewise.
33276         * sunrpc/openchild.c: Likewise.
33277         * sunrpc/svc_simple.c: Likewise.
33278         * sunrpc/svc_tcp.c: Likewise.
33279         * sunrpc/svc_udp.c: Likewise.
33280         * sunrpc/svc_unix.c: Likewise.
33281         * sunrpc/xdr.c: Likewise.
33282         * sunrpc/xdr_array.c: Likewise.
33283         * sunrpc/xdr_rec.c: Likewise.
33284         * sunrpc/xdr_ref.c: Likewise.
33285         * sunrpc/xdr_stdio.c: Likewise.
33286
33287 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33288
33289         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
33290
33291 2011-07-03  Andreas Jaeger  <aj@suse.de>
33292
33293         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
33294         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
33295         regenerate with gen-libm-tests.pl.
33296
33297 2010-05-12  Petr Baudis  <pasky@suse.cz>
33298
33299         [BZ #11589]
33300         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
33301         around j0() zero points by switching to j1().
33302         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
33303         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
33304         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
33305         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
33306
33307 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33308
33309         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
33310         instead of 0.
33311         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
33312         instead of 0.
33313         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33314         Patch in part by Pavel Roskin <proski@gnu.org>.
33315
33316         [BZ #13138]
33317         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
33318         realloc.
33319         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
33320         Free memory block if necessary.
33321
33322         [BZ #12847]
33323         * libio/genops.c (INTDEF): For string streams the _lock pointer can
33324         be NULL.  Don't lock in this case.
33325
33326 2011-09-09  Roland McGrath  <roland@hack.frob.com>
33327
33328         * elf/elf.h (ELFOSABI_GNU): New macro.
33329         (ELFOSABI_LINUX): Define to that.
33330
33331 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
33332
33333         * string/strncat.c (strncat): Undef the symbol in case it has been
33334         defined in bits/string.h.
33335
33336 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
33337
33338         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
33339
33340         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
33341         link map.
33342
33343 2011-08-17  Andreas Jaeger  <aj@suse.de>
33344
33345         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
33346
33347 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
33348             Ian Lance Taylor  <iant@google.com>
33349
33350         * math/libm-test.inc (lround_test): New testcase.
33351         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
33352
33353 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
33354
33355         * Makefile: Remove support for automatic cvs check-ins.
33356         * Makerules: Likewise.
33357         * config.make.in: Likewise.
33358         * configure.in: Likewise.
33359         * intl/Makefile: Likewise.
33360         * locale/Makefile: Likewise.
33361         * po/Makefile: Likewise.
33362         * posix/Makefile: Likewise.
33363         * sysdeps/gnu/Makefile: Likewise.
33364         * sysdeps/mach/hurd/Makefile: Likewise.
33365         * sysdeps/sparc/sparc32/Makefile: Likewise.
33366
33367         [BZ #13118]
33368         * posix/Makefile (bug-regex32-ENV): Define.
33369         Patch by John Stanley <jpsinthemix@verizon.net>.
33370
33371         * misc/Makefile (headers): Add bits/select2.h.
33372         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
33373         * misc/bits/select2.h: New file.
33374         * include/bits/select2.h: New file.
33375         * debug/Makefile (routines): Add fdelt_chk.
33376         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
33377         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
33378         FD_ISSET.
33379         * debug/fdelt_chk.c: New file.
33380
33381         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
33382         * wcsmbs/test-wmemcmp.c: Likewise.
33383         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
33384         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
33385
33386 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33387
33388         * string/Makefile (strop-tests): Add memcmp.
33389         * string/test-wmemcmp.c: New file.
33390         * string/test-memcmp.c: Add wmemcmp support.
33391
33392 2011-09-08  Roland McGrath  <roland@hack.frob.com>
33393
33394         [BZ #13153]
33395         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
33396         2011-07-19 change.
33397
33398         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
33399         garbage value in a __mach_port_mod_refs call in the cases of the
33400         task-self and thread-self ports.
33401
33402 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33403
33404         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
33405
33406 2011-09-08  Andreas Schwab  <schwab@redhat.com>
33407
33408         * elf/dl-load.c (lose): Check for non-null L.
33409
33410 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
33411
33412         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
33413
33414         * elf/dl-libc.c (dlerror_run): Pass back error code from
33415         dl_catch_error.
33416
33417         [BZ #13123]
33418         * elf/dl-load.c (lose): Free l_origin if it is valid.
33419
33420         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
33421         names.
33422         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
33423         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
33424         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
33425         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
33426         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
33427         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
33428
33429 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33430
33431         * sysdeps/powerpc/fpu/e_hypot.c: New file.
33432         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
33433         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
33434         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
33435         * sysdeps/powerpc/fpu/k_cosf.c: New file.
33436         * sysdeps/powerpc/fpu/k_sinf.c: New file.
33437         * sysdeps/powerpc/fpu/s_cosf.c: New file.
33438         * sysdeps/powerpc/fpu/s_sinf.c: New file.
33439         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
33440         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
33441
33442 2011-08-15  Alan Modra  <amodra@gmail.com>
33443
33444         [BZ #13092]
33445         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
33446         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
33447         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
33448         ppc_mcount to static-only-routines.
33449         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
33450         __mcount_internal.
33451         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
33452         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
33453
33454 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
33455
33456         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
33457         for finite and infinity parameters.
33458
33459 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
33460
33461         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
33462         and add nop instructions for throughput optimization.
33463         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
33464
33465 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
33466
33467         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
33468         aligned copy for power7 with vector-scalar instructions.
33469         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
33470
33471 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
33472
33473         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
33474         AVX check.
33475
33476 2011-09-07  Andreas Schwab  <schwab@redhat.com>
33477
33478         [BZ #13144]
33479         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
33480         last change.
33481
33482 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
33483
33484         * sysdeps/unix/sysv/linux/x86_64/init-first.c
33485         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
33486         syscall wrapper around clock_gettime in __vdso_clock_gettime.
33487         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
33488         clock_gettime.
33489
33490 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
33491
33492         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
33493         Forgot to demangle the pointer.
33494
33495         * sysdeps/i386/sysdep.h: Define atom_text_section.
33496         * sysdeps/x86_64/sysdep.h: Likewise.
33497         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
33498         section with atom_text_section.
33499         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
33500         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
33501         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
33502         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
33503         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
33504
33505         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
33506         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
33507         already be defined.  Change to take two parameters and don't assign
33508         result to variable.  Adjust all users.
33509         Define INTERNAL_GETTIME if not already defined.
33510         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
33511         call.
33512         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
33513         HAVE_CLOCK_GETTIME_VSYSCALL.
33514         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
33515
33516         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
33517         gettimeofday vsyscall, just use time.
33518
33519 2011-09-06  Andreas Schwab  <schwab@redhat.com>
33520
33521         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
33522         <errno.h>.
33523
33524 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
33525
33526         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
33527         syscall on x86-64.
33528         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
33529         syscall.
33530         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
33531         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
33532         syscall if possible.
33533
33534 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33535
33536         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
33537         e_ident.  Don't pass to find_mapsXX.
33538         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
33539
33540 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33541
33542         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33543         strchr-sse2-no-bsf strrchr-sse2-no-bsf
33544         * sysdeps/x86_64/multiarch/strchr.S: Update.
33545         Check bit_slow_BSF bit.
33546         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
33547         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
33548         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
33549
33550 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33551
33552         [BZ #13134]
33553         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
33554         before glibc 2.15.
33555         (tryshell): Define.
33556         (__spawni): Change last parameter to be flag.  Test
33557         SPAWN_XFLAGS_USE_PATH flag to use path or not.
33558         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
33559         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
33560         * posix/spawni.c: Likewise.
33561         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
33562         * posix/spawnp.c: Likewise.  Change normal version to use
33563         SPAWN_XFLAGS_USE_PATH.
33564         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
33565         SPAWN_XFLAGS_TRY_SHELL.
33566
33567         [BZ #13150]
33568         * posix/glob.h: Remove gcc 1.x support.
33569
33570         [BZ #13068]
33571         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
33572
33573 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33574
33575         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33576         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
33577         strrchr-sse2-bsf
33578         * sysdeps/i386/i686/multiarch/strchr.S: New file.
33579         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
33580         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
33581         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
33582         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
33583         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
33584
33585 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33586
33587         * sysdeps/x86_64/wcscmp.S: New file.
33588
33589         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
33590         wcscmp-c wcscmp-sse2
33591         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
33592         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
33593         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
33594         * wcsmbs/wcscmp.c: Allow renaming.
33595
33596 2011-09-05  David S. Miller  <davem@davemloft.net>
33597
33598         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
33599         stack slot, rather than the struct return pointer slot.
33600         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
33601         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
33602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
33603         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
33604
33605 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
33606
33607         * po/ja.po: Update from translation team.
33608
33609         [BZ #13144]
33610         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
33611         kernel in 64-bit binaries.
33612
33613 2011-09-01  David S. Miller  <davem@davemloft.net>
33614
33615         * elf/elf.h (HWCAP_SPARC_*): Move to..
33616         * sysdeps/sparc/sysdep.h: this new file and add new values.
33617         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
33618         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
33619         _DL_HWCAP_COUNT to 24.
33620         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
33621         entries.
33622         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
33623         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
33624         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
33625         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
33626         instead of magic constants.
33627         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
33628
33629 2011-08-31  David S. Miller  <davem@davemloft.net>
33630
33631         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
33632         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
33633         Reimplement to do errno handling inline.
33634         (SYSCALL_ERROR_HANDLER): New macro.
33635         (__SYSCALL_STRING): Do not do errno handling in asm.
33636         (__CLONE_SYSCALL_STRING): Delete.
33637         (__INTERNAL_SYSCALL_STRING): Delete.
33638         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
33639         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
33640         (PSEUDO): Reimplement to do errno handling inline.
33641         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
33642         (SYSCALL_ERROR_HANDLER): New macro.
33643         (__SYSCALL_STRING): Do not do errno handling in asm.
33644         (__CLONE_SYSCALL_STRING): Delete.
33645         (__INTERNAL_SYSCALL_STRING): Delete.
33646         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
33647         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
33648         i386.
33649         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
33650         (inline_syscall*): Add 'err' argument.
33651         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
33652         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
33653         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
33654         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
33655
33656         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
33657         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33658
33659 2011-08-30  Andreas Schwab  <schwab@redhat.com>
33660
33661         * elf/rtld.c (dl_main): Relocate objects in dependency order.
33662
33663 2011-08-29  Jiri Olsa <jolsa@redhat.com>
33664
33665         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
33666         directive.
33667
33668 2011-08-24  David S. Miller  <davem@davemloft.net>
33669
33670         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
33671
33672 2011-08-24  Andreas Schwab  <schwab@redhat.com>
33673
33674         * elf/Makefile: Add rules to build and run unload8 test.
33675         * elf/unload8.c: New file.
33676         * elf/unload8mod1.c: New file.
33677         * elf/unload8mod1x.c: New file.
33678         * elf/unload8mod2.c: New file.
33679         * elf/unload8mod3.c: New file.
33680
33681         * elf/dl-close.c (_dl_close_worker): Reset private search list if
33682         it wasn't used.
33683
33684 2011-08-23  David S. Miller  <davem@davemloft.net>
33685
33686         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
33687         subtract stack bias.
33688         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
33689         %sp not %fp in calculations.
33690         (_JMPBUF_UNWINDS_ADJ): Likewise.
33691
33692         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
33693         (aio_suspend): Call it to force an exception region around the
33694         AIO_MISC_WAIT() invocation.
33695
33696 2011-08-23  Andreas Schwab  <schwab@redhat.com>
33697
33698         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
33699         backslash.
33700
33701 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
33702
33703         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
33704         protection macro.
33705         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
33706         and <dl-machine.h>.
33707         (Elf64_FuncDesc): Remove.
33708
33709 2011-08-22  David S. Miller  <davem@davemloft.net>
33710
33711         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
33712         sigaltstack check, add missing cfi directives.
33713         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
33714         missing cfi directives, and sigaltstack handling.
33715
33716 2011-08-16  Andreas Schwab  <schwab@redhat.com>
33717
33718         [BZ #11724]
33719         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
33720         object is seen twice.
33721         * elf/dl-fini.c (_dl_sort_fini): Likewise.
33722
33723         * elf/Makefile (distribute): Add tst-initorder2.c.
33724         (tests): Add tst-initorder2.
33725         (modules-names): Add tst-initorder2a tst-initorder2b
33726         tst-initorder2c tst-initorder2d.  Add rules to build them.
33727         ($(objpfx)tst-initorder2.out): New rule.
33728         * elf/tst-initorder2.c: New file.
33729         * elf/tst-initorder2.exp: New file.
33730
33731 2011-08-22  Andreas Schwab  <schwab@redhat.com>
33732
33733         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
33734
33735         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
33736         dependencies back to end of function.
33737
33738         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
33739         $(elfobjdir)/ld.so.
33740
33741 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
33742
33743         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
33744         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
33745         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
33746         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
33747         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
33748         of __vdso_gettimeofday.
33749         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
33750         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
33751         attribute_hidden.
33752         (_libc_vdso_platform_setup): Remove initialization of
33753         __vdso_gettimeofday and __vdso_time.
33754
33755 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
33756
33757         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
33758         and fgetc_unlocked.
33759         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
33760         getc_unlocked.
33761
33762         * elf/dl-open.c (add_to_global): Report additions to the global scope
33763         for LD_DEBUG=scopes.
33764         (dl_open_worker): Also print scope of newly loaded dependencies.
33765         (_dl_show_scope): Indicate if there is no scope.
33766
33767         [BZ #13114]
33768         * stdio-common/Makefile (tests): Add bug24.
33769         * stdio-common/bug24.c: New file.
33770
33771 2011-08-19  Andreas Jaeger  <aj@suse.de>
33772
33773         [BZ #13114]
33774         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
33775         non-existant file when using close-on-exec mode.
33776
33777 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
33778
33779         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
33780         the very first instruction.
33781
33782         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
33783         the CFI state in the end.
33784         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
33785         inclusion of dl-trampoline.h.
33786         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
33787
33788 2011-08-19  Andreas Schwab  <schwab@redhat.com>
33789
33790         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
33791         expectations for long double.
33792
33793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
33794         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
33795
33796 2011-08-14  David S. Miller  <davem@davemloft.net>
33797
33798         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
33799         artificual limit depends upon the system page size.
33800
33801 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
33802
33803         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
33804         * resolv/Makefile: Define CFLAGS-libresolv.
33805
33806 2011-08-17  Andreas Schwab  <schwab@redhat.com>
33807
33808         * nss/makedb.c (compute_tables): Make variables used in nested
33809         function static.
33810
33811 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
33812
33813         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
33814         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
33815         if buffer was too small.
33816
33817         * elf/pldd.c (main): Attach to all threads in the process.
33818         Rewrite /proc handling to use *at functions.
33819
33820 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
33821
33822         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
33823         specifies first scope to show.
33824         (dl_open_worker): Update callers.  Move printing scope of new
33825         object to before the relocation.
33826         * elf/rtld.c (dl_main): Update _dl_show_scope call.
33827         * sysdeps/generic/ldsodefs.h: Update declaration.
33828
33829         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
33830         string for the scope number.
33831
33832 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
33833
33834         * nscd/servicescache.c (cache_addserv): Make sure written is always
33835         initialized.
33836
33837 2011-08-14  Roland McGrath  <roland@hack.frob.com>
33838
33839         * sysdeps/i386/i486/bits/atomic.h
33840         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
33841         statement expression, so as to suppress "set but not used" warning.
33842         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
33843
33844         * string/strncat.c (STRNCAT): Use prototype definition.
33845
33846         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
33847         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
33848         -Iprograms here.
33849         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
33850         (localedef-modules): Add localedef.
33851         (locale-modules): Add locale.
33852
33853         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
33854         * elf/rtld.c (dl_main): Invert order of assignment in last change,
33855         to avoid a warning.
33856
33857 2011-08-14  David S. Miller  <davem@davemloft.net>
33858
33859         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
33860         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
33861
33862 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
33863
33864         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
33865         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
33866         * elf/rtld.c (dl_main): Set l_name of vDSO.
33867         Call _dl_show_scope when DL_DEBUG_SCOPES.
33868         (process_dl_debug): Recognize scopes flag and also set it for all.
33869         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
33870         Declare _dl_show_scope.
33871
33872         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
33873         (do_dlopen): Pass caller_dlopen to dl_open.
33874         (__libc_dlopen_mode): Initialize caller_dlopen.
33875
33876         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
33877         of libc.  Make tolower call locale-independent.  Optimize a bit by
33878         using isdigit instead of isalnum.
33879         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
33880
33881 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
33882
33883         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
33884         was a dependency or dynamically loaded.
33885
33886 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
33887
33888         * intl/l10nflist.c: Allow architecture-specific pop function.
33889         * sysdeps/x86_64/l10nflist.c: New file.
33890
33891         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
33892         classification.
33893
33894 2011-08-10  Andreas Schwab  <schwab@redhat.com>
33895
33896         * include/dirent.h: Add libc_hidden_proto for scandirat and
33897         scandirat64.  Don't declare __scandirat64.
33898         * dirent/scandirat.c: Add libc_hidden_def.
33899         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
33900         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
33901
33902 2011-08-10  David S. Miller  <davem@davemloft.net>
33903
33904         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
33905         enum.
33906         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33907         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33908         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33909
33910 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
33911
33912         * Versions.def [libc]: Add GLIBC_2.15.
33913         * dirent/Makefile (routines): Add scandirat and scandirat64.
33914         * dirent/Versions [libc]: Export scandirat and scandirat64 for
33915         GLIBC_2.15.
33916         * dirent/dirent.h: Declare scandirat and scandirat64.
33917         * dirent/scandirat.c: New file.
33918         * dirent/scandirat64.c: New file.
33919         * sysdeps/wordsize-64/scandirat.c: New file.
33920         * sysdeps/wordsize-64/scandirat64.c: New file.
33921         * dirent/opendir.c: Define opendirat.
33922         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
33923         using scandirat.
33924         * dirent/scandir64.c: Adjust for scandir.c change.
33925         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
33926         __scandirat64, and __scandir_cancel_handler.
33927         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
33928         additional parameter and use openat instead of open (outside of ld.so).
33929         Add new __opendir as wrapper around __opendirat.
33930         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
33931         here without requiring old scandirat implementation.
33932
33933 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
33934
33935         * dirent/scandir.c (cancel_handler): Renamed to
33936         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
33937         defined.  Adjust users.
33938         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
33939         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
33940
33941 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
33942
33943         * string/test-string.h (IMPL): Use __STRING to expand name and then
33944         stringify it.
33945
33946         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
33947         of cleanups.
33948
33949 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33950
33951         * string/Makefile: Update.
33952         (strop-tests): Append strncat.
33953         * string/test-wcscmp.c: New file.
33954         New comprehensive test for wcscmp.
33955         * string/test-strcmp.c: Update.
33956         (WIDE): New define.
33957
33958 2011-07-22  Andreas Schwab  <schwab@redhat.com>
33959
33960         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
33961         line.
33962
33963 2011-07-26  Andreas Schwab  <schwab@redhat.com>
33964
33965         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
33966         encoding to ACE if AI_IDN.
33967
33968 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
33969
33970         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
33971         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
33972
33973 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33974
33975         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
33976         Fix overflow bug in strncat.
33977         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
33978
33979         * string/test-strncat.c: Update.
33980         Add new tests for checking overflow bugs.
33981
33982 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
33983
33984         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
33985         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
33986         * sysdeps/i386/i686/multiarch/strcat.S: New file.
33987         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
33988         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
33989         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
33990         * sysdeps/i386/i686/multiarch/strncat.S: New file.
33991         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
33992         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
33993
33994         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
33995         (USE_AS_STRCAT): Define.
33996         Add strcat and strncat support.
33997         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
33998
33999 2011-07-25  Andreas Schwab  <schwab@redhat.com>
34000
34001         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
34002         __n bigger than INT_MAX+1.
34003         (__strncmp_g): Likewise.
34004
34005 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
34006
34007         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
34008         * libio/stido.h: Likewise.
34009
34010         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
34011         (AF_NFC): Define.
34012         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
34013         (AF_NFC): Define.
34014
34015         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
34016         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34017         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34018         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34019         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34020
34021         [BZ #13021]
34022         * scripts/test-installation.pl: Don't expect libnss_test1 to be
34023         installed.
34024
34025         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
34026         typo.
34027         (_dl_x86_64_save_sse): Likewise.
34028
34029 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
34030
34031         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
34032         OSXSAVE.
34033         (_dl_x86_64_save_sse): Likewise.
34034
34035         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
34036
34037         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
34038
34039 2011-07-21  Andreas Schwab  <schwab@redhat.com>
34040
34041         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
34042         change.
34043         (_dl_x86_64_save_sse): Use correct AVX check.
34044
34045 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34046
34047         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
34048         bug in strncpy/strncat.
34049         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
34050
34051 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
34052
34053         * string/tester.c (test_strcat): Add tests for different alignments
34054         of source and destination.
34055         (test_strncat): Likewise.
34056
34057 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34058
34059         [BZ #12852]
34060         * posix/glob.c (glob): Check passed in values before using them in
34061         expressions to avoid some overflows.
34062         (glob_in_dir): Likewise.
34063
34064         [BZ #13007]
34065         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
34066         check for AVX enablement so that we don't crash with old kernels and
34067         new hardware.
34068         * elf/tst-audit4.c: Add same checks here.
34069         * elf/tst-audit6.c: Likewise.
34070
34071         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
34072
34073 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
34074
34075         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
34076
34077 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
34078
34079         * po/cs.po: Update from translation team.
34080         * po/bg.po: Likewise.
34081
34082 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
34083
34084         * misc/sys/cdefs.h: Add support for const attribute.
34085         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
34086         to gnu_dev_{major,minor,makedev} functions.
34087
34088 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
34089
34090         * intl/dcigettext.c (get_output_charset): Add missing bracket.
34091
34092 2011-07-20  Andreas Schwab  <schwab@redhat.com>
34093
34094         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
34095         strlen results.
34096
34097 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34098
34099         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
34100         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
34101         register in order to avoid conflicts with the soft frame pointer
34102         being held in r11 when necessary.
34103         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
34104         (INTERNAL_VSYSCALL_NCS): Likewise.
34105
34106 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
34107
34108         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
34109         * elf/dl-fini.c (_dl_fini): Adjust caller.
34110         * elf/dl-close.c (_dl_close_worker): Likewise.
34111         * sysdeps/generic/ldsodefs.h: Adjust declaration.
34112
34113 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34114
34115         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
34116         "aux_cache->nlibs < 0".
34117
34118         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
34119         in the reload-count case.
34120
34121 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
34122
34123         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34124         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
34125         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
34126         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
34127         * sysdeps/x86_64/multiarch/strcat.S: New file.
34128         * sysdeps/x86_64/multiarch/strncat.S: New file.
34129         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
34130         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
34131         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
34132         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
34133         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
34134         (USE_AS_STRCAT): Define.
34135         Add strcat and strncat support.
34136         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
34137         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
34138         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
34139         * string/strncat.c: Update.
34140         (USE_AS_STRNCAT): Define.
34141         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34142         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
34143         and i7.
34144         * sysdeps/x86_64/multiarch/init-arch.h
34145         (bit_Prefer_PMINUB_for_stringop): New.
34146         (index_Prefer_PMINUB_for_stringop): Likewise.
34147         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
34148         bit_Prefer_PMINUB_for_stringop.
34149
34150 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34151
34152         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
34153         buffer64.
34154         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
34155         of casting of buffer.
34156         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
34157         buffer32 and buffer64.
34158         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
34159         writes instead of casting of buffer.
34160         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
34161         buffer32.
34162         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
34163         casting of buffer.
34164
34165 2011-07-19  Andreas Schwab  <schwab@redhat.com>
34166
34167         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
34168
34169 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
34170
34171         * nscd/nscd.c (termination_handler): Don't do anything for a database
34172         if it has not yet been initialized.
34173
34174 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34175
34176         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34177
34178 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
34179
34180         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
34181
34182 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
34183
34184         * po/nl.po: Update from translation team.
34185         * po/sv.po: Likewise.
34186
34187 2011-07-16  Roland McGrath  <roland@hack.frob.com>
34188
34189         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
34190         now disallowed by GCC.
34191
34192         * configure.in (use-default-link): Default to yes if a test -shared
34193         link meets our qualifications.
34194         * configure: Regenerated.
34195
34196         * config.make.in (output-format): New variable.
34197         * configure.in: Check for ld --print-output-format support.
34198         * configure: Regenerated.
34199         * Makerules ($(common-objpfx)format.lds)
34200         [$(output-format) != unknown]: Just use $(output-format),
34201         instead of the linker-script munging.
34202
34203 2011-07-14  Roland McGrath  <roland@hack.frob.com>
34204
34205         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
34206         of $(common-objpfx)shlib.lds.
34207         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
34208
34209         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
34210         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
34211
34212         * configure.in (-z relro check): Adjust test code to add a large
34213         writable data section after it.
34214         * configure: Regenerated.
34215
34216 2011-07-11  Roland McGrath  <roland@hack.frob.com>
34217
34218         * configure.in (-z relro check): Fix test code to make the variable
34219         truly const.
34220         * configure: Regenerated.
34221
34222 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
34223
34224         * nscd/nscd.h (struct traced_file): Define.
34225         (struct database_dyn): Remove inotify_descr, reset_res, and filename
34226         elements.  Add traced_files.
34227         (inotify_fd): Declare.
34228         (register_traced_file): Declare.
34229         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
34230         (inotify_fd): Export.
34231         (resolv_conf_descr): Remove.
34232         (nscd_init): Move inotify descriptor creation to main.
34233         Don't register files for notification here.
34234         (register_traced_file): New function.
34235         (invalidate_cache): Don't use reset_res to determine whether to call
34236         res_init, go through the list of registered files.
34237         (main_loop_poll): The inotify descriptors are now stored in the
34238         structures for the traced files.
34239         (main_loop_epoll): Likewise
34240         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
34241         to __nss_disable_nscd.
34242         * nscd/cache.c (prune_cache): There is no single inotify descriptor
34243         for a database anymore.  Check the records for all the registered
34244         files instead.
34245         * nss/Makefile (libnss_files-routines): Add files-init.
34246         (libnss_db-routines): Add db-init.
34247         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
34248         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
34249         * nss/nss_db/db-init.c: New file.
34250         * nss/nss_files/files-init.c: New file.
34251         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
34252         __nss_lookup_function.
34253         (__nss_lookup_function): Call nss_load_library.
34254         (nss_load_all_libraries): New function.
34255         (__nss_disable_nscd): Take parameter with callback function for files
34256         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
34257         used for the cached services.
34258         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
34259         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
34260         options for features to all the files in nscd.
34261
34262         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
34263
34264 2011-07-10  Roland McGrath  <roland@hack.frob.com>
34265
34266         * csu/elf-init.c (__libc_csu_init): Comment typo.
34267
34268 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
34269
34270         * po/pl.po: Update from translation team.
34271         * po/ja.po: Likewise.
34272         * po/ru.po: Likewise.
34273         * po/ko.po: Likewise.
34274         * po/fr.po: Likewise.
34275
34276 2011-07-09  Roland McGrath  <roland@hack.frob.com>
34277
34278         * configure.in (.ctors/.dtors header and trailer check):
34279         Use an empirical test on a built program.
34280         * configure: Regenerated.
34281
34282         * configure.in (-z relro check): Use an empirical test on a built DSO.
34283         Detect, but do not require, on ia64.
34284         * configure: Regenerated.
34285
34286         * configure.in (READELF): Find it with AC_CHECK_TOOL.
34287         Update tests that use readelf to use $READELF instead.
34288         * configure: Regenerated.
34289
34290 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
34291
34292         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
34293         if the result is not used.
34294
34295 2011-07-05  Andreas Jaeger  <aj@suse.de>
34296
34297         [BZ#9696]
34298         * stdlib/tst-strtod.c: Add testcase.
34299
34300 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
34301
34302         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
34303         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
34304         The latter has a higher limit.  Take additional parameter to pass to
34305         the new function.
34306         (__pathconf): Pass file to __statfs_link_max.
34307         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
34308         __statfs_link_max.
34309         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
34310         __statfs_link_max.
34311
34312         [BZ #12868]
34313         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
34314         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34315         Handle Lustre.
34316         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
34317         (__statfs_filesize_max): Likewise.
34318         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
34319
34320 2011-07-05  Andreas Jaeger  <aj@suse.de>
34321
34322         * resolv/res_comp.c (dn_skipname): Remove unused variable.
34323
34324 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
34325
34326         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
34327         `status' variable.
34328         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
34329         Likewise.
34330
34331 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
34332
34333         * Makefile (strop-tests): Add strncat.
34334         * string/test-strncat.c: New file.
34335
34336 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
34337
34338         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
34339
34340 2011-06-21  Andreas Jaeger  <aj@suse.de>
34341
34342         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
34343         Copy rule from iconvdata/Makefile.
34344
34345 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34346
34347         [BZ #12922]
34348         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
34349         but no long options are defined, just return 'W'.
34350
34351 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
34352
34353         [BZ #9696]
34354         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
34355
34356 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
34357
34358         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
34359         netgroups to read.
34360         (innetgr): Likewise.
34361
34362 2011-07-05  Roland McGrath  <roland@hack.frob.com>
34363
34364         * config.make.in (install_root): Default to $(DESTDIR).
34365
34366 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
34367
34368         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
34369
34370 2011-07-02  Roland McGrath  <roland@hack.frob.com>
34371
34372         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
34373
34374         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
34375         containing directory rather than embedding absolute directory names.
34376
34377         * scripts/check-local-headers.sh: Rewritten using awk.
34378         Match by word, not by line.  Print error messages for matches.
34379         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
34380
34381         * Makerules [shlib-lds-flags empty]:
34382         ($(common-objpfx)libc_pic.opts): New target.
34383         ($(common-objpfx)libc_pic.os.clean): New target.
34384         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
34385
34386         * config.make.in (OBJCOPY): New variable.
34387         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
34388         * configure: Regenerated.
34389
34390         * config.make.in (use-default-link): New variable.
34391         * configure.in (use_default_link): Grok --with-default-link to set it.
34392         * configure: Regenerated.
34393         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
34394         (shlib-lds, shlib-lds-flags): Define to empty.
34395
34396         * Makerules (shlib-lds): New variable.
34397         (shlib-lds-flags): New variable.
34398         (build-shlib, build-moduile, build-module-asneeded): Use it.
34399         ($(common-objpfx)libc.so): Use $(shlib-lds).
34400         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
34401         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
34402
34403         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
34404         DT_FLAGS/DT_FLAGS_1 with zero flags.
34405
34406         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
34407         linker script munging.
34408
34409 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
34410
34411         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
34412         as 128-bit value.
34413         * crypt/sha512.c (sha512_process_block): Perform total addition using
34414         128-bit if possible.
34415         (__sha512_finish_ctx): Likewise.
34416         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
34417         as 64-bit value.
34418         * crypt/sha256.c (SWAP64): Define.
34419         (sha256_process_block): Perform total addition using 64-bit if
34420         possible.
34421         (__sha256_finish_ctx): Likewise.
34422
34423 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
34424
34425         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
34426         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34427         * nscd/hstcache.c (cache_addhst): Likewise.
34428         * nscd/grpcache.c (cache_addgr): Likewise.
34429         * nscd/aicache.c (addhstaiX): Likewise
34430         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
34431
34432 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
34433
34434         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
34435         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34436         * nscd/hstcache.c (cache_addhst): Likewise.
34437         * nscd/grpcache.c (cache_addgr): Likewise.
34438         * nscd/aicache.c (addhstaiX): Likewise
34439
34440 2011-07-01  Andreas Schwab  <schwab@redhat.com>
34441
34442         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
34443         domain only when needed.
34444
34445 2011-06-30  Andreas Schwab  <schwab@redhat.com>
34446
34447         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
34448         is always restored.
34449
34450 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
34451
34452         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
34453         are re-adding the entry.
34454         * nscd/servicescache.c (cache_addserv): Likewise.
34455
34456 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
34457
34458         * sysdeps/generic/dl-irel.h: fix protection against multiple
34459         inclusions.
34460         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
34461
34462 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
34463
34464         [BZ #12935]
34465         * malloc/memusage.sh: Fix quoting in message.
34466         * debug/xtrace.sh: Likewise.
34467
34468         * configure.in: Remove support for --experimental-malloc option, make
34469         it the default.
34470         * config.make.in: Likewise.
34471         * malloc/Makefile: Likewise.
34472
34473 2011-06-27  Andreas Schwab  <schwab@redhat.com>
34474
34475         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
34476         two-byte characters.
34477
34478 2011-06-27  Roland McGrath  <roland@hack.frob.com>
34479
34480         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
34481         AC_CACHE_CHECK invocation.
34482         * configure: Regenerated.
34483
34484         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
34485
34486 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
34487
34488         [BZ #12350]
34489         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
34490         bit from old_res_options.
34491
34492         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
34493
34494         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
34495         value type for setfct.
34496
34497 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
34498
34499         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
34500         __gettimeofday instead of gettimeofday.
34501
34502 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
34503
34504         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
34505
34506 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
34507
34508         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
34509
34510         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
34511         info.
34512
34513 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
34514
34515         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34516         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
34517         strcpy-sse2-unaligned strncpy-sse2-unaligned
34518         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
34519         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
34520         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
34521         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
34522         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
34523         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
34524         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
34525         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
34526         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
34527         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
34528         (STRCPY): Support SSE2 and SSSE3 versions.
34529
34530 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
34531
34532         [BZ #12874]
34533         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
34534         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
34535         kernels which artificially limit size of requests.
34536
34537 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
34538
34539         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34540         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
34541         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
34542         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
34543         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
34544         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
34545         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
34546         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
34547         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
34548         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
34549         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
34550         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
34551         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
34552         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
34553         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
34554         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34555         Enable unaligned load optimization for Intel Core i3, i5 and i7
34556         processors.
34557         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
34558         Define.
34559         (index_Fast_Unaligned_Load): Define.
34560         (HAS_FAST_UNALIGNED_LOAD): Define.
34561
34562 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
34563
34564         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
34565
34566 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
34567
34568         [BZ #12907]
34569         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
34570         until it is clear that the information is realy needed.
34571         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
34572
34573 2011-06-22  Andreas Schwab  <schwab@redhat.com>
34574
34575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
34576
34577 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
34578
34579         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
34580         /sys/devices/system/cpu/online if it is usable.
34581
34582         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
34583         reading the information from the /proc filesystem to once a second.
34584
34585 2011-06-21  Andreas Jaeger  <aj@suse.de>
34586
34587         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
34588         NULL after inclusion of kernel headers.
34589
34590 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
34591
34592         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
34593         calls to internal_setent.
34594
34595         [BZ #12885]
34596         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
34597         addresses using gethostbyname4_r ignore IPv4 addresses.
34598
34599         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
34600         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
34601
34602         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
34603
34604 2011-06-20  David S. Miller  <davem@davemloft.net>
34605
34606         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
34607         inclusions.
34608         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
34609
34610         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
34611         (elf_irel): Use it.
34612         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
34613         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
34614         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
34615         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
34616         * sysdeps/x86_64/dl-irel.h: Likewise.
34617
34618         * elf/dl-runtime.c: Use elf_ifunc_invoke.
34619         * elf/dl-sym.c: Likewise.
34620
34621 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
34622
34623         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
34624         need to dereference resplen2.
34625
34626 2011-06-14  Andreas Schwab  <schwab@redhat.com>
34627
34628         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
34629
34630 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
34631
34632         * Makeconfig: Define vardbdir and inst_vardbdir.
34633         * nss/Makefile: Add rules to install db-Makefile.
34634
34635         * nss/nss_db/db-XXX.c: Cleanup.
34636
34637         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
34638         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
34639         GLIBC_PRIVATE.
34640         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
34641         * nss/makedb.c: Implement -g option to specify that value strings
34642         are generated and should not be added to table iterated over for
34643         get*ent calls.
34644         * nss/nss_db/db-initgroups.c: New file.
34645
34646         * nss/getent.c: Add support for initgroups lookups through getgrouplist
34647         interface.
34648
34649         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
34650         (internal_getgrouplist): Adjust to name change.
34651         Update use_initgroups_entry if this is not the first call.
34652         * nss/databases.def: Add initgroups entry.
34653
34654         * nss/makedb.c (compute_tables): Check result of multiple hash table
34655         sizes to minimize maximum chain length.
34656
34657 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
34658
34659         * Versions.def: Add entry for libnss_db.
34660         * shlib-versions: Likewise.
34661         * nss/Makefile: Add rules to build libnss_db.
34662         * nss/Versions: Add libnss_db information.  Organize libnss_files
34663         entries better.
34664         * nss/db-Makefile: Add gshadow support.  Change rules for the new
34665         makedb progra.  Some minor improvements to generate smaller files.
34666         * nss/nss_db/nss_db.h: Move NSS database header data structures to
34667         here from...
34668         * nss/makedb.c: ...here.
34669         Improve database format to be smaller and require less memory at
34670         runtime.
34671         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
34672         db anymore.
34673         * nss/nss_db/db-netgrp.c: Likewise.
34674         * nss/nss_db/db-open.c: Likewise.
34675         * nss/nss_files/flies-XXX.x: Adjust comments.
34676         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
34677         * nss/nss_files/files-grp.c: Likewise.
34678         * nss/nss_files/files-hosts.c: Likewise.
34679         * nss/nss_files/files-network.c: Likewise.
34680         * nss/nss_files/files-proto.c: Likewise.
34681         * nss/nss_files/files-pwd.c: Likewise.
34682         * nss/nss_files/files-rpc.c: Likewise.
34683         * nss/nss_files/files-service.c: Likewise.
34684         * nss/nss_files/files-sgrp.c: Likewise.
34685         * nss/nss_files/files-spwd.c: Likewise.
34686         * nss/nss_db/db-alias.c: Removed.
34687         * nss/nss_db/dummy-db.h: Removed.
34688
34689 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
34690
34691         * nss/makedb.c: Rewritten to not use database library.
34692         * nss/Makefile: Update to build new makedb program.
34693
34694 2011-06-14  Andreas Jaeger  <aj@suse.de>
34695
34696         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
34697         memset declaration.
34698
34699 2011-06-10  Andreas Schwab  <schwab@redhat.com>
34700
34701         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
34702         tmpbuf.
34703
34704 2011-06-10  Roland McGrath  <roland@hack.frob.com>
34705
34706         * Makerules (shlib.lds): Fail if the linker script comes out empty.
34707         * elf/Makefile ($(objpfx)ld.so): Likewise.
34708
34709         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
34710         Don't list ld.so twice in dependencies.
34711
34712         * posix/bug-regex31.c: Include <stdlib.h>.
34713
34714         * nscd/hstcache.c (cache_addhst): Remove unused variable.
34715
34716         * nis/nss_compat/compat-spwd.c
34717         (getspent_next_nss_netgr): Remove unused variable.
34718         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
34719
34720         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
34721         nonmembers" output to use the right array.
34722
34723         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
34724
34725         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
34726
34727         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
34728         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
34729         * catgets/gencat.c (read_input_file): Likewise.
34730         * locale/programs/locarchive.c (enlarge_archive): Likewise.
34731
34732         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
34733         variable definition inside #if's controlling its use.
34734
34735         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
34736
34737         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
34738
34739         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
34740
34741         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
34742         unreachable code.
34743
34744         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
34745
34746         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
34747         * configure: Regenerated.
34748
34749         * Makerules: Revert last change.
34750         * elf/Makefile: Likewise.
34751
34752 2011-06-09  Roland McGrath  <roland@hack.frob.com>
34753
34754         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
34755         * elf/Makefile ($(objpfx)librtld.os): Likewise.
34756         (reloc-link): Likewise.
34757
34758 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
34759
34760         * elf/Makefile: Add rules to build pldd.
34761         * elf/pldd.c: New file.
34762         * elf/pldd-xx.c: New file.
34763
34764 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
34765
34766         * version.h: Update for 2.15 development version.
34767
34768 2011-06-07  David S. Miller  <davem@davemloft.net>
34769
34770         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
34771         ifuncs.
34772         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
34773         elf_machine_lazy_rel): Likewise.
34774         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
34775         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
34776         elf_machine_lazy_rel): Likewise.
34777         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
34778         dl_hwcap via passed in argument.
34779         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
34780         Likewise.
34781
34782 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34783
34784         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
34785
34786 2011-06-06  Roland McGrath  <roland@hack.frob.com>
34787
34788         [BZ #12849]
34789         * manual/fdl-1.1.texi: New file, verbatim from:
34790         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
34791         * manual/lgpl-2.1.texi: New file, verbatim from:
34792         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
34793         * manual/Makefile (licenses): New variable, list those new file names.
34794         (texis): Use it.
34795         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
34796
34797         * manual/fdl.texi: File removed.
34798         * manual/lesser.texi: File removed.
34799         * manual/libc.texinfo (Copying, Documentation License):
34800         Use new @include file names, put @appendix directive before @include.
34801
34802 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
34803
34804         [BZ #12841]
34805         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
34806         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
34807         (mq_open): Add __NTH.
34808
34809 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
34810
34811         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34812         Assume Intel Core i3/i5/i7 processor if AVX is available.
34813
34814 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
34815
34816         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
34817         typo.
34818
34819 2011-05-31  Andreas Schwab  <schwab@redhat.com>
34820
34821         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
34822         memory.  Use alloca_account.  Fix memory leak when retrying.
34823
34824 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
34825
34826         * version.h (RELEASE): Bump for 2.14 release.
34827         * include/features.h (__GLIBC_MINOR__): Bump to 14.
34828
34829         * config.make.in (RANLIB): Remove entry.
34830
34831 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
34832
34833         * po/Makefile (po-sed-cmd): Add ksh to extensions.
34834         (libc.pot): Work around missing support for .ksh extension in xgettext.
34835
34836         [BZ #12684]
34837         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
34838         if both request failed.
34839         (send_dg): In case of server errors clear resplen or *resplen2.
34840
34841         [BZ #12454]
34842         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
34843         when there are multiple maps.
34844         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
34845         (_dl_fini): Remove test here.
34846
34847         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
34848
34849 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
34850
34851         [BZ #12350]
34852         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
34853         bit from old_res_options.
34854         (gaih_inet): Likewise.
34855
34856         [BZ #11099]
34857         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
34858         as signed.
34859
34860         * resolv/res_init.c (res_setoptions): Make the code more compact.
34861
34862         [BZ #11558]
34863         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
34864         set RES_USEVC.
34865
34866         [BZ #11634]
34867         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
34868
34869         * malloc/malloc.h: Mark malloc hook variables as deprecated.
34870
34871         [BZ #11781]
34872         * malloc/malloc.h: Declare malloc hook variables as volatile.
34873
34874         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
34875         in last patch.
34876
34877         [BZ #11799]
34878         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
34879         raise in the comment.
34880         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
34881         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
34882         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
34883
34884 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
34885
34886         [BZ #12811]
34887         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
34888         grow the buffers more if it already has to be sufficient.
34889         (build_wcs_upper_buffer): Likewise.
34890         * posix/regexec.c (check_matching): Likewise.
34891         (clean_state_log_if_needed): Likewise.
34892         (extend_buffers): Don't enlarge buffers beyond size of the input
34893         buffer.
34894         Patches mostly by Emil Wojak <emil@wojak.eu>.
34895         * posix/bug-regex32.c: New file.
34896         * posix/Makefile (tests): Add bug-regex32.
34897
34898         * locale/findlocale.c (_nl_find_locale): Return right away if
34899         _nl_explode_name failed.
34900         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
34901
34902         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
34903
34904         * debug/xtrace.sh: Unify messages.
34905         * malloc/memusage.sh: Likewise.
34906
34907         [BZ #12813]
34908         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
34909         time symbol from vDSO.  Substitute with vsyscall if not available.
34910         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
34911         __vdso_time.
34912
34913         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
34914         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
34915         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
34916         Add sendmmsg and internal_sendmmsg.
34917         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
34918         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
34919         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
34920
34921         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
34922         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
34923         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
34924
34925 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
34926
34927         [BZ #12813]
34928         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
34929         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
34930         available.
34931         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
34932         __vdso_getcpu.
34933
34934         [BZ #12814]
34935         * iconvdata/Makefile (tests): Add bug-iconv9.
34936         * iconvdata/bug-iconv9.c: New file.
34937
34938 2011-05-27  Andreas Schwab  <schwab@redhat.com>
34939
34940         [BZ #12814]
34941         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
34942
34943 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
34944
34945         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
34946         (struct user_regs_struct): Change intcs field back to cs.
34947
34948 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
34949
34950         * po/ja.po: Update from translation team.
34951
34952 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
34953
34954         [BZ #12795]
34955         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
34956         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
34957
34958 2011-05-20  Andreas Schwab  <schwab@redhat.com>
34959
34960         * stdlib/longlong.h: Update from GCC.
34961
34962 2011-05-23  Andreas Schwab  <schwab@redhat.com>
34963
34964         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
34965         parameter name.
34966         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
34967         Add parameter name.
34968         (__sysconf): Pass it down.
34969
34970 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
34971
34972         [BZ #12671]
34973         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
34974         some situations.
34975         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
34976         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
34977         add in in __libc_use_alloca calls.  Adjust callers.
34978         (glob): Use malloc in some situations.
34979
34980         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
34981         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
34982         pltexit.
34983
34984 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
34985
34986         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
34987         and CLOCK_BOOTTIME_ALARM.
34988
34989         [BZ #12782]
34990         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
34991         is returned.
34992
34993         * string/_strerror.c (__strerror_r): Print negative errors as signed
34994         numbers.
34995
34996         [BZ #12777]
34997         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
34998         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
34999         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
35000
35001         * configure.in: Fix typo in redirection and correct removal of test
35002         files in two cases.
35003
35004         [BZ #12788]
35005         * locale/setlocale.c (new_composite_name): Fix test to check for
35006         identical name of all categories.
35007
35008         [BZ #12792]
35009         * libio/filedoalloc.c (local_isatty): New function.
35010         (_IO_file_doallocate): Use local_isatty.
35011         * stdio-common/perror.c (perror): In case a new stream is used
35012         forward the stream error.
35013         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
35014         error flag.
35015
35016 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
35017
35018         [BZ #11869]
35019         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
35020         alloca.
35021         * include/alloca.h (extend_alloca_account): Define.
35022
35023         [BZ #11857]
35024         * posix/regex.h: Fix comments with documentation of user-accessible
35025         fields after compilation and describe correct free'ing of pattern
35026         after re_compile_pattern.
35027         Patch by Reuben Thomas <rrt@sc3d.org>.
35028
35029 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
35030
35031         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
35032         and -mno-altivec to prevent the compiler from using Altivec and/or
35033         VSX instructions when the corresponding registers are not available.
35034
35035 2011-05-19  Andreas Schwab  <schwab@redhat.com>
35036
35037         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
35038
35039 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
35040
35041         * libio/freopen.c (freopen): Use __dup2, not dup2.
35042         * libio/freopen64.c (freopen64): Likewise.
35043
35044 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
35045
35046         [BZ #12775]
35047         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
35048         * math/Makefile (tests): Add test-powl.
35049         (CFLAGS-test-powl.c): Define.
35050         * math/test-powl.c: New file.
35051
35052 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
35053
35054         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
35055
35056 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
35057
35058         [BZ #11837]
35059         * iconvdata/gb18030.c: Update to GB18020-2005.
35060
35061 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
35062
35063         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
35064         RE_SYNTAX_POSIX_AWK): Update to match recent development.
35065         Patch by Aharon Robbins <arnold@skeeve.com>.
35066
35067         [BZ #11892]
35068         * stdlib/putenv.c (putenv): Don't always create copy of the variable
35069         on the stack.
35070
35071         [BZ #11895]
35072         * misc/pselect.c (__pselect): Handle timeout value errors hidden
35073         through underflows.
35074
35075         [BZ #12766]
35076         * misc/error.c (error_at_line): Ensure file_name and old_file_name
35077         point to strings before performing equality test for error_one_per_line
35078         mode.
35079
35080         [BZ #11697]
35081         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
35082
35083         [BZ #11820]
35084         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
35085         (struct user_fpregs_struct): Avoid __uint*_t types.
35086
35087         [BZ #6420]
35088         * malloc/mtrace.c (tr_where): Add additional parameter to point to
35089         symbol info.  Use it instead of calling _dl_addr locally.
35090         (lock_and_info): New function.
35091         (tr_freehook): Call lock_and_info and pass symbol info as additional
35092         parameter to tr_where.
35093         (tr_mallochook): Likewise.
35094         (tr_reallochook): Likewise.
35095         (tr_memalignhook): Likewise.
35096
35097         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
35098         used and couldn't be at all thread-safe.
35099
35100 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
35101
35102         * libio/freopen.c (freopen): Don't close old file descriptor
35103         before the new one is opened.  Instead dup the new file descriptor
35104         to the old one after the new stream is created.
35105         * libio/freopen64.c (freopen64): Likewise.
35106         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
35107         * libio/fileops.c (_IO_new_file_close_it): Handle new
35108         _IO_FLAGS2_NOCLOSE flag.
35109         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
35110         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
35111         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
35112         _IO_FLAGS2_NOCLOSE flag.
35113         * include/unistd.h: Add hidden_proto for dup3.
35114         Define __have_dup3.
35115         * io/dup3.c: Define hidden symbol.
35116         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
35117
35118         [BZ #7101]
35119         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
35120         when an incomplete long option is used.
35121         * posix/tst-getopt_long1.c: New file.
35122         * posix/Makefile (tests): Add tst-getopt_long1.
35123
35124         [BZ #10138]
35125         * scripts/config.guess: Update from autoconf-2.68.
35126         * scripts/config.sub: Likewise.
35127
35128         [BZ #10157]
35129         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
35130         tests into ...
35131         (has_cpuclock): ...this.  New function.
35132         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
35133         macro here based on has_cpuclock code.
35134
35135         [BZ #10149]
35136         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35137         First byte (not low byte) is now always NUL.
35138         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
35139
35140         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
35141         Use non-cancelable interfaces.
35142
35143         [BZ #9809]
35144         * locale/iso-639.def: Add entry for Sorani.
35145
35146         [BZ #11901]
35147         * include/stdlib.h: Move include protection to the right place.
35148         Define abort_msg_s.  Declare __abort_msg with it.
35149         * stdlib/abort.c (__abort_msg): Adjust type.
35150         * assert/assert.c (__assert_fail_base): New function.  Majority
35151         of code from __assert_fail.  Allocate memory for __abort_msg with
35152         mmap.
35153         (__assert_fail): Now call __assert_fail_base.
35154         * assert/assert-perr.c: Remove bulk of implementation.  Use
35155         __assert_fail_base.
35156         * include/assert.hL Declare __assert_fail_base.
35157         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
35158         mmap.
35159         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
35160
35161 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
35162
35163         [BZ #11952]
35164         [BZ #12453]
35165         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
35166         until all modules are registered in the DTV.
35167         * elf/Makefile: Add rules to build and run tst-tls19.
35168         * elf/tst-tls19.c: New file.
35169         * elf/tst-tls19mod1.c: New file.
35170         * elf/tst-tls19mod2.c: New file.
35171         * elf/tst-tls19mod3.c: New file.
35172         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
35173
35174         [BZ #12083]
35175         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
35176         correctly.
35177
35178         [BZ #12601]
35179         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
35180         two-byte sequence errors.
35181         * iconvdata/Makefile (tests): Add bug-iconv8.
35182         * iconvdata/bug-iconv8.c: New file.
35183
35184         [BZ #12626]
35185         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
35186         buf2 definition.
35187
35188         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
35189
35190         [BZ #12432]
35191         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
35192         (dummy_getcfa): New function.
35193         (init): Get _Unwind_GetCFA address, use dummy if not found.
35194         (backtrace_helper): In recursion check, also check whether CFA changes.
35195         (__backtrace): Completely initialize arg.
35196
35197         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
35198         storing incomplete byte sequence in state object.  Avoid testing for
35199         guaranteed too small input if we know there is enough data available.
35200
35201 2011-05-11  Andreas Schwab  <schwab@redhat.com>
35202
35203         * Makeconfig (+link-pie): Indent.
35204         * Rules (binaries-pie): Define if $(have-fpie) and
35205         $(build-shared).
35206         (binaries-shared): Also filter out $(binaries-pie).
35207         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
35208         * nscd/Makefile (others-pie): Add nscd.
35209         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
35210         ($(objpfx)nscd): Remove command override.
35211         * login/Makefile (others-pie): Add pt_chown.
35212         ($(objpfx)pt_chown): Remove command override.
35213         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
35214         remove command overrides.
35215
35216 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
35217
35218         * libio/tst_putwc.c: Fix error messages.
35219
35220         [BZ #12724]
35221         * libio/fileops.c (_IO_new_file_close_it): Always flush when
35222         currently writing and seek to current position when not.
35223         * libio/Makefile (tests): Add bug-fclose1.
35224         * libio/bug-fclose1.c: New file.
35225
35226 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
35227
35228         [BZ #12511]
35229         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
35230         don't set DF_1_NODELETE here.
35231         (do_lookup_x): When entering new entry test for copy relocation
35232         and if necessary set DF_1_NODELETE flag.
35233         * elf/tst-unique4.cc: New file.
35234         * elf/tst-unique4.h: New file.
35235         * elf/tst-unique4lib.cc: New file.
35236         * elf/Makefile: Add rules to build and run tst-unique4.
35237         Patch by Piotr Bury <pbury@goahead.com>.
35238
35239 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
35240
35241         [BZ #12052]
35242         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
35243
35244         [BZ #12625]
35245         * misc/mntent_r.c (addmntent): Flush the stream after the output
35246
35247         [BZ #12393]
35248         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
35249         (is_trusted_path_normalize): Skip initial colon.  Append slash
35250         to empty buffer.  Duplicate is_trusted_path code but allow
35251         constructed patch to be prefix.
35252         (is_dst): Allow $ORIGIN followed by /.
35253         (_dl_dst_substitute): Correct clearing of check_for_trusted.
35254         Correct testing of result of is_trusted_path_normalize
35255         (decompose_rpath): Fix warning.
35256
35257 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
35258
35259         [BZ #11257]
35260         * grp/initgroups.c (internal_getgrouplist): When we found the service
35261         list through the initgroups entry in nsswitch.conf do not always
35262         continue on a successful lookup.  Don't always use the
35263         __nss_group_database value if it is set.
35264         * nss/nsswitch.conf (initgroups): Change action for successful db
35265         lookup to continue for compatibility.
35266
35267 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
35268
35269         [BZ #11532]
35270         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
35271         and CP774 modules.
35272         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
35273         and CP774 modules.
35274         * iconvdata/tst-tables.sh: Likewise.
35275         * iconvdata/cp770.c: New file.
35276         * iconvdata/cp771.c: New file.
35277         * iconvdata/cp772.c: New file.
35278         * iconvdata/cp773.c: New file.
35279         * iconvdata/cp774.c: New file.
35280         * iconvdata/testdata/CP770: New file.
35281         * iconvdata/testdata/CP770..UTF8: New file.
35282         * iconvdata/testdata/CP771: New file.
35283         * iconvdata/testdata/CP771..UTF8: New file.
35284         * iconvdata/testdata/CP772: New file.
35285         * iconvdata/testdata/CP772..UTF8: New file.
35286         * iconvdata/testdata/CP773: New file.
35287         * iconvdata/testdata/CP773..UTF8: New file.
35288         * iconvdata/testdata/CP774: New file.
35289         * iconvdata/testdata/CP774..UTF8: New file.
35290
35291         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
35292         END CHARMAP line.
35293         * iconvdata/gen-8bit-gap.sh: Likewise.
35294         * iconvdata/gen-8bit.sh: Likewise.
35295
35296         * locale/iso-639.def: Add ary entry.
35297
35298         [BZ #11258]
35299         * locale/C-translit.h.in: Add U20A1 transliteration.
35300
35301         [BZ #12178]
35302         * locale/iso-639.def: Add wae entry.
35303         Patch by Kevin Bortis <bortis@translate-wae.ch>.
35304
35305         [BZ #12545]
35306         * locale/programs/localedef.c (construct_output_path): Use ssize_t
35307         for n.
35308
35309         [BZ #12711]
35310         * locale/C-translit.h.in: Add entry for U20B9.
35311         Patch by pravin.d.s@gmail.com.
35312
35313 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
35314
35315         [BZ #12713]
35316         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
35317         ENAMETOOLONG use generic getcwd.
35318         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
35319         in rtld.  Use *stat64.
35320         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
35321         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
35322         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
35323         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
35324         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
35325         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
35326         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
35327         __fstatat64 macros.
35328         * include/dirent.h: Add libc_hidden_proto for rewinddir.
35329         * dirent/rewinddir.c: Add libc_hidden_def.
35330         * sysdeps/mach/hurd/rewinddir.c: Likewise.
35331         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
35332
35333         * include/dirent.h (__alloc_dir): Add flags parameter.
35334         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
35335         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
35336         __alloc_dir.
35337         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
35338         from fdopendir if O_CLOEXEC is already set.
35339
35340 2011-03-15  Alan Modra  <amodra@gmail.com>
35341
35342         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
35343         l_tls_firstbyte_offset non-zero.  Save padding offset in
35344         l_tls_firstbyte_offset for later use.
35345         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
35346         freeing static tls block.
35347
35348 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
35349
35350         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
35351         where #ifdef was intended.  The intent is to prevent ARG_MAX from
35352         being defined by the kernel headers.
35353
35354 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
35355
35356         [BZ #12734]
35357         * resolv/resolv.h: Define RES_NOTLDQUERY.
35358         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
35359         no-tld-query and set RES_NOTLDQUERY.
35360         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
35361         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
35362         modern BIND to search name as TLD unless forbidden.
35363
35364 2011-05-07  Petr Baudis  <pasky@suse.cz>
35365             Ulrich Drepper  <drepper@gmail.com>
35366
35367         [BZ #12393]
35368         * elf/dl-load.c (fillin_rpath): Move trusted path check...
35369         (is_trusted_path): ...to here.
35370         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
35371         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
35372         using is_trusted_path_normalize() in setuid scripts.
35373
35374 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35375
35376         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
35377         __BEGIN/__END_DECLS.
35378
35379 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
35380
35381         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
35382         NSS_STATUS_NOTFOUND if no record was found.
35383
35384 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35385
35386         * sunrpc/Makefile (headers): Add rpc/netdb.h.
35387         (headers-not-in-tirpc): Remove rpc/netdb.h
35388         * resolv/netdb.h: Revert last change.
35389
35390 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
35391
35392         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
35393         circular dependency between libgcc.a and libc.a.
35394
35395 2011-05-05  Andreas Schwab  <schwab@redhat.com>
35396
35397         * resolv/netdb.h: Don't include <rpc/netdb.h>.
35398         * nis/Makefile: Don't install rpcsvc/*.
35399         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
35400         instead of <rpc/types.h>.
35401         (MAXHOSTNAMELEN): Define.
35402
35403 2011-05-03  Andreas Schwab  <schwab@redhat.com>
35404
35405         * elf/ldconfig.c (add_dir): Don't crash on empty path.
35406
35407 2011-04-28  Maciej Babinski  <mbabinski@google.com>
35408
35409         [BZ #12714]
35410         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
35411         gethostbyname4_r when IPv6 results are possible.
35412
35413 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
35414
35415         [BZ #12723]
35416         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
35417         _PC_PIPE_BUF handling.
35418
35419 2011-04-30  Bruno Haible  <bruno@clisp.org>
35420
35421         [BZ #12717]
35422         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
35423         * resolv/netdb.h (getnameinfo): Change type of flags parameter
35424         to 'int'.
35425         * inet/getnameinfo.c (getnameinfo): Likewise.
35426
35427 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
35428
35429         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
35430         to groups setting in database lookup.
35431         * nss/nsswitch.conf: Add initgroups entry.
35432
35433 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
35434
35435         [BZ #12685]
35436         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
35437         mode string.
35438         Patch by Eric Blake <eblake@redhat.com>.
35439
35440 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
35441
35442         * sunrpc/Makefile (need-export-routines): Add svc_run.
35443         (routines): Remove svc_run.
35444         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
35445         * sunrpc/clnt_perr.c (clnt_perrno): Export.
35446         * sunrpc/svc_run.c (svc_run): Likewise.
35447         * sunrpc/svc_udp.c (svcudp_create): Likewise.
35448
35449 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
35450
35451         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
35452         problem in reallocation in last patch.
35453
35454 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
35455
35456         * sunrpc/Makefile: Move inclusion of Rules.
35457
35458 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
35459
35460         * nss/nss_files/files-initgroups.c: New file.
35461         * nss/Makefile (libnss_files-routines): Add files-initgroups.
35462         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
35463         _nss_files_initgroups_dyn.
35464
35465 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
35466
35467         * elf/elf.h (R_ARM_IRELATIVE): Define.
35468
35469 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
35470
35471         * po/ru.po: Update from translation team.
35472
35473 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
35474
35475         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
35476         dependencies.
35477
35478 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
35479
35480         [BZ #12653]
35481         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
35482         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
35483         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35484         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35485         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
35486
35487 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
35488
35489         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
35490         differing bytes.
35491         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
35492         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
35493         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
35494
35495 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
35496
35497         [BZ #12420]
35498         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
35499         storing it.
35500         * stdlib/bug-getcontext.c: New file.
35501         * stdlib/Makefile: Add rules to build and run bug-getcontext.
35502
35503 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35504
35505         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
35506         instructions into .machine "z9-109".
35507         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
35508         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
35509
35510 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35511
35512         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
35513         between environment variables and auxiliary vector.
35514
35515 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
35516
35517         * Makefile: Add rules to build linkobj/libc.so.
35518         * include/libc-symbols.h: Define libc_hidden_nolink.
35519         * include/rpc/auth.h: Mark functions which are to be hidden.
35520         * include/rpc/auth_des.h: Likewise.
35521         * include/rpc/auth_unix.h: Likewise.
35522         * include/rpc/clnt.h: Likewise.
35523         * include/rpc/des_crypt.h: Likewise.
35524         * include/rpc/key_prot.h: Likewise.
35525         * include/rpc/pmap_clnt.h: Likewise.
35526         * include/rpc/pmap_prot.h: Likewise.
35527         * include/rpc/pmap_rmt.h: Likewise.
35528         * include/rpc/rpc_msg.h: Likewise.
35529         * include/rpc/svc.h: Likewise.
35530         * include/rpc/svc_auth.h: Likewise.
35531         * include/rpc/xdr.h: Likewise.
35532         * nis/Makefile: Link all DSOs against linkobj/libc.so.
35533         * nss/Makefile: Likewise.
35534         * sunrpc/Makefile: Don't install headers.  Build library with normal
35535         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
35536         * sunrpc/auth_des.c: Hide exported symbols by default, export some
35537         for the compat linking library.  Remove use of INTDEF/INTUSE.
35538         * sunrpc/auth_none.c: Likewise.
35539         * sunrpc/auth_unix.c: Likewise.
35540         * sunrpc/authdes_prot.c: Likewise.
35541         * sunrpc/authuxprot.c: Likewise.
35542         * sunrpc/clnt_gen.c: Likewise.
35543         * sunrpc/clnt_perr.c: Likewise.
35544         * sunrpc/clnt_raw.c: Likewise.
35545         * sunrpc/clnt_simp.c: Likewise.
35546         * sunrpc/clnt_tcp.c: Likewise.
35547         * sunrpc/clnt_udp.c: Likewise.
35548         * sunrpc/clnt_unix.c: Likewise.
35549         * sunrpc/des_crypt.c: Likewise.
35550         * sunrpc/des_soft.c: Likewise.
35551         * sunrpc/get_myaddr.c: Likewise.
35552         * sunrpc/key_call.c: Likewise.
35553         * sunrpc/key_prot.c: Likewise.
35554         * sunrpc/netname.c: Likewise.
35555         * sunrpc/pm_getmaps.c: Likewise.
35556         * sunrpc/pm_getport.c: Likewise.
35557         * sunrpc/pmap_clnt.c: Likewise.
35558         * sunrpc/pmap_prot.c: Likewise.
35559         * sunrpc/pmap_prot2.c: Likewise.
35560         * sunrpc/pmap_rmt.c: Likewise.
35561         * sunrpc/publickey.c: Likewise.
35562         * sunrpc/rpc_cmsg.c: Likewise.
35563         * sunrpc/rpc_common.c: Likewise.
35564         * sunrpc/rpc_dtable.c: Likewise.
35565         * sunrpc/rpc_prot.c: Likewise.
35566         * sunrpc/rpc_thread.c: Likewise.
35567         * sunrpc/rtime.c: Likewise.
35568         * sunrpc/svc.c: Likewise.
35569         * sunrpc/svc_auth.c: Likewise.
35570         * sunrpc/svc_authux.c: Likewise.
35571         * sunrpc/svc_raw.c: Likewise.
35572         * sunrpc/svc_run.c: Likewise.
35573         * sunrpc/svc_simple.c: Likewise.
35574         * sunrpc/svc_tcp.c: Likewise.
35575         * sunrpc/svc_udp.c: Likewise.
35576         * sunrpc/svc_unix.c: Likewise.
35577         * sunrpc/svcauth_des.c: Likewise.
35578         * sunrpc/xcrypt.c: Likewise.
35579         * sunrpc/xdr.c: Likewise.
35580         * sunrpc/xdr_array.c: Likewise.
35581         * sunrpc/xdr_float.c: Likewise.
35582         * sunrpc/xdr_intXX_t.c: Likewise.
35583         * sunrpc/xdr_mem.c: Likewise.
35584         * sunrpc/xdr_rec.c: Likewise.
35585         * sunrpc/xdr_ref.c: Likewise.
35586         * sunrpc/xdr_sizeof.c: Likewise.
35587         * sunrpc/xdr_stdio.c: Likewise.
35588
35589 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
35590
35591         [BZ #12650]
35592         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
35593         * sysdeps/ia64/dl-tls.h: Likewise.
35594         * sysdeps/powerpc/dl-tls.h: Likewise.
35595         * sysdeps/s390/dl-tls.h: Likewise.
35596         * sysdeps/sh/dl-tls.h: Likewise.
35597         * sysdeps/sparc/dl-tls.h: Likewise.
35598         * sysdeps/x86_64/dl-tls.h: Likewise.
35599         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
35600
35601 2011-03-14  Andreas Schwab  <schwab@redhat.com>
35602
35603         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
35604         rpath element also skip the following colon.
35605         (expand_dynamic_string_token): Add is_path parameter and pass
35606         down to DL_DST_REQUIRED and _dl_dst_substitute.
35607         (decompose_rpath): Call expand_dynamic_string_token with
35608         non-zero is_path.  Ignore empty rpaths.
35609         (_dl_map_object_from_fd): Call expand_dynamic_string_token
35610         with zero is_path.
35611
35612 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
35613
35614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
35615         Make cancelable.
35616
35617 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
35618
35619         [BZ #12655]
35620         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
35621         Patch by Filipe David Manana <fdmanana@apache.org>.
35622
35623 2011-04-07  Andreas Schwab  <schwab@redhat.com>
35624
35625         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
35626         Maintain aligned stack.
35627         (CHECK_RSP): Remove unused macro.
35628
35629 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
35630
35631         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
35632         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
35633
35634 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
35635
35636         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
35637
35638         * include/features.h: Mention __USE_XOPEN2K8 in comment.
35639
35640 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
35641
35642         [BZ #12518]
35643         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
35644         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
35645         * sysdeps/x86_64/memmove.c: New file.
35646         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
35647         (memcpy): Renamed to ...
35648         (__new_memcpy): This.
35649         (memcpy): Provide GLIBC_2_14 memcpy.
35650         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
35651         (memcpy): Provide GLIBC_2_2_5 memcpy.
35652
35653 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35654
35655         [BZ #12631]
35656         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
35657
35658 2011-03-30  Andreas Schwab  <schwab@redhat.com>
35659
35660         * misc/syncfs.c: New file.
35661         * misc/Makefile (routines): Add syncfs.
35662         * posix/unistd.h: Declare syncfs.
35663         * sysdeps/unix/syscalls.list: Add syncfs.
35664
35665 2011-04-01  Andreas Schwab  <schwab@redhat.com>
35666
35667         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
35668         open_by_handle_at.
35669         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
35670         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35671         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35672         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35673         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35674         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
35675         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35676
35677 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35678
35679         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
35680         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35681         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
35682         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35683         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35684         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35685         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35686
35687         * io/Makefile: Compile fallocate.c, fallocate64.c, and
35688         sync_file_range.c with -fexceptions.
35689         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
35690         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
35691         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
35692         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
35693         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
35694         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
35695         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
35696         sync_file_range as cancellation point
35697         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
35698         now a wrapper around __call_sync_file_range with cancellation handling.
35699         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
35700         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
35701         function name to __call_sync_file_range.
35702         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
35703         Add call_sync_file_range.
35704
35705 2011-04-01  Andreas Schwab  <schwab@redhat.com>
35706
35707         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
35708         bits/timex.h.
35709
35710 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
35711
35712         * iconv/iconv.h: Fix typo in comment.
35713         * io/fcntl.h: Likewise.
35714         * libio/stdio.h: Likewise.
35715         * posix/spawn.h: Likewise.
35716         * posix/unistd.h: Likewise.
35717         * stdlib/stdlib.h: Likewise.
35718         * time/time.h: Likewise.
35719         * wcsmbs/wchar.h: Likewise.
35720
35721         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
35722         open_by_handle): Add.
35723         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
35724         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
35725         Augment a few comments.
35726         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
35727         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35728         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35729         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35730         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35731         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
35732         open_by_handle.
35733
35734         * io/fcntl.h (AT_EMPTY_PATH): Define.
35735
35736 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
35737
35738         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
35739         * sysdeps/unix/sysv/linux/bits/time.h: New file.
35740         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
35741         to...
35742         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
35743         * Versions.def: Add GLIBC_2.14.
35744         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
35745         Export.
35746
35747 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
35748
35749         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
35750         round counter.
35751         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
35752
35753 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35754
35755         [BZ #12597]
35756         * string/test-strncmp.c (do_page_test): New function.
35757         (check2): Likewise.
35758         (test_main): Call check2.
35759         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
35760
35761 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
35762
35763         [BZ #12587]
35764         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
35765         Handle cache information in CPU leaf 4.
35766         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
35767
35768 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
35769
35770         [BZ #12583]
35771         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
35772         character representation.
35773         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
35774
35775 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
35776
35777         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
35778         END(__isnan) to END(__isnanf) to match function entry point/label
35779         EALIGN(__isnanf,...).
35780
35781 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
35782
35783         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
35784
35785 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
35786
35787         [BZ #12510]
35788         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
35789         copy from the symbol referenced in the relocation to initialize the
35790         used variable.
35791         Patch by Piotr Bury <pbury@goahead.com>.
35792         * elf/Makefile: Add rules to build and tst-unique3.
35793         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
35794         * elf/tst-unique3.cc: New file.
35795         * elf/tst-unique3.h: New file.
35796         * elf/tst-unique3lib.cc: New file.
35797         * elf/tst-unique3lib2.cc: New file.
35798
35799         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
35800
35801 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
35802
35803         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
35804         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
35805         to _start.
35806
35807 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
35808
35809         * elf/dl-load.c (_dl_map_object): If we are looking for the first
35810         to-be-loaded object along a path to loader is ld.so.
35811
35812 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
35813             Ulrich Drepper  <drepper@gmail.com>
35814
35815         * sysdeps/x86_64/memset.S: After aligning destination, code
35816         branches to different locations depending on the value of
35817         misalignment, when multiarch is enabled. Fix this.
35818
35819 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
35820
35821         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
35822         Set _x86_64_preferred_memory_instruction for AMD processsors.
35823         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35824         Set bit_Prefer_SSE_for_memop for AMD processors.
35825
35826 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
35827
35828         * libio/fmemopen.c (fmemopen): Optimize a bit.
35829
35830 2011-03-03  Andreas Schwab  <schwab@redhat.com>
35831
35832         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
35833
35834 2011-03-03  Roland McGrath  <roland@redhat.com>
35835
35836         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
35837
35838 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
35839
35840         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
35841         __bzero_ultra1 instead of __memset_ultra1.
35842
35843 2011-02-23  Andreas Schwab  <schwab@redhat.com>
35844             Ulrich Drepper  <drepper@gmail.com>
35845
35846         [BZ #12509]
35847         * include/link.h (struct link_map): Add l_orig_initfini.
35848         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
35849         returning unsuccessfully.
35850         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
35851         close of a file loaded at startup, restore the original l_initfini
35852         list.
35853         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
35854         list, store the pointer.
35855         * elf/Makefile ($(objpfx)noload-mem): New rule.
35856         (noload-ENV): Define.
35857         (tests): Add $(objpfx)noload-mem.
35858         * elf/noload.c: Include <memcheck.h>.
35859         (main): Call mtrace.  Close all opened handles.
35860
35861 2011-02-17  Andreas Schwab  <schwab@redhat.com>
35862
35863         [BZ #12454]
35864         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
35865         dependencies are missing.
35866
35867 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35868
35869         Fix __if_freereq crash: Unlike the generic version which uses free,
35870         Hurd needs munmap.
35871         * sysdeps/mach/hurd/ifreq.h: New file.
35872
35873 2011-01-27  Petr Baudis  <pasky@suse.cz>
35874             Ulrich Drepper  <drepper@gmail.com>
35875
35876         [BZ 12445]#
35877         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
35878         to extend_alloca().
35879         * stdio-common/bug23.c: New file.
35880         * stdio-common/Makefile (tests): Add bug23.
35881
35882 2010-09-28  Andreas Schwab  <schwab@redhat.com>
35883             Ulrich Drepper  <drepper@gmail.com>
35884
35885         [BZ #12489]
35886         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
35887         before performing relro protection.  At old place add assertion
35888         to make sure nothing changed.
35889
35890 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
35891             Glauber de Oliveira Costa  <glommer@gmail.com>
35892
35893         * elf/elf.h: Add new ARM TLS relocs.
35894
35895 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
35896
35897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
35898         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
35899         cast from r3.
35900         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
35901         'tests' variable.
35902         * sysdeps/wordsize-64/tst-writev.c: New file.
35903
35904 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
35905
35906         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
35907         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
35908         insns in _dl_start to prevent a TOC reference before relocs are
35909         resolved.
35910
35911 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
35912
35913         [BZ #12469]
35914         * Makeconfig: Remove RANLIB definition.
35915         * Makerules: Don't use RANLIB.
35916         * aclocal.m4: Remove ranlib test.
35917         * configure.in: No need to check for ranlib.
35918         * elf/rtld-Rules: Don't use RANLIB.
35919
35920 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35921
35922         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
35923         protection macro.
35924         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
35925         inclusion protection macro.
35926
35927         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
35928         SIGRTMIN and SIGRTMAX and print information in that case only when
35929         SIGRTMIN is defined.
35930
35931 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
35932
35933         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
35934         arginfo fn returning -1.
35935
35936         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
35937         and thousands string is zero terminated.
35938
35939 2011-02-03  Andreas Schwab  <schwab@redhat.com>
35940
35941         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
35942         sysdeps/unix/sysv/linux/bits/socket.h.
35943
35944 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35945
35946         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
35947         (__CPU_COUNT): Remove old macros.
35948         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
35949         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
35950         (__CPU_ALLOC, __CPU_FREE): Add macros.
35951         (__sched_cpualloc, __sched_cpufree): Add declarations.
35952
35953 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
35954
35955         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
35956         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
35957         * nscd/aicache.c (addhstaiX): Return timeout of added value.
35958         (readdhstai): Return value of addhstaiX call.
35959         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
35960         (addgrbyX): Return value returned by cache_addgr.
35961         (readdgrbyname): Return value returned by addgrbyX.
35962         (readdgrbygid): Likewise.
35963         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
35964         (addpwbyX): Return value returned by cache_addpw.
35965         (readdpwbyname): Return value returned by addhstbyX.
35966         (readdpwbyuid): Likewise.
35967         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
35968         (addservbyX): Return value returned by cache_addserv.
35969         (readdservbyname): Return value returned by addservbyX:
35970         (readdservbyport): Likewise.
35971         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
35972         (addhstbyX): Return value returned by cache_addhst.
35973         (readdhstbyname): Return value returned by addhstbyX.
35974         (readdhstbyaddr): Likewise.
35975         (readdhstbynamev6): Likewise.
35976         (readdhstbyaddrv6): Likewise.
35977         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
35978         (readdinitgroups): Return value returned by addinitgroupsX.
35979         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
35980         (prune_cache): Keep track of timeout value of re-added entries.
35981         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
35982         * nscd/nscd.h: Adjust prototypes of readd* functions.
35983
35984 2011-02-04  Roland McGrath  <roland@redhat.com>
35985
35986         * nis/nis_server.c (nis_servstate): Use the right name for 0.
35987         (nis_stats): Likewise.
35988         * nis/nis_modify.c (nis_modify): Likewise.
35989         * nis/nis_remove.c (nis_remove): Likewise.
35990         * nis/nis_add.c (nis_add): Likewise.
35991
35992         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
35993
35994         * posix/fnmatch_loop.c: Add some consts.
35995
35996         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
35997
35998 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
35999
36000         [BZ #12460]
36001         * config.make.in (config-cflags-novzeroupper): Define.
36002         * configure.in: Substitute libc_cv_cc_novzeroupper.
36003         * elf/Makefile (AVX-CFLAGS): Define.
36004         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
36005         (CFLAGS-tst-auditmod4a.c): Likewise.
36006         (CFLAGS-tst-auditmod4b.c): Likewise.
36007         (CFLAGS-tst-auditmod6b.c): Likewise.
36008         (CFLAGS-tst-auditmod6c.c): Likewise.
36009         (CFLAGS-tst-auditmod7b.c): Likewise.
36010         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
36011
36012 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
36013
36014         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
36015         function to the callback.
36016         Patch partly by Jiri Olsa <jolsa@redhat.com>.
36017
36018 2011-02-02  Andreas Schwab  <schwab@redhat.com>
36019
36020         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
36021         of errno.
36022
36023 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
36024
36025         [BZ #11724]
36026         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
36027         of constructors.
36028         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
36029         of destructors.
36030         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
36031
36032         [BZ #11724]
36033         * elf/Makefile: Add rules to build and run new test.
36034         * elf/tst-initorder.c: New file.
36035         * elf/tst-initorder.exp: New file.
36036         * elf/tst-initordera1.c: New file.
36037         * elf/tst-initordera2.c: New file.
36038         * elf/tst-initordera3.c: New file.
36039         * elf/tst-initordera4.c: New file.
36040         * elf/tst-initorderb1.c: New file.
36041         * elf/tst-initorderb2.c: New file.
36042         * elf/tst-order-a1.c: New file.
36043         * elf/tst-order-a2.c: New file.
36044         * elf/tst-order-a3.c: New file.
36045         * elf/tst-order-a4.c: New file.
36046         * elf/tst-order-b1.c: New file.
36047         * elf/tst-order-b2.c: New file.
36048         * elf/tst-order-main.c: New file.
36049         New test case by George Gensure <werkt0@gmail.com>.
36050
36051 2010-10-01  Andreas Schwab  <schwab@redhat.com>
36052
36053         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
36054         decoding ACE if AI_CANONIDN.
36055
36056 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
36057
36058         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
36059
36060 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
36061
36062         * version.h (RELEASE): Bump for 2.13 release.
36063         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
36064
36065         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
36066
36067         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
36068         MADV_NOHUGEPAGE.
36069         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
36070         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
36071         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36072         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36073         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36074         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36075
36076         * posix/getconf.c: Update copyright year.
36077         * catgets/gencat.c: Likewise.
36078         * csu/version.c: Likewise.
36079         * debug/catchsegv.sh: Likewise.
36080         * debug/xtrace.sh: Likewise.
36081         * elf/ldconfig.c: Likewise.
36082         * elf/ldd.bash.in: Likewise.
36083         * elf/sprof.c (print_version): Likewise.
36084         * iconv/iconv_prog.c: Likewise.
36085         * iconv/iconvconfig.c: Likewise.
36086         * locale/programs/locale.c: Likewise.
36087         * locale/programs/localedef.c: Likewise.
36088         * malloc/memusage.sh: Likewise.
36089         * malloc/mtrace.pl: Likewise.
36090         * nscd/nscd.c (print_version): Likewise.
36091         * nss/getent.c: Likewise.
36092
36093         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
36094         PF_CAIF, and PF_ALG.
36095         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
36096
36097 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
36098
36099         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
36100         (modules-names): Use them.
36101         (ifunc-test-modules, ifunc-pie-tests): Define.
36102         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
36103         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
36104         (test-extras): Likewise.
36105         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
36106         $(compile-command.c).
36107         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
36108         (all-built-dso): Define.
36109         (check-textrel.out, check-execstack.out): Depend on it.
36110
36111         * configure.in: Don't override --enable-multi-arch.
36112
36113 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
36114
36115         [BZ #6812]
36116         * nscd/hstcache.c (tryagain): Define.
36117         (cache_addhst): Return tryagain not notfound for temporary errors.
36118         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
36119         failed.
36120
36121 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
36122
36123         [BZ #10563]
36124         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
36125         to make the syscall.
36126         * sysdeps/unix/sysv/linux/setgroups.c: New file.
36127
36128         [BZ #12378]
36129         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
36130         and fall back to matching as normal character if the string ends before
36131         the matching ']' is found.  This is what POSIX requires.
36132         * posix/testfnm.c: Adjust test result.
36133         * posix/globtest.sh: Adjust test result.  Add new test.
36134         * posix/tst-fnmatch.input: Likewise.
36135         * posix/tst-fnmatch2.c: Add new test.
36136
36137 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
36138
36139         * elf/Makefile (check-execstack): Revert last change.  Depend on
36140         check-execstack.h.
36141         (check-execstack.h): New target.
36142         (generated): Add check-execstack.h.
36143         * elf/check-execstack.c: Include "check-execstack.h".
36144         (main): Revert last change.
36145         (handle_file): Return zero if GNU_STACK is absent and
36146         DEFAULT_STACK_PERMS doesn't include PF_X.
36147
36148 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
36149
36150         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
36151         in child fails because the descriptor is already closed.
36152         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
36153         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
36154         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
36155
36156         [BZ #12397]
36157         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
36158         syscall.
36159
36160         [BZ #10484]
36161         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
36162         temporary buffer used to handle multi lookups locally.
36163         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
36164
36165 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36166
36167         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
36168         loader is ld.so.
36169
36170 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
36171
36172         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
36173         alignment for SSE2.
36174
36175 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
36176
36177         [BZ #12394]
36178         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
36179         characters.  When rounding increased number of integer digits recompute
36180         number of groups.
36181         * stdio-common/tst-grouping.c: New file.
36182         * stdio-common/Makefile: Add rules to build and run tst-grouping.
36183
36184 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
36185
36186         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
36187         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
36188
36189         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
36190         void.
36191         * bits/select.h: Likewise.
36192
36193 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
36194
36195         * po/ja.po: Update from translation team.
36196
36197 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
36198
36199         [BZ #11155]
36200         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
36201         implementation just like for lxstat, fxstatat, et al.
36202
36203 2010-12-27  Jim Meyering  <meyering@redhat.com>
36204
36205         [BZ #12348]
36206         * posix/regexec.c (build_trtable): Return failure indication upon
36207         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
36208
36209 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
36210
36211         [BZ #12201]
36212         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
36213         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
36214         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
36215         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
36216
36217         [BZ #12207]
36218         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
36219
36220         [BZ #12204]
36221         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
36222         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
36223
36224 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
36225
36226         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
36227         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
36228         script has SORT_BY_INIT_PRIORITY.
36229         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
36230         NO_CTORS_DTORS_SECTIONS is defined.
36231         * elf/soinit.c: Likewise.
36232         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
36233         NO_CTORS_DTORS_SECTIONS is defined.
36234         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
36235         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
36236         * sysdeps/sh/init-first.c: Likewise.
36237         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
36238
36239 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
36240
36241         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
36242         always use the slow path.
36243
36244 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
36245
36246         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
36247         similar rule which adds the sysdep directories to the header search in
36248         order to pick up the correct platform stackinfo.h.
36249         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
36250         perform test if it is, otherwise return successfully without testing.
36251         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
36252         DEFAULT_STACK_PERMS define in stackinfo.h.
36253         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
36254         defined in stackinfo.h.
36255         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
36256         DEFAULT_STACK_PERMS defined in stackinfo.h.
36257         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
36258         * sysdeps/ia64/stackinfo.h: Likewise.
36259         * sysdeps/s390/stackinfo.h: Likewise.
36260         * sysdeps/sh/stackinfo.h: Likewise.
36261         * sysdeps/sparc/stackinfo.h: Likewise.
36262         * sysdeps/x86_64/stackinfo.h: Likewise.
36263         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
36264         PF_X for powerpc64.  Retain PF_X for powerpc32.
36265
36266 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
36267
36268         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
36269         accurately.
36270         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
36271         GETDENTS_64BIT_ALIGNED.
36272
36273 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
36274
36275         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
36276
36277 2010-12-10  Andreas Schwab  <schwab@redhat.com>
36278
36279         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
36280         _GNU_SOURCE.
36281
36282         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
36283         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
36284         Remove __restrict.
36285         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
36286         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
36287
36288 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
36289
36290         [BZ #11655]
36291         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
36292         are initialized.
36293
36294 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
36295
36296         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
36297
36298 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
36299
36300         * po/it.po: Update from translation team.
36301
36302 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
36303
36304         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
36305         unused codes.
36306
36307 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
36308
36309         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
36310
36311 2010-11-24  Andreas Schwab  <schwab@redhat.com>
36312
36313         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
36314         specially.
36315         (gaih_getanswer_slice): Likewise.
36316
36317 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
36318
36319         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
36320
36321 2010-05-31  Petr Baudis  <pasky@suse.cz>
36322
36323         [BZ #11149]
36324         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
36325         silently even in the chroot mode.
36326
36327 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
36328
36329         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
36330         last patch a bit.  Pretty printing
36331
36332 2010-05-31  Petr Baudis <pasky@suse.cz>
36333
36334         [BZ #10085]
36335         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
36336         initialization of skip_initgroups_dyn.
36337
36338 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
36339
36340         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
36341         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
36342
36343 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
36344
36345         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
36346
36347 2010-11-11  Andreas Schwab  <schwab@redhat.com>
36348
36349         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
36350         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
36351         (tst-fnmatch-ENV): Set MALLOC_TRACE.
36352         ($(objpfx)tst-fnmatch-mem): New rule.
36353         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
36354         * posix/tst-fnmatch.c (main): Call mtrace.
36355
36356 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
36357
36358         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36359         Support Intel processor model 6 and model 0x2c.
36360
36361 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
36362
36363         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
36364           signed comparison.
36365
36366 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
36367
36368         [BZ #12205]
36369         * string/test-strncasecmp.c (check_result): New function.
36370         (do_one_test): Use it.
36371         (check1): New function.
36372         (test_main): Use it.
36373         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
36374         Support strcasecmp and strncasecmp.
36375
36376 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
36377
36378         [BZ #12194]
36379         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
36380         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36381
36382 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
36383
36384         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
36385         IFUNC support.
36386         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36387         memset-x86-64.
36388         * sysdeps/x86_64/multiarch/bzero.S: New file.
36389         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
36390         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
36391         * sysdeps/x86_64/multiarch/memset.S: New file.
36392         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
36393         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
36394         Set bit_Prefer_SSE_for_memop for Intel processors.
36395         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
36396         Define.
36397         (index_Prefer_SSE_for_memop): Define.
36398         (HAS_PREFER_SSE_FOR_MEMOP): Define.
36399
36400 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
36401
36402         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
36403         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
36404
36405 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
36406
36407         [BZ #12191]
36408         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
36409         (__x86_64_raw_data_cache_size_half): Likewise.
36410         (__x86_64_raw_shared_cache_size): Likewise.
36411         (__x86_64_raw_shared_cache_size_half): Likewise.
36412
36413         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
36414         (__x86_64_raw_data_cache_size_half): Likewise.
36415         (__x86_64_raw_shared_cache_size): Likewise.
36416         (__x86_64_raw_shared_cache_size_half): Likewise.
36417         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
36418         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
36419         and __x86_64_raw_shared_cache_size_half.  Round
36420         __x86_64_data_cache_size_half, __x86_64_data_cache_size
36421         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
36422         to multiple of 256 bytes.
36423
36424 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
36425
36426         [BZ #12167]
36427         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
36428         of inacessible symlinks.  Verify result of symlink before returning it.
36429         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
36430         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
36431
36432 2010-10-28  Erich Ritz  <erichritz@gmail.com>
36433
36434         * math/math.h (isinf): Fix typo in comment.
36435
36436 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
36437
36438         * po/da.po: Update from translation team.
36439
36440 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
36441
36442         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
36443         is added to the list.
36444
36445 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36446             Ulrich Drepper  <drepper@gmail.com>
36447
36448         * elf/dl-object.c (_dl_new_object): Don't append the new object to
36449         the global list here.  Move code to...
36450         (_dl_add_to_namespace_list): ...here.  New function.
36451         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
36452         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
36453         * elf/dl-load.c (lose): Don't remove the element from the list.
36454         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
36455         (_dl_map_object): Likewise.
36456
36457 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
36458
36459         [BZ #12159]
36460         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
36461         into all bytes of SSE register.
36462         Patch by Richard Li <richardpku@gmail.com>.
36463
36464 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
36465
36466         [BZ #12140]
36467         * malloc/malloc.c (_int_free): Fill correct number of bytes when
36468         perturbing.
36469
36470 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
36471
36472         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
36473         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
36474         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
36475         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
36476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
36477         submachine.
36478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
36479
36480 2010-10-22  Andreas Schwab  <schwab@redhat.com>
36481
36482         * include/dlfcn.h (__RTLD_SECURE): Define.
36483         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
36484         mode & __RTLD_SECURE instead.
36485         (open_path): Rename preloaded parameter to secure.
36486         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
36487         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
36488         * elf/dl-deps.c (openaux): Likewise.
36489         * elf/rtld.c (struct map_args): Remove is_preloaded.
36490         (map_doit): Don't use it.
36491         (dl_main): Likewise.
36492         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
36493         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
36494
36495 2010-09-09  Andreas Schwab  <schwab@redhat.com>
36496
36497         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
36498         (sysd-rules-targets): Remove duplicates.
36499         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
36500         rtld-%.$o dependency.
36501
36502 2010-10-18  Andreas Schwab  <schwab@redhat.com>
36503
36504         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
36505         _dl_map_object do it.
36506
36507 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
36508
36509         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
36510         fast fma builtins, define the macros in the C99 standard.
36511         (FP_FAST_FMAF): Likewise.
36512         (FP_FAST_FMAL): Likewise.
36513         * sysdeps/x86_64/bits/mathdef.h: Likewise.
36514
36515         * bits/mathdef.h: Update copyright year.
36516         * sysdeps/powerpc/bits/mathdef.h: Likewise.
36517
36518 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
36519
36520         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
36521         builtins, define the macros in the C99 standard.
36522         (FP_FAST_FMAF): Likewise.
36523         (FP_FAST_FMAL): Likewise.
36524         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
36525         multiply/add.
36526         (FP_FAST_FMAF): Likewise.
36527
36528 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
36529
36530         [BZ #3268]
36531         * math/libm-test.inc (fma_test): Some new testcases.
36532         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
36533         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
36534         y and infinite z.  Do multiplication by C already in long double.
36535         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
36536         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
36537         y and infinite z.  Do bitwise or of inexact bit into u.d.
36538         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
36539         * sysdeps/i386/fpu/s_fmaf.S: Removed.
36540         * sysdeps/i386/fpu/s_fma.S: Removed.
36541         * sysdeps/i386/fpu/s_fmal.S: Removed.
36542
36543 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
36544
36545         [BZ #3268]
36546         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
36547         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
36548         computation is not scheduled after fetestexcept.  Fix value
36549         of minimum denormal long double.
36550
36551 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
36552
36553         [BZ #3268]
36554         * math/libm-test.inc (fma_test): Add some more tests.
36555         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
36556         correctly.
36557
36558 2010-10-15  Andreas Schwab  <schwab@redhat.com>
36559
36560         * scripts/data/localplt-s390-linux-gnu.data: New file.
36561         * scripts/data/localplt-s390x-linux-gnu.data: New file.
36562
36563 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
36564
36565         [BZ #3268]
36566         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
36567         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
36568         instead of dbl-64.
36569         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
36570         inlines.
36571         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
36572         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
36573         if one of x and y is very large and the other is subnormal.
36574         * sysdeps/s390/fpu/s_fmaf.c: New file.
36575         * sysdeps/s390/fpu/s_fma.c: New file.
36576         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
36577         * sysdeps/powerpc/fpu/s_fma.S: New file.
36578         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
36579         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
36580         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
36581
36582 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
36583
36584         [BZ #3268]
36585         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
36586         fma tests.
36587         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
36588         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
36589         * sysdeps/i386/i686/multiarch/s_fma.c: Include
36590         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
36591         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
36592         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
36593         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
36594
36595 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
36596
36597         [BZ #12078]
36598         * posix/regcomp.c (parse_branch): One more memory leak plugged.
36599         * posix/bug-regex31.input: Add test case.
36600
36601 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
36602
36603         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
36604         * posix/bug-regex31.input: New file.
36605
36606         [BZ #12078]
36607         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
36608         (parse_sub_exp): Fix last change, use postorder.
36609
36610         * posix/bug-regex31.c: New file.
36611         * posix/Makefile: Add rules to build and run bug-regex31.
36612
36613         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
36614
36615         [BZ #12078]
36616         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
36617
36618         [BZ #12108]
36619         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
36620         to have entries in sys_siglist.
36621
36622         [BZ #12093]
36623         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
36624         be NULL.
36625
36626 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
36627
36628         [BZ #3268]
36629         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
36630         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
36631         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
36632         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
36633         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
36634         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
36635         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
36636         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
36637         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
36638         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
36639         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
36640         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
36641         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36642         * math/ftestexcept.c (fetestexcept): Likewise.
36643         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
36644         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
36645         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
36646         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
36647         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
36648         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
36649         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
36650
36651 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
36652
36653         [BZ #12107]
36654         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
36655         newline.
36656
36657 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
36658
36659         * string/bug-strstr1.c: New file.
36660         * string/Makefile: Add rules to build and run bug-strstr1.
36661
36662 2010-10-05  Eric Blake  <eblake@redhat.com>
36663
36664         [BZ #12092]
36665         * string/str-two-way.h (two_way_long_needle): Always clear memory
36666         when skipping input due to the shift table.
36667
36668 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
36669
36670         [BZ #12005]
36671         * malloc/mcheck.c: Handle large requests.
36672
36673         [BZ #12077]
36674         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
36675         for strncmp and strncasecmp.
36676         * string/stratcliff.c: Add tests for strcmp and strncmp.
36677         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
36678
36679 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36680
36681         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
36682         __set_fpscr.
36683
36684 2010-09-30  Andreas Jaeger  <aj@suse.de>
36685
36686         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
36687         (CGROUP_SUPER_MAGIC): Define.
36688         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
36689         Handle btrfs and cgroup file systems.
36690         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
36691         Likewise.
36692
36693 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
36694
36695         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
36696         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
36697
36698 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36699
36700         [BZ #12067]
36701         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
36702         trying to locate the ELF header.
36703
36704 2010-09-27  Andreas Schwab  <schwab@redhat.com>
36705
36706         [BZ #11611]
36707         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
36708         Mask out sign-bit copies when constructing f_fsid.
36709
36710 2010-09-24  Petr Baudis <pasky@suse.cz>
36711
36712         * debug/stack_chk_fail_local.c: Add missing licence exception.
36713         * debug/warning-nop.c: Likewise.
36714
36715 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
36716
36717         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
36718         implementing getdents64 using getdents syscall, set d_type if
36719         __ASSUME_GETDENTS32_D_TYPE.
36720
36721 2010-09-16  Andreas Schwab  <schwab@redhat.com>
36722
36723         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
36724         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
36725
36726 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
36727
36728         [BZ #12037]
36729         * posix/unistd.h: Undo change of feature selection for ftruncate from
36730         2010-01-11.
36731
36732 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
36733
36734         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
36735         detection.
36736
36737 2010-09-20  Andreas Schwab  <schwab@redhat.com>
36738
36739         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
36740         fanotify_mark.
36741         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
36742
36743 2010-09-14  Andreas Schwab  <schwab@redhat.com>
36744
36745         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
36746         variables after CHECK_SP call.
36747         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
36748
36749 2010-09-13  Andreas Schwab  <schwab@redhat.com>
36750             Ulrich Drepper  <drepper@redhat.com>
36751
36752         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
36753         re-relocationg ld.so.
36754         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
36755         _dl_init_paths call.
36756         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
36757         here anymore.
36758
36759 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
36760
36761         * resolv/res_init.c (__res_vinit): Count the default server we added.
36762
36763 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
36764             Ulrich Drepper  <drepper@redhat.com>
36765
36766         [BZ #11968]
36767         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
36768         (____longjmp_chk): Use %ebx for saving value across system call.
36769         Add unwind info.
36770
36771 2010-09-06  Andreas Schwab  <schwab@redhat.com>
36772
36773         * manual/Makefile: Don't mix pattern rules with normal rules.
36774
36775 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
36776
36777         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
36778         operation.
36779         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
36780         * libio/iofopncook.c (_IO_cookie_init): Likewise.
36781         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
36782         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
36783         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
36784         Likewise.
36785
36786 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
36787
36788         [BZ #11979]
36789         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
36790         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
36791
36792 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
36793
36794         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
36795         * sysdeps/x86_64/addmul_1.S: Likewise.
36796         * sysdeps/x86_64/lshift.S: Likewise.
36797         * sysdeps/x86_64/mul_1.S: Likewise.
36798         * sysdeps/x86_64/rshift.S: Likewise.
36799         * sysdeps/x86_64/sub_n.S: Likewise.
36800         * sysdeps/x86_64/submul_1.S: Likewise.
36801
36802 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
36803
36804         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
36805         Define __sched_param instead of SCHED_* and sched_param when
36806         <bits/sched.h> is included with __need_schedparam defined.
36807         * bits/sched.h [__need_schedparam]
36808         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
36809         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
36810         (__defined_schedparam): Define to 1.
36811         (__sched_param): New structure, identical to sched_param.
36812         (__need_schedparam): Undefine.
36813
36814 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
36815
36816         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
36817         (epoll_create1): Declare.
36818
36819         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
36820
36821 2010-08-31  Andreas Schwab  <schwab@redhat.com>
36822
36823         [BZ #7066]
36824         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
36825         shifting retval into place.
36826
36827 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
36828
36829         * nis/rpcsvc/nis.h: Update copyright notice.
36830         * nis/rpcsvc/nis.x: Likewise.
36831         * nis/rpcsvc/nis_callback.h: Likewise.
36832         * nis/rpcsvc/nis_callback.x: Likewise.
36833         * nis/rpcsvc/nis_object.x: Likewise.
36834         * nis/rpcsvc/nis_tags.h: Likewise.
36835         * nis/rpcsvc/yp.h: Likewise.
36836         * nis/rpcsvc/yp.x: Likewise.
36837         * nis/rpcsvc/ypupd.h: Likewise.
36838         * nis/yp_xdr.c: Likewise.
36839         * nis/ypupdate_xdr.c: Likewise.
36840
36841         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
36842         mainly the body of pmap_getport.  Add parameters to specify timeouts.
36843         (pmap_getport): Use __libc_rpc_getport.
36844         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
36845         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
36846         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
36847
36848 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
36849
36850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
36851         fanotify_mark.
36852
36853 2010-08-27  Roland McGrath  <roland@redhat.com>
36854
36855         * sysdeps/i386/i686/multiarch/Makefile
36856         (CFLAGS-varshift.c): New variable.
36857
36858 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
36859
36860         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
36861         * sysdeps/i386/i686/multiarch/varshift.c: New file.
36862
36863         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
36864
36865         * sysdeps/x86_64/strlen.S: Minimal code improvement.
36866
36867 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
36868
36869         * sysdeps/x86_64/strlen.S: Unroll the loop.
36870         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
36871         strlen-sse2 strlen-sse2-bsf.
36872         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
36873         __strlen_no_bsf if bit_Slow_BSF is set.
36874         (__strlen_sse42): Removed.
36875         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
36876         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
36877
36878 2010-08-25  Roland McGrath  <roland@redhat.com>
36879
36880         * sysdeps/x86_64/multiarch/varshift.S: File removed.
36881         * sysdeps/x86_64/multiarch/varshift.c: New file.
36882         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
36883         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
36884         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
36885         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
36886
36887 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
36888
36889         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36890         strlen-sse2 strlen-sse2-bsf.
36891         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
36892         __strlen_sse2_bsf if bit_Slow_BSF is unset.
36893         (__strlen_sse2): Removed.
36894         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
36895         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
36896         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
36897         bit_Slow_BSF for Atom.
36898         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
36899         (index_Slow_BSF): Define.
36900         (HAS_SLOW_BSF): Define.
36901
36902 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
36903
36904         [BZ #10851]
36905         * resolv/res_init.c (__res_vinit): When no server address at all
36906         is given default to loopback.
36907
36908 2010-08-24  Roland McGrath  <roland@redhat.com>
36909
36910         * configure.in: Remove config-name.h generation.
36911         * configure: Regenerated.
36912         * config-name.in: File removed.
36913         * scripts/config-uname.sh: New file.
36914         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
36915         ($(objdir)config-name.h): New target.
36916
36917         * sunrpc/rpc_parse.h: Avoid nested comment.
36918
36919 2010-08-24  Richard Henderson  <rth@redhat.com>
36920             Ulrich Drepper  <drepper@redhat.com>
36921             H.J. Lu  <hongjiu.lu@intel.com>
36922
36923         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
36924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
36925         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
36926         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
36927         _mm_alignr_epi8 with _mm_loadu_si128.
36928         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
36929         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
36930         (__m128i_shift_right): Removed.
36931         * sysdeps/i386/i686/multiarch/varshift.h: New file.
36932         * sysdeps/i386/i686/multiarch/varshift.S: New file.
36933         * sysdeps/x86_64/multiarch/varshift.h: New file.
36934         * sysdeps/x86_64/multiarch/varshift.S: New file.
36935
36936 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
36937
36938         * configure.in: Move assembler checks to before sysdep dir checking.
36939
36940 2010-08-20  Petr Baudis  <pasky@suse.cz>
36941
36942         * LICENSES: Sync the sunrpc license.
36943
36944 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
36945
36946         * sunrpc/auth_des.c: Update copyright notice once again.
36947         * sunrpc/auth_none.c: Likewise.
36948         * sunrpc/auth_unix.c: Likewise.
36949         * sunrpc/authdes_prot.c: Likewise.
36950         * sunrpc/authuxprot.c: Likewise.
36951         * sunrpc/bindrsvprt.c: Likewise.
36952         * sunrpc/clnt_gen.c: Likewise.
36953         * sunrpc/clnt_perr.c: Likewise.
36954         * sunrpc/clnt_raw.c: Likewise.
36955         * sunrpc/clnt_simp.c: Likewise.
36956         * sunrpc/clnt_tcp.c: Likewise.
36957         * sunrpc/clnt_udp.c: Likewise.
36958         * sunrpc/clnt_unix.c: Likewise.
36959         * sunrpc/des_crypt.c: Likewise.
36960         * sunrpc/des_soft.c: Likewise.
36961         * sunrpc/get_myaddr.c: Likewise.
36962         * sunrpc/getrpcport.c: Likewise.
36963         * sunrpc/key_call.c: Likewise.
36964         * sunrpc/key_prot.c: Likewise.
36965         * sunrpc/openchild.c: Likewise.
36966         * sunrpc/pm_getmaps.c: Likewise.
36967         * sunrpc/pm_getport.c: Likewise.
36968         * sunrpc/pmap_clnt.c: Likewise.
36969         * sunrpc/pmap_prot.c: Likewise.
36970         * sunrpc/pmap_prot2.c: Likewise.
36971         * sunrpc/pmap_rmt.c: Likewise.
36972         * sunrpc/rpc/auth.h: Likewise.
36973         * sunrpc/rpc/auth_unix.h: Likewise.
36974         * sunrpc/rpc/clnt.h: Likewise.
36975         * sunrpc/rpc/des_crypt.h: Likewise.
36976         * sunrpc/rpc/key_prot.h: Likewise.
36977         * sunrpc/rpc/netdb.h: Likewise.
36978         * sunrpc/rpc/pmap_clnt.h: Likewise.
36979         * sunrpc/rpc/pmap_prot.h: Likewise.
36980         * sunrpc/rpc/pmap_rmt.h: Likewise.
36981         * sunrpc/rpc/rpc.h: Likewise.
36982         * sunrpc/rpc/rpc_des.h: Likewise.
36983         * sunrpc/rpc/rpc_msg.h: Likewise.
36984         * sunrpc/rpc/svc.h: Likewise.
36985         * sunrpc/rpc/svc_auth.h: Likewise.
36986         * sunrpc/rpc/types.h: Likewise.
36987         * sunrpc/rpc/xdr.h: Likewise.
36988         * sunrpc/rpc_clntout.c: Likewise.
36989         * sunrpc/rpc_cmsg.c: Likewise.
36990         * sunrpc/rpc_common.c: Likewise.
36991         * sunrpc/rpc_cout.c: Likewise.
36992         * sunrpc/rpc_dtable.c: Likewise.
36993         * sunrpc/rpc_hout.c: Likewise.
36994         * sunrpc/rpc_main.c: Likewise.
36995         * sunrpc/rpc_parse.c: Likewise.
36996         * sunrpc/rpc_parse.h: Likewise.
36997         * sunrpc/rpc_prot.c: Likewise.
36998         * sunrpc/rpc_sample.c: Likewise.
36999         * sunrpc/rpc_scan.c: Likewise.
37000         * sunrpc/rpc_scan.h: Likewise.
37001         * sunrpc/rpc_svcout.c: Likewise.
37002         * sunrpc/rpc_tblout.c: Likewise.
37003         * sunrpc/rpc_util.c: Likewise.
37004         * sunrpc/rpc_util.h: Likewise.
37005         * sunrpc/rpcinfo.c: Likewise.
37006         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
37007         * sunrpc/rpcsvc/key_prot.x: Likewise.
37008         * sunrpc/rpcsvc/klm_prot.x: Likewise.
37009         * sunrpc/rpcsvc/mount.x: Likewise.
37010         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
37011         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
37012         * sunrpc/rpcsvc/rex.x: Likewise.
37013         * sunrpc/rpcsvc/rstat.x: Likewise.
37014         * sunrpc/rpcsvc/rusers.x: Likewise.
37015         * sunrpc/rpcsvc/sm_inter.x: Likewise.
37016         * sunrpc/rpcsvc/spray.x: Likewise.
37017         * sunrpc/rpcsvc/yppasswd.x: Likewise.
37018         * sunrpc/rtime.c: Likewise.
37019         * sunrpc/svc.c: Likewise.
37020         * sunrpc/svc_auth.c: Likewise.
37021         * sunrpc/svc_authux.c: Likewise.
37022         * sunrpc/svc_raw.c: Likewise.
37023         * sunrpc/svc_run.c: Likewise.
37024         * sunrpc/svc_simple.c: Likewise.
37025         * sunrpc/svc_tcp.c: Likewise.
37026         * sunrpc/svc_udp.c: Likewise.
37027         * sunrpc/svc_unix.c: Likewise.
37028         * sunrpc/svcauth_des.c: Likewise.
37029         * sunrpc/xcrypt.c: Likewise.
37030         * sunrpc/xdr.c: Likewise.
37031         * sunrpc/xdr_array.c: Likewise.
37032         * sunrpc/xdr_float.c: Likewise.
37033         * sunrpc/xdr_mem.c: Likewise.
37034         * sunrpc/xdr_rec.c: Likewise.
37035         * sunrpc/xdr_ref.c: Likewise.
37036         * sunrpc/xdr_sizeof.c: Likewise.
37037         * sunrpc/xdr_stdio.c: Likewise.
37038
37039         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
37040         handling.
37041
37042 2010-08-19  Andreas Schwab  <schwab@redhat.com>
37043
37044         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
37045
37046 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
37047
37048         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
37049         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
37050         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
37051         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
37052         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
37053         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
37054         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
37055         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
37056         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
37057         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
37058         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
37059         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
37060         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
37061         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
37062
37063 2010-07-26  Anton Blanchard  <anton@samba.org>
37064
37065         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
37066         * malloc/arena.c (heap_trim): Likewise.
37067
37068 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
37069
37070         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
37071         here.  Not...
37072         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
37073         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
37074
37075 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
37076
37077         * sysdeps/i386/elf/Makefile: New file.
37078
37079 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37080
37081         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
37082         from fanotify_init.
37083         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
37084         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37085
37086 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
37087
37088         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
37089         of strncasecmp_l.
37090         * sysdeps/multiarch/strcmp.S: Likewise.
37091
37092 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
37093
37094         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37095         strncase_l-nonascii.
37096         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37097         Add strncase_l-ssse3.
37098         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
37099         * sysdeps/x86_64/strcmp.S: Likewise.
37100         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
37101         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
37102         * sysdeps/x86_64/strncase.S: New file.
37103         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
37104         * sysdeps/x86_64/strncase_l.S: New file.
37105         * string/Makefile (strop-tests): Add strncasecmp.
37106         * string/test-strncasecmp.c: New file.
37107
37108         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
37109         warning.
37110
37111         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
37112         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
37113
37114 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
37115
37116         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
37117
37118 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
37119
37120         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
37121         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
37122         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
37123
37124 2010-05-01  Alan Modra  <amodra@gmail.com>
37125
37126         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
37127         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
37128         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
37129         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
37130         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
37131         tidying.  Don't tail-call __sigjmp_save for static lib.
37132         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
37133         save location.
37134         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
37135         (CALL_MCOUNT): Add eh info, and nop after bl.
37136         (TAIL_CALL_SYSCALL_ERROR): New macro.
37137         (PSEUDO_RET): Use it.
37138         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
37139         Correct save location of integer regs and cr.
37140         (_dl_profile_resolve): Correct cr save location.  Delete nops
37141         after bl when SHARED.  Reduce cfi size a little by better
37142         placement of cfi directives.
37143         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
37144         make a stack frame.  Instead use parm save area as a temp.
37145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
37146         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
37147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
37148         Don't make a stack frame for parent, use parm save area.
37149         Increase child stack frame to 112 bytes.  Don't save unused reg,
37150         and adjust reg usage.  Set up cfi on error recovery and
37151         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
37152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
37153         (__makecontext): Add dummy nop after jump to exit.
37154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
37155         Use correct parm save area and cr save, reduce stack frame.
37156         Correct cfi for possible PSEUDO_RET frame setup.
37157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
37158         Branch to local label emitted by PSEUDO_RET rather than
37159         __syscall_error.
37160
37161 2010-08-12  Andreas Schwab  <schwab@redhat.com>
37162
37163         [BZ #11904]
37164         * locale/programs/locale.c (print_assignment): New function.
37165         (show_locale_vars): Use it.
37166
37167 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
37168
37169         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
37170         field.
37171         (struct statfs64): Likewise.
37172         (_STATFS_F_FLAGS): Define.
37173         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
37174         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
37175         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
37176         (ST_VALID): Define locally.
37177         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
37178         __statvfs_getflags, use the provided value.
37179         * sysdeps/unix/sysv/linux/kernel-features.h: Define
37180         __ASSUME_STATFS_F_FLAGS.
37181
37182         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
37183
37184         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
37185         Add sys/fanotify.h.
37186         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
37187         fanotify_mask for GLIBC_2.13.
37188         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
37189         fanotify_init and fanotify_mark.
37190         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
37191         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
37192
37193         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
37194         Add prlimit.
37195         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
37196         prlimit64 for GLIBC_2.13.
37197         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
37198         prlimit64.
37199         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
37200         syscall.
37201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
37202         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
37203         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
37204         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
37205         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
37206         add prlimit alias.
37207         * sysdeps/unix/sysv/linux/prlimit.c: New file.
37208
37209         [BZ #11903]
37210         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
37211         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
37212
37213         * nss/Makefile: Add rules to build and run tst-nss-test1.
37214         * shlib-versions: Add entry for libnss_test1.
37215         * nss/nss_test1.c: New file.
37216         * nss/tst-nss-test1.c: New file.
37217
37218         * nss/nsswitch.c (__nss_database_custom): Define new variable.
37219         (__nss_configure_lookup): Set appropriate entry in
37220         __nss_configure_lookup to true.
37221         * nss/nsswitch.h: Define enum with indeces of databases in
37222         databases and __nss_database_custom arrays.  Declare
37223         __nss_database_custom.
37224         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
37225         to avoid using nscd when custom rules are installed.
37226         * nss/getXXbyYY_r.c: Likewise.
37227         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
37228
37229         * nss/nss_files/files-parse.c: Whitespace fixes.
37230
37231 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
37232
37233         [BZ #11883]
37234         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
37235         * posix/fnmatch_loop.c: Likewise.
37236
37237 2010-07-17  Andi Kleen  <ak@linux.intel.com>
37238
37239         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
37240         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
37241         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
37242         * Versions.def [GLIBC_2.13]: Add.
37243
37244 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
37245
37246         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37247         Also fail if tpwd after pwuid call is NULL.
37248
37249 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37250
37251         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
37252         when converting to ms.
37253
37254 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
37255
37256         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
37257         EOPNOTSUPP errors with ENOTTY.
37258         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
37259         EOPNOTSUPP errors with ENOTTY.
37260
37261 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
37262
37263         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
37264         Add strcasecmp_l-ssse3.
37265         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
37266         strcasecmp.
37267         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
37268         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
37269         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
37270
37271 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
37272
37273         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
37274
37275         * string/Makefile (strop-tests): Add strcasecmp.
37276         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
37277         strcasecmp_l-nonascii.
37278         (gen-as-const-headers): Add locale-defines.sym.
37279         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
37280         * sysdeps/x86_64/strcasecmp.S: New file.
37281         * sysdeps/x86_64/strcasecmp_l.S: New file.
37282         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
37283         * sysdeps/x86_64/locale-defines.sym: New file.
37284         * string/test-strcasecmp.c: New file.
37285
37286         * string/test-strcasestr.c: Test both ends of the range of characters.
37287         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
37288
37289 2010-07-29  Roland McGrath  <roland@redhat.com>
37290
37291         [BZ #11856]
37292         * manual/locale.texi (Yes-or-No Questions): Fix example code.
37293
37294 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
37295
37296         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
37297         for ld.so.
37298
37299 2010-07-27  Andreas Schwab  <schwab@redhat.com>
37300
37301         * manual/memory.texi (Malloc Tunable Parameters): Document
37302         M_PERTURB.
37303
37304 2010-07-26  Roland McGrath  <roland@redhat.com>
37305
37306         [BZ #11840]
37307         * configure.in (-fgnu89-inline check): Set and substitute
37308         gnu89_inline, not libc_cv_gnu89_inline.
37309         * configure: Regenerated.
37310         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
37311
37312 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
37313
37314         * string/test-strnlen.c: New file.
37315         * string/Makefile (strop-tests): Add strnlen.
37316         * string/tester.c (test_strnlen): Add a few more test cases.
37317         * string/tst-strlen.c: Better error reporting.
37318
37319         * sysdeps/x86_64/strnlen.S: New file.
37320
37321 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
37322
37323         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
37324         lower-latency instructions.
37325
37326 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
37327
37328         * string/test-strcasestr.c: New file.
37329         * string/test-strstr.c: New file.
37330         * string/Makefile (strop-tests): Add strstr and strcasestr.
37331         * string/str-two-way.h: Don't undefine MAX.
37332         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
37333
37334 2010-07-21  Andreas Schwab  <schwab@redhat.com>
37335
37336         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37337         strcasestr-nonascii.
37338         (CFLAGS-strcasestr-nonascii.c): Define.
37339         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
37340         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
37341         Remove unused attribute.
37342
37343 2010-07-20  Roland McGrath  <roland@redhat.com>
37344
37345         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
37346         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
37347         ld.so.cache was broken.  With it, there is no way to disable dsocaps
37348         like LD_HWCAP_MASK can disable hwcaps.
37349
37350 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
37351
37352         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
37353
37354 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
37355
37356         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
37357         call in strcasestr.
37358         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
37359         __strcasestr_sse42_nonascii.
37360         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
37361         strcasestr-nonascii.c.
37362         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
37363
37364 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
37365
37366         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
37367         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
37368         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
37369         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
37370
37371 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
37372
37373         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
37374         fcntl.
37375
37376 2010-07-06  Andreas Schwab  <schwab@redhat.com>
37377
37378         [BZ #11577]
37379         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
37380         dl_signal_cerror.
37381
37382 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
37383
37384         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
37385         _PC_PIPE_BUF using F_GETPIPE_SZ.
37386
37387 2010-07-05  Roland McGrath  <roland@redhat.com>
37388
37389         * manual/arith.texi (Rounding Functions): Fix rint description
37390         implicit in round description.
37391
37392 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
37393
37394         * elf/Makefile: Fix linking for a few tests to make recent linker
37395         happy.
37396
37397 2010-06-30  Andreas Schwab  <schwab@redhat.com>
37398
37399         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
37400         $(common-objpfx)libc_nonshared.a.
37401
37402 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
37403
37404         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
37405         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
37406         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
37407         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
37408         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
37409         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
37410         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
37411         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
37412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
37413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
37414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
37415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
37416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
37417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
37418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
37419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
37420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
37421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
37422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
37423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
37424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
37425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
37426         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
37427         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
37428         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
37429         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
37430         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
37431         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
37432         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
37433         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
37434         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
37435         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
37436         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
37437         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
37438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
37439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
37440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
37441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
37442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
37443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
37444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
37445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
37446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
37447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
37448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
37449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
37450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
37451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
37452
37453 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
37454
37455         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
37456         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
37457         * string/memmove.c (memmove): Renamed to ...
37458         (MEMMOVE): ...this.  Default to memmove.
37459         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
37460         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
37461         (END_CHK): Define.
37462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
37463         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
37464         mempcpy-ssse3-back memmove-ssse3-back.
37465         * sysdeps/x86_64/multiarch/bcopy.S: New file .
37466         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
37467         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
37468         * sysdeps/x86_64/multiarch/memcpy.S: New file.
37469         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
37470         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
37471         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
37472         * sysdeps/x86_64/multiarch/memmove.c: New file.
37473         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
37474         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
37475         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
37476         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
37477         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
37478         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
37479         Define.
37480         (index_Fast_Copy_Backward): Define.
37481         (HAS_ARCH_FEATURE): Define.
37482         (HAS_FAST_REP_STRING): Define.
37483         (HAS_FAST_COPY_BACKWARD): Define.
37484
37485 2010-06-21  Andreas Schwab  <schwab@redhat.com>
37486
37487         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37488         Restore proper fallback handling.
37489
37490 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
37491
37492         [BZ #11701]
37493         * posix/group_member.c (__group_member): Correct checking loop.
37494
37495         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
37496         OOM in getpwuid_r correctly.  Return error number when the caller
37497         should return, otherwise -1.
37498         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
37499         call returning > 0 value.
37500         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
37501
37502 2010-06-07  Andreas Schwab  <schwab@redhat.com>
37503
37504         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
37505         libc_nonshared.a from targets in modules-names.
37506
37507 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
37508
37509         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
37510         requires it.
37511
37512 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
37513
37514         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
37515         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
37516         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
37517         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
37518
37519 2010-06-02  Andreas Schwab  <schwab@redhat.com>
37520
37521         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
37522
37523 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
37524
37525         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
37526         and F_GETPIPE_SZ.
37527         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
37528         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
37529         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
37530         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
37531         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
37532         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
37533
37534 2010-06-14  Roland McGrath  <roland@redhat.com>
37535
37536         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
37537
37538 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
37539
37540         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
37541         __REDIRECT followed by __THROW.
37542         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
37543         * posix/getopt.h (getopt): Likewise.
37544
37545 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
37546
37547         * hurd/lookup-at.c (__file_name_lookup_at): Accept
37548         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
37549         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
37550         in AT_FLAGS.
37551         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
37552         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
37553
37554 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
37555
37556         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
37557
37558 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
37559
37560         [BZ #11640]
37561         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
37562         Properly check family and model.
37563
37564 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
37565
37566         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
37567
37568 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
37569
37570         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
37571
37572 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
37573
37574         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
37575         symbol reference.
37576
37577 2010-05-19  Andreas Schwab  <schwab@redhat.com>
37578
37579         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
37580         symbol reference.
37581
37582 2010-05-21  Andreas Schwab  <schwab@redhat.com>
37583
37584         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
37585         and internal_recvmmsg.
37586         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
37587         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
37588         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
37589         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
37590
37591         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
37592         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
37593         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
37594
37595 2010-05-20  Andreas Schwab  <schwab@redhat.com>
37596
37597         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
37598
37599 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
37600
37601         POWER7 optimizations.
37602         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
37603         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
37604
37605 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
37606
37607         * version.h: Update for 2.13 development version.
37608
37609 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
37610
37611         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
37612         exceptions.  Return 0.
37613
37614 2010-05-07  Roland McGrath  <roland@redhat.com>
37615
37616         * elf/ldconfig.c (main): Add a const.
37617
37618 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
37619
37620         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
37621         (args_options): Add no-idn option.
37622         (ahosts_keys_int): Add idn_flags to ai_flags.
37623         (parse_option): Handle 'i' option to clear idn_flags.
37624
37625         * malloc/malloc.c (_int_free): Possible race in the most recently
37626         added check.  Only act on the data if no current modification
37627         happened.
37628
37629 See ChangeLog.17 for earlier changes.